diff options
author | U-Fish-PC\Daniel <corrnondacqb@yahoo.com> | 2013-10-31 14:35:51 -0400 |
---|---|---|
committer | U-Fish-PC\Daniel <corrnondacqb@yahoo.com> | 2013-10-31 14:35:51 -0400 |
commit | 1a34c1a43f03fa7408b9853537cdda7615b8b577 (patch) | |
tree | 69b90bc5d7ec0b0214bb4d1fbd709e5f3e608184 /music/pokeredmusicdisasm/UnkEB.cpp | |
parent | e73d3d24aa7519b384c2ea0dcaf5d0ce034705ec (diff) | |
parent | 7ecf8b1714264ff7891480a1da9beb978356b666 (diff) |
Merge branch 'master' of https://github.com/iimarckus/pokered
Conflicts:
main.asm
Diffstat (limited to 'music/pokeredmusicdisasm/UnkEB.cpp')
-rw-r--r-- | music/pokeredmusicdisasm/UnkEB.cpp | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/music/pokeredmusicdisasm/UnkEB.cpp b/music/pokeredmusicdisasm/UnkEB.cpp deleted file mode 100644 index 39007f30..00000000 --- a/music/pokeredmusicdisasm/UnkEB.cpp +++ /dev/null @@ -1,57 +0,0 @@ -#include <sstream>
-#include "UnkEB.h"
-
-using namespace std;
-
-UnkEB::UnkEB()
-{
- param = 0;
-}
-
-UnkEB::UnkEB(unsigned char* byte)
-{
- param = 0;
- Parse(byte);
-}
-
-UnkEB::UnkEB(unsigned char code, bool)
-{
- SetParam(code);
-}
-
-// Getters / Setters
-unsigned char UnkEB::GetParam()
-{
- return param;
-}
-
-void UnkEB::SetParam(unsigned char value)
-{
- param = value;
-}
-
-// Re-implemented
-string UnkEB::GenAsm()
-{
- stringstream tmpAsmOut;
- tmpAsmOut << hex << "db $" << (short)0xEB << ", $" << (short)param;
- return tmpAsmOut.str();
-}
-
-bool UnkEB::Parse(unsigned char* byte)
-{
- param = byte[1];
- return true;
-}
-
-bool UnkEB::IsValid(unsigned char* byte)
-{
- if(byte[0] == 0xEB) return true;
- else return false;
-}
-
-unsigned int UnkEB::Arguments()
-{
- // 1 1-Byte param
- return 1;
-}
\ No newline at end of file |