diff --git a/Hardware:-Hologram-Projector.md b/Hardware:-Hologram-Projector.md index 39e9dc1..224557f 100644 --- a/Hardware:-Hologram-Projector.md +++ b/Hardware:-Hologram-Projector.md @@ -14,3 +14,15 @@ Hardware ID: `0x0009` | 2 | `DISPLAY_STRING` | `0 kJ` | Displays a zero-terminated Unicode string (max. 8 characters). Specify the address of the string with the X register | Note that the Hologram Projector will clear itself at the end of the tick, it is only necessary to use CLEAR when you want to cancel a DISPLAY command executed within the same tick. + +### Usage examples +Display the number 10 +```s +.text + HWID_HOLO EQU 0x9 + DISPLAY_HEX EQU 1 + MOV A, DISPLAY_HEX + MOV B, 10 + HWI HWID_HOLO + BRK +``` \ No newline at end of file