mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-19 02:36:41 +00:00
Updated Learn by Examples (markdown)
parent
95b42a0741
commit
ed138c7090
@ -93,7 +93,6 @@ HOLO_DISPLAY_COLOR EQU 4
|
||||
|
||||
MOV A, HOLO_DISPLAY_COLOR ; MOV the constant HOLO_DISPLAY_COLOR into register A
|
||||
; the result of the division doesn't matter
|
||||
|
||||
CMP Y, 0 ; checks if the remainder is 0
|
||||
JZ set_blue ; if the remainder is 0, set the color blue
|
||||
JMP set_red ; this line is executed only if the the remainder was NOT 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user