faster loading of lines left in render routine
This commit is contained in:
@@ -448,6 +448,9 @@ LCDStatInterruptHandler:
|
|||||||
ldh a, [LinesLeft]
|
ldh a, [LinesLeft]
|
||||||
or a
|
or a
|
||||||
jr z, .exit
|
jr z, .exit
|
||||||
|
|
||||||
|
; move lines left to B
|
||||||
|
ld b, a
|
||||||
|
|
||||||
push de
|
push de
|
||||||
push hl
|
push hl
|
||||||
@@ -468,8 +471,6 @@ LCDStatInterruptHandler:
|
|||||||
; load counters
|
; load counters
|
||||||
ldh a, [TilesLeft]
|
ldh a, [TilesLeft]
|
||||||
ld c, a
|
ld c, a
|
||||||
ldh a, [LinesLeft]
|
|
||||||
ld b, a
|
|
||||||
|
|
||||||
.loop
|
.loop
|
||||||
; check we can still render
|
; check we can still render
|
||||||
|
|||||||
Reference in New Issue
Block a user