From 8edfcc4b1e36111d400b5f104a04001c66416426 Mon Sep 17 00:00:00 2001 From: "U-Fish-PC\\Daniel" Date: Sat, 12 Oct 2013 14:40:37 -0400 Subject: All music and sfx --- music/pokeredmusicdisasm/Call.cpp | 71 --------------------------------------- 1 file changed, 71 deletions(-) delete mode 100644 music/pokeredmusicdisasm/Call.cpp (limited to 'music/pokeredmusicdisasm/Call.cpp') diff --git a/music/pokeredmusicdisasm/Call.cpp b/music/pokeredmusicdisasm/Call.cpp deleted file mode 100644 index bbc2c21e..00000000 --- a/music/pokeredmusicdisasm/Call.cpp +++ /dev/null @@ -1,71 +0,0 @@ -#include -#include "Call.h" -using namespace std; - -Call::Call() -{ - error = false; - address = 0; -} - -Call::Call(unsigned char* byte) -{ - Parse(byte); -} - -Call::Call(unsigned short value, bool) -{ - SetAddress(value); -} - -unsigned short Call::GetAddress() -{ - return address; -} - -void Call::SetAddress(unsigned short value) -{ - address = value; -} - -string Call::GenAsm() -{ - string tmpRet = AbstractData::GenAsm(); - if(tmpRet != "") return tmpRet; - - stringstream tmpAsmOut; - tmpAsmOut << "mus_call" << " $" << hex << uppercase << address; - return tmpAsmOut.str(); -} - -bool Call::IsValid(unsigned char* byte) -{ - if(byte[0] == 0xFD) - { - error = false; - return true; - } - else - { - error = true; - return false; - } -} - -bool Call::Parse(unsigned char* byte) -{ - if(!AbstractData::Parse(byte)) return false; - - // Get Address - address = byte[2]; - address <<= 8; - address |= byte[1]; - - return true; -} - -unsigned int Call::Arguments() -{ - // 1 2-byte argument = 2 bytes - return 2; -} \ No newline at end of file -- cgit v1.3.1-sl0p