Style and alignment fixes.
This commit is contained in:
@@ -748,19 +748,19 @@ void OH_JmpAbsoluteXIndirect (const OpcDesc* D)
|
|||||||
|
|
||||||
void OH_JsrAbsolute (const OpcDesc* D)
|
void OH_JsrAbsolute (const OpcDesc* D)
|
||||||
{
|
{
|
||||||
unsigned ParamSize = SubroutineParamSize[GetCodeWord(PC+1)];
|
unsigned ParamSize = SubroutineParamSize[GetCodeWord (PC+1)];
|
||||||
OH_Absolute (D);
|
OH_Absolute (D);
|
||||||
if (ParamSize > 0) {
|
if (ParamSize > 0) {
|
||||||
unsigned RemainingBytes;
|
unsigned RemainingBytes;
|
||||||
unsigned BytesLeft;
|
unsigned BytesLeft;
|
||||||
PC += D->Size;
|
PC += D->Size;
|
||||||
RemainingBytes = GetRemainingBytes();
|
RemainingBytes = GetRemainingBytes ();
|
||||||
if (RemainingBytes < ParamSize) {
|
if (RemainingBytes < ParamSize) {
|
||||||
ParamSize = RemainingBytes;
|
ParamSize = RemainingBytes;
|
||||||
}
|
}
|
||||||
BytesLeft = ParamSize;
|
BytesLeft = ParamSize;
|
||||||
while (BytesLeft > 0) {
|
while (BytesLeft > 0) {
|
||||||
unsigned Chunk = (BytesLeft > BytesPerLine)? BytesPerLine : BytesLeft;
|
unsigned Chunk = (BytesLeft > BytesPerLine) ? BytesPerLine : BytesLeft;
|
||||||
DataByteLine (Chunk);
|
DataByteLine (Chunk);
|
||||||
BytesLeft -= Chunk;
|
BytesLeft -= Chunk;
|
||||||
PC += Chunk;
|
PC += Chunk;
|
||||||
|
|||||||
@@ -377,19 +377,19 @@ static void LabelSection (void)
|
|||||||
/* Parse a label section */
|
/* Parse a label section */
|
||||||
{
|
{
|
||||||
static const IdentTok LabelDefs[] = {
|
static const IdentTok LabelDefs[] = {
|
||||||
{ "COMMENT", INFOTOK_COMMENT },
|
{ "COMMENT", INFOTOK_COMMENT },
|
||||||
{ "ADDR", INFOTOK_ADDR },
|
{ "ADDR", INFOTOK_ADDR },
|
||||||
{ "NAME", INFOTOK_NAME },
|
{ "NAME", INFOTOK_NAME },
|
||||||
{ "SIZE", INFOTOK_SIZE },
|
{ "SIZE", INFOTOK_SIZE },
|
||||||
{ "PARAMSIZE", INFOTOK_PARAMSIZE },
|
{ "PARAMSIZE", INFOTOK_PARAMSIZE },
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Locals - initialize to avoid gcc warnings */
|
/* Locals - initialize to avoid gcc warnings */
|
||||||
char* Name = 0;
|
char* Name = 0;
|
||||||
char* Comment = 0;
|
char* Comment = 0;
|
||||||
long Value = -1;
|
long Value = -1;
|
||||||
long Size = -1;
|
long Size = -1;
|
||||||
long ParamSize = -1;
|
long ParamSize = -1;
|
||||||
|
|
||||||
/* Skip the token */
|
/* Skip the token */
|
||||||
InfoNextTok ();
|
InfoNextTok ();
|
||||||
|
|||||||
Reference in New Issue
Block a user