185 char consoleX1X2DifferentLabel[
MAX_TEMPORARY_STORAGE]; sprintf( consoleX1X2DifferentLabel,
"%sx1x2diff", label );
234 consoleX1X2DifferentLabel,
244 cpu_label( _environment, consoleX1X2DifferentLabel );
268 cpu_label( _environment, consoleX1LTX2Label );
290 cpu_label( _environment, consoleX1LTSWLabel );
309 cpu_label( _environment, consoleY2LTY1Label );
322 cpu_inc( _environment,
"CONSOLEW" );
334 cpu_inc( _environment,
"CONSOLEH" );
void cpu_inc(Environment *_environment, char *_variable)
void cpu_label(Environment *_environment, char *_label)
void cpu_compare_and_branch_8bit_const(Environment *_environment, char *_source, int _destination, char *_label, int _positive)
CPU 6309: emit code to compare two 8 bit values and jump if they are equal/different
void console_calculate_vars(Environment *_environment)
void console_calculate(Environment *_environment)
Variable * variable_retrieve_or_define(Environment *_environment, char *_name, VariableType _type, int _value)
Variable * variable_less_than(Environment *_environment, char *_source, char *_destination, int _equal)
Compare two variable and return the result of comparation.
Variable * variable_greater_than(Environment *_environment, char *_source, char *_destination, int _equal)
Compare two variable and return the result of comparation.
Variable * variable_move(Environment *_environment, char *_source, char *_destination)
Store the value of a variable inside another variable by converting it.
Variable * variable_sub_const(Environment *_environment, char *_source, int _destination)
Make a differenze between a variable a constant, and return the difference of them.
Variable * variable_sub(Environment *_environment, char *_source, char *_dest)
Make a differenze between two variable and return the difference of them.
Variable * variable_compare(Environment *_environment, char *_source, char *_destination)
Compare two variable and return the result of comparation.
Variable * variable_store(Environment *_environment, char *_destination, unsigned int _value)
Store a direct value to a variable.
void console_vars(Environment *_environment, char *_x1, char *_y1, char *_x2, char *_y2)
void console(Environment *_environment, int _x1, int _y1, int _x2, int _y2)
Emit code for CONSOLE.
void console_init(Environment *_environment)
Console consoles[MAX_CONSOLES]
#define MAX_TEMPORARY_STORAGE
struct _Variable Variable
Structure of a single variable.
struct _Environment Environment
Structure of compilation environment.