summaryrefslogtreecommitdiff
path: root/programs
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-04-09 02:06:50 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2020-04-09 02:06:50 -0400
commitc5150ee31f07208422f1435de9b35a0d0168cbb5 (patch)
tree78150bf0339cf81401c00973f96c94a3c231015e /programs
parent59dc46ca8fe1eb6f98abb98fe8579aeaedd2ff15 (diff)
Completely changed the assembler.
It now has a lexer/tokenizer, along with a parser. I have also made the emulator even smaller.
Diffstat (limited to 'programs')
-rw-r--r--programs/subeditor.s39
1 files changed, 20 insertions, 19 deletions
diff --git a/programs/subeditor.s b/programs/subeditor.s
index eaecab5..5e6ce08 100644
--- a/programs/subeditor.s
+++ b/programs/subeditor.s
@@ -34,43 +34,43 @@ cmd_buf:
; Initalize some variables.
-.org $0
+.org 0
scr_row:
- .byte $0
+ .byte 0
scr_col:
- .byte $0
+ .byte 0
scr_trow:
- .byte $0
+ .byte 0
scr_tcol:
- .byte $0
+ .byte 0
scr_ptr:
- .word $0
+ .word 0
scr_ptr2:
- .word $0
+ .word 0
; Registers.
a:
- .byte $0
+ .byte 0
b:
- .byte $0
+ .byte 0
c:
- .byte $0
+ .byte 0
d:
- .byte $0
+ .byte 0
e:
- .byte $0
+ .byte 0
f:
- .byte $0
+ .byte 0
; This register is always zero.
zero:
- .qword $0
+ .qword 0
; End of registers.
end:
- .byte $0
+ .byte 0
bitmask:
- .byte $0
+ .byte 0
bitabl:
- .qword $0
- .qword $0
+ .qword 0
+ .qword 0
scr_str:
.byte $0
scr_end:
@@ -1152,9 +1152,10 @@ rdrwln_done:
dec end ;
rtl ;
+
.org $FFC0
.qword reset
-r
+a
done