summaryrefslogtreecommitdiff
path: root/disasm.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-12-09 11:28:59 -0500
committermrb0nk500 <b0nk@b0nk.xyz>2020-12-09 11:28:59 -0500
commitb1cf9d8a524edab9363bb53c0fd70457a8bdbd76 (patch)
treedb1c1f9eeb95d112ec4a7337bd53b4c7dad8880e /disasm.h
parent464130cf4b19578f45fc51a6a37453261bdf37f9 (diff)
- Implemented support for the `set` instruction in the
assembler. The main thing I had to do was implement the parsing of the condition code token, but that wasn't hard to do, since I had already done the lexing part already. The next thing to do, will be to design a calling convention for Sux.
Diffstat (limited to 'disasm.h')
-rw-r--r--disasm.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/disasm.h b/disasm.h
index 3427592..2b65d12 100644
--- a/disasm.h
+++ b/disasm.h
@@ -336,6 +336,17 @@ static const char *ext_opname[0x100] = {
[PCN_E ] = "PCN (E)"
};
+static const char *set_cc[8] = {
+ "NG",
+ "PO",
+ "CS",
+ "CC",
+ "EQ",
+ "NE",
+ "VS",
+ "VC"
+};
+
#define ORTHO_1CC(mne, cc) \
[mne##_R##cc] = #mne " r, " #cc, [mne##_M##cc] = #mne " m, " #cc