s502 assembler
A very simple assembler for the 6502 line of processors written in C
|
implement token member methods More...
#include "debugmalloc.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "tokenFunc.h"
#include "util.h"
#include "number.h"
#include "state.h"
#include "logging.h"
#include "directive.h"
Go to the source code of this file.
Functions | |
void | token_print (Token *token) |
int | token_analyze_instruction (State *s, Token *t) |
int | token_recognize (Token *t) |
int | token_get_operand (State *s, Token *t) |
int | token_compile (State *s, Token *t, char **dataptr) |
Definition at line 224 of file tokenFunc.c.
References ADRM_NAMES, ADRM_SIZES, Token::binSize, ERROR, FAIL, Token::instr, OPC_INVALID, Token::token_get_addressmode(), Token::token_link_instruction(), and Token::token_print().
Definition at line 318 of file tokenFunc.c.
References ADRM_REL, Token::binSize, directive_compile(), ERROR, Token::instr, Token::token_print(), TT_DIRECTIVE, TT_INSTR, and Token::type.
Definition at line 287 of file tokenFunc.c.
References Token::binSize, FAIL, Token::instr, NUMBER_ERROR, number_get_number(), NUMBER_LABEL_NODEF, Token::stripped, Token::token_print(), TT_INSTR, and Token::type.
void token_print | ( | Token * | token | ) |
Definition at line 20 of file tokenFunc.c.
References Token::len, Token::source, and Token::stripped.
int token_recognize | ( | Token * | t | ) |
Definition at line 251 of file tokenFunc.c.
References ERROR, Token::instr, Token::len, LOG, LOGDO, Token::stripped, Token::token_print(), TT_DIRECTIVE, TT_INSTR, TT_LABEL, and Token::type.