#include <stdio.h>#include <stdlib.h>#include <string.h>#include "uctools.h"Include dependency graph for wuc.c:

Go to the source code of this file.
Defines | |
| #define | MAX_LABELS 3500 |
| #define | TOKEN_LENGTH 25600 |
Functions | |
| void | emit_byte (int i) |
| void | emit_word (int i) |
| void | emit_dword (int i) |
| void | add_label (void) |
| int | get_label (void) |
| void | check_jump_label_16 (int label) |
| void | check_data_label_16 (int label) |
| void | read_token (FILE *fi) |
| int | main (int argc, char *argv[]) |
Variables | |
| static opcode_desc | push_table [] |
| static opcode_desc | pop_table [] |
| static const char * | compiler_table [] |
| char | token [25600] |
| char * | token2 |
| char | curlabel [256] |
| char | indata |
| int | byte |
| int | word |
| int | pass |
| int | offset |
| int | datasize |
| int | codesize |
| int | funcnum |
| int | extended |
| char | labels [3500][10] |
| int | offsets [3500] |
| int | lindex |
| FILE * | fo |
| FILE * | fi |
| #define MAX_LABELS 3500 |
| #define TOKEN_LENGTH 25600 |
| void add_label | ( | void | ) |
| void check_data_label_16 | ( | int | label | ) |
| void check_jump_label_16 | ( | int | label | ) |
| void emit_byte | ( | int | i | ) |
| void emit_dword | ( | int | i | ) |
Definition at line 58 of file wuc.c.
References emit_byte().
Referenced by main().
Here is the call graph for this function:

| void emit_word | ( | int | i | ) |
Definition at line 52 of file wuc.c.
References emit_byte().
Referenced by main().
Here is the call graph for this function:

| int get_label | ( | void | ) |
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 156 of file wuc.c.
References add_label(), bg_intrinsic_size, bg_intrinsic_table, BYTE, CALL, check_data_label_16(), check_jump_label_16(), codesize, compiler_table, curlabel, DATA_STRING, DATA_STRING32, datasize, emit_byte(), emit_dword(), emit_word(), EXTCALL, extended, fi, FLGREF, fo, func_table, funcnum, get_label(), IMMED, IMMED32, IMMED_AND_RELATIVE_JUMP, IMMED_RELJUMP32, indata, lindex, offset, opcode_table, pass, POP, pop_table, PUSH, push_table, read_token(), RELATIVE_JUMP, RELATIVE_JUMP32, si_intrinsic_size, si_intrinsic_table, SLOOP, SLOOP32, token, token2, _opcode_desc::type, VARREF, and word.
Here is the call graph for this function:

| void read_token | ( | FILE * | fi | ) |
| int codesize |
const char* compiler_table[] [static] |
| char curlabel[256] |
Definition at line 31 of file wuc.c.
Referenced by check_data_label_16(), check_jump_label_16(), and main().
| int datasize |
| int extended |
| FILE * fi |
Definition at line 39 of file wuc.c.
Referenced by Shape_file_set::append(), playfli::info(), main(), and rebuild().
| int funcnum |
| char indata |
| char labels[3500][10] |
Definition at line 35 of file wuc.c.
Referenced by add_label(), get_label(), and Uc_function::~Uc_function().
| int lindex |
| int offset |
Definition at line 32 of file wuc.c.
Referenced by add_label(), Uc_function::add_string(), Uc_string_symbol::create_expression(), emit_byte(), Uc_static_var_symbol::gen_assign(), Uc_var_symbol::gen_assign(), Uc_string_symbol::gen_value(), Uc_static_var_symbol::gen_value(), Uc_var_symbol::gen_value(), Uc_function::link(), main(), Text_button::paint(), Newfile_gump::paint(), printcodeseg(), process_code_seg(), Segment_file::retrieve(), Usecode_internal::run(), Game_object::say(), Game::show_menu(), Usecode_internal::uc_trace_disasm(), and Game_window::write_schedules().
| int offsets[3500] |
Definition at line 36 of file wuc.c.
Referenced by add_label(), get_label(), Get_slime_neighbors(), Shapes_vga_file::read_info(), Game_window::read_schedules(), Game_window::revert_schedules(), and Shape_file::save().
| int pass |
opcode_desc pop_table[] [static] |
opcode_desc push_table[] [static] |
| char token[25600] |
Definition at line 31 of file wuc.c.
Referenced by add_label(), get_label(), Get_token(), main(), and read_token().
| int word |
1.5.1