78 cpu_label( _environment, sbpenGet0Label );
80 cpu_jump( _environment, sbpenGetDoneLabel );
82 cpu_label( _environment, sbpenGet1Label );
84 cpu_jump( _environment, sbpenGetDoneLabel );
86 cpu_label( _environment, sbpenGet2Label );
88 cpu_jump( _environment, sbpenGetDoneLabel );
90 cpu_label( _environment, sbpenGet3Label );
92 cpu_jump( _environment, sbpenGetDoneLabel );
94 cpu_label( _environment, sbpenGetDoneLabel );
void cpu_label(Environment *_environment, char *_label)
void cpu_jump(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
Variable * variable_retrieve(Environment *_environment, char *_name)
Variable * variable_retrieve_or_define(Environment *_environment, char *_name, VariableType _type, int _value)
Variable * variable_move(Environment *_environment, char *_source, char *_destination)
Store the value of a variable inside another variable by converting it.
Variable * variable_temporary(Environment *_environment, VariableType _type, char *_meaning)
Define a temporary variable.
void color(Environment *_environment, int _index, int _shade)
Emit ASM code for instruction COLOR [int], [int].
void sbpen_set(Environment *_environment, int _index, char *_color)
Variable * sbpen_get(Environment *_environment, char *_index)
#define MAX_TEMPORARY_STORAGE
struct _Variable Variable
Structure of a single variable.
struct _Environment Environment
Structure of compilation environment.