What is the most efficient way to write the 'else' program structure in assembly?
The best I've come up with so far is:
The best I've come up with so far is:
Code:
lda #$10 ; if ScrollY <= $10
cmp ScrollY
bcs smallScroll
; do code for 'if' = true
jmp endif
smallScroll:
; do code for 'if' = false
endif:
cmp ScrollY
bcs smallScroll
; do code for 'if' = true
jmp endif
smallScroll:
; do code for 'if' = false
endif: