diff options
author | Daniel Harding <33dannye@gmail.com> | 2018-02-05 11:13:02 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-05 11:13:02 -0600 |
commit | 37ded1d150197b3784bc351eeeb0a8d9713c2e35 (patch) | |
tree | fcb7bd8f3090cb9f7b47a76af7e474122efe36e4 /engine/predefs.asm | |
parent | b8aa9ec80e43257a9e3a487b46a33f99c999a940 (diff) | |
parent | 237aeb8fbdb204948d611830565d4a00c6b0ab70 (diff) |
Merge pull request #171 from xCrystal/master
Misc style fixes
Diffstat (limited to 'engine/predefs.asm')
-rwxr-xr-x | engine/predefs.asm | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/engine/predefs.asm b/engine/predefs.asm index 605cba3a..6f605043 100755 --- a/engine/predefs.asm +++ b/engine/predefs.asm @@ -4,48 +4,48 @@ GetPredefPointer: ; Then put the bank and address of predef ; wPredefID in [wPredefBank] and hl. - ld a,h - ld [wPredefRegisters],a - ld a,l - ld [wPredefRegisters + 1],a + ld a, h + ld [wPredefRegisters], a + ld a, l + ld [wPredefRegisters + 1], a - ld hl,wPredefRegisters + 2 - ld a,d - ld [hli],a - ld a,e - ld [hli],a + ld hl, wPredefRegisters + 2 + ld a, d + ld [hli], a + ld a, e + ld [hli], a - ld a,b - ld [hli],a - ld [hl],c + ld a, b + ld [hli], a + ld [hl], c - ld hl,PredefPointers - ld de,0 + ld hl, PredefPointers + ld de, 0 - ld a,[wPredefID] - ld e,a + ld a, [wPredefID] + ld e, a add a add e - ld e,a + ld e, a jr nc, .nocarry inc d .nocarry - add hl,de - ld d,h - ld e,l + add hl, de + ld d, h + ld e, l ; get bank of predef routine - ld a,[de] - ld [wPredefBank],a + ld a, [de] + ld [wPredefBank], a ; get pointer inc de - ld a,[de] - ld l,a + ld a, [de] + ld l, a inc de - ld a,[de] - ld h,a + ld a, [de] + ld h, a ret |