aboutsummaryrefslogtreecommitdiffstats
path: root/music/pokeredmusicdisasm/UnkCode.h
diff options
context:
space:
mode:
authorKuroiIeWa5Da <tyuki@adu.me>2012-01-26 06:22:29 -0600
committerKuroiIeWa5Da <tyuki@adu.me>2012-01-26 06:22:29 -0600
commitbf1968297996fa8e2a5f004d60b83e516840a632 (patch)
tree5ae653257dc979e098c4a7aaac3996cdb42138d3 /music/pokeredmusicdisasm/UnkCode.h
parentFinished MeetProfOak Channel 3 Music Data (diff)
downloadpokeyellow-bf1968297996fa8e2a5f004d60b83e516840a632.tar.gz
pokeyellow-bf1968297996fa8e2a5f004d60b83e516840a632.tar.xz
pokeyellow-bf1968297996fa8e2a5f004d60b83e516840a632.zip
Made several large upgrades to Music Disassembler
hg-commit-id: 0b180a6e2ec5
Diffstat (limited to 'music/pokeredmusicdisasm/UnkCode.h')
-rw-r--r--music/pokeredmusicdisasm/UnkCode.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/music/pokeredmusicdisasm/UnkCode.h b/music/pokeredmusicdisasm/UnkCode.h
new file mode 100644
index 00000000..28204448
--- /dev/null
+++ b/music/pokeredmusicdisasm/UnkCode.h
@@ -0,0 +1,29 @@
+#ifndef UNKCODE_H
+#define UNKCODE_H
+
+#include "AbstractData.h"
+
+// Represents an unknown opcode
+class UnkCode : public AbstractData
+{
+public:
+ // Constructors
+ UnkCode();
+ UnkCode(unsigned char* byte); // Parse Immidiately
+ UnkCode(unsigned char code, bool); // Set Value
+
+ // Getters / Setters
+ unsigned char GetCode();
+ void SetCode(unsigned char value);
+
+ // Re-implemented
+ virtual std::string GenAsm();
+ virtual bool Parse(unsigned char* byte);
+ virtual bool IsValid(unsigned char* byte);
+ virtual unsigned int Arguments();
+
+private:
+ unsigned char code;
+};
+
+#endif \ No newline at end of file