s502 assembler
A very simple assembler for the 6502 line of processors written in C
|
Go to the documentation of this file. 1 #ifndef GUARD_INSTRUCTIONS
2 #define GUARD_INSTRUCTIONS
@ ADRM_COUNT
Total number of addressing modes.
void instruction_free(Instruction *list)
free all memory associated with an Instruction* list
void instruction_print_all(Instruction *list)
debug-print all instructions in a list
char mnem[4]
3-letter mnemonic of an instruction + trailing 0
struct Instruction * next
Next instruction pointer on NULL.
void instruction_print(Instruction *instr)
fancy-print one instruction data
Instruction * instruction_load(char *fname)
Load instruction data from CSV file.
AddressMode enum and related data.
linked list member holding instruction data
unsigned char opcs[ADRM_COUNT]
Different combinarions of this instruction. Invalid ones are set to OPC_INVALID.
Instruction * instruction_find(Instruction *list, char *mnem)
find the Instruction entry for a given mnemonic
@ OPC_INVALID
An invalid opcode to signal invalid / non-existent variations.