mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-22 15:12:18 +13:00
Specify the ldh instruction, don't turn ld into ldh
This commit is contained in:
parent
c480632d54
commit
772fcc7588
219 changed files with 2556 additions and 2556 deletions
|
|
@ -1,13 +1,13 @@
|
|||
Random_::
|
||||
; Generate a random 16-bit value.
|
||||
ld a, [rDIV]
|
||||
ldh a, [rDIV]
|
||||
ld b, a
|
||||
ld a, [hRandomAdd]
|
||||
ldh a, [hRandomAdd]
|
||||
adc b
|
||||
ld [hRandomAdd], a
|
||||
ld a, [rDIV]
|
||||
ldh [hRandomAdd], a
|
||||
ldh a, [rDIV]
|
||||
ld b, a
|
||||
ld a, [hRandomSub]
|
||||
ldh a, [hRandomSub]
|
||||
sbc b
|
||||
ld [hRandomSub], a
|
||||
ldh [hRandomSub], a
|
||||
ret
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue