Created
August 28, 2019 17:14
-
-
Save Ravenslofty/491eb4a7873ef981da3f8b80c655624e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arch(seqpu) = R"( | |
// "00" & lit ld lit, B | |
ld b, *14 ; %00 =a | |
// "0100" & op & lit push A, [SP--] | |
// "0101" & op & lit push A, [SP--]; ld SP A | |
// "0110" & op & lit pop [SP++], B | |
// "0111" & op & lit pop [SP++], B; ld SP A | |
// "1000" & op & rol op A, B, A | |
//add a, b ; $8000 | |
//add a, b rol #*04 ; $800 =a | |
//mv a, b rol #*04 ; $8A0 =a | |
// "1001" & op & op A, B, SP | |
//mv sp, b ; $9A00 | |
// "1010" & op & op A, B, PC | |
// "1011" & op & op A, B, PC (if carry) | |
// "1100" & op & lit op A, lit, A | |
// "1101" & op & lit op A, lit, SP | |
// "1110" & op & lit op A, lit, PC | |
// "1111" & op & lit op A, lit, PC (if carry) | |
)"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/bass/arch/table/table.cpp b/bass/arch/table/table.cpp | |
index e1c2b1c..10d0946 100644 | |
--- a/bass/arch/table/table.cpp | |
+++ b/bass/arch/table/table.cpp | |
@@ -12,6 +12,7 @@ | |
//#include "psx-cpu.arch" | |
#include "gb-cpu.arch" | |
#include "gg-cpu.arch" | |
+#include "seqpu.arch" | |
#include "sms-cpu.arch" | |
#include "msx-cpu.arch" | |
#include "msxtr-cpu.arch" | |
@@ -53,6 +54,7 @@ bool BassTable::assemble(const string& statement) { | |
//else if(s == "psx.cpu") data = Arch_psx_cpu; | |
else if(s == "gb.cpu") data = Arch_gb_cpu; | |
else if(s == "gg.cpu") data = Arch_gg_cpu; | |
+ else if(s == "seqpu") data = Arch_seqpu; | |
else if(s == "sms.cpu") data = Arch_sms_cpu; | |
else if(s == "msx.cpu") data = Arch_msx_cpu; | |
else if(s == "msxtr.cpu") data = Arch_msxtr_cpu; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arch seqpu | |
endian lsb | |
base $0000 | |
origin $0000 | |
ld b, 1337 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment