mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-08 00:25:28 +13:00
made changes in repo
hg-commit-id: 1145e088ee27
This commit is contained in:
parent
21caa525cc
commit
4d0797bc3a
30 changed files with 1748 additions and 0 deletions
47
music/pokeredmusicdisasm/Stop.cpp
Normal file
47
music/pokeredmusicdisasm/Stop.cpp
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
#include <sstream>
|
||||
#include "Stop.h"
|
||||
using namespace std;
|
||||
|
||||
Stop::Stop()
|
||||
{}
|
||||
|
||||
Stop::Stop(unsigned char* byte)
|
||||
{
|
||||
Parse(byte);
|
||||
}
|
||||
|
||||
bool Stop::IsValid(unsigned char* byte)
|
||||
{
|
||||
if(byte[0] == 0xFF)
|
||||
{
|
||||
error = false; // Unblock assembling
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
error = true; // Block assembling
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
string Stop::GenAsm()
|
||||
{
|
||||
string tmpRet = AbstractData::GenAsm();
|
||||
if(tmpRet != "") return false;
|
||||
|
||||
stringstream tmpAsmOut;
|
||||
tmpAsmOut << "mus_end";
|
||||
return tmpAsmOut.str();
|
||||
}
|
||||
|
||||
bool Stop::Parse(unsigned char* byte)
|
||||
{
|
||||
if(AbstractData::Parse(byte)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
unsigned int Stop::Arguments()
|
||||
{
|
||||
// No Arguments
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue