|
ugBASIC 1.18
An isomorphic BASIC language compiler for retrocomputers
|
Go to the source code of this file.
Functions | |
| RGBi * | ted_image_nearest_system_color (RGBi *_color) |
| void | ted_collision (Environment *_environment, char *_sprite_mask, char *_result) |
| void | ted_hit (Environment *_environment, char *_sprite_mask, char *_result) |
| void | ted_border_color (Environment *_environment, char *_border_color) |
| TED: emit code to change border color | |
| void | ted_background_color (Environment *_environment, int _index, int _background_color) |
| TED: emit code to change bac_kground color | |
| void | ted_background_color_vars (Environment *_environment, char *_index, char *_background_color) |
| TED: emit code to change background color | |
| void | ted_background_color_semivars (Environment *_environment, int _index, char *_background_color) |
| TED: emit code to change background color | |
| void | ted_background_color_get_vars (Environment *_environment, char *_index, char *_background_color) |
| TED: emit code to retrieve background color | |
| void | ted_sprite_common_color (Environment *_environment, char *_index, char *_common_color) |
| void | ted_raster_at (Environment *_environment, char *_label, char *_positionlo, char *_positionhi) |
| TED: emit code to set raster irq | |
| void | ted_next_raster (Environment *_environment) |
| TED: emit code to wait for next raster irq | |
| void | ted_next_raster_at (Environment *_environment, char *_label, char *_positionlo, char *_positionhi) |
| TED: emit code to wait for next raster irq at different position | |
| void | ted_bank_select (Environment *_environment, int _bank) |
| int | ted_screen_mode_enable (Environment *_environment, ScreenMode *_screen_mode) |
| void | console_calculate (Environment *_environment) |
| void | console_calculate_vars (Environment *_environment) |
| void | ted_bitmap_enable (Environment *_environment, int _width, int _height, int _colors) |
| void | ted_bitmap_disable (Environment *_environment) |
| void | ted_tilemap_enable (Environment *_environment, int _width, int _height, int _colors, int _tile_width, int _tile_height) |
| void | ted_bitmap_at (Environment *_environment, char *_address) |
| void | ted_colormap_at (Environment *_environment, char *_address) |
| void | ted_textmap_at (Environment *_environment, char *_address) |
| void | ted_charset_uppercase (Environment *_environment) |
| void | ted_charset_lowercase (Environment *_environment) |
| void | ted_charset_at (Environment *_environment, char *_address) |
| void | ted_pset_int (Environment *_environment, int _x, int _y, int *_c) |
| void | ted_pset_vars (Environment *_environment, char *_x, char *_y, char *_c) |
| void | ted_pget_color_vars (Environment *_environment, char *_x, char *_y, char *_result) |
| void | ted_screen_on (Environment *_environment) |
| void | ted_screen_off (Environment *_environment) |
| void | ted_screen_rows (Environment *_environment, char *_rows) |
| void | ted_screen_columns (Environment *_environment, char *_columns) |
| void | ted_sprite_data_from (Environment *_environment, char *_sprite, char *_address) |
| void | ted_sprite_data_set (Environment *_environment, char *_sprite, char *_address) |
| void | ted_sprite_enable (Environment *_environment, char *_sprite) |
| void | ted_sprite_disable (Environment *_environment, char *_sprite) |
| void | ted_sprite_at (Environment *_environment, char *_sprite, char *_x, char *_y) |
| void | ted_sprite_expand_vertical (Environment *_environment, char *_sprite) |
| void | ted_sprite_expand_horizontal (Environment *_environment, char *_sprite) |
| void | ted_sprite_compress_vertical (Environment *_environment, char *_sprite) |
| void | ted_sprite_compress_horizontal (Environment *_environment, char *_sprite) |
| void | ted_sprite_multicolor (Environment *_environment, char *_sprite) |
| void | ted_sprite_monocolor (Environment *_environment, char *_sprite) |
| void | ted_sprite_color (Environment *_environment, char *_sprite, char *_color) |
| void | ted_sprite_priority (Environment *_environment, char *_sprite, char *_priority) |
| void | ted_tiles_at (Environment *_environment, char *_address) |
| void | ted_vertical_scroll (Environment *_environment, char *_displacement) |
| void | ted_horizontal_scroll (Environment *_environment, char *_displacement) |
| void | ted_busy_wait (Environment *_environment, char *_timing) |
| void | ted_get_width (Environment *_environment, char *_result) |
| void | ted_tiles_get (Environment *_environment, char *_result) |
| void | ted_get_height (Environment *_environment, char *_result) |
| void | ted_cls (Environment *_environment) |
| void | ted_cls_box (Environment *_environment, char *_x1, char *_y1, char *_w, char *_h) |
| void | ted_scroll_text (Environment *_environment, int _direction, int _overlap) |
| void | ted_scroll (Environment *_environment, int _dx, int _dy) |
| void | ted_text (Environment *_environment, char *_text, char *_text_size, int _raw) |
| void | ted_initialization (Environment *_environment) |
| void | ted_finalization (Environment *_environment) |
| void | ted_hscroll_line (Environment *_environment, int _direction, int _overlap) |
| void | ted_hscroll_screen (Environment *_environment, int _direction, int _overlap) |
| void | ted_back (Environment *_environment) |
| int | ted_image_size (Environment *_environment, int _width, int _height, int _mode) |
| Variable * | ted_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 | ted_calculate_sequence_frame_offset (Environment *_environment, char *_offset, char *_sequence, char *_frame, int _frame_size, int _frame_count) |
| void | ted_put_image (Environment *_environment, Resource *_image, char *_x, char *_y, char *_frame, char *_sequence, int _frame_size, int _frame_count, char *_flags) |
| void | ted_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 | ted_wait_vbl (Environment *_environment, char *_raster_line) |
| Variable * | ted_new_image (Environment *_environment, int _width, int _height, int _mode) |
| Variable * | ted_new_images (Environment *_environment, int _frames, int _width, int _height, int _mode) |
| Variable * | ted_new_sequence (Environment *_environment, int _sequences, int _frames, int _width, int _height, int _mode) |
| void | ted_get_image (Environment *_environment, char *_image, char *_x, char *_y, char *_frame, char *_sequence, int _frame_size, int _frame_count, int _palette) |
| void | ted_put_tile (Environment *_environment, char *_tile, char *_x, char *_y) |
| void | ted_move_tiles (Environment *_environment, char *_tile, char *_x, char *_y) |
| void | ted_put_tiles (Environment *_environment, char *_tile, char *_x, char *_y, char *_w, char *_h) |
| void | ted_tile_at (Environment *_environment, char *_x, char *_y, char *_result) |
| void | ted_use_tileset (Environment *_environment, char *_tileset) |
| Variable * | ted_get_raster_line (Environment *_environment) |
| void | ted_start (Environment *_environment, int _channels) |
| void | ted_set_volume (Environment *_environment, int _channels, int _volume) |
| void | ted_set_program (Environment *_environment, int _channels, int _program) |
| void | ted_set_parameter (Environment *_environment, int _channels, int _parameter, int _value) |
| void | ted_set_frequency (Environment *_environment, int _channels, int _frequency) |
| void | ted_set_pitch (Environment *_environment, int _channels, int _pitch) |
| void | ted_set_note (Environment *_environment, int _channels, int _note) |
| void | ted_stop (Environment *_environment, int _channels) |
| void | ted_start_var (Environment *_environment, char *_channels) |
| void | ted_set_volume_vars (Environment *_environment, char *_channels, char *_volume) |
| void | ted_set_volume_semi_var (Environment *_environment, char *_channel, int _volume) |
| void | ted_set_program_semi_var (Environment *_environment, char *_channels, int _program) |
| void | ted_set_frequency_vars (Environment *_environment, char *_channels, char *_frequency) |
| void | ted_set_pitch_vars (Environment *_environment, char *_channels, char *_pitch) |
| void | ted_set_note_vars (Environment *_environment, char *_channels, char *_note) |
| void | ted_stop_vars (Environment *_environment, char *_channels) |
| void | ted_music (Environment *_environment, char *_music, int _size, int _loop) |
| void | ted_slice_image (Environment *_environment, char *_image, char *_frame, char *_sequence, int _frame_size, int _frame_count, char *_destination) |
| int | ted_palette_extract (Environment *_environment, char *_data, int _width, int _height, int _depth, int _flags, RGBi *_palette) |
| void | ted_flip_image (Environment *_environment, Resource *_image, char *_frame, char *_sequence, int _frame_size, int _frame_count, char *_direction) |
| void | ted_set_duration (Environment *_environment, int _channels, int _duration) |
| void | ted_wait_duration (Environment *_environment, int _channels) |
| void | ted_set_duration_vars (Environment *_environment, char *_channels, char *_duration) |
| void | ted_wait_duration_vars (Environment *_environment, char *_channels) |
| void | ted_screen (Environment *_environment, char *_x, char *_y, char *_c) |
Variables | |
| int | lastUsedSlotInCommonPalette = 0 |
| int | plotVBase [] |
| #define PROGRAM_DURATION | ( | c, | |
| d ) |
| #define PROGRAM_FREQUENCY | ( | c, | |
| f ) |
| #define PROGRAM_FREQUENCY_SV | ( | c, | |
| f ) |
| #define PROGRAM_FREQUENCY_V | ( | c, | |
| f ) |
| #define PROGRAM_NOISE | ( | c | ) |
| #define PROGRAM_NOISE_SV | ( | c | ) |
| #define PROGRAM_NOISE_V | ( | c, | |
| p ) |
| #define PROGRAM_PITCH | ( | c, | |
| f ) |
| #define PROGRAM_PITCH_SV | ( | c, | |
| f ) |
| #define PROGRAM_PITCH_V | ( | c, | |
| f ) |
| #define PROGRAM_PULSE | ( | c, | |
| p ) |
| #define PROGRAM_PULSE_SV | ( | c, | |
| p ) |
| #define PROGRAM_PULSE_V | ( | c, | |
| p ) |
| #define STOP_FREQUENCY | ( | c | ) |
| #define STOP_FREQUENCY_SV | ( | c | ) |
| #define STOP_FREQUENCY_V | ( | c | ) |
| #define WAIT_DURATION | ( | c | ) |
| void console_calculate | ( | Environment * | _environment | ) |
| void console_calculate_vars | ( | Environment * | _environment | ) |
| void ted_back | ( | Environment * | _environment | ) |
| void ted_background_color | ( | Environment * | _environment, |
| int | _index, | ||
| int | _background_color ) |
TED: emit code to change bac_kground 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 ted_background_color_get_vars | ( | Environment * | _environment, |
| char * | _index, | ||
| char * | _background_color ) |
TED: emit code to retrieve background color
This function can be used to issue code aimed at retrieving the background color of the screen.
| _environment | Current calling environment |
| _index | Index of the background color |
| _background_color | Background color to use |
| void ted_background_color_semivars | ( | Environment * | _environment, |
| int | _index, | ||
| char * | _background_color ) |
TED: 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 ted_background_color_vars | ( | Environment * | _environment, |
| char * | _index, | ||
| char * | _background_color ) |
TED: 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 ted_bank_select | ( | Environment * | _environment, |
| int | _bank ) |
| void ted_bitmap_at | ( | Environment * | _environment, |
| char * | _address ) |
| void ted_bitmap_disable | ( | Environment * | _environment | ) |
| void ted_bitmap_enable | ( | Environment * | _environment, |
| int | _width, | ||
| int | _height, | ||
| int | _colors ) |
| void ted_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 ted_border_color | ( | Environment * | _environment, |
| char * | _border_color ) |
| void ted_busy_wait | ( | Environment * | _environment, |
| char * | _timing ) |
| void ted_calculate_sequence_frame_offset | ( | Environment * | _environment, |
| char * | _offset, | ||
| char * | _sequence, | ||
| char * | _frame, | ||
| int | _frame_size, | ||
| int | _frame_count ) |
| void ted_charset_at | ( | Environment * | _environment, |
| char * | _address ) |
| void ted_charset_lowercase | ( | Environment * | _environment | ) |
| void ted_charset_uppercase | ( | Environment * | _environment | ) |
| void ted_cls | ( | Environment * | _environment | ) |
| void ted_cls_box | ( | Environment * | _environment, |
| char * | _x1, | ||
| char * | _y1, | ||
| char * | _w, | ||
| char * | _h ) |
| void ted_collision | ( | Environment * | _environment, |
| char * | _sprite_mask, | ||
| char * | _result ) |
| void ted_colormap_at | ( | Environment * | _environment, |
| char * | _address ) |
| void ted_finalization | ( | Environment * | _environment | ) |
| void ted_flip_image | ( | Environment * | _environment, |
| Resource * | _image, | ||
| char * | _frame, | ||
| char * | _sequence, | ||
| int | _frame_size, | ||
| int | _frame_count, | ||
| char * | _direction ) |
| void ted_get_height | ( | Environment * | _environment, |
| char * | _result ) |
| void ted_get_image | ( | Environment * | _environment, |
| char * | _image, | ||
| char * | _x, | ||
| char * | _y, | ||
| char * | _frame, | ||
| char * | _sequence, | ||
| int | _frame_size, | ||
| int | _frame_count, | ||
| int | _palette ) |
| Variable * ted_get_raster_line | ( | Environment * | _environment | ) |
| void ted_get_width | ( | Environment * | _environment, |
| char * | _result ) |
| void ted_hit | ( | Environment * | _environment, |
| char * | _sprite_mask, | ||
| char * | _result ) |
| void ted_horizontal_scroll | ( | Environment * | _environment, |
| char * | _displacement ) |
| void ted_hscroll_line | ( | Environment * | _environment, |
| int | _direction, | ||
| int | _overlap ) |
| void ted_hscroll_screen | ( | Environment * | _environment, |
| int | _direction, | ||
| int | _overlap ) |
| Variable * ted_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 ted_image_size | ( | Environment * | _environment, |
| int | _width, | ||
| int | _height, | ||
| int | _mode ) |
| void ted_initialization | ( | Environment * | _environment | ) |
| void ted_move_tiles | ( | Environment * | _environment, |
| char * | _tile, | ||
| char * | _x, | ||
| char * | _y ) |
| void ted_music | ( | Environment * | _environment, |
| char * | _music, | ||
| int | _size, | ||
| int | _loop ) |
| Variable * ted_new_image | ( | Environment * | _environment, |
| int | _width, | ||
| int | _height, | ||
| int | _mode ) |
| Variable * ted_new_images | ( | Environment * | _environment, |
| int | _frames, | ||
| int | _width, | ||
| int | _height, | ||
| int | _mode ) |
| Variable * ted_new_sequence | ( | Environment * | _environment, |
| int | _sequences, | ||
| int | _frames, | ||
| int | _width, | ||
| int | _height, | ||
| int | _mode ) |
| void ted_next_raster | ( | Environment * | _environment | ) |
| void ted_next_raster_at | ( | Environment * | _environment, |
| char * | _label, | ||
| char * | _positionlo, | ||
| char * | _positionhi ) |
TED: 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 ted_palette_extract | ( | Environment * | _environment, |
| char * | _data, | ||
| int | _width, | ||
| int | _height, | ||
| int | _depth, | ||
| int | _flags, | ||
| RGBi * | _palette ) |
| void ted_pget_color_vars | ( | Environment * | _environment, |
| char * | _x, | ||
| char * | _y, | ||
| char * | _result ) |
| void ted_pset_int | ( | Environment * | _environment, |
| int | _x, | ||
| int | _y, | ||
| int * | _c ) |
| void ted_pset_vars | ( | Environment * | _environment, |
| char * | _x, | ||
| char * | _y, | ||
| char * | _c ) |
| void ted_put_image | ( | Environment * | _environment, |
| Resource * | _image, | ||
| char * | _x, | ||
| char * | _y, | ||
| char * | _frame, | ||
| char * | _sequence, | ||
| int | _frame_size, | ||
| int | _frame_count, | ||
| char * | _flags ) |
| void ted_put_tile | ( | Environment * | _environment, |
| char * | _tile, | ||
| char * | _x, | ||
| char * | _y ) |
| void ted_put_tiles | ( | Environment * | _environment, |
| char * | _tile, | ||
| char * | _x, | ||
| char * | _y, | ||
| char * | _w, | ||
| char * | _h ) |
| void ted_raster_at | ( | Environment * | _environment, |
| char * | _label, | ||
| char * | _positionlo, | ||
| char * | _positionhi ) |
TED: 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 ted_screen | ( | Environment * | _environment, |
| char * | _x, | ||
| char * | _y, | ||
| char * | _c ) |
| void ted_screen_columns | ( | Environment * | _environment, |
| char * | _columns ) |
| int ted_screen_mode_enable | ( | Environment * | _environment, |
| ScreenMode * | _screen_mode ) |
| void ted_screen_off | ( | Environment * | _environment | ) |
| void ted_screen_on | ( | Environment * | _environment | ) |
| void ted_screen_rows | ( | Environment * | _environment, |
| char * | _rows ) |
| void ted_scroll | ( | Environment * | _environment, |
| int | _dx, | ||
| int | _dy ) |
| void ted_scroll_text | ( | Environment * | _environment, |
| int | _direction, | ||
| int | _overlap ) |
| void ted_set_duration | ( | Environment * | _environment, |
| int | _channels, | ||
| int | _duration ) |
| void ted_set_duration_vars | ( | Environment * | _environment, |
| char * | _channels, | ||
| char * | _duration ) |
| void ted_set_frequency | ( | Environment * | _environment, |
| int | _channels, | ||
| int | _frequency ) |
| void ted_set_frequency_vars | ( | Environment * | _environment, |
| char * | _channels, | ||
| char * | _frequency ) |
| void ted_set_note | ( | Environment * | _environment, |
| int | _channels, | ||
| int | _note ) |
| void ted_set_note_vars | ( | Environment * | _environment, |
| char * | _channels, | ||
| char * | _note ) |
| void ted_set_parameter | ( | Environment * | _environment, |
| int | _channels, | ||
| int | _parameter, | ||
| int | _value ) |
| void ted_set_pitch | ( | Environment * | _environment, |
| int | _channels, | ||
| int | _pitch ) |
| void ted_set_pitch_vars | ( | Environment * | _environment, |
| char * | _channels, | ||
| char * | _pitch ) |
| void ted_set_program | ( | Environment * | _environment, |
| int | _channels, | ||
| int | _program ) |
| void ted_set_program_semi_var | ( | Environment * | _environment, |
| char * | _channels, | ||
| int | _program ) |
| void ted_set_volume | ( | Environment * | _environment, |
| int | _channels, | ||
| int | _volume ) |
| void ted_set_volume_semi_var | ( | Environment * | _environment, |
| char * | _channel, | ||
| int | _volume ) |
| void ted_set_volume_vars | ( | Environment * | _environment, |
| char * | _channels, | ||
| char * | _volume ) |
| void ted_slice_image | ( | Environment * | _environment, |
| char * | _image, | ||
| char * | _frame, | ||
| char * | _sequence, | ||
| int | _frame_size, | ||
| int | _frame_count, | ||
| char * | _destination ) |
| void ted_sprite_at | ( | Environment * | _environment, |
| char * | _sprite, | ||
| char * | _x, | ||
| char * | _y ) |
| void ted_sprite_color | ( | Environment * | _environment, |
| char * | _sprite, | ||
| char * | _color ) |
| void ted_sprite_common_color | ( | Environment * | _environment, |
| char * | _index, | ||
| char * | _common_color ) |
| void ted_sprite_compress_horizontal | ( | Environment * | _environment, |
| char * | _sprite ) |
| void ted_sprite_compress_vertical | ( | Environment * | _environment, |
| char * | _sprite ) |
| void ted_sprite_data_from | ( | Environment * | _environment, |
| char * | _sprite, | ||
| char * | _address ) |
| void ted_sprite_data_set | ( | Environment * | _environment, |
| char * | _sprite, | ||
| char * | _address ) |
| void ted_sprite_disable | ( | Environment * | _environment, |
| char * | _sprite ) |
| void ted_sprite_enable | ( | Environment * | _environment, |
| char * | _sprite ) |
| void ted_sprite_expand_horizontal | ( | Environment * | _environment, |
| char * | _sprite ) |
| void ted_sprite_expand_vertical | ( | Environment * | _environment, |
| char * | _sprite ) |
| void ted_sprite_monocolor | ( | Environment * | _environment, |
| char * | _sprite ) |
| void ted_sprite_multicolor | ( | Environment * | _environment, |
| char * | _sprite ) |
| void ted_sprite_priority | ( | Environment * | _environment, |
| char * | _sprite, | ||
| char * | _priority ) |
| void ted_start | ( | Environment * | _environment, |
| int | _channels ) |
| void ted_start_var | ( | Environment * | _environment, |
| char * | _channels ) |
| void ted_stop | ( | Environment * | _environment, |
| int | _channels ) |
| void ted_stop_vars | ( | Environment * | _environment, |
| char * | _channels ) |
| void ted_text | ( | Environment * | _environment, |
| char * | _text, | ||
| char * | _text_size, | ||
| int | _raw ) |
| void ted_textmap_at | ( | Environment * | _environment, |
| char * | _address ) |
| void ted_tile_at | ( | Environment * | _environment, |
| char * | _x, | ||
| char * | _y, | ||
| char * | _result ) |
| void ted_tilemap_enable | ( | Environment * | _environment, |
| int | _width, | ||
| int | _height, | ||
| int | _colors, | ||
| int | _tile_width, | ||
| int | _tile_height ) |
| void ted_tiles_at | ( | Environment * | _environment, |
| char * | _address ) |
| void ted_tiles_get | ( | Environment * | _environment, |
| char * | _result ) |
| void ted_use_tileset | ( | Environment * | _environment, |
| char * | _tileset ) |
| void ted_vertical_scroll | ( | Environment * | _environment, |
| char * | _displacement ) |
| void ted_wait_duration | ( | Environment * | _environment, |
| int | _channels ) |
| void ted_wait_duration_vars | ( | Environment * | _environment, |
| char * | _channels ) |
| void ted_wait_vbl | ( | Environment * | _environment, |
| char * | _raster_line ) |
| int plotVBase[] |