From 1ec19679b3db209429b0897f6ccda6d09d018a70 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sat, 8 Aug 2020 10:28:36 -0400 Subject: Did a ton of stuff. - Changed the file structure of the SuB Suite, so that all variable declarations, symbols, and constants are in a single file. - Moved the C library functionss into a separate file, and made them use stack frames. - Added support for using the emulator's assembler for realtime debugging, to enter it, get in to stepping mode by pressing Ctrl+s, press any other key, then press F1, The reason for having to press some other key before pressing F1 is because it only allows entering the assembler when the keyboard is not ready. - Added the ".res" directive to the emulator's assembler, the ".res" directive tells the assembler to reserve however many bytes specified by the operand. - Fixed some bugs in the emulator's assembler. --- enums.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'enums.h') diff --git a/enums.h b/enums.h index 955c27c..83cc7f0 100644 --- a/enums.h +++ b/enums.h @@ -156,7 +156,7 @@ enum base_isa { INY_IMP = 0x39, /* INcrement Y register. */ CPX_IMM = 0x3A, /* ComPare X register. */ CPX_AB = 0x3C, /* CPX Absolute. */ - CPY_Z = 0x3D, /* CPY Zero Matrix. */ + CPX_Z = 0x3D, /* CPX Zero Matrix. */ JSR_Z = 0x40, /* Jump to SubRoutine. */ XOR_IMM = 0x41, /* bitwise XOR with accumulator. */ XAB_IMP = 0x42, /* bitwise Xor with Accumulator, and B register. */ @@ -166,7 +166,7 @@ enum base_isa { CLV_IMP = 0x48, /* CLear oVerflow flag. */ CPY_IMM = 0x4A, /* ComPare Y register. */ CPY_AB = 0x4C, /* CPY Absolute. */ - CPX_Z = 0x4D, /* CPX Zero Matrix. */ + CPY_Z = 0x4D, /* CPY Zero Matrix. */ BPO_REL = 0x50, /* Branch if POsitive. */ LSL_IMM = 0x51, /* Logical Shift Left. */ LLB_IMP = 0x52, /* Logical shift Left accumulator by B. */ -- cgit v1.2.3-13-gbd6f