From cd6982e5da1f5facdc1e0154b3a27c01e8b076c9 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Wed, 27 Jan 2021 13:42:57 -0500 Subject: - Fixed some bugs in the emulator. - Started work on implementing the Super VIA emulation. - Added support for disabling disassembly per instruction, when in debug mode. - Did some more work on rewriting the SuB Suite to work with the new calling convention. - Rewrote the symbol handling code in the emulator's assembler, to make it both simpler, and to add support for arbitrarily deep symbol scopes. - Added support for arbitrarily deep local symbol scopes. For example, to declare a symbol of depth 2, you add two '@' characters to the start of the symbol name. In other words, the number of '@' characters before the symbol name is what determines the scope of that symbol. And to use a symbol thats outside the current scope, you would use the same syntax as using a struct member, so you would do `global.local`. --- test/ortho.s | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/ortho.s b/test/ortho.s index 312c8eb..c7cdd83 100644 --- a/test/ortho.s +++ b/test/ortho.s @@ -4,6 +4,10 @@ count: .org $40000 mem: .res 256 +bitabl: + .res 8 +bits: + .res 8 .org $8000 reset: @@ -18,6 +22,16 @@ reset: cmp.qo (count), y lea.o (count), y lea mem + nop + lea d, $2000 + nop + lea d, (mem+d) + lea bitabl, mem +; mov (bitabl)+a, 0 + mov (d-128), #0 + lea s, count + mov (e), #0 + mov a, (e) loop: inc b inc.q count @@ -31,7 +45,7 @@ loop: .qword reset a -;.org reset -;v -;q +.org reset +v +q d -- cgit v1.2.3-13-gbd6f