Add space between arguments in assembly instructions and remove redundant a in instructions like add a, x

This commit is contained in:
xCrystal 2017-12-30 01:54:27 +01:00
parent 94b9a86c8b
commit 237aeb8fbd
50 changed files with 7221 additions and 7221 deletions

View file

@ -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