|
s502 assembler
A very simple assembler for the 6502 line of processors written in C
|
Implement funtions defined in instructions.h. More...
#include "debugmalloc.h"#include <stdio.h>#include <errno.h>#include "logging.h"#include "number.h"#include "addressmode.h"#include "instructions.h"#include "util.h"Go to the source code of this file.
Functions | |
| Instruction * | instruction_load (char *fname) |
| Instruction * | instruction_find (Instruction *list, char *mnem) |
| void | instruction_free (Instruction *list) |
| void | instruction_print (Instruction *instr) |
| void | instruction_print_all (Instruction *list) |
Implement funtions defined in instructions.h.
Definition in file instructions.c.
| Instruction* instruction_find | ( | Instruction * | list, |
| char * | mnem | ||
| ) |
Definition at line 111 of file instructions.c.
References Instruction::mnem, Instruction::next, and util_match_string().
| void instruction_free | ( | Instruction * | list | ) |
| Instruction* instruction_load | ( | char * | fname | ) |
Definition at line 18 of file instructions.c.
References ERROR, Instruction::instruction_free(), Instruction::mnem, Instruction::next, number_char_to_digit(), OPC_INVALID, and Instruction::opcs.
| void instruction_print | ( | Instruction * | instr | ) |
Definition at line 132 of file instructions.c.
References ADRM_COUNT, ADRM_NAMES, Instruction::mnem, OPC_INVALID, and Instruction::opcs.
| void instruction_print_all | ( | Instruction * | list | ) |
Definition at line 141 of file instructions.c.
References Instruction::instruction_print(), and Instruction::next.