Mercurial > hg > ede
view emulator/iset.h @ 27:a542cd390efd
long overdue update
author | james <jb302@eecs.qmul.ac.uk> |
---|---|
date | Wed, 02 Apr 2014 14:11:50 +0100 |
parents | 256d24488e3f |
children |
line wrap: on
line source
/* iset.h * op function definitions */ #ifndef ISET_H #define ISET_H /* current opcode */ unsigned char op; /* temp registers for various instructions */ unsigned char tmpb; unsigned short tmpw; /* instruction pointer table */ typedef struct { void (*iset[256])(void); } ITABLE; void JNS(void); void LJMP(void); void SET(void); void JPO(void); void ANL(void); void JNZ(void); void HLT(void); void RRC(void); void POP(void); void JNC(void); void SUBB(void); void PCALL(void); void IN(void); void INC(void); void XRL(void); void SUB(void); void RR(void); void SJMP(void); void RETI(void); void RET(void); void INT(void); void ADD(void); void ADDC(void); void RL(void); void MUL(void); void JC(void); void JMP(void); void DJNZ(void); void CLR(void); void JZ(void); void JPE(void); void LAF(void); void MOV(void); void RLC(void); void JS(void); void ORL(void); void CJNE(void); void XCSD(void); void LCALL(void); void DA(void); void NOP(void); void SFA(void); void CPL(void); void PUSH(void); void DIV(void); void DEC(void); void OUT(void); void PJMP(void); #endif