diff options
Diffstat (limited to 'src/z80.c')
-rw-r--r-- | src/z80.c | 111 |
1 files changed, 56 insertions, 55 deletions
@@ -811,11 +811,11 @@ static int WriteRegisterPairModes(const RegisterPairCodes *codes, size_t count, /* Assume accumulator if only one argument */ -CommandStatus AssumeAccumulator(int argc, char *argv[], int quoted[], - char *err, size_t errsize, - RegisterMode *r1, RegisterMode *r2, - RegisterType *t1, RegisterType *t2, - int *off1, int *off2) +static CommandStatus AssumeAccumulator(int argc, char *argv[], int quoted[], + char *err, size_t errsize, + RegisterMode *r1, RegisterMode *r2, + RegisterType *t1, RegisterType *t2, + int *off1, int *off2) { CMD_ARGC_CHECK(2); @@ -933,8 +933,8 @@ static CommandStatus IllegalArgs(int argc, char *argv[], int quoted[], /* ---------------------------------------- COMMAND HANDLERS */ -CommandStatus LD(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus LD(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { static RegisterPairCodes codes[] = { @@ -1124,8 +1124,8 @@ CommandStatus LD(const char *label, int argc, char *argv[], } -CommandStatus PUSH(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus PUSH(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { RegisterMode r1; RegisterType t1; @@ -1162,8 +1162,8 @@ CommandStatus PUSH(const char *label, int argc, char *argv[], } -CommandStatus POP(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus POP(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { RegisterMode r1; RegisterType t1; @@ -1200,8 +1200,8 @@ CommandStatus POP(const char *label, int argc, char *argv[], } -CommandStatus EX(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus EX(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { static RegisterPairCodes codes[] = { @@ -1243,8 +1243,8 @@ CommandStatus EX(const char *label, int argc, char *argv[], } -CommandStatus ADD(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus ADD(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { static RegisterPairCodes codes[] = { @@ -1309,8 +1309,8 @@ CommandStatus ADD(const char *label, int argc, char *argv[], } -CommandStatus ADC(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus ADC(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { static RegisterPairCodes codes[] = { @@ -1358,8 +1358,8 @@ CommandStatus ADC(const char *label, int argc, char *argv[], } -CommandStatus SUB(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus SUB(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { static RegisterPairCodes codes[] = { @@ -1398,8 +1398,8 @@ CommandStatus SUB(const char *label, int argc, char *argv[], } -CommandStatus SBC(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus SBC(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { static RegisterPairCodes codes[] = { @@ -1447,8 +1447,8 @@ CommandStatus SBC(const char *label, int argc, char *argv[], } -CommandStatus AND(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus AND(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { static RegisterPairCodes codes[] = { @@ -1487,8 +1487,8 @@ CommandStatus AND(const char *label, int argc, char *argv[], } -CommandStatus OR(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus OR(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { static RegisterPairCodes codes[] = { @@ -1527,8 +1527,8 @@ CommandStatus OR(const char *label, int argc, char *argv[], } -CommandStatus XOR(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus XOR(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { static RegisterPairCodes codes[] = { @@ -1567,8 +1567,8 @@ CommandStatus XOR(const char *label, int argc, char *argv[], } -CommandStatus CP(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus CP(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { static RegisterPairCodes codes[] = { @@ -1607,8 +1607,8 @@ CommandStatus CP(const char *label, int argc, char *argv[], } -CommandStatus IM(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus IM(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { static int im[3] = {0x46, 0x56, 0x5e}; RegisterMode r1; @@ -1635,8 +1635,8 @@ CommandStatus IM(const char *label, int argc, char *argv[], } -CommandStatus INC(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus INC(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { RegisterMode r1; RegisterType t1; @@ -1681,8 +1681,8 @@ CommandStatus INC(const char *label, int argc, char *argv[], } -CommandStatus DEC(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus DEC(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { RegisterMode r1; RegisterType t1; @@ -1727,8 +1727,9 @@ CommandStatus DEC(const char *label, int argc, char *argv[], } -CommandStatus RLC_RL_RRC_RR_ETC(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus RLC_RL_RRC_RR_ETC(const char *label, + int argc, char *argv[], + int quoted[], char *err, size_t errsize) { RegisterMode r1; RegisterType t1; @@ -1830,8 +1831,8 @@ CommandStatus RLC_RL_RRC_RR_ETC(const char *label, int argc, char *argv[], } -CommandStatus BIT_SET_RES(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus BIT_SET_RES(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { RegisterMode r1, r2; RegisterType t1, t2; @@ -1926,8 +1927,8 @@ CommandStatus BIT_SET_RES(const char *label, int argc, char *argv[], } -CommandStatus JP(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus JP(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { if (argc == 2) { @@ -1982,8 +1983,8 @@ CommandStatus JP(const char *label, int argc, char *argv[], } -CommandStatus JR(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus JR(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { if (argc == 2) { @@ -2043,8 +2044,8 @@ CommandStatus JR(const char *label, int argc, char *argv[], } -CommandStatus DJNZ(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus DJNZ(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { RegisterMode mode; RegisterType type; @@ -2076,8 +2077,8 @@ CommandStatus DJNZ(const char *label, int argc, char *argv[], } -CommandStatus CALL(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus CALL(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { if (argc == 2) { @@ -2125,8 +2126,8 @@ CommandStatus CALL(const char *label, int argc, char *argv[], } -CommandStatus RET(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus RET(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { if (argc == 1) { @@ -2151,8 +2152,8 @@ CommandStatus RET(const char *label, int argc, char *argv[], } -CommandStatus RST(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus RST(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { static struct { @@ -2207,8 +2208,8 @@ CommandStatus RST(const char *label, int argc, char *argv[], } -CommandStatus IN(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus IN(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { RegisterMode r1, r2; RegisterType t1, t2; @@ -2255,8 +2256,8 @@ CommandStatus IN(const char *label, int argc, char *argv[], } -CommandStatus OUT(const char *label, int argc, char *argv[], - int quoted[], char *err, size_t errsize) +static CommandStatus OUT(const char *label, int argc, char *argv[], + int quoted[], char *err, size_t errsize) { RegisterMode r1, r2; RegisterType t1, t2; |