fix some codestyle
This commit is contained in:
@@ -101,7 +101,7 @@ void GetEA (EffAddr* A)
|
|||||||
if (TokIsSep (CurTok.Tok)) {
|
if (TokIsSep (CurTok.Tok)) {
|
||||||
|
|
||||||
A->AddrModeSet = AM65_IMPLICIT;
|
A->AddrModeSet = AM65_IMPLICIT;
|
||||||
if (GetCPU() == CPU_45GS02) {
|
if (GetCPU () == CPU_45GS02) {
|
||||||
A->AddrModeSet |= AM65_Q;
|
A->AddrModeSet |= AM65_Q;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -194,12 +194,12 @@ void GetEA (EffAddr* A)
|
|||||||
if (CurTok.Tok == TOK_COMMA) {
|
if (CurTok.Tok == TOK_COMMA) {
|
||||||
/* [dir],y */
|
/* [dir],y */
|
||||||
NextTok ();
|
NextTok ();
|
||||||
if (GetCPU() == CPU_45GS02) {
|
if (GetCPU () == CPU_45GS02) {
|
||||||
Consume(TOK_Z, "'Z' expected");
|
Consume (TOK_Z, "'Z' expected");
|
||||||
A->AddrModeSet = AM65_32BIT_BASE_IND_Z;
|
A->AddrModeSet = AM65_32BIT_BASE_IND_Z;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Consume(TOK_Y, "'Y' expected");
|
Consume (TOK_Y, "'Y' expected");
|
||||||
A->AddrModeSet = AM65_DIR_IND_LONG_Y;
|
A->AddrModeSet = AM65_DIR_IND_LONG_Y;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -2214,7 +2214,7 @@ static void Emit4510 (EffAddr* A) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* No error, output code */
|
/* No error, output code */
|
||||||
EmitCode(A);
|
EmitCode (A);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -2226,7 +2226,7 @@ static void Put4510 (const InsDesc* Ins)
|
|||||||
|
|
||||||
/* Evaluate the addressing mode used */
|
/* Evaluate the addressing mode used */
|
||||||
if (EvalEA (Ins, &A)) {
|
if (EvalEA (Ins, &A)) {
|
||||||
Emit4510(&A);
|
Emit4510 (&A);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2237,24 +2237,26 @@ static void Put45GS02 (const InsDesc* Ins)
|
|||||||
{
|
{
|
||||||
EffAddr A;
|
EffAddr A;
|
||||||
|
|
||||||
if (EvalEA(Ins, &A)) {
|
if (EvalEA (Ins, &A)) {
|
||||||
if (A.AddrModeSet == AM65_32BIT_BASE_IND_Z) {
|
if (A.AddrModeSet == AM65_32BIT_BASE_IND_Z) {
|
||||||
Emit0(0xEA); /* NOP prefix */
|
Emit0 (0xEA); /* NOP prefix */
|
||||||
}
|
}
|
||||||
Emit4510(&A);
|
Emit4510 (&A);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static void Put45GS02_Q (const InsDesc* Ins) {
|
static void Put45GS02_Q (const InsDesc* Ins)
|
||||||
|
{
|
||||||
EffAddr A;
|
EffAddr A;
|
||||||
|
|
||||||
if (EvalEA(Ins, &A)) {
|
if (EvalEA(Ins, &A)) {
|
||||||
Emit0(0x42);
|
Emit0 (0x42);
|
||||||
Emit0(0x42);
|
Emit0 (0x42);
|
||||||
if ((A.AddrModeBit == AM65_DIR_IND_LONG) || (A.AddrModeBit == AM65_32BIT_BASE_IND_Z)) {
|
if ((A.AddrModeBit == AM65_DIR_IND_LONG) ||
|
||||||
Emit0(0xEA); /* NOP prefix */
|
(A.AddrModeBit == AM65_32BIT_BASE_IND_Z)) {
|
||||||
|
Emit0 (0xEA); /* NOP prefix */
|
||||||
}
|
}
|
||||||
if (A.Opcode == 0xea) {
|
if (A.Opcode == 0xea) {
|
||||||
A.Opcode = 0x1a;
|
A.Opcode = 0x1a;
|
||||||
@@ -2262,7 +2264,7 @@ static void Put45GS02_Q (const InsDesc* Ins) {
|
|||||||
else if (A.Opcode == 0xca) {
|
else if (A.Opcode == 0xca) {
|
||||||
A.Opcode = 0x3a;
|
A.Opcode = 0x3a;
|
||||||
}
|
}
|
||||||
EmitCode(&A);
|
EmitCode (&A);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user