From cbad8aabbc82efbe7a49572a2da74224ae9c9f85 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sun, 1 Dec 2019 17:40:41 -0500 Subject: Added the ability to disable the prefix byte. Any instructions that either have a register size of 8 bits, use implied addressing, or branch can save a byte by disabling the prefix byte. It does this by checking if the first three bits are all set to 1. If true, then it will treat it as a prefix byte, otherwise, it will treat it as an opcode. --- test/test-no-prefix.s | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/test-no-prefix.s (limited to 'test/test-no-prefix.s') diff --git a/test/test-no-prefix.s b/test/test-no-prefix.s new file mode 100644 index 0000000..3c9c6a9 --- /dev/null +++ b/test/test-no-prefix.s @@ -0,0 +1,8 @@ +cps +lda #$10 +rol #$1 +jmp $3 +;viewmem +;q +done + -- cgit v1.2.3-13-gbd6f