Commit 1e2cd5d2 authored by Sergio Costas's avatar Sergio Costas

Final changes

parent cc6c4549
......@@ -162,7 +162,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
break;
case 32: // JR NZ,n
tmp1 = Z80free_read_param_8(processor);
if (0 == (F_Z&processor->Rm.br.F)) {
if (0 == (F_Z & processor->Rm.br.F)) {
Z80free_jump_relative(processor, tmp1);
return (12);
} else {
......@@ -199,7 +199,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
break;
case 40: // JR Z,n
tmp1 = Z80free_read_param_8(processor);
if (F_Z&processor->Rm.br.F) {
if (F_Z & processor->Rm.br.F) {
Z80free_jump_relative(processor, tmp1);
return (12);
} else {
......@@ -239,7 +239,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
break;
case 48: // JR NC,n
tmp1 = Z80free_read_param_8(processor);
if (0 == (F_C&processor->Rm.br.F)) {
if (0 == (F_C & processor->Rm.br.F)) {
Z80free_jump_relative(processor, tmp1);
return (12);
} else {
......@@ -279,7 +279,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
break;
case 56: // JR CF,n
tmp1 = Z80free_read_param_8(processor);
if (F_C&processor->Rm.br.F) {
if (F_C & processor->Rm.br.F) {
Z80free_jump_relative(processor, tmp1);
return (12);
} else {
......@@ -846,7 +846,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
return (4);
break;
case 192: // RET NZ
if (0 == (F_Z&processor->Rm.br.F)) {
if (0 == (F_Z & processor->Rm.br.F)) {
processor->PC = Z80free_doPop(processor);
return (11);
} else {
......@@ -859,7 +859,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
break;
case 194: // JP NZ,nn
tmp2 = Z80free_read_param_16(processor);
if (0 == (F_Z&processor->Rm.br.F)) {
if (0 == (F_Z & processor->Rm.br.F)) {
processor->PC = tmp2;
return (10);
} else {
......@@ -873,7 +873,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
break;
case 196: // CALL NZ,nn
tmp2 = Z80free_read_param_16(processor);
if (0 == (F_Z&processor->Rm.br.F)) {
if (0 == (F_Z & processor->Rm.br.F)) {
Z80free_doPush(processor, processor->PC);
processor->PC = tmp2;
return (17);
......@@ -895,7 +895,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
return (11);
break;
case 200: // RET Z
if (F_Z&processor->Rm.br.F) {
if (F_Z & processor->Rm.br.F) {
processor->PC = Z80free_doPop(processor);
return (11);
} else {
......@@ -908,7 +908,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
break;
case 202: // JP Z,nn
tmp2 = Z80free_read_param_16(processor);
if (F_Z&processor->Rm.br.F) {
if (F_Z & processor->Rm.br.F) {
processor->PC = tmp2;
return (10);
} else {
......@@ -917,7 +917,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
break;
case 204: // CALL Z,nn
tmp2 = Z80free_read_param_16(processor);
if (F_Z&processor->Rm.br.F) {
if (F_Z & processor->Rm.br.F) {
Z80free_doPush(processor, processor->PC);
processor->PC = tmp2;
return (17);
......@@ -941,7 +941,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
return (11);
break;
case 208: // RET NC
if (0 == (F_C&processor->Rm.br.F)) {
if (0 == (F_C & processor->Rm.br.F)) {
processor->PC = Z80free_doPop(processor);
return (11);
} else {
......@@ -954,7 +954,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
break;
case 210: // JP NC,nn
tmp2 = Z80free_read_param_16(processor);
if (0 == (F_C&processor->Rm.br.F)) {
if (0 == (F_C & processor->Rm.br.F)) {
processor->PC = tmp2;
return (10);
} else {
......@@ -969,7 +969,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
break;
case 212: // CALL NC,nn
tmp2 = Z80free_read_param_16(processor);
if (0 == (F_C&processor->Rm.br.F)) {
if (0 == (F_C & processor->Rm.br.F)) {
Z80free_doPush(processor, processor->PC);
processor->PC = tmp2;
return (17);
......@@ -991,7 +991,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
return (11);
break;
case 216: // RET CF
if (F_C&processor->Rm.br.F) {
if (F_C & processor->Rm.br.F) {
processor->PC = Z80free_doPop(processor);
return (11);
} else {
......@@ -1012,7 +1012,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
break;
case 218: // JP CF,nn
tmp2 = Z80free_read_param_16(processor);
if (F_C&processor->Rm.br.F) {
if (F_C & processor->Rm.br.F) {
processor->PC = tmp2;
return (10);
} else {
......@@ -1026,7 +1026,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
break;
case 220: // CALL CF,nn
tmp2 = Z80free_read_param_16(processor);
if (F_C&processor->Rm.br.F) {
if (F_C & processor->Rm.br.F) {
Z80free_doPush(processor, processor->PC);
processor->PC = tmp2;
return (17);
......@@ -1044,7 +1044,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
return (11);
break;
case 224: // RET PO
if (0 == (F_PV&processor->Rm.br.F)) {
if (0 == (F_PV & processor->Rm.br.F)) {
processor->PC = Z80free_doPop(processor);
return (11);
} else {
......@@ -1057,7 +1057,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
break;
case 226: // JP PO,nn
tmp2 = Z80free_read_param_16(processor);
if (0 == (F_PV&processor->Rm.br.F)) {
if (0 == (F_PV & processor->Rm.br.F)) {
processor->PC = tmp2;
return (10);
} else {
......@@ -1072,7 +1072,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
break;
case 228: // CALL PO,nn
tmp2 = Z80free_read_param_16(processor);
if (0 == (F_PV&processor->Rm.br.F)) {
if (0 == (F_PV & processor->Rm.br.F)) {
Z80free_doPush(processor, processor->PC);
processor->PC = tmp2;
return (17);
......@@ -1094,7 +1094,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
return (11);
break;
case 232: // RET PE
if (F_PV&processor->Rm.br.F) {
if (F_PV & processor->Rm.br.F) {
processor->PC = Z80free_doPop(processor);
return (11);
} else {
......@@ -1108,7 +1108,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
break;
case 234: // JP PE,nn
tmp2 = Z80free_read_param_16(processor);
if (F_PV&processor->Rm.br.F) {
if (F_PV & processor->Rm.br.F) {
processor->PC = tmp2;
return (10);
} else {
......@@ -1123,7 +1123,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
break;
case 236: // CALL PE,nn
tmp2 = Z80free_read_param_16(processor);
if (F_PV&processor->Rm.br.F) {
if (F_PV & processor->Rm.br.F) {
Z80free_doPush(processor, processor->PC);
processor->PC = tmp2;
return (17);
......@@ -1141,7 +1141,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
return (11);
break;
case 240: // RET P
if (0 == (F_S&processor->Rm.br.F)) {
if (0 == (F_S & processor->Rm.br.F)) {
processor->PC = Z80free_doPop(processor);
return (11);
} else {
......@@ -1154,7 +1154,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
break;
case 242: // JP P,nn
tmp2 = Z80free_read_param_16(processor);
if (0 == (F_S&processor->Rm.br.F)) {
if (0 == (F_S & processor->Rm.br.F)) {
processor->PC = tmp2;
return (10);
} else {
......@@ -1168,7 +1168,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
break;
case 244: // CALL P,nn
tmp2 = Z80free_read_param_16(processor);
if (0 == (F_S&processor->Rm.br.F)) {
if (0 == (F_S & processor->Rm.br.F)) {
Z80free_doPush(processor, processor->PC);
processor->PC = tmp2;
return (17);
......@@ -1190,7 +1190,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
return (11);
break;
case 248: // RET M
if (F_S&processor->Rm.br.F) {
if (F_S & processor->Rm.br.F) {
processor->PC = Z80free_doPop(processor);
return (11);
} else {
......@@ -1203,7 +1203,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
break;
case 250: // JP M,nn
tmp2 = Z80free_read_param_16(processor);
if (F_S&processor->Rm.br.F) {
if (F_S & processor->Rm.br.F) {
processor->PC = tmp2;
return (10);
} else {
......@@ -1217,7 +1217,7 @@ int Z80free_codes (Z80FREE *processor, uint8_t opcode) {
break;
case 252: // CALL M,nn
tmp2 = Z80free_read_param_16(processor);
if (F_S&processor->Rm.br.F) {
if (F_S & processor->Rm.br.F) {
Z80free_doPush(processor, processor->PC);
processor->PC = tmp2;
return (17);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment