mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-19 18:46:43 +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
|
MOV A, HOLO_DISPLAY_COLOR ; MOV the constant HOLO_DISPLAY_COLOR into register A
|
||||||
; the result of the division doesn't matter
|
; the result of the division doesn't matter
|
||||||
|
|
||||||
CMP Y, 0 ; checks if the remainder is 0
|
CMP Y, 0 ; checks if the remainder is 0
|
||||||
JZ set_blue ; if the remainder is 0, set the color blue
|
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
|
JMP set_red ; this line is executed only if the the remainder was NOT 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user