... | ... |
@@ -14,5 +14,5 @@ cc -std=c89 -DDEBUG -Wall -Wno-unknown-pragmas -Wpedantic -Wshadow -Wextra -Werr |
14 | 14 |
cc -std=c89 -DDEBUG -Wall -Wno-unknown-pragmas -Wpedantic -Wshadow -Wextra -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Wvla -g -Og -fsanitize=address -fsanitize=undefined uxn.c -o uxn |
15 | 15 |
|
16 | 16 |
# run |
17 |
-./uxnasm examples/hello.usm boot.rom |
|
17 |
+./uxnasm examples/condjump.usm boot.rom |
|
18 | 18 |
./uxn boot.rom |
14 | 0 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,17 @@ |
1 |
+( conditional jump ) |
|
2 |
+ |
|
3 |
+|0100 @RESET |
|
4 |
+ |
|
5 |
+,06 ,05 GTH ,there ROT JMP? POP^ |
|
6 |
+ |
|
7 |
+@here ( when lesser or equal ) |
|
8 |
+ ,ee |
|
9 |
+ BRK |
|
10 |
+ |
|
11 |
+@there ( when greater ) |
|
12 |
+ ,ff |
|
13 |
+ BRK |
|
14 |
+ |
|
15 |
+|c000 @FRAME BRK |
|
16 |
+|d000 @ERROR BRK |
|
17 |
+|FFFA .RESET .FRAME .ERROR |