Skip to content

Commit 3be82a6

Browse files
authored
set carry before subtract in floor
This subtract is currently relying on the carry being set by the cmp that occurs before branching
1 parent d81543a commit 3be82a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/modes/floor.asm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ drawFloor:
44
; get correct offset
55
sta tmp1
66
lda #$D
7+
sec
78
sbc tmp1
89
tax
910
; x10

0 commit comments

Comments
 (0)