neauoire authored on 08/02/2021 05:07:34
Showing 4 changed files
... ...
@@ -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
... ...
@@ -26,6 +26,8 @@
26 26
 ,1234 ,1233 GTH^ #0e STR
27 27
 ,1234 ,1235 LTH^ #0f STR
28 28
 
29
+,ef ,ee EQU ,12 ,01 ROT ADD?
30
+
29 31
 |c000 @FRAME BRK 
30 32
 |d000 @ERROR BRK 
31 33
 |FFFA .RESET .FRAME .ERROR
32 34
deleted file mode 100644
... ...
@@ -1,13 +0,0 @@
1
-< conditionals >
2
-
3
-.there ( 0a 05 GTH ) JMC
4
-
5
-:here
6
-	< when not equal >
7
-	ee
8
-	BRK
9
-
10
-:there
11
-	< when is equal >
12
-	ff
13
-	BRK
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