beginning of compiler

This commit is contained in:
2026-06-20 11:53:08 -06:00
parent 5ddecb0c38
commit 9176c4882f
20 changed files with 1784 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
@asm
.data
.code
MOV RA, 1
MOV RB, 8 ; Input number
:loop_start
MUL RA, RB
NOT RB ; RB != 0? Updates equal flag
DEC RB ; RB -= 1
JEQ loop_start ; If equal flag, goto loop_start
; End program, result in RA