|
ugBASIC 1.18
An isomorphic BASIC language compiler for retrocomputers
|
Go to the source code of this file.
Functions | |
| void | ef936x_collision (Environment *_environment, char *_sprite_mask, char *_result) |
| VIC-II: emit code to check for collision | |
| void | ef936x_hit (Environment *_environment, char *_sprite_mask, char *_result) |
| VIC-II: emit code to check for collision | |
| void | ef936x_border_color (Environment *_environment, char *_border_color) |
| VIC-II: emit code to change border color | |
| void | ef936x_background_color (Environment *_environment, int _index, int _background_color) |
| VIC-II: emit code to change background color | |
| void | ef936x_background_color_vars (Environment *_environment, char *_index, char *_background_color) |
| VIC-II: emit code to change background color | |
| void | ef936x_background_color_semivars (Environment *_environment, int _index, char *_background_color) |
| VIC-II: emit code to change background color | |
| void | ef936x_background_color_get_vars (Environment *_environment, char *_index, char *_background_color) |
| VIC-II: emit code to change background color | |
| void | ef936x_sprite_common_color (Environment *_environment, char *_index, char *_common_color) |
| VIC-II: emit code to change common sprite's color | |
| void | ef936x_raster_at (Environment *_environment, char *_label, char *_positionlo, char *_positionhi) |
| VIC-II: emit code to set raster irq | |
| void | ef936x_next_raster (Environment *_environment) |
| VIC-II: emit code to wait for next raster irq | |
| void | ef936x_next_raster_at (Environment *_environment, char *_label, char *_positionlo, char *_positionhi) |
| VIC-II: emit code to wait for next raster irq at different position | |
| void | ef936x_bank_select (Environment *_environment, int _bank) |
| void | console_calculate (Environment *_environment) |
| void | console_calculate_vars (Environment *_environment) |
| int | ef936x_screen_mode_enable (Environment *_environment, ScreenMode *_screen_mode) |
| void | ef936x_bitmap_enable (Environment *_environment, int _width, int _height, int _colors) |
| void | ef936x_bitmap_disable (Environment *_environment) |
| void | ef936x_tilemap_enable (Environment *_environment, int _width, int _height, int _colors, int _tile_width, int _tile_height) |
| void | ef936x_bitmap_at (Environment *_environment, char *_address) |
| void | ef936x_colormap_at (Environment *_environment, char *_address) |
| void | ef936x_textmap_at (Environment *_environment, char *_address) |
| void | ef936x_pset_int (Environment *_environment, int _x, int _y, int *_c) |
| void | ef936x_pset_vars (Environment *_environment, char *_x, char *_y, char *_c) |
| void | ef936x_pget_color_vars (Environment *_environment, char *_x, char *_y, char *_result) |
| void | ef936x_screen_on (Environment *_environment) |
| void | ef936x_screen_off (Environment *_environment) |
| void | ef936x_screen_rows (Environment *_environment, char *_rows) |
| void | ef936x_screen_columns (Environment *_environment, char *_columns) |
| void | ef936x_sprite_data_from (Environment *_environment, char *_sprite, char *_address) |
| void | ef936x_sprite_data_set (Environment *_environment, char *_sprite, char *_address) |
| void | ef936x_sprite_enable (Environment *_environment, char *_sprite) |
| void | ef936x_sprite_disable (Environment *_environment, char *_sprite) |
| void | ef936x_sprite_at (Environment *_environment, char *_sprite, char *_x, char *_y) |
| void | ef936x_sprite_expand_vertical (Environment *_environment, char *_sprite) |
| void | ef936x_sprite_expand_horizontal (Environment *_environment, char *_sprite) |
| void | ef936x_sprite_compress_vertical (Environment *_environment, char *_sprite) |
| void | ef936x_sprite_compress_horizontal (Environment *_environment, char *_sprite) |
| void | ef936x_sprite_multicolor (Environment *_environment, char *_sprite) |
| void | ef936x_sprite_monocolor (Environment *_environment, char *_sprite) |
| void | ef936x_sprite_color (Environment *_environment, char *_sprite, char *_color) |
| void | ef936x_sprite_priority (Environment *_environment, char *_sprite, char *_priority) |
| void | ef936x_tiles_at (Environment *_environment, char *_address) |
| void | ef936x_vertical_scroll (Environment *_environment, char *_displacement) |
| void | ef936x_horizontal_scroll (Environment *_environment, char *_displacement) |
| void | ef936x_get_width (Environment *_environment, char *_result) |
| void | ef936x_tiles_get (Environment *_environment, char *_result) |
| void | ef936x_get_height (Environment *_environment, char *_result) |
| void | ef936x_cls (Environment *_environment) |
| void | ef936x_cls_box (Environment *_environment, char *_x1, char *_y1, char *_w, char *_h) |
| void | ef936x_scroll_text (Environment *_environment, int _direction, int _overlap) |
| void | ef936x_text (Environment *_environment, char *_text, char *_text_size, int _raw) |
| void | ef936x_initialization (Environment *_environment) |
| void | ef936x_finalization (Environment *_environment) |
| void | ef936x_hscroll_line (Environment *_environment, int _direction, int _overlap) |
| void | ef936x_hscroll_screen (Environment *_environment, int _direction, int _overlap) |
| void | ef936x_back (Environment *_environment) |
| void | ef936x_cline (Environment *_environment, char *_characters) |
| int | ef936x_image_size (Environment *_environment, int _width, int _height, int _mode) |
| Variable * | ef936x_image_converter (Environment *_environment, char *_data, int _width, int _height, int _depth, int _offset_x, int _offset_y, int _frame_width, int _frame_height, int _mode, int _transparent_color, int _flags) |
| void | ef936x_put_image (Environment *_environment, Resource *_image, char *_x, char *_y, char *_frame, char *_sequence, int _frame_size, int _frame_count, char *_flags) |
| Variable * | ef936x_new_image (Environment *_environment, int _width, int _height, int _mode) |
| Variable * | ef936x_new_images (Environment *_environment, int _frames, int _width, int _height, int _mode) |
| Variable * | ef936x_new_sequence (Environment *_environment, int _sequences, int _frames, int _width, int _height, int _mode) |
| void | ef936x_get_image (Environment *_environment, char *_image, char *_x, char *_y, char *_frame, char *_sequence, int _frame_size, int _frame_count, int _palette) |
| void | ef936x_scroll (Environment *_environment, int _dx, int _dy) |
| void | ef936x_put_tile (Environment *_environment, char *_tile, char *_x, char *_y) |
| void | ef936x_move_tiles (Environment *_environment, char *_tile, char *_x, char *_y) |
| void | ef936x_put_tiles (Environment *_environment, char *_tile, char *_x, char *_y, char *_w, char *_h) |
| void | ef936x_tile_at (Environment *_environment, char *_x, char *_y, char *_result) |
| void | ef936x_use_tileset (Environment *_environment, char *_tileset) |
| Variable * | ef936x_get_raster_line (Environment *_environment) |
| void | ef936x_calculate_sequence_frame_offset_regy (Environment *_environment, char *_sequence, char *_frame, int _frame_size, int _frame_count) |
| void | ef936x_calculate_sequence_frame_offset (Environment *_environment, char *_offset, char *_sequence, char *_frame, int _frame_size, int _frame_count) |
| void | ef936x_blit_image (Environment *_environment, char *_sources[], int _source_count, char *_blit, char *_x, char *_y, char *_frame, char *_sequence, int _frame_size, int _frame_count, int _flags) |
| void | ef936x_slice_image (Environment *_environment, char *_image, char *_frame, char *_sequence, int _frame_size, int _frame_count, char *_destination) |
| int | ef936x_palette_extract (Environment *_environment, char *_data, int _width, int _height, int _depth, int _flags, RGBi *_palette) |
| void | ef936x_flip_image (Environment *_environment, Resource *_image, char *_frame, char *_sequence, int _frame_size, int _frame_count, char *_direction) |
| void | ef936x_fade_out (Environment *_environment, char *_period) |
| void | ef936x_fade_in (Environment *_environment, char *_period) |
| void | ef936x_fade_in_color (Environment *_environment, int _index, int _background_color) |
| void | ef936x_fade_in_color_vars (Environment *_environment, char *_index, char *_background_color) |
| void | ef936x_fade_in_color_semivars (Environment *_environment, int _index, char *_background_color) |
Variables | |
| int | lastUsedSlotInCommonPalette = 0 |
| char | DATATYPE_AS_STRING [][16] |
| void console_calculate | ( | Environment * | _environment | ) |
| void console_calculate_vars | ( | Environment * | _environment | ) |
| void ef936x_back | ( | Environment * | _environment | ) |
| void ef936x_background_color | ( | Environment * | _environment, |
| int | _index, | ||
| int | _background_color ) |
VIC-II: emit code to change background color
This function can be used to issue code aimed at changing the background color of the screen.
| _environment | Current calling environment |
| _index | Index of the background color |
| _background_color | Background color to use |
| void ef936x_background_color_get_vars | ( | Environment * | _environment, |
| char * | _index, | ||
| char * | _background_color ) |
VIC-II: emit code to change background color
This function can be used to issue code aimed at changing the background color of the screen.
| _environment | Current calling environment |
| _index | Index of the background color |
| _background_color | Background color to use |
| void ef936x_background_color_semivars | ( | Environment * | _environment, |
| int | _index, | ||
| char * | _background_color ) |
VIC-II: emit code to change background color
This function can be used to issue code aimed at changing the background color of the screen.
| _environment | Current calling environment |
| _index | Index of the background color |
| _background_color | Background color to use |
| void ef936x_background_color_vars | ( | Environment * | _environment, |
| char * | _index, | ||
| char * | _background_color ) |
VIC-II: emit code to change background color
This function can be used to issue code aimed at changing the background color of the screen.
| _environment | Current calling environment |
| _index | Index of the background color |
| _background_color | Background color to use |
| void ef936x_bank_select | ( | Environment * | _environment, |
| int | _bank ) |
| void ef936x_bitmap_at | ( | Environment * | _environment, |
| char * | _address ) |
| void ef936x_bitmap_disable | ( | Environment * | _environment | ) |
| void ef936x_bitmap_enable | ( | Environment * | _environment, |
| int | _width, | ||
| int | _height, | ||
| int | _colors ) |
| void ef936x_blit_image | ( | Environment * | _environment, |
| char * | _sources[], | ||
| int | _source_count, | ||
| char * | _blit, | ||
| char * | _x, | ||
| char * | _y, | ||
| char * | _frame, | ||
| char * | _sequence, | ||
| int | _frame_size, | ||
| int | _frame_count, | ||
| int | _flags ) |
| void ef936x_border_color | ( | Environment * | _environment, |
| char * | _border_color ) |
| void ef936x_calculate_sequence_frame_offset | ( | Environment * | _environment, |
| char * | _offset, | ||
| char * | _sequence, | ||
| char * | _frame, | ||
| int | _frame_size, | ||
| int | _frame_count ) |
| void ef936x_calculate_sequence_frame_offset_regy | ( | Environment * | _environment, |
| char * | _sequence, | ||
| char * | _frame, | ||
| int | _frame_size, | ||
| int | _frame_count ) |
| void ef936x_cline | ( | Environment * | _environment, |
| char * | _characters ) |
| void ef936x_cls | ( | Environment * | _environment | ) |
| void ef936x_cls_box | ( | Environment * | _environment, |
| char * | _x1, | ||
| char * | _y1, | ||
| char * | _w, | ||
| char * | _h ) |
| void ef936x_collision | ( | Environment * | _environment, |
| char * | _sprite_mask, | ||
| char * | _result ) |
VIC-II: emit code to check for collision
This function can be used to issue code aimed at verifying if a sprite has had a collision with another sprite. The result (0 = no collision, 0xff = collision occurred) is returned in the output variable.
| _environment | Current calling environment |
| _sprite_mask | Sprite mask to use |
| _result | Where to store the result |
| void ef936x_colormap_at | ( | Environment * | _environment, |
| char * | _address ) |
| void ef936x_fade_in | ( | Environment * | _environment, |
| char * | _period ) |
| void ef936x_fade_in_color | ( | Environment * | _environment, |
| int | _index, | ||
| int | _background_color ) |
| void ef936x_fade_in_color_semivars | ( | Environment * | _environment, |
| int | _index, | ||
| char * | _background_color ) |
| void ef936x_fade_in_color_vars | ( | Environment * | _environment, |
| char * | _index, | ||
| char * | _background_color ) |
| void ef936x_fade_out | ( | Environment * | _environment, |
| char * | _period ) |
| void ef936x_finalization | ( | Environment * | _environment | ) |
| void ef936x_flip_image | ( | Environment * | _environment, |
| Resource * | _image, | ||
| char * | _frame, | ||
| char * | _sequence, | ||
| int | _frame_size, | ||
| int | _frame_count, | ||
| char * | _direction ) |
| void ef936x_get_height | ( | Environment * | _environment, |
| char * | _result ) |
| void ef936x_get_image | ( | Environment * | _environment, |
| char * | _image, | ||
| char * | _x, | ||
| char * | _y, | ||
| char * | _frame, | ||
| char * | _sequence, | ||
| int | _frame_size, | ||
| int | _frame_count, | ||
| int | _palette ) |
| Variable * ef936x_get_raster_line | ( | Environment * | _environment | ) |
| void ef936x_get_width | ( | Environment * | _environment, |
| char * | _result ) |
| void ef936x_hit | ( | Environment * | _environment, |
| char * | _sprite_mask, | ||
| char * | _result ) |
VIC-II: emit code to check for collision
This function can be used to issue code aimed at verifying if a sprite has had a collision with a tile. The result (0 = no collision, 0xff = collision occurred) is returned in the output variable.
| _environment | Current calling environment |
| _sprite_mask | Sprite mask to use |
| _result | Where to store the result |
| void ef936x_horizontal_scroll | ( | Environment * | _environment, |
| char * | _displacement ) |
| void ef936x_hscroll_line | ( | Environment * | _environment, |
| int | _direction, | ||
| int | _overlap ) |
| void ef936x_hscroll_screen | ( | Environment * | _environment, |
| int | _direction, | ||
| int | _overlap ) |
| Variable * ef936x_image_converter | ( | Environment * | _environment, |
| char * | _data, | ||
| int | _width, | ||
| int | _height, | ||
| int | _depth, | ||
| int | _offset_x, | ||
| int | _offset_y, | ||
| int | _frame_width, | ||
| int | _frame_height, | ||
| int | _mode, | ||
| int | _transparent_color, | ||
| int | _flags ) |
| int ef936x_image_size | ( | Environment * | _environment, |
| int | _width, | ||
| int | _height, | ||
| int | _mode ) |
| void ef936x_initialization | ( | Environment * | _environment | ) |
| void ef936x_move_tiles | ( | Environment * | _environment, |
| char * | _tile, | ||
| char * | _x, | ||
| char * | _y ) |
| Variable * ef936x_new_image | ( | Environment * | _environment, |
| int | _width, | ||
| int | _height, | ||
| int | _mode ) |
| Variable * ef936x_new_images | ( | Environment * | _environment, |
| int | _frames, | ||
| int | _width, | ||
| int | _height, | ||
| int | _mode ) |
| Variable * ef936x_new_sequence | ( | Environment * | _environment, |
| int | _sequences, | ||
| int | _frames, | ||
| int | _width, | ||
| int | _height, | ||
| int | _mode ) |
| void ef936x_next_raster | ( | Environment * | _environment | ) |
| void ef936x_next_raster_at | ( | Environment * | _environment, |
| char * | _label, | ||
| char * | _positionlo, | ||
| char * | _positionhi ) |
VIC-II: emit code to wait for next raster irq at different position
This function outputs assembly code needed to wait for the next raster on a different position with a different code to execute. Meanwhile, the execution of the main code will resume where it left off.
| _environment | Current calling environment |
| _label | Label to jump to when vertical raster reach the value given |
| _positionlo | The vertical position to wait for (bits 7..0) |
| _positionhi | The vertical position to wait for (bit 8) |
| int ef936x_palette_extract | ( | Environment * | _environment, |
| char * | _data, | ||
| int | _width, | ||
| int | _height, | ||
| int | _depth, | ||
| int | _flags, | ||
| RGBi * | _palette ) |
| void ef936x_pget_color_vars | ( | Environment * | _environment, |
| char * | _x, | ||
| char * | _y, | ||
| char * | _result ) |
| void ef936x_pset_int | ( | Environment * | _environment, |
| int | _x, | ||
| int | _y, | ||
| int * | _c ) |
| void ef936x_pset_vars | ( | Environment * | _environment, |
| char * | _x, | ||
| char * | _y, | ||
| char * | _c ) |
| void ef936x_put_image | ( | Environment * | _environment, |
| Resource * | _image, | ||
| char * | _x, | ||
| char * | _y, | ||
| char * | _frame, | ||
| char * | _sequence, | ||
| int | _frame_size, | ||
| int | _frame_count, | ||
| char * | _flags ) |
| void ef936x_put_tile | ( | Environment * | _environment, |
| char * | _tile, | ||
| char * | _x, | ||
| char * | _y ) |
| void ef936x_put_tiles | ( | Environment * | _environment, |
| char * | _tile, | ||
| char * | _x, | ||
| char * | _y, | ||
| char * | _w, | ||
| char * | _h ) |
| void ef936x_raster_at | ( | Environment * | _environment, |
| char * | _label, | ||
| char * | _positionlo, | ||
| char * | _positionhi ) |
VIC-II: emit code to set raster irq
This function outputs assembly code needed to initialize a raster routine. In other words, asynchronously and in parallel with the execution of the main program, the routine starting from the label provided will be executed when the vertical brush on the screen reaches the value of _position. This function is particularly useful when the position is communicated is given as an integer.
| _environment | Current calling environment |
| _label | Label to jump to when vertical raster reach the value given |
| _positionlo | The vertical position to wait for (bits 7..0) |
| _positionhi | The vertical position to wait for (bit 8) |
| void ef936x_screen_columns | ( | Environment * | _environment, |
| char * | _columns ) |
| int ef936x_screen_mode_enable | ( | Environment * | _environment, |
| ScreenMode * | _screen_mode ) |
| void ef936x_screen_off | ( | Environment * | _environment | ) |
| void ef936x_screen_on | ( | Environment * | _environment | ) |
| void ef936x_screen_rows | ( | Environment * | _environment, |
| char * | _rows ) |
| void ef936x_scroll | ( | Environment * | _environment, |
| int | _dx, | ||
| int | _dy ) |
| void ef936x_scroll_text | ( | Environment * | _environment, |
| int | _direction, | ||
| int | _overlap ) |
| void ef936x_slice_image | ( | Environment * | _environment, |
| char * | _image, | ||
| char * | _frame, | ||
| char * | _sequence, | ||
| int | _frame_size, | ||
| int | _frame_count, | ||
| char * | _destination ) |
| void ef936x_sprite_at | ( | Environment * | _environment, |
| char * | _sprite, | ||
| char * | _x, | ||
| char * | _y ) |
| void ef936x_sprite_color | ( | Environment * | _environment, |
| char * | _sprite, | ||
| char * | _color ) |
| void ef936x_sprite_common_color | ( | Environment * | _environment, |
| char * | _index, | ||
| char * | _common_color ) |
VIC-II: emit code to change common sprite's color
This function can be used to issue code aimed at changing the common color of the sprites.
| _environment | Current calling environment |
| _index | Index of the background color |
| _common_color | Index of the color to use |
| void ef936x_sprite_compress_horizontal | ( | Environment * | _environment, |
| char * | _sprite ) |
| void ef936x_sprite_compress_vertical | ( | Environment * | _environment, |
| char * | _sprite ) |
| void ef936x_sprite_data_from | ( | Environment * | _environment, |
| char * | _sprite, | ||
| char * | _address ) |
| void ef936x_sprite_data_set | ( | Environment * | _environment, |
| char * | _sprite, | ||
| char * | _address ) |
| void ef936x_sprite_disable | ( | Environment * | _environment, |
| char * | _sprite ) |
| void ef936x_sprite_enable | ( | Environment * | _environment, |
| char * | _sprite ) |
| void ef936x_sprite_expand_horizontal | ( | Environment * | _environment, |
| char * | _sprite ) |
| void ef936x_sprite_expand_vertical | ( | Environment * | _environment, |
| char * | _sprite ) |
| void ef936x_sprite_monocolor | ( | Environment * | _environment, |
| char * | _sprite ) |
| void ef936x_sprite_multicolor | ( | Environment * | _environment, |
| char * | _sprite ) |
| void ef936x_sprite_priority | ( | Environment * | _environment, |
| char * | _sprite, | ||
| char * | _priority ) |
| void ef936x_text | ( | Environment * | _environment, |
| char * | _text, | ||
| char * | _text_size, | ||
| int | _raw ) |
| void ef936x_textmap_at | ( | Environment * | _environment, |
| char * | _address ) |
| void ef936x_tile_at | ( | Environment * | _environment, |
| char * | _x, | ||
| char * | _y, | ||
| char * | _result ) |
| void ef936x_tilemap_enable | ( | Environment * | _environment, |
| int | _width, | ||
| int | _height, | ||
| int | _colors, | ||
| int | _tile_width, | ||
| int | _tile_height ) |
| void ef936x_tiles_at | ( | Environment * | _environment, |
| char * | _address ) |
| void ef936x_tiles_get | ( | Environment * | _environment, |
| char * | _result ) |
| void ef936x_use_tileset | ( | Environment * | _environment, |
| char * | _tileset ) |
| void ef936x_vertical_scroll | ( | Environment * | _environment, |
| char * | _displacement ) |
|
extern |
This variable defines as an array of constant pointers. Each element of the array represents the "human" name of a ugBASIC's data type. The main reason is to map an IDto a readable string. If ugBASIC encounters an error, you don't want it to print "Error in type 2," but rather "Error in type FLOAT.". Note that it's vital that the order of strings in the array exactly reflects the order of the IDs in your enum. If you move an element to one, you must also move it to the other, otherwise the mapping will be staggered. Often, a final NULL or UNKNOWN string is added to handle error cases or to allow you to loop through the array without knowing its size beforehand.
Definition at line 133 of file _infrastructure.c.