Skip to content

Commit

Permalink
use clearn register in sqrt swi test (fixes #5)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmolka committed Jun 30, 2020
1 parent d55b91d commit 3c6b5c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions bios/README.md

This file was deleted.

6 changes: 3 additions & 3 deletions bios/bios.asm
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ f001:
t002:
; BIOS read returns 0x188+8 after SWI
mov r0, 0
m_word r1, 0xE3A02004
m_word r2, 0xE3A02004
swi 0x80000 ; sqrt(r0)
ldr r2, [r0]
cmp r2, r1
ldr r3, [r0]
cmp r3, r2
bne f002
b t003

Expand Down
Binary file modified bios/bios.gba
Binary file not shown.

0 comments on commit 3c6b5c5

Please sign in to comment.