mirror of https://github.com/falsovsky/z80.git
Fix increment_x
This commit is contained in:
parent
161b0956e8
commit
3a5d5e4286
|
|
@ -50,11 +50,8 @@ main
|
|||
dec c ; Decrement counter
|
||||
jr nz, main ; Repeat if not zero
|
||||
|
||||
;push hl
|
||||
;push bc
|
||||
;call increment_x ; Increment X position in each star
|
||||
;pop bc
|
||||
;pop hl
|
||||
call increment_x ; Increment X position in each star
|
||||
|
||||
jr main_start ; Do it all over again
|
||||
|
||||
pop bc
|
||||
|
|
@ -161,6 +158,7 @@ increment_x_update
|
|||
ld (hl), a
|
||||
inc hl
|
||||
inc hl
|
||||
inc hl
|
||||
dec c
|
||||
jr nz, increment_x_loop
|
||||
pop bc
|
||||
|
|
|
|||
Loading…
Reference in New Issue