Updated Hardware: Hologram Projector (markdown)

Kevin Ramharak 2018-01-03 14:23:42 +01:00
parent a2353f6388
commit c90ef0c000

@ -23,10 +23,8 @@ Note that the Hologram Projector will clear itself at the end of the tick, it is
HWID_HOLO EQU 0x9 ;; setup constants HWID_HOLO EQU 0x9 ;; setup constants
HOLO_DISPLAY_HEX EQU 1 HOLO_DISPLAY_HEX EQU 1
.data .data
DISPLAYED_HEX EQU 0X000A ;; create a word in DISPLAYED_HEX EQU 0X000A ;; create a word in memory called DISPLAYED_HEX
;; memory called DISPLAYED_HEX ;; and set its value to 0x000A
;; and set its value to
;; 0x000A
.text .text
MOV A, HOLO_DISPLAY_HEX ;; MOV the constant HOLO_DISPLAY_HEX into register A MOV A, HOLO_DISPLAY_HEX ;; MOV the constant HOLO_DISPLAY_HEX into register A
MOV B, [DISPLAYED_HEX] ;; MOV the value inside the memory spot DISPLAYED_HEX into register B MOV B, [DISPLAYED_HEX] ;; MOV the value inside the memory spot DISPLAYED_HEX into register B