From 295b35a2dead663401f60781a7445dafdc76cff0 Mon Sep 17 00:00:00 2001 From: Arthur Paulino Date: Fri, 29 Dec 2017 13:53:37 -0300 Subject: [PATCH] creating simple display tutorial --- Hardware:-Hologram-Projector.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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