From 52f38d7eac2d150f64816126765cddab884206f8 Mon Sep 17 00:00:00 2001 From: sejo Date: Sun, 28 Nov 2021 13:05:40 -0600 Subject: [PATCH] updated assembler output --- src/uxn_tutorial_day_1.gmo | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/uxn_tutorial_day_1.gmo b/src/uxn_tutorial_day_1.gmo index 008c2ab..569886d 100644 --- a/src/uxn_tutorial_day_1.gmo +++ b/src/uxn_tutorial_day_1.gmo @@ -276,14 +276,14 @@ $ ./bin/uxnasm hello.tal bin/hello.rom && ./bin/uxnemu bin/hello.rom we will see an output that looks like the following: ``` -Assembled bin/hello.rom in 0.00kb(0.40% used), 0 labels, 0 macros. +Assembled tmp/test.rom in 5 bytes(0.40% used), 0 labels, 0 macros. Loaded hello.rom h ``` the last 'h' we see is the output of our program. change the 68 to, for example, 65, and now you'll see an 'e'. -so what is going on? +so what is happening? ## one instruction at a time @@ -334,7 +334,9 @@ in uxntal we can only write numbers that are 2 or 4 hexadecimal digits long. if, ## assembled rom -we can see that the our assembled program is 5 bytes in size: +when we assembled our program, we saw that it was 5 bytes in size. + +we can confirm it using the wc (word count) program: ``` $ wc --bytes bin/hello.rom