summaryrefslogtreecommitdiff
path: root/ROMs
diff options
context:
space:
mode:
Diffstat (limited to 'ROMs')
-rw-r--r--ROMs/hello_c.asm11
-rw-r--r--ROMs/hello_c.c2
-rw-r--r--ROMs/hello_c.q1bin22 -> 22 bytes
3 files changed, 7 insertions, 6 deletions
diff --git a/ROMs/hello_c.asm b/ROMs/hello_c.asm
index 292b99a..8cdf58b 100644
--- a/ROMs/hello_c.asm
+++ b/ROMs/hello_c.asm
@@ -1,7 +1,8 @@
_main:
-ADD 1, 2
-SUB 4, 1
-MUL AX, AX
-MOV AX, V0
-RET
+ push 0
+ mov 1, V1
+ pop V0
+ or V0, V1
+ mov DX, V0
+ ret
diff --git a/ROMs/hello_c.c b/ROMs/hello_c.c
index 46eab8d..1f79a53 100644
--- a/ROMs/hello_c.c
+++ b/ROMs/hello_c.c
@@ -1,4 +1,4 @@
int main()
{
- return (1 + 2) * (4 - 1);
+ return 0 | 1;
} \ No newline at end of file
diff --git a/ROMs/hello_c.q1 b/ROMs/hello_c.q1
index deffc80..5e4d71e 100644
--- a/ROMs/hello_c.q1
+++ b/ROMs/hello_c.q1
Binary files differ