From c5150ee31f07208422f1435de9b35a0d0168cbb5 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Thu, 9 Apr 2020 02:06:50 -0400 Subject: Completely changed the assembler. It now has a lexer/tokenizer, along with a parser. I have also made the emulator even smaller. --- programs/subeditor.s | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) (limited to 'programs') 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 -- cgit v1.2.3-13-gbd6f