ugBASIC 1.18
An isomorphic BASIC language compiler for retrocomputers
Loading...
Searching...
No Matches
ugbc.h File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <limits.h>
#include <unistd.h>
#include <math.h>
#include "libs/tsx.h"
#include "libs/tmx.h"
#include "libs/sid_file.h"
#include "../src-generated/modules_atari.h"
#include "hw/6502.h"
#include "hw/antic.h"
#include "hw/gtia.h"
#include "hw/pokey.h"
#include "hw/atari.h"

Go to the source code of this file.

Data Structures

struct  _Bank
 Structure of a single bank. More...
struct  _FileStorage
 Structure of a single file inside a storage. More...
struct  _Storage
 Structure of a single storage. More...
struct  _POBuffer
struct  _POVariable
struct  _StaticString
 Structure of a single (static) string. More...
struct  _OptionParameterValue
 Structure of a single (option) setting. More...
struct  _OptionParameterValued
struct  _ConfigureGMCParameters
struct  _ConfigureSN76489Parameters
struct  _ConfigureParameters
struct  _RGBi
 Structure to store color components (red, green and blue). More...
struct  _Resource
struct  _MemoryArea
struct  _Constant
 Structure of a single constant. More...
struct  _Label
 Structure of a single label. More...
struct  _FloatType
struct  _OffsettingVariable
struct  _Offsetting
struct  _ImageDescriptor
struct  _AtlasDescriptor
struct  _ArrayReference
struct  _Strip
struct  _Variable
 Structure of a single variable. More...
struct  _Field
struct  _Type
struct  _Procedure
struct  _Conditional
 Structure of a single conditional jump. More...
struct  _Loop
 Structure of a single loop. More...
struct  _Pattern
struct  _LoadedFile
struct  _ScreenMode
struct  _Embedded
struct  _Deployed
struct  _DString
struct  _ProtothreadConfig
struct  _KeyboardConfig
struct  _JoystickConfig
struct  _VestigialConfig
struct  _FontConfig
struct  _MultiplexingSpriteConfig
struct  _AudioConfig
struct  _CpuOptimization
struct  _BankAccessOptimization
struct  _Macro
struct  _EmbedResult
struct  _TileDescriptor
struct  _TileData
struct  _TileDescriptors
struct  _Blit
struct  _DataDataSegment
struct  _DataSegment
struct  _Console
struct  _Program
struct  _CopperInstruction
struct  _CopperList
struct  _NumberConfig
struct  _Environment
 Structure of compilation environment. More...

Macros

#define UGBASIC_VERSION   "1.18"
#define PATH_SEPARATOR   '/'
#define PATH_SEPARATOR_AS_STRING   "/"
#define TRACE0(s)
#define TRACE1(s, p1)
#define TRACE2(s, p1, p2)
#define BANK_TYPE_COUNT   6
 Maximum number of bank types.
#define MAX_TEMPORARY_STORAGE   1024
#define MAX_CONSOLES   4
#define MAX_ARRAY_DIMENSIONS   256
#define MAX_PARAMETERS   256
#define MAX_PALETTE   256
#define MAX_TILESETS   256
#define MAX_NESTED_ARRAYS   16
#define MAX_PROCEDURES   4096
#define MAX_RESIDENT_SHAREDS   128
#define PROTOTHREAD_DEFAULT_COUNT   16
#define MAX_BUFFERED_OUTPUT   16
#define MAX_FRAMES_PER_STRIP   32
#define FONT_SCHEMA_EMBEDDED   0
#define FONT_SCHEMA_STANDARD   1
#define FONT_SCHEMA_SEMIGRAPHIC   2
#define FONT_SCHEMA_COMPLETE   3
#define FONT_SCHEMA_ALPHA   4
#define FONT_SCHEMA_ASCII   5
#define FONT_DEFAULT_SCHEMA   FONT_SCHEMA_EMBEDDED
#define VT_BW_1BIT(t, v)
#define VT_BW_8BIT(t, v)
#define VT_BW_16BIT(t, v)
#define VT_BW_24BIT(t, v)
#define VT_BW_32BIT(t, v)
#define VT_BW_40BIT(t, v)
#define VT_BW_64BIT(t, v)
#define VT_BW_80BIT(t, v)
#define VT_BW_128BIT(t, v)
#define VT_BITWIDTH(t)
#define VT_POW2_2(t, v)
#define VT_POW2_3(t, v)
#define VT_POW2_4(t, v)
#define VT_OPTIMAL_SHIFT(s)
#define VT_MAX_BITWIDTH_TYPE(a, b)
#define VT_MAX_FLOAT_BITWIDTH_TYPE(a, b)
#define VT_SIGNED(t)
#define VT_UNSIGN(t)
#define VT_SIGN(t)
#define VT_SIGN_8BIT(v)
#define VT_SIGN_16BIT(v)
#define VT_SIGN_32BIT(v)
#define VT_ESIGN_8BIT(t, v)
#define VT_ESIGN_16BIT(t, v)
#define VT_ESIGN_32BIT(t, v)
#define VT_USIGN_8BIT(v)
#define VT_USIGN_16BIT(v)
#define VT_USIGN_32BIT(v)
#define VT_UNSIGN_8BIT(t, v)
#define VT_UNSIGN_16BIT(t, v)
#define VT_UNSIGN_32BIT(t, v)
#define VT_VALUE(v, t, d)
#define VT_MIN(t)
#define VT_MAX(t)
#define VT_DIRECT_ASSIGN(t)
#define VARIABLE_TYPE_COUNT   26
 Maximum number of variable types.
#define MEMORY_AREA_DEFINE(_type, _start, _end)
#define CONDITIONAL_TYPE_COUNT   5
 Maximum number of conditional types.
#define LOOP_TYPE_COUNT   1
 Maximum number of loop types.
#define SCREEN_MODE_DEFINE(_id, _bitmap, _width, _height, _colors, _tile_width, _tile_height, _description)
#define UNIQUE_ID   ((struct _Environment *)_environment)->uniqueId++
#define UNIQUE_RESOURCE_ID   ((struct _Environment *)_environment)->uniqueResourceId++
#define MAKE_LABEL   char label[32]; sprintf( label, "_label%d", UNIQUE_ID);
#define CRITICAL(s)
#define CRITICAL2(s, v)
#define CRITICAL2i(s, v)
#define CRITICAL3(s, v1, v2)
#define CRITICAL3i(s, v1, v2)
#define CRITICAL3ii(s, v1, v2)
#define CRITICAL4si(s, v, d1, d2)
#define CRITICAL_INTERNAL_ERROR(v)
#define CRITICAL_UNIMPLEMENTED(v)
#define CRITICAL_TEMPORARY2(v)
#define CRITICAL_VARIABLE(v)
#define CRITICAL_DATATYPE_UNSUPPORTED(k, v)
#define CRITICAL_CANNOT_CAST(t1, t2)
#define CRITICAL_STORE_UNSUPPORTED(t)
#define CRITICAL_RESIZE_UNSUPPORTED(t)
#define CRITICAL_MOVE_NAKED_UNSUPPORTED(t)
#define CRITICAL_BUFFER_SIZE_MISMATCH(v1, v2)
#define CRITICAL_DATATYPE_MISMATCH(v1, v2)
#define CRITICAL_ADD_UNSUPPORTED(v, t)
#define CRITICAL_SUB_UNSUPPORTED(v, t)
#define CRITICAL_COMPLEMENT_UNSUPPORTED(v, t)
#define CRITICAL_MUL_UNSUPPORTED(v, t)
#define CRITICAL_DIV_UNSUPPORTED(v, t)
#define CRITICAL_CANNOT_COMPARE(t1, t2)
#define CRITICAL_MUL2_UNSUPPORTED(v, t)
#define CRITICAL_DIV2_UNSUPPORTED(v, t)
#define CRITICAL_AND_UNSUPPORTED(v, t)
#define CRITICAL_LEFT_UNSUPPORTED(v, t)
#define CRITICAL_RIGHT_UNSUPPORTED(v, t)
#define CRITICAL_MID_UNSUPPORTED(v, t)
#define CRITICAL_INSTR_UNSUPPORTED(v, t)
#define CRITICAL_STRING_UNSUPPORTED(v, t)
#define CRITICAL_UPPER_UNSUPPORTED(v, t)
#define CRITICAL_LOWER_UNSUPPORTED(v, t)
#define CRITICAL_STR_UNSUPPORTED(v, t)
#define CRITICAL_VAL_UNSUPPORTED(v, t)
#define CRITICAL_CHR_UNSUPPORTED(v, t)
#define CRITICAL_ASC_UNSUPPORTED(v, t)
#define CRITICAL_LEN_UNSUPPORTED(v, t)
#define CRITICAL_POW_UNSUPPORTED(v, t)
#define CRITICAL_SGN_UNSUPPORTED(v, t)
#define CRITICAL_ABS_UNSUPPORTED(v, t)
#define CRITICAL_DEBUG_UNSUPPORTED(v, t)
#define CRITICAL_ARRAY_SIZE_MISMATCH(v, d1, d2)
#define CRITICAL_NOT_ARRAY(v)
#define CRITICAL_PROCEDURE_NESTED_UNSUPPORTED(n)
#define CRITICAL_PROCEDURE_NOT_OPENED()
#define CRITICAL_PROCEDURE_MISSING(n)
#define CRITICAL_PROCEDURE_PARAMETERS_MISMATCH(n, d1, d2)
#define CRITICAL_SHARED_ONLY_IN_PROCEDURES()
#define CRITICAL_GLOBAL_ONLY_OUTSIDE_PROCEDURES()
#define CRITICAL_PRINT_UNSUPPORTED(v, t)
#define CRITICAL_NOT_SUPPORTED(v)
#define CRITICAL_BIT_UNSUPPORTED(v, t)
#define CRITICAL_INPUT_UNSUPPORTED(v, t)
#define CRITICAL_MOVE_UNSUPPORTED(t)
#define CRITICAL_SCREEN_MODE_BITMAP_UNSUPPORTED(t)
#define CRITICAL_SCREEN_MODE_TILEMAP_UNSUPPORTED(t)
#define CRITICAL_RANDOM_UNSUPPORTED(v, t)
#define CRITICAL_MOD_UNSUPPORTED(v, t)
#define CRITICAL_SCREEN_UNSUPPORTED(v)
#define CRITICAL_LOAD_MISSING_FILE(f)
#define CRITICAL_LOAD_FILE_TOO_LONG(f)
#define CRITICAL_CANNOT_CAST_BUFFER_STRING_SIZE(a, b)
#define CRITICAL_IMAGE_LOAD_MISSING_FILE(f)
#define CRITICAL_IMAGE_LOAD_UNKNOWN_FORMAT(f)
#define CRITICAL_IMAGE_CONVERTER_TOO_COLORS(f)
#define CRITICAL_SQR_UNSUPPORTED(v, t)
#define CRITICAL_UNDEFINED_CONSTANT(c)
#define CRITICAL_TYPE_MISMATCH_CONSTANT_NUMERIC(c)
#define CRITICAL_IMAGE_CONVERTER_INVALID_WIDTH(w, m)
#define CRITICAL_IMAGE_CONVERTER_INVALID_HEIGHT(h, m)
#define CRITICAL_BIN_UNSUPPORTED(v, t)
#define CRITICAL_MUL2_INVALID_STEPS(v)
#define CRITICAL_UNABLE_TO_EMBED(v)
#define CRITICAL_UNABLE_TO_INLINE(v)
#define CRITICAL_NOT_IMAGE(v)
#define CRITICAL_NOT_ASSIGNED_IMAGE(v)
#define CRITICAL_NEGATIVE_CONSTANT(v, a)
#define CRITICAL_TOO_LITTLE_CONSTANT(v)
#define CRITICAL_TOO_BIG_CONSTANT(v)
#define CRITICAL_INVALID_STRING_COUNT(d)
#define CRITICAL_INVALID_STRING_SPACE(d)
#define CRITICAL_TYPE_MISMATCH_CONSTANT_STRING(c)
#define CRITICAL_CANNOT_OPEN_EXECUTABLE_FILE(c)
#define CRITICAL_PARALLEL_PROCEDURE_CANNOT_BE_CALLED(c)
#define CRITICAL_PROCEDURE_CANNOT_BE_INVOKED(c)
#define CRITICAL_LOCAL_VARIABLE_OUTSIDE_PROCEDURE(c)
#define CRITICAL_OR_UNSUPPORTED(v, t)
#define CRITICAL_NOT_UNSUPPORTED(v, t)
#define CRITICAL_IMAGE_CONVERTER_INVALID_FRAME_WIDTH(w, m)
#define CRITICAL_IMAGE_CONVERTER_INVALID_FRAME_HEIGHT(h, m)
#define CRITICAL_IMAGE_CONVERTER_INVALID_OFFSET_X(x)
#define CRITICAL_IMAGE_CONVERTER_INVALID_OFFSET_Y(y)
#define CRITICAL_IMAGES_LOAD_INVALID_FRAME_WIDTH(w)
#define CRITICAL_IMAGES_LOAD_INVALID_FRAME_HEIGHT(h)
#define CRITICAL_PUT_IMAGE_UNSUPPORTED(v, t)
#define CRITICAL_NOT_IMAGES(v)
#define CRITICAL_NOT_ASSIGNED_IMAGES(v)
#define CRITICAL_NOT_STRING_ARRAY(v)
#define CRITICAL_SIZE_UNSUPPORTED(v, t)
#define CRITICAL_UNSUPPORTED_OUTPUT_FILE_TYPE(t)
#define CRITICAL_BUFFER_SIZE_MISMATCH_ARRAY_SIZE(v, d1, d2)
#define CRITICAL_CANNOT_ASSIGN_TO_ARRAY(v, t)
#define CRITICAL_NEW_IMAGE_UNSUPPORTED_MODE(f)
#define CRITICAL_GET_IMAGE_UNSUPPORTED(v, t)
#define CRITICAL_INVALID_DIVISOR2(d)
#define CRITICAL_INVALID_MULTIPLICATOR2(d)
#define CRITICAL_INVALID_TASK_COUNT(d)
#define CRITICAL_CANNOT_COMPARE_WITH_CASE(d)
#define CRITICAL_ADD_INPLACE_UNSUPPORTED(v, t)
#define CRITICAL_SUB_INPLACE_UNSUPPORTED(v, t)
#define CRITICAL_HEX_UNSUPPORTED(v, t)
#define CRITICAL_PRINT_BUFFER_ON_A_NOT_BUFFER(v)
#define CRITICAL_10_LINE_RULES_ENFORCED(v)
#define CRITICAL_INVALID_INPUT_SEPARATOR(d)
#define CRITICAL_INVALID_INPUT_SIZE(d)
#define CRITICAL_INVALID_INPUT_CURSOR(d)
#define CRITICAL_CANNOT_CALCULATE_SPRITE_WIDTH()
#define CRITICAL_CANNOT_CALCULATE_SPRITE_HEIGHT()
#define CRITICAL_CANNOT_ALLOCATE_MORE_TILE()
#define CRITICAL_TILE_LOAD_MISSING_FILE(f)
#define CRITICAL_TILE_LOAD_UNKNOWN_FORMAT(f)
#define CRITICAL_TILE_INVALID_WIDTH(w)
#define CRITICAL_TILE_INVALID_HEIGHT(h)
#define CRITICAL_TILE_LOAD_ON_NON_TILESET(t)
#define CRITICAL_USE_TILESET_ON_NON_TILESET(t)
#define CRITICAL_CANNOT_MOVE_UNROLLED_TILE(t)
#define CRITICAL_NOT_TILE(v)
#define CRITICAL_CANNOT_RESPAWN_NOT_THREADID(v)
#define CRITICAL_CANNOT_MMOVE_INVALID_SIZE(v)
#define CRITICAL_CANNOT_MMOVE_UNSUPPORTED()
#define CRITICAL_EXPANSION_OUT_OF_MEMORY_LOADING(v)
#define CRITICAL_NOT_ASSIGNED_SEQUENCE(v)
#define CRITICAL_SEQUENCE_LOAD_INVALID_FRAME_WIDTH(w)
#define CRITICAL_SEQUENCE_LOAD_INVALID_FRAME_HEIGHT(h)
#define CRITICAL_CANNOT_MUSIC(v)
#define CRITICAL_FILENAME_INVALID_COLON(v)
#define CRITICAL_FILENAME_INVALID_BACKSLASH(v)
#define CRITICAL_CANNOT_KILL_NOT_THREADID(v)
#define CRITICAL_STORAGE_NESTED_UNSUPPORTED(n)
#define CRITICAL_STORAGE_NOT_OPENED()
#define CRITICAL_DLOAD_MISSING_FILE(f)
#define CRITICAL_INCLUDE_FILE_NOT_FOUND(f)
#define CRITICAL_XOR_UNSUPPORTED(v, t)
#define CRITICAL_SWAP_DIFFERENT_BITWIDTH(v)
#define CRITICAL_CANNOT_REMOVE_FILE(f, n)
#define CRITICAL_CONSTANT_ALREADY_DEFINED_AS_VARIABLE(f)
#define CRITICAL_VARIABLE_ALREADY_DEFINED_AS_CONSTANT(f)
#define CRITICAL_END_GAMELOOP_WITHOUT_GAMELOOP()
#define CRITICAL_EVERY_OFF_WITHOUT_EVERY()
#define CRITICAL_WEND_WITHOUT_WHILE()
#define CRITICAL_EXIT_WITHOUT_LOOP()
#define CRITICAL_EXIT_WITHOUT_ENOUGH_LOOP()
#define CRITICAL_ENDSELECT_WITHOUT_SELECT()
#define CRITICAL_UNTIL_WITHOUT_REPEAT()
#define CRITICAL_LOOP_WITHOUT_DO()
#define CRITICAL_ENDIF_WITHOUT_IF()
#define CRITICAL_NEXT_WITHOUT_FOR()
#define CRITICAL_ELSE_WITHOUT_IF()
#define CRITICAL_CASE_WITHOUT_SELECT_CASE()
#define CRITICAL_CASE_ELSE_WITHOUT_SELECT_CASE()
#define CRITICAL_VARIABLE_REDEFINED_DIFFERENT_TYPE(f)
#define CRITICAL_VARIABLE_IMPORTED_DIFFERENT_TYPE(f)
#define CRITICAL_CONSTANT_REDEFINED_DIFFERENT_TYPE(f)
#define CRITICAL_CONSTANT_REDEFINED_DIFFERENT_VALUE(f)
#define CRITICAL_VARIABLE_UNDEFINED(f)
#define CRITICAL_VARIABLE_ALREADY_DEFINED(f)
#define CRITICAL_MACRO_TOO_MUCH_PARAMETERS(m, p)
#define CRITICAL_MACRO_TOO_MUCH_LINES(m)
#define CRITICAL_MACRO_TOO_MUCH_VALUES(m, v)
#define CRITICAL_MACRO_MISMATCH_PARAMETER_VALUES(m)
#define CRITICAL_MACRO_UNDEFINED(m)
#define CRITICAL_BLIT_IMAGE_UNSUPPORTED(v, t)
#define CRITICAL_BLIT_ALLOC_REGISTER_EXHAUSTED()
#define CRITICAL_BLIT_ALLOC_MEMORY_EXHAUSTED()
#define CRITICAL_BLIT_INVALID_FREE_REGISTER(s, r)
#define CRITICAL_BLIT_TOO_MUCH_SOURCES()
#define CRITICAL_BLIT_CANNOT_MIX_IMAGE_TYPES(n)
#define CRITICAL_BLIT_ALREADY_DEFINED(n)
#define CRITICAL_BLIT_CANNOT_BLIT(n)
#define CRITICAL_ARRAY_DEFINITION_FILE_NOT_FOUND(n)
#define CRITICAL_ARRAY_MISSING_SIZE(n)
#define CRITICAL_ARRAY_MULTIDIMENSIONAL(n)
#define CRITICAL_ARRAY_DATATYPE_NOT_SUPPORTED(n)
#define CRITICAL_CANNOT_CAST_FLOAT_PRECISION(v1, v2)
#define CRITICAL_SWAP_UNSUPPORTED(v, t)
#define CRITICAL_CANNOT_EMIT_FLOAT_CONST(v)
#define CRITICAL_UNKNOWN_CPU_REGISTER()
#define CRITICAL_UNSETTABLE_CPU_REGISTER(v)
#define CRITICAL_UNKNOWN_CPU_STACK(v)
#define CRITICAL_DECLARE_PROC_NESTED_UNSUPPORTED(v)
#define CRITICAL_INVALID_INPUT_RATE(v)
#define CRITICAL_INVALID_INPUT_DELAY(v)
#define CRITICAL_ARRAY_ASSIGN_DATATYPE_NOT_SUPPORTED(v)
#define CRITICAL_TILESET_LOAD_UNKNOWN_FORMAT(v)
#define CRITICAL_TILESET_LOAD_MISSING_IMAGE(v)
#define CRITICAL_RESOURCE_LOAD_MISSING_FILE(f)
#define CRITICAL_PUT_IMAGE_NAMED_TILE_MISSING_TILESET(v)
#define CRITICAL_PUT_IMAGE_NAMED_TILE_MISSING_TILES_FROM_TILESET(v)
#define CRITICAL_PUT_IMAGE_NAMED_TILE_NOT_FOUND(v)
#define CRITICAL_PUT_IMAGE_NAMED_TILE_INVALID_PROBABILITY(v)
#define CRITICAL_TILEMAP_LOAD_UNKNOWN_FORMAT(v)
#define CRITICAL_TILEMAP_LOAD_MISSING_LAYER(v)
#define CRITICAL_TILEMAP_LOAD_MISSING_TILESET(v)
#define CRITICAL_TILEMAP_LOAD_ONLY_ONE_TILESET(v)
#define CRITICAL_CANNOT_PUT_TILEMAP_FOR_NON_TILEMAP(v)
#define CRITICAL_CANNOT_CAST_TILEMAP_SIZE(v)
#define CRITICAL_TILEMAP_LOAD_ONLY_ONE_LAYER(v)
#define CRITICAL_TILE_CLASS_NO_TILESET(v)
#define CRITICAL_TILE_CLASS_INVALID_ID(v)
#define CRITICAL_TILE_WIDTH_NO_TILESET(v)
#define CRITICAL_TILE_HEIGHT_NO_TILESET(v)
#define CRITICAL_TILE_PROBABILITY_NO_TILESET(v)
#define CRITICAL_TILE_PROBABILITY_INVALID_ID(v)
#define CRITICAL_TILEMAP_WIDTH_NO_TILEMAP(v)
#define CRITICAL_TILEMAP_HEIGHT_NO_TILEMAP(v)
#define CRITICAL_TILEMAP_LOAD_ONLY_SAME_SIZE_LAYER(v)
#define CRITICAL_TILESET_OF_INVALID_TILEMAP(v)
#define CRITICAL_TILEMAP_INDEX_INVALID_TILEMAP(v)
#define CRITICAL_SLICE_IMAGE_UNSUPPORTED(v, t)
#define CRITICAL_SLICE_IMAGE_UNSUPPORTED_COMBINATION()
#define CRITICAL_IMAGE_EXTRACT_ON_NOT_IMAGES(v)
#define CRITICAL_TILE_ID_ON_NOT_TILESET(v)
#define CRITICAL_TILE_ID_MISSING_ORIGINAL_TILESET(v)
#define CRITICAL_IMAGES_LOAD_INVALID_AUTO_WITHOUT_GIF(v)
#define CRITICAL_IMAGES_LOAD_IMAGE_TOO_BIG(v)
#define CRITICAL_SEQUENCE_LOAD_IMAGE_TOO_BIG(v)
#define CRITICAL_TILES_LOAD_IMAGE_TOO_BIG(v)
#define CRITICAL_TILESET_LOAD_IMAGE_TOO_BIG(v)
#define CRITICAL_IF_WITHOUT_ENDIF()
#define CRITICAL_SELECT_CASE_WITHOUT_ENDSELECT()
#define CRITICAL_DO_WITHOUT_LOOP()
#define CRITICAL_WHILE_WITHOUT_WEND()
#define CRITICAL_REPEAT_WITHOUT_UNTIL()
#define CRITICAL_FOR_WITHOUT_NEXT()
#define CRITICAL_BEGIN_GAMELOOP_WITHOUT_END_GAMELOOP()
#define CRITICAL_CANNOT_GENERATE_RANDOM()
#define CRITICAL_LINE_NUMBER_ALREADY_DEFINED(n)
#define CRITICAL_LABEL_ALREADY_DEFINED(n)
#define CRITICAL_TILE_ID_NO_TILESET(v)
#define CRITICAL_READ_WITHOUT_DATA(v)
#define CRITICAL_READ_DATA_TYPE_NOT_SUPPORTED(v, t)
#define CRITICAL_RESTORE_WITHOUT_DATA(v)
#define CRITICAL_READ_END_WITHOUT_DATA()
#define CRITICAL_DATA_LOAD_TEXT_NOT_FOUND(v)
#define CRITICAL_CANNOT_COMPARE_CONST(t)
#define CRITICAL_CANNOT_USE_DRAW_WITHOUT_STRING(t)
#define CRITICAL_PUT_NOT_NOT_SUPPORTED(t)
#define CRITICAL_CANNOT_USE_PLAY_WITHOUT_STRING(t)
#define CRITICAL_RESTORE_WITH_UNSUPPORTED_DATA_TYPE(t)
#define CRITICAL_SANDBOX_ENFORCED(v)
#define CRITICAL_NEW_IMAGES_UNSUPPORTED_MODE(f)
#define CRITICAL_MIDI_OUT_OF_MEMORY(f)
#define CRITICAL_STRPTR_NOT_STRING(v, t)
#define CRITICAL_DLOAD_MISSING_ADDRESS(v)
#define CRITICAL_DLOAD_MISSING_SIZE(v)
#define CRITICAL_STORAGE_NOT_AVAILABLE()
#define CRITICAL_CANNOT_STORE_FILE_ON_VARIABLE_OF_DIFFERENT_TYPE(v)
#define CRITICAL_MISSING_FILE_STORAGE(v)
#define CRITICAL_DSAVE_MISSING_ADDRESS(v)
#define CRITICAL_DSAVE_MISSING_SIZE(v)
#define CRITICAL_VARIABLE_CANNOT_DIRECT_ASSIGN_DIFFERENT_TYPE(t1, t2)
#define CRITICAL_WRONG_NEXT_INDEX(v)
#define CRITICAL_PUT_IMAGE_UNINITIALIZED(v)
#define CRITICAL_MULTITASKING_ALREADY_FORBIDDEN()
#define CRITICAL_MULTITASKING_NOT_FORBIDDEN()
#define CRITICAL_MULTITASKING_FORBIDDEN()
#define CRITICAL_INVALID_PAINT_BUFFER(v)
#define CRITICAL_TILEMAP_SOURCE_MISSING(v)
#define CRITICAL_IMAGES_LOAD_IMAGE_BUFFER_TOO_BIG()
#define CRITICAL_PROCEDURE_DUPLICATE_PARAMETER(p, v)
#define CRITICAL_CANNOT_KILL_NOT_ARRAY_THREADS(v)
#define CRITICAL_UNSUPPORTED_BANK_NUMBER(v)
#define CRITICAL_OUT_OF_BANKS()
#define CRITICAL_CANNOT_COPY_TO_BANKED(v)
#define CRITICAL_INVALID_RAM_SIZE(r)
#define CRITICAL_ARRAY_MONODIMENSIONAL(v)
#define CRITICAL_ARRAY_INVALID_DIMENSION(v)
#define CRITICAL_CANNOT_USE_MULTITASKED_ARRAY(v)
#define CRITICAL_STORAGE_BANKED_UNCOMPATIBLE_TILEMAP(v)
#define CRITICAL_STORAGE_BANKED_UNCOMPATIBLE(v)
#define CRITICAL_CANNOT_STORE_BIT_ON_BANKED_ARRAY(v)
#define CRITICAL_CANNOT_MOVE_BIT_ON_BANKED_ARRAY(v)
#define CRITICAL_CANNOT_MOVE_STRING_ON_BANKED_ARRAY(v)
#define CRITICAL_CANNOT_MOVE_FROM_BIT_ON_BANKED_ARRAY(v)
#define CRITICAL_STORAGE_BANKED_OUT_OF_MEMORY(v)
#define CRITICAL_FLIP_IMAGE_UNSUPPORTED(v, t)
#define CRITICAL_CANNOT_FLIP_BANKED_IMAGE(v)
#define CRITICAL_CANNOT_FLIP_COMPRESSED_IMAGE(v)
#define CRITICAL_CANNOT_CAST_FLOAT_32BIT_UNSIGNED(v)
#define CRITICAL_BOOM_NOT_ASYNC()
#define CRITICAL_SHOOT_NOT_ASYNC()
#define CRITICAL_BELL_NOT_ASYNC()
#define CRITICAL_AUDIO_TARGET_UNAVAILABLE()
#define CRITICAL_CANNOT_MUSIC_ON_AUDIO_DEVICE(v)
#define CRITICAL_MUSIC_NOT_ASYNC()
#define CRITICAL_CANNOT_USE_STRINGS_LONGER_256_CHARS()
#define CRITICAL_MISSING_LABEL_NAMED(v)
#define CRITICAL_MISSING_LABEL_NUMBER(v)
#define CRITICAL_TEXTMAP_ADDRESS_NOT_VALID(a)
#define CRITICAL_IMAGES_LOAD_INVALID_ORIGIN_WITH_GIF(f)
#define CRITICAL_IMAGES_LOAD_INVALID_OFFSET_WITH_GIF(f)
#define CRITICAL_CANNOT_MIX_SPRITES_MSPRITES()
#define CRITICAL_CASE_ELSE_ALREADY_EMITTED()
#define CRITICAL_VARIABLE_CANNOT_DIRECT_ASSIGN_WRONG_TYPE(v, t)
#define CRITICAL_INVALID_PROGRAM_START(a)
#define CRITICAL_INVALID_JOYSTICK_RETRIES(a)
#define CRITICAL_GET_NEED_STRING(v)
#define CRITICAL_KEYGET_NEED_STRING(v)
#define CRITICAL_ARRAY_DATATYPE_WRONG(v)
#define CRITICAL_CANNOT_SWAP_DIFFERENT_DATATYPES(v1, v2)
#define CRITICAL_AT_UNSUPPORTED(v1, v2)
#define CRITICAL_INVALID_INPUT_LATENCY(v)
#define CRITICAL_INVALID_INPUT_LATENCY_MS(v)
#define CRITICAL_INVALID_INPUT_DELAY_MS(v)
#define CRITICAL_INVALID_INPUT_RELEASE(v)
#define CRITICAL_INVALID_INPUT_RELEASE_MS(v)
#define CRITICAL_END_LOOP_WITHOUT_LOOP()
#define CRITICAL_IMAGEREF_ON_NON_IMAGE(v)
#define CRITICAL_CANNOT_OPEN_FILE(f, n)
#define CRITICAL_CANNOT_READ_FILE(f, n)
#define CRITICAL_CANNOT_WRITE_FILE(f, n)
#define CRITICAL_XOR_INPLACE_UNSUPPORTED(v, t)
#define CRITICAL_PUT_IMAGE_X_UNSUPPORTED(v, t)
#define CRITICAL_PUT_IMAGE_Y_UNSUPPORTED(v, t)
#define CRITICAL_YIELD_CANNOT_BE_CALLED_OUTSIDE_PROCEDURE()
#define CRITICAL_WAIT_PARALLEL_CANNOT_BE_CALLED_OUTSIDE_PROCEDURE()
#define CRITICAL_WAIT_UNTIL_CANNOT_BE_CALLED_OUTSIDE_PROCEDURE()
#define CRITICAL_WAIT_WHILE_CANNOT_BE_CALLED_OUTSIDE_PROCEDURE()
#define CRITICAL_WAIT_CYCLES_PARALLEL_CANNOT_BE_CALLED_OUTSIDE_PROCEDURE()
#define CRITICAL_MISSING_CONSTANT(v)
#define CRITICAL_COMPRESSION_FAILED(v)
#define CRITICAL_cANNOT_DEFINE_ANIMATION_INSIDE_A_PROCEDURE(n)
#define CRITICAL_cANNOT_DEFINE_ANIMATION_WITHOUT_ATLAS(n)
#define CRITICAL_cANNOT_DEFINE_REVERSE_ANIMATION_WITH_EASING(n)
#define CRITICAL_CANNOT_USE_ANIMATE_WITHOUT_ANIMATION(n)
#define CRITICAL_CANNOT_USE_FREEZE_WITHOUT_ANIMATION(n)
#define CRITICAL_CANNOT_USE_UNFREEZE_WITHOUT_ANIMATION(n)
#define CRITICAL_CANNOT_USE_STOP_WITHOUT_ANIMATION(n)
#define CRITICAL_CANNOT_USE_NEXT_ANIMATION_WITHOUT_ANIMATION(n)
#define CRITICAL_CANNOT_USE_ANIMATING_WITHOUT_ANIMATION(n)
#define CRITICAL_CANNOT_DEFINE_MOVEMENT_INSIDE_A_PROCEDURE(n)
#define CRITICAL_CANNOT_DEFINE_MOVEMENT_WITHOUT_ATLAS(n)
#define CRITICAL_CANNOT_USE_MOVE_WITHOUT_MOVEMENT(n)
#define CRITICAL_CANNOT_USE_ABSOLUTE_MOVE_WITHOUT_ABSOLUTE_MOVEMENT(n)
#define CRITICAL_CANNOT_USE_STOP_WITHOUT_MOVEMENT(n)
#define CRITICAL_CANNOT_USE_MOVING_WITHOUT_MOVEMENT(n)
#define CRITICAL_CANNOT_USE_MOVE_SYNC_WITHOUT_ANIMATIOn(n, m)
#define CRITICAL_CANNOT_DUPLICATE_NOT_MPSRITE(n)
#define CRITICAL_CANNOT_MOVE_PLACEHOLDERS_TO_IMAGE(v)
#define CRITICAL_MID_UNSUPPORTED_FOR_STRING(s)
#define CRITICAL_ON_GOSUB_WITH_NOT_EXISTENT_LABEL(s)
#define CRITICAL_ON_GOSUB_WITH_NOT_EXISTENT_LINE_NUMBER(n)
#define CRITICAL_ON_CALL_WITH_NOT_EXISTENT_PROCEDURE(s)
#define CRITICAL_ON_GOTO_WITH_NOT_EXISTENT_LABEL(s)
#define CRITICAL_ON_GOTO_WITH_NOT_EXISTENT_LINE_NUMBER(n)
#define CRITICAL_ON_SCROLL_GOSUB_WITH_NOT_EXISTENT_LABEL(s)
#define CRITICAL_ON_SCROLL_CALL_WITH_NOT_EXISTENT_PROCEDURE(s)
#define CRITICAL_CANNOT_DEFINE_MOVEMENT_WITHOUT_STEPS(s)
#define CRITICAL_PAGE01()
#define CRITICAL_PMODE_NEEDS_CONSTANTS()
#define CRITICAL_FILE_SIZE_ON_MISSING_FILE(f)
#define CRITICAL_MISSING_END_PROC(p)
#define CRITICAL_NOT_ENOUGH_FRAMES_FOR_ANIMATION(n)
#define CRITICAL_CANNOT_FILL_RANDOM(v)
#define CRITICAL_CANNOT_COPY_SID_FILE(f)
#define CRITICAL_CANNOT_COMPARE_SID_FILE(f)
#define CRITICAL_CANNOT_LOAD_SID_FILE_NO_SPACE()
#define CRITICAL_CANNOT_LOAD_MUSIC(f)
#define CRITICAL_CANNOT_LOAD_MIDI_FILE(f)
#define CRITICAL_MMOB_NEEDS_SPRITE(v)
#define CRITICAL_IMAGE_CONVERTER_INVALID_WIDTH_EXACT(w)
#define CRITICAL_IMAGE_CONVERTER_INVALID_HEIGHT_EXACT(h)
#define CRITICAL_ARRAY_OUT_OF_BOUND(a)
#define CRITICAL_FOR_OUTSIDE_LIMITS(v, a)
#define CRITICAL_SERIAL_WRITE_UNSUPPORTED(v, t)
#define CRITICAL_SERIAL_READ_UNSUPPORTED(t)
#define CRITICAL_FUJINET_READ_UNSUPPORTED(t)
#define DOJO_OPEN_PORT_STRING_REQUIRED(v, t)
#define DOJO_PUT_MESSAGE_DOJOKA_REQUIRED(v, t)
#define DOJO_PUT_MESSAGE_STRING_REQUIRED(v, t)
#define DOJO_PEEK_MESSAGE_DOJOKA_REQUIRED(v, t)
#define DOJO_PUT_MESSAGE_ARRAY_TYPE_UNSUPPORTED(v, t)
#define DOJO_PUT_MESSAGE_ARRAY_SIZE_UNSUPPORTED(v, t)
#define DOJO_GET_MESSAGE_MISSING_VARIABLE()
#define DOJO_PUT_MESSAGE_MISSING_VARIABLE()
#define CRITICAL_VECTOR_GET_X_VECTOR_NEEDED(v)
#define CRITICAL_VECTOR_GET_Y_VECTOR_NEEDED(v)
#define CRITICAL_FILE_NOT_FOUND(n)
#define CRITICAL_TYPE_NESTED_UNSUPPORTED(n)
#define CRITICAL_TYPE_ALREADY_DEFINED(n)
#define CRITICAL_TYPE_NOT_OPENED()
#define CRITICAL_CANNOT_DEFINE_OUTSIDE_TYPE(n)
#define CRITICAL_CANNOT_USE_DATATYPE_IN_TYPE(n)
#define CRITICAL_VARIABLE_TYPE_NEEDED(n)
#define CRITICAL_UNKNOWN_TYPE(n)
#define CRITICAL_CANNOT_USE_FIELD_ON_NONTYPE(n)
#define CRITICAL_UNKNOWN_FIELD_ON_TYPE(n)
#define CRITICAL_DATA_NOT_ENOUGH_FOR_TYPE(n)
#define CRITICAL_FILE_CSV_NOT_ENOUGH_DATA(n)
#define CRITICAL_UNCLOSED_EMBEDDED_ESCAPE_SEQUENCE(n)
#define CRITICAL_CANNOT_PUT_TILEMAP_FOR_TILEMAP_ON_STORAGE(n)
#define CRITICAL_CANNOT_ACCESS_MULTITHREAD_ARRAY_OUTSIDE_PROCEDURE(n)
#define CRITICAL_NESTED_COPPER_LIST_NOT_ALLOWED()
#define CRITICAL_COPPER_LIST_NOT_OPENED()
#define CRITICAL_COPPER_LIST_ALREADY_DEFINED()
#define CRITICAL_MOVE_WITH_NOT_ALLOWED_TYPE(t)
#define CRITICAL_STORE_WITH_NOT_ALLOWED_TYPE(t)
#define CRITICAL_STORE_WITH_NOT_CONST_NOT_ALLOWED(t)
#define CRITICAL_COLOR_WITH_NOT_CONST_NOT_ALLOWED(t)
#define CRITICAL_WAIT_INVALID_VALUE(t)
#define CRITICAL_COPPER_LIST_UNKNOWN(n)
#define CRITICAL_INVALID_NUMBER_BYTES(n)
#define CRITICAL_INVALID_NUMBER_DIGITS(n)
#define CRITICAL_INVALID_FRAME_WIDTH(s)
#define CRITICAL_INVALID_FRAME_HEIGHT(s)
#define CRITICAL_CANNOT_FLIP(s)
#define CRITICAL_CANNOT_DGR_ON_EMBEDDED_FONT()
#define CRITICAL_CANNOT_PUT_IMAGE_WITHOUT_STRIP(s)
#define CRITICAL_CANNOT_DOUBLE_BUFFER_AFTER_LOADING_RESOURCES()
#define CRITICAL_CANNOT_DECRYPT_TO_DATATYPE(s)
#define CRITICAL_HEX2BIN_UNSUPPORTED_DATATYPE(v, s)
#define CRITICAL_DIVISION_BY_ZERO()
#define CRITICALB(s)
#define CRITICALB2(s, v)
#define CRITICALB2i(s, v)
#define CRITICALB3(s, v1, v2)
#define CRITICALB3i(s, v1, v2)
#define CRITICALB4si(s, v, d1, d2)
#define CRITICAL_BUILD_CANNOT_READ_EXECUTABLE_FOR_DSK(d, f)
#define CRITICAL_BUILD_INVALID_FILENAME_K7(f)
#define CRITICAL_BINARY_FILE_TOO_BIG_FOR_ROM(s)
#define WARNING(s)
#define WARNING2(s, v)
#define WARNING2i(s, v)
#define WARNING3(s, v1, v2)
#define WARNING_BITWIDTH(v1, v2)
#define WARNING_DOWNCAST(v1, v2)
#define WARNING_SCREEN_MODE(v1)
#define WARNING_USE_OF_UNDEFINED_ARRAY(v1)
#define WARNING_IMAGE_CONVERTER_UNSUPPORTED_MODE(f)
#define WARNING_IMAGE_LOAD_EXACT_IGNORED()
#define WARNING_DLOAD_IGNORED_SIZE(f)
#define WARNING_DLOAD_IGNORED_OFFSET(f)
#define WARNING_DEPRECATED(k)
#define WARNING_DLOAD_IGNORED_FILENAME(f)
#define CHECK_POWEROF2_INVALID_MULTIPLACTOR2(value)
#define CHECK_NOTZERO_DIVISION_BY_ZERO(value)
#define outline0n(n, s, r)
#define outline1n(n, s, a, r)
#define outline2n(n, s, a, b, r)
#define outline3n(n, s, a, b, c, r)
#define outline4n(n, s, a, b, c, d, r)
#define outline5n(n, s, a, b, c, d, e, r)
#define outline6n(n, s, a, b, c, d, e, f, r)
#define cfgline0n(n, s, r)
#define cfgline1n(n, s, a, r)
#define cfgline2n(n, s, a, b, r)
#define cfgline3n(n, s, a, b, c, r)
#define cfgline4n(n, s, a, b, c, d, r)
#define cfgline5n(n, s, a, b, c, d, e, r)
#define outfile0(f)
#define outembedded0(e)
#define outembeddeddef0(e)
#define adiline0(s)
#define adiline1(s, a)
#define adiline2(s, a, b)
#define adiline3(s, a, b, c)
#define adiline4(s, a, b, c, d)
#define adiline5(s, a, b, c, d, e)
#define adiline6(s, a, b, c, d, e, f)
#define adilinepalette(s, c, p)
#define adilinebeginbitmap(s)
#define adilinepixel(p)
#define adilineendbitmap()
#define outhead0(s)
#define outhead1(s, a)
#define outhead2(s, a, b)
#define outhead3(s, a, b, c)
#define outhead4(s, a, b, c, d)
#define outhead5(s, a, b, c, d, e)
#define outline0(s)
#define outline1(s, a)
#define outline2(s, a, b)
#define outline3(s, a, b, c)
#define outline4(s, a, b, c, d)
#define outline5(s, a, b, c, d, e)
#define outline6(s, a, b, c, d, e, f)
#define out0(s)
#define out1(s, a)
#define out2(s, a, b)
#define out3(s, a, b, c)
#define out4(s, a, b, c, d)
#define out5(s, a, b, c, d, e)
#define out6(s, a, b, c, d, e, f)
#define cfghead0(s)
#define cfghead1(s, a)
#define cfghead2(s, a, b)
#define cfghead3(s, a, b, c)
#define cfghead4(s, a, b, c, d)
#define cfghead5(s, a, b, c, d, e)
#define cfgline0(s)
#define cfgline1(s, a)
#define cfgline2(s, a, b)
#define cfgline3(s, a, b, c)
#define cfgline4(s, a, b, c, d)
#define cfgline5(s, a, b, c, d, e)
#define cfg0(s)
#define cfg1(s, a)
#define cfg2(s, a, b)
#define cfg3(s, a, b, c)
#define cfg4(s, a, b, c, d)
#define cfg5(s, a, b, c, d, e)
#define deploy(s, e)
#define deploy_preferred(s, e)
#define deploy_deferred(s, e)
#define deploy_inplace(s, e)
#define deploy_inplace_preferred(s, e)
#define deploy_with_vars(s, e, v)
#define deploy_deferred_with_vars(s, e, v)
#define deploy_embedded(s, e)
#define deploy_deferred_embedded(s, e)
#define deploy_begin(s)
#define deploy_end(s)
#define inline(s)
#define no_inline(s)
#define no_embedded(s)
#define embedded(s, e)
#define done()
#define parse_embedded(p, s)
#define stats_embedded(s)
#define WW_PEN   1
#define WW_PAPER   2
#define SHIFT_LEFT   1
#define SHIFT_RIGHT   2
#define SHIFT_CAPSLOCK   4
#define SHIFT_CONTROL   8
#define SHIFT_LEFT_ALT   16
#define SHIFT_RIGHT_ALT   32
#define TILEMAP_NATIVE   0
#define BITMAP_NATIVE   1
#define PROTOTHREAD_STATUS_WAITING   0
#define PROTOTHREAD_STATUS_RUNNING   1
#define PROTOTHREAD_STATUS_YIELDED   2
#define PROTOTHREAD_STATUS_EXITED   3
#define PROTOTHREAD_STATUS_ENDED   4
#define PROTOTHREAD_STATUS_PAUSED   5
#define FLAG_FLIP_X   1
#define FLAG_FLIP_Y   2
#define FLAG_ROLL_X   4
#define FLAG_OVERLAYED   8
#define FLAG_ROLL_Y   16
#define SPRITE_FLAG_MULTICOLOR   0x8000
#define SPRITE_FLAG_MONOCOLOR   0x4000
#define SPRITE_FLAG_EXPAND_VERTICAL   0x2000
#define SPRITE_FLAG_COMPRESS_VERTICAL   0x1000
#define SPRITE_FLAG_EXPAND_HORIZONTAL   0x0800
#define SPRITE_FLAG_COMPRESS_HORIZONTAL   0x0400
#define SPRITE_FLAG_TRANSPARENCY_COLOR   0x0200
#define FLAG_TRANSPARENCY   32
#define FLAG_DOUBLE_Y   64
#define FLAG_EXACT   128
#define FLAG_COMPRESSED   256
#define FLAG_WITH_PALETTE   512
#define IMF_INSTRUMENT_EXPLOSION   0x00
#define IMF_INSTRUMENT_ACOUSTIC_GRAND_PIANO   0x01
#define IMF_INSTRUMENT_BRIGHT_ACOUSTIC_PIANO   0x02
#define IMF_INSTRUMENT_ELECTRIC_GRAND_PIANO   0x03
#define IMF_INSTRUMENT_HONKY_TONK_PIANO   0x04
#define IMF_INSTRUMENT_ELECTRIC_PIANO1   0x05
#define IMF_INSTRUMENT_ELECTRIC_PIANO2   0x06
#define IMF_INSTRUMENT_HARPSICHORD   0x07
#define IMF_INSTRUMENT_CLAVI   0x08
#define IMF_INSTRUMENT_CELESTA   0x09
#define IMF_INSTRUMENT_GLOCKENSPIEL   0x0A
#define IMF_INSTRUMENT_MUSIC_BOX   0x0B
#define IMF_INSTRUMENT_VIBRAPHONE   0x0C
#define IMF_INSTRUMENT_MARIMBA   0x0D
#define IMF_INSTRUMENT_XYLOPHONE   0x0E
#define IMF_INSTRUMENT_TUBULAR_BELLS   0x0F
#define IMF_INSTRUMENT_DULCIMER   0x10
#define IMF_INSTRUMENT_DRAWBAR_ORGAN   0x11
#define IMF_INSTRUMENT_PERCUSSIVE_ORGAN   0x12
#define IMF_INSTRUMENT_ROCK_ORGAN   0x13
#define IMF_INSTRUMENT_CHURCH_ORGAN   0x14
#define IMF_INSTRUMENT_REED_ORGAN   0x15
#define IMF_INSTRUMENT_ACCORDION   0x16
#define IMF_INSTRUMENT_HARMONICA   0x17
#define IMF_INSTRUMENT_TANGO_ACCORDION   0x18
#define IMF_INSTRUMENT_ACOUSTIC_GUITAR_NYLON   0x19
#define IMF_INSTRUMENT_ACOUSTIC_GUITAR_STEEL   0x1A
#define IMF_INSTRUMENT_ELECTRIC_GUITAR_JAZZ   0x1B
#define IMF_INSTRUMENT_ELECTRIC_GUITAR_CLEAN   0x1C
#define IMF_INSTRUMENT_ELECTRIC_GUITAR_MUTED   0x1D
#define IMF_INSTRUMENT_OVERDRIVEN_GUITAR   0x1E
#define IMF_INSTRUMENT_DISTORTION_GUITAR   0x1F
#define IMF_INSTRUMENT_GUITAR_HARMONICS   0x20
#define IMF_INSTRUMENT_ACOUSTIC_BASS   0x21
#define IMF_INSTRUMENT_ELECTRIC_BASS_FINGER   0x22
#define IMF_INSTRUMENT_ELECTRIC_BASS_PICK   0x23
#define IMF_INSTRUMENT_FRETLESS_BASS   0x24
#define IMF_INSTRUMENT_SLAP_BASS_1   0x25
#define IMF_INSTRUMENT_SLAP_BASS_2   0x26
#define IMF_INSTRUMENT_SYNTH_BASS_1   0x27
#define IMF_INSTRUMENT_SYNTH_BASS_2   0x28
#define IMF_INSTRUMENT_VIOLIN   0x29
#define IMF_INSTRUMENT_VIOLA   0x2A
#define IMF_INSTRUMENT_CELLO   0x2B
#define IMF_INSTRUMENT_CONTRABASS   0x2C
#define IMF_INSTRUMENT_TREMOLO_STRINGS   0x2D
#define IMF_INSTRUMENT_PIZZICATO_STRINGS   0x2E
#define IMF_INSTRUMENT_ORCHESTRAL_HARP   0x2F
#define IMF_INSTRUMENT_TIMPANI   0x30
#define IMF_INSTRUMENT_STRING_ENSEMBLE_1   0x31
#define IMF_INSTRUMENT_STRING_ENSEMBLE_2   0x32
#define IMF_INSTRUMENT_SYNTHSTRINGS_1   0x33
#define IMF_INSTRUMENT_SYNTHSTRINGS_2   0x34
#define IMF_INSTRUMENT_CHOIR_AAHS   0x35
#define IMF_INSTRUMENT_VOICE_OOHS   0x36
#define IMF_INSTRUMENT_SYNTH_VOICE   0x37
#define IMF_INSTRUMENT_ORCHESTRA_HIT   0x38
#define IMF_INSTRUMENT_TRUMPET   0x39
#define IMF_INSTRUMENT_TROMBONE   0x3A
#define IMF_INSTRUMENT_TUBA   0x3B
#define IMF_INSTRUMENT_MUTED_TRUMPET   0x3C
#define IMF_INSTRUMENT_FRENCH_HORN   0x3D
#define IMF_INSTRUMENT_BRASS_SECTION   0x3E
#define IMF_INSTRUMENT_SYNTHBRASS_1   0x3F
#define IMF_INSTRUMENT_SYNTHBRASS_2   0x40
#define IMF_INSTRUMENT_SOPRANO_SAX   0x41
#define IMF_INSTRUMENT_ALTO_SAX   0x42
#define IMF_INSTRUMENT_TENOR_SAX   0x43
#define IMF_INSTRUMENT_BARITONE_SAX   0x44
#define IMF_INSTRUMENT_OBOE   0x45
#define IMF_INSTRUMENT_ENGLISH_HORN   0x46
#define IMF_INSTRUMENT_BASSOON   0x47
#define IMF_INSTRUMENT_CLARINET   0x48
#define IMF_INSTRUMENT_PICCOLO   0x49
#define IMF_INSTRUMENT_FLUTE   0x4A
#define IMF_INSTRUMENT_RECORDER   0x4B
#define IMF_INSTRUMENT_PAN_FLUTE   0x4C
#define IMF_INSTRUMENT_BLOWN_BOTTLE   0x4D
#define IMF_INSTRUMENT_SHAKUHACHI   0x4E
#define IMF_INSTRUMENT_WHISTLE   0x4F
#define IMF_INSTRUMENT_OCARINA   0x50
#define IMF_INSTRUMENT_LEAD_1_SQUARE   0x51
#define IMF_INSTRUMENT_LEAD_2_SAWTOOTH   0x52
#define IMF_INSTRUMENT_LEAD_3_CALLIOPE   0x53
#define IMF_INSTRUMENT_LEAD_4_CHIFF   0x54
#define IMF_INSTRUMENT_LEAD_5_CHARANG   0x55
#define IMF_INSTRUMENT_LEAD_6_VOICE   0x56
#define IMF_INSTRUMENT_LEAD_7_FIFTHS   0x57
#define IMF_INSTRUMENT_LEAD_8_BASS_LEAD   0x58
#define IMF_INSTRUMENT_PAD_1_NEW_AGE   0x59
#define IMF_INSTRUMENT_PAD_2_WARM   0x5A
#define IMF_INSTRUMENT_PAD_3_POLYSYNTH   0x5B
#define IMF_INSTRUMENT_PAD_4_CHOIR   0x5C
#define IMF_INSTRUMENT_PAD_5_BOWED   0x5D
#define IMF_INSTRUMENT_PAD_6_METALLIC   0x5E
#define IMF_INSTRUMENT_PAD_7_HALO   0x5F
#define IMF_INSTRUMENT_PAD_8_SWEEP   0x60
#define IMF_INSTRUMENT_FX_1_RAIN   0x61
#define IMF_INSTRUMENT_FX_2_SOUNDTRACK   0x62
#define IMF_INSTRUMENT_FX_3_CRYSTAL   0x63
#define IMF_INSTRUMENT_FX_4_ATMOSPHERE   0x64
#define IMF_INSTRUMENT_FX_5_BRIGHTNESS   0x65
#define IMF_INSTRUMENT_FX_6_GOBLINS   0x66
#define IMF_INSTRUMENT_FX_7_ECHOES   0x67
#define IMF_INSTRUMENT_FX_8_SCI_FI   0x68
#define IMF_INSTRUMENT_SITAR   0x69
#define IMF_INSTRUMENT_BANJO   0x6A
#define IMF_INSTRUMENT_SHAMISEN   0x6B
#define IMF_INSTRUMENT_KOTO   0x6C
#define IMF_INSTRUMENT_KALIMBA   0x6D
#define IMF_INSTRUMENT_BAG_PIPE   0x6E
#define IMF_INSTRUMENT_FIDDLE   0x6F
#define IMF_INSTRUMENT_SHANAI   0x70
#define IMF_INSTRUMENT_TINKLE_BELL   0x71
#define IMF_INSTRUMENT_AGOGO   0x72
#define IMF_INSTRUMENT_STEEL_DRUMS   0x73
#define IMF_INSTRUMENT_WOODBLOCK   0x74
#define IMF_INSTRUMENT_TAIKO_DRUM   0x75
#define IMF_INSTRUMENT_MELODIC_TOM   0x76
#define IMF_INSTRUMENT_SYNTH_DRUM   0x77
#define IMF_INSTRUMENT_REVERSE_CYMBAL   0x78
#define IMF_INSTRUMENT_GUITAR_FRET_NOISE   0x79
#define IMF_INSTRUMENT_BREATH_NOISE   0x7A
#define IMF_INSTRUMENT_SEASHORE   0x7B
#define IMF_INSTRUMENT_BIRD_TWEET   0x7C
#define IMF_INSTRUMENT_TELEPHONE_RING   0x7D
#define IMF_INSTRUMENT_HELICOPTER   0x7E
#define IMF_INSTRUMENT_APPLAUSE   0x7F
#define IMF_INSTRUMENT_GUNSHOT   0x80
#define IMF_NOTE_C   0x00
#define IMF_NOTE_CH   0x01
#define IMF_NOTE_D   0x02
#define IMF_NOTE_DH   0x03
#define IMF_NOTE_E   0x04
#define IMF_NOTE_F   0x05
#define IMF_NOTE_FH   0x06
#define IMF_NOTE_G   0x07
#define IMF_NOTE_GH   0x08
#define IMF_NOTE_A   0x09
#define IMF_NOTE_AH   0x0A
#define IMF_NOTE_B   0x0B
#define IMF_NOTE_COUNT   0x0C
#define IMF_OCTAVE_0   0x00
#define IMF_OCTAVE_1   0x01
#define IMF_OCTAVE_2   0x02
#define IMF_OCTAVE_3   0x03
#define IMF_OCTAVE_4   0x04
#define IMF_OCTAVE_5   0x05
#define IMF_OCTAVE_6   0x06
#define IMF_OCTAVE_7   0x07
#define IMF_OCTAVE_8   0x08
#define IMF_OCTAVE_9   0x09
#define IMF_NOTE(o, n)
#define DOJO_CMD_PING   0x00
#define DOJO_CMD_CREATE_PORT   0x01
#define DOJO_CMD_OPEN_PORT   0x02
#define DOJO_CMD_SELECT_PORT   0x03
#define DOJO_CMD_PUT_MESSAGE   0x04
#define DOJO_CMD_PEEK_MESSAGE   0x05
#define DOJO_CMD_GET_MESSAGE   0x06
#define BUILD_CHECK_FILETYPE(_environment, _filetype)
#define BUILD_SAFE_REMOVE(_environment, filename)
#define BUILD_SAFE_MOVE(_environment, source, destination)
#define BUILD_TOOLCHAIN_CC65_GET_EXECUTABLE(_environment, executableName)
#define BUILD_TOOLCHAIN_CC65_GET_LISTING_FILE(_environment, listingFileName)
#define BUILD_TOOLCHAIN_CC65_EXEC(_environment, target, executableName, listingFileName, additionalParameters)
#define BUILD_TOOLCHAIN_Z88DK_GET_EXECUTABLE_Z80ASM(_environment, executableName)
#define BUILD_TOOLCHAIN_Z88DK_GET_LISTING_FILE(_environment, listingFileName)
#define BUILD_TOOLCHAIN_Z88DK_EXEC(_environment, target, executableName, listingFileName, cpu)
#define BUILD_TOOLCHAIN_Z88DK_GET_EXECUTABLE_APPMAKE(_environment, executableName)
#define BUILD_TOOLCHAIN_ASM6809_GET_EXECUTABLE(_environment, executableName)
#define BUILD_TOOLCHAIN_ASM6809_GET_LISTING_FILE(_environment, listingFileName)
#define BUILD_TOOLCHAIN_ASM6809EXEC(_environment, flag, startingAddress, executableName, listingFileName)
#define BUILD_TOOLCHAIN_DECB_GET_EXECUTABLE(_environment, executableName)
#define BUILD_TOOLCHAIN_DECB(_environment, executableName, binaryFileName)
#define BUILD_TOOLCHAIN_DIR2ATR_GET_EXECUTABLE(_environment, executableName)
#define BUILD_TOOLCHAIN_DSKTOOLS_GET_EXECUTABLE(_environment, executableName)
#define BUILD_TOOLCHAIN_DIR2ATR(_environment, executableName, bootCodePath, contentPath, atrFileName, pipes)
#define BUILD_TOOLCHAIN_ASXV5PXX_GET_EXECUTABLE_AS61860(_environment, executableName)
#define BUILD_TOOLCHAIN_ASXV5PXX_EXEC(_environment, target, executableName)
#define BUILD_TOOLCHAIN_ASXV5PXX_GET_EXECUTABLE_ASLINK(_environment, executableName)
#define BUILD_TOOLCHAIN_NASM_GET_EXECUTABLE(_environment, executableName)
#define BUILD_TOOLCHAIN_NASM_GET_LISTING_FILE(_environment, listingFileName)
#define BUILD_TOOLCHAIN_NASM_EXEC(_environment, target, executableName, listingFileName, cpu)
#define FUNCTION_STUB(t)
#define TMP_BUF   tmp_buf(__FILE__, __LINE__)
#define TMP_BUF_CLR   tmp_buf_clr(__FILE__)
#define targetDescription   "ATARI 400/800"
#define defaultExtension   "xex"
#define ENDIANESSVALUE   0 /* little endian */
#define IMAGE_GET_WIDTH(buffer, offset, width)
#define IMAGE_GET_HEIGHT(buffer, offset, height)
#define BETAVALUE   0

Typedefs

typedef enum _Dialect Dialect
 Type of dialects.
typedef enum _Compression Compression
 Type of compression.
typedef enum _BankType BankType
 Type of memory banks.
typedef struct _Bank Bank
 Structure of a single bank.
typedef struct _FileStorage FileStorage
 Structure of a single file inside a storage.
typedef struct _Storage Storage
 Structure of a single storage.
typedef enum _MusicType MusicType
typedef enum _FileStorageFormat FileStorageFormat
typedef enum _OutputFileType OutputFileType
typedef enum _PeepHoleOptimizationKind PeepHoleOptimizationKind
typedef enum _AnimationType AnimationType
typedef struct _POBufferPOBuffer
typedef struct _POVariable POVariable
typedef enum _GammaCorrection GammaCorrection
 Gamma correction type (for some palettes).
typedef struct _StaticString StaticString
 Structure of a single (static) string.
typedef enum _HardwareName HardwareName
typedef enum _HardwareParameterName HardwareParameterName
typedef enum _AudioDeviceName AudioDeviceName
typedef enum _FujiNetDefine FujiNetDefine
typedef struct _OptionParameterValue OptionParameterValue
 Structure of a single (option) setting.
typedef struct _OptionParameterValued OptionParameterValued
typedef struct _ConfigureGMCParameters ConfigureGMCParameters
typedef struct _ConfigureSN76489Parameters ConfigureSN76489Parameters
typedef struct _ConfigureParameters ConfigureParameters
typedef struct _RGBi RGBi
 Structure to store color components (red, green and blue).
typedef enum _VariableType VariableType
 Type of variables.
typedef struct _Resource Resource
typedef enum _MemoryAreaType MemoryAreaType
 Enum for memory area type.
typedef struct _MemoryArea MemoryArea
typedef enum _ConstantType ConstantType
typedef struct _Constant Constant
 Structure of a single constant.
typedef struct _Label Label
 Structure of a single label.
typedef enum _FloatTypePrecision FloatTypePrecision
typedef enum _FloatTypeAngle FloatTypeAngle
typedef struct _FloatType FloatType
typedef struct _OffsettingVariable OffsettingVariable
typedef struct _Offsetting Offsetting
typedef struct _ImageDescriptor ImageDescriptor
typedef struct _AtlasDescriptor AtlasDescriptor
typedef struct _ArrayReference ArrayReference
typedef struct _Strip Strip
typedef struct _Variable Variable
 Structure of a single variable.
typedef struct _Field Field
typedef struct _Type Type
typedef struct _Procedure Procedure
typedef enum _ConditionalType ConditionalType
 Types of conditional jumps supported.
typedef struct _Conditional Conditional
 Structure of a single conditional jump.
typedef enum _LoopType LoopType
 Types of loops supported.
typedef struct _Loop Loop
 Structure of a single loop.
typedef struct _Pattern Pattern
typedef enum _Writing Writing
typedef struct _LoadedFile LoadedFile
typedef struct _ScreenMode ScreenMode
typedef struct _Embedded Embedded
typedef struct _Deployed Deployed
typedef struct _DString DString
typedef struct _ProtothreadConfig ProtothreadConfig
typedef struct _KeyboardConfig KeyboardConfig
typedef struct _JoystickConfig JoystickConfig
typedef struct _VestigialConfig VestigialConfig
typedef struct _FontConfig FontConfig
typedef struct _MultiplexingSpriteConfig MultiplexingSpriteConfig
typedef struct _AudioConfig AudioConfig
typedef struct _CpuOptimization CpuOptimization
typedef struct _BankAccessOptimization BankAccessOptimization
typedef struct _Macro Macro
typedef struct _EmbedResult EmbedResult
typedef struct _TileDescriptor TileDescriptor
typedef struct _TileData TileData
typedef struct _TileDescriptors TileDescriptors
typedef int(* RgbConverterFunction) (int, int, int)
typedef struct _Blit Blit
typedef struct _DataDataSegment DataDataSegment
typedef struct _DataSegment DataSegment
typedef struct _Console Console
typedef struct _Program Program
typedef enum _CopperOperation CopperOperation
typedef struct _CopperInstruction CopperInstruction
typedef struct _CopperList CopperList
typedef struct _NumberConfig NumberConfig
typedef struct _Environment Environment
 Structure of compilation environment.

Enumerations

enum  _Dialect { DI_UGBASIC = 0 , DI_TSB = 1 , DI_ATARI_BASIC = 2 }
 Type of dialects. More...
enum  _Compression { CMP_NONE = 0 , CMP_MSC1 = 1 , CMP_RLE = 2 }
 Type of compression. More...
enum  _BankType {
  BT_CODE = 0 , BT_VARIABLES = 1 , BT_TEMPORARY = 2 , BT_DATA = 3 ,
  BT_STRINGS = 4 , BT_EXPANSION = 5
}
 Type of memory banks. More...
enum  _MusicType {
  MUSIC_TYPE_AUTO = 0 , MUSIC_TYPE_IAF = 1 , MUSIC_TYPE_MID = 2 , MUSIC_TYPE_PSG = 4 ,
  MUSIC_TYPE_SJ2 = 5
}
enum  _FileStorageFormat { FSF_BINARY = 0 , FSF_CSV = 1 }
enum  _OutputFileType {
  OUTPUT_FILE_TYPE_BIN = 0 , OUTPUT_FILE_TYPE_PRG = 1 , OUTPUT_FILE_TYPE_XEX = 2 , OUTPUT_FILE_TYPE_K7_ORIGINAL = 3 ,
  OUTPUT_FILE_TYPE_K7_NEW = 4 , OUTPUT_FILE_TYPE_TAP = 5 , OUTPUT_FILE_TYPE_CAS = 6 , OUTPUT_FILE_TYPE_ROM = 7 ,
  OUTPUT_FILE_TYPE_D64 = 8 , OUTPUT_FILE_TYPE_DSK = 9 , OUTPUT_FILE_TYPE_ATR = 10 , OUTPUT_FILE_TYPE_REU = 11 ,
  OUTPUT_FILE_TYPE_RAM = 12 , OUTPUT_FILE_TYPE_GB = 13 , OUTPUT_FILE_TYPE_COM = 14 , OUTPUT_FILE_TYPE_VZ = 15 ,
  OUTPUT_FILE_TYPE_SDDRIVE = 16
}
enum  _PeepHoleOptimizationKind { PEEPHOLE = 1 , DEADVARS = 2 , RELOCATION1 = 3 , RELOCATION2 = 4 }
enum  _AnimationType { AT_SIMPLE = 0 , AT_BOUNCE = 1 , AT_LOOP = 2 }
enum  _GammaCorrection { GAMMA_CORRECTION_NONE = 0 , GAMMA_CORRECTION_TYPE1 = 1 , GAMMA_CORRECTION_TYPE2 = 2 }
 Gamma correction type (for some palettes). More...
enum  _HardwareName { HN_GMC = 1 , HN_SN76489 = 2 }
enum  _HardwareParameterName { HPN_SLOT = 1 , HPN_ADDRESS = 2 }
enum  _AudioDeviceName {
  ADN_SN76489 = 1 , ADN_POKEY = 2 , ADN_SID = 3 , ADN_DAC1 = 4 ,
  ADN_AY8910 = 5 , ADN_TED = 6 , ADN_VIC1 = 6
}
enum  _FujiNetDefine { FN_HDBDOS = 1 , FN_BECKER = 2 , FN_SERIAL = 3 , FN_SIO = 4 }
enum  _VariableType {
  VT_BYTE = 1 , VT_SBYTE = 2 , VT_WORD = 3 , VT_SWORD = 4 ,
  VT_DWORD = 5 , VT_SDWORD = 6 , VT_ADDRESS = 7 , VT_POSITION = 8 ,
  VT_COLOR = 9 , VT_STRING = 10 , VT_BUFFER = 11 , VT_TARRAY = 12 ,
  VT_DSTRING = 13 , VT_IMAGE = 15 , VT_THREAD = 16 , VT_IMAGES = 17 ,
  VT_CHAR = 18 , VT_SPRITE = 19 , VT_TILE = 20 , VT_TILES = 21 ,
  VT_TILESET = 22 , VT_SEQUENCE = 23 , VT_MUSIC = 24 , VT_BLIT = 25 ,
  VT_FLOAT = 26 , VT_TILEMAP = 27 , VT_BIT = 28 , VT_MSPRITE = 29 ,
  VT_DOJOKA = 30 , VT_IMAGEREF = 31 , VT_PATH = 32 , VT_VECTOR2 = 33 ,
  VT_TYPE = 34 , VT_NUMBER = 35
}
 Type of variables. More...
enum  _MemoryAreaType { MAT_DIRECT = 1 , MAT_GATED = 2 , MAT_RAM = 3 }
 Enum for memory area type. More...
enum  _ConstantType { CT_INTEGER = 0 , CT_STRING = 1 , CT_FLOAT = 2 }
enum  _FloatTypePrecision { FT_FAST = 0 , FT_SINGLE = 1 }
enum  _FloatTypeAngle { FT_RADIAN = 0 , FT_DEGREE = 1 }
enum  _ConditionalType {
  CT_IF = 0 , CT_ON_GOTO = 1 , CT_ON_GOSUB = 2 , CT_ON_PROC = 3 ,
  CT_SELECT_CASE = 4
}
 Types of conditional jumps supported. More...
enum  _LoopType {
  LT_DO = 0 , LT_WHILE = 1 , LT_REPEAT = 2 , LT_FOR = 3 ,
  LT_FOR_MT = 4 , LT_GAMELOOP = 5 , LT_LOOP = 6
}
 Types of loops supported. More...
enum  _Writing {
  WRITING_REPLACE = 0 , WRITING_OR = 1 , WRITING_XOR = 2 , WRITING_AND = 3 ,
  WRITING_IGNORE = 4 , WRITING_PAPER = 1 , WRITING_PEN = 2 , WRITING_NORMAL = 3
}
enum  _CopperOperation {
  COP_NOP = 0 , COP_WAIT = 1 , COP_STORE_BYTE = 2 , COP_STORE_WORD = 3 ,
  COP_STORE_DWORD = 4 , COP_MOVE_BYTE = 5 , COP_MOVE_WORD = 6 , COP_MOVE_DWORD = 7 ,
  COP_COLOR_BORDER = 8 , COP_COLOR_BACKGROUND = 9 , COP_COLOR = 10
}

Functions

int yyerror (Environment *_ignored, const char *_message)
int assemblyLineIsAComment (char *_buffer)
const char * strstrcase (const char *_x, const char *_y)
const char * strrstr (const char *haystack, const char *needle)
char * strreplace (const char *_orig, const char *_rep, const char *_with)
int buffered_fputs (Environment *_environment, const char *_string, FILE *_stream)
void buffered_fprintf (Environment *_environment, FILE *_stream, const char *_format,...)
size_t buffered_fwrite (Environment *_environment, void *_data, size_t _size, size_t _count, FILE *_stream)
void buffered_push_output (Environment *_environment)
void buffered_output (Environment *_environment, FILE *_stream)
void buffered_prepend_output (Environment *_environment)
void buffered_pop_output (Environment *_environment)
int embedparse (void *)
int embed_scan_string (const char *)
char * strtoupper (char *_string)
char * basename (char *_path)
char * strcopy (char *_dest, char *_source)
void show_usage_and_exit (int _argc, char *_argv[])
 Show usage and exit.
char * import_file_name (char *_import_path)
Environmentenvironment_create (void)
 Create a new environment.
void environment_setup_embedded (Environment *_environment)
void environment_setup_default (Environment *_environment)
 Setup default environment values.
void environment_parse_command_line (Environment *_environment, int _argc, char *_argv[])
 Parse command line parameters.
void environment_setup_10liner (Environment *_environment)
void environment_setup_retrohack (Environment *_environment)
void begin_compilation (Environment *_environment)
void target_initialization (Environment *_environment)
void shell_injection (Environment *_environment)
void target_prepare_finalization (Environment *_environment)
void target_finalization (Environment *_environment)
void target_analysis (Environment *_environment)
void target_deep_analyzer (Environment *_environment)
void end_compilation (Environment *_environment)
void target_peephole_optimizer (Environment *_environment)
void begin_build (Environment *_environment)
 Start building exe from assembly.
void target_linkage (Environment *_environment)
 Convert C64's assembly to executable.
void target_finalize (Environment *_environment)
void target_cleanup (Environment *_environment)
void end_build (Environment *_environment)
 End building exe from asssembly.
void bank_cleanup (Environment *_environment)
 Emit source and configuration lines for banks.
void gameloop_cleanup (Environment *_environment)
 Emit source and configuration lines for game loops.
void linker_cleanup (Environment *_environment)
 Emit tail of linker's configuration file lines.
void linker_setup (Environment *_environment)
 Emit tail of linker's configuration file lines.
int pattern_match (char *_pattern, char *_value)
void setup_text_variables (Environment *_environment)
void finalize_text_variables (Environment *_environment)
ScreenModefind_screen_mode_by_suggestion (Environment *_environment, int _bitmap, int _width, int _height, int _colors, int _tile_width, int _tile_height)
ScreenModefind_screen_mode_by_id (Environment *_environment, int _id)
int count_screen_mode_selected (Environment *_environment)
int reset_screen_mode_selected (Environment *_environment)
Bankbank_find (Bank *_first, char *_name)
Typetype_find (Type *_first, char *_name)
Fieldfield_find (Type *_type, char *_name)
CopperListfind_copper_list (Environment *_environment, char *_name)
int check_datatype_limits (VariableType _type, int _value)
void define_implicit_array_if_needed (Environment *_Environment, char *_name)
int define_audio_target_check (Environment *_environment, int _value)
void console_init (Environment *_environment)
void console_calculate (Environment *_environment)
void console_calculate_vars (Environment *_environment)
void banks_init (Environment *_environment)
void banks_init_extended (Environment *_environment, int *_allowed, int _allowed_count, int _allowed_size)
char * banks_get_address (Environment *_environment, int _bank)
Variablebanks_get_address_var (Environment *_environment, char *_bank)
int banks_store (Environment *_environment, Variable *_variable, int _resident)
int banks_store_data (Environment *_environment, char *_data, int _size)
int banks_any_used (Environment *_environment)
void banks_generate (Environment *_environment)
int banks_get_default_resident (Environment *_environment, int _bank)
void vars_emit_constant_integer (Environment *_environment, char *_name, int _value)
void vars_emit_constants (Environment *_environment)
void vars_emit_strips (Environment *_environment, char *_name, Strip *_strips)
char * file_read_csv (Environment *_Environment, char *_filename, VariableType _type, int *_size, int *_count)
POBuffer po_buf_del (POBuffer buf)
POBuffer po_buf_new (int size)
POBuffer po_buf_cat (POBuffer buf, char *string)
POBuffer po_buf_cpy (POBuffer buf, char *string)
POBuffer po_buf_add (POBuffer buf, char c)
POBuffer po_buf_vprintf (POBuffer buf, const char *fmt, va_list ap)
POBuffer po_buf_printf (POBuffer buf, const char *fmt,...)
POBuffer po_buf_fgets (POBuffer buf, FILE *f)
int po_buf_trim (POBuffer buf)
int po_buf_cmp (POBuffer a, POBuffer b)
POBuffer tmp_buf (void *key1, unsigned int key2)
void tmp_buf_clr (void *key1)
POBuffer po_buf_match (POBuffer _buf, const char *_pattern,...)
int po_buf_strcmp (POBuffer _s, POBuffer _t)
int po_buf_is_hex (POBuffer _s)
void po_var_init ()
POVariablepo_var_register (char *_name)
POVariablepo_var_find (char *_name)
POVariablepo_var_lookup (char *_name)
ImageDescriptorimage_descriptor_create (Environment *_environment, char *_filename, int _flags)
ImageDescriptorimage_descriptor_flip_x (Environment *_environment, ImageDescriptor *_source)
ImageDescriptorimage_descriptor_flip_y (Environment *_environment, ImageDescriptor *_source)
ImageDescriptorimage_descriptor_roll_x_right (Environment *_environment, ImageDescriptor *_source)
ImageDescriptorimage_descriptor_roll_x_left (Environment *_environment, ImageDescriptor *_source)
ImageDescriptorimage_descriptor_roll_y_down (Environment *_environment, ImageDescriptor *_source)
AtlasDescriptoratlas_descriptor_create (Environment *_environment, char *_filename, int _flags, int _image_origin_x, int _image_origin_y, int _frame_width, int _frame_height, int _frame_offset_x, int _frame_offset_y)
int file_get_size (Environment *_environment, char *_filename)
char * get_default_temporary_path ()
char * find_last_path_separator (char *_path)
char * generate_storage_filename (Environment *_environment, char *_prefix, char *_suffix, int _number)
int system_move_safe (Environment *_environment, char *_source, char *_destination)
int system_remove_safe (Environment *_environment, char *_filename)
int show_troubleshooting_and_exit (Environment *_environment, int _argc, char *_argv[])
void parser_array_init (Environment *_environment)
void parser_array_init_by (Environment *_environment, ArrayReference *_array_reference)
void parser_array_index_symbolic (Environment *_environment, char *_index)
void parser_array_index_numeric (Environment *_environment, int _index)
void parser_array_cleanup (Environment *_environment)
ArrayReferenceparser_array_retrieve (Environment *_environment)
Variableparser_adapted_numeric (Environment *_environment, int _number)
Variableparser_casted_numeric (Environment *_environment, VariableType _type, int _number)
Variablevariable_by_constant (Environment *_environment, VariableType _type, int _value)
Variableabsolute (Environment *_environment, char *_value)
 Return the absolute value of a variable.
void add_complex (Environment *_environment, char *_variable, int _expression, int _limit_lower, int _limit_upper, int _clamp)
void add_complex_type (Environment *_environment, char *_variable, char *_field, int _expression, int _limit_lower, int _limit_upper, int _clamp)
void add_complex_vars (Environment *_environment, char *_variable, char *_expression, char *_limit_lower, char *_limit_upper, int _clamp)
 Emit code for ADD x,y,a TO b.
void add_complex_type_vars (Environment *_environment, char *_variable, char *_field, char *_expression, char *_limit_lower, char *_limit_upper, int _clamp)
void add_complex_array (Environment *_environment, char *_variable, char *_expression, char *_limit_lower, char *_limit_upper, int _clamp)
 Emit code for ADD x,y,a TO b.
void add_complex_array_type (Environment *_environment, char *_variable, char *_field, char *_expression, char *_limit_lower, char *_limit_upper, int _clamp)
void add_complex_mt (Environment *_environment, char *_variable, char *_expression, char *_limit_lower, char *_limit_upper, int _clamp)
 Emit code for ADD x,y,a TO b.
char * address_displacement (Environment *_environment, char *_address, char *_displacement)
void allow (Environment *_environment)
 Emit code for YIELD.
void animate_semivars (Environment *_environment, char *_prefix, char *_anim, char *_x, char *_y)
 Emit code for ANIMATE ....
Variableanimating (Environment *_environment, char *_prefix, char *_animation)
 Emit code for RUN PARALLEL.
void animation (Environment *_environment, char *_identifier, char *_atlas, char *_prefix, char *_next)
 Emit code for ANIMATION ....
Variableasciicode (Environment *_environment)
void back (Environment *_environment, char *_color)
 Emit ASM code to fill background color.
Bankbank_define (Environment *_environment, char *_name, BankType _type, int _address, char *_filename)
 Implementation for BANK xxx AT [WITH yyy].
Variablebank_get (Environment *_environment)
 Emit ASM code for instruction = BANK( ).
Variablebank_get_address (Environment *_environment, int _bank)
 Emit ASM code for instruction = BANK ADDRESS( ).
Variablebank_get_address_var (Environment *_environment, char *_bank)
 Emit ASM code for instruction = BANK ADDRESS( ).
Variablebank_get_size (Environment *_environment, int _bank)
 Emit ASM code for instruction = BANK SIZE( ).
Variablebank_get_size_var (Environment *_environment, char *_bank)
 Emit ASM code for instruction = BANK SIZE( ).
Variablebank_get_count (Environment *_environment)
 Emit ASM code for instruction = BANK COUNT.
void bank_read_semi_var (Environment *_environment, int _bank, int _address1, char *_address2, int _size)
 Emit ASM code for instruction BANK READ ....
void bank_read_vars (Environment *_environment, char *_bank, char *_address1, char *_address2, char *_size)
 Emit ASM code for instruction BANK READ ....
void bank_read_vars_direct (Environment *_environment, char *_bank, char *_address1, char *_address2, char *_size)
void bank_read_vars_direct_size (Environment *_environment, char *_bank, char *_address1, char *_address2, int _size)
void bank_read_vars_bank_direct_size (Environment *_environment, int _bank, char *_address1, char *_address2, int _size)
void bank_read_vars_bank_direct_size_vars (Environment *_environment, int _bank, char *_address1, char *_address2, int _size)
void bank_uncompress_semi_var (Environment *_environment, int _bank, int _address1, char *_address2)
 Emit ASM code for instruction BANK UNCOMPRESS ....
void bank_uncompress_vars (Environment *_environment, char *_bank, char *_address1, char *_address2)
 Emit ASM code for instruction BANK UNCOMPRESS ....
void bank_set (Environment *_environment, int _bank)
 Emit ASM code for instruction BANK ....
void bank_set_var (Environment *_environment, char *_bank)
 Emit ASM code for instruction BANK ....
void bank_write_vars (Environment *_environment, char *_bank, char *_address1, char *_address2, char *_size)
 Emit ASM code for instruction BANK WRITE ....
void bank_write_semi_var (Environment *_environment, char *_address2, int _bank, int _address1, int _size)
void bank_write_vars_direct (Environment *_environment, char *_bank, char *_address1, char *_address2, char *_size)
void bank_write_vars_bank_direct_size (Environment *_environment, char *_address1, int _bank, char *_address2, int _size)
void bar (Environment *_environment, char *_x0, char *_y0, char *_x1, char *_y1, char *_c, int _preserve_color)
 Emit ASM code to implement BAR command.
void begin_copper (Environment *_environment, char *_name)
 Emit code for BEGIN COPPER.
void begin_for_prepare (Environment *_environment, char *_index)
 Emit ASM code for FOR ....
void begin_for_from_prepare (Environment *_environment)
void begin_for_from_assign (Environment *_environment, char *_from)
void begin_for_to_prepare (Environment *_environment)
void begin_for_to_assign (Environment *_environment, char *_to)
void begin_for_step_prepare (Environment *_environment)
void begin_for_step_assign (Environment *_environment, char *_step)
void begin_for_identifier (Environment *_environment, char *_index)
void begin_for_prepare_mt (Environment *_environment, char *_index)
void begin_for_from_prepare_mt (Environment *_environment)
void begin_for_from_assign_mt (Environment *_environment, char *_from)
void begin_for_to_prepare_mt (Environment *_environment)
void begin_for_to_assign_mt (Environment *_environment, char *_to)
void begin_for_step_prepare_mt (Environment *_environment)
void begin_for_step_assign_mt (Environment *_environment, char *_step)
void begin_for_identifier_mt (Environment *_environment, char *_index)
void begin_for (Environment *_environment, char *_index, char *_from, char *_to)
void begin_for_from (Environment *_environment, char *_index, char *_from, char *_to, char *_step)
void begin_for_from_mt (Environment *_environment, char *_index, char *_from, char *_to, char *_step)
void begin_for_mt (Environment *_environment, char *_index, char *_from, char *_to)
void begin_for_mt_step (Environment *_environment, char *_index, char *_from, char *_to, char *_step)
 Emit ASM code for FOR ... STEP ... NEXT (in thread).
void begin_for_step (Environment *_environment, char *_index, char *_from, char *_to, char *_step)
 Emit ASM code for FOR ... STEP ... NEXT.
void begin_for_to (Environment *_environment, char *_to)
void begin_for_to_mt (Environment *_environment, char *_to)
void begin_gameloop (Environment *_environment)
 Emit ASM code for BEGIN GAMELOOP.
void begin_do_loop (Environment *_environment)
 Emit ASM code for DO ....
void begin_loop (Environment *_environment, int _do)
 Emit ASM code for DO ....
void begin_procedure (Environment *_environment, char *_name)
 Emit code for PROCEDURE ... END PROC.
void begin_repeat (Environment *_environment)
 Emit ASM code for REPEAT ....
void begin_storage (Environment *_environment, char *_name, char *_file_name)
 Emit code for STORAGE ... ENDSTORAGE.
void begin_type (Environment *_environment, char *_name)
 Emit code for STORAGE ... ENDSTORAGE.
void begin_while (Environment *_environment)
 Emit ASM code for WHILE ....
void begin_while_condition (Environment *_environment, char *_expression)
void bell (Environment *_environment, int _note, int _duration, int _channels)
 Emit ASM code for BELL ....
void bell_vars (Environment *_environment, char *_note, char *_duration, char *_channels, int _sync)
 Emit ASM code for BELL ....
void bitmap_at (Environment *_environment, int _address)
 Emit ASM implementation for BITMAP AT [int] instruction.
void bitmap_at_var (Environment *_environment, char *_address)
 Emit ASM implementation for BITMAP AT [expression] instruction.
void bitmap_disable (Environment *_environment)
 Emit ASM implementation for BITMAP DISABLE instruction.
void bitmap_enable (Environment *_environment, int _width, int _height, int _colors)
 Emit ASM implementation for BITMAP ENABLE instruction.
void blit_define (Environment *_environment, char *_name, int _sop, int _mop, int _smop, int _iop, int _dop, int _idop, int _top)
 Emit ASM code for BLIT IMAGE [image] AT [int],[int].
void blit_define_begin_compound (Environment *_environment, char *_name)
void blit_define_compound_binary (Environment *_environment, int _operation, int _operand1, int _operand2, int _result)
void blit_define_compound_unary (Environment *_environment, int _operation, int _operand, int _result)
void blit_define_compound_operand_to_register (Environment *_environment, int _register, int _source)
void blit_define_end_compound (Environment *_environment, int _register)
void blit_image (Environment *_environment, char *_blit, char *_x, char *_y, char *_frame, char *_sequence, int _flags)
 Emit ASM code for BLIT IMAGE [image] AT [int],[int].
void boom (Environment *_environment, int _duration, int _channels)
 Emit ASM code for BOOM ....
void boom_var (Environment *_environment, char *_duration, char *_channels)
 Emit ASM code for BOOM ....
void bottom (Environment *_environment)
 Emit code for HOME.
void box (Environment *_environment, char *_x1, char *_y1, char *_x2, char *_y2, char *_c, int _preserve_color)
 Emit ASM code to implement BOX command.
Resourcebuild_resource_for_sequence (Environment *_environment, char *_image, char *_frame, char *_sequence)
int calculate_nearest_tile (TileDescriptor *_tile, TileDescriptors *_tiles)
int calculate_exact_tile (TileDescriptor *_tile, TileDescriptors *_tiles)
int calculate_tile_affinity (TileDescriptor *_first, TileDescriptor *_second)
TileDescriptorcalculate_tile_descriptor (TileData *_tileData)
Variablecalculate_frame_by_type (Environment *_environment, TsxTileset *_tileset, char *_images, char *_description)
void call_procedure (Environment *_environment, char *_name)
 Emit code for CALL/PROC ....
void case_else (Environment *_environment)
 Emit ASM code for CASE ELSE.
void case_equals (Environment *_environment, int _value)
 Emit ASM code for CASE ....
void case_equals_var (Environment *_environment, char *_value)
 Emit ASM code for CASE ....
void case_equals_label (Environment *_environment)
void center (Environment *_environment, char *_string, int _newline, char *_width)
 Emit code for CENTRE ....
void cgoto (Environment *_environment, char *_expression)
void chain (Environment *_environment, char *_filename)
 Emit code for DLOAD(...).
void char_at (Environment *_environment, char *_x, char *_y, char *_code, char *_type, char *_size)
 Emit code for CENTRE ....
void charset_at (Environment *_environment, int _value)
 Emit ASM implementation for BITMAP AT [int] instruction.
void charset_at_var (Environment *_environment, char *_value)
 Emit ASM implementation for BITMAP AT [expression] instruction.
void charset_uppercase (Environment *_environment)
void charset_lowercase (Environment *_environment)
int check_if_filename_is_valid (Environment *_environment, char *_filename)
void circle (Environment *_environment, char *_x, char *_y, char *_r, char *_c, int _preserve_color)
 Emit code for CIRCLE command.
void clear (Environment *_environment)
Variableclear_key (Environment *_environment)
void cline (Environment *_environment, char *_characters)
 Emit code for CLINE ....
void clip (Environment *_environment, char *_x1, char *_y1, char *_x2, char *_y2)
 Emit code to implement CLIP command.
void cls (Environment *_environment, char *_paper)
 Emit code for CLS.
void cls_box (Environment *_environment, char *_x1, char *_y1, char *_w, char *_h)
void cmove (Environment *_environment, char *_dx, char *_dy)
 Emit code for CMOVE.
void cmove_direct (Environment *_environment, int _dx, int _dy)
Variablecollision_to (Environment *_environment, int _sprite)
 Emit ASM code for = COLLISION([int]x).
Variablecollision_to_vars (Environment *_environment, char *_sprite)
 Emit ASM code for = COLLISION([expression]).
void color (Environment *_environment, int _index, int _shade)
 Emit ASM code for instruction COLOR [int], [int].
Variablecolor_get_vars (Environment *_environment, char *_index)
 Emit ASM code for instruction = COLOR( [int] ).
void color_semivars (Environment *_environment, int _index, char *_shade)
 Emit ASM code for instruction COLOR [expression], [expression].
void color_vars (Environment *_environment, char *_index, char *_shade)
 Emit ASM code for instruction COLOR [expression], [expression].
void color_background (Environment *_environment, int _index, int _background_color)
 Emit ASM code for instruction COLOR BACKGROUND [int] TO [int]x.
void color_background_vars (Environment *_environment, char *_index, char *_background_color)
 Emit ASM code for instruction COLOR BACKGROUND [expression] TO [expression].
void color_border (Environment *_environment, int _border_color)
 Emit ASM code for instruction COLOR BORDER [int]x.
void color_border_var (Environment *_environment, char *_border_color)
 Emit ASM code for instruction COLOR BORDER [expression].
void color_sprite (Environment *_environment, int _index, int _color)
 Emit ASM code for instruction COLOR SPRITE [int] TO [int].
void color_sprite_semi_vars (Environment *_environment, int _index, char *_color)
void color_sprite_vars (Environment *_environment, char *_sprite, char *_color)
 Emit ASM code for instruction COLOR SPRITE [expression] TO [expression].
void color_tsb (Environment *_environment, char *_border, char *_background, char *_cursor)
void colormap_at (Environment *_environment, int _address)
 Emit ASM implementation for COLORMAP AT [int] instruction.
void colormap_at_var (Environment *_environment, char *_address)
 Emit ASM implementation for COLORMAP AT [expression] instruction.
void colormap_clear (Environment *_environment)
 Emit ASM implementation for COLORMAP CLEAR instruction.
void colormap_clear_with (Environment *_environment, int _foreground, int _background)
 Emit ASM implementation for COLORMAP CLEAR WITH [int] ON [int] instruction.
void colormap_clear_with_vars (Environment *_environment, char *_foreground, char *_background)
 Emit ASM implementation for COLORMAP CLEAR WITH [expression] ON [expression] instruction.
Variablecombine_nibble_vars (Environment *_environment, char *_low_byte, char *_high_byte)
 Emit code for COMBINE NIBBLE.
void configure_set_value (Environment *_environment, int _name, int _parameter, int _value)
void configure_set_value_var (Environment *_environment, int _name, int _parameter, char *_value)
void console (Environment *_environment, int _x1, int _x2, int _x3, int _x4)
 Emit code for CONSOLE.
void console_save (Environment *_environment, int _number)
 Emit code for CONSOLE.
void console_save_vars (Environment *_environment, char *_number)
void console_restore (Environment *_environment, int _number)
 Emit code for CONSOLE.
void console_restore_vars (Environment *_environment, char *_number)
void console_vars (Environment *_environment, char *_x1, char *_x2, char *_x3, char *_x4)
Variableconsole_tiles_get_height (Environment *_environment)
Variableconsole_tiles_get_width (Environment *_environment)
void const_define_numeric (Environment *_environment, char *_name, int _value)
void const_define_string (Environment *_environment, char *_name, char *_value)
void const_define_float (Environment *_environment, char *_name, double _value)
void const_emit (Environment *_environment, char *_name)
Constantconstant_create (Environment *_environment, char *_name)
Constantconstant_find (Environment *_environment, char *_name)
void copper_color (Environment *_environment, int _index, int _color)
 Emit code for BEGIN COPPER.
void copper_color_background (Environment *_environment, int _color)
 Emit code for BEGIN COPPER.
void copper_color_border (Environment *_environment, int _color)
 Emit code for BEGIN COPPER.
void copper_nop (Environment *_environment)
 Emit code for BEGIN COPPER.
void copper_wait (Environment *_environment, int _line)
 Emit code for BEGIN COPPER.
void copper_move (Environment *_environment, int _address1, int _address2, VariableType _VariableType)
void copper_store (Environment *_environment, int _address, int _value, VariableType _VariableType)
void copper_use (Environment *_environment, char *_name)
void cpuspeed (Environment *_environment, char *_value)
 Emit ASM code for CPUSPEED.
Variablecreate_path (Environment *_environment, char *_x0, char *_y0, char *_x1, char *_y1)
 Emit ASM code to implement CREATE PATH command.
Variablecreate_vector (Environment *_environment, char *_x, char *_y)
 Emit ASM code to implement CREATE PATH command.
Variablecsprite_init (Environment *_environment, char *_image, char *_sprite, int _flags)
 Emit code for SPRITE(...).
void cset (Environment *_environment, char *_value)
void data_numeric (Environment *_environment, int _value)
 Emit code for DATA instruction (numeric values).
void data_floating (Environment *_environment, double _value)
 Emit code for DATA instruction (float values).
DataSegmentdata_segment_define (Environment *_environment, char *_name)
DataSegmentdata_segment_define_numeric (Environment *_environment, int _number)
DataSegmentdata_segment_find (Environment *_environment, char *_name)
DataSegmentdata_segment_find_numeric (Environment *_environment, int _number)
DataSegmentdata_segment_define_or_retrieve (Environment *_environment, char *_name)
DataSegmentdata_segment_define_or_retrieve_numeric (Environment *_environment, int _number)
void data_string (Environment *_environment, char *_value)
 Emit code for DATA instruction (string values).
void data_type (Environment *_environment)
void declare_procedure (Environment *_environment, char *_name, int _address, int _system)
 Emit code for DECLARE PROC ....
Variabledecrypt (Environment *_environment, char *_data, char *_key, char *_var)
 Emit code for DECRYPT.
void defdgr_vars (Environment *_environment, char *_character, char *_b0, char *_b1, char *_b2, char *_b3, char *_b4, char *_b5, char *_b6, char *_b7)
 Emit code for DATA instruction (numeric values).
Variabledeserialize (Environment *_environment, char *_data, char *_key, char *_var)
 Emit code for DESERIALIZE.
Variabledistance (Environment *_environment, char *_x1, char *_y1, char *_x2, char *_y2)
 Return the distance between two (screen) positions.
void dload (Environment *_environment, char *_filename, char *_offset, char *_address, char *_bank, char *_size)
 Emit code for DLOAD(...).
void double_buffer (Environment *_environment, int _enabled)
 Emit code for DOUBLE BUFFER ....
void downw (Environment *_environment, char *_line, char *_column, char *_width, char *_height)
 Emit code for DOWNW ....
void downb (Environment *_environment, char *_line, char *_column, char *_width, char *_height)
 Emit code for DOWNB ....
void draw (Environment *_environment, char *_x0, char *_y0, char *_x1, char *_y1, char *_c, int _preserve_color)
 Emit ASM code to implement DRAW command.
void draw_tile_column (Environment *_environment, char *_tile, char *_x, char *_y1, char *_y2, char *_color)
 Emit ASM code for DRAW TILE ROW [y], [x1] TO [x2], [color].
void draw_tile_row (Environment *_environment, char *_tile, char *_y, char *_x1, char *_x2, char *_color)
 Emit ASM code for DRAW TILE ROW [y], [x1] TO [x2], [color].
void draw_string (Environment *_environment, char *_string)
void draw_tsb_string (Environment *_environment, char *_string, char *_x, char *_y, char *_c, int _preserve_color)
void dsave (Environment *_environment, char *_filename, char *_offset, char *_address, char *_size)
 Emit code for DLOAD(...).
void dstring_cleanup (Environment *_Environment)
void dojo_serial_init (Environment *_environment)
void dojo_serial_begin (Environment *_environment)
void dojo_serial_put_request0 (Environment *_environment, int _command, char *_param1, char *_param2, char *_result)
void dojo_serial_put_request (Environment *_environment, int _command, char *_param1, char *_param2, char *_address, char *_size, char *_result)
void dojo_serial_put_requestd (Environment *_environment, int _command, char *_param1, char *_param2, char *_data, char *_size, char *_result)
void dojo_serial_put_requestds (Environment *_environment, int _command, char *_param1, char *_param2, char *_data, int _size, char *_result)
void dojo_serial_has_response (Environment *_environment, char *_result)
void dojo_serial_get_response0 (Environment *_environment, char *_status)
void dojo_serial_get_response (Environment *_environment, char *_status, char *_data, char *_size)
void dojo_serial_get_responsed (Environment *_environment, char *_status, char *_data, char *_size)
void dojo_serial_get_response_size (Environment *_environment, char *_status, char *_size)
void dojo_serial_get_response_payload (Environment *_environment, char *_data)
void dojo_serial_get_response_payloadd (Environment *_environment, char *_address)
void dojo_serial_end (Environment *_environment)
void dojo_fujinet_init (Environment *_environment)
void dojo_fujinet_begin (Environment *_environment)
void dojo_fujinet_put_request0 (Environment *_environment, int _command, char *_param1, char *_param2, char *_result)
void dojo_fujinet_put_request (Environment *_environment, int _command, char *_param1, char *_param2, char *_address, char *_size, char *_result)
void dojo_fujinet_put_requestd (Environment *_environment, int _command, char *_param1, char *_param2, char *_data, char *_size, char *_result)
void dojo_fujinet_put_requestds (Environment *_environment, int _command, char *_param1, char *_param2, char *_data, int _size, char *_result)
void dojo_fujinet_partial (Environment *_environment)
void dojo_fujinet_has_response (Environment *_environment, char *_result)
void dojo_fujinet_get_response0 (Environment *_environment, char *_status)
void dojo_fujinet_get_response (Environment *_environment, char *_status, char *_data, char *_size)
void dojo_fujinet_get_responsed (Environment *_environment, char *_status, char *_data, char *_size)
void dojo_fujinet_get_response_size (Environment *_environment, char *_status, char *_size)
void dojo_fujinet_get_response_payload (Environment *_environment, char *_data)
void dojo_fujinet_get_response_payloadd (Environment *_environment, char *_address)
void dojo_fujinet_end (Environment *_environment)
void dojo_init (Environment *_environment)
void dojo_begin (Environment *_environment)
void dojo_put_request0 (Environment *_environment, int _command, char *_param1, char *_param2, char *_result)
void dojo_put_request (Environment *_environment, int _command, char *_param1, char *_param2, char *_address, char *_size, char *_result)
void dojo_put_requestd (Environment *_environment, int _command, char *_param1, char *_param2, char *_data, char *_size, char *_result)
void dojo_put_requestds (Environment *_environment, int _command, char *_param1, char *_param2, char *_data, int _size, char *_result)
void dojo_partial (Environment *_environment)
void dojo_has_response (Environment *_environment, char *_result)
void dojo_get_response0 (Environment *_environment, char *_status)
void dojo_get_response (Environment *_environment, char *_status, char *_address, char *_size)
void dojo_get_responsed (Environment *_environment, char *_status, char *_data, char *_size)
void dojo_get_response_size (Environment *_environment, char *_status, char *_size)
void dojo_get_response_payload (Environment *_environment, char *_address)
void dojo_get_response_payloadd (Environment *_environment, char *_data)
void dojo_end (Environment *_environment)
Variabledojo_ping (Environment *_environment, char *_param1, char *_param2)
Variabledojo_create_port (Environment *_environment)
Variabledojo_open_port (Environment *_environment, char *_name)
Variabledojo_put_message (Environment *_environment, char *_port, char *_channel, char *_message)
Variabledojo_error (Environment *_environment)
Variabledojo_peek_message (Environment *_environment, char *_port, char *_channel)
Variabledojo_get_message (Environment *_environment, char *_port, char *_channel)
void dojo_get_message_inplace (Environment *_environment, char *_port, char *_channel, char *_variable)
void ellipse (Environment *_environment, char *_x, char *_y, char *_rx, char *_ry, char *_c, int _preserve_color)
 Emit code for ELLIPSE command.
void else_if_then (Environment *_environment, char *_expression)
 Emit ASM code for ... ELSE [IF] ....
void else_if_then_label (Environment *_environment)
 Emit ASM code for ... ELSE [IF] ....
Variableencrypt (Environment *_environment, char *_data, char *_key)
 Emit code for ENCRYPT.
void end (Environment *_environment)
 Emit ASM code for END.
void end_copper (Environment *_environment)
 Emit code for BEGIN COPPER.
void end_for (Environment *_environment)
void end_for_identifier (Environment *_environment, char *_identifier)
 Emit ASM code for ... NEXT.
void end_gameloop (Environment *_environment)
 Emit ASM code for END GAMELOOP.
void end_if_then (Environment *_environment)
 Emit ASM code for ENDIF.
void end_do_loop (Environment *_environment)
 Emit ASM code for ... LOOP.
void end_loop (Environment *_environment, int _do)
 Emit ASM code for ... LOOP.
void end_loop_until (Environment *_environment, char *_expr)
 Emit ASM code for ... LOOP.
void end_loop_while (Environment *_environment, char *_expr)
 Emit ASM code for ... LOOP.
void end_procedure (Environment *_environment, char *_value)
 Emit code for END PROC.
void end_repeat (Environment *_environment)
 Emit ASM code for ... UNTIL [expression].
void end_repeat_condition (Environment *_environment, char *_expression)
void end_select_case (Environment *_environment)
 Emit ASM code for ENDSELECT.
void end_storage (Environment *_environment)
 Emit code for ENDSTORAGE.
void end_type (Environment *_environment)
 Emit code for ENDSTORAGE.
void end_while (Environment *_environment)
 Emit ASM code for ... WEND.
void envelope (Environment *_environment, char *_voice, char *_attack, char *_decay, char *_sustain, char *_release)
void error (Environment *_environment, char *_message)
 Emit ASM code for ERROR.
char * escape_newlines (char *_string)
char * escape_newlines_full (char *_string, int _size)
void every_cleanup (Environment *_environment)
void every_off (Environment *_environment, char *_timer)
 Emit ASM code for EVERY OFF.
void every_on (Environment *_environment, char *_timer)
 Emit ASM code for EVERY ON.
void every_ticks_call (Environment *_environment, char *_timing, char *_label, char *_timer)
void every_ticks_gosub (Environment *_environment, char *_timing, char *_label, char *_timer)
 Emit ASM code for EVERY ... TICKS GOSUB ....
void exit_loop (Environment *_environment, int _number)
 Emit ASM code for EXIT.
void exit_loop_if (Environment *_environment, char *_expression, int _number)
 Emit ASM code for EXIT IF.
void exit_proc_if (Environment *_environment, char *_expression, char *_value)
 Emit ASM code for EXIT PROC IF.
void exit_procedure (Environment *_environment)
 Emit code for POP PROC / EXIT PROC.
void fade_in (Environment *_environment, char *_period)
 Emit code for FADE.
void fade_in_color (Environment *_environment, int _index, int _shade)
void fade_in_color_semivars (Environment *_environment, int _index, char *_shade)
 Emit ASM code for instruction COLOR [expression], [expression].
void fade_in_color_vars (Environment *_environment, char *_index, char *_shade)
 Emit ASM code for instruction COLOR [expression], [expression].
void fade_ticks_var (Environment *_environment, char *_ticks)
 Emit code for FADE.
void fade_milliseconds_var (Environment *_environment, char *_millliseconds)
void fade_out (Environment *_environment, char *_period)
 Emit code for FADE.
void fast (Environment *_environment)
 Emit ASM code for FAST.
void fcircle (Environment *_environment, char *_x, char *_y, char *_r, char *_c, int _preserve_color)
 Emit code for CIRCLE command.
void fellipse (Environment *_environment, char *_x, char *_y, char *_rx, char *_ry, char *_c, int _preserve_color)
 Emit code for ELLIPSE command.
void field_type (Environment *_environment, char *_name, VariableType _datatype)
int file_size (Environment *_environment, char *_target_name)
 Emit code for FILE ... AS ....
void file_storage (Environment *_environment, char *_source_name, char *_target_name, FileStorageFormat _format, VariableType _type)
 Emit code for FILE ... AS ....
void fill (Environment *_environment, char *_x, char *_y, char *_w, char *_h, char *_char, char *_color)
int find_frame_by_type (Environment *_environment, TsxTileset *_tileset, char *_images, char *_description)
void flash (Environment *_environment, char *_index, char *_register)
 Emit code for FLASH.
void flash_off (Environment *_environment, char *_index)
void flip_image_vars (Environment *_environment, char *_image, char *_frame, char *_sequence, char *_direction)
 Emit ASM code for FLIP IMAGE X/Y/XY/YX [image].
void flip_image_vars_direction (Environment *_environment, char *_image, char *_frame, char *_sequence, int _direction)
void flip_image_vars_indirection (Environment *_environment, char *_image, char *_frame, char *_sequence, char *_direction)
void font_descriptors_init (Environment *_environment, int _embedded_present)
void forbid (Environment *_environment)
 Emit code for YIELD.
Variablefp_cos (Environment *_environment, char *_angle)
Variablefp_sin (Environment *_environment, char *_angle)
Variablefp_tan (Environment *_environment, char *_angle)
Variablefp_log (Environment *_environment, char *_value)
Variablefp_exp (Environment *_environment, char *_value)
int frames (Environment *_environment, char *_image)
 Emit code for FRAMES(...).
void freeze_vars (Environment *_environment, char *_prefix)
 Emit code for FREEZE ....
void fujinet_set_device (Environment *_environment, int _device_id)
void fujinet_set_device_var (Environment *_environment, char *_device_id)
Variablefujinet_get_bytes_waiting (Environment *_environment)
Variablefujinet_is_connected (Environment *_environment)
Variablefujinet_get_error (Environment *_environment)
Variablefujinet_is_ready (Environment *_environment)
Variablefujinet_open (Environment *_environment, char *_url, char *_mode, char *_trans)
void fujinet_close (Environment *_environment)
void fujinet_get_status (Environment *_environment)
Variablefujinet_http_post_bin (Environment *_environment, char *_value)
Variablefujinet_http_post_bin_type (Environment *_environment, char *_value, VariableType _type)
Variablefujinet_read (Environment *_environment, char *_size)
Variablefujinet_read_type (Environment *_environment, VariableType _type)
Variablefujinet_write (Environment *_environment, char *_value)
Variablefujinet_write_type (Environment *_environment, char *_value, VariableType _type)
Variablefujinet_set_channel_mode (Environment *_environment, int _mode)
Variablefujinet_set_channel_mode_var (Environment *_environment, char *_mode)
Variablefujinet_parse_json (Environment *_environment)
void fujinet_json_query (Environment *_environment, char *_query)
void fujinet_login (Environment *_environment, char *_login)
void fujinet_password (Environment *_environment, char *_password)
void fujinet_define (Environment *_environment, FujiNetDefine _mode)
void generate_cgoto_address_table (Environment *_environment)
Variableget_at (Environment *_environment, char *_x, char *_y)
 Emit code for = AT$(...,...).
Variableget_cmove (Environment *_environment, char *_x, char *_y)
 Emit code for = CMOVE(...,...).
Variableget_cmove_direct (Environment *_environment, int _x, int _y)
void get_image (Environment *_environment, char *_image, char *_x1, char *_y1, char *_x2, char *_y2, char *_frame, char *_sequence, int _palette)
 Emit ASM code for GET IMAGE [image] AT [int],[int].
void get_image_overwrite_size (Environment *_environment, char *_image, char *_x1, char *_y1, char *_x2, char *_y2)
Variableget_paper (Environment *_environment, char *_color)
 Emit code for the PAPER$(...).
Variableget_pen (Environment *_environment, char *_color)
 Emit code for the PEN$(...).
Variableget_raster_line (Environment *_environment)
 Emit ASM code for RASTER LINE.
Variableget_tab (Environment *_environment)
 Emit code for TAB$.
char * get_temporary_filename (Environment *_environment)
Variableget_ticks_per_second (Environment *_environment)
 Emit code for TAB$.
Variableget_timer (Environment *_environment)
 Emit code for = TI.
void global (Environment *_environment)
 Manage variable as "global".
void gosub_label (Environment *_environment, char *_label)
 Emit ASM code for GOSUB [label].
void gosub_number (Environment *_environment, int _number)
 Emit ASM code for GOSUB [number].
void goto_label (Environment *_environment, char *_label)
 Emit ASM code for GOTO [label].
void goto_number (Environment *_environment, int _number)
 Emit ASM code for GOTO [number].
void gprint (Environment *_environment, char *_atlas, char *_text, char *_x, char *_y)
 Emit code for GPRINT... instruction.
void graphic (Environment *_environment)
 Emit ASM implementation for GRAPHIC instruction.
void gr_locate (Environment *_environment, char *_x, char *_y)
 Emit code for GR LOCATE command.
void halt (Environment *_environment)
 Emit ASM code for HALT.
Variablehit_to (Environment *_environment, int _sprite)
 Emit ASM code for = HIT([int]x).
Variablehit_to_vars (Environment *_environment, char *_sprite)
 Emit ASM code for = HIT([expression]).
void hires (Environment *_environment, char *_foreground, char *_background)
void home (Environment *_environment)
 Emit code for HOME.
void if_then (Environment *_environment, char *_expression)
 Emit ASM code for IF ... THEN ....
char * image_cut (Environment *_environment, char *_source, int _x, int _y, int _width, int _height)
char * image_flip_x (Environment *_environment, char *_source, int _width, int _height, int _depth)
char * image_flip_y (Environment *_environment, char *_source, int _width, int _height, int _depth)
Variableimage_load (Environment *_environment, char *_filename, char *_alias, int _mode, int _flags, int _transparent_color, int _background_color, int _bank_expansion)
 Emit code for LOAD IMAGE(...).
Variableimage_load_from_buffer (Environment *_environment, char *_buffer, int _buffer_size)
 Emit code for (IMAGE)#[...].
int image_size (Environment *_environment, int _width, int _height)
Variableimage_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 image_converter_asserts (Environment *_environment, int _width, int _height, int _offset_x, int _offset_y, int *_frame_width, int *_frame_height, int _modulo_x, int _modulo_y)
void image_converter_asserts_free (Environment *_environment, int _width, int _height, int _offset_x, int _offset_y, int *_frame_width, int *_frame_height)
void image_converter_asserts_free_height (Environment *_environment, int _width, int _height, int _offset_x, int _offset_y, int *_frame_width, int *_frame_height, int _modulo_x)
void image_converter_asserts_free_width (Environment *_environment, int _width, int _height, int _offset_x, int _offset_y, int *_frame_width, int *_frame_height, int _modulo_y)
Variableimage_extract (Environment *_environment, char *_images, int _frame, int *_sequence)
 Emit code for IMAGE(... FRAME ... STRIP ...).
char * image_extract_subimage (Environment *_environment, char *_source, int _width, int _height, int _frame_width, int _frame_height, int _x, int _y, int _depth)
Variableimage_get_height (Environment *_environment, char *_image)
 Emit code for IMAGE HEIGHT(...).
Variableimage_get_width (Environment *_environment, char *_image)
 Emit code for IMAGE WIDTH(...).
char * image_enlarge_right (Environment *_environment, char *_source, int _width, int _height, int _delta)
char * image_enlarge_bottom (Environment *_environment, char *_source, int _width, int _height, int _delta)
RGBiimage_nearest_system_color (RGBi *_color)
Variableimage_ref (Environment *_environment, char *_image)
char * image_roll_x_left (Environment *_environment, char *_source, int _width, int _height)
char * image_roll_x_right (Environment *_environment, char *_source, int _width, int _height)
char * image_roll_y_down (Environment *_environment, char *_source, int _width, int _height)
Variableimage_storage (Environment *_environment, char *_source_name, char *_target_name, int _mode, int _flags, int _transparent_color, int _background_color, int _bank_expansion)
 Emit code for IMAGE ... AS ....
Variableimages_storage (Environment *_environment, char *_source_name, char *_target_name, int _mode, int _frame_width, int _frame_height, int _flags, int _transparent_color, int _background_color, int _bank_expansion, int _origin_x, int _origin_y, int _offset_x, int _offset_y)
 Emit code for IMAGE ... AS ....
Variableimages_load (Environment *_environment, char *_filename, char *_alias, int _mode, int _frame_width, int _frame_height, int _flags, int _transparent_color, int _background_color, int _bank_expansion, int _origin_x, int _origin_y, int _offset_x, int _offset_y)
 Emit code for LOAD IMAGE(...).
Variableimages_load_from_buffer (Environment *_environment, char *_buffer, int _buffer_size)
 Emit code for (IMAGES)#[...].
void insert (Environment *_environment, char *_string, char *_x, char *_y, char *_w, char *_h, char *_color)
Variablein_var (Environment *_environment, char *_port)
 Emit ASM code for IN.
void ink (Environment *_environment, char *_expression)
 Emit code for INK ... command.
void inkb (Environment *_environment, char *_value, char *_color1, char *_color2)
 Emit code for INKB ... command.
Variableinkey (Environment *_environment)
void input (Environment *_environment, char *_variable, VariableType _default_type)
Variableinput_string (Environment *_environment, char *_size)
void instrument (Environment *_environment, int _instrument, int _channels)
 Emit ASM code for INSTRUMENT ....
void instrument_semi_var (Environment *_environment, int _instrument, char *_channels)
 Emit ASM code for INSTRUMENT ....
void interleaved_instructions (Environment *_environment)
int is_do_loop (Environment *_environment)
 Emit ASM code for ... LOOP.
void jmove (Environment *_environment, char *_port, char *_x, char *_y, char *_minx, char *_maxx, char *_miny, char *_maxy, char *_xstep, char *_ystep)
Variablejfire (Environment *_environment, int _port)
Variablejfire_vars (Environment *_environment, char *_port)
Variablejoy (Environment *_environment, int _port)
Variablejoydir (Environment *_environment, int _port)
Variablejoydir_semivars (Environment *_environment, char *_port)
Variablejoy_vars (Environment *_environment, char *_port)
Variablejoy_direction (Environment *_environment, int _port, int _direction)
Variablejoy_direction_semivars (Environment *_environment, char *_port, int _direction)
Variablejoyx (Environment *_environment, int _port)
Variablejoyx_vars (Environment *_environment, char *_port)
Variablejoyy (Environment *_environment, int _port)
Variablejoyy_vars (Environment *_environment, char *_port)
int key_constant (Environment *_environment, int _key)
Variablekey_state (Environment *_environment, int _scancode)
Variablekey_state_var (Environment *_environment, char *_scancode)
Variablekeyshift (Environment *_environment)
Variablekey_pressed (Environment *_environment, int _scancode)
Variablekey_pressed_var (Environment *_environment, char *_scancode)
void kill_procedure (Environment *_environment, char *_handle)
 Emit code for KILL ....
void label_define_numeric (Environment *_environment, int _label)
void label_define_named (Environment *_environment, char *_label)
int label_exists_named (Environment *_environment, char *_label)
int label_exists_numeric (Environment *_environment, int _label)
void label_referred_define_numeric (Environment *_environment, int _label)
void label_referred_define_named (Environment *_environment, char *_label)
int label_referred_exists_named (Environment *_environment, char *_label)
int label_referred_exists_numeric (Environment *_environment, int _label)
void label_stored_define_named (Environment *_environment, char *_label)
int label_stored_exists_named (Environment *_environment, char *_label)
void lbottom (Environment *_environment)
 Emit code for HOME.
void leftw (Environment *_environment, char *_line, char *_column, char *_width, char *_height)
 Emit code for LEFTW ....
void leftb (Environment *_environment, char *_line, char *_column, char *_width, char *_height)
 Emit code for LEFTB ....
Variableload (Environment *_environment, char *_filename, char *_alias, int _at, int _bank_expansion, int _flags)
 Emit code for LOAD(...).
void locate (Environment *_environment, char *_x, char *_y)
 Emit code for LOCATE ...,....
void loop (Environment *_environment, char *_label)
RGBimalloc_palette (int _size)
 Allocate a palette space.
float max_of_two (float _x, float _y)
float max_of_three (float _m, float _n, float _p)
Variablemaximum (Environment *_environment, char *_source, char *_dest)
 Return the maximum value between two expressions.
void memclr (Environment *_environment, char *_address, char *_size, char *_value)
void memcont (Environment *_environment, char *_param)
void memdef (Environment *_environment, char *_size, char *_address, char *_eaddress, char *_bank)
void memlen (Environment *_environment, char *_size)
void memload (Environment *_environment)
void memorize (Environment *_environment)
void memor (Environment *_environment, char *_address, char *_eaddress, char *_bank)
void memory_area_assign (MemoryArea *_first, Variable *_variable)
void memory_area_unassign (MemoryArea *_first, Variable *_variable)
void mempos (Environment *_environment, char *_address, char *_bank)
void memrestore (Environment *_environment, char *_param)
void memsave (Environment *_environment)
float min_of_two (float _x, float _y)
float min_of_three (float _m, float _n, float _p)
Variableminimum (Environment *_environment, char *_source, char *_dest)
 Return the minimum value between two expressions.
void mmob (Environment *_environment, char *_sprite, char *_sx, char *_sy, char *_zx, char *_zy, char *_gr, char *_sp)
 Emit code for MOVE ....
void mmove_memory_memory (Environment *_environment, char *_from, char *_to, char *_size)
 Emit ASM code for MMOVE [expr] TO [expr] SIZE [expr].
void mmove_memory_video (Environment *_environment, char *_from, char *_to, char *_size)
 Emit ASM code for MMOVE {VIDEO} [expr] TO {VIDEO} [expr] SIZE [expr].
void mmove_video_memory (Environment *_environment, char *_from, char *_to, char *_size)
 Emit ASM code for MMOVE {VIDEO} [expr] TO {VIDEO} [expr] SIZE [expr].
void move (Environment *_environment, char *_prefix, char *_movement, char *_x, char *_y, char *_animation)
 Emit code for MOVE ....
void move_tile (Environment *_environment, char *_tile, char *_x, char *_y)
 Emit ASM code for MOVE TILE [image] AT [int],[int].
void movement (Environment *_environment, char *_identifier, char *_atlas, char *_prefix)
 Emit code for MOVEMENT ....
Variablemoving (Environment *_environment, char *_prefix, char *_movement)
 Emit code for MOVING.
Variablemsprite_init (Environment *_environment, char *_image, char *_sprite, int _flags)
 Emit code for SPRITE(...).
Variablemsprite_duplicate (Environment *_environment, char *_original)
 Emit code for SPRITE(...).
void msprite_update (Environment *_environment)
 Emit code for SPRITE(...).
Variablemusic_load (Environment *_environment, char *_filename, char *_alias, int _bank_expansion)
 Emit code for LOAD MUSIC(...).
Variablemusic_load_to_variable (Environment *_environment, char *_filename, char *_alias, int _bank_expansion)
Variablemusic_storage (Environment *_environment, char *_filename, char *_alias, int _bank_expansion)
 Emit code for LOAD MUSIC(...).
void music_var (Environment *_environment, char *_music, int _loop, int _music_type)
 Emit ASM code for MUSIC ....
void music_pause (Environment *_environment)
void music_resume (Environment *_environment)
void music_stop (Environment *_environment)
void music_seek_var (Environment *_environment, char *_position)
void next_animation (Environment *_environment, char *_prefix)
 Emit code for KILL ....
void next_raster (Environment *_environment)
 Emit ASM code for NEXT RASTER.
void next_raster_at_with (Environment *_environment, int _at, char *_with)
 Emit ASM code for NEXT RASTER AT [int] WITH [label].
void next_raster_at_with_var (Environment *_environment, char *_var, char *_with)
 Emit ASM code for NEXT RASTER AT [expresssion] WITH label.
Variablenew_image (Environment *_environment, int _width, int _height, int _mode)
 Emit code for NEW IMAGE(...).
Variablenew_images (Environment *_environment, int _frames, int _width, int _height, int _mode)
 Emit code for NEW IMAGE(...).
Variablenew_music (Environment *_environment, int _size)
 Emit code for NEW IMAGE(...).
Variablenew_sequence (Environment *_environment, int _sequences, int _frames, int _width, int _height, int _mode)
 Emit code for NEW SEQUENCE(...).
void offsetting_add_variable_reference (Environment *_environment, Offsetting *_first, Variable *_var, int _sequence)
Offsettingoffsetting_size_count (Environment *_environment, int _size, int _count)
void on_gosub (Environment *_environment, char *_expression)
 Emit ASM code for ON ... GOSUB ....
void on_gosub_end (Environment *_environment)
 Emit ASM code for ... (of ON ... GOSUB ...).
void on_gosub_index (Environment *_environment, char *_label)
 Emit ASM code for ... (of ON ... GOSUB ...).
void on_gosub_number (Environment *_environment, int _number)
 Emit ASM code for ... (of ON ... GOSUB ...).
void on_goto (Environment *_environment, char *_expression)
 Emit ASM code for ON ... GOTO ....
void on_goto_end (Environment *_environment)
 Emit ASM code for ... (of ON ... GOTO ...).
void on_goto_index (Environment *_environment, char *_label)
 Emit ASM code for ... (of ON ... GOTO ...).
void on_goto_number (Environment *_environment, int _number)
 Emit ASM code for ... (of ON ... GOTO ...).
void on_proc (Environment *_environment, char *_expression)
 Emit ASM code for ON ... PROC ....
void on_proc_end (Environment *_environment)
 Emit ASM code for ... (of ON ... PROC ...).
void on_proc_index (Environment *_environment, char *_label)
 Emit ASM code for ... (of ON ... PROC ...).
void on_scroll_call (Environment *_environment, int _x, int _y, char *_label)
 Emit ASM code for ON SCROLL ... CALL ....
void on_scroll_gosub (Environment *_environment, int _x, int _y, char *_label)
 Emit ASM code for ON ... GOSUB ....
void option_dialect (Environment *_environment, Dialect _dialect)
Variableorigin_resolution_relative_transform_x (Environment *_environment, char *_x, int _is_relative)
Variableorigin_resolution_relative_transform_y (Environment *_environment, char *_y, int _is_relative)
void out_var (Environment *_environment, char *_port, char *_value)
 Emit ASM code for OUT.
void paint_vars (Environment *_environment, char *_x, char *_y, char *_c, char *_b)
 Emit ASM code for PAIN.
int palette_extract (Environment *_environment, char *_data, int _width, int _height, int _depth, int _flags, RGBi *_palette)
RGBipalette_match (RGBi *_source, int _source_size, RGBi *_system, int _system_size)
 Make a "palette match".
RGBipalette_match_hardware_index (RGBi *_source, int _source_size, RGBi *_system, int _system_size)
RGBipalette_merge (RGBi *_palette1, int _palette1_size, RGBi *_palette2, int _palette2_size, int *_size)
 Make a "palette merge".
RGBipalette_promote_color_as_background (int _index, RGBi *_source, int _source_size)
 Promote an index color in a palette.
RGBipalette_promote_color_as_foreground (int _index, RGBi *_source, int _source_size, int _max_size)
 Promote an index color in a palette.
RGBipalette_remove_duplicates (RGBi *_source, int _source_size, int *_unique_size)
 Remove duplicates from a palette.
RGBipalette_shift (RGBi *_source, int _source_size, int _offset)
 Shift colors in palette.
void paper (Environment *_environment, char *_paper)
 Emit code for PAPER ... command.
Variableparam_procedure (Environment *_environment, char *_name)
 Emit code for PARAM(...).
char * parse_buffer (Environment *_environment, char *_buffer, int *_size, int _hex_only)
Variableparse_buffer_definition (Environment *_environment, char *_buffer, VariableType _type, int _hex_only)
void pause_seconds (Environment *_environment, char *_string, char *_duration)
Variablepeek_var (Environment *_environment, char *_location)
 Emit ASM code for PEEK(...).
Variablepeekw_var (Environment *_environment, char *_location)
Variablepeekd_var (Environment *_environment, char *_location)
void pen (Environment *_environment, char *_color)
 Emit code for PEN ... command.
void play (Environment *_environment, int _note, int _duration, int _channels)
 Emit ASM code for PLAY ....
void play_vars (Environment *_environment, char *_note, char *_duration, char *_channels)
 Emit ASM code for PLAY ....
void play_off (Environment *_environment, int _channels)
 Emit ASM code for PLAY OFF.
void play_off_var (Environment *_environment, char *_channels)
 Emit ASM code for PLAY OFF ....
void play_string (Environment *_environment, char *_string)
void plot (Environment *_environment, char *_x, char *_y, char *_c, int _preserve_color)
 Emit code for PLOT.
void pmode (Environment *_environment, int _mode, int _start_page)
Variablepoint (Environment *_environment, char *_x, char *_y)
 Emit code for POINT(...).
void point_at (Environment *_environment, int _x, int _y)
 Emit ASM code for POINT AT ([int],[int]).
void point_at_vars (Environment *_environment, char *_x, char *_y)
 Emit ASM code for POINT AT ([int]x,[int]x).
void poke_var (Environment *_environment, char *_address, char *_value)
 Emit ASM code for POKE.
void pokew_var (Environment *_environment, char *_address, char *_value)
void poked_var (Environment *_environment, char *_address, char *_value)
void pop (Environment *_environment)
 Emit ASM code for POP.
Variablepowering (Environment *_environment, char *_source, char *_dest)
 Emit code to raise a variable to a given variable.
TileDescriptorsprecalculate_tile_descriptors_for_font (char *_fontData, int _fontSize)
void prepare_variable_storage (Environment *_environment, char *_name, Variable *_variable)
void print (Environment *_environment, char *_text, int _new_line, int _raw)
 Emit code for PRINT... instruction.
void print_buffer (Environment *_environment, char *_buffer, int _new_line, int _printable)
 Emit code for PRINT... instruction.
void print_newline (Environment *_environment)
 Emit code for print a single newline.
void print_question_mark (Environment *_environment)
 Emit code for print a single question mark.
void print_tab (Environment *_environment, int _new_line)
 Emit code for print a single TAB.
void proc (Environment *_environment, char *_label)
 Emit ASM code for PROC.
int procedure_exists (Environment *_environment, char *_name)
void put_key (Environment *_environment, char *_string)
void put_image (Environment *_environment, char *_image, char *_x1, char *_y1, char *_x2, char *_y2, char *_frame, char *_sequence, int _flags)
 Emit ASM code for PUT IMAGE [image] AT [int],[int].
void put_image_vars (Environment *_environment, char *_image, char *_x1, char *_y1, char *_x2, char *_y2, char *_frame, char *_sequence, char *_flags)
 Emit ASM code for PUT IMAGE [image] AT [int],[int].
void put_image_vars_flags (Environment *_environment, char *_image, char *_x1, char *_y1, char *_x2, char *_y2, char *_frame, char *_sequence, int _flags)
void put_tile (Environment *_environment, char *_tile, char *_x, char *_y, char *_w, char *_h)
 Emit ASM code for PUT TILE [image] AT [int],[int].
void put_tilemap_vars (Environment *_environment, char *_tilemap, int _flags, char *_dx, char *_dy, char *_layer, char *_padding_tile)
 Emit ASM code for PUT TILEMAP [tilemap].
void put_tilemap_inline (Environment *_environment, char *_tilemap, int _flags, char *_dx, char *_dy, char *_layer, int _padding_tile)
Variablerandom_value (Environment *_environment, VariableType _type)
 Emit ASM code for = RANDOM.
void randomize (Environment *_environment, char *_seed)
 Emit ASM code for RANDOMIZE.
Variablerange (Environment *_environment, char *_expression, char *_min, char *_max)
 Emit code for READ instruction.
void raster_at (Environment *_environment, char *_label, int _position)
 Emit ASM code for RASTER AT [int] WITH [label].
void raster_at_var (Environment *_environment, char *_label, char *_position)
 Emit ASM code for RASTER AT [expression] WITH label.
Variableread_end (Environment *_environment)
 Emit code for READ END function.
Variableread_end_unsafe (Environment *_environment)
void read_data (Environment *_environment, char *_variable, int _safe)
 Emit code for READ instruction.
void read_data_unsafe (Environment *_environment, char *_variable)
void remember (Environment *_environment)
void repeat (Environment *_environment, char *_label)
void reset (Environment *_environment)
char * resolve_color (Environment *_environment, char *_color)
char * resource_load_asserts (Environment *_environment, char *_filename)
Variablerespawn_procedure (Environment *_environment, char *_name)
 Emit code for SPAWN ....
void restore_label (Environment *_environment, char *_label)
void restore_label_unsafe (Environment *_environment, char *_label)
void resume_vars (Environment *_environment, char *_thread)
 Emit code for RESUME ....
void return_label (Environment *_environment)
 Emit ASM code for RETURN.
void return_procedure (Environment *_environment, char *_value)
 Emit code for RETURN ....
int rgbi_equals_rgb (RGBi *_first, RGBi *_second)
int rgbi_equals_rgba (RGBi *_first, RGBi *_second)
int rgbi_extract_palette (Environment *_environment, unsigned char *_source, int _width, int _height, int _depth, RGBi _palette[], int _palette_size, int _sorted)
 Extract the color palette from the given image.
void rgbi_move (RGBi *_source, RGBi *_destination)
int rgbi_distance (RGBi *_source, RGBi *_destination)
 Calculate the distance between two colors.
void rightw (Environment *_environment, char *_line, char *_column, char *_width, char *_height)
 Emit code for RIGHTW ....
void rightb (Environment *_environment, char *_line, char *_column, char *_width, char *_height)
 Emit code for RIGHTB ....
Variablernd (Environment *_environment, char *_value)
 Return a random value.
Variablernd0 (Environment *_environment)
 Return a random value.
Variablernd1 (Environment *_environment)
void rot (Environment *_environment, char *_angle, char *_step)
Variablerotate_vector (Environment *_environment, char *_vector, char *_angle)
 Emit ASM code to implement CREATE PATH command.
void run (Environment *_environment)
 Emit code for RUN.
void run_parallel (Environment *_environment)
 Emit code for RUN PARALLEL.
Variablerunning (Environment *_environment, char *_thread_id, char *_procedure_name)
 Emit code for RUN PARALLEL.
void sbpen_set (Environment *_environment, int _index, char *_color)
Variablesbpen_get (Environment *_environment, char *_index)
Variablescancode (Environment *_environment)
Variablescanshift (Environment *_environment)
Variablescreen_can (Environment *_environment, int _mode)
 Emit ASM code for CAN SCREEN [mode].
void screen_columns (Environment *_environment, int _columns)
 Emit ASM code for SCREEN COLUMNS [integer].
void screen_columns_var (Environment *_environment, char *_columns)
 Emit ASM code for SCREEN COLUMNS [int]x.
Variablescreen_get_height (Environment *_environment)
Variablescreen_get_width (Environment *_environment)
void screen_horizontal_scroll (Environment *_environment, int _displacement)
 Emit ASM code for SCREEN HORIZONTAL SCROLL [int]x.
void screen_horizontal_scroll_var (Environment *_environment, char *_displacement)
 Emit ASM code for SCREEN HORIZONTAL SCROLL [expression[.
void screen_mode (Environment *_environment, int _mode)
 Emit ASM code for SCREEN [mode].
void screen_type_color_set (Environment *_environment, int _type, int _color_set)
void screen_off (Environment *_environment)
 Emit ASM code for SCREEN OFF.
void screen_on (Environment *_environment)
 Emit ASM code for SCREEN ON.
void screen_rows (Environment *_environment, int _rows)
 Emit ASM code for SCREEN ROWS [integer].
void screen_rows_var (Environment *_environment, char *_rows)
 Emit ASM code for SCREEN ROWS [int]x.
void screen_swap (Environment *_environment)
 Emit code for SCREEN SWAP.
Variablescreen_page (Environment *_environment)
 Emit code for SCREEN SWAP.
Variablescreen_tiles_get (Environment *_environment)
Variablescreen_tiles_get_height (Environment *_environment)
Variablescreen_tiles_get_width (Environment *_environment)
Variablescreen_var (Environment *_environment, char *_x, char *_y, int _as_string)
void screen_vertical_scroll (Environment *_environment, int _displacement)
 Emit ASM code for SCREEN VERTICAL SCROLL [integer].
void screen_vertical_scroll_var (Environment *_environment, char *_displacement)
 Emit ASM code for SCREEN VERTICAL SCROLL [expression].
void scroll (Environment *_environment, int _dx, int _dy)
void select_case (Environment *_environment, char *_expression)
 Emit ASM code for SELECT CASE ... {PASSING}.
Variablesequence_load (Environment *_environment, char *_filename, char *_alias, int _mode, int _frame_width, int _frame_height, int _flags, int _transparent_color, int _background_color, int _bank_expansion, int _origin_x, int _origin_y, int _offset_x, int _offset_y)
 Emit code for LOAD IMAGE(...).
Variablesequence_storage (Environment *_environment, char *_filename, char *_alias, int _mode, int _frame_width, int _frame_height, int _flags, int _transparent_color, int _background_color, int _bank_expansion, int _origin_x, int _origin_y, int _offset_x, int _offset_y)
 Emit code for IMAGE ... AS ....
Variableserial_read (Environment *_environment, char *_size)
 Emit code for SERIAL READ(...).
Variableserial_read_type (Environment *_environment, VariableType _type, int _big_endian)
 Emit code for SERIAL READ datatype.
Variableserial_write (Environment *_environment, char *_data)
 Emit code for SERIAL WRITE(...).
Variableserial_write_type (Environment *_environment, char *_data, VariableType _type, int _big_endian)
 Emit code for SERIAL WRITE(...).
Variableserialize (Environment *_environment, char *_data, char *_key)
 Emit code for SERIALIZE.
void set_timer (Environment *_environment, char *_value)
 Emit code for TI =.
void shared (Environment *_environment)
 Manage variable as "global".
void shoot (Environment *_environment, int _channels)
 Emit ASM code for SHOOT ....
void slice_image (Environment *_environment, char *_image, char *_frame, char *_sequence, char *_destination)
void slow (Environment *_environment)
 Emit ASM code for SLOW.
void sound (Environment *_environment, int _freq, int _duration, int _channels)
 Emit ASM code for SOUND ....
void sound_vars (Environment *_environment, char *_freq, char *_duration, char *_channels)
 Emit ASM code for SOUND ....
void sound_off (Environment *_environment, int _channels)
 Emit ASM code for SOUND OFF.
void sound_off_var (Environment *_environment, char *_channels)
 Emit ASM code for SOUND OFF ....
Variablesign (Environment *_environment, char *_value)
 Return the sign of a variable.
Variablespawn_procedure (Environment *_environment, char *_name, int _halted)
 Emit code for SPAWN ....
void spc (Environment *_environment, char *_spaces)
Variablespen (Environment *_environment)
 Emit ASM code for = SPEN().
void sprite_color (Environment *_environment, int _sprite, int _color)
 Emit ASM code for instruction SPRITE [int] COLOR [int].
void sprite_color_vars (Environment *_environment, char *_sprite, char *_color)
 Emit ASM code for instruction SPRITE [int] COLOR [int].
void sprite_compress_horizontal (Environment *_environment, int _sprite)
 Emit ASM code for SPRITE [int] COMPRESS HORIZONTAL.
void sprite_compress_horizontal_var (Environment *_environment, char *_sprite)
 Emit ASM code for SPRITE [int] COMPRESS HORIZONTAL.
void sprite_compress_vertical (Environment *_environment, int _sprite)
 Emit ASM code for SPRITE [int] CPMPRESS VERTICAL.
void sprite_compress_vertical_var (Environment *_environment, char *_sprite)
 Emit ASM code for SPRITE [expression] COMPRESS VERTICAL.
Variablesprite_converter (Environment *_environment, char *_data, int _width, int _height, int _depth, RGBi *_colorm, int _flags, int _slot_x, int _slot_y)
void sprite_data_from (Environment *_environment, int _sprite, int _address)
 Emit ASM code for SPRITE [int] DATA FROM [int].
void sprite_data_from_vars (Environment *_environment, char *_sprite, char *_address)
 Emit ASM code for SPRITE [expression] DATA FROM [expression].
void sprite_disable (Environment *_environment, int _sprite)
 Emit ASM code for SPRITE [int] DISABLE.
void sprite_disable_var (Environment *_environment, char *_sprite)
 Emit ASM code for SPRITE [expression] DISABLE.
void sprite_enable (Environment *_environment, int _sprite)
 Emit ASM code for SPRITE [int] ENABLE.
void sprite_enable_var (Environment *_environment, char *_sprite)
 Emit ASM code for SPRITE [expression] ENABLE.
void sprite_expand_horizontal (Environment *_environment, int _sprite)
 Emit ASM code for SPRITE [int] EXPAND HORIZONTAL.
void sprite_expand_horizontal_var (Environment *_environment, char *_sprite)
 Emit ASM code for SPRITE [expression] EXPAND HORIZONTAL.
void sprite_expand_vertical (Environment *_environment, int _sprite)
 Emit ASM code for SPRITE [int] EXPAND VERTICAL.
void sprite_expand_vertical_var (Environment *_environment, char *_sprite)
 Emit ASM code for SPRITE [expression] EXPAND VERTICAL.
Variablesprite_init (Environment *_environment, char *_image, char *_sprite, int _flags)
 Emit code for SPRITE(...).
void sprite_monocolor (Environment *_environment, int _sprite)
 Emit ASM code for SPRITE [int] MONOCOLOR.
void sprite_monocolor_var (Environment *_environment, char *_sprite)
 Emit ASM code for SPRITE [expression] MONOCOLOR.
void sprite_multicolor (Environment *_environment, int _sprite)
 Emit ASM code for SPRITE [int] MULTICOLOR.
void sprite_multicolor_var (Environment *_environment, char *_sprite)
 Emit ASM code for SPRITE [expression] MULTICOLOR.
void sprite_at (Environment *_environment, int _sprite, int _x, int _y)
 Emit ASM code for SPRITE [int] AT ([int],[int]).
void sprite_at_vars (Environment *_environment, char *_sprite, char *_x, char *_y)
 Emit ASM code for SPRITE [expression] AT ([expression],[expression]).
Variablesqroot (Environment *_environment, char *_value)
 Return the square root of a variable.
StaticStringstatic_string_create (Environment *_environment, char *_value, int _size)
StaticStringstatic_string_create_filled (Environment *_environment, int _size, char _value)
StaticStringstatic_string_find_by_value (Environment *_environment, char *_value, int _Size)
void stop_animation (Environment *_environment, char *_prefix)
 Emit code for STOP ....
void stop_movement (Environment *_environment, char *_prefix)
 Emit code for STOP ....
Variablestrig (Environment *_environment, int _port)
Variablestrig_vars (Environment *_environment, char *_port)
StaticStringstring_reserve (Environment *_environment, char *_value)
Variablestrptr (Environment *_environment, char *_name)
 Emit code for function = STRPTR( ... ).
void suspend_vars (Environment *_environment, char *_thread)
 Emit code for SUSPEND ....
void sys (Environment *_environment, int _address)
 Emit code for SYS / EXEC ... command.
void sys_var (Environment *_environment, char *_address)
void sys_call (Environment *_environment, int _address)
int system_call (Environment *_environment, char *_command)
 Call an external executable.
void text_at (Environment *_environment, char *_x, char *_y, char *_text)
void text_encoded (Environment *_environment, char *_text, char *_pen, char *_paper, int _raw)
Variabletext_get_xcurs (Environment *_environment)
Variabletext_get_ycurs (Environment *_environment)
void text_hscroll_line (Environment *_environment, int _direction, int _overlap)
void text_hscroll_screen (Environment *_environment, int _direction, int _overlap)
void text_newline (Environment *_environment)
void text_question_mark (Environment *_environment)
void text_set_tab (Environment *_environment, char *_net_tab)
 Emit code for SET TAB ....
void text_tab (Environment *_environment)
void text_text (Environment *_environment, char *_text, int _raw)
void text_vscroll (Environment *_environment)
void text_vscroll_screen (Environment *_environment, int _direction, int _overlap)
void textmap_at (Environment *_environment, int _address)
 Emit ASM code for TEXTMAP AT [int]xx.
void textmap_at_var (Environment *_environment, char *_address)
 Emit ASM code for TEXTMAP AT [expression].
Variabletilemap_at (Environment *_environment, char *_tilemap, char *_x, char *_y, char *_layer)
 Return the height of a TILEMAP.
void tilemap_disable (Environment *_environment)
 Emit ASM implementation for TEXT DISABLE instruction.
void tilemap_enable (Environment *_environment, int _width, int _height, int _colors, int _tile_width, int _tile_height)
 Emit ASM implementation for TEXT ENABLE instruction.
Variabletile_at (Environment *_environment, char *_x, char *_y)
 Emit code for TILE AT.
int tile_allocate (TileDescriptors *_tiles, char *_data)
Variabletile_belong (Environment *_environment, char *_tile, char *_tiles)
 Emit code for TILE ... BELONG TO ....
Variabletile_class (Environment *_environment, char *_tileset, int _id)
 Emit code for TILE CLASS(...).
Variabletile_get_first (Environment *_environment, char *_tile)
 Emit code for TILE FIRST(...).
Variabletile_get_height (Environment *_environment, char *_tile)
 Emit code for TILE HEIGHT(...).
Variabletile_get_width (Environment *_environment, char *_tile)
 Emit code for TILE WIDTH(...).
int tile_id (Environment *_environment, char *_tileset, char *_id)
 Emit code for TILE ID(...).
Variabletile_probability (Environment *_environment, char *_tileset, int _id)
 Emit code for TILE CLASS(...).
Variabletilemap_get_height (Environment *_environment, char *_tilemap)
 Return the height of a TILEMAP.
Variabletilemap_get_width (Environment *_environment, char *_tilemap)
 Return the width of a TILEMAP.
Variabletileset_tile_get_height (Environment *_environment, char *_tileset)
 Return the height of a TILE on a TILESET.
Variabletileset_tile_get_width (Environment *_environment, char *_tileset)
 Return the width of a TILE on a TILESET.
Variabletile_load (Environment *_environment, char *_filename, int _flags, char *_tileset, int _index)
 Emit code for LOAD TILE(...).
Variabletiles_load (Environment *_environment, char *_filename, int _flags, char *_tileset, int _index)
 Emit code for LOAD TILE(...).
void tiles_at (Environment *_environment, int _address)
 Emit ASM code for TILES AT [int]xx.
void tiles_at_var (Environment *_environment, char *_address)
 Emit ASM code for TILES AT [expression].
Variabletilemap_index_vars (Environment *_environment, char *_tilemap, char *_column, char *_row, char *_layer)
Variabletilemap_load (Environment *_environment, char *_filename, char *_alias, int _mode, int _flags, int _transparent_color, int _background_color, int _bank_expansion)
 Emit code for LOAD TILEMAP(...).
Variabletileset_load (Environment *_environment, char *_filename, char *_alias, int _mode, int _flags, int _transparent_color, int _background_color, int _bank_expansion)
 Emit code for LOAD TILESERT(...).
Variabletilemap_storage (Environment *_environment, char *_filename, char *_alias, int _mode, int _flags, int _transparent_color, int _background_color, int _bank_expansion)
 Emit code for LOAD TILEMAP(...).
Variabletileset_storage (Environment *_environment, char *_source_name, char *_target_name, int _mode, int _flags, int _transparent_color, int _background_color, int _bank_expansion)
 Emit code for LOAD TILESERT(...).
Variabletileset_of_vars (Environment *_environment, char *_tilemap)
Variabletravel_path (Environment *_environment, char *_p, char *_x, char *_y, char *_times, char *_limited)
 Emit ASM code to implement TRAVEL PATH command.
void use_tileset (Environment *_environment, char *_tileset)
 Emit code for USE TILESET xxx.
char * unescape_string (Environment *_environment, char *_value, int _printing, int *_final_size)
Variableuncompress (Environment *_environment, char *_value)
void unfreeze_vars (Environment *_environment, char *_prefix)
 Emit code for FREEZE ....
void upw (Environment *_environment, char *_line, char *_column, char *_width, char *_height)
 Emit code for UPB ....
void upb (Environment *_environment, char *_line, char *_column, char *_width, char *_height)
 Emit code for UPB ....
Variablevariable_add (Environment *_environment, char *_source, char *_dest)
 Add two variable and return the sum of them.
Variablevariable_add_const (Environment *_environment, char *_source, int _dest)
 Add a variable with a constant, and return the sum of them.
void variable_add_inplace (Environment *_environment, char *_source, int _dest)
void variable_add_inplace_type (Environment *_environment, char *_source, char *_field, int _dest)
void variable_add_inplace_vars (Environment *_environment, char *_source, char *_dest)
 Add two variable and return the sum of them on the first.
void variable_add_inplace_type_vars (Environment *_environment, char *_source, char *_field, char *_dest)
void variable_add_inplace_array (Environment *_environment, char *_source, char *_destination)
 Add a variable to an array element, and return the sum of them on the array element.
void variable_add_inplace_mt (Environment *_environment, char *_source, char *_destination)
 Add two variable and return the sum of them on the first.
Variablevariable_and (Environment *_environment, char *_left, char *_right)
 Calculate logical "and" and return it as the result.
Variablevariable_and_const (Environment *_environment, char *_source, int _mask)
 Calculate "and" mask for a variable and it as the result.
Variablevariable_array_count_vars (Environment *_environment, char *_name, char *_target)
Variablevariable_array_max_vars (Environment *_environment, char *_name)
Variablevariable_array_min_vars (Environment *_environment, char *_name)
Variablevariable_array_sum_vars (Environment *_environment, char *_name)
void variable_array_fill (Environment *_environment, char *_name, int _value)
void variable_array_fill_random (Environment *_environment, char *_name, int _base, int _min_value, int _max_value, int _count, int _boolean)
void variable_array_fill_incremental (Environment *_environment, char *_name, int _min, int _count)
void variable_array_shuffle (Environment *_environment, char *_name, int _rounds)
Variablevariable_array_type (Environment *_environment, char *_name, VariableType _type)
Variablevariable_bin (Environment *_environment, char *_value, char *_digits, char *_zero, char *_one)
 Emit code for <string>BIN(...).
Variablevariable_bit (Environment *_environment, char *_value, char *_position)
 Emit code for HAS BIT / BIT(...).
Variablevariable_cast (Environment *_environment, char *_source, VariableType _type)
 Cast a variable from a type to another.
void variable_cleanup (Environment *_Environment)
 Emit source and configuration lines for variables.
Variablevariable_compare (Environment *_environment, char *_source, char *_dest)
 Compare two variable and return the result of comparation.
void variable_compare_and_branch_const (Environment *_environment, char *_source, int _destination, char *_name, int _positive)
Variablevariable_compare_const (Environment *_environment, char *_source, int _dest)
 Compare two variable and return the result of comparation.
Variablevariable_compare_not (Environment *_environment, char *_source, char *_dest)
 Compare two variable and return the result of comparation.
Variablevariable_compare_not_const (Environment *_environment, char *_source, int _dest)
 Compare two variable and return the result of comparation.
Variablevariable_complement_const (Environment *_environment, char *_source, int _mask)
 Calculate the complement of a variable.
void variable_decrement (Environment *_environment, char *_source)
 Decrement a variable by one.
void variable_decrement_type (Environment *_environment, char *_source, char *_field)
void variable_decrement_array (Environment *_environment, char *_source)
void variable_decrement_array_type (Environment *_environment, char *_source, char *_field)
void variable_decrement_mt (Environment *_environment, char *_source)
 Decrement a variable by one.
Variablevariable_define (Environment *_environment, char *_name, VariableType _type, int _value)
 Define a variable for the program.
Variablevariable_define_no_init (Environment *_environment, char *_name, VariableType _type)
int variable_delete (Environment *_environment, char *_name)
Variablevariable_direct_assign (Environment *_environment, char *_var, char *_expr)
Variablevariable_div (Environment *_environment, char *_source, char *_dest, char *_remainder)
 Make a division between two variable and return the product of them.
Variablevariable_div_const (Environment *_environment, char *_source, int _dest, char *_remainder)
Variablevariable_div2_const (Environment *_environment, char *_source, int _bits, char *_remainder)
 Subdivide by two a variable for various times and return the result.
Variablevariable_flip (Environment *_environment, char *_variable)
Variablevariable_sr_const (Environment *_environment, char *_source, int _bits)
void variable_global (Environment *_environment, char *_pattern)
Variablevariable_greater_than (Environment *_environment, char *_source, char *_dest, int _equal)
 Compare two variable and return the result of comparation.
Variablevariable_greater_than_const (Environment *_environment, char *_source, int _dest, int _equal)
Variablevariable_hex (Environment *_environment, char *_value, int _separator)
 Emit code for = HEX( ... ).
Variablevariable_hex2bin (Environment *_environment, char *_value, char *_variable)
 Emit code for = HEX2BIN( ... ).
Variablevariable_export (Environment *_environment, char *_name, VariableType _type, int _size_or_value)
Variablevariable_import (Environment *_environment, char *_name, VariableType _type, int _size_or_value)
void variable_increment (Environment *_environment, char *_source)
 Increment a variable by one.
void variable_increment_type (Environment *_environment, char *_source, char *_field)
void variable_increment_array (Environment *_environment, char *_source)
void variable_increment_array_type (Environment *_environment, char *_source, char *_field)
void variable_increment_mt (Environment *_environment, char *_source)
 Increment a variable by one.
Variablevariable_int (Environment *_environment, char *_expression)
Variablevariable_less_than (Environment *_environment, char *_source, char *_dest, int _equal)
 Compare two variable and return the result of comparation.
Variablevariable_less_than_const (Environment *_environment, char *_source, int _dest, int _equal)
Variablevariable_mod (Environment *_environment, char *_source, char *_destination)
Variablevariable_move (Environment *_environment, char *_source, char *_dest)
 Store the value of a variable inside another variable by converting it.
void variable_move_array (Environment *_environment, char *_array, char *_value)
void variable_move_array_string (Environment *_environment, char *_array, char *_string)
void variable_move_array_type (Environment *_environment, char *_array, char *_field, char *_value)
void variable_move_array1_type (Environment *_environment, char *_array, char *_index, char *_field, char *_value)
void variable_move_array1_type_const (Environment *_environment, char *_array, char *_index, char *_field, int _value)
void variable_move_array1_type_fields (Environment *_environment, char *_array, char *_index, char *_field1, char *_field2)
Variablevariable_move_from_array (Environment *_environment, char *_array)
void variable_move_from_array_inplace (Environment *_environment, char *_array, char *_value)
Variablevariable_move_from_array_type (Environment *_environment, char *_array, char *_field)
Variablevariable_move_from_array1_type (Environment *_environment, char *_array, char *_index, char *_field)
void variable_move_from_array_type_inplace (Environment *_environment, char *_array, char *_field, char *_value)
void variable_move_from_array1_type_inplace (Environment *_environment, char *_array, char *_index, char *_field, char *_value)
Variablevariable_move_from_mt (Environment *_environment, char *_source, char *_destination)
 Increment a variable by one.
Variablevariable_move_from_type (Environment *_environment, char *_type, char *_field)
void variable_move_from_type_inplace (Environment *_environment, char *_type, char *_field, char *_value)
Variablevariable_move_to_mt (Environment *_environment, char *_source, char *_destination)
void variable_move_type (Environment *_environment, char *_type, char *_field, char *_value)
Variablevariable_move_naked (Environment *_environment, char *_source, char *_dest)
 Store the value of a variable inside another variable without conversion.
Variablevariable_mul (Environment *_environment, char *_source, char *_dest)
 Make a multiplication between two variable and return the product of them.
Variablevariable_mul2_const (Environment *_environment, char *_source, int _bits)
 Double a variable for various times and return the result.
Variablevariable_sl_const (Environment *_environment, char *_source, int _bits)
Variablevariable_not (Environment *_environment, char *_value)
 Calculate logical "not" and return it as the result.
void variable_on_memory_init (Environment *_environment, int _imported_too)
Variablevariable_or (Environment *_environment, char *_left, char *_right)
 Calculate logical "or" and return it as the result.
void variable_temporary_remove (Environment *_environment, char *_name)
void variable_reset (Environment *_environment)
 Reset the usage flags for the temporary variable pool.
Variablevariable_resize_buffer (Environment *_environment, char *_destination, int _size)
 Resize the (static) size of a buffer.
int variable_exists (Environment *_environment, char *_name)
int variable_exists_by_realname (Environment *_environment, char *_name)
Variablevariable_retrieve (Environment *_environment, char *_name)
Variablevariable_retrieve_by_realname (Environment *_environment, char *_name)
Variablevariable_retrieve_or_define (Environment *_environment, char *_name, VariableType _type, int _value)
void variable_set_type (Environment *_environment, char *_source, char *_type)
Variablevariable_store (Environment *_environment, char *_source, unsigned int _value)
 Store a direct value to a variable.
Variablevariable_store_type (Environment *_environment, char *_source, char *_signed, unsigned int _value)
void variable_store_mt (Environment *_environment, char *_source, unsigned int _value)
 Store a variable's value.
Variablevariable_store_array (Environment *_environment, char *_destination, unsigned char *_buffer, int _size, int _at)
void variable_store_array_const (Environment *_environment, char *_array, int _value)
Variablevariable_store_buffer (Environment *_environment, char *_destination, unsigned char *_buffer, int _size, int _at)
Variablevariable_store_string (Environment *_environment, char *_source, char *_string)
 Store a string to a variable.
Variablevariable_store_float (Environment *_environment, char *_destination, double _value)
 Store a string to a variable.
Variablevariable_string_asc (Environment *_environment, char *_char)
 Emit code for = ASC( ... ).
Variablevariable_string_chr (Environment *_environment, char *_ascii)
 Emit code for = CHR( ... ).
Variablevariable_string_dup (Environment *_environment, char *_string, char *_repetitions)
Variablevariable_string_flip (Environment *_environment, char *_string)
 Emit code for = FLIP( ... ).
Variablevariable_string_insert (Environment *_environment, char *_string, char *_altstring, char *_pos)
Variablevariable_string_inst (Environment *_environment, char *_string, char *_altstring, char *_pos)
Variablevariable_string_instr (Environment *_environment, char *_search, char *_searched, char *_start)
 Emit code for = INSTR( ..., ... [, ...] ).
Variablevariable_string_left (Environment *_environment, char *_string, char *_position)
 Emit code for = LEFT( ..., ... ).
void variable_string_left_assign (Environment *_environment, char *_string, char *_position, char *_expression)
 Emit code for LEFT( ..., ... ) = ....
Variablevariable_string_len (Environment *_environment, char *_string)
 Emit code for = LEN( ... ).
Variablevariable_string_lower (Environment *_environment, char *_string)
 Emit code for = UPPER( ... ).
Variablevariable_string_mid (Environment *_environment, char *_string, char *_position, char *_len)
 Emit code for = MID( ..., ... [, ...] ).
void variable_string_mid_assign (Environment *_environment, char *_string, char *_position, char *_len, char *_expression)
 Emit code for MID( ..., ... [, ...] ) = ....
Variablevariable_string_pick (Environment *_environment, char *_string, int _position)
Variablevariable_string_right (Environment *_environment, char *_string, char *_position)
 Emit code for = LEFT( ..., ... ).
void variable_string_right_assign (Environment *_environment, char *_string, char *_position, char *_expression)
 Emit code for RIGHT( ..., ... ) = ....
Variablevariable_string_space (Environment *_environment, char *_repetitions)
 Emit code for = SPACE( ... ).
Variablevariable_string_str (Environment *_environment, char *_value)
 Emit code for = STR( ... ).
Variablevariable_string_string (Environment *_environment, char *_string, char *_repetitions)
 Emit code for = STRING( ..., ... ).
Variablevariable_string_substring (Environment *_environment, char *_string, char *_start, char *_end)
 Emit code for = SUBSTRING( ..., ... [, ...] ).
Variablevariable_string_upper (Environment *_environment, char *_string)
 Emit code for = UPPER( ... ).
Variablevariable_string_val (Environment *_environment, char *_value)
 Emit code for = VAL( ... ).
Variablevariable_sub (Environment *_environment, char *_source, char *_dest)
 Make a differenze between two variable and return the difference of them.
Variablevariable_sub_const (Environment *_environment, char *_source, int _dest)
 Make a differenze between a variable a constant, and return the difference of them.
void variable_sub_inplace (Environment *_environment, char *_source, char *_dest)
 Make a differenze between two variable and assign the difference of them to the first.
void variable_swap (Environment *_environment, char *_source, char *_dest)
 Swap values of two variables.
Variablevariable_temporary (Environment *_environment, VariableType _type, char *_meaning)
 Define a temporary variable.
VariableType variable_type_from_numeric_value (Environment *_environment, int _number)
Variablevariable_resident (Environment *_environment, VariableType _type, char *_meaning)
Variablevariable_xor (Environment *_environment, char *_left, char *_right)
 Calculate logical "xor" and return it as the result.
void variable_xor_inplace (Environment *_environment, char *_source, int _dest)
void variable_xor_inplace_vars (Environment *_environment, char *_source, char *_dest)
 Add two variable and return the sum of them on the first.
void variable_xor_inplace_mt (Environment *_environment, char *_source, char *_destination)
 Add two variable and return the sum of them on the first.
Variablevarptr (Environment *_environment, char *_identifier)
 Emit code for function = VARPTR( ... ).
void vcenter (Environment *_environment, char *_string, int _newline)
 Emit code for CENTRE ....
Variablevector_get_x (Environment *_environment, char *_vector)
Variablevector_get_y (Environment *_environment, char *_vector)
void vhcenter (Environment *_environment, char *_string, int _newline, char *_width)
 Emit code for CENTRE ....
void volume (Environment *_environment, int _volume, int _channels)
 Emit ASM code for VOLUME ....
void volume_vars (Environment *_environment, char *_volume, char *_channels)
 Emit ASM code for VOLUME ....
void volume_off (Environment *_environment, int _channels)
 Emit ASM code for VOLUME OFF.
void volume_off_var (Environment *_environment, char *_channels)
 Emit ASM code for VOLUME OFF.
void wait_cycles (Environment *_environment, int _timing, int _parallel)
 Emit ASM code for WAIT # [integer] CYCLES.
void wait_cycles_var (Environment *_environment, char *_timing, int _parallel)
 Emit ASM code for WAIT [expression] CYCLES.
void wait_fire (Environment *_environment, int _port, int _release)
void wait_fire_semivar (Environment *_environment, char *_port, int _release)
void wait_key (Environment *_environment, int _release)
void wait_key_or_fire (Environment *_environment, int _port, int _release)
void wait_key_or_fire_semivar (Environment *_environment, char *_port, int _release)
void wait_milliseconds (Environment *_environment, int _timing)
 Emit ASM code for WAIT # [integer] MS.
void wait_milliseconds_var (Environment *_environment, char *_timing)
 Emit ASM code for WAIT [expression] MILLISECONDS.
void wait_ticks (Environment *_environment, int _timing)
 Emit ASM code for WAIT # [integer] TICKS.
void wait_ticks_var (Environment *_environment, char *_timing)
 Emit ASM code for WAIT [expression] TICKS.
void wait_vbl (Environment *_environment, char *_raster_line)
 Emit ASM code for WAIT VBL/b>.
void wait_until (Environment *_environment)
 Emit code for WAIT UNTIL ....
void wait_until_condition (Environment *_environment, char *_condition)
void wait_while (Environment *_environment)
 Emit code for WAIT WHILE ....
void wait_while_condition (Environment *_environment, char *_condition)
void wait_parallel (Environment *_environment, char *_thread)
 Emit code for WAIT PARALLEL ....
void wave (Environment *_environment, char *_voice, char *_bits, char *_pulse)
void writing (Environment *_environment, char *_mode, char *_parts)
 Emit code for WRITING.
Variablexpen (Environment *_environment)
 Emit ASM code for = XPEN().
Variablex_graphic_get (Environment *_environment, char *_x)
 Return the graphic abscissa for the given text abscissa.
Variablex_text_get (Environment *_environment, char *_x)
 Return the graphic abscissa for the given text abscissa.
void yield (Environment *_environment)
 Emit code for YIELD.
Variableypen (Environment *_environment)
 Emit ASM code for = YPEN().
Variabley_graphic_get (Environment *_environment, char *_y)
 Return the graphic ordinate for the given text ordinate.
Variabley_text_get (Environment *_environment, char *_y)
 Return the text ordinate for the given graphic ordinate.

Variables

int yycolno
int yyposno

Macro Definition Documentation

◆ adiline0

#define adiline0 ( s)
Value:
if ( ((Environment *)_environment)->additionalInfoFile ) { \
fprintf( ((Environment *)_environment)->additionalInfoFile, s ); \
fprintf( ((Environment *)_environment)->additionalInfoFile, "\n" ); \
}
struct _Environment Environment
Structure of compilation environment.

Definition at line 4182 of file ugbc.h.

◆ adiline1

#define adiline1 ( s,
a )
Value:
if ( ((Environment *)_environment)->additionalInfoFile ) { \
fprintf( ((Environment *)_environment)->additionalInfoFile, s, a ); \
fprintf( ((Environment *)_environment)->additionalInfoFile, "\n" ); \
}

Definition at line 4187 of file ugbc.h.

◆ adiline2

#define adiline2 ( s,
a,
b )
Value:
if ( ((Environment *)_environment)->additionalInfoFile ) { \
fprintf( ((Environment *)_environment)->additionalInfoFile, s, a, b ); \
fprintf( ((Environment *)_environment)->additionalInfoFile, "\n" ); \
}

Definition at line 4192 of file ugbc.h.

◆ adiline3

#define adiline3 ( s,
a,
b,
c )
Value:
if ( ((Environment *)_environment)->additionalInfoFile ) { \
fprintf( ((Environment *)_environment)->additionalInfoFile, s, a, b, c ); \
fprintf( ((Environment *)_environment)->additionalInfoFile, "\n" ); \
}

Definition at line 4197 of file ugbc.h.

◆ adiline4

#define adiline4 ( s,
a,
b,
c,
d )
Value:
if ( ((Environment *)_environment)->additionalInfoFile ) { \
fprintf( ((Environment *)_environment)->additionalInfoFile, s, a, b, c, d ); \
fprintf( ((Environment *)_environment)->additionalInfoFile, "\n" ); \
}

Definition at line 4202 of file ugbc.h.

◆ adiline5

#define adiline5 ( s,
a,
b,
c,
d,
e )
Value:
if ( ((Environment *)_environment)->additionalInfoFile ) { \
fprintf( ((Environment *)_environment)->additionalInfoFile, s, a, b, c, d, e ); \
fprintf( ((Environment *)_environment)->additionalInfoFile, "\n" ); \
}

Definition at line 4207 of file ugbc.h.

◆ adiline6

#define adiline6 ( s,
a,
b,
c,
d,
e,
f )
Value:
if ( ((Environment *)_environment)->additionalInfoFile ) { \
fprintf( ((Environment *)_environment)->additionalInfoFile, s, a, b, c, d, e, f ); \
fprintf( ((Environment *)_environment)->additionalInfoFile, "\n" ); \
}

Definition at line 4213 of file ugbc.h.

◆ adilinebeginbitmap

#define adilinebeginbitmap ( s)
Value:
if ( ((Environment *)_environment)->additionalInfoFile ) { \
fprintf( ((Environment *)_environment)->additionalInfoFile, "%s:", s ); \
}

Definition at line 4231 of file ugbc.h.

◆ adilineendbitmap

#define adilineendbitmap ( )
Value:
if ( ((Environment *)_environment)->additionalInfoFile ) { \
fprintf( ((Environment *)_environment)->additionalInfoFile, "\n" ); \
}

Definition at line 4241 of file ugbc.h.

◆ adilinepalette

#define adilinepalette ( s,
c,
p )
Value:
if ( ((Environment *)_environment)->additionalInfoFile ) { \
fprintf( ((Environment *)_environment)->additionalInfoFile, s, c ); \
fprintf( ((Environment *)_environment)->additionalInfoFile, ":" ); \
int i = 0; \
for( i=0; i<c; ++i ) { \
fprintf( ((Environment *)_environment)->additionalInfoFile, "%2.2x%2.2x%2.2x%2.2x:%2.2x:%s :%2.2x:%2.2x:%2.2x:", \
p[i].alpha, p[i].red, p[i].green, p[i].blue, p[i].index, (p[i].description)?p[i].description:"", p[i].hardwareIndex, p[i].used, p[i].count ); \
} \
fprintf( ((Environment *)_environment)->additionalInfoFile, "\n" ); \
}

Definition at line 4219 of file ugbc.h.

◆ adilinepixel

#define adilinepixel ( p)
Value:
if ( ((Environment *)_environment)->additionalInfoFile ) { \
fprintf( ((Environment *)_environment)->additionalInfoFile, "%2.2x:", p ); \
}

Definition at line 4236 of file ugbc.h.

◆ BANK_TYPE_COUNT

#define BANK_TYPE_COUNT   6

Maximum number of bank types.

Definition at line 145 of file ugbc.h.

◆ BETAVALUE

#define BETAVALUE   0

Definition at line 6515 of file ugbc.h.

◆ BITMAP_NATIVE

#define BITMAP_NATIVE   1

Definition at line 4544 of file ugbc.h.

◆ BUILD_CHECK_FILETYPE

#define BUILD_CHECK_FILETYPE ( _environment,
_filetype )
Value:
if ( _environment->outputFileType != _filetype ) { \
CRITICAL_UNSUPPORTED_OUTPUT_FILE_TYPE( OUTPUT_FILE_TYPE_AS_STRING[_filetype] ); \
}
char OUTPUT_FILE_TYPE_AS_STRING[][16]

Definition at line 4743 of file ugbc.h.

◆ BUILD_SAFE_MOVE

#define BUILD_SAFE_MOVE ( _environment,
source,
destination )
Value:
system_move_safe( _environment, source, destination )
int system_move_safe(Environment *_environment, char *_source, char *_destination)

Definition at line 4751 of file ugbc.h.

◆ BUILD_SAFE_REMOVE

#define BUILD_SAFE_REMOVE ( _environment,
filename )
Value:
system_remove_safe( _environment, filename );
int system_remove_safe(Environment *_environment, char *_filename)

Definition at line 4748 of file ugbc.h.

◆ BUILD_TOOLCHAIN_ASM6809_GET_EXECUTABLE

#define BUILD_TOOLCHAIN_ASM6809_GET_EXECUTABLE ( _environment,
executableName )
Value:
if ( _environment->compilerFileName ) { \
sprintf(executableName, "%s", _environment->compilerFileName ); \
} else if( access( "modules\\asm6809\\src\\asm6809.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "modules\\asm6809\\src\\asm6809.exe" ); \
} else if( access( "..\\modules\\asm6809\\src\\asm6809.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "..\\modules\\asm6809\\src\\asm6809.exe" ); \
} else if( access( "modules/asm6809/src/asm6809", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "modules/asm6809/src/asm6809" ); \
} else if( access( "../modules/asm6809/src/asm6809", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "../modules/asm6809/src/asm6809" ); \
} else if( access( "asm6809\\bin\\asm6809.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "asm6809\\bin\\asm6809.exe" ); \
} else { \
sprintf(executableName, "%s", "asm6809" ); \
}

Definition at line 4855 of file ugbc.h.

◆ BUILD_TOOLCHAIN_ASM6809_GET_LISTING_FILE

#define BUILD_TOOLCHAIN_ASM6809_GET_LISTING_FILE ( _environment,
listingFileName )
Value:
memset( listingFileName, 0, MAX_TEMPORARY_STORAGE ); \
if ( _environment->listingFileName ) { \
sprintf( listingFileName, "-l \"%s\"", _environment->listingFileName ); \
} else { \
strcopy( listingFileName, "" ); \
}
#define MAX_TEMPORARY_STORAGE
Definition ugbc.h:563

Definition at line 4872 of file ugbc.h.

◆ BUILD_TOOLCHAIN_ASM6809EXEC

#define BUILD_TOOLCHAIN_ASM6809EXEC ( _environment,
flag,
startingAddress,
executableName,
listingFileName )
Value:
sprintf( commandLine, "\"%s\" %s -o \"%s\" %s -e %d \"%s\"", \
executableName, \
listingFileName, \
_environment->exeFileName, \
flag, \
startingAddress, \
_environment->asmFileName ); \
if ( system_call( _environment, commandLine ) ) { \
printf("The compilation of assembly program failed.\n\n"); \
printf("Please check if %s is correctly installed.\n\n", executableName); \
printf("For more informations, please visit: https://ugbasic.iwashere.eu/install.\n\n"); \
};
int system_call(Environment *_environment, char *_commandline)
Call an external executable.

Definition at line 4880 of file ugbc.h.

◆ BUILD_TOOLCHAIN_ASXV5PXX_EXEC

#define BUILD_TOOLCHAIN_ASXV5PXX_EXEC ( _environment,
target,
executableName )
Value:
sprintf( commandLine, "\"%s\" -gloaxsff \"%s\"", \
executableName, \
_environment->asmFileName ); \
if ( system_call( _environment, commandLine ) ) { \
printf("The compilation of assembly program failed.\n\n"); \
printf("Please check if %s is correctly installed.\n\n", executableName); \
printf("For more info, please visit: https://ugbasic.iwashere.eu/install.\n\n"); \
return; \
}; \
if ( _environment->listingFileName ) { \
char * p = strdup( _environment->asmFileName ); \
char * q = strchr( p, '.' ); \
if ( q ) { \
strcopy( q, ".lst" ); \
} \
BUILD_SAFE_MOVE( _environment, p, _environment->listingFileName ); \
}

Definition at line 5000 of file ugbc.h.

◆ BUILD_TOOLCHAIN_ASXV5PXX_GET_EXECUTABLE_AS61860

#define BUILD_TOOLCHAIN_ASXV5PXX_GET_EXECUTABLE_AS61860 ( _environment,
executableName )
Value:
if ( _environment->compilerFileName ) { \
sprintf( executableName, "%s", _environment->compilerFileName ); \
} else if( access( "modules\\asxv5pxx\\asxmak\\linux\\exe\\as61860.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "modules\\asxv5pxx\\asxmak\\linux\\exe\\as61860.exe" ); \
} else if( access( "..\\modules\\asxv5pxx\\asxmak\\linux\\exe\\as61860.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "..\\modules\\asxv5pxx\\asxmak\\linux\\exe\\as61860.exe" ); \
} else if( access( "modules/asxv5pxx/asxmak/linux/exe/as61860", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "modules/asxv5pxx/asxmak/linux/exe/as61860" ); \
} else if( access( "../modules/asxv5pxx/asxmak/linux/exe/as61860", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "../modules/asxv5pxx/asxmak/linux/exe/as61860" ); \
} else { \
sprintf(executableName, "%s", "as61860" ); \
}

Definition at line 4985 of file ugbc.h.

◆ BUILD_TOOLCHAIN_ASXV5PXX_GET_EXECUTABLE_ASLINK

#define BUILD_TOOLCHAIN_ASXV5PXX_GET_EXECUTABLE_ASLINK ( _environment,
executableName )
Value:
if ( _environment->asLinkerFileName ) { \
sprintf( executableName, "%s", _environment->asLinkerFileName ); \
} else if( access( "modules\\asxv5pxx\\asxmak\\linux\\exe\\aslink.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "modules\\asxv5pxx\\asxmak\\linux\\exe\\aslink.exe" ); \
} else if( access( "..\\modules\\asxv5pxx\\asxmak\\linux\\exe\\aslink.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "..\\modules\\asxv5pxx\\asxmak\\linux\\exe\\aslink.exe" ); \
} else if( access( "modules/asxv5pxx/asxmak/linux/exe/aslink", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "modules/asxv5pxx/asxmak/linux/exe/aslink" ); \
} else if( access( "../modules/asxv5pxx/asxmak/linux/exe/aslink", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "../modules/asxv5pxx/asxmak/linux/exe/aslink" ); \
} else { \
sprintf(executableName, "%s", "aslink" ); \
}

Definition at line 5019 of file ugbc.h.

◆ BUILD_TOOLCHAIN_CC65_EXEC

#define BUILD_TOOLCHAIN_CC65_EXEC ( _environment,
target,
executableName,
listingFileName,
additionalParameters )
Value:
sprintf( commandLine, "\"%s\" %s -o \"%s\" %s -C \"%s\" \"%s\"", \
executableName, \
listingFileName, \
_environment->exeFileName, \
additionalParameters, \
_environment->configurationFileName, \
_environment->asmFileName ); \
if ( system_call( _environment, commandLine ) ) { \
printf("The compilation of assembly program failed.\n\n"); \
printf("Please check if %s is correctly installed.\n\n", executableName); \
printf("For more info, please visit: https://ugbasic.iwashere.eu/install.\n\n"); \
};

Definition at line 4781 of file ugbc.h.

◆ BUILD_TOOLCHAIN_CC65_GET_EXECUTABLE

#define BUILD_TOOLCHAIN_CC65_GET_EXECUTABLE ( _environment,
executableName )
Value:
if ( _environment->compilerFileName ) { \
sprintf( executableName, "%s", _environment->compilerFileName ); \
} else if( access( "cc65\\bin\\cl65.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "cc65\\bin\\cl65.exe" ); \
} else if( access( "modules\\cc65\\bin\\cl65.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "cc65\\bin\\cl65.exe" ); \
} else if( access( "..\\modules\\cc65\\bin\\cl65.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "..\\modules\\cc65\\bin\\cl65.exe" ); \
} else if( access( "cc65/bin/cl65", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "cc65/bin/cl65" ); \
} else if( access( "modules//cc65/bin/cl65", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "modules/cc65/bin/cl65" ); \
} else if( access( "../modules//cc65/bin/cl65", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "../modules/cc65/bin/cl65" ); \
} else { \
sprintf(executableName, "%s", "cl65" ); \
}

Definition at line 4754 of file ugbc.h.

◆ BUILD_TOOLCHAIN_CC65_GET_LISTING_FILE

#define BUILD_TOOLCHAIN_CC65_GET_LISTING_FILE ( _environment,
listingFileName )
Value:
memset( listingFileName, 0, MAX_TEMPORARY_STORAGE ); \
if ( _environment->listingFileName ) { \
sprintf( listingFileName, "-l \"%s\"", _environment->listingFileName ); \
} else { \
strcopy( listingFileName, "" ); \
}

Definition at line 4773 of file ugbc.h.

◆ BUILD_TOOLCHAIN_DECB

#define BUILD_TOOLCHAIN_DECB ( _environment,
executableName,
binaryFileName )
Value:
sprintf( commandLine, "\"%s\" dskini \"%s\"", \
executableName, \
_environment->exeFileName ); \
if ( system_call( _environment, commandLine ) ) { \
printf("The compilation of assembly program failed.\n\n"); \
printf("Please check if %s is correctly installed.\n\n", executableName); \
printf("For more informations, please visit: https://ugbasic.iwashere.eu/install.\n\n"); \
}; \
sprintf( commandLine, "\"%s\" copy -2 \"%s\" \"%s,%s\"", \
executableName, \
binaryFileName, \
_environment->exeFileName, \
strtoupper( basename( binaryFileName ) ) ); \
if ( system_call( _environment, commandLine ) ) { \
printf("The compilation of assembly program failed.\n\n"); \
printf("Please check if %s is correctly installed.\n\n", executableName); \
printf("For more informations, please visit: https://ugbasic.iwashere.eu/install.\n\n"); \
};
char * basename(char *_path)
char * strtoupper(char *_string)

Definition at line 4909 of file ugbc.h.

◆ BUILD_TOOLCHAIN_DECB_GET_EXECUTABLE

#define BUILD_TOOLCHAIN_DECB_GET_EXECUTABLE ( _environment,
executableName )
Value:
if ( _environment->decbFileName ) { \
sprintf(executableName, "%s", _environment->decbFileName ); \
} else if( access( "modules\\toolshed\\build\\unix\\decb\\decb.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "modules\\toolshed\\build\\unix\\decb\\decb.exe" ); \
} else if( access( "modules/toolshed/build/unix/decb/decb", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "modules/toolshed/build/unix/decb/decb" ); \
} else if( access( "..\\modules\\toolshed\\build\\unix\\decb\\decb.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "..\\modules\\toolshed\\build\\unix\\decb\\decb.exe" ); \
} else if( access( "../modules/toolshed/build/unix/decb/decb", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "../modules/toolshed/build/unix/decb/decb" ); \
} else { \
sprintf(executableName, "%s", "decb" ); \
}

Definition at line 4894 of file ugbc.h.

◆ BUILD_TOOLCHAIN_DIR2ATR

#define BUILD_TOOLCHAIN_DIR2ATR ( _environment,
executableName,
bootCodePath,
contentPath,
atrFileName,
pipes )
Value:
{ \
int pathSeparatorChanged = 0; \
if ( contentPath[strlen(contentPath)-1] == PATH_SEPARATOR ) { \
contentPath[strlen(contentPath)-1] = 0; \
pathSeparatorChanged = 1; \
} \
sprintf( commandLine, "\"%s\" -S -p -B \"%s\" \"%s\" \"%s\" %s", \
executableName, \
bootCodePath, \
atrFileName, \
contentPath, \
pipes \
); \
if ( system_call( _environment, commandLine ) ) { \
printf("The compilation of assembly program failed.\n\n"); \
printf("Please check if %s is correctly installed.\n\n", executableName); \
printf("For more informations, please visit: https://ugbasic.iwashere.eu/install.\n\n"); \
}; \
if ( pathSeparatorChanged ) { \
contentPath[strlen(contentPath)] = PATH_SEPARATOR; \
} \
}
#define PATH_SEPARATOR
Definition ugbc.h:69

Definition at line 4961 of file ugbc.h.

◆ BUILD_TOOLCHAIN_DIR2ATR_GET_EXECUTABLE

#define BUILD_TOOLCHAIN_DIR2ATR_GET_EXECUTABLE ( _environment,
executableName )
Value:
{ \
if ( _environment->dir2atrFileName ) { \
sprintf(executableName, "%s", _environment->dir2atrFileName ); \
} else if( access( "..\\modules\\atarisio\\tools\\dir2atr.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "..\\modules\\atarisio\\tools\\dir2atr.exe" ); \
} else if( access( "../modules/atarisio/tools/dir2atr", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "../modules/atarisio/tools/dir2atr" ); \
} else if( access( "modules\\atarisio\\tools\\dir2atr.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "modules\\atarisio\\tools\\dir2atr.exe" ); \
} else if( access( "modules/atarisio/tools/dir2atr", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "modules/atarisio/tools/dir2atr" ); \
} else { \
sprintf(executableName, "%s", "dir2atr" ); \
} \
}

Definition at line 4929 of file ugbc.h.

◆ BUILD_TOOLCHAIN_DSKTOOLS_GET_EXECUTABLE

#define BUILD_TOOLCHAIN_DSKTOOLS_GET_EXECUTABLE ( _environment,
executableName )
Value:
{ \
if ( _environment->dsktoolsFileName ) { \
sprintf(executableName, "%s", _environment->dsktoolsFileName ); \
} else if( access( "..\\modules\\dsktools\\bin\\cptodsk.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "..\\ugbasic\\modules\\dsktools\\bin\\cptodsk.exe" ); \
} else if( access( "../modules/dsktools/bin/cptodsk", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "../modules/dsktools/bin/cptodsk" ); \
} else if( access( "modules\\dsktools\\bin\\cptodsk.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "modules\\dsktools\\bin\\cptodsk.exe" ); \
} else if( access( "modules/dsktools/bin/cptodsk", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "modules/dsktools/bin/cptodsk" ); \
} else { \
sprintf(executableName, "%s", "cptodsk" ); \
} \
}

Definition at line 4945 of file ugbc.h.

◆ BUILD_TOOLCHAIN_NASM_EXEC

#define BUILD_TOOLCHAIN_NASM_EXEC ( _environment,
target,
executableName,
listingFileName,
cpu )
Value:
sprintf( commandLine, "\"%s\" -f bin \"%s\" -o \"%s\" %s", \
executableName, \
_environment->asmFileName, \
_environment->exeFileName, \
listingFileName ); \
if ( system_call( _environment, commandLine ) ) { \
printf("The compilation of assembly program failed.\n\n"); \
printf("Please check if %s is correctly installed.\n\n", executableName); \
printf("For more info, please visit: https://ugbasic.iwashere.eu/install.\n\n"); \
return; \
}; \
if ( _environment->listingFileName ) { \
char * p = strdup( _environment->asmFileName ); \
char * q = strchr( p, '.' ); \
if ( q ) { \
strcopy( q, ".lis" ); \
} \
BUILD_SAFE_MOVE( _environment, p, _environment->listingFileName ); \
}

Definition at line 5057 of file ugbc.h.

◆ BUILD_TOOLCHAIN_NASM_GET_EXECUTABLE

#define BUILD_TOOLCHAIN_NASM_GET_EXECUTABLE ( _environment,
executableName )
Value:
if ( _environment->compilerFileName ) { \
sprintf( executableName, "%s", _environment->compilerFileName ); \
} else if( access( "modules\\nasm\\nasm.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "modules\\nasm\\nasm.exe" ); \
} else if( access( "..\\modules\\nasm\\nasm.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "..\\modules\\nasm\\nasm.exe" ); \
} else if( access( "modules/nasm/nasm", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "modules/nasm/nasm" ); \
} else if( access( "../modules/nasm/nasm", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "../modules/nasm/nasm" ); \
} else { \
sprintf(executableName, "%s", "nasm" ); \
}

Definition at line 5034 of file ugbc.h.

◆ BUILD_TOOLCHAIN_NASM_GET_LISTING_FILE

#define BUILD_TOOLCHAIN_NASM_GET_LISTING_FILE ( _environment,
listingFileName )
Value:
memset( listingFileName, 0, MAX_TEMPORARY_STORAGE ); \
if ( _environment->listingFileName ) { \
sprintf( listingFileName, "-l \"%s\"", _environment->listingFileName ); \
} else { \
strcopy( listingFileName, "" ); \
}

Definition at line 5049 of file ugbc.h.

◆ BUILD_TOOLCHAIN_Z88DK_EXEC

#define BUILD_TOOLCHAIN_Z88DK_EXEC ( _environment,
target,
executableName,
listingFileName,
cpu )
Value:
sprintf( commandLine, "\"%s\" -m=%s %s -D__%s__ -b \"%s\"", \
executableName, \
cpu, \
listingFileName, \
target, \
_environment->asmFileName ); \
if ( system_call( _environment, commandLine ) ) { \
printf("The compilation of assembly program failed.\n\n"); \
printf("Please check if %s is correctly installed.\n\n", executableName); \
printf("For more info, please visit: https://ugbasic.iwashere.eu/install.\n\n"); \
return; \
}; \
if ( _environment->listingFileName ) { \
char * p = strdup( _environment->asmFileName ); \
char * q = strchr( p, '.' ); \
if ( q ) { \
strcopy( q, ".lis" ); \
} \
BUILD_SAFE_MOVE( _environment, p, _environment->listingFileName ); \
}

Definition at line 4818 of file ugbc.h.

◆ BUILD_TOOLCHAIN_Z88DK_GET_EXECUTABLE_APPMAKE

#define BUILD_TOOLCHAIN_Z88DK_GET_EXECUTABLE_APPMAKE ( _environment,
executableName )
Value:
if ( _environment->appMakerFileName ) { \
sprintf( executableName, "%s", _environment->appMakerFileName ); \
} else if( access( "modules\\z88dk\\src\\appmake\\z88dk-appmake.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "..\\modules\\z88dk\\src\\appmake\\z88dk-appmake.exe" ); \
} else if( access( "..\\modules\\z88dk\\src\\appmake\\z88dk-appmake.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "..\\modules\\z88dk\\src\\appmake\\z88dk-appmake.exe" ); \
} else if( access( "modules/z88dk/src/appmake/z88dk-appmake", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "../modules/z88dk/src/appmake/z88dk-appmake" ); \
} else if( access( "../modules/z88dk/src/appmake/z88dk-appmake", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "../modules/z88dk/src/appmake/z88dk-appmake" ); \
} else { \
sprintf(executableName, "%s", "z88dk-appmake" ); \
}

Definition at line 4840 of file ugbc.h.

◆ BUILD_TOOLCHAIN_Z88DK_GET_EXECUTABLE_Z80ASM

#define BUILD_TOOLCHAIN_Z88DK_GET_EXECUTABLE_Z80ASM ( _environment,
executableName )
Value:
if ( _environment->compilerFileName ) { \
sprintf( executableName, "%s", _environment->compilerFileName ); \
} else if( access( "modules\\z88dk\\src\\z80asm\\z88dk-z80asm.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "..\\modules\\z88dk\\src\\z80asm\\z88dk-z80asm.exe" ); \
} else if( access( "..\\modules\\z88dk\\src\\z80asm\\z88dk-z80asm.exe", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "..\\modules\\z88dk\\src\\z80asm\\z88dk-z80asm.exe" ); \
} else if( access( "modules/z88dk/src/z80asm/z88dk-z80asm", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "../modules/z88dk/src/z80asm/z88dk-z80asm" ); \
} else if( access( "../modules/z88dk/src/z80asm/z88dk-z80asm", F_OK ) == 0 ) { \
sprintf(executableName, "%s", "../modules/z88dk/src/z80asm/z88dk-z80asm" ); \
} else { \
sprintf(executableName, "%s", "z88dk-z80asm" ); \
}

Definition at line 4795 of file ugbc.h.

◆ BUILD_TOOLCHAIN_Z88DK_GET_LISTING_FILE

#define BUILD_TOOLCHAIN_Z88DK_GET_LISTING_FILE ( _environment,
listingFileName )
Value:
(void) listingFileName; \
if ( _environment->listingFileName ) { \
sprintf( listingFileName, "-l -m -s -g" ); /* -m -s -g */ \
} else { \
strcopy( listingFileName, "-m -s -g" ); \
}

Definition at line 4810 of file ugbc.h.

◆ cfg0

#define cfg0 ( s)
Value:
cfgline0n(0, s, 0)
#define cfgline0n(n, s, r)
Definition ugbc.h:4033

Definition at line 4279 of file ugbc.h.

◆ cfg1

#define cfg1 ( s,
a )
Value:
cfgline1n(0, s, a, 0)
#define cfgline1n(n, s, a, r)
Definition ugbc.h:4043

Definition at line 4280 of file ugbc.h.

◆ cfg2

#define cfg2 ( s,
a,
b )
Value:
cfgline2n(0, s, a, b, 0)
#define cfgline2n(n, s, a, b, r)
Definition ugbc.h:4053

Definition at line 4281 of file ugbc.h.

◆ cfg3

#define cfg3 ( s,
a,
b,
c )
Value:
cfgline3n(0, s, a, b, c, 0)
#define cfgline3n(n, s, a, b, c, r)
Definition ugbc.h:4063

Definition at line 4282 of file ugbc.h.

◆ cfg4

#define cfg4 ( s,
a,
b,
c,
d )
Value:
cfgline4n(0, s, a, b, c, d, 0)
#define cfgline4n(n, s, a, b, c, d, r)
Definition ugbc.h:4073

Definition at line 4283 of file ugbc.h.

◆ cfg5

#define cfg5 ( s,
a,
b,
c,
d,
e )
Value:
cfgline5n(0, s, a, b, c, d, e, 0)
#define cfgline5n(n, s, a, b, c, d, e, r)
Definition ugbc.h:4083

Definition at line 4284 of file ugbc.h.

◆ cfghead0

#define cfghead0 ( s)
Value:
cfgline0n(0, s, 1)

Definition at line 4267 of file ugbc.h.

◆ cfghead1

#define cfghead1 ( s,
a )
Value:
cfgline1n(0, s, a, 1)

Definition at line 4268 of file ugbc.h.

◆ cfghead2

#define cfghead2 ( s,
a,
b )
Value:
cfgline2n(0, s, a, b, 1)

Definition at line 4269 of file ugbc.h.

◆ cfghead3

#define cfghead3 ( s,
a,
b,
c )
Value:
cfgline3n(0, s, a, b, c, 1)

Definition at line 4270 of file ugbc.h.

◆ cfghead4

#define cfghead4 ( s,
a,
b,
c,
d )
Value:
cfgline4n(0, s, a, b, c, d, 1)

Definition at line 4271 of file ugbc.h.

◆ cfghead5

#define cfghead5 ( s,
a,
b,
c,
d,
e )
Value:
cfgline5n(0, s, a, b, c, d, e, 1)

Definition at line 4272 of file ugbc.h.

◆ cfgline0

#define cfgline0 ( s)
Value:
cfgline0n(1, s, 1)

Definition at line 4273 of file ugbc.h.

◆ cfgline0n

#define cfgline0n ( n,
s,
r )
Value:
{ \
int outsi; \
for(outsi=0; outsi<n; ++outsi) \
fputs("\t", ((Environment *)_environment)->configurationFile); \
fputs(s,((Environment *)_environment)->configurationFile); \
if ( r ) \
fputs("\n", ((Environment *)_environment)->configurationFile); \
}

Definition at line 4033 of file ugbc.h.

◆ cfgline1

#define cfgline1 ( s,
a )
Value:
cfgline1n(1, s, a, 1)

Definition at line 4274 of file ugbc.h.

◆ cfgline1n

#define cfgline1n ( n,
s,
a,
r )
Value:
{ \
int outsi; \
for(outsi=0; outsi<n; ++outsi) \
fputs("\t", ((Environment *)_environment)->configurationFile); \
fprintf(((Environment *)_environment)->configurationFile, s, a); \
if ( r ) \
fputs("\n", ((Environment *)_environment)->configurationFile); \
}

Definition at line 4043 of file ugbc.h.

◆ cfgline2

#define cfgline2 ( s,
a,
b )
Value:
cfgline2n(1, s, a, b, 1)

Definition at line 4275 of file ugbc.h.

◆ cfgline2n

#define cfgline2n ( n,
s,
a,
b,
r )
Value:
{ \
int outsi; \
for(outsi=0; outsi<n; ++outsi) \
fputs("\t", ((Environment *)_environment)->configurationFile); \
fprintf(((Environment *)_environment)->configurationFile, s, a, b); \
if ( r ) \
fputs("\n", ((Environment *)_environment)->configurationFile); \
}

Definition at line 4053 of file ugbc.h.

◆ cfgline3

#define cfgline3 ( s,
a,
b,
c )
Value:
cfgline3n(1, s, a, b, c, 1)

Definition at line 4276 of file ugbc.h.

◆ cfgline3n

#define cfgline3n ( n,
s,
a,
b,
c,
r )
Value:
{ \
int outsi; \
for(outsi=0; outsi<n; ++outsi) \
fputs("\t", ((Environment *)_environment)->configurationFile); \
fprintf(((Environment *)_environment)->configurationFile, s, a, b, c); \
if ( r ) \
fputs("\n", ((Environment *)_environment)->configurationFile); \
}

Definition at line 4063 of file ugbc.h.

◆ cfgline4

#define cfgline4 ( s,
a,
b,
c,
d )
Value:
cfgline4n(1, s, a, b, c, d, 1)

Definition at line 4277 of file ugbc.h.

◆ cfgline4n

#define cfgline4n ( n,
s,
a,
b,
c,
d,
r )
Value:
{ \
int outsi; \
for(outsi=0; outsi<n; ++outsi) \
fputs("\t", ((Environment *)_environment)->configurationFile); \
fprintf(((Environment *)_environment)->configurationFile, s, a, b, c, d); \
if ( r ) \
fputs("\n", ((Environment *)_environment)->configurationFile); \
}

Definition at line 4073 of file ugbc.h.

◆ cfgline5

#define cfgline5 ( s,
a,
b,
c,
d,
e )
Value:
cfgline5n(1, s, a, b, c, d, e 1)

Definition at line 4278 of file ugbc.h.

◆ cfgline5n

#define cfgline5n ( n,
s,
a,
b,
c,
d,
e,
r )
Value:
{ \
int outsi; \
for(outsi=0; outsi<n; ++outsi) \
fputs("\t", ((Environment *)_environment)->configurationFile); \
fprintf(((Environment *)_environment)->configurationFile, s, a, b, c, d, e); \
if ( r ) \
fputs("\n", ((Environment *)_environment)->configurationFile); \
}

Definition at line 4083 of file ugbc.h.

◆ CHECK_NOTZERO_DIVISION_BY_ZERO

#define CHECK_NOTZERO_DIVISION_BY_ZERO ( value)
Value:
if ( value == 0 ) { \
CRITICAL_DIVISION_BY_ZERO(); \
}

Definition at line 3891 of file ugbc.h.

◆ CHECK_POWEROF2_INVALID_MULTIPLACTOR2

#define CHECK_POWEROF2_INVALID_MULTIPLACTOR2 ( value)
Value:
if ( log2(value) != (int)log2(value) ) { \
CRITICAL_INVALID_MULTIPLICATOR2(value); \
}

Definition at line 3887 of file ugbc.h.

◆ CONDITIONAL_TYPE_COUNT

#define CONDITIONAL_TYPE_COUNT   5

Maximum number of conditional types.

Definition at line 1355 of file ugbc.h.

◆ CRITICAL

#define CRITICAL ( s)
Value:
{ \
char errorMessage[MAX_TEMPORARY_STORAGE*10]; \
sprintf(errorMessage, "%s", s ); \
target_cleanup( ((struct _Environment *)_environment) ); \
yyerror ( NULL, errorMessage ); \
}
Structure of compilation environment.
Definition ugbc.h:2269

Definition at line 3399 of file ugbc.h.

◆ CRITICAL2

#define CRITICAL2 ( s,
v )
Value:
{ \
char errorMessage[MAX_TEMPORARY_STORAGE*10]; \
sprintf(errorMessage, "%s (%s)", s, v ); \
target_cleanup( ((struct _Environment *)_environment) ); \
yyerror ( NULL, errorMessage ); \
}

Definition at line 3405 of file ugbc.h.

◆ CRITICAL2i

#define CRITICAL2i ( s,
v )
Value:
{ \
char errorMessage[MAX_TEMPORARY_STORAGE*10]; \
sprintf(errorMessage, "%s (%d)", s, v ); \
target_cleanup( ((struct _Environment *)_environment) ); \
yyerror ( NULL, errorMessage ); \
}

Definition at line 3411 of file ugbc.h.

◆ CRITICAL3

#define CRITICAL3 ( s,
v1,
v2 )
Value:
{ \
char errorMessage[MAX_TEMPORARY_STORAGE*10]; \
sprintf(errorMessage, "%s (%s, %s)", s, v1, v2 ); \
target_cleanup( ((struct _Environment *)_environment) ); \
yyerror ( NULL, errorMessage ); \
}

Definition at line 3417 of file ugbc.h.

◆ CRITICAL3i

#define CRITICAL3i ( s,
v1,
v2 )
Value:
{ \
char errorMessage[MAX_TEMPORARY_STORAGE*10]; \
sprintf(errorMessage, "%s (%s, %d)", s, v1, v2 ); \
target_cleanup( ((struct _Environment *)_environment) ); \
yyerror ( NULL, errorMessage ); \
}

Definition at line 3423 of file ugbc.h.

◆ CRITICAL3ii

#define CRITICAL3ii ( s,
v1,
v2 )
Value:
{ \
char errorMessage[MAX_TEMPORARY_STORAGE*10]; \
sprintf(errorMessage, "%s (%d, %d)", s, v1, v2 ); \
target_cleanup( ((struct _Environment *)_environment) ); \
yyerror ( NULL, errorMessage ); \
}

Definition at line 3429 of file ugbc.h.

◆ CRITICAL4si

#define CRITICAL4si ( s,
v,
d1,
d2 )
Value:
{ \
char errorMessage[MAX_TEMPORARY_STORAGE*10]; \
sprintf(errorMessage, "%s (%s, %d, %d)", s, v, d1, d2 ); \
target_cleanup( ((struct _Environment *)_environment) ); \
yyerror ( NULL, errorMessage ); \
}

Definition at line 3435 of file ugbc.h.

◆ CRITICAL_10_LINE_RULES_ENFORCED

#define CRITICAL_10_LINE_RULES_ENFORCED ( v)
Value:
CRITICAL2("E106 - this command is not allowed on sources for 10 liner contest", v );
#define CRITICAL2(s, v)
Definition ugbc.h:3405

Definition at line 3550 of file ugbc.h.

◆ CRITICAL_ABS_UNSUPPORTED

#define CRITICAL_ABS_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E033 - ABS unsupported for variable of given datatype", v, t );
#define CRITICAL3(s, v1, v2)
Definition ugbc.h:3417

Definition at line 3477 of file ugbc.h.

◆ CRITICAL_ADD_INPLACE_UNSUPPORTED

#define CRITICAL_ADD_INPLACE_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E102 - Add in place unsupported for variable of given datatype", v, t );

Definition at line 3546 of file ugbc.h.

◆ CRITICAL_ADD_UNSUPPORTED

#define CRITICAL_ADD_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E010 - Add unsupported for variable of given datatype", v, t );

Definition at line 3454 of file ugbc.h.

◆ CRITICAL_AND_UNSUPPORTED

#define CRITICAL_AND_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E018 - Bitwise AND unsupported for variable of given datatype", v, t );

Definition at line 3462 of file ugbc.h.

◆ CRITICAL_ARRAY_ASSIGN_DATATYPE_NOT_SUPPORTED

#define CRITICAL_ARRAY_ASSIGN_DATATYPE_NOT_SUPPORTED ( v)
Value:
CRITICAL2("E185 - cannot instantiate an array of this kind with direct assignment", v );

Definition at line 3630 of file ugbc.h.

◆ CRITICAL_ARRAY_DATATYPE_NOT_SUPPORTED

#define CRITICAL_ARRAY_DATATYPE_NOT_SUPPORTED ( n)
Value:
CRITICAL2("E175 - datatype not supported for array loading from binary file", n );

Definition at line 3620 of file ugbc.h.

◆ CRITICAL_ARRAY_DATATYPE_WRONG

#define CRITICAL_ARRAY_DATATYPE_WRONG ( v)
Value:
CRITICAL2("E297 - wrong datatype of array", v );

Definition at line 3746 of file ugbc.h.

◆ CRITICAL_ARRAY_DEFINITION_FILE_NOT_FOUND

#define CRITICAL_ARRAY_DEFINITION_FILE_NOT_FOUND ( n)
Value:
CRITICAL2("E172 - file not found for initialize array", n );

Definition at line 3617 of file ugbc.h.

◆ CRITICAL_ARRAY_INVALID_DIMENSION

#define CRITICAL_ARRAY_INVALID_DIMENSION ( v)
Value:
CRITICAL2("E268 - invalid dimension for UBOUND/LBOUND", v );

Definition at line 3714 of file ugbc.h.

◆ CRITICAL_ARRAY_MISSING_SIZE

#define CRITICAL_ARRAY_MISSING_SIZE ( n)
Value:
CRITICAL2("E173 - missing size on one or more dimensions", n );

Definition at line 3618 of file ugbc.h.

◆ CRITICAL_ARRAY_MONODIMENSIONAL

#define CRITICAL_ARRAY_MONODIMENSIONAL ( v)
Value:
CRITICAL2("E267 - dimension > 0 for one dimensional array in UBOUND/LBOUND", v );

Definition at line 3713 of file ugbc.h.

◆ CRITICAL_ARRAY_MULTIDIMENSIONAL

#define CRITICAL_ARRAY_MULTIDIMENSIONAL ( n)
Value:
CRITICAL2("E174 - simple UBOUND/LBOUND cannot be used on multidimensional array", n );

Definition at line 3619 of file ugbc.h.

◆ CRITICAL_ARRAY_OUT_OF_BOUND

#define CRITICAL_ARRAY_OUT_OF_BOUND ( a)
Value:
CRITICAL2("E359 - array out of bound", a );

Definition at line 3810 of file ugbc.h.

◆ CRITICAL_ARRAY_SIZE_MISMATCH

#define CRITICAL_ARRAY_SIZE_MISMATCH ( v,
d1,
d2 )
Value:
CRITICAL4si("E035 - number of indexes different from array dimensions", v, d1, d2 );
#define CRITICAL4si(s, v, d1, d2)
Definition ugbc.h:3435

Definition at line 3479 of file ugbc.h.

◆ CRITICAL_ASC_UNSUPPORTED

#define CRITICAL_ASC_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E029 - ASC unsupported for variable of given datatype", v, t );

Definition at line 3473 of file ugbc.h.

◆ CRITICAL_AT_UNSUPPORTED

#define CRITICAL_AT_UNSUPPORTED ( v1,
v2 )
Value:
CRITICAL3("E298 - cannot AT variables of not string type", v1, v2 );

Definition at line 3748 of file ugbc.h.

◆ CRITICAL_AUDIO_TARGET_UNAVAILABLE

#define CRITICAL_AUDIO_TARGET_UNAVAILABLE ( )
Value:
CRITICAL("E284 - AUDIO SOURCE unavailable for this target" );
#define CRITICAL(s)
Definition ugbc.h:3399

Definition at line 3730 of file ugbc.h.

◆ CRITICAL_BEGIN_GAMELOOP_WITHOUT_END_GAMELOOP

#define CRITICAL_BEGIN_GAMELOOP_WITHOUT_END_GAMELOOP ( )
Value:
CRITICAL("E226 - BEGIN GAMELOOP without END GAMELOOP" );

Definition at line 3672 of file ugbc.h.

◆ CRITICAL_BELL_NOT_ASYNC

#define CRITICAL_BELL_NOT_ASYNC ( )
Value:
CRITICAL("E283 - cannot BELL in asyncronous mode on this target" );

Definition at line 3729 of file ugbc.h.

◆ CRITICAL_BIN_UNSUPPORTED

#define CRITICAL_BIN_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E065 - BIN unsupported for variable of given datatype", v, t );

Definition at line 3508 of file ugbc.h.

◆ CRITICAL_BINARY_FILE_TOO_BIG_FOR_ROM

#define CRITICAL_BINARY_FILE_TOO_BIG_FOR_ROM ( s)
Value:
CRITICALB2i("B003 - binary file too big for ROM image", s );
#define CRITICALB2i(s, v)
Definition ugbc.h:3863

Definition at line 3870 of file ugbc.h.

◆ CRITICAL_BIT_UNSUPPORTED

#define CRITICAL_BIT_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E045 - BIT unsupported for variable of given datatype", v, t );

Definition at line 3489 of file ugbc.h.

◆ CRITICAL_BLIT_ALLOC_MEMORY_EXHAUSTED

#define CRITICAL_BLIT_ALLOC_MEMORY_EXHAUSTED ( )
Value:
CRITICAL("E166 - CPU memory exhausted in BLIT definition" );

Definition at line 3611 of file ugbc.h.

◆ CRITICAL_BLIT_ALLOC_REGISTER_EXHAUSTED

#define CRITICAL_BLIT_ALLOC_REGISTER_EXHAUSTED ( )
Value:
CRITICAL("E165 - CPU registers exhausted in BLIT definition" );

Definition at line 3610 of file ugbc.h.

◆ CRITICAL_BLIT_ALREADY_DEFINED

#define CRITICAL_BLIT_ALREADY_DEFINED ( n)
Value:
CRITICAL2("E170 - BLIT with same name already defined", n );

Definition at line 3615 of file ugbc.h.

◆ CRITICAL_BLIT_CANNOT_BLIT

#define CRITICAL_BLIT_CANNOT_BLIT ( n)
Value:
CRITICAL2("E171 - BLIT IMAGE with something that is not a blit", n );

Definition at line 3616 of file ugbc.h.

◆ CRITICAL_BLIT_CANNOT_MIX_IMAGE_TYPES

#define CRITICAL_BLIT_CANNOT_MIX_IMAGE_TYPES ( n)
Value:
CRITICAL2("E169 - cannot mix image types with BLIT IMAGE", n );

Definition at line 3614 of file ugbc.h.

◆ CRITICAL_BLIT_IMAGE_UNSUPPORTED

#define CRITICAL_BLIT_IMAGE_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E164 - BLIT IMAGE unsupported for given datatype", v, t );

Definition at line 3609 of file ugbc.h.

◆ CRITICAL_BLIT_INVALID_FREE_REGISTER

#define CRITICAL_BLIT_INVALID_FREE_REGISTER ( s,
r )
Value:
CRITICAL3i("E167 - invalid free CPU register free in BLIT definition", s, r );
#define CRITICAL3i(s, v1, v2)
Definition ugbc.h:3423

Definition at line 3612 of file ugbc.h.

◆ CRITICAL_BLIT_TOO_MUCH_SOURCES

#define CRITICAL_BLIT_TOO_MUCH_SOURCES ( )
Value:
CRITICAL("E168 - too much sources on BLIT IMAGE for this target" );

Definition at line 3613 of file ugbc.h.

◆ CRITICAL_BOOM_NOT_ASYNC

#define CRITICAL_BOOM_NOT_ASYNC ( )
Value:
CRITICAL("E281 - cannot BOOM in asyncronous mode on this target" );

Definition at line 3727 of file ugbc.h.

◆ CRITICAL_BUFFER_SIZE_MISMATCH

#define CRITICAL_BUFFER_SIZE_MISMATCH ( v1,
v2 )
Value:
CRITICAL3("E008 - Buffer sizes mismatch -- cannot be copied", v1, v2 );

Definition at line 3452 of file ugbc.h.

◆ CRITICAL_BUFFER_SIZE_MISMATCH_ARRAY_SIZE

#define CRITICAL_BUFFER_SIZE_MISMATCH_ARRAY_SIZE ( v,
d1,
d2 )
Value:
CRITICAL4si("E094 - size of buffer mismatch the size of array", v, d1, d2 );

Definition at line 3538 of file ugbc.h.

◆ CRITICAL_BUILD_CANNOT_READ_EXECUTABLE_FOR_DSK

#define CRITICAL_BUILD_CANNOT_READ_EXECUTABLE_FOR_DSK ( d,
f )
Value:
CRITICALB3("B001 - cannot read executable for disk image", d, f );
#define CRITICALB3(s, v1, v2)
Definition ugbc.h:3864

Definition at line 3868 of file ugbc.h.

◆ CRITICAL_BUILD_INVALID_FILENAME_K7

#define CRITICAL_BUILD_INVALID_FILENAME_K7 ( f)
Value:
CRITICALB2("B002 - invalid filename for K7 format", f );
#define CRITICALB2(s, v)
Definition ugbc.h:3862

Definition at line 3869 of file ugbc.h.

◆ CRITICAL_CANNOT_ACCESS_MULTITHREAD_ARRAY_OUTSIDE_PROCEDURE

#define CRITICAL_CANNOT_ACCESS_MULTITHREAD_ARRAY_OUTSIDE_PROCEDURE ( n)
Value:
CRITICAL2("E388 - cannot use multithread array access operator outside PARALLEL PROCEDURE", n );

Definition at line 3839 of file ugbc.h.

◆ CRITICAL_CANNOT_ALLOCATE_MORE_TILE

#define CRITICAL_CANNOT_ALLOCATE_MORE_TILE ( )
Value:
CRITICAL("E112 - cannot allocate one more tile on tileset" );

Definition at line 3556 of file ugbc.h.

◆ CRITICAL_CANNOT_ASSIGN_TO_ARRAY

#define CRITICAL_CANNOT_ASSIGN_TO_ARRAY ( v,
t )
Value:
CRITICAL3("E095 - cannot assign this type to array", v, t );

Definition at line 3539 of file ugbc.h.

◆ CRITICAL_CANNOT_CALCULATE_SPRITE_HEIGHT

#define CRITICAL_CANNOT_CALCULATE_SPRITE_HEIGHT ( )
Value:
CRITICAL("E111 - cannot calculate SPRITE HEIGHT statically" );

Definition at line 3555 of file ugbc.h.

◆ CRITICAL_CANNOT_CALCULATE_SPRITE_WIDTH

#define CRITICAL_CANNOT_CALCULATE_SPRITE_WIDTH ( )
Value:
CRITICAL("E110 - cannot calculate SPRITE WIDTH statically" );

Definition at line 3554 of file ugbc.h.

◆ CRITICAL_CANNOT_CAST

#define CRITICAL_CANNOT_CAST ( t1,
t2 )
Value:
CRITICAL3("E004 - Cannot cast types", t1, t2 );

Definition at line 3448 of file ugbc.h.

◆ CRITICAL_CANNOT_CAST_BUFFER_STRING_SIZE

#define CRITICAL_CANNOT_CAST_BUFFER_STRING_SIZE ( a,
b )
Value:
CRITICAL3("E055 - Cannot cast BUFFER to STRING: buffer too long (>255 bytes)", a, b );

Definition at line 3499 of file ugbc.h.

◆ CRITICAL_CANNOT_CAST_FLOAT_32BIT_UNSIGNED

#define CRITICAL_CANNOT_CAST_FLOAT_32BIT_UNSIGNED ( v)
Value:
CRITICAL2("E280 - cannot convert UNSIGNED DWORD to FLOAT", v );

Definition at line 3726 of file ugbc.h.

◆ CRITICAL_CANNOT_CAST_FLOAT_PRECISION

#define CRITICAL_CANNOT_CAST_FLOAT_PRECISION ( v1,
v2 )
Value:
CRITICAL3("E0176 - Cannot cast types since float precision mismatch", v1, v2 );

Definition at line 3621 of file ugbc.h.

◆ CRITICAL_CANNOT_CAST_TILEMAP_SIZE

#define CRITICAL_CANNOT_CAST_TILEMAP_SIZE ( v)
Value:
CRITICAL2("E198 - cannot cast TILEMAP since sizes are different", v );

Definition at line 3643 of file ugbc.h.

◆ CRITICAL_CANNOT_COMPARE

#define CRITICAL_CANNOT_COMPARE ( t1,
t2 )
Value:
CRITICAL3("E015 - Cannot compare types", t1, t2 );

Definition at line 3459 of file ugbc.h.

◆ CRITICAL_CANNOT_COMPARE_CONST

#define CRITICAL_CANNOT_COMPARE_CONST ( t)
Value:
CRITICAL2("E236 - Cannot compare type with a constant", t );

Definition at line 3682 of file ugbc.h.

◆ CRITICAL_CANNOT_COMPARE_SID_FILE

#define CRITICAL_CANNOT_COMPARE_SID_FILE ( f)
Value:
CRITICAL2("E352 - music variables referring to sid files cannot be compared", f );

Definition at line 3803 of file ugbc.h.

◆ CRITICAL_CANNOT_COMPARE_WITH_CASE

#define CRITICAL_CANNOT_COMPARE_WITH_CASE ( d)
Value:
CRITICAL2("E101 - cannot compare with case", d);

Definition at line 3545 of file ugbc.h.

◆ CRITICAL_CANNOT_COPY_SID_FILE

#define CRITICAL_CANNOT_COPY_SID_FILE ( f)
Value:
CRITICAL2("E351 - music variables referring to sid files cannot be copied", f );

Definition at line 3802 of file ugbc.h.

◆ CRITICAL_CANNOT_COPY_TO_BANKED

#define CRITICAL_CANNOT_COPY_TO_BANKED ( v)
Value:
CRITICAL2("E265 - cannot copy something on BANKed variables", v );

Definition at line 3711 of file ugbc.h.

◆ CRITICAL_CANNOT_DECRYPT_TO_DATATYPE

#define CRITICAL_CANNOT_DECRYPT_TO_DATATYPE ( s)
Value:
CRITICAL2("E406 - cannot DECRYPT on this kind of variable", s );

Definition at line 3857 of file ugbc.h.

◆ CRITICAL_cANNOT_DEFINE_ANIMATION_INSIDE_A_PROCEDURE

#define CRITICAL_cANNOT_DEFINE_ANIMATION_INSIDE_A_PROCEDURE ( n)
Value:
CRITICAL2("E318 - cannot define an ANIMATION inside a PROCEDURE", n );

Definition at line 3769 of file ugbc.h.

◆ CRITICAL_cANNOT_DEFINE_ANIMATION_WITHOUT_ATLAS

#define CRITICAL_cANNOT_DEFINE_ANIMATION_WITHOUT_ATLAS ( n)
Value:
CRITICAL2("E319 - cannot define an ANIMATION with something that is not an ATLAS", n );

Definition at line 3770 of file ugbc.h.

◆ CRITICAL_CANNOT_DEFINE_MOVEMENT_INSIDE_A_PROCEDURE

#define CRITICAL_CANNOT_DEFINE_MOVEMENT_INSIDE_A_PROCEDURE ( n)
Value:
CRITICAL2("E327 - cannot use MOVEMENT inside a PROCEDURE", n );

Definition at line 3778 of file ugbc.h.

◆ CRITICAL_CANNOT_DEFINE_MOVEMENT_WITHOUT_ATLAS

#define CRITICAL_CANNOT_DEFINE_MOVEMENT_WITHOUT_ATLAS ( n)
Value:
CRITICAL2("E328 - cannot use MOVEMENT without an ATLAS", n );

Definition at line 3779 of file ugbc.h.

◆ CRITICAL_CANNOT_DEFINE_MOVEMENT_WITHOUT_STEPS

#define CRITICAL_CANNOT_DEFINE_MOVEMENT_WITHOUT_STEPS ( s)
Value:
CRITICAL2("E344 - cannot use relative MOVEMENT without using a steps count", s );

Definition at line 3795 of file ugbc.h.

◆ CRITICAL_CANNOT_DEFINE_OUTSIDE_TYPE

#define CRITICAL_CANNOT_DEFINE_OUTSIDE_TYPE ( n)
Value:
CRITICAL2("E378 - cannot define outside a TYPE", n );

Definition at line 3829 of file ugbc.h.

◆ CRITICAL_cANNOT_DEFINE_REVERSE_ANIMATION_WITH_EASING

#define CRITICAL_cANNOT_DEFINE_REVERSE_ANIMATION_WITH_EASING ( n)
Value:
CRITICAL2("E320 - cannot define a REVERSE ANIMATION with easing in/out", n );

Definition at line 3771 of file ugbc.h.

◆ CRITICAL_CANNOT_DGR_ON_EMBEDDED_FONT

#define CRITICAL_CANNOT_DGR_ON_EMBEDDED_FONT ( )
Value:
CRITICAL("E403 - cannot use DGR without custom font" );

Definition at line 3854 of file ugbc.h.

◆ CRITICAL_CANNOT_DOUBLE_BUFFER_AFTER_LOADING_RESOURCES

#define CRITICAL_CANNOT_DOUBLE_BUFFER_AFTER_LOADING_RESOURCES ( )
Value:
CRITICAL("E405 - cannot enable DOUBLE BUFFER after loading resources" );

Definition at line 3856 of file ugbc.h.

◆ CRITICAL_CANNOT_DUPLICATE_NOT_MPSRITE

#define CRITICAL_CANNOT_DUPLICATE_NOT_MPSRITE ( n)
Value:
CRITICAL2("E334 - cannot init from something that is not MSPRITE", n );

Definition at line 3785 of file ugbc.h.

◆ CRITICAL_CANNOT_EMIT_FLOAT_CONST

#define CRITICAL_CANNOT_EMIT_FLOAT_CONST ( v)
Value:
CRITICAL2("E178 - cannot emit floating point constants", v );

Definition at line 3623 of file ugbc.h.

◆ CRITICAL_CANNOT_FILL_RANDOM

#define CRITICAL_CANNOT_FILL_RANDOM ( v)
Value:
CRITICAL2("E350 - cannot use FILL RANDOM on this datatype", v );

Definition at line 3801 of file ugbc.h.

◆ CRITICAL_CANNOT_FLIP

#define CRITICAL_CANNOT_FLIP ( s)
Value:
CRITICAL2("E402 - cannot FLIP this variable", s );

Definition at line 3853 of file ugbc.h.

◆ CRITICAL_CANNOT_FLIP_BANKED_IMAGE

#define CRITICAL_CANNOT_FLIP_BANKED_IMAGE ( v)
Value:
CRITICAL2("E278 - cannot FLIP BANKED IMAGE", v );

Definition at line 3724 of file ugbc.h.

◆ CRITICAL_CANNOT_FLIP_COMPRESSED_IMAGE

#define CRITICAL_CANNOT_FLIP_COMPRESSED_IMAGE ( v)
Value:
CRITICAL2("E279 - cannot FLIP COMPRESSED IMAGE(S)", v );

Definition at line 3725 of file ugbc.h.

◆ CRITICAL_CANNOT_GENERATE_RANDOM

#define CRITICAL_CANNOT_GENERATE_RANDOM ( )
Value:
CRITICAL("E227 - cannot generate random number with this parameter" );

Definition at line 3673 of file ugbc.h.

◆ CRITICAL_CANNOT_KILL_NOT_ARRAY_THREADS

#define CRITICAL_CANNOT_KILL_NOT_ARRAY_THREADS ( v)
Value:
CRITICAL2("E262 - cannot KILL elements of something that is not an array of threads", p, v );

Definition at line 3708 of file ugbc.h.

◆ CRITICAL_CANNOT_KILL_NOT_THREADID

#define CRITICAL_CANNOT_KILL_NOT_THREADID ( v)
Value:
CRITICAL2("E131 - cannot KILL something that is not a thread id", v );

Definition at line 3575 of file ugbc.h.

◆ CRITICAL_CANNOT_LOAD_MIDI_FILE

#define CRITICAL_CANNOT_LOAD_MIDI_FILE ( f)
Value:
CRITICAL2("E355 - cannot load midi file", f );

Definition at line 3806 of file ugbc.h.

◆ CRITICAL_CANNOT_LOAD_MUSIC

#define CRITICAL_CANNOT_LOAD_MUSIC ( f)
Value:
CRITICAL2("E354 - cannot load MUSIC, unknown format", f );

Definition at line 3805 of file ugbc.h.

◆ CRITICAL_CANNOT_LOAD_SID_FILE_NO_SPACE

#define CRITICAL_CANNOT_LOAD_SID_FILE_NO_SPACE ( )
Value:
CRITICAL("E353 - not enough space to load sid file, consider relocation" );

Definition at line 3804 of file ugbc.h.

◆ CRITICAL_CANNOT_MIX_SPRITES_MSPRITES

#define CRITICAL_CANNOT_MIX_SPRITES_MSPRITES ( )
Value:
CRITICAL("E290 - cannot mix (C)SPRITE with MSPRITE" );

Definition at line 3739 of file ugbc.h.

◆ CRITICAL_CANNOT_MMOVE_INVALID_SIZE

#define CRITICAL_CANNOT_MMOVE_INVALID_SIZE ( v)
Value:
CRITICAL2("E122 - invalid data type for SIZE on MMOVE", v );

Definition at line 3566 of file ugbc.h.

◆ CRITICAL_CANNOT_MMOVE_UNSUPPORTED

#define CRITICAL_CANNOT_MMOVE_UNSUPPORTED ( )
Value:
CRITICAL("E123 - MMOVE VIDEO to VIDEO unsupported" );

Definition at line 3567 of file ugbc.h.

◆ CRITICAL_CANNOT_MOVE_BIT_ON_BANKED_ARRAY

#define CRITICAL_CANNOT_MOVE_BIT_ON_BANKED_ARRAY ( v)
Value:
CRITICAL2("E273 - cannot move a bit into a BANKED array", v );

Definition at line 3719 of file ugbc.h.

◆ CRITICAL_CANNOT_MOVE_FROM_BIT_ON_BANKED_ARRAY

#define CRITICAL_CANNOT_MOVE_FROM_BIT_ON_BANKED_ARRAY ( v)
Value:
CRITICAL2("E275 - cannot move bit from a BANKED array", v );

Definition at line 3721 of file ugbc.h.

◆ CRITICAL_CANNOT_MOVE_PLACEHOLDERS_TO_IMAGE

#define CRITICAL_CANNOT_MOVE_PLACEHOLDERS_TO_IMAGE ( v)
Value:
CRITICAL2("E335 - cannot move PLACEHOLDER to IMAGE", v );

Definition at line 3786 of file ugbc.h.

◆ CRITICAL_CANNOT_MOVE_STRING_ON_BANKED_ARRAY

#define CRITICAL_CANNOT_MOVE_STRING_ON_BANKED_ARRAY ( v)
Value:
CRITICAL2("E274 - cannot move string into a BANKED array", v );

Definition at line 3720 of file ugbc.h.

◆ CRITICAL_CANNOT_MOVE_UNROLLED_TILE

#define CRITICAL_CANNOT_MOVE_UNROLLED_TILE ( t)
Value:
CRITICAL2("E119 - cannot move an unrolled tile", t );

Definition at line 3563 of file ugbc.h.

◆ CRITICAL_CANNOT_MUSIC

#define CRITICAL_CANNOT_MUSIC ( v)
Value:
CRITICAL2("E128 - variable is not MUSIC, so cannot music it", v );

Definition at line 3572 of file ugbc.h.

◆ CRITICAL_CANNOT_MUSIC_ON_AUDIO_DEVICE

#define CRITICAL_CANNOT_MUSIC_ON_AUDIO_DEVICE ( v)
Value:
CRITICAL2("E285 - cannot MUSIC on the given AUDIO TARGET", v );

Definition at line 3731 of file ugbc.h.

◆ CRITICAL_CANNOT_OPEN_EXECUTABLE_FILE

#define CRITICAL_CANNOT_OPEN_EXECUTABLE_FILE ( c)
Value:
CRITICAL2("E077 - cannot open executable file for post elaboration", c );

Definition at line 3520 of file ugbc.h.

◆ CRITICAL_CANNOT_OPEN_FILE

#define CRITICAL_CANNOT_OPEN_FILE ( f,
n )
Value:
CRITICAL3("E305 - cannot open file", f, n );

Definition at line 3756 of file ugbc.h.

◆ CRITICAL_CANNOT_PUT_IMAGE_WITHOUT_STRIP

#define CRITICAL_CANNOT_PUT_IMAGE_WITHOUT_STRIP ( s)
Value:
CRITICAL2("E404 - cannot use STRIP with PUT IMAGE using ATLAS without STRIP", s );

Definition at line 3855 of file ugbc.h.

◆ CRITICAL_CANNOT_PUT_TILEMAP_FOR_NON_TILEMAP

#define CRITICAL_CANNOT_PUT_TILEMAP_FOR_NON_TILEMAP ( v)
Value:
CRITICAL2("E197 - cannot PUT TILEMAP without a tile map", v );

Definition at line 3642 of file ugbc.h.

◆ CRITICAL_CANNOT_PUT_TILEMAP_FOR_TILEMAP_ON_STORAGE

#define CRITICAL_CANNOT_PUT_TILEMAP_FOR_TILEMAP_ON_STORAGE ( n)
Value:
CRITICAL2("E387 - cannot use (yet) PUT TILEMAP on tilemap on storage", n );

Definition at line 3838 of file ugbc.h.

◆ CRITICAL_CANNOT_READ_FILE

#define CRITICAL_CANNOT_READ_FILE ( f,
n )
Value:
CRITICAL3("E306 - cannot read file", f, n );

Definition at line 3757 of file ugbc.h.

◆ CRITICAL_CANNOT_REMOVE_FILE

#define CRITICAL_CANNOT_REMOVE_FILE ( f,
n )
Value:
CRITICAL3("E138 - cannot remove file", f, n );

Definition at line 3582 of file ugbc.h.

◆ CRITICAL_CANNOT_RESPAWN_NOT_THREADID

#define CRITICAL_CANNOT_RESPAWN_NOT_THREADID ( v)
Value:
CRITICAL2("E121 - cannot respawn something that is not a thread id", v );

Definition at line 3565 of file ugbc.h.

◆ CRITICAL_CANNOT_STORE_BIT_ON_BANKED_ARRAY

#define CRITICAL_CANNOT_STORE_BIT_ON_BANKED_ARRAY ( v)
Value:
CRITICAL2("E272 - cannot store a bit into a BANKED array", v );

Definition at line 3718 of file ugbc.h.

◆ CRITICAL_CANNOT_STORE_FILE_ON_VARIABLE_OF_DIFFERENT_TYPE

#define CRITICAL_CANNOT_STORE_FILE_ON_VARIABLE_OF_DIFFERENT_TYPE ( v)
Value:
CRITICAL("E248 - cannot store file on different type variable" );

Definition at line 3694 of file ugbc.h.

◆ CRITICAL_CANNOT_SWAP_DIFFERENT_DATATYPES

#define CRITICAL_CANNOT_SWAP_DIFFERENT_DATATYPES ( v1,
v2 )
Value:
CRITICAL3("E298 - cannot SWAP variables of different type", v1, v2 );

Definition at line 3747 of file ugbc.h.

◆ CRITICAL_CANNOT_USE_ABSOLUTE_MOVE_WITHOUT_ABSOLUTE_MOVEMENT

#define CRITICAL_CANNOT_USE_ABSOLUTE_MOVE_WITHOUT_ABSOLUTE_MOVEMENT ( n)
Value:
CRITICAL2("E330 - cannot use absolute MOVE without an absolute MOVEMENT", n );

Definition at line 3781 of file ugbc.h.

◆ CRITICAL_CANNOT_USE_ANIMATE_WITHOUT_ANIMATION

#define CRITICAL_CANNOT_USE_ANIMATE_WITHOUT_ANIMATION ( n)
Value:
CRITICAL2("E321 - cannot use ANIMATE without ANIMATION", n );

Definition at line 3772 of file ugbc.h.

◆ CRITICAL_CANNOT_USE_ANIMATING_WITHOUT_ANIMATION

#define CRITICAL_CANNOT_USE_ANIMATING_WITHOUT_ANIMATION ( n)
Value:
CRITICAL2("E326 - cannot use ANIMATING without ANIMATION", n );

Definition at line 3777 of file ugbc.h.

◆ CRITICAL_CANNOT_USE_DATATYPE_IN_TYPE

#define CRITICAL_CANNOT_USE_DATATYPE_IN_TYPE ( n)
Value:
CRITICAL2("E379 - cannot use this type inside a TYPE", n );

Definition at line 3830 of file ugbc.h.

◆ CRITICAL_CANNOT_USE_DRAW_WITHOUT_STRING

#define CRITICAL_CANNOT_USE_DRAW_WITHOUT_STRING ( t)
Value:
CRITICAL2("E237 - DRAW need a string with drawing commands", t );

Definition at line 3683 of file ugbc.h.

◆ CRITICAL_CANNOT_USE_FIELD_ON_NONTYPE

#define CRITICAL_CANNOT_USE_FIELD_ON_NONTYPE ( n)
Value:
CRITICAL2("E382 - cannot access to fields of a non TYPE variable", n );

Definition at line 3833 of file ugbc.h.

◆ CRITICAL_CANNOT_USE_FREEZE_WITHOUT_ANIMATION

#define CRITICAL_CANNOT_USE_FREEZE_WITHOUT_ANIMATION ( n)
Value:
CRITICAL2("E322 - cannot use FREEZE without ANIMATION", n );

Definition at line 3773 of file ugbc.h.

◆ CRITICAL_CANNOT_USE_MOVE_SYNC_WITHOUT_ANIMATIOn

#define CRITICAL_CANNOT_USE_MOVE_SYNC_WITHOUT_ANIMATIOn ( n,
m )
Value:
CRITICAL3("E333 - using a not existing animation on MOVE", n, m );

Definition at line 3784 of file ugbc.h.

◆ CRITICAL_CANNOT_USE_MOVE_WITHOUT_MOVEMENT

#define CRITICAL_CANNOT_USE_MOVE_WITHOUT_MOVEMENT ( n)
Value:
CRITICAL2("E329 - cannot use MOVE without a MOVEMENT", n );

Definition at line 3780 of file ugbc.h.

◆ CRITICAL_CANNOT_USE_MOVING_WITHOUT_MOVEMENT

#define CRITICAL_CANNOT_USE_MOVING_WITHOUT_MOVEMENT ( n)
Value:
CRITICAL2("E332 - cannot use MOVING without a MOVEMENT", n );

Definition at line 3783 of file ugbc.h.

◆ CRITICAL_CANNOT_USE_MULTITASKED_ARRAY

#define CRITICAL_CANNOT_USE_MULTITASKED_ARRAY ( v)
Value:
CRITICAL2("E269 - cannot use [ ] operator outside a PARALLEL PROCEDURE", v );

Definition at line 3715 of file ugbc.h.

◆ CRITICAL_CANNOT_USE_NEXT_ANIMATION_WITHOUT_ANIMATION

#define CRITICAL_CANNOT_USE_NEXT_ANIMATION_WITHOUT_ANIMATION ( n)
Value:
CRITICAL2("E325 - cannot use NEXT ANIMATION without ANIMATION", n );

Definition at line 3776 of file ugbc.h.

◆ CRITICAL_CANNOT_USE_PLAY_WITHOUT_STRING

#define CRITICAL_CANNOT_USE_PLAY_WITHOUT_STRING ( t)
Value:
CRITICAL2("E239 - PLAY need a string with playing commands", t );

Definition at line 3685 of file ugbc.h.

◆ CRITICAL_CANNOT_USE_STOP_WITHOUT_ANIMATION

#define CRITICAL_CANNOT_USE_STOP_WITHOUT_ANIMATION ( n)
Value:
CRITICAL2("E324 - cannot use STOP without ANIMATION", n );

Definition at line 3775 of file ugbc.h.

◆ CRITICAL_CANNOT_USE_STOP_WITHOUT_MOVEMENT

#define CRITICAL_CANNOT_USE_STOP_WITHOUT_MOVEMENT ( n)
Value:
CRITICAL2("E331 - cannot use STOP MOVEMENT without a MOVEMENT", n );

Definition at line 3782 of file ugbc.h.

◆ CRITICAL_CANNOT_USE_STRINGS_LONGER_256_CHARS

#define CRITICAL_CANNOT_USE_STRINGS_LONGER_256_CHARS ( )
Value:
CRITICAL("E284 - string too long (>256 characters)" );

Definition at line 3733 of file ugbc.h.

◆ CRITICAL_CANNOT_USE_UNFREEZE_WITHOUT_ANIMATION

#define CRITICAL_CANNOT_USE_UNFREEZE_WITHOUT_ANIMATION ( n)
Value:
CRITICAL2("E323 - cannot use UNFREEZE without ANIMATION", n );

Definition at line 3774 of file ugbc.h.

◆ CRITICAL_CANNOT_WRITE_FILE

#define CRITICAL_CANNOT_WRITE_FILE ( f,
n )
Value:
CRITICAL3("E307 - cannot write file", f, n );

Definition at line 3758 of file ugbc.h.

◆ CRITICAL_CASE_ELSE_ALREADY_EMITTED

#define CRITICAL_CASE_ELSE_ALREADY_EMITTED ( )
Value:
CRITICAL("E291 - CASE ELSE already used" );

Definition at line 3740 of file ugbc.h.

◆ CRITICAL_CASE_ELSE_WITHOUT_SELECT_CASE

#define CRITICAL_CASE_ELSE_WITHOUT_SELECT_CASE ( )
Value:
CRITICAL("E153 - CASE ELSE without SELECT CASE" );

Definition at line 3597 of file ugbc.h.

◆ CRITICAL_CASE_WITHOUT_SELECT_CASE

#define CRITICAL_CASE_WITHOUT_SELECT_CASE ( )
Value:
CRITICAL("E152 - CASE without SELECT CASE" );

Definition at line 3596 of file ugbc.h.

◆ CRITICAL_CHR_UNSUPPORTED

#define CRITICAL_CHR_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E028 - CHR unsupported for variable of given datatype", v, t );

Definition at line 3472 of file ugbc.h.

◆ CRITICAL_COLOR_WITH_NOT_CONST_NOT_ALLOWED

#define CRITICAL_COLOR_WITH_NOT_CONST_NOT_ALLOWED ( t)
Value:
CRITICAL2("E395 - cannot COLOR using not const in a COPPER list", t );

Definition at line 3846 of file ugbc.h.

◆ CRITICAL_COMPLEMENT_UNSUPPORTED

#define CRITICAL_COMPLEMENT_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E012 - Complement unsupported for variable of given datatype", v, t );

Definition at line 3456 of file ugbc.h.

◆ CRITICAL_COMPRESSION_FAILED

#define CRITICAL_COMPRESSION_FAILED ( v)
Value:
CRITICAL2("E317 - the compression algorithm failed in compressing", v );

Definition at line 3768 of file ugbc.h.

◆ CRITICAL_CONSTANT_ALREADY_DEFINED_AS_VARIABLE

#define CRITICAL_CONSTANT_ALREADY_DEFINED_AS_VARIABLE ( f)
Value:
CRITICAL2("E139 - cannot define a variable with the same name of a constant", f );

Definition at line 3583 of file ugbc.h.

◆ CRITICAL_CONSTANT_REDEFINED_DIFFERENT_TYPE

#define CRITICAL_CONSTANT_REDEFINED_DIFFERENT_TYPE ( f)
Value:
CRITICAL2("E156 - constant redefined with a different type", f );

Definition at line 3600 of file ugbc.h.

◆ CRITICAL_CONSTANT_REDEFINED_DIFFERENT_VALUE

#define CRITICAL_CONSTANT_REDEFINED_DIFFERENT_VALUE ( f)
Value:
CRITICAL2("E157 - constant redefined with a different value", f );

Definition at line 3601 of file ugbc.h.

◆ CRITICAL_COPPER_LIST_ALREADY_DEFINED

#define CRITICAL_COPPER_LIST_ALREADY_DEFINED ( )
Value:
CRITICAL("E391 - COPPER list already defined" );

Definition at line 3842 of file ugbc.h.

◆ CRITICAL_COPPER_LIST_NOT_OPENED

#define CRITICAL_COPPER_LIST_NOT_OPENED ( )
Value:
CRITICAL("E390 - COPPER list is not opened" );

Definition at line 3841 of file ugbc.h.

◆ CRITICAL_COPPER_LIST_UNKNOWN

#define CRITICAL_COPPER_LIST_UNKNOWN ( n)
Value:
CRITICAL2("E397 - unknown COPPER list using COPPER USE", n );

Definition at line 3848 of file ugbc.h.

◆ CRITICAL_DATA_LOAD_TEXT_NOT_FOUND

#define CRITICAL_DATA_LOAD_TEXT_NOT_FOUND ( v)
Value:
CRITICAL2("E235 - cannot find file to load DATA in", v );

Definition at line 3681 of file ugbc.h.

◆ CRITICAL_DATA_NOT_ENOUGH_FOR_TYPE

#define CRITICAL_DATA_NOT_ENOUGH_FOR_TYPE ( n)
Value:
CRITICAL2("E384 - not enough value on DATA for given TYPE ", n );

Definition at line 3835 of file ugbc.h.

◆ CRITICAL_DATATYPE_MISMATCH

#define CRITICAL_DATATYPE_MISMATCH ( v1,
v2 )
Value:
CRITICAL3("E009 - Datatype mismatch", v1, v2 );

Definition at line 3453 of file ugbc.h.

◆ CRITICAL_DATATYPE_UNSUPPORTED

#define CRITICAL_DATATYPE_UNSUPPORTED ( k,
v )
Value:
CRITICAL3("E003 - Datatype not supported for keyword", k, v );

Definition at line 3447 of file ugbc.h.

◆ CRITICAL_DEBUG_UNSUPPORTED

#define CRITICAL_DEBUG_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E034 - DEBUG unsupported for variable of given datatype", v, t );

Definition at line 3478 of file ugbc.h.

◆ CRITICAL_DECLARE_PROC_NESTED_UNSUPPORTED

#define CRITICAL_DECLARE_PROC_NESTED_UNSUPPORTED ( v)
Value:
CRITICAL2("E182 - cannot nest DECLARE PROC/FUNCTION inside a PROC", v );

Definition at line 3627 of file ugbc.h.

◆ CRITICAL_DIV2_UNSUPPORTED

#define CRITICAL_DIV2_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E017 - Division by 2 unsupported for variable of given datatype", v, t );

Definition at line 3461 of file ugbc.h.

◆ CRITICAL_DIV_UNSUPPORTED

#define CRITICAL_DIV_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E014 - Division unsupported for variable of given datatype", v, t );

Definition at line 3458 of file ugbc.h.

◆ CRITICAL_DIVISION_BY_ZERO

#define CRITICAL_DIVISION_BY_ZERO ( )
Value:
CRITICAL("E408 - division by zero" );

Definition at line 3859 of file ugbc.h.

◆ CRITICAL_DLOAD_MISSING_ADDRESS

#define CRITICAL_DLOAD_MISSING_ADDRESS ( v)
Value:
CRITICAL2("E245 - destination address for DLOAD is missing", v );

Definition at line 3691 of file ugbc.h.

◆ CRITICAL_DLOAD_MISSING_FILE

#define CRITICAL_DLOAD_MISSING_FILE ( f)
Value:
CRITICAL2("E134 - DLOAD missing file", f );

Definition at line 3578 of file ugbc.h.

◆ CRITICAL_DLOAD_MISSING_SIZE

#define CRITICAL_DLOAD_MISSING_SIZE ( v)
Value:
CRITICAL2("E246 - size for DLOAD is missing", v );

Definition at line 3692 of file ugbc.h.

◆ CRITICAL_DO_WITHOUT_LOOP

#define CRITICAL_DO_WITHOUT_LOOP ( )
Value:
CRITICAL("E222 - DO without LOOP" );

Definition at line 3668 of file ugbc.h.

◆ CRITICAL_DSAVE_MISSING_ADDRESS

#define CRITICAL_DSAVE_MISSING_ADDRESS ( v)
Value:
CRITICAL2("E250 - source address for DSAVE is missing", v );

Definition at line 3696 of file ugbc.h.

◆ CRITICAL_DSAVE_MISSING_SIZE

#define CRITICAL_DSAVE_MISSING_SIZE ( v)
Value:
CRITICAL2("E251 - size for DSAVE is missing", v );

Definition at line 3697 of file ugbc.h.

◆ CRITICAL_ELSE_WITHOUT_IF

#define CRITICAL_ELSE_WITHOUT_IF ( )
Value:
CRITICAL("E151 - ELSE without IF" );

Definition at line 3595 of file ugbc.h.

◆ CRITICAL_END_GAMELOOP_WITHOUT_GAMELOOP

#define CRITICAL_END_GAMELOOP_WITHOUT_GAMELOOP ( )
Value:
CRITICAL("E141 - END GAMELOOP without BEGIN GAMELOOP" );

Definition at line 3585 of file ugbc.h.

◆ CRITICAL_END_LOOP_WITHOUT_LOOP

#define CRITICAL_END_LOOP_WITHOUT_LOOP ( )
Value:
CRITICAL("E304 - END LOOP without LOOP" );

Definition at line 3754 of file ugbc.h.

◆ CRITICAL_ENDIF_WITHOUT_IF

#define CRITICAL_ENDIF_WITHOUT_IF ( )
Value:
CRITICAL("E149 - ENDIF without IF" );

Definition at line 3593 of file ugbc.h.

◆ CRITICAL_ENDSELECT_WITHOUT_SELECT

#define CRITICAL_ENDSELECT_WITHOUT_SELECT ( )
Value:
CRITICAL("E146 - ENDSELECT without SELECT" );

Definition at line 3590 of file ugbc.h.

◆ CRITICAL_EVERY_OFF_WITHOUT_EVERY

#define CRITICAL_EVERY_OFF_WITHOUT_EVERY ( )
Value:
CRITICAL("E142 - EVERY OFF without EVERY definition" );

Definition at line 3586 of file ugbc.h.

◆ CRITICAL_EXIT_WITHOUT_ENOUGH_LOOP

#define CRITICAL_EXIT_WITHOUT_ENOUGH_LOOP ( )
Value:
CRITICAL("E145 - EXIT without enough LOOPs" );

Definition at line 3589 of file ugbc.h.

◆ CRITICAL_EXIT_WITHOUT_LOOP

#define CRITICAL_EXIT_WITHOUT_LOOP ( )
Value:
CRITICAL("E144 - EXIT without LOOP" );

Definition at line 3588 of file ugbc.h.

◆ CRITICAL_EXPANSION_OUT_OF_MEMORY_LOADING

#define CRITICAL_EXPANSION_OUT_OF_MEMORY_LOADING ( v)
Value:
CRITICAL2("E124 - out of memory when loading BANKED resource", v );

Definition at line 3568 of file ugbc.h.

◆ CRITICAL_FILE_CSV_NOT_ENOUGH_DATA

#define CRITICAL_FILE_CSV_NOT_ENOUGH_DATA ( n)
Value:
CRITICAL2("E385 - not enough data in CSV to fillup the array ", n );

Definition at line 3836 of file ugbc.h.

◆ CRITICAL_FILE_NOT_FOUND

#define CRITICAL_FILE_NOT_FOUND ( n)
Value:
CRITICAL2("E374 - file not found", n );

Definition at line 3825 of file ugbc.h.

◆ CRITICAL_FILE_SIZE_ON_MISSING_FILE

#define CRITICAL_FILE_SIZE_ON_MISSING_FILE ( f)
Value:
CRITICAL2("E347 - FILE SIZE on missing file", f );

Definition at line 3798 of file ugbc.h.

◆ CRITICAL_FILENAME_INVALID_BACKSLASH

#define CRITICAL_FILENAME_INVALID_BACKSLASH ( v)
Value:
CRITICAL2("E130 - invalid filename, backslash character not allowed", v );

Definition at line 3574 of file ugbc.h.

◆ CRITICAL_FILENAME_INVALID_COLON

#define CRITICAL_FILENAME_INVALID_COLON ( v)
Value:
CRITICAL2("E129 - invalid filename, colon character not allowed", v );

Definition at line 3573 of file ugbc.h.

◆ CRITICAL_FLIP_IMAGE_UNSUPPORTED

#define CRITICAL_FLIP_IMAGE_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E277 - unsupported type for FLIP IMAGE", v, t );

Definition at line 3723 of file ugbc.h.

◆ CRITICAL_FOR_OUTSIDE_LIMITS

#define CRITICAL_FOR_OUTSIDE_LIMITS ( v,
a )
Value:
CRITICAL3i("E360 - FOR index out of data type size", v, a );

Definition at line 3811 of file ugbc.h.

◆ CRITICAL_FOR_WITHOUT_NEXT

#define CRITICAL_FOR_WITHOUT_NEXT ( )
Value:
CRITICAL("E225 - FOR without NEXT" );

Definition at line 3671 of file ugbc.h.

◆ CRITICAL_FUJINET_READ_UNSUPPORTED

#define CRITICAL_FUJINET_READ_UNSUPPORTED ( t)
Value:
CRITICAL2("E363 - FUJINET READ read unsupported for variable of given datatype", t );

Definition at line 3814 of file ugbc.h.

◆ CRITICAL_GET_IMAGE_UNSUPPORTED

#define CRITICAL_GET_IMAGE_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E097 - GET IMAGE unsupported for given datatype", v, t );

Definition at line 3541 of file ugbc.h.

◆ CRITICAL_GET_NEED_STRING

#define CRITICAL_GET_NEED_STRING ( v)
Value:
CRITICAL2i("E295 - GET needs variable of string type", v );
#define CRITICAL2i(s, v)
Definition ugbc.h:3411

Definition at line 3744 of file ugbc.h.

◆ CRITICAL_GLOBAL_ONLY_OUTSIDE_PROCEDURES

#define CRITICAL_GLOBAL_ONLY_OUTSIDE_PROCEDURES ( )
Value:
CRITICAL("E042 - GLOBAL can be used only outside a PROCEDURE");

Definition at line 3486 of file ugbc.h.

◆ CRITICAL_HEX2BIN_UNSUPPORTED_DATATYPE

#define CRITICAL_HEX2BIN_UNSUPPORTED_DATATYPE ( v,
s )
Value:
CRITICAL3("E407 - data type not supported for HEX2BIN", v, s );

Definition at line 3858 of file ugbc.h.

◆ CRITICAL_HEX_UNSUPPORTED

#define CRITICAL_HEX_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E104 - HEX unsupported for variable of given datatype", v, t );

Definition at line 3548 of file ugbc.h.

◆ CRITICAL_IF_WITHOUT_ENDIF

#define CRITICAL_IF_WITHOUT_ENDIF ( )
Value:
CRITICAL("E220 - IF without ENDIF" );

Definition at line 3666 of file ugbc.h.

◆ CRITICAL_IMAGE_CONVERTER_INVALID_FRAME_HEIGHT

#define CRITICAL_IMAGE_CONVERTER_INVALID_FRAME_HEIGHT ( h,
m )
Value:
CRITICAL3ii("E083 - invalid height for framed image, must be multiple of modulo pixels", h, m );
#define CRITICAL3ii(s, v1, v2)
Definition ugbc.h:3429

Definition at line 3527 of file ugbc.h.

◆ CRITICAL_IMAGE_CONVERTER_INVALID_FRAME_WIDTH

#define CRITICAL_IMAGE_CONVERTER_INVALID_FRAME_WIDTH ( w,
m )
Value:
CRITICAL3ii("E082 - invalid width for framed image, must be multiple of modulo pixels", w, m );

Definition at line 3526 of file ugbc.h.

◆ CRITICAL_IMAGE_CONVERTER_INVALID_HEIGHT

#define CRITICAL_IMAGE_CONVERTER_INVALID_HEIGHT ( h,
m )
Value:
CRITICAL3ii("E064 - invalid height for image, must be a multiple of modulo pixels", h, m );

Definition at line 3507 of file ugbc.h.

◆ CRITICAL_IMAGE_CONVERTER_INVALID_HEIGHT_EXACT

#define CRITICAL_IMAGE_CONVERTER_INVALID_HEIGHT_EXACT ( h)
Value:
CRITICAL2i("E358 - invalid height for image, must be of 8 pixels", h );

Definition at line 3809 of file ugbc.h.

◆ CRITICAL_IMAGE_CONVERTER_INVALID_OFFSET_X

#define CRITICAL_IMAGE_CONVERTER_INVALID_OFFSET_X ( x)
Value:
CRITICAL2i("E084 - invalid offset x for image, must be >= 0 and < width", x );

Definition at line 3528 of file ugbc.h.

◆ CRITICAL_IMAGE_CONVERTER_INVALID_OFFSET_Y

#define CRITICAL_IMAGE_CONVERTER_INVALID_OFFSET_Y ( y)
Value:
CRITICAL2i("E085 - invalid offset y for image, must be >= 0 and < height", y );

Definition at line 3529 of file ugbc.h.

◆ CRITICAL_IMAGE_CONVERTER_INVALID_WIDTH

#define CRITICAL_IMAGE_CONVERTER_INVALID_WIDTH ( w,
m )
Value:
CRITICAL3ii("E063 - invalid width for image, must be a multiple of modulo pixels", w, m );

Definition at line 3506 of file ugbc.h.

◆ CRITICAL_IMAGE_CONVERTER_INVALID_WIDTH_EXACT

#define CRITICAL_IMAGE_CONVERTER_INVALID_WIDTH_EXACT ( w)
Value:
CRITICAL2i("E357 - invalid width for image, must be of 8 pixels", w );

Definition at line 3808 of file ugbc.h.

◆ CRITICAL_IMAGE_CONVERTER_TOO_COLORS

#define CRITICAL_IMAGE_CONVERTER_TOO_COLORS ( f)
Value:
CRITICAL2i("E059 - IMAGE converter unsupported -- too much colors", f );

Definition at line 3502 of file ugbc.h.

◆ CRITICAL_IMAGE_EXTRACT_ON_NOT_IMAGES

#define CRITICAL_IMAGE_EXTRACT_ON_NOT_IMAGES ( v)
Value:
CRITICAL2("E213 - calling IMAGE on something that is not IMAGES / SEQUENCE", v );

Definition at line 3658 of file ugbc.h.

◆ CRITICAL_IMAGE_LOAD_MISSING_FILE

#define CRITICAL_IMAGE_LOAD_MISSING_FILE ( f)
Value:
CRITICAL2("E056 - LOAD IMAGE missing file", f );

Definition at line 3500 of file ugbc.h.

◆ CRITICAL_IMAGE_LOAD_UNKNOWN_FORMAT

#define CRITICAL_IMAGE_LOAD_UNKNOWN_FORMAT ( f)
Value:
CRITICAL2("E057 - LOAD IMAGE file format unknown", f );

Definition at line 3501 of file ugbc.h.

◆ CRITICAL_IMAGEREF_ON_NON_IMAGE

#define CRITICAL_IMAGEREF_ON_NON_IMAGE ( v)
Value:
CRITICAL2("E304 - IMAGEREF can be used only with IMAGE / ATLAS / SEQUENCE variables", v );

Definition at line 3755 of file ugbc.h.

◆ CRITICAL_IMAGES_LOAD_IMAGE_BUFFER_TOO_BIG

#define CRITICAL_IMAGES_LOAD_IMAGE_BUFFER_TOO_BIG ( )
Value:
CRITICAL("E260 - image too big from buffer" );

Definition at line 3706 of file ugbc.h.

◆ CRITICAL_IMAGES_LOAD_IMAGE_TOO_BIG

#define CRITICAL_IMAGES_LOAD_IMAGE_TOO_BIG ( v)
Value:
CRITICAL2("E217 - IMAGES cannot be loaded since is too big", v );

Definition at line 3662 of file ugbc.h.

◆ CRITICAL_IMAGES_LOAD_INVALID_AUTO_WITHOUT_GIF

#define CRITICAL_IMAGES_LOAD_INVALID_AUTO_WITHOUT_GIF ( v)
Value:
CRITICAL2("E216 - cannot use implicit FRAME SIZE without an animated GIF", v );

Definition at line 3661 of file ugbc.h.

◆ CRITICAL_IMAGES_LOAD_INVALID_FRAME_HEIGHT

#define CRITICAL_IMAGES_LOAD_INVALID_FRAME_HEIGHT ( h)
Value:
CRITICAL2i("E087 - invalid frame height, not multiple of height", h );

Definition at line 3531 of file ugbc.h.

◆ CRITICAL_IMAGES_LOAD_INVALID_FRAME_WIDTH

#define CRITICAL_IMAGES_LOAD_INVALID_FRAME_WIDTH ( w)
Value:
CRITICAL2i("E086 - invalid frame width, not multiple of width", w );

Definition at line 3530 of file ugbc.h.

◆ CRITICAL_IMAGES_LOAD_INVALID_OFFSET_WITH_GIF

#define CRITICAL_IMAGES_LOAD_INVALID_OFFSET_WITH_GIF ( f)
Value:
CRITICAL2("E289 - cannot use OFFSET with GIF images", f );

Definition at line 3738 of file ugbc.h.

◆ CRITICAL_IMAGES_LOAD_INVALID_ORIGIN_WITH_GIF

#define CRITICAL_IMAGES_LOAD_INVALID_ORIGIN_WITH_GIF ( f)
Value:
CRITICAL2("E288 - cannot use ORIGIN with GIF images", f );

Definition at line 3737 of file ugbc.h.

◆ CRITICAL_INCLUDE_FILE_NOT_FOUND

#define CRITICAL_INCLUDE_FILE_NOT_FOUND ( f)
Value:
CRITICAL2("E135 - INCLUDE missing file", f );

Definition at line 3579 of file ugbc.h.

◆ CRITICAL_INPUT_UNSUPPORTED

#define CRITICAL_INPUT_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E046 - INPUT unsupported for variable of given datatype", v, t );

Definition at line 3490 of file ugbc.h.

◆ CRITICAL_INSTR_UNSUPPORTED

#define CRITICAL_INSTR_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E022 - INSTR unsupported for variable of given datatype", v, t );

Definition at line 3466 of file ugbc.h.

◆ CRITICAL_INTERNAL_ERROR

#define CRITICAL_INTERNAL_ERROR ( v)
Value:
CRITICAL2("E000 - Internal error", v );

Definition at line 3443 of file ugbc.h.

◆ CRITICAL_INVALID_DIVISOR2

#define CRITICAL_INVALID_DIVISOR2 ( d)
Value:
CRITICAL2i("E098 - invalid divisor for DIVISION2, must be power of two", d );

Definition at line 3542 of file ugbc.h.

◆ CRITICAL_INVALID_FRAME_HEIGHT

#define CRITICAL_INVALID_FRAME_HEIGHT ( s)
Value:
CRITICAL2("E401 - invalid frame height", s );

Definition at line 3852 of file ugbc.h.

◆ CRITICAL_INVALID_FRAME_WIDTH

#define CRITICAL_INVALID_FRAME_WIDTH ( s)
Value:
CRITICAL2("E400 - invalid frame width", s );

Definition at line 3851 of file ugbc.h.

◆ CRITICAL_INVALID_INPUT_CURSOR

#define CRITICAL_INVALID_INPUT_CURSOR ( d)
Value:
CRITICAL2i("E109 - invalid cursor character for INPUT", d);

Definition at line 3553 of file ugbc.h.

◆ CRITICAL_INVALID_INPUT_DELAY

#define CRITICAL_INVALID_INPUT_DELAY ( v)
Value:
CRITICAL2i("E184 - invalid value for INPUT/KEYBOARD DELAY", v );

Definition at line 3629 of file ugbc.h.

◆ CRITICAL_INVALID_INPUT_DELAY_MS

#define CRITICAL_INVALID_INPUT_DELAY_MS ( v)
Value:
CRITICAL2i("E301 - invalid milliseconds for INPUT DELAY", v );

Definition at line 3751 of file ugbc.h.

◆ CRITICAL_INVALID_INPUT_LATENCY

#define CRITICAL_INVALID_INPUT_LATENCY ( v)
Value:
CRITICAL2i("E299 - invalid value for INPUT LATENCY", v );

Definition at line 3749 of file ugbc.h.

◆ CRITICAL_INVALID_INPUT_LATENCY_MS

#define CRITICAL_INVALID_INPUT_LATENCY_MS ( v)
Value:
CRITICAL2i("E300 - invalid milliseconds for INPUT LATENCY", v );

Definition at line 3750 of file ugbc.h.

◆ CRITICAL_INVALID_INPUT_RATE

#define CRITICAL_INVALID_INPUT_RATE ( v)
Value:
CRITICAL2i("E183 - invalid value for INPUT/KEYBOARD RATE", v );

Definition at line 3628 of file ugbc.h.

◆ CRITICAL_INVALID_INPUT_RELEASE

#define CRITICAL_INVALID_INPUT_RELEASE ( v)
Value:
CRITICAL2i("E302 - invalid value for INPUT RELEASE", v );

Definition at line 3752 of file ugbc.h.

◆ CRITICAL_INVALID_INPUT_RELEASE_MS

#define CRITICAL_INVALID_INPUT_RELEASE_MS ( v)
Value:
CRITICAL2i("E303 - invalid milliseconds for INPUT RELEASE", v );

Definition at line 3753 of file ugbc.h.

◆ CRITICAL_INVALID_INPUT_SEPARATOR

#define CRITICAL_INVALID_INPUT_SEPARATOR ( d)
Value:
CRITICAL2i("E107 - invalid character used for INPUT separator", d);

Definition at line 3551 of file ugbc.h.

◆ CRITICAL_INVALID_INPUT_SIZE

#define CRITICAL_INVALID_INPUT_SIZE ( d)
Value:
CRITICAL2i("E108 - invalid size for INPUT temporary buffer", d);

Definition at line 3552 of file ugbc.h.

◆ CRITICAL_INVALID_JOYSTICK_RETRIES

#define CRITICAL_INVALID_JOYSTICK_RETRIES ( a)
Value:
CRITICAL2i("E294 - invalid number of retries in DEFINE JOYSTICK RETRIES", a );

Definition at line 3743 of file ugbc.h.

◆ CRITICAL_INVALID_MULTIPLICATOR2

#define CRITICAL_INVALID_MULTIPLICATOR2 ( d)
Value:
CRITICAL2i("E099 - invalid multiplicator for MULTIPLICATOR2, must be power of two", d );

Definition at line 3543 of file ugbc.h.

◆ CRITICAL_INVALID_NUMBER_BYTES

#define CRITICAL_INVALID_NUMBER_BYTES ( n)
Value:
CRITICAL2i("E398 - invalid number of bytes for NUMBER representation", n );

Definition at line 3849 of file ugbc.h.

◆ CRITICAL_INVALID_NUMBER_DIGITS

#define CRITICAL_INVALID_NUMBER_DIGITS ( n)
Value:
CRITICAL2i("E399 - invalid number of digits for NUMBER representation", n );

Definition at line 3850 of file ugbc.h.

◆ CRITICAL_INVALID_PAINT_BUFFER

#define CRITICAL_INVALID_PAINT_BUFFER ( v)
Value:
CRITICAL2i("E258 - invalid PAINT BUFFER size", v );

Definition at line 3704 of file ugbc.h.

◆ CRITICAL_INVALID_PROGRAM_START

#define CRITICAL_INVALID_PROGRAM_START ( a)
Value:
CRITICAL2i("E293 - invalid address for DEFINE PROGRAM START", a );

Definition at line 3742 of file ugbc.h.

◆ CRITICAL_INVALID_RAM_SIZE

#define CRITICAL_INVALID_RAM_SIZE ( r)
Value:
CRITICAL2i("E266 - invalid ram size (-R)", r );

Definition at line 3712 of file ugbc.h.

◆ CRITICAL_INVALID_STRING_COUNT

#define CRITICAL_INVALID_STRING_COUNT ( d)
Value:
CRITICAL2i("E074 - invalid maximum number of strings", d);

Definition at line 3517 of file ugbc.h.

◆ CRITICAL_INVALID_STRING_SPACE

#define CRITICAL_INVALID_STRING_SPACE ( d)
Value:
CRITICAL2i("E075 - invalid maximum space occupied by strings", d);

Definition at line 3518 of file ugbc.h.

◆ CRITICAL_INVALID_TASK_COUNT

#define CRITICAL_INVALID_TASK_COUNT ( d)
Value:
CRITICAL2i("E100 - invalid number of tasks for multitasking", d);

Definition at line 3544 of file ugbc.h.

◆ CRITICAL_KEYGET_NEED_STRING

#define CRITICAL_KEYGET_NEED_STRING ( v)
Value:
CRITICAL2i("E296 - KEYGET needs variable of string type", v );

Definition at line 3745 of file ugbc.h.

◆ CRITICAL_LABEL_ALREADY_DEFINED

#define CRITICAL_LABEL_ALREADY_DEFINED ( n)
Value:
CRITICAL2("E229 - label already defined", n );

Definition at line 3675 of file ugbc.h.

◆ CRITICAL_LEFT_UNSUPPORTED

#define CRITICAL_LEFT_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E019 - LEFT unsupported for variable of given datatype", v, t );

Definition at line 3463 of file ugbc.h.

◆ CRITICAL_LEN_UNSUPPORTED

#define CRITICAL_LEN_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E030 - LEN unsupported for variable of given datatype", v, t );

Definition at line 3474 of file ugbc.h.

◆ CRITICAL_LINE_NUMBER_ALREADY_DEFINED

#define CRITICAL_LINE_NUMBER_ALREADY_DEFINED ( n)
Value:
CRITICAL2i("E228 - line number already defined", n );

Definition at line 3674 of file ugbc.h.

◆ CRITICAL_LOAD_FILE_TOO_LONG

#define CRITICAL_LOAD_FILE_TOO_LONG ( f)
Value:
CRITICAL2("E054 - LOAD file too long (>255 bytes)", f );

Definition at line 3498 of file ugbc.h.

◆ CRITICAL_LOAD_MISSING_FILE

#define CRITICAL_LOAD_MISSING_FILE ( f)
Value:
CRITICAL2("E053 - LOAD missing file", f );

Definition at line 3497 of file ugbc.h.

◆ CRITICAL_LOCAL_VARIABLE_OUTSIDE_PROCEDURE

#define CRITICAL_LOCAL_VARIABLE_OUTSIDE_PROCEDURE ( c)
Value:
CRITICAL2("E079 - cannot define LOCAL vars outside PARALLEL PROCEDURE", c );

Definition at line 3523 of file ugbc.h.

◆ CRITICAL_LOOP_WITHOUT_DO

#define CRITICAL_LOOP_WITHOUT_DO ( )
Value:
CRITICAL("E148 - LOOP without DO" );

Definition at line 3592 of file ugbc.h.

◆ CRITICAL_LOWER_UNSUPPORTED

#define CRITICAL_LOWER_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E025 - LOWER unsupported for variable of given datatype", v, t );

Definition at line 3469 of file ugbc.h.

◆ CRITICAL_MACRO_MISMATCH_PARAMETER_VALUES

#define CRITICAL_MACRO_MISMATCH_PARAMETER_VALUES ( m)
Value:
CRITICAL2("E162 - mismatch number of values and parameters", m );

Definition at line 3607 of file ugbc.h.

◆ CRITICAL_MACRO_TOO_MUCH_LINES

#define CRITICAL_MACRO_TOO_MUCH_LINES ( m)
Value:
CRITICAL2("E160 - too much lines in macro", m );

Definition at line 3605 of file ugbc.h.

◆ CRITICAL_MACRO_TOO_MUCH_PARAMETERS

#define CRITICAL_MACRO_TOO_MUCH_PARAMETERS ( m,
p )
Value:
CRITICAL3("E160 - too much parameters in macro", m, p );

Definition at line 3604 of file ugbc.h.

◆ CRITICAL_MACRO_TOO_MUCH_VALUES

#define CRITICAL_MACRO_TOO_MUCH_VALUES ( m,
v )
Value:
CRITICAL3("E161 - too much values in macro", m, v );

Definition at line 3606 of file ugbc.h.

◆ CRITICAL_MACRO_UNDEFINED

#define CRITICAL_MACRO_UNDEFINED ( m)
Value:
CRITICAL2("E163 - macro undefined", m );

Definition at line 3608 of file ugbc.h.

◆ CRITICAL_MID_UNSUPPORTED

#define CRITICAL_MID_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E021 - MID unsupported for variable of given datatype", v, t );

Definition at line 3465 of file ugbc.h.

◆ CRITICAL_MID_UNSUPPORTED_FOR_STRING

#define CRITICAL_MID_UNSUPPORTED_FOR_STRING ( s)
Value:
CRITICAL2("E336 - MID assignment not supported for constant strings", s );

Definition at line 3787 of file ugbc.h.

◆ CRITICAL_MIDI_OUT_OF_MEMORY

#define CRITICAL_MIDI_OUT_OF_MEMORY ( f)
Value:
CRITICAL2("E243 - out of memory on MIDI conversion using LOAD MUSIC", f );

Definition at line 3689 of file ugbc.h.

◆ CRITICAL_MISSING_CONSTANT

#define CRITICAL_MISSING_CONSTANT ( v)
Value:
CRITICAL2("E316 - trying to emit a constant that does not exist", v );

Definition at line 3767 of file ugbc.h.

◆ CRITICAL_MISSING_END_PROC

#define CRITICAL_MISSING_END_PROC ( p)
Value:
CRITICAL2("E348 - missing END PROC for PROC/PROCEDURE definition", p );

Definition at line 3799 of file ugbc.h.

◆ CRITICAL_MISSING_FILE_STORAGE

#define CRITICAL_MISSING_FILE_STORAGE ( v)
Value:
CRITICAL("E249 - missing file storage" );

Definition at line 3695 of file ugbc.h.

◆ CRITICAL_MISSING_LABEL_NAMED

#define CRITICAL_MISSING_LABEL_NAMED ( v)
Value:
CRITICAL2("E285 - missing label", v );

Definition at line 3734 of file ugbc.h.

◆ CRITICAL_MISSING_LABEL_NUMBER

#define CRITICAL_MISSING_LABEL_NUMBER ( v)
Value:
CRITICAL2i("E286 - missing line number", v );

Definition at line 3735 of file ugbc.h.

◆ CRITICAL_MMOB_NEEDS_SPRITE

#define CRITICAL_MMOB_NEEDS_SPRITE ( v)
Value:
CRITICAL2("E356 - MMOB can be called only with SPRITE/MSPRITE", v );

Definition at line 3807 of file ugbc.h.

◆ CRITICAL_MOD_UNSUPPORTED

#define CRITICAL_MOD_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E051 - MOD unsupported for variable of given datatype", v, t );

Definition at line 3495 of file ugbc.h.

◆ CRITICAL_MOVE_NAKED_UNSUPPORTED

#define CRITICAL_MOVE_NAKED_UNSUPPORTED ( t)
Value:
CRITICAL2("E007 - Datatype cannot be copied directly", t );

Definition at line 3451 of file ugbc.h.

◆ CRITICAL_MOVE_UNSUPPORTED

#define CRITICAL_MOVE_UNSUPPORTED ( t)
Value:
CRITICAL2("E047 - Datatype cannot be copied", t );

Definition at line 3491 of file ugbc.h.

◆ CRITICAL_MOVE_WITH_NOT_ALLOWED_TYPE

#define CRITICAL_MOVE_WITH_NOT_ALLOWED_TYPE ( t)
Value:
CRITICAL2("E392 - cannot MOVE this data type inside a COPPER list", t );

Definition at line 3843 of file ugbc.h.

◆ CRITICAL_MUL2_INVALID_STEPS

#define CRITICAL_MUL2_INVALID_STEPS ( v)
Value:
CRITICAL2("E066 - invalid steps for multiplication by 2", v );

Definition at line 3509 of file ugbc.h.

◆ CRITICAL_MUL2_UNSUPPORTED

#define CRITICAL_MUL2_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E016 - Double unsupported for variable of given datatype", v, t );

Definition at line 3460 of file ugbc.h.

◆ CRITICAL_MUL_UNSUPPORTED

#define CRITICAL_MUL_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E013 - Multiplication unsupported for variable of given datatype", v, t );

Definition at line 3457 of file ugbc.h.

◆ CRITICAL_MULTITASKING_ALREADY_FORBIDDEN

#define CRITICAL_MULTITASKING_ALREADY_FORBIDDEN ( )
Value:
CRITICAL("E255 - multitasking is already forbidden");

Definition at line 3701 of file ugbc.h.

◆ CRITICAL_MULTITASKING_FORBIDDEN

#define CRITICAL_MULTITASKING_FORBIDDEN ( )
Value:
CRITICAL("E257 - multitasking is actually forbidden");

Definition at line 3703 of file ugbc.h.

◆ CRITICAL_MULTITASKING_NOT_FORBIDDEN

#define CRITICAL_MULTITASKING_NOT_FORBIDDEN ( )
Value:
CRITICAL("E256 - multitasking is already allowed");

Definition at line 3702 of file ugbc.h.

◆ CRITICAL_MUSIC_NOT_ASYNC

#define CRITICAL_MUSIC_NOT_ASYNC ( )
Value:
CRITICAL("E283 - cannot MUSIC in asyncronous mode on this target" );

Definition at line 3732 of file ugbc.h.

◆ CRITICAL_NEGATIVE_CONSTANT

#define CRITICAL_NEGATIVE_CONSTANT ( v,
a )
Value:
CRITICAL3i("E071 - negative constant is not allowed", v, a);

Definition at line 3514 of file ugbc.h.

◆ CRITICAL_NESTED_COPPER_LIST_NOT_ALLOWED

#define CRITICAL_NESTED_COPPER_LIST_NOT_ALLOWED ( )
Value:
CRITICAL("E389 - cannot define nested COPPER list" );

Definition at line 3840 of file ugbc.h.

◆ CRITICAL_NEW_IMAGE_UNSUPPORTED_MODE

#define CRITICAL_NEW_IMAGE_UNSUPPORTED_MODE ( f)
Value:
CRITICAL2i("E096 - NEW IMAGE unsupported for the given screen mode", f );

Definition at line 3540 of file ugbc.h.

◆ CRITICAL_NEW_IMAGES_UNSUPPORTED_MODE

#define CRITICAL_NEW_IMAGES_UNSUPPORTED_MODE ( f)
Value:
CRITICAL2i("E242 - NEW IMAGES unsupported for the given screen mode", f );

Definition at line 3688 of file ugbc.h.

◆ CRITICAL_NEXT_WITHOUT_FOR

#define CRITICAL_NEXT_WITHOUT_FOR ( )
Value:
CRITICAL("E150 - NEXT without FOR" );

Definition at line 3594 of file ugbc.h.

◆ CRITICAL_NOT_ARRAY

#define CRITICAL_NOT_ARRAY ( v)
Value:
CRITICAL2("E036 - accessing with indexes on a non array variable", v );

Definition at line 3480 of file ugbc.h.

◆ CRITICAL_NOT_ASSIGNED_IMAGE

#define CRITICAL_NOT_ASSIGNED_IMAGE ( v)
Value:
CRITICAL2("E070 - variable is not an loaded image, please use assign operator", v );

Definition at line 3513 of file ugbc.h.

◆ CRITICAL_NOT_ASSIGNED_IMAGES

#define CRITICAL_NOT_ASSIGNED_IMAGES ( v)
Value:
CRITICAL2("E090 - variable is not a loaded collection of images, please use assign operator", v );

Definition at line 3534 of file ugbc.h.

◆ CRITICAL_NOT_ASSIGNED_SEQUENCE

#define CRITICAL_NOT_ASSIGNED_SEQUENCE ( v)
Value:
CRITICAL2("E125 - variable is not a set of loaded collection of images, please use assign operator", v );

Definition at line 3569 of file ugbc.h.

◆ CRITICAL_NOT_ENOUGH_FRAMES_FOR_ANIMATION

#define CRITICAL_NOT_ENOUGH_FRAMES_FOR_ANIMATION ( n)
Value:
CRITICAL2("E349 - not enought frames for animation", n );

Definition at line 3800 of file ugbc.h.

◆ CRITICAL_NOT_IMAGE

#define CRITICAL_NOT_IMAGE ( v)
Value:
CRITICAL2("E069 - variable is not an image", v );

Definition at line 3512 of file ugbc.h.

◆ CRITICAL_NOT_IMAGES

#define CRITICAL_NOT_IMAGES ( v)
Value:
CRITICAL2("E089 - variable is not an collection of images", v );

Definition at line 3533 of file ugbc.h.

◆ CRITICAL_NOT_STRING_ARRAY

#define CRITICAL_NOT_STRING_ARRAY ( v)
Value:
CRITICAL2("E091 - accessing as a string array on a non string array", v );

Definition at line 3535 of file ugbc.h.

◆ CRITICAL_NOT_SUPPORTED

#define CRITICAL_NOT_SUPPORTED ( v)
Value:
CRITICAL2("E044 - Command / Keyword not supported:", v );

Definition at line 3488 of file ugbc.h.

◆ CRITICAL_NOT_TILE

#define CRITICAL_NOT_TILE ( v)
Value:
CRITICAL2("E120 - variable is not a (set of) tile(s)", v );

Definition at line 3564 of file ugbc.h.

◆ CRITICAL_NOT_UNSUPPORTED

#define CRITICAL_NOT_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E081 - Bitwise NOT unsupported for variable of given datatype", v, t );

Definition at line 3525 of file ugbc.h.

◆ CRITICAL_ON_CALL_WITH_NOT_EXISTENT_PROCEDURE

#define CRITICAL_ON_CALL_WITH_NOT_EXISTENT_PROCEDURE ( s)
Value:
CRITICAL2("E339 - ON...CALL with an unexistent PROCEDURE", s );

Definition at line 3790 of file ugbc.h.

◆ CRITICAL_ON_GOSUB_WITH_NOT_EXISTENT_LABEL

#define CRITICAL_ON_GOSUB_WITH_NOT_EXISTENT_LABEL ( s)
Value:
CRITICAL2("E337 - ON...GOSUB with an unexistent label", s );

Definition at line 3788 of file ugbc.h.

◆ CRITICAL_ON_GOSUB_WITH_NOT_EXISTENT_LINE_NUMBER

#define CRITICAL_ON_GOSUB_WITH_NOT_EXISTENT_LINE_NUMBER ( n)
Value:
CRITICAL2i("E338 - ON...GOSUB with an unexistent line number", n );

Definition at line 3789 of file ugbc.h.

◆ CRITICAL_ON_GOTO_WITH_NOT_EXISTENT_LABEL

#define CRITICAL_ON_GOTO_WITH_NOT_EXISTENT_LABEL ( s)
Value:
CRITICAL2("E340 - ON...GOTO with an unexistent label", s );

Definition at line 3791 of file ugbc.h.

◆ CRITICAL_ON_GOTO_WITH_NOT_EXISTENT_LINE_NUMBER

#define CRITICAL_ON_GOTO_WITH_NOT_EXISTENT_LINE_NUMBER ( n)
Value:
CRITICAL2i("E341 - ON...GOTO with an unexistent line number", n );

Definition at line 3792 of file ugbc.h.

◆ CRITICAL_ON_SCROLL_CALL_WITH_NOT_EXISTENT_PROCEDURE

#define CRITICAL_ON_SCROLL_CALL_WITH_NOT_EXISTENT_PROCEDURE ( s)
Value:
CRITICAL2("E343 - ON SCROLL...CALL with an unexistent PROCEDURE", s );

Definition at line 3794 of file ugbc.h.

◆ CRITICAL_ON_SCROLL_GOSUB_WITH_NOT_EXISTENT_LABEL

#define CRITICAL_ON_SCROLL_GOSUB_WITH_NOT_EXISTENT_LABEL ( s)
Value:
CRITICAL2("E342 - ON SCROLL...GOSUB with an unexistent label", s );

Definition at line 3793 of file ugbc.h.

◆ CRITICAL_OR_UNSUPPORTED

#define CRITICAL_OR_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E080 - Bitwise OR unsupported for variable of given datatype", v, t );

Definition at line 3524 of file ugbc.h.

◆ CRITICAL_OUT_OF_BANKS

#define CRITICAL_OUT_OF_BANKS ( )
Value:
CRITICAL("E264 - out of bank detected");

Definition at line 3710 of file ugbc.h.

◆ CRITICAL_PAGE01

#define CRITICAL_PAGE01 ( )
Value:
CRITICAL("E345 - PAGE can be 0 or 1" );

Definition at line 3796 of file ugbc.h.

◆ CRITICAL_PARALLEL_PROCEDURE_CANNOT_BE_CALLED

#define CRITICAL_PARALLEL_PROCEDURE_CANNOT_BE_CALLED ( c)
Value:
CRITICAL2("E078 - cannot CALL a PARALLEL PROCEDURE: use SPAWN instead", c );

Definition at line 3521 of file ugbc.h.

◆ CRITICAL_PMODE_NEEDS_CONSTANTS

#define CRITICAL_PMODE_NEEDS_CONSTANTS ( )
Value:
CRITICAL("E346 - PMODE needs constant values" );

Definition at line 3797 of file ugbc.h.

◆ CRITICAL_POW_UNSUPPORTED

#define CRITICAL_POW_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E031 - ^ unsupported for variable of given datatype", v, t );

Definition at line 3475 of file ugbc.h.

◆ CRITICAL_PRINT_BUFFER_ON_A_NOT_BUFFER

#define CRITICAL_PRINT_BUFFER_ON_A_NOT_BUFFER ( v)
Value:
CRITICAL2("E105 - PRINT BUFFER not allowed for non buffer variables", v );

Definition at line 3549 of file ugbc.h.

◆ CRITICAL_PRINT_UNSUPPORTED

#define CRITICAL_PRINT_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E043 - PRINT unsupported for variable of given datatype", v, t );

Definition at line 3487 of file ugbc.h.

◆ CRITICAL_PROCEDURE_CANNOT_BE_INVOKED

#define CRITICAL_PROCEDURE_CANNOT_BE_INVOKED ( c)
Value:
CRITICAL2("E078 - cannot SPAWN a PROCEDURE: use CALL instead", c );

Definition at line 3522 of file ugbc.h.

◆ CRITICAL_PROCEDURE_DUPLICATE_PARAMETER

#define CRITICAL_PROCEDURE_DUPLICATE_PARAMETER ( p,
v )
Value:
CRITICAL3("E261 - duplicate parameter on procedure", p, v );

Definition at line 3707 of file ugbc.h.

◆ CRITICAL_PROCEDURE_MISSING

#define CRITICAL_PROCEDURE_MISSING ( n)
Value:
CRITICAL2("E039 - call to an undefined procedure", n );

Definition at line 3483 of file ugbc.h.

◆ CRITICAL_PROCEDURE_NESTED_UNSUPPORTED

#define CRITICAL_PROCEDURE_NESTED_UNSUPPORTED ( n)
Value:
CRITICAL2("E037 - cannot define a nested procedure (a procedure inside a procedure)", n );

Definition at line 3481 of file ugbc.h.

◆ CRITICAL_PROCEDURE_NOT_OPENED

#define CRITICAL_PROCEDURE_NOT_OPENED ( )
Value:
CRITICAL("E038 - END PROC outside a procedure" );

Definition at line 3482 of file ugbc.h.

◆ CRITICAL_PROCEDURE_PARAMETERS_MISMATCH

#define CRITICAL_PROCEDURE_PARAMETERS_MISMATCH ( n,
d1,
d2 )
Value:
CRITICAL4si("E040 - wrong number of parameters on procedure call", n, d1, d2 );

Definition at line 3484 of file ugbc.h.

◆ CRITICAL_PUT_IMAGE_NAMED_TILE_INVALID_PROBABILITY

#define CRITICAL_PUT_IMAGE_NAMED_TILE_INVALID_PROBABILITY ( v)
Value:
CRITICAL2("E192 - invalid probability for tile selection", v );

Definition at line 3637 of file ugbc.h.

◆ CRITICAL_PUT_IMAGE_NAMED_TILE_MISSING_TILES_FROM_TILESET

#define CRITICAL_PUT_IMAGE_NAMED_TILE_MISSING_TILES_FROM_TILESET ( v)
Value:
CRITICAL2("E190 - missing tiles' definition on tileset", v );

Definition at line 3635 of file ugbc.h.

◆ CRITICAL_PUT_IMAGE_NAMED_TILE_MISSING_TILESET

#define CRITICAL_PUT_IMAGE_NAMED_TILE_MISSING_TILESET ( v)
Value:
CRITICAL2("E189 - missing tileset from images", v );

Definition at line 3634 of file ugbc.h.

◆ CRITICAL_PUT_IMAGE_NAMED_TILE_NOT_FOUND

#define CRITICAL_PUT_IMAGE_NAMED_TILE_NOT_FOUND ( v)
Value:
CRITICAL2("E191 - tile not found in tileset", v );

Definition at line 3636 of file ugbc.h.

◆ CRITICAL_PUT_IMAGE_UNINITIALIZED

#define CRITICAL_PUT_IMAGE_UNINITIALIZED ( v)
Value:
CRITICAL2("E254 - PUT IMAGE with uninitialized image variable", v );

Definition at line 3700 of file ugbc.h.

◆ CRITICAL_PUT_IMAGE_UNSUPPORTED

#define CRITICAL_PUT_IMAGE_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E088 - PUT IMAGE unsupported for given datatype", v, t );

Definition at line 3532 of file ugbc.h.

◆ CRITICAL_PUT_IMAGE_X_UNSUPPORTED

#define CRITICAL_PUT_IMAGE_X_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E309 - PUT IMAGE unsupported for given datatype for x coordinates", v, t );

Definition at line 3760 of file ugbc.h.

◆ CRITICAL_PUT_IMAGE_Y_UNSUPPORTED

#define CRITICAL_PUT_IMAGE_Y_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E310 - PUT IMAGE unsupported for given datatype for y coordinates", v, t );

Definition at line 3761 of file ugbc.h.

◆ CRITICAL_PUT_NOT_NOT_SUPPORTED

#define CRITICAL_PUT_NOT_NOT_SUPPORTED ( t)
Value:
CRITICAL2("E238 - PUT with NOT operator is not supported", t );

Definition at line 3684 of file ugbc.h.

◆ CRITICAL_RANDOM_UNSUPPORTED

#define CRITICAL_RANDOM_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E050 - RANDOM unsupported for variable of given datatype", v, t );

Definition at line 3494 of file ugbc.h.

◆ CRITICAL_READ_DATA_TYPE_NOT_SUPPORTED

#define CRITICAL_READ_DATA_TYPE_NOT_SUPPORTED ( v,
t )
Value:
CRITICAL3("E232 - READ not supported for this kind of variable", v, t );

Definition at line 3678 of file ugbc.h.

◆ CRITICAL_READ_END_WITHOUT_DATA

#define CRITICAL_READ_END_WITHOUT_DATA ( )
Value:
CRITICAL("E234 - READ END without DATA" );

Definition at line 3680 of file ugbc.h.

◆ CRITICAL_READ_WITHOUT_DATA

#define CRITICAL_READ_WITHOUT_DATA ( v)
Value:
CRITICAL("E231 - READ without DATA" );

Definition at line 3677 of file ugbc.h.

◆ CRITICAL_REPEAT_WITHOUT_UNTIL

#define CRITICAL_REPEAT_WITHOUT_UNTIL ( )
Value:
CRITICAL("E224 - REPEAT without UNTIL" );

Definition at line 3670 of file ugbc.h.

◆ CRITICAL_RESIZE_UNSUPPORTED

#define CRITICAL_RESIZE_UNSUPPORTED ( t)
Value:
CRITICAL2("E006 - Datatype cannot be resized directly", t );

Definition at line 3450 of file ugbc.h.

◆ CRITICAL_RESOURCE_LOAD_MISSING_FILE

#define CRITICAL_RESOURCE_LOAD_MISSING_FILE ( f)
Value:
CRITICAL2("E188 - missing file in loading resource", f );

Definition at line 3633 of file ugbc.h.

◆ CRITICAL_RESTORE_WITH_UNSUPPORTED_DATA_TYPE

#define CRITICAL_RESTORE_WITH_UNSUPPORTED_DATA_TYPE ( t)
Value:
CRITICAL2("E240 - RESTORE with unsupported data type", t );

Definition at line 3686 of file ugbc.h.

◆ CRITICAL_RESTORE_WITHOUT_DATA

#define CRITICAL_RESTORE_WITHOUT_DATA ( v)
Value:
CRITICAL2("E233 - RESTORE without DATA", v );

Definition at line 3679 of file ugbc.h.

◆ CRITICAL_RIGHT_UNSUPPORTED

#define CRITICAL_RIGHT_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E020 - RIGHT unsupported for variable of given datatype", v, t );

Definition at line 3464 of file ugbc.h.

◆ CRITICAL_SANDBOX_ENFORCED

#define CRITICAL_SANDBOX_ENFORCED ( v)
Value:
CRITICAL2("E241 - this command is not allowed on sources for sandbox execution", v );

Definition at line 3687 of file ugbc.h.

◆ CRITICAL_SCREEN_MODE_BITMAP_UNSUPPORTED

#define CRITICAL_SCREEN_MODE_BITMAP_UNSUPPORTED ( t)
Value:
CRITICAL2("E048 - Screen mode unsupported for BITMAP mode", t );

Definition at line 3492 of file ugbc.h.

◆ CRITICAL_SCREEN_MODE_TILEMAP_UNSUPPORTED

#define CRITICAL_SCREEN_MODE_TILEMAP_UNSUPPORTED ( t)
Value:
CRITICAL2("E049 - Screen mode unsupported for TILEMAP mode", t );

Definition at line 3493 of file ugbc.h.

◆ CRITICAL_SCREEN_UNSUPPORTED

#define CRITICAL_SCREEN_UNSUPPORTED ( v)
Value:
CRITICAL2i("E052 - SCREEN mode unsupported", v );

Definition at line 3496 of file ugbc.h.

◆ CRITICAL_SELECT_CASE_WITHOUT_ENDSELECT

#define CRITICAL_SELECT_CASE_WITHOUT_ENDSELECT ( )
Value:
CRITICAL("E221 - SELECT CASE without ENDSELECT" );

Definition at line 3667 of file ugbc.h.

◆ CRITICAL_SEQUENCE_LOAD_IMAGE_TOO_BIG

#define CRITICAL_SEQUENCE_LOAD_IMAGE_TOO_BIG ( v)
Value:
CRITICAL2("E218 - SEQUENCE cannot be loaded since is too big", v );

Definition at line 3663 of file ugbc.h.

◆ CRITICAL_SEQUENCE_LOAD_INVALID_FRAME_HEIGHT

#define CRITICAL_SEQUENCE_LOAD_INVALID_FRAME_HEIGHT ( h)
Value:
CRITICAL2i("E127 - invalid frame height, not multiple of height", h );

Definition at line 3571 of file ugbc.h.

◆ CRITICAL_SEQUENCE_LOAD_INVALID_FRAME_WIDTH

#define CRITICAL_SEQUENCE_LOAD_INVALID_FRAME_WIDTH ( w)
Value:
CRITICAL2i("E126 - invalid frame width, not multiple of width", w );

Definition at line 3570 of file ugbc.h.

◆ CRITICAL_SERIAL_READ_UNSUPPORTED

#define CRITICAL_SERIAL_READ_UNSUPPORTED ( t)
Value:
CRITICAL2("E362 - SERIAL read unsupported for variable of given datatype", t );

Definition at line 3813 of file ugbc.h.

◆ CRITICAL_SERIAL_WRITE_UNSUPPORTED

#define CRITICAL_SERIAL_WRITE_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E361 - SERIAL WRITE unsupported for variable of given datatype", v, t );

Definition at line 3812 of file ugbc.h.

◆ CRITICAL_SGN_UNSUPPORTED

#define CRITICAL_SGN_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E032 - SGN unsupported for variable of given datatype", v, t );

Definition at line 3476 of file ugbc.h.

◆ CRITICAL_SHARED_ONLY_IN_PROCEDURES

#define CRITICAL_SHARED_ONLY_IN_PROCEDURES ( )
Value:
CRITICAL("E041 - SHARED can be used only inside a PROCEDURE");

Definition at line 3485 of file ugbc.h.

◆ CRITICAL_SHOOT_NOT_ASYNC

#define CRITICAL_SHOOT_NOT_ASYNC ( )
Value:
CRITICAL("E282 - cannot SHOOT in asyncronous mode on this target" );

Definition at line 3728 of file ugbc.h.

◆ CRITICAL_SIZE_UNSUPPORTED

#define CRITICAL_SIZE_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E092 - SIZE unsupported for variable of given datatype", v, t );

Definition at line 3536 of file ugbc.h.

◆ CRITICAL_SLICE_IMAGE_UNSUPPORTED

#define CRITICAL_SLICE_IMAGE_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E211 - SLICE IMAGE unsupported for given datatype", v, t );

Definition at line 3656 of file ugbc.h.

◆ CRITICAL_SLICE_IMAGE_UNSUPPORTED_COMBINATION

#define CRITICAL_SLICE_IMAGE_UNSUPPORTED_COMBINATION ( )
Value:
CRITICAL("E212 - SLICE IMAGE cannot optimize the call in this combination" );

Definition at line 3657 of file ugbc.h.

◆ CRITICAL_SQR_UNSUPPORTED

#define CRITICAL_SQR_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E060 - SQR unsupported for variable of given datatype", v, t );

Definition at line 3503 of file ugbc.h.

◆ CRITICAL_STORAGE_BANKED_OUT_OF_MEMORY

#define CRITICAL_STORAGE_BANKED_OUT_OF_MEMORY ( v)
Value:
CRITICAL2("E276 - out of memory when storing this variable on bank", v );

Definition at line 3722 of file ugbc.h.

◆ CRITICAL_STORAGE_BANKED_UNCOMPATIBLE

#define CRITICAL_STORAGE_BANKED_UNCOMPATIBLE ( v)
Value:
CRITICAL2("E271 - cannot use variables both on (implicit) BANKED and STORAGE", v );

Definition at line 3717 of file ugbc.h.

◆ CRITICAL_STORAGE_BANKED_UNCOMPATIBLE_TILEMAP

#define CRITICAL_STORAGE_BANKED_UNCOMPATIBLE_TILEMAP ( v)
Value:
CRITICAL2("E270 - cannot use TILEMAP both on (implicit) BANKED and STORAGE", v );

Definition at line 3716 of file ugbc.h.

◆ CRITICAL_STORAGE_NESTED_UNSUPPORTED

#define CRITICAL_STORAGE_NESTED_UNSUPPORTED ( n)
Value:
CRITICAL2("E132 - cannot define a nested storage (a storage inside a storage)", n );

Definition at line 3576 of file ugbc.h.

◆ CRITICAL_STORAGE_NOT_AVAILABLE

#define CRITICAL_STORAGE_NOT_AVAILABLE ( )
Value:
CRITICAL("E247 - the BEGIN STORAGE keyword is not available with this z88dk release" );

Definition at line 3693 of file ugbc.h.

◆ CRITICAL_STORAGE_NOT_OPENED

#define CRITICAL_STORAGE_NOT_OPENED ( )
Value:
CRITICAL("E133 - ENDSTORAGE outside a storage definition" );

Definition at line 3577 of file ugbc.h.

◆ CRITICAL_STORE_UNSUPPORTED

#define CRITICAL_STORE_UNSUPPORTED ( t)
Value:
CRITICAL2("E005 - Datatype cannot be stored directly", t );

Definition at line 3449 of file ugbc.h.

◆ CRITICAL_STORE_WITH_NOT_ALLOWED_TYPE

#define CRITICAL_STORE_WITH_NOT_ALLOWED_TYPE ( t)
Value:
CRITICAL2("E393 - cannot STORE this data type inside a COPPER list", t );

Definition at line 3844 of file ugbc.h.

◆ CRITICAL_STORE_WITH_NOT_CONST_NOT_ALLOWED

#define CRITICAL_STORE_WITH_NOT_CONST_NOT_ALLOWED ( t)
Value:
CRITICAL2("E394 - cannot STORE using not const in a COPPER list", t );

Definition at line 3845 of file ugbc.h.

◆ CRITICAL_STR_UNSUPPORTED

#define CRITICAL_STR_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E026 - STR unsupported for variable of given datatype", v, t );

Definition at line 3470 of file ugbc.h.

◆ CRITICAL_STRING_UNSUPPORTED

#define CRITICAL_STRING_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E023 - STRING unsupported for variable of given datatype", v, t );

Definition at line 3467 of file ugbc.h.

◆ CRITICAL_STRPTR_NOT_STRING

#define CRITICAL_STRPTR_NOT_STRING ( v,
t )
Value:
CRITICAL3("E244 - cannot use STRPTR on something that is not a string", v, t );

Definition at line 3690 of file ugbc.h.

◆ CRITICAL_SUB_INPLACE_UNSUPPORTED

#define CRITICAL_SUB_INPLACE_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E103 - Sub in place unsupported for variable of given datatype", v, t );

Definition at line 3547 of file ugbc.h.

◆ CRITICAL_SUB_UNSUPPORTED

#define CRITICAL_SUB_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E011 - Sub unsupported for variable of given datatype", v, t );

Definition at line 3455 of file ugbc.h.

◆ CRITICAL_SWAP_DIFFERENT_BITWIDTH

#define CRITICAL_SWAP_DIFFERENT_BITWIDTH ( v)
Value:
CRITICAL2("E137 - Bitwise SWAP supported only for variable of same bitwidth", v );

Definition at line 3581 of file ugbc.h.

◆ CRITICAL_SWAP_UNSUPPORTED

#define CRITICAL_SWAP_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E177 - Swap unsupported for variable of given datatype", v, t );

Definition at line 3622 of file ugbc.h.

◆ CRITICAL_TEMPORARY2

#define CRITICAL_TEMPORARY2 ( v)
Value:
CRITICAL2("E001 - Unable to create space for temporary variable", v );

Definition at line 3445 of file ugbc.h.

◆ CRITICAL_TEXTMAP_ADDRESS_NOT_VALID

#define CRITICAL_TEXTMAP_ADDRESS_NOT_VALID ( a)
Value:
CRITICAL2i("E287 - textmap address not valid", a );

Definition at line 3736 of file ugbc.h.

◆ CRITICAL_TILE_CLASS_INVALID_ID

#define CRITICAL_TILE_CLASS_INVALID_ID ( v)
Value:
CRITICAL2i("E201 - invalid tile id on TILE CLASS", v );

Definition at line 3646 of file ugbc.h.

◆ CRITICAL_TILE_CLASS_NO_TILESET

#define CRITICAL_TILE_CLASS_NO_TILESET ( v)
Value:
CRITICAL2("E200 - cannot call TILE CLASS on something that is not a TILESET", v );

Definition at line 3645 of file ugbc.h.

◆ CRITICAL_TILE_HEIGHT_NO_TILESET

#define CRITICAL_TILE_HEIGHT_NO_TILESET ( v)
Value:
CRITICAL2("E203 - cannot call TILE HEIGHT on something that is not a TILESET", v );

Definition at line 3648 of file ugbc.h.

◆ CRITICAL_TILE_ID_MISSING_ORIGINAL_TILESET

#define CRITICAL_TILE_ID_MISSING_ORIGINAL_TILESET ( v)
Value:
CRITICAL2("E215 - missing Tiled informations", v );

Definition at line 3660 of file ugbc.h.

◆ CRITICAL_TILE_ID_NO_TILESET

#define CRITICAL_TILE_ID_NO_TILESET ( v)
Value:
CRITICAL2("E230 - cannot call TILE ID on something that is not a TILESET", v );

Definition at line 3676 of file ugbc.h.

◆ CRITICAL_TILE_ID_ON_NOT_TILESET

#define CRITICAL_TILE_ID_ON_NOT_TILESET ( v)
Value:
CRITICAL2("E214 - using TILE ID on something that is not a TILESET", v );

Definition at line 3659 of file ugbc.h.

◆ CRITICAL_TILE_INVALID_HEIGHT

#define CRITICAL_TILE_INVALID_HEIGHT ( h)
Value:
CRITICAL2i("E116 - invalid height for tile, must be 8 pixels", h );

Definition at line 3560 of file ugbc.h.

◆ CRITICAL_TILE_INVALID_WIDTH

#define CRITICAL_TILE_INVALID_WIDTH ( w)
Value:
CRITICAL2i("E115 - invalid width for tile, must be 8 pixels", w );

Definition at line 3559 of file ugbc.h.

◆ CRITICAL_TILE_LOAD_MISSING_FILE

#define CRITICAL_TILE_LOAD_MISSING_FILE ( f)
Value:
CRITICAL2("E113 - LOAD TILE missing file", f );

Definition at line 3557 of file ugbc.h.

◆ CRITICAL_TILE_LOAD_ON_NON_TILESET

#define CRITICAL_TILE_LOAD_ON_NON_TILESET ( t)
Value:
CRITICAL2("E117 - loading tile(s) on non tileset", t );

Definition at line 3561 of file ugbc.h.

◆ CRITICAL_TILE_LOAD_UNKNOWN_FORMAT

#define CRITICAL_TILE_LOAD_UNKNOWN_FORMAT ( f)
Value:
CRITICAL2("E114 - LOAD TILE file format unknown", f );

Definition at line 3558 of file ugbc.h.

◆ CRITICAL_TILE_PROBABILITY_INVALID_ID

#define CRITICAL_TILE_PROBABILITY_INVALID_ID ( v)
Value:
CRITICAL2i("E205 - invalid tile id on TILE PROBABILITY", v );

Definition at line 3650 of file ugbc.h.

◆ CRITICAL_TILE_PROBABILITY_NO_TILESET

#define CRITICAL_TILE_PROBABILITY_NO_TILESET ( v)
Value:
CRITICAL2("E204 - cannot call TILE PROBABILITY on something that is not a TILESET", v );

Definition at line 3649 of file ugbc.h.

◆ CRITICAL_TILE_WIDTH_NO_TILESET

#define CRITICAL_TILE_WIDTH_NO_TILESET ( v)
Value:
CRITICAL2("E202 - cannot call TILE WIDTH on something that is not a TILESET", v );

Definition at line 3647 of file ugbc.h.

◆ CRITICAL_TILEMAP_HEIGHT_NO_TILEMAP

#define CRITICAL_TILEMAP_HEIGHT_NO_TILEMAP ( v)
Value:
CRITICAL2("E207 - cannot call TILEMAP HEIGHT on something that is not a TILEMAP", v );

Definition at line 3652 of file ugbc.h.

◆ CRITICAL_TILEMAP_INDEX_INVALID_TILEMAP

#define CRITICAL_TILEMAP_INDEX_INVALID_TILEMAP ( v)
Value:
CRITICAL2("E210 - cannot use TILEMAP INDEX on something that is not a TILEMAP", v );

Definition at line 3655 of file ugbc.h.

◆ CRITICAL_TILEMAP_LOAD_MISSING_LAYER

#define CRITICAL_TILEMAP_LOAD_MISSING_LAYER ( v)
Value:
CRITICAL2("E194 - missing layer from tilemap", v );

Definition at line 3639 of file ugbc.h.

◆ CRITICAL_TILEMAP_LOAD_MISSING_TILESET

#define CRITICAL_TILEMAP_LOAD_MISSING_TILESET ( v)
Value:
CRITICAL2("E195 - missing tileset from tilemap", v );

Definition at line 3640 of file ugbc.h.

◆ CRITICAL_TILEMAP_LOAD_ONLY_ONE_LAYER

#define CRITICAL_TILEMAP_LOAD_ONLY_ONE_LAYER ( v)
Value:
CRITICAL2("E199 - only one layer is supported for each tilemap", v );

Definition at line 3644 of file ugbc.h.

◆ CRITICAL_TILEMAP_LOAD_ONLY_ONE_TILESET

#define CRITICAL_TILEMAP_LOAD_ONLY_ONE_TILESET ( v)
Value:
CRITICAL2("E196 - only one tileset is supported for each tilemap", v );

Definition at line 3641 of file ugbc.h.

◆ CRITICAL_TILEMAP_LOAD_ONLY_SAME_SIZE_LAYER

#define CRITICAL_TILEMAP_LOAD_ONLY_SAME_SIZE_LAYER ( v)
Value:
CRITICAL2("E208 - cannot use tile maps with layers of different size", v );

Definition at line 3653 of file ugbc.h.

◆ CRITICAL_TILEMAP_LOAD_UNKNOWN_FORMAT

#define CRITICAL_TILEMAP_LOAD_UNKNOWN_FORMAT ( v)
Value:
CRITICAL2("E193 - unknown tilemap format", v );

Definition at line 3638 of file ugbc.h.

◆ CRITICAL_TILEMAP_SOURCE_MISSING

#define CRITICAL_TILEMAP_SOURCE_MISSING ( v)
Value:
CRITICAL2("E259 - invalid tilemap, missing source", v );

Definition at line 3705 of file ugbc.h.

◆ CRITICAL_TILEMAP_WIDTH_NO_TILEMAP

#define CRITICAL_TILEMAP_WIDTH_NO_TILEMAP ( v)
Value:
CRITICAL2("E206 - cannot call TILEMAP WIDTH on something that is not a TILEMAP", v );

Definition at line 3651 of file ugbc.h.

◆ CRITICAL_TILES_LOAD_IMAGE_TOO_BIG

#define CRITICAL_TILES_LOAD_IMAGE_TOO_BIG ( v)
Value:
CRITICAL2("E218 - TILES cannot be loaded since is too big", v );

Definition at line 3664 of file ugbc.h.

◆ CRITICAL_TILESET_LOAD_IMAGE_TOO_BIG

#define CRITICAL_TILESET_LOAD_IMAGE_TOO_BIG ( v)
Value:
CRITICAL2("E219 - TILESET cannot be loaded since is too big", v );

Definition at line 3665 of file ugbc.h.

◆ CRITICAL_TILESET_LOAD_MISSING_IMAGE

#define CRITICAL_TILESET_LOAD_MISSING_IMAGE ( v)
Value:
CRITICAL2("E187 - missing image from tileset", v );

Definition at line 3632 of file ugbc.h.

◆ CRITICAL_TILESET_LOAD_UNKNOWN_FORMAT

#define CRITICAL_TILESET_LOAD_UNKNOWN_FORMAT ( v)
Value:
CRITICAL2("E186 - unknown tileset format", v );

Definition at line 3631 of file ugbc.h.

◆ CRITICAL_TILESET_OF_INVALID_TILEMAP

#define CRITICAL_TILESET_OF_INVALID_TILEMAP ( v)
Value:
CRITICAL2("E209 - cannot use TILESET OF on something that is not a TILEMAP", v );

Definition at line 3654 of file ugbc.h.

◆ CRITICAL_TOO_BIG_CONSTANT

#define CRITICAL_TOO_BIG_CONSTANT ( v)
Value:
CRITICAL2("E073 - constant value over the maximum limit", v);

Definition at line 3516 of file ugbc.h.

◆ CRITICAL_TOO_LITTLE_CONSTANT

#define CRITICAL_TOO_LITTLE_CONSTANT ( v)
Value:
CRITICAL2("E072 - constant value under the minimum limit", v);

Definition at line 3515 of file ugbc.h.

◆ CRITICAL_TYPE_ALREADY_DEFINED

#define CRITICAL_TYPE_ALREADY_DEFINED ( n)
Value:
CRITICAL2("E376 - TYPE already defined", n );

Definition at line 3827 of file ugbc.h.

◆ CRITICAL_TYPE_MISMATCH_CONSTANT_NUMERIC

#define CRITICAL_TYPE_MISMATCH_CONSTANT_NUMERIC ( c)
Value:
CRITICAL2("E062 - use of an wrong type constant (numeric expected, string used)", c );

Definition at line 3505 of file ugbc.h.

◆ CRITICAL_TYPE_MISMATCH_CONSTANT_STRING

#define CRITICAL_TYPE_MISMATCH_CONSTANT_STRING ( c)
Value:
CRITICAL2("E076 - use of an wrong type constant (string expected, numeric used)", c );

Definition at line 3519 of file ugbc.h.

◆ CRITICAL_TYPE_NESTED_UNSUPPORTED

#define CRITICAL_TYPE_NESTED_UNSUPPORTED ( n)
Value:
CRITICAL2("E375 - cannot define a nested TYPE (a TYPE inside a TYPE)", n );

Definition at line 3826 of file ugbc.h.

◆ CRITICAL_TYPE_NOT_OPENED

#define CRITICAL_TYPE_NOT_OPENED ( )
Value:
CRITICAL("E377 - cannot END an unopened TYPE" );

Definition at line 3828 of file ugbc.h.

◆ CRITICAL_UNABLE_TO_EMBED

#define CRITICAL_UNABLE_TO_EMBED ( v)
Value:
CRITICAL2("E067 - unable to embed library, only inline available", v );

Definition at line 3510 of file ugbc.h.

◆ CRITICAL_UNABLE_TO_INLINE

#define CRITICAL_UNABLE_TO_INLINE ( v)
Value:
CRITICAL2("E068 - unable to inline call, only library available", v );

Definition at line 3511 of file ugbc.h.

◆ CRITICAL_UNCLOSED_EMBEDDED_ESCAPE_SEQUENCE

#define CRITICAL_UNCLOSED_EMBEDDED_ESCAPE_SEQUENCE ( n)
Value:
CRITICAL2("E386 - unclosed embedded conditional", n );

Definition at line 3837 of file ugbc.h.

◆ CRITICAL_UNDEFINED_CONSTANT

#define CRITICAL_UNDEFINED_CONSTANT ( c)
Value:
CRITICAL2("E061 - use of an undefined constant", c );

Definition at line 3504 of file ugbc.h.

◆ CRITICAL_UNIMPLEMENTED

#define CRITICAL_UNIMPLEMENTED ( v)
Value:
CRITICAL2("E000 - Internal method not implemented:", v );

Definition at line 3444 of file ugbc.h.

◆ CRITICAL_UNKNOWN_CPU_REGISTER

#define CRITICAL_UNKNOWN_CPU_REGISTER ( )
Value:
CRITICAL("E179 - unknown register");

Definition at line 3624 of file ugbc.h.

◆ CRITICAL_UNKNOWN_CPU_STACK

#define CRITICAL_UNKNOWN_CPU_STACK ( v)
Value:
CRITICAL2("E181 - unknown stack size", v );

Definition at line 3626 of file ugbc.h.

◆ CRITICAL_UNKNOWN_FIELD_ON_TYPE

#define CRITICAL_UNKNOWN_FIELD_ON_TYPE ( n)
Value:
CRITICAL2("E383 - unknown TYPE field ", n );

Definition at line 3834 of file ugbc.h.

◆ CRITICAL_UNKNOWN_TYPE

#define CRITICAL_UNKNOWN_TYPE ( n)
Value:
CRITICAL2("E381 - unknown TYPE", n );

Definition at line 3832 of file ugbc.h.

◆ CRITICAL_UNSETTABLE_CPU_REGISTER

#define CRITICAL_UNSETTABLE_CPU_REGISTER ( v)
Value:
CRITICAL2("E180 - CPU register cannot be used", v );

Definition at line 3625 of file ugbc.h.

◆ CRITICAL_UNSUPPORTED_BANK_NUMBER

#define CRITICAL_UNSUPPORTED_BANK_NUMBER ( v)
Value:
CRITICAL2i("E263 - bank number not available", v );

Definition at line 3709 of file ugbc.h.

◆ CRITICAL_UNSUPPORTED_OUTPUT_FILE_TYPE

#define CRITICAL_UNSUPPORTED_OUTPUT_FILE_TYPE ( t)
Value:
CRITICAL2("E093 - output file type format unsupported for this type of executable", t );

Definition at line 3537 of file ugbc.h.

◆ CRITICAL_UNTIL_WITHOUT_REPEAT

#define CRITICAL_UNTIL_WITHOUT_REPEAT ( )
Value:
CRITICAL("E147 - UNTIL without REPEAT" );

Definition at line 3591 of file ugbc.h.

◆ CRITICAL_UPPER_UNSUPPORTED

#define CRITICAL_UPPER_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E024 - UPPER unsupported for variable of given datatype", v, t );

Definition at line 3468 of file ugbc.h.

◆ CRITICAL_USE_TILESET_ON_NON_TILESET

#define CRITICAL_USE_TILESET_ON_NON_TILESET ( t)
Value:
CRITICAL2("E118 - using a non tileset", t );

Definition at line 3562 of file ugbc.h.

◆ CRITICAL_VAL_UNSUPPORTED

#define CRITICAL_VAL_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E027 - VAL unsupported for variable of given datatype", v, t );

Definition at line 3471 of file ugbc.h.

◆ CRITICAL_VARIABLE

#define CRITICAL_VARIABLE ( v)
Value:
CRITICAL2("E002 - Using of an undefined variable", v );

Definition at line 3446 of file ugbc.h.

◆ CRITICAL_VARIABLE_ALREADY_DEFINED

#define CRITICAL_VARIABLE_ALREADY_DEFINED ( f)
Value:
CRITICAL2("E159 - variable already defined", f );

Definition at line 3603 of file ugbc.h.

◆ CRITICAL_VARIABLE_ALREADY_DEFINED_AS_CONSTANT

#define CRITICAL_VARIABLE_ALREADY_DEFINED_AS_CONSTANT ( f)
Value:
CRITICAL2("E140 - cannot define a constant with the same name of a variable", f );

Definition at line 3584 of file ugbc.h.

◆ CRITICAL_VARIABLE_CANNOT_DIRECT_ASSIGN_DIFFERENT_TYPE

#define CRITICAL_VARIABLE_CANNOT_DIRECT_ASSIGN_DIFFERENT_TYPE ( t1,
t2 )
Value:
CRITICAL3("E252 - cannot direct assign between different types", t1, t2 );

Definition at line 3698 of file ugbc.h.

◆ CRITICAL_VARIABLE_CANNOT_DIRECT_ASSIGN_WRONG_TYPE

#define CRITICAL_VARIABLE_CANNOT_DIRECT_ASSIGN_WRONG_TYPE ( v,
t )
Value:
CRITICAL3("E292 - cannot direct assign this type", v, t );

Definition at line 3741 of file ugbc.h.

◆ CRITICAL_VARIABLE_IMPORTED_DIFFERENT_TYPE

#define CRITICAL_VARIABLE_IMPORTED_DIFFERENT_TYPE ( f)
Value:
CRITICAL2("E155 - variable imported with a different type", f );

Definition at line 3599 of file ugbc.h.

◆ CRITICAL_VARIABLE_REDEFINED_DIFFERENT_TYPE

#define CRITICAL_VARIABLE_REDEFINED_DIFFERENT_TYPE ( f)
Value:
CRITICAL2("E154 - variable redefined with a different type", f );

Definition at line 3598 of file ugbc.h.

◆ CRITICAL_VARIABLE_TYPE_NEEDED

#define CRITICAL_VARIABLE_TYPE_NEEDED ( n)
Value:
CRITICAL2("E380 - variable TYPE is needed", n );

Definition at line 3831 of file ugbc.h.

◆ CRITICAL_VARIABLE_UNDEFINED

#define CRITICAL_VARIABLE_UNDEFINED ( f)
Value:
CRITICAL2("E158 - undefined variable (OPTION EXPLICIT ON)", f );

Definition at line 3602 of file ugbc.h.

◆ CRITICAL_VECTOR_GET_X_VECTOR_NEEDED

#define CRITICAL_VECTOR_GET_X_VECTOR_NEEDED ( v)
Value:
CRITICAL2("E372 - X needs a VECTOR variable", v );

Definition at line 3823 of file ugbc.h.

◆ CRITICAL_VECTOR_GET_Y_VECTOR_NEEDED

#define CRITICAL_VECTOR_GET_Y_VECTOR_NEEDED ( v)
Value:
CRITICAL2("E373 - Y needs a VECTOR variable", v );

Definition at line 3824 of file ugbc.h.

◆ CRITICAL_WAIT_CYCLES_PARALLEL_CANNOT_BE_CALLED_OUTSIDE_PROCEDURE

#define CRITICAL_WAIT_CYCLES_PARALLEL_CANNOT_BE_CALLED_OUTSIDE_PROCEDURE ( )
Value:
CRITICAL("E315 - cannot call WAIT CYCLES PARALLEL outside a PARALLEL procedure" );

Definition at line 3766 of file ugbc.h.

◆ CRITICAL_WAIT_INVALID_VALUE

#define CRITICAL_WAIT_INVALID_VALUE ( t)
Value:
CRITICAL2i("E396 - invalid value for WAIT LINE inside the COPPER list", t );

Definition at line 3847 of file ugbc.h.

◆ CRITICAL_WAIT_PARALLEL_CANNOT_BE_CALLED_OUTSIDE_PROCEDURE

#define CRITICAL_WAIT_PARALLEL_CANNOT_BE_CALLED_OUTSIDE_PROCEDURE ( )
Value:
CRITICAL("E312 - cannot call WAIT PARALLEL outside a PARALLEL procedure" );

Definition at line 3763 of file ugbc.h.

◆ CRITICAL_WAIT_UNTIL_CANNOT_BE_CALLED_OUTSIDE_PROCEDURE

#define CRITICAL_WAIT_UNTIL_CANNOT_BE_CALLED_OUTSIDE_PROCEDURE ( )
Value:
CRITICAL("E313 - cannot call WAIT UNTIL outside a PARALLEL procedure" );

Definition at line 3764 of file ugbc.h.

◆ CRITICAL_WAIT_WHILE_CANNOT_BE_CALLED_OUTSIDE_PROCEDURE

#define CRITICAL_WAIT_WHILE_CANNOT_BE_CALLED_OUTSIDE_PROCEDURE ( )
Value:
CRITICAL("E314 - cannot call WAIT WHILE outside a PARALLEL procedure" );

Definition at line 3765 of file ugbc.h.

◆ CRITICAL_WEND_WITHOUT_WHILE

#define CRITICAL_WEND_WITHOUT_WHILE ( )
Value:
CRITICAL("E143 - WEND without WHILE" );

Definition at line 3587 of file ugbc.h.

◆ CRITICAL_WHILE_WITHOUT_WEND

#define CRITICAL_WHILE_WITHOUT_WEND ( )
Value:
CRITICAL("E223 - WHILE without WEND" );

Definition at line 3669 of file ugbc.h.

◆ CRITICAL_WRONG_NEXT_INDEX

#define CRITICAL_WRONG_NEXT_INDEX ( v)
Value:
CRITICAL2("E253 - NEXT with a wrong FOR index", v );

Definition at line 3699 of file ugbc.h.

◆ CRITICAL_XOR_INPLACE_UNSUPPORTED

#define CRITICAL_XOR_INPLACE_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E308 - cannot use inplace XOR with this datatype", v, t );

Definition at line 3759 of file ugbc.h.

◆ CRITICAL_XOR_UNSUPPORTED

#define CRITICAL_XOR_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E136 - Bitwise XOR unsupported for variable of given datatype", v, t );

Definition at line 3580 of file ugbc.h.

◆ CRITICAL_YIELD_CANNOT_BE_CALLED_OUTSIDE_PROCEDURE

#define CRITICAL_YIELD_CANNOT_BE_CALLED_OUTSIDE_PROCEDURE ( )
Value:
CRITICAL("E311 - cannot call YIELD outside a PARALLEL procedure" );

Definition at line 3762 of file ugbc.h.

◆ CRITICALB

#define CRITICALB ( s)
Value:
fprintf(stderr, "CRITICAL ERROR during building of %s:\n\t%s\n", ((struct _Environment *)_environment)->sourceFileName, s ); target_cleanup( ((struct _Environment *)_environment) ); exit( EXIT_FAILURE );
void target_cleanup(Environment *_environment)
Definition _build.c:343

Definition at line 3861 of file ugbc.h.

◆ CRITICALB2

#define CRITICALB2 ( s,
v )
Value:
fprintf(stderr, "CRITICAL ERROR during building of %s:\n\t%s (%s)\n", ((struct _Environment *)_environment)->sourceFileName, s, v ); target_cleanup( ((struct _Environment *)_environment) ); exit( EXIT_FAILURE );

Definition at line 3862 of file ugbc.h.

◆ CRITICALB2i

#define CRITICALB2i ( s,
v )
Value:
fprintf(stderr, "CRITICAL ERROR during building of %s:\n\t%s (%d)\n", ((struct _Environment *)_environment)->sourceFileName, s, v ); target_cleanup( ((struct _Environment *)_environment) ); exit( EXIT_FAILURE );

Definition at line 3863 of file ugbc.h.

◆ CRITICALB3

#define CRITICALB3 ( s,
v1,
v2 )
Value:
fprintf(stderr, "CRITICAL ERROR during building of %s:\n\t%s (%s, %s)\n", ((struct _Environment *)_environment)->sourceFileName, s, v1, v2 ); target_cleanup( ((struct _Environment *)_environment) ); exit( EXIT_FAILURE );

Definition at line 3864 of file ugbc.h.

◆ CRITICALB3i

#define CRITICALB3i ( s,
v1,
v2 )
Value:
fprintf(stderr, "CRITICAL ERROR during building of %s:\n\t%s (%s, %d)\n", ((struct _Environment *)_environment)->sourceFileName, s, v1, v2 ); target_cleanup( ((struct _Environment *)_environment) ); exit( EXIT_FAILURE );

Definition at line 3865 of file ugbc.h.

◆ CRITICALB4si

#define CRITICALB4si ( s,
v,
d1,
d2 )
Value:
fprintf(stderr, "CRITICAL ERROR during building of %s:\n\t%s (%s, %d, %d)\n", ((struct _Environment *)_environment)->sourceFileName, s, v, d1, d2 ); target_cleanup( ((struct _Environment *)_environment) ); exit( EXIT_FAILURE );

Definition at line 3866 of file ugbc.h.

◆ defaultExtension

#define defaultExtension   "xex"

Definition at line 6236 of file ugbc.h.

◆ deploy

#define deploy ( s,
e )
Value:
if ( ! _environment->deployed.s ) { \
int ignoreEmptyProcedure = _environment->emptyProcedure; \
_environment->emptyProcedure = 0; \
cpu_jump( _environment, #s "_after" ); \
outembedded0(e); \
cpu_label( _environment, #s "_after" ); \
_environment->emptyProcedure = ignoreEmptyProcedure; \
_environment->deployed.s = 1; \
}

Definition at line 4288 of file ugbc.h.

◆ deploy_begin

#define deploy_begin ( s)
Value:
if ( ! _environment->deployed.s ) { \
int ignoreProtothread = _environment->protothread; \
int ignoreEmptyProcedure = _environment->emptyProcedure; \
_environment->protothread = 0; \
_environment->emptyProcedure = 0; \
cpu_jump( _environment, #s "_after" ); \
cpu_label( _environment, "lib_" #s ); \

Definition at line 4356 of file ugbc.h.

◆ deploy_deferred

#define deploy_deferred ( s,
e )
Value:
if ( ! _environment->deployed.s ) { \
outembeddeddef0(e); \
_environment->deployed.s = 1; \
}

Definition at line 4302 of file ugbc.h.

◆ deploy_deferred_embedded

#define deploy_deferred_embedded ( s,
e )
Value:
if ( ! _environment->deployed.embedded.s ) { \
outembeddeddef0(e); \
_environment->deployed.embedded.s = 1; \
}

Definition at line 4350 of file ugbc.h.

◆ deploy_deferred_with_vars

#define deploy_deferred_with_vars ( s,
e,
v )
Value:
if ( ! _environment->deployed.s ) { \
outembeddeddef0(e); \
v(_environment);\
_environment->deployed.s = 1; \
}

Definition at line 4332 of file ugbc.h.

◆ deploy_embedded

#define deploy_embedded ( s,
e )
Value:
if ( ! _environment->deployed.embedded.s ) { \
int ignoreEmptyProcedure = _environment->emptyProcedure; \
_environment->emptyProcedure = 0; \
cpu_jump( _environment, #s "_after" ); \
outembedded0(e); \
cpu_label( _environment, #s "_after" ); \
_environment->emptyProcedure = ignoreEmptyProcedure; \
_environment->deployed.embedded.s = 1; \
}

Definition at line 4339 of file ugbc.h.

◆ deploy_end

#define deploy_end ( s)
Value:
cpu_label( _environment, #s "_after" ); \
_environment->protothread = ignoreProtothread; \
_environment->emptyProcedure = ignoreEmptyProcedure; \
_environment->deployed.s = 1; \
}
void cpu_label(Environment *_environment, char *_label)
Definition 6309.c:356

Definition at line 4365 of file ugbc.h.

◆ deploy_inplace

#define deploy_inplace ( s,
e )
Value:
if ( ! _environment->deployed.s ) { \
outembedded0(e); \
}

Definition at line 4308 of file ugbc.h.

◆ deploy_inplace_preferred

#define deploy_inplace_preferred ( s,
e )
Value:
if ( _environment->deployed.s ) { \
_environment->deployed.s = 0; \
deploy_inplace(s,e); \
_environment->deployed.s = 1; \
}

Definition at line 4313 of file ugbc.h.

◆ deploy_preferred

#define deploy_preferred ( s,
e )
Value:
_environment->deployed.s = 1; \

Definition at line 4299 of file ugbc.h.

◆ deploy_with_vars

#define deploy_with_vars ( s,
e,
v )
Value:
if ( ! _environment->deployed.s ) { \
int ignoreEmptyProcedure = _environment->emptyProcedure; \
_environment->emptyProcedure = 0; \
cpu_jump( _environment, #s "_after" ); \
outembedded0(e); \
v(_environment);\
cpu_label( _environment, #s "_after" ); \
_environment->emptyProcedure = ignoreEmptyProcedure; \
_environment->deployed.s = 1; \
}

Definition at line 4320 of file ugbc.h.

◆ DOJO_CMD_CREATE_PORT

#define DOJO_CMD_CREATE_PORT   0x01

Definition at line 4731 of file ugbc.h.

◆ DOJO_CMD_GET_MESSAGE

#define DOJO_CMD_GET_MESSAGE   0x06

Definition at line 4736 of file ugbc.h.

◆ DOJO_CMD_OPEN_PORT

#define DOJO_CMD_OPEN_PORT   0x02

Definition at line 4732 of file ugbc.h.

◆ DOJO_CMD_PEEK_MESSAGE

#define DOJO_CMD_PEEK_MESSAGE   0x05

Definition at line 4735 of file ugbc.h.

◆ DOJO_CMD_PING

#define DOJO_CMD_PING   0x00

Definition at line 4730 of file ugbc.h.

◆ DOJO_CMD_PUT_MESSAGE

#define DOJO_CMD_PUT_MESSAGE   0x04

Definition at line 4734 of file ugbc.h.

◆ DOJO_CMD_SELECT_PORT

#define DOJO_CMD_SELECT_PORT   0x03

Definition at line 4733 of file ugbc.h.

◆ DOJO_GET_MESSAGE_MISSING_VARIABLE

#define DOJO_GET_MESSAGE_MISSING_VARIABLE ( )
Value:
CRITICAL("E370 - missing variable for GET MESSAGE" );

Definition at line 3821 of file ugbc.h.

◆ DOJO_OPEN_PORT_STRING_REQUIRED

#define DOJO_OPEN_PORT_STRING_REQUIRED ( v,
t )
Value:
CRITICAL3("E364 - port name for DOJO OPEN PORT must be a string", v, t );

Definition at line 3815 of file ugbc.h.

◆ DOJO_PEEK_MESSAGE_DOJOKA_REQUIRED

#define DOJO_PEEK_MESSAGE_DOJOKA_REQUIRED ( v,
t )
Value:
CRITICAL3("E367 - port for PEEK MESSAGE must be opened / created", v, t );

Definition at line 3818 of file ugbc.h.

◆ DOJO_PUT_MESSAGE_ARRAY_SIZE_UNSUPPORTED

#define DOJO_PUT_MESSAGE_ARRAY_SIZE_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E369 - array is too large to send as message", v, t );

Definition at line 3820 of file ugbc.h.

◆ DOJO_PUT_MESSAGE_ARRAY_TYPE_UNSUPPORTED

#define DOJO_PUT_MESSAGE_ARRAY_TYPE_UNSUPPORTED ( v,
t )
Value:
CRITICAL3("E368 - type of array's elements is not supported", v, t );

Definition at line 3819 of file ugbc.h.

◆ DOJO_PUT_MESSAGE_DOJOKA_REQUIRED

#define DOJO_PUT_MESSAGE_DOJOKA_REQUIRED ( v,
t )
Value:
CRITICAL3("E365 - port for PUT MESSAGE must be opened / created", v, t );

Definition at line 3816 of file ugbc.h.

◆ DOJO_PUT_MESSAGE_MISSING_VARIABLE

#define DOJO_PUT_MESSAGE_MISSING_VARIABLE ( )
Value:
CRITICAL("E371 - PUT MESSAGE needs a DOJOKA variable" );

Definition at line 3822 of file ugbc.h.

◆ DOJO_PUT_MESSAGE_STRING_REQUIRED

#define DOJO_PUT_MESSAGE_STRING_REQUIRED ( v,
t )
Value:
CRITICAL3("E366 - message for PUT MESSAGE must be a string", v, t );

Definition at line 3817 of file ugbc.h.

◆ done

#define done ( )
Value:
}

Definition at line 4389 of file ugbc.h.

◆ embedded

#define embedded ( s,
e )
Value:
} else { \
deploy_embedded(s,e) \

Definition at line 4385 of file ugbc.h.

◆ ENDIANESSVALUE

#define ENDIANESSVALUE   0 /* little endian */

Definition at line 6497 of file ugbc.h.

◆ FLAG_COMPRESSED

#define FLAG_COMPRESSED   256

Definition at line 4570 of file ugbc.h.

◆ FLAG_DOUBLE_Y

#define FLAG_DOUBLE_Y   64

Definition at line 4568 of file ugbc.h.

◆ FLAG_EXACT

#define FLAG_EXACT   128

Definition at line 4569 of file ugbc.h.

◆ FLAG_FLIP_X

#define FLAG_FLIP_X   1

Definition at line 4553 of file ugbc.h.

◆ FLAG_FLIP_Y

#define FLAG_FLIP_Y   2

Definition at line 4554 of file ugbc.h.

◆ FLAG_OVERLAYED

#define FLAG_OVERLAYED   8

Definition at line 4556 of file ugbc.h.

◆ FLAG_ROLL_X

#define FLAG_ROLL_X   4

Definition at line 4555 of file ugbc.h.

◆ FLAG_ROLL_Y

#define FLAG_ROLL_Y   16

Definition at line 4557 of file ugbc.h.

◆ FLAG_TRANSPARENCY

#define FLAG_TRANSPARENCY   32

Definition at line 4567 of file ugbc.h.

◆ FLAG_WITH_PALETTE

#define FLAG_WITH_PALETTE   512

Definition at line 4571 of file ugbc.h.

◆ FONT_DEFAULT_SCHEMA

#define FONT_DEFAULT_SCHEMA   FONT_SCHEMA_EMBEDDED

Definition at line 583 of file ugbc.h.

◆ FONT_SCHEMA_ALPHA

#define FONT_SCHEMA_ALPHA   4

Definition at line 581 of file ugbc.h.

◆ FONT_SCHEMA_ASCII

#define FONT_SCHEMA_ASCII   5

Definition at line 582 of file ugbc.h.

◆ FONT_SCHEMA_COMPLETE

#define FONT_SCHEMA_COMPLETE   3

Definition at line 580 of file ugbc.h.

◆ FONT_SCHEMA_EMBEDDED

#define FONT_SCHEMA_EMBEDDED   0

Definition at line 577 of file ugbc.h.

◆ FONT_SCHEMA_SEMIGRAPHIC

#define FONT_SCHEMA_SEMIGRAPHIC   2

Definition at line 579 of file ugbc.h.

◆ FONT_SCHEMA_STANDARD

#define FONT_SCHEMA_STANDARD   1

Definition at line 578 of file ugbc.h.

◆ FUNCTION_STUB

#define FUNCTION_STUB ( t)
Value:
Variable * result = variable_temporary( _environment, t, "(stub)" ); return result;
Variable * variable_temporary(Environment *_environment, VariableType _type, char *_meaning)
Define a temporary variable.
struct _Variable Variable
Structure of a single variable.

Definition at line 5147 of file ugbc.h.

◆ IMAGE_GET_HEIGHT

#define IMAGE_GET_HEIGHT ( buffer,
offset,
height )
Value:
if ( IMAGE_HEIGHT_SIZE == 1 ) { \
height = buffer[offset+IMAGE_HEIGHT_OFFSET]; \
} else { \
height = buffer[offset+IMAGE_HEIGHT_OFFSET] + 256 * buffer[offset+IMAGE_HEIGHT_OFFSET+1]; \
}
#define IMAGE_HEIGHT_SIZE
Definition 6847.h:202
#define IMAGE_HEIGHT_OFFSET
Definition 6847.h:203
int offset
Definition _optimizer.c:681

Definition at line 6504 of file ugbc.h.

◆ IMAGE_GET_WIDTH

#define IMAGE_GET_WIDTH ( buffer,
offset,
width )
Value:
if ( IMAGE_WIDTH_SIZE == 1 ) { \
width = buffer[offset+IMAGE_WIDTH_OFFSET]; \
} else { \
width = buffer[offset+IMAGE_WIDTH_OFFSET] + 256 * buffer[offset+IMAGE_WIDTH_OFFSET+1]; \
}
#define IMAGE_WIDTH_SIZE
Definition 6847.h:200
#define IMAGE_WIDTH_OFFSET
Definition 6847.h:201

Definition at line 6498 of file ugbc.h.

◆ IMF_INSTRUMENT_ACCORDION

#define IMF_INSTRUMENT_ACCORDION   0x16

Definition at line 4595 of file ugbc.h.

◆ IMF_INSTRUMENT_ACOUSTIC_BASS

#define IMF_INSTRUMENT_ACOUSTIC_BASS   0x21

Definition at line 4606 of file ugbc.h.

◆ IMF_INSTRUMENT_ACOUSTIC_GRAND_PIANO

#define IMF_INSTRUMENT_ACOUSTIC_GRAND_PIANO   0x01

Definition at line 4574 of file ugbc.h.

◆ IMF_INSTRUMENT_ACOUSTIC_GUITAR_NYLON

#define IMF_INSTRUMENT_ACOUSTIC_GUITAR_NYLON   0x19

Definition at line 4598 of file ugbc.h.

◆ IMF_INSTRUMENT_ACOUSTIC_GUITAR_STEEL

#define IMF_INSTRUMENT_ACOUSTIC_GUITAR_STEEL   0x1A

Definition at line 4599 of file ugbc.h.

◆ IMF_INSTRUMENT_AGOGO

#define IMF_INSTRUMENT_AGOGO   0x72

Definition at line 4687 of file ugbc.h.

◆ IMF_INSTRUMENT_ALTO_SAX

#define IMF_INSTRUMENT_ALTO_SAX   0x42

Definition at line 4639 of file ugbc.h.

◆ IMF_INSTRUMENT_APPLAUSE

#define IMF_INSTRUMENT_APPLAUSE   0x7F

Definition at line 4700 of file ugbc.h.

◆ IMF_INSTRUMENT_BAG_PIPE

#define IMF_INSTRUMENT_BAG_PIPE   0x6E

Definition at line 4683 of file ugbc.h.

◆ IMF_INSTRUMENT_BANJO

#define IMF_INSTRUMENT_BANJO   0x6A

Definition at line 4679 of file ugbc.h.

◆ IMF_INSTRUMENT_BARITONE_SAX

#define IMF_INSTRUMENT_BARITONE_SAX   0x44

Definition at line 4641 of file ugbc.h.

◆ IMF_INSTRUMENT_BASSOON

#define IMF_INSTRUMENT_BASSOON   0x47

Definition at line 4644 of file ugbc.h.

◆ IMF_INSTRUMENT_BIRD_TWEET

#define IMF_INSTRUMENT_BIRD_TWEET   0x7C

Definition at line 4697 of file ugbc.h.

◆ IMF_INSTRUMENT_BLOWN_BOTTLE

#define IMF_INSTRUMENT_BLOWN_BOTTLE   0x4D

Definition at line 4650 of file ugbc.h.

◆ IMF_INSTRUMENT_BRASS_SECTION

#define IMF_INSTRUMENT_BRASS_SECTION   0x3E

Definition at line 4635 of file ugbc.h.

◆ IMF_INSTRUMENT_BREATH_NOISE

#define IMF_INSTRUMENT_BREATH_NOISE   0x7A

Definition at line 4695 of file ugbc.h.

◆ IMF_INSTRUMENT_BRIGHT_ACOUSTIC_PIANO

#define IMF_INSTRUMENT_BRIGHT_ACOUSTIC_PIANO   0x02

Definition at line 4575 of file ugbc.h.

◆ IMF_INSTRUMENT_CELESTA

#define IMF_INSTRUMENT_CELESTA   0x09

Definition at line 4582 of file ugbc.h.

◆ IMF_INSTRUMENT_CELLO

#define IMF_INSTRUMENT_CELLO   0x2B

Definition at line 4616 of file ugbc.h.

◆ IMF_INSTRUMENT_CHOIR_AAHS

#define IMF_INSTRUMENT_CHOIR_AAHS   0x35

Definition at line 4626 of file ugbc.h.

◆ IMF_INSTRUMENT_CHURCH_ORGAN

#define IMF_INSTRUMENT_CHURCH_ORGAN   0x14

Definition at line 4593 of file ugbc.h.

◆ IMF_INSTRUMENT_CLARINET

#define IMF_INSTRUMENT_CLARINET   0x48

Definition at line 4645 of file ugbc.h.

◆ IMF_INSTRUMENT_CLAVI

#define IMF_INSTRUMENT_CLAVI   0x08

Definition at line 4581 of file ugbc.h.

◆ IMF_INSTRUMENT_CONTRABASS

#define IMF_INSTRUMENT_CONTRABASS   0x2C

Definition at line 4617 of file ugbc.h.

◆ IMF_INSTRUMENT_DISTORTION_GUITAR

#define IMF_INSTRUMENT_DISTORTION_GUITAR   0x1F

Definition at line 4604 of file ugbc.h.

◆ IMF_INSTRUMENT_DRAWBAR_ORGAN

#define IMF_INSTRUMENT_DRAWBAR_ORGAN   0x11

Definition at line 4590 of file ugbc.h.

◆ IMF_INSTRUMENT_DULCIMER

#define IMF_INSTRUMENT_DULCIMER   0x10

Definition at line 4589 of file ugbc.h.

◆ IMF_INSTRUMENT_ELECTRIC_BASS_FINGER

#define IMF_INSTRUMENT_ELECTRIC_BASS_FINGER   0x22

Definition at line 4607 of file ugbc.h.

◆ IMF_INSTRUMENT_ELECTRIC_BASS_PICK

#define IMF_INSTRUMENT_ELECTRIC_BASS_PICK   0x23

Definition at line 4608 of file ugbc.h.

◆ IMF_INSTRUMENT_ELECTRIC_GRAND_PIANO

#define IMF_INSTRUMENT_ELECTRIC_GRAND_PIANO   0x03

Definition at line 4576 of file ugbc.h.

◆ IMF_INSTRUMENT_ELECTRIC_GUITAR_CLEAN

#define IMF_INSTRUMENT_ELECTRIC_GUITAR_CLEAN   0x1C

Definition at line 4601 of file ugbc.h.

◆ IMF_INSTRUMENT_ELECTRIC_GUITAR_JAZZ

#define IMF_INSTRUMENT_ELECTRIC_GUITAR_JAZZ   0x1B

Definition at line 4600 of file ugbc.h.

◆ IMF_INSTRUMENT_ELECTRIC_GUITAR_MUTED

#define IMF_INSTRUMENT_ELECTRIC_GUITAR_MUTED   0x1D

Definition at line 4602 of file ugbc.h.

◆ IMF_INSTRUMENT_ELECTRIC_PIANO1

#define IMF_INSTRUMENT_ELECTRIC_PIANO1   0x05

Definition at line 4578 of file ugbc.h.

◆ IMF_INSTRUMENT_ELECTRIC_PIANO2

#define IMF_INSTRUMENT_ELECTRIC_PIANO2   0x06

Definition at line 4579 of file ugbc.h.

◆ IMF_INSTRUMENT_ENGLISH_HORN

#define IMF_INSTRUMENT_ENGLISH_HORN   0x46

Definition at line 4643 of file ugbc.h.

◆ IMF_INSTRUMENT_EXPLOSION

#define IMF_INSTRUMENT_EXPLOSION   0x00

Definition at line 4573 of file ugbc.h.

◆ IMF_INSTRUMENT_FIDDLE

#define IMF_INSTRUMENT_FIDDLE   0x6F

Definition at line 4684 of file ugbc.h.

◆ IMF_INSTRUMENT_FLUTE

#define IMF_INSTRUMENT_FLUTE   0x4A

Definition at line 4647 of file ugbc.h.

◆ IMF_INSTRUMENT_FRENCH_HORN

#define IMF_INSTRUMENT_FRENCH_HORN   0x3D

Definition at line 4634 of file ugbc.h.

◆ IMF_INSTRUMENT_FRETLESS_BASS

#define IMF_INSTRUMENT_FRETLESS_BASS   0x24

Definition at line 4609 of file ugbc.h.

◆ IMF_INSTRUMENT_FX_1_RAIN

#define IMF_INSTRUMENT_FX_1_RAIN   0x61

Definition at line 4670 of file ugbc.h.

◆ IMF_INSTRUMENT_FX_2_SOUNDTRACK

#define IMF_INSTRUMENT_FX_2_SOUNDTRACK   0x62

Definition at line 4671 of file ugbc.h.

◆ IMF_INSTRUMENT_FX_3_CRYSTAL

#define IMF_INSTRUMENT_FX_3_CRYSTAL   0x63

Definition at line 4672 of file ugbc.h.

◆ IMF_INSTRUMENT_FX_4_ATMOSPHERE

#define IMF_INSTRUMENT_FX_4_ATMOSPHERE   0x64

Definition at line 4673 of file ugbc.h.

◆ IMF_INSTRUMENT_FX_5_BRIGHTNESS

#define IMF_INSTRUMENT_FX_5_BRIGHTNESS   0x65

Definition at line 4674 of file ugbc.h.

◆ IMF_INSTRUMENT_FX_6_GOBLINS

#define IMF_INSTRUMENT_FX_6_GOBLINS   0x66

Definition at line 4675 of file ugbc.h.

◆ IMF_INSTRUMENT_FX_7_ECHOES

#define IMF_INSTRUMENT_FX_7_ECHOES   0x67

Definition at line 4676 of file ugbc.h.

◆ IMF_INSTRUMENT_FX_8_SCI_FI

#define IMF_INSTRUMENT_FX_8_SCI_FI   0x68

Definition at line 4677 of file ugbc.h.

◆ IMF_INSTRUMENT_GLOCKENSPIEL

#define IMF_INSTRUMENT_GLOCKENSPIEL   0x0A

Definition at line 4583 of file ugbc.h.

◆ IMF_INSTRUMENT_GUITAR_FRET_NOISE

#define IMF_INSTRUMENT_GUITAR_FRET_NOISE   0x79

Definition at line 4694 of file ugbc.h.

◆ IMF_INSTRUMENT_GUITAR_HARMONICS

#define IMF_INSTRUMENT_GUITAR_HARMONICS   0x20

Definition at line 4605 of file ugbc.h.

◆ IMF_INSTRUMENT_GUNSHOT

#define IMF_INSTRUMENT_GUNSHOT   0x80

Definition at line 4701 of file ugbc.h.

◆ IMF_INSTRUMENT_HARMONICA

#define IMF_INSTRUMENT_HARMONICA   0x17

Definition at line 4596 of file ugbc.h.

◆ IMF_INSTRUMENT_HARPSICHORD

#define IMF_INSTRUMENT_HARPSICHORD   0x07

Definition at line 4580 of file ugbc.h.

◆ IMF_INSTRUMENT_HELICOPTER

#define IMF_INSTRUMENT_HELICOPTER   0x7E

Definition at line 4699 of file ugbc.h.

◆ IMF_INSTRUMENT_HONKY_TONK_PIANO

#define IMF_INSTRUMENT_HONKY_TONK_PIANO   0x04

Definition at line 4577 of file ugbc.h.

◆ IMF_INSTRUMENT_KALIMBA

#define IMF_INSTRUMENT_KALIMBA   0x6D

Definition at line 4682 of file ugbc.h.

◆ IMF_INSTRUMENT_KOTO

#define IMF_INSTRUMENT_KOTO   0x6C

Definition at line 4681 of file ugbc.h.

◆ IMF_INSTRUMENT_LEAD_1_SQUARE

#define IMF_INSTRUMENT_LEAD_1_SQUARE   0x51

Definition at line 4654 of file ugbc.h.

◆ IMF_INSTRUMENT_LEAD_2_SAWTOOTH

#define IMF_INSTRUMENT_LEAD_2_SAWTOOTH   0x52

Definition at line 4655 of file ugbc.h.

◆ IMF_INSTRUMENT_LEAD_3_CALLIOPE

#define IMF_INSTRUMENT_LEAD_3_CALLIOPE   0x53

Definition at line 4656 of file ugbc.h.

◆ IMF_INSTRUMENT_LEAD_4_CHIFF

#define IMF_INSTRUMENT_LEAD_4_CHIFF   0x54

Definition at line 4657 of file ugbc.h.

◆ IMF_INSTRUMENT_LEAD_5_CHARANG

#define IMF_INSTRUMENT_LEAD_5_CHARANG   0x55

Definition at line 4658 of file ugbc.h.

◆ IMF_INSTRUMENT_LEAD_6_VOICE

#define IMF_INSTRUMENT_LEAD_6_VOICE   0x56

Definition at line 4659 of file ugbc.h.

◆ IMF_INSTRUMENT_LEAD_7_FIFTHS

#define IMF_INSTRUMENT_LEAD_7_FIFTHS   0x57

Definition at line 4660 of file ugbc.h.

◆ IMF_INSTRUMENT_LEAD_8_BASS_LEAD

#define IMF_INSTRUMENT_LEAD_8_BASS_LEAD   0x58

Definition at line 4661 of file ugbc.h.

◆ IMF_INSTRUMENT_MARIMBA

#define IMF_INSTRUMENT_MARIMBA   0x0D

Definition at line 4586 of file ugbc.h.

◆ IMF_INSTRUMENT_MELODIC_TOM

#define IMF_INSTRUMENT_MELODIC_TOM   0x76

Definition at line 4691 of file ugbc.h.

◆ IMF_INSTRUMENT_MUSIC_BOX

#define IMF_INSTRUMENT_MUSIC_BOX   0x0B

Definition at line 4584 of file ugbc.h.

◆ IMF_INSTRUMENT_MUTED_TRUMPET

#define IMF_INSTRUMENT_MUTED_TRUMPET   0x3C

Definition at line 4633 of file ugbc.h.

◆ IMF_INSTRUMENT_OBOE

#define IMF_INSTRUMENT_OBOE   0x45

Definition at line 4642 of file ugbc.h.

◆ IMF_INSTRUMENT_OCARINA

#define IMF_INSTRUMENT_OCARINA   0x50

Definition at line 4653 of file ugbc.h.

◆ IMF_INSTRUMENT_ORCHESTRA_HIT

#define IMF_INSTRUMENT_ORCHESTRA_HIT   0x38

Definition at line 4629 of file ugbc.h.

◆ IMF_INSTRUMENT_ORCHESTRAL_HARP

#define IMF_INSTRUMENT_ORCHESTRAL_HARP   0x2F

Definition at line 4620 of file ugbc.h.

◆ IMF_INSTRUMENT_OVERDRIVEN_GUITAR

#define IMF_INSTRUMENT_OVERDRIVEN_GUITAR   0x1E

Definition at line 4603 of file ugbc.h.

◆ IMF_INSTRUMENT_PAD_1_NEW_AGE

#define IMF_INSTRUMENT_PAD_1_NEW_AGE   0x59

Definition at line 4662 of file ugbc.h.

◆ IMF_INSTRUMENT_PAD_2_WARM

#define IMF_INSTRUMENT_PAD_2_WARM   0x5A

Definition at line 4663 of file ugbc.h.

◆ IMF_INSTRUMENT_PAD_3_POLYSYNTH

#define IMF_INSTRUMENT_PAD_3_POLYSYNTH   0x5B

Definition at line 4664 of file ugbc.h.

◆ IMF_INSTRUMENT_PAD_4_CHOIR

#define IMF_INSTRUMENT_PAD_4_CHOIR   0x5C

Definition at line 4665 of file ugbc.h.

◆ IMF_INSTRUMENT_PAD_5_BOWED

#define IMF_INSTRUMENT_PAD_5_BOWED   0x5D

Definition at line 4666 of file ugbc.h.

◆ IMF_INSTRUMENT_PAD_6_METALLIC

#define IMF_INSTRUMENT_PAD_6_METALLIC   0x5E

Definition at line 4667 of file ugbc.h.

◆ IMF_INSTRUMENT_PAD_7_HALO

#define IMF_INSTRUMENT_PAD_7_HALO   0x5F

Definition at line 4668 of file ugbc.h.

◆ IMF_INSTRUMENT_PAD_8_SWEEP

#define IMF_INSTRUMENT_PAD_8_SWEEP   0x60

Definition at line 4669 of file ugbc.h.

◆ IMF_INSTRUMENT_PAN_FLUTE

#define IMF_INSTRUMENT_PAN_FLUTE   0x4C

Definition at line 4649 of file ugbc.h.

◆ IMF_INSTRUMENT_PERCUSSIVE_ORGAN

#define IMF_INSTRUMENT_PERCUSSIVE_ORGAN   0x12

Definition at line 4591 of file ugbc.h.

◆ IMF_INSTRUMENT_PICCOLO

#define IMF_INSTRUMENT_PICCOLO   0x49

Definition at line 4646 of file ugbc.h.

◆ IMF_INSTRUMENT_PIZZICATO_STRINGS

#define IMF_INSTRUMENT_PIZZICATO_STRINGS   0x2E

Definition at line 4619 of file ugbc.h.

◆ IMF_INSTRUMENT_RECORDER

#define IMF_INSTRUMENT_RECORDER   0x4B

Definition at line 4648 of file ugbc.h.

◆ IMF_INSTRUMENT_REED_ORGAN

#define IMF_INSTRUMENT_REED_ORGAN   0x15

Definition at line 4594 of file ugbc.h.

◆ IMF_INSTRUMENT_REVERSE_CYMBAL

#define IMF_INSTRUMENT_REVERSE_CYMBAL   0x78

Definition at line 4693 of file ugbc.h.

◆ IMF_INSTRUMENT_ROCK_ORGAN

#define IMF_INSTRUMENT_ROCK_ORGAN   0x13

Definition at line 4592 of file ugbc.h.

◆ IMF_INSTRUMENT_SEASHORE

#define IMF_INSTRUMENT_SEASHORE   0x7B

Definition at line 4696 of file ugbc.h.

◆ IMF_INSTRUMENT_SHAKUHACHI

#define IMF_INSTRUMENT_SHAKUHACHI   0x4E

Definition at line 4651 of file ugbc.h.

◆ IMF_INSTRUMENT_SHAMISEN

#define IMF_INSTRUMENT_SHAMISEN   0x6B

Definition at line 4680 of file ugbc.h.

◆ IMF_INSTRUMENT_SHANAI

#define IMF_INSTRUMENT_SHANAI   0x70

Definition at line 4685 of file ugbc.h.

◆ IMF_INSTRUMENT_SITAR

#define IMF_INSTRUMENT_SITAR   0x69

Definition at line 4678 of file ugbc.h.

◆ IMF_INSTRUMENT_SLAP_BASS_1

#define IMF_INSTRUMENT_SLAP_BASS_1   0x25

Definition at line 4610 of file ugbc.h.

◆ IMF_INSTRUMENT_SLAP_BASS_2

#define IMF_INSTRUMENT_SLAP_BASS_2   0x26

Definition at line 4611 of file ugbc.h.

◆ IMF_INSTRUMENT_SOPRANO_SAX

#define IMF_INSTRUMENT_SOPRANO_SAX   0x41

Definition at line 4638 of file ugbc.h.

◆ IMF_INSTRUMENT_STEEL_DRUMS

#define IMF_INSTRUMENT_STEEL_DRUMS   0x73

Definition at line 4688 of file ugbc.h.

◆ IMF_INSTRUMENT_STRING_ENSEMBLE_1

#define IMF_INSTRUMENT_STRING_ENSEMBLE_1   0x31

Definition at line 4622 of file ugbc.h.

◆ IMF_INSTRUMENT_STRING_ENSEMBLE_2

#define IMF_INSTRUMENT_STRING_ENSEMBLE_2   0x32

Definition at line 4623 of file ugbc.h.

◆ IMF_INSTRUMENT_SYNTH_BASS_1

#define IMF_INSTRUMENT_SYNTH_BASS_1   0x27

Definition at line 4612 of file ugbc.h.

◆ IMF_INSTRUMENT_SYNTH_BASS_2

#define IMF_INSTRUMENT_SYNTH_BASS_2   0x28

Definition at line 4613 of file ugbc.h.

◆ IMF_INSTRUMENT_SYNTH_DRUM

#define IMF_INSTRUMENT_SYNTH_DRUM   0x77

Definition at line 4692 of file ugbc.h.

◆ IMF_INSTRUMENT_SYNTH_VOICE

#define IMF_INSTRUMENT_SYNTH_VOICE   0x37

Definition at line 4628 of file ugbc.h.

◆ IMF_INSTRUMENT_SYNTHBRASS_1

#define IMF_INSTRUMENT_SYNTHBRASS_1   0x3F

Definition at line 4636 of file ugbc.h.

◆ IMF_INSTRUMENT_SYNTHBRASS_2

#define IMF_INSTRUMENT_SYNTHBRASS_2   0x40

Definition at line 4637 of file ugbc.h.

◆ IMF_INSTRUMENT_SYNTHSTRINGS_1

#define IMF_INSTRUMENT_SYNTHSTRINGS_1   0x33

Definition at line 4624 of file ugbc.h.

◆ IMF_INSTRUMENT_SYNTHSTRINGS_2

#define IMF_INSTRUMENT_SYNTHSTRINGS_2   0x34

Definition at line 4625 of file ugbc.h.

◆ IMF_INSTRUMENT_TAIKO_DRUM

#define IMF_INSTRUMENT_TAIKO_DRUM   0x75

Definition at line 4690 of file ugbc.h.

◆ IMF_INSTRUMENT_TANGO_ACCORDION

#define IMF_INSTRUMENT_TANGO_ACCORDION   0x18

Definition at line 4597 of file ugbc.h.

◆ IMF_INSTRUMENT_TELEPHONE_RING

#define IMF_INSTRUMENT_TELEPHONE_RING   0x7D

Definition at line 4698 of file ugbc.h.

◆ IMF_INSTRUMENT_TENOR_SAX

#define IMF_INSTRUMENT_TENOR_SAX   0x43

Definition at line 4640 of file ugbc.h.

◆ IMF_INSTRUMENT_TIMPANI

#define IMF_INSTRUMENT_TIMPANI   0x30

Definition at line 4621 of file ugbc.h.

◆ IMF_INSTRUMENT_TINKLE_BELL

#define IMF_INSTRUMENT_TINKLE_BELL   0x71

Definition at line 4686 of file ugbc.h.

◆ IMF_INSTRUMENT_TREMOLO_STRINGS

#define IMF_INSTRUMENT_TREMOLO_STRINGS   0x2D

Definition at line 4618 of file ugbc.h.

◆ IMF_INSTRUMENT_TROMBONE

#define IMF_INSTRUMENT_TROMBONE   0x3A

Definition at line 4631 of file ugbc.h.

◆ IMF_INSTRUMENT_TRUMPET

#define IMF_INSTRUMENT_TRUMPET   0x39

Definition at line 4630 of file ugbc.h.

◆ IMF_INSTRUMENT_TUBA

#define IMF_INSTRUMENT_TUBA   0x3B

Definition at line 4632 of file ugbc.h.

◆ IMF_INSTRUMENT_TUBULAR_BELLS

#define IMF_INSTRUMENT_TUBULAR_BELLS   0x0F

Definition at line 4588 of file ugbc.h.

◆ IMF_INSTRUMENT_VIBRAPHONE

#define IMF_INSTRUMENT_VIBRAPHONE   0x0C

Definition at line 4585 of file ugbc.h.

◆ IMF_INSTRUMENT_VIOLA

#define IMF_INSTRUMENT_VIOLA   0x2A

Definition at line 4615 of file ugbc.h.

◆ IMF_INSTRUMENT_VIOLIN

#define IMF_INSTRUMENT_VIOLIN   0x29

Definition at line 4614 of file ugbc.h.

◆ IMF_INSTRUMENT_VOICE_OOHS

#define IMF_INSTRUMENT_VOICE_OOHS   0x36

Definition at line 4627 of file ugbc.h.

◆ IMF_INSTRUMENT_WHISTLE

#define IMF_INSTRUMENT_WHISTLE   0x4F

Definition at line 4652 of file ugbc.h.

◆ IMF_INSTRUMENT_WOODBLOCK

#define IMF_INSTRUMENT_WOODBLOCK   0x74

Definition at line 4689 of file ugbc.h.

◆ IMF_INSTRUMENT_XYLOPHONE

#define IMF_INSTRUMENT_XYLOPHONE   0x0E

Definition at line 4587 of file ugbc.h.

◆ IMF_NOTE

#define IMF_NOTE ( o,
n )
Value:
( ( o ) * IMF_NOTE_COUNT + ( n ) )
#define IMF_NOTE_COUNT
Definition ugbc.h:4715

Definition at line 4728 of file ugbc.h.

◆ IMF_NOTE_A

#define IMF_NOTE_A   0x09

Definition at line 4712 of file ugbc.h.

◆ IMF_NOTE_AH

#define IMF_NOTE_AH   0x0A

Definition at line 4713 of file ugbc.h.

◆ IMF_NOTE_B

#define IMF_NOTE_B   0x0B

Definition at line 4714 of file ugbc.h.

◆ IMF_NOTE_C

#define IMF_NOTE_C   0x00

Definition at line 4703 of file ugbc.h.

◆ IMF_NOTE_CH

#define IMF_NOTE_CH   0x01

Definition at line 4704 of file ugbc.h.

◆ IMF_NOTE_COUNT

#define IMF_NOTE_COUNT   0x0C

Definition at line 4715 of file ugbc.h.

◆ IMF_NOTE_D

#define IMF_NOTE_D   0x02

Definition at line 4705 of file ugbc.h.

◆ IMF_NOTE_DH

#define IMF_NOTE_DH   0x03

Definition at line 4706 of file ugbc.h.

◆ IMF_NOTE_E

#define IMF_NOTE_E   0x04

Definition at line 4707 of file ugbc.h.

◆ IMF_NOTE_F

#define IMF_NOTE_F   0x05

Definition at line 4708 of file ugbc.h.

◆ IMF_NOTE_FH

#define IMF_NOTE_FH   0x06

Definition at line 4709 of file ugbc.h.

◆ IMF_NOTE_G

#define IMF_NOTE_G   0x07

Definition at line 4710 of file ugbc.h.

◆ IMF_NOTE_GH

#define IMF_NOTE_GH   0x08

Definition at line 4711 of file ugbc.h.

◆ IMF_OCTAVE_0

#define IMF_OCTAVE_0   0x00

Definition at line 4717 of file ugbc.h.

◆ IMF_OCTAVE_1

#define IMF_OCTAVE_1   0x01

Definition at line 4718 of file ugbc.h.

◆ IMF_OCTAVE_2

#define IMF_OCTAVE_2   0x02

Definition at line 4719 of file ugbc.h.

◆ IMF_OCTAVE_3

#define IMF_OCTAVE_3   0x03

Definition at line 4720 of file ugbc.h.

◆ IMF_OCTAVE_4

#define IMF_OCTAVE_4   0x04

Definition at line 4721 of file ugbc.h.

◆ IMF_OCTAVE_5

#define IMF_OCTAVE_5   0x05

Definition at line 4722 of file ugbc.h.

◆ IMF_OCTAVE_6

#define IMF_OCTAVE_6   0x06

Definition at line 4723 of file ugbc.h.

◆ IMF_OCTAVE_7

#define IMF_OCTAVE_7   0x07

Definition at line 4724 of file ugbc.h.

◆ IMF_OCTAVE_8

#define IMF_OCTAVE_8   0x08

Definition at line 4725 of file ugbc.h.

◆ IMF_OCTAVE_9

#define IMF_OCTAVE_9   0x09

Definition at line 4726 of file ugbc.h.

◆ inline

#define inline ( s)
Value:
_environment->embeddedStats.s++; \
if ( !_environment->embedded.s ) {

Definition at line 4372 of file ugbc.h.

◆ LOOP_TYPE_COUNT

#define LOOP_TYPE_COUNT   1

Maximum number of loop types.

Definition at line 1412 of file ugbc.h.

◆ MAKE_LABEL

#define MAKE_LABEL   char label[32]; sprintf( label, "_label%d", UNIQUE_ID);

Definition at line 3351 of file ugbc.h.

◆ MAX_ARRAY_DIMENSIONS

#define MAX_ARRAY_DIMENSIONS   256

Definition at line 566 of file ugbc.h.

◆ MAX_BUFFERED_OUTPUT

#define MAX_BUFFERED_OUTPUT   16

Definition at line 574 of file ugbc.h.

◆ MAX_CONSOLES

#define MAX_CONSOLES   4

Definition at line 565 of file ugbc.h.

◆ MAX_FRAMES_PER_STRIP

#define MAX_FRAMES_PER_STRIP   32

Definition at line 575 of file ugbc.h.

◆ MAX_NESTED_ARRAYS

#define MAX_NESTED_ARRAYS   16

Definition at line 570 of file ugbc.h.

◆ MAX_PALETTE

#define MAX_PALETTE   256

Definition at line 568 of file ugbc.h.

◆ MAX_PARAMETERS

#define MAX_PARAMETERS   256

Definition at line 567 of file ugbc.h.

◆ MAX_PROCEDURES

#define MAX_PROCEDURES   4096

Definition at line 571 of file ugbc.h.

◆ MAX_RESIDENT_SHAREDS

#define MAX_RESIDENT_SHAREDS   128

Definition at line 572 of file ugbc.h.

◆ MAX_TEMPORARY_STORAGE

#define MAX_TEMPORARY_STORAGE   1024

Definition at line 563 of file ugbc.h.

◆ MAX_TILESETS

#define MAX_TILESETS   256

Definition at line 569 of file ugbc.h.

◆ MEMORY_AREA_DEFINE

#define MEMORY_AREA_DEFINE ( _type,
_start,
_end )
Value:
{ \
MemoryArea * memoryArea = malloc( sizeof( MemoryArea ) ); \
memset( memoryArea, 0, sizeof( MemoryArea ) ) ; \
memoryArea->id = UNIQUE_ID; \
memoryArea->start = _start; \
memoryArea->current = _start; \
memoryArea->end = _end; \
memoryArea->size = (_end-_start); \
memoryArea->type = _type; \
memoryArea->next = NULL; \
MemoryArea * last = _environment->memoryAreas; \
if ( last ) { \
while( last->next ) { \
last = last->next; \
} \
last->next = memoryArea; \
} else { \
_environment->memoryAreas = memoryArea; \
} \
}
int start
Definition ugbc.h:737
int size
Definition ugbc.h:752
struct _MemoryArea * next
Definition ugbc.h:760
int id
Definition ugbc.h:732
MemoryAreaType type
Definition ugbc.h:757
int current
Definition ugbc.h:742
int end
Definition ugbc.h:747
void * malloc(YYSIZE_T)
#define UNIQUE_ID
Definition ugbc.h:3349
struct _MemoryArea MemoryArea

Definition at line 764 of file ugbc.h.

◆ no_embedded

#define no_embedded ( s)
Value:
} else { \
CRITICAL_UNABLE_TO_EMBED(#s); \
}

Definition at line 4380 of file ugbc.h.

◆ no_inline

#define no_inline ( s)
Value:
if ( !_environment->embedded.s ) { \
CRITICAL_UNABLE_TO_INLINE(#s); \

Definition at line 4376 of file ugbc.h.

◆ out0

#define out0 ( s)
Value:
outline0n(0, s, 0)
#define outline0n(n, s, r)
Definition ugbc.h:3913

Definition at line 4259 of file ugbc.h.

◆ out1

#define out1 ( s,
a )
Value:
outline1n(0, s, a, 0)
#define outline1n(n, s, a, r)
Definition ugbc.h:3930

Definition at line 4260 of file ugbc.h.

◆ out2

#define out2 ( s,
a,
b )
Value:
outline2n(0, s, a, b, 0)
#define outline2n(n, s, a, b, r)
Definition ugbc.h:3947

Definition at line 4261 of file ugbc.h.

◆ out3

#define out3 ( s,
a,
b,
c )
Value:
outline3n(0, s, a, b, c, 0)
#define outline3n(n, s, a, b, c, r)
Definition ugbc.h:3964

Definition at line 4262 of file ugbc.h.

◆ out4

#define out4 ( s,
a,
b,
c,
d )
Value:
outline4n(0, s, a, b, c, d, 0)
#define outline4n(n, s, a, b, c, d, r)
Definition ugbc.h:3981

Definition at line 4263 of file ugbc.h.

◆ out5

#define out5 ( s,
a,
b,
c,
d,
e )
Value:
outline5n(0, s, a, b, c, d, e, 0)
#define outline5n(n, s, a, b, c, d, e, r)
Definition ugbc.h:3998

Definition at line 4264 of file ugbc.h.

◆ out6

#define out6 ( s,
a,
b,
c,
d,
e,
f )
Value:
outline6n(0, s, a, b, c, d, e, f, 0)
#define outline6n(n, s, a, b, c, d, e, f, r)
Definition ugbc.h:4015

Definition at line 4265 of file ugbc.h.

◆ outembedded0

#define outembedded0 ( e)

Definition at line 4114 of file ugbc.h.

◆ outembeddeddef0

#define outembeddeddef0 ( e)
Value:
{ \
int deferredIndex = 0; \
\
for( deferredIndex = 0; deferredIndex < MAX_TEMPORARY_STORAGE; ++deferredIndex ) { \
if ( !_environment->deferredEmbedded[deferredIndex] ) { \
break; \
} \
} \
\
char * tmp = malloc( e##_len + 1 ); \
memset( tmp, 0, e##_len + 1 ); \
memcpy( tmp, e, e##_len ); \
\
_environment->deferredEmbedded[deferredIndex] = tmp; \
_environment->deferredEmbeddedSize[deferredIndex] = e##_len; \
\
}

Definition at line 4162 of file ugbc.h.

◆ outfile0

#define outfile0 ( f)
Value:
{ \
FILE * fh = fopen( f, "rt" ); \
if ( fh ) { \
char line[MAX_TEMPORARY_STORAGE]; \
while( ! feof( fh ) ) { \
if ( fgets( line, MAX_TEMPORARY_STORAGE, fh ) ) { \
buffered_fputs(((Environment *)_environment), line, ((Environment *)_environment)->asmFile); \
((Environment *)_environment)->producedAssemblyLines += assemblyLineIsAComment( line ) ? 0 : 1; \
} \
} \
fclose( fh ); \
buffered_fputs(((Environment *)_environment), "\n", ((Environment *)_environment)->asmFile); \
} else { \
CRITICAL2("Unable to include ugbasic system file", f ); \
} \
}
int assemblyLineIsAComment(char *_buffer)

Definition at line 4093 of file ugbc.h.

◆ outhead0

#define outhead0 ( s)
Value:
outline0n(0, s, 1)

Definition at line 4246 of file ugbc.h.

◆ outhead1

#define outhead1 ( s,
a )
Value:
outline1n(0, s, a, 1)

Definition at line 4247 of file ugbc.h.

◆ outhead2

#define outhead2 ( s,
a,
b )
Value:
outline2n(0, s, a, b, 1)

Definition at line 4248 of file ugbc.h.

◆ outhead3

#define outhead3 ( s,
a,
b,
c )
Value:
outline3n(0, s, a, b, c, 1)

Definition at line 4249 of file ugbc.h.

◆ outhead4

#define outhead4 ( s,
a,
b,
c,
d )
Value:
outline4n(0, s, a, b, c, d, 1)

Definition at line 4250 of file ugbc.h.

◆ outhead5

#define outhead5 ( s,
a,
b,
c,
d,
e )
Value:
outline5n(0, s, a, b, c, d, e, 1)

Definition at line 4251 of file ugbc.h.

◆ outline0

#define outline0 ( s)
Value:
outline0n(1, s, 1)

Definition at line 4252 of file ugbc.h.

◆ outline0n

#define outline0n ( n,
s,
r )
Value:
{ \
int outsi; \
for(outsi=0; outsi<n; ++outsi) \
buffered_fputs(((Environment *)_environment), "\t", ((Environment *)_environment)->asmFile); \
if ( ((Environment *)_environment)->emptyProcedure ) { \
buffered_fputs(((Environment *)_environment), "\t; (excluded by ON target) : ", ((Environment *)_environment)->asmFile); \
} \
buffered_fputs(((Environment *)_environment), s,((Environment *)_environment)->asmFile); \
if ( r ) { \
buffered_fputs(((Environment *)_environment), "\n", ((Environment *)_environment)->asmFile); \
if ( ! ((Environment *)_environment)->emptyProcedure ) { \
((Environment *)_environment)->producedAssemblyLines += assemblyLineIsAComment( s ) ? 0 : 1; \
} \
} \
}
int buffered_fputs(Environment *_environment, const char *_string, FILE *_stream)

Definition at line 3913 of file ugbc.h.

◆ outline1

#define outline1 ( s,
a )
Value:
outline1n(1, s, a, 1)

Definition at line 4253 of file ugbc.h.

◆ outline1n

#define outline1n ( n,
s,
a,
r )
Value:
{ \
int outsi; \
for(outsi=0; outsi<n; ++outsi) \
buffered_fputs(((Environment *)_environment), "\t", ((Environment *)_environment)->asmFile); \
if ( ((Environment *)_environment)->emptyProcedure ) { \
buffered_fputs(((Environment *)_environment), "\t; (excluded by ON target) : ", ((Environment *)_environment)->asmFile); \
} \
buffered_fprintf(((Environment *)_environment), ((Environment *)_environment)->asmFile, s, a); \
if ( r ) { \
buffered_fputs(((Environment *)_environment), "\n", ((Environment *)_environment)->asmFile); \
if ( ! ((Environment *)_environment)->emptyProcedure ) { \
((Environment *)_environment)->producedAssemblyLines += assemblyLineIsAComment( s ) ? 0 : 1; \
} \
} \
}

Definition at line 3930 of file ugbc.h.

◆ outline2

#define outline2 ( s,
a,
b )
Value:
outline2n(1, s, a, b, 1)

Definition at line 4254 of file ugbc.h.

◆ outline2n

#define outline2n ( n,
s,
a,
b,
r )
Value:
{ \
int outsi; \
for(outsi=0; outsi<n; ++outsi) \
buffered_fputs(((Environment *)_environment), "\t", ((Environment *)_environment)->asmFile); \
if ( ((Environment *)_environment)->emptyProcedure ) { \
buffered_fputs(((Environment *)_environment), "\t; (excluded by ON target) : ", ((Environment *)_environment)->asmFile); \
} \
buffered_fprintf(((Environment *)_environment), ((Environment *)_environment)->asmFile, s, a, b); \
if ( r ) { \
buffered_fputs(((Environment *)_environment), "\n", ((Environment *)_environment)->asmFile); \
if ( ! ((Environment *)_environment)->emptyProcedure ) { \
((Environment *)_environment)->producedAssemblyLines += assemblyLineIsAComment( s ) ? 0 : 1; \
} \
} \
}

Definition at line 3947 of file ugbc.h.

◆ outline3

#define outline3 ( s,
a,
b,
c )
Value:
outline3n(1, s, a, b, c, 1)

Definition at line 4255 of file ugbc.h.

◆ outline3n

#define outline3n ( n,
s,
a,
b,
c,
r )
Value:
{ \
int outsi; \
for(outsi=0; outsi<n; ++outsi) \
buffered_fputs(((Environment *)_environment), "\t", ((Environment *)_environment)->asmFile); \
if ( ((Environment *)_environment)->emptyProcedure ) { \
buffered_fputs(((Environment *)_environment), "\t; (excluded by ON target) : ", ((Environment *)_environment)->asmFile); \
} \
buffered_fprintf(((Environment *)_environment), ((Environment *)_environment)->asmFile, s, a, b, c); \
if ( r ) { \
buffered_fputs(((Environment *)_environment), "\n", ((Environment *)_environment)->asmFile); \
if ( ! ((Environment *)_environment)->emptyProcedure ) { \
((Environment *)_environment)->producedAssemblyLines += assemblyLineIsAComment( s ) ? 0 : 1; \
} \
} \
}

Definition at line 3964 of file ugbc.h.

◆ outline4

#define outline4 ( s,
a,
b,
c,
d )
Value:
outline4n(1, s, a, b, c, d, 1)

Definition at line 4256 of file ugbc.h.

◆ outline4n

#define outline4n ( n,
s,
a,
b,
c,
d,
r )
Value:
{ \
int outsi; \
for(outsi=0; outsi<n; ++outsi) \
buffered_fputs(((Environment *)_environment), "\t", ((Environment *)_environment)->asmFile); \
if ( ((Environment *)_environment)->emptyProcedure ) { \
buffered_fputs(((Environment *)_environment), "\t; (excluded by ON target) : ", ((Environment *)_environment)->asmFile); \
} \
buffered_fprintf(((Environment *)_environment), ((Environment *)_environment)->asmFile, s, a, b, c, d); \
if ( r ) { \
buffered_fputs(((Environment *)_environment), "\n", ((Environment *)_environment)->asmFile); \
if ( ! ((Environment *)_environment)->emptyProcedure ) { \
((Environment *)_environment)->producedAssemblyLines += assemblyLineIsAComment( s ) ? 0 : 1; \
} \
} \
}

Definition at line 3981 of file ugbc.h.

◆ outline5

#define outline5 ( s,
a,
b,
c,
d,
e )
Value:
outline5n(1, s, a, b, c, d, e, 1)

Definition at line 4257 of file ugbc.h.

◆ outline5n

#define outline5n ( n,
s,
a,
b,
c,
d,
e,
r )
Value:
{ \
int outsi; \
for(outsi=0; outsi<n; ++outsi) \
buffered_fputs(((Environment *)_environment), "\t", ((Environment *)_environment)->asmFile); \
if ( ((Environment *)_environment)->emptyProcedure ) { \
buffered_fputs(((Environment *)_environment), "\t; (excluded by ON target) : ", ((Environment *)_environment)->asmFile); \
} \
buffered_fprintf(((Environment *)_environment), ((Environment *)_environment)->asmFile, s, a, b, c, d, e); \
if ( r ) { \
buffered_fputs(((Environment *)_environment), "\n", ((Environment *)_environment)->asmFile); \
if ( ! ((Environment *)_environment)->emptyProcedure ) { \
((Environment *)_environment)->producedAssemblyLines += assemblyLineIsAComment( s ) ? 0 : 1; \
} \
} \
}

Definition at line 3998 of file ugbc.h.

◆ outline6

#define outline6 ( s,
a,
b,
c,
d,
e,
f )
Value:
outline6n(1, s, a, b, c, d, e, f, 1)

Definition at line 4258 of file ugbc.h.

◆ outline6n

#define outline6n ( n,
s,
a,
b,
c,
d,
e,
f,
r )
Value:
{ \
int outsi; \
for(outsi=0; outsi<n; ++outsi) \
buffered_fputs(((Environment *)_environment), "\t", ((Environment *)_environment)->asmFile); \
if ( ((Environment *)_environment)->emptyProcedure ) { \
buffered_fputs(((Environment *)_environment), "\t; (excluded by ON target) : ", ((Environment *)_environment)->asmFile); \
} \
buffered_fprintf(((Environment *)_environment), ((Environment *)_environment)->asmFile, s, a, b, c, d, e, f); \
if ( r ) { \
buffered_fputs(((Environment *)_environment), "\n", ((Environment *)_environment)->asmFile); \
if ( ! ((Environment *)_environment)->emptyProcedure ) { \
((Environment *)_environment)->producedAssemblyLines += assemblyLineIsAComment( s ) ? 0 : 1; \
} \
} \
}

Definition at line 4015 of file ugbc.h.

◆ parse_embedded

#define parse_embedded ( p,
s )
Value:
if ( strcmp( p, #s ) == 0 ) { \
_environment->embedded.s = 1; \
}

Definition at line 4392 of file ugbc.h.

◆ PATH_SEPARATOR

#define PATH_SEPARATOR   '/'

Definition at line 69 of file ugbc.h.

◆ PATH_SEPARATOR_AS_STRING

#define PATH_SEPARATOR_AS_STRING   "/"

Definition at line 70 of file ugbc.h.

◆ PROTOTHREAD_DEFAULT_COUNT

#define PROTOTHREAD_DEFAULT_COUNT   16

Definition at line 573 of file ugbc.h.

◆ PROTOTHREAD_STATUS_ENDED

#define PROTOTHREAD_STATUS_ENDED   4

Definition at line 4550 of file ugbc.h.

◆ PROTOTHREAD_STATUS_EXITED

#define PROTOTHREAD_STATUS_EXITED   3

Definition at line 4549 of file ugbc.h.

◆ PROTOTHREAD_STATUS_PAUSED

#define PROTOTHREAD_STATUS_PAUSED   5

Definition at line 4551 of file ugbc.h.

◆ PROTOTHREAD_STATUS_RUNNING

#define PROTOTHREAD_STATUS_RUNNING   1

Definition at line 4547 of file ugbc.h.

◆ PROTOTHREAD_STATUS_WAITING

#define PROTOTHREAD_STATUS_WAITING   0

Definition at line 4546 of file ugbc.h.

◆ PROTOTHREAD_STATUS_YIELDED

#define PROTOTHREAD_STATUS_YIELDED   2

Definition at line 4548 of file ugbc.h.

◆ SCREEN_MODE_DEFINE

#define SCREEN_MODE_DEFINE ( _id,
_bitmap,
_width,
_height,
_colors,
_tile_width,
_tile_height,
_description )
Value:
{ \
ScreenMode * screenMode = malloc( sizeof( ScreenMode ) ); \
memset( screenMode, 0, sizeof( screenMode ) ) ; \
screenMode->bitmap = _bitmap; \
screenMode->id = _id; \
screenMode->width = _width; \
screenMode->height = _height; \
screenMode->colors = _colors; \
screenMode->tileWidth = _tile_width; \
screenMode->tileHeight = _tile_height; \
screenMode->score = 0; \
screenMode->description = strdup( _description ); \
screenMode->next = NULL; \
ScreenMode * last = _environment->screenModes; \
if ( last ) { \
while( last->next ) { \
last = last->next; \
} \
last->next = screenMode; \
} else { \
_environment->screenModes = screenMode; \
} \
}
int tileWidth
Definition ugbc.h:1504
int width
Definition ugbc.h:1498
int bitmap
Definition ugbc.h:1496
struct _ScreenMode * next
Definition ugbc.h:1512
char * description
Definition ugbc.h:1494
int tileHeight
Definition ugbc.h:1506
int height
Definition ugbc.h:1500
int score
Definition ugbc.h:1508
int colors
Definition ugbc.h:1502
struct _ScreenMode ScreenMode

Definition at line 1516 of file ugbc.h.

◆ SHIFT_CAPSLOCK

#define SHIFT_CAPSLOCK   4

Definition at line 4538 of file ugbc.h.

◆ SHIFT_CONTROL

#define SHIFT_CONTROL   8

Definition at line 4539 of file ugbc.h.

◆ SHIFT_LEFT

#define SHIFT_LEFT   1

Definition at line 4536 of file ugbc.h.

◆ SHIFT_LEFT_ALT

#define SHIFT_LEFT_ALT   16

Definition at line 4540 of file ugbc.h.

◆ SHIFT_RIGHT

#define SHIFT_RIGHT   2

Definition at line 4537 of file ugbc.h.

◆ SHIFT_RIGHT_ALT

#define SHIFT_RIGHT_ALT   32

Definition at line 4541 of file ugbc.h.

◆ SPRITE_FLAG_COMPRESS_HORIZONTAL

#define SPRITE_FLAG_COMPRESS_HORIZONTAL   0x0400

Definition at line 4564 of file ugbc.h.

◆ SPRITE_FLAG_COMPRESS_VERTICAL

#define SPRITE_FLAG_COMPRESS_VERTICAL   0x1000

Definition at line 4562 of file ugbc.h.

◆ SPRITE_FLAG_EXPAND_HORIZONTAL

#define SPRITE_FLAG_EXPAND_HORIZONTAL   0x0800

Definition at line 4563 of file ugbc.h.

◆ SPRITE_FLAG_EXPAND_VERTICAL

#define SPRITE_FLAG_EXPAND_VERTICAL   0x2000

Definition at line 4561 of file ugbc.h.

◆ SPRITE_FLAG_MONOCOLOR

#define SPRITE_FLAG_MONOCOLOR   0x4000

Definition at line 4560 of file ugbc.h.

◆ SPRITE_FLAG_MULTICOLOR

#define SPRITE_FLAG_MULTICOLOR   0x8000

Definition at line 4559 of file ugbc.h.

◆ SPRITE_FLAG_TRANSPARENCY_COLOR

#define SPRITE_FLAG_TRANSPARENCY_COLOR   0x0200

Definition at line 4565 of file ugbc.h.

◆ stats_embedded

#define stats_embedded ( s)
Value:
printf("%s:\t%d\t%s\t\n", #s, _environment->embeddedStats.s, _environment->embedded.s ? "embedded" : "inline" );

Definition at line 4530 of file ugbc.h.

◆ targetDescription

#define targetDescription   "ATARI 400/800"

Definition at line 6235 of file ugbc.h.

◆ TILEMAP_NATIVE

#define TILEMAP_NATIVE   0

Definition at line 4543 of file ugbc.h.

◆ TMP_BUF

#define TMP_BUF   tmp_buf(__FILE__, __LINE__)

Definition at line 5170 of file ugbc.h.

◆ TMP_BUF_CLR

#define TMP_BUF_CLR   tmp_buf_clr(__FILE__)

Definition at line 5171 of file ugbc.h.

◆ TRACE0

#define TRACE0 ( s)
Value:
(void) s;

Definition at line 86 of file ugbc.h.

◆ TRACE1

#define TRACE1 ( s,
p1 )
Value:
(void) s; (void) p1;

Definition at line 87 of file ugbc.h.

◆ TRACE2

#define TRACE2 ( s,
p1,
p2 )
Value:
(void) s; (void) p1; (void) p2;

Definition at line 88 of file ugbc.h.

◆ UGBASIC_VERSION

#define UGBASIC_VERSION   "1.18"

Definition at line 63 of file ugbc.h.

◆ UNIQUE_ID

#define UNIQUE_ID   ((struct _Environment *)_environment)->uniqueId++

Definition at line 3349 of file ugbc.h.

◆ UNIQUE_RESOURCE_ID

#define UNIQUE_RESOURCE_ID   ((struct _Environment *)_environment)->uniqueResourceId++

Definition at line 3350 of file ugbc.h.

◆ VARIABLE_TYPE_COUNT

#define VARIABLE_TYPE_COUNT   26

Maximum number of variable types.

Definition at line 698 of file ugbc.h.

◆ VT_BITWIDTH

#define VT_BITWIDTH ( t)
Value:
VT_BW_16BIT( t, VT_WORD ) + VT_BW_16BIT( t, VT_SWORD ) + VT_BW_16BIT( t, VT_ADDRESS ) + VT_BW_16BIT( t, VT_POSITION ) + \
VT_BW_32BIT( t, VT_DWORD ) + VT_BW_32BIT( t, VT_SDWORD ) )
#define VT_BW_8BIT(t, v)
Definition ugbc.h:586
#define VT_BW_32BIT(t, v)
Definition ugbc.h:589
@ VT_THREAD
Definition ugbc.h:492
@ VT_WORD
Definition ugbc.h:455
@ VT_POSITION
Definition ugbc.h:468
@ VT_SDWORD
Definition ugbc.h:462
@ VT_SWORD
Definition ugbc.h:457
@ VT_BYTE
Definition ugbc.h:450
@ VT_DWORD
Definition ugbc.h:460
@ VT_BIT
Definition ugbc.h:528
@ VT_CHAR
Definition ugbc.h:498
@ VT_SBYTE
Definition ugbc.h:452
@ VT_ADDRESS
Definition ugbc.h:465
@ VT_COLOR
Definition ugbc.h:471
#define VT_BW_1BIT(t, v)
Definition ugbc.h:585
#define VT_BW_16BIT(t, v)
Definition ugbc.h:587

Definition at line 595 of file ugbc.h.

◆ VT_BW_128BIT

#define VT_BW_128BIT ( t,
v )
Value:
( ( (t) == (v) ) ? 128 : 0 )

Definition at line 593 of file ugbc.h.

◆ VT_BW_16BIT

#define VT_BW_16BIT ( t,
v )
Value:
( ( (t) == (v) ) ? 16 : 0 )

Definition at line 587 of file ugbc.h.

◆ VT_BW_1BIT

#define VT_BW_1BIT ( t,
v )
Value:
( ( (t) == (v) ) ? 1 : 0 )

Definition at line 585 of file ugbc.h.

◆ VT_BW_24BIT

#define VT_BW_24BIT ( t,
v )
Value:
( ( (t) == (v) ) ? 24 : 0 )

Definition at line 588 of file ugbc.h.

◆ VT_BW_32BIT

#define VT_BW_32BIT ( t,
v )
Value:
( ( (t) == (v) ) ? 32 : 0 )

Definition at line 589 of file ugbc.h.

◆ VT_BW_40BIT

#define VT_BW_40BIT ( t,
v )
Value:
( ( (t) == (v) ) ? 40 : 0 )

Definition at line 590 of file ugbc.h.

◆ VT_BW_64BIT

#define VT_BW_64BIT ( t,
v )
Value:
( ( (t) == (v) ) ? 64 : 0 )

Definition at line 591 of file ugbc.h.

◆ VT_BW_80BIT

#define VT_BW_80BIT ( t,
v )
Value:
( ( (t) == (v) ) ? 80 : 0 )

Definition at line 592 of file ugbc.h.

◆ VT_BW_8BIT

#define VT_BW_8BIT ( t,
v )
Value:
( ( (t) == (v) ) ? 8 : 0 )

Definition at line 586 of file ugbc.h.

◆ VT_DIRECT_ASSIGN

#define VT_DIRECT_ASSIGN ( t)
Value:
( \
( t == VT_BUFFER ) + \
( t == VT_IMAGE ) + \
( t == VT_IMAGES ) + \
( t == VT_TILESET ) + \
( t == VT_SEQUENCE ) + \
( t == VT_MUSIC ) + \
( t == VT_TILEMAP ) + \
( t == VT_DOJOKA ) + \
( t == VT_TYPE ) \
)
@ VT_DOJOKA
Definition ugbc.h:534
@ VT_TILEMAP
Definition ugbc.h:525
@ VT_BUFFER
Definition ugbc.h:477
@ VT_IMAGES
Definition ugbc.h:495
@ VT_MUSIC
Definition ugbc.h:516
@ VT_TYPE
Definition ugbc.h:546
@ VT_TILESET
Definition ugbc.h:510
@ VT_IMAGE
Definition ugbc.h:489
@ VT_SEQUENCE
Definition ugbc.h:513

Definition at line 683 of file ugbc.h.

◆ VT_ESIGN_16BIT

#define VT_ESIGN_16BIT ( t,
v )
Value:
( VT_SIGNED(t) ? VT_SIGN_16BIT(v) : (v) )
#define VT_SIGNED(t)
Definition ugbc.h:618
#define VT_SIGN_16BIT(v)
Definition ugbc.h:648

Definition at line 652 of file ugbc.h.

◆ VT_ESIGN_32BIT

#define VT_ESIGN_32BIT ( t,
v )
Value:
( VT_SIGNED(t) ? VT_SIGN_32BIT(v) : (v) )
#define VT_SIGN_32BIT(v)
Definition ugbc.h:649

Definition at line 653 of file ugbc.h.

◆ VT_ESIGN_8BIT

#define VT_ESIGN_8BIT ( t,
v )
Value:
( VT_SIGNED(t) ? VT_SIGN_8BIT(v) : (v) )
#define VT_SIGN_8BIT(v)
Definition ugbc.h:647

Definition at line 651 of file ugbc.h.

◆ VT_MAX

#define VT_MAX ( t)
Value:
( \
VT_VALUE( t, VT_BYTE, 0xff ) + \
VT_VALUE( t, VT_SBYTE, 0x7f ) + \
VT_VALUE( t, VT_WORD, 0xffff ) + \
VT_VALUE( t, VT_SWORD, 0x7fff ) + \
VT_VALUE( t, VT_DWORD, 0xffffffff ) + \
VT_VALUE( t, VT_DWORD, 0x7fffffff ) \
)

Definition at line 674 of file ugbc.h.

◆ VT_MAX_BITWIDTH_TYPE

#define VT_MAX_BITWIDTH_TYPE ( a,
b )
Value:
( \
( ( a == VT_FLOAT ) || ( b == VT_FLOAT ) ) ? \
( VT_FLOAT ) : \
( ( a == VT_NUMBER ) || ( b == VT_NUMBER ) ) ? \
( VT_NUMBER ) : \
( VT_BITWIDTH( a ) > VT_BITWIDTH( b ) ) ? ( a ) : ( b ) \
)
@ VT_FLOAT
Definition ugbc.h:522
@ VT_NUMBER
Definition ugbc.h:549
#define VT_BITWIDTH(t)
Definition ugbc.h:595

Definition at line 606 of file ugbc.h.

◆ VT_MAX_FLOAT_BITWIDTH_TYPE

#define VT_MAX_FLOAT_BITWIDTH_TYPE ( a,
b )
Value:
( ( VT_FLOAT_BITWIDTH( a ) > VT_FLOAT_BITWIDTH( b ) ) ? ( a ) : ( b ) )
#define VT_FLOAT_BITWIDTH(p)
Definition 6309.h:38

Definition at line 615 of file ugbc.h.

◆ VT_MIN

#define VT_MIN ( t)
Value:
( \
VT_VALUE( t, VT_BYTE, 0x00 ) + \
VT_VALUE( t, VT_SBYTE, 0x80 ) + \
VT_VALUE( t, VT_WORD, 0x0000 ) + \
VT_VALUE( t, VT_SWORD, 0x8000 ) + \
VT_VALUE( t, VT_DWORD, 0x00000000 ) + \
VT_VALUE( t, VT_DWORD, 0x80000000 ) \
)

Definition at line 665 of file ugbc.h.

◆ VT_OPTIMAL_SHIFT

#define VT_OPTIMAL_SHIFT ( s)
Value:
( (s<=2)?(log2(s)):(log2(s)+1) )

Definition at line 604 of file ugbc.h.

◆ VT_POW2_2

#define VT_POW2_2 ( t,
v )
Value:
( ( (t) == (v) ) ? 2 : 0 )

Definition at line 600 of file ugbc.h.

◆ VT_POW2_3

#define VT_POW2_3 ( t,
v )
Value:
( ( (t) == (v) ) ? 3 : 0 )

Definition at line 601 of file ugbc.h.

◆ VT_POW2_4

#define VT_POW2_4 ( t,
v )
Value:
( ( (t) == (v) ) ? 4 : 0 )

Definition at line 602 of file ugbc.h.

◆ VT_SIGN

#define VT_SIGN ( t)
Value:
( ( ! VT_SIGNED( t ) ) ? \
( \
( ( (t) == (VT_BIT) ) ? VT_BIT : 0 ) + \
( ( (t) == (VT_BYTE) ) ? VT_SBYTE : 0 ) + \
( ( (t) == (VT_WORD) ) ? VT_SWORD : 0 ) + \
( ( (t) == (VT_DWORD) ) ? VT_SDWORD : 0 ) + \
( ( (t) == (VT_FLOAT) ) ? VT_FLOAT : 0 ) + \
( ( (t) == (VT_POSITION) ) ? VT_POSITION : 0 ) + \
( ( (t) == (VT_ADDRESS) ) ? VT_ADDRESS : 0 ) + \
( ( (t) == (VT_COLOR) ) ? VT_COLOR : 0 ) \
) \
: t )

Definition at line 633 of file ugbc.h.

◆ VT_SIGN_16BIT

#define VT_SIGN_16BIT ( v)
Value:
( v < 0 ? ( ((~(unsigned short)(abs(v)))+1 ) ) : (v) )
#define abs(ticks)
Definition sidreloc.c:338

Definition at line 648 of file ugbc.h.

◆ VT_SIGN_32BIT

#define VT_SIGN_32BIT ( v)
Value:
( v < 0 ? ( (~((unsigned int) (abs(v)))+1 ) ) : (v) )

Definition at line 649 of file ugbc.h.

◆ VT_SIGN_8BIT

#define VT_SIGN_8BIT ( v)
Value:
( v < 0 ? ( ((~(unsigned char)(abs(v)))+1 ) ) : (v) )

Definition at line 647 of file ugbc.h.

◆ VT_SIGNED

#define VT_SIGNED ( t)
Value:
( ( (t) == VT_SBYTE ) || ( (t) == VT_SWORD ) || ( (t) == VT_SDWORD ) || ( (t) == VT_POSITION ) || ( (t) == VT_FLOAT ) || ( (t) == VT_NUMBER ) )

Definition at line 618 of file ugbc.h.

◆ VT_UNSIGN

#define VT_UNSIGN ( t)
Value:
( VT_SIGNED( t ) ? \
( \
( ( (t) == (VT_SBYTE) ) ? VT_BYTE : 0 ) + \
( ( (t) == (VT_SWORD) ) ? VT_WORD : 0 ) + \
( ( (t) == (VT_SDWORD) ) ? VT_DWORD : 0 ) + \
( ( (t) == (VT_POSITION) ) ? VT_WORD : 0 ) + \
( ( (t) == (VT_FLOAT) ) ? VT_FLOAT : 0 ) + \
( ( (t) == (VT_NUMBER) ) ? VT_NUMBER : 0 ) \
) \
: t )

Definition at line 621 of file ugbc.h.

◆ VT_UNSIGN_16BIT

#define VT_UNSIGN_16BIT ( t,
v )
Value:
( VT_SIGNED(t) ? VT_USIGN_16BIT(v) : (v) )
#define VT_USIGN_16BIT(v)
Definition ugbc.h:656

Definition at line 660 of file ugbc.h.

◆ VT_UNSIGN_32BIT

#define VT_UNSIGN_32BIT ( t,
v )
Value:
( VT_SIGNED(t) ? VT_USIGN_32BIT(v) : (v) )
#define VT_USIGN_32BIT(v)
Definition ugbc.h:657

Definition at line 661 of file ugbc.h.

◆ VT_UNSIGN_8BIT

#define VT_UNSIGN_8BIT ( t,
v )
Value:
( VT_SIGNED(t) ? VT_USIGN_8BIT(v) : (v) )
#define VT_USIGN_8BIT(v)
Definition ugbc.h:655

Definition at line 659 of file ugbc.h.

◆ VT_USIGN_16BIT

#define VT_USIGN_16BIT ( v)
Value:
(short)( ( v & 0x8000 ) ? -( ((~((unsigned short)v)))+1 ) : (v) )

Definition at line 656 of file ugbc.h.

◆ VT_USIGN_32BIT

#define VT_USIGN_32BIT ( v)
Value:
(int)( ( v & 0x80000000 ) ? -( ((~((unsigned int)v)))+1 ) : (v) )

Definition at line 657 of file ugbc.h.

◆ VT_USIGN_8BIT

#define VT_USIGN_8BIT ( v)
Value:
(char)( ( v & 0x80 ) ? -( ((~((unsigned char)v)))+1 ) : (v) )

Definition at line 655 of file ugbc.h.

◆ VT_VALUE

#define VT_VALUE ( v,
t,
d )
Value:
( ( v == t ) ? d : 0 )

Definition at line 663 of file ugbc.h.

◆ WARNING

#define WARNING ( s)
Value:
if ( ((struct _Environment *)_environment)->warningsEnabled) { fprintf(stderr, "WARNING during compilation of %s:\n\t%s at %d\n", ((struct _Environment *)_environment)->sourceFileName, s, ((struct _Environment *)_environment)->yylineno ); }
#define yylineno

Definition at line 3872 of file ugbc.h.

◆ WARNING2

#define WARNING2 ( s,
v )
Value:
if ( ((struct _Environment *)_environment)->warningsEnabled) { fprintf(stderr, "WARNING during compilation of %s:\n\t%s (%s) at %d\n", ((struct _Environment *)_environment)->sourceFileName, s, v, _environment->yylineno ); }
int yylineno
Definition ugbc.h:2496

Definition at line 3873 of file ugbc.h.

◆ WARNING2i

#define WARNING2i ( s,
v )
Value:
if ( ((struct _Environment *)_environment)->warningsEnabled) { fprintf(stderr, "WARNING during compilation of %s:\n\t%s (%i) at %d\n", ((struct _Environment *)_environment)->sourceFileName, s, v, _environment->yylineno ); }

Definition at line 3874 of file ugbc.h.

◆ WARNING3

#define WARNING3 ( s,
v1,
v2 )
Value:
if ( ((struct _Environment *)_environment)->warningsEnabled) { fprintf(stderr, "WARNING during compilation of %s:\n\t%s (%s, %s) at %d\n", ((struct _Environment *)_environment)->sourceFileName, s, v1, v2, _environment->yylineno ); }

Definition at line 3875 of file ugbc.h.

◆ WARNING_BITWIDTH

#define WARNING_BITWIDTH ( v1,
v2 )
Value:
WARNING3("W001 - Multiplication could loose precision", v1, v2 );
#define WARNING3(s, v1, v2)
Definition ugbc.h:3875

Definition at line 3876 of file ugbc.h.

◆ WARNING_DEPRECATED

#define WARNING_DEPRECATED ( k)
Value:
WARNING2("W009 - keyword has been deprecated and has no effect", k );
#define WARNING2(s, v)
Definition ugbc.h:3873

Definition at line 3884 of file ugbc.h.

◆ WARNING_DLOAD_IGNORED_FILENAME

#define WARNING_DLOAD_IGNORED_FILENAME ( f)
Value:
WARNING2("W010 - filename for DLOAD is ignored", f );

Definition at line 3885 of file ugbc.h.

◆ WARNING_DLOAD_IGNORED_OFFSET

#define WARNING_DLOAD_IGNORED_OFFSET ( f)
Value:
WARNING2("W008 - offset for DLOAD is ignored", f );

Definition at line 3883 of file ugbc.h.

◆ WARNING_DLOAD_IGNORED_SIZE

#define WARNING_DLOAD_IGNORED_SIZE ( f)
Value:
WARNING2("W007 - size for DLOAD is ignored", f );

Definition at line 3882 of file ugbc.h.

◆ WARNING_DOWNCAST

#define WARNING_DOWNCAST ( v1,
v2 )
Value:
WARNING3("W002 - Implicit downcasting to less bitwidth (precision loss)", v1, v2 );

Definition at line 3877 of file ugbc.h.

◆ WARNING_IMAGE_CONVERTER_UNSUPPORTED_MODE

#define WARNING_IMAGE_CONVERTER_UNSUPPORTED_MODE ( f)
Value:
WARNING2i("W005 - IMAGE converter unsupported for the given screen mode", f );
#define WARNING2i(s, v)
Definition ugbc.h:3874

Definition at line 3880 of file ugbc.h.

◆ WARNING_IMAGE_LOAD_EXACT_IGNORED

#define WARNING_IMAGE_LOAD_EXACT_IGNORED ( )
Value:
WARNING("W006 - Loading of the image will ignore EXACT flag" );
#define WARNING(s)
Definition ugbc.h:3872

Definition at line 3881 of file ugbc.h.

◆ WARNING_SCREEN_MODE

#define WARNING_SCREEN_MODE ( v1)
Value:
WARNING2i("W003 - Screen mode unsupported", v1 );

Definition at line 3878 of file ugbc.h.

◆ WARNING_USE_OF_UNDEFINED_ARRAY

#define WARNING_USE_OF_UNDEFINED_ARRAY ( v1)
Value:
WARNING2("W004 - use of undefined array", v1 );

Definition at line 3879 of file ugbc.h.

◆ WW_PAPER

#define WW_PAPER   2

Definition at line 4534 of file ugbc.h.

◆ WW_PEN

#define WW_PEN   1

Definition at line 4533 of file ugbc.h.

Typedef Documentation

◆ AnimationType

◆ ArrayReference

◆ AtlasDescriptor

◆ AudioConfig

typedef struct _AudioConfig AudioConfig

◆ AudioDeviceName

◆ Bank

typedef struct _Bank Bank

Structure of a single bank.

◆ BankAccessOptimization

◆ BankType

typedef enum _BankType BankType

Type of memory banks.

◆ Blit

typedef struct _Blit Blit

◆ Compression

typedef enum _Compression Compression

Type of compression.

◆ Conditional

typedef struct _Conditional Conditional

Structure of a single conditional jump.

◆ ConditionalType

Types of conditional jumps supported.

◆ ConfigureGMCParameters

◆ ConfigureParameters

◆ ConfigureSN76489Parameters

◆ Console

typedef struct _Console Console

◆ Constant

typedef struct _Constant Constant

Structure of a single constant.

◆ ConstantType

◆ CopperInstruction

◆ CopperList

typedef struct _CopperList CopperList

◆ CopperOperation

◆ CpuOptimization

◆ DataDataSegment

◆ DataSegment

typedef struct _DataSegment DataSegment

◆ Deployed

typedef struct _Deployed Deployed

◆ Dialect

typedef enum _Dialect Dialect

Type of dialects.

◆ DString

typedef struct _DString DString

◆ Embedded

typedef struct _Embedded Embedded

◆ EmbedResult

typedef struct _EmbedResult EmbedResult

◆ Environment

typedef struct _Environment Environment

Structure of compilation environment.

◆ Field

typedef struct _Field Field

◆ FileStorage

typedef struct _FileStorage FileStorage

Structure of a single file inside a storage.

◆ FileStorageFormat

◆ FloatType

typedef struct _FloatType FloatType

◆ FloatTypeAngle

◆ FloatTypePrecision

◆ FontConfig

typedef struct _FontConfig FontConfig

◆ FujiNetDefine

◆ GammaCorrection

Gamma correction type (for some palettes).

This enumeration represent the type of color correction to be used.

◆ HardwareName

◆ HardwareParameterName

◆ ImageDescriptor

◆ JoystickConfig

◆ KeyboardConfig

◆ Label

typedef struct _Label Label

Structure of a single label.

◆ LoadedFile

typedef struct _LoadedFile LoadedFile

◆ Loop

typedef struct _Loop Loop

Structure of a single loop.

◆ LoopType

typedef enum _LoopType LoopType

Types of loops supported.

◆ Macro

typedef struct _Macro Macro

◆ MemoryArea

typedef struct _MemoryArea MemoryArea

◆ MemoryAreaType

Enum for memory area type.

This enum will describe the kind of memory area, if it is accessible directly (so: it can be used for code and variable, without limits) or it is "gated" through a specific prologue and epilogue code.

◆ MultiplexingSpriteConfig

◆ MusicType

typedef enum _MusicType MusicType

◆ NumberConfig

typedef struct _NumberConfig NumberConfig

◆ Offsetting

typedef struct _Offsetting Offsetting

◆ OffsettingVariable

◆ OptionParameterValue

Structure of a single (option) setting.

◆ OptionParameterValued

◆ OutputFileType

◆ Pattern

typedef struct _Pattern Pattern

◆ PeepHoleOptimizationKind

◆ POBuffer

typedef struct _POBuffer* POBuffer

Definition at line 298 of file ugbc.h.

◆ POVariable

typedef struct _POVariable POVariable

Definition at line 307 of file ugbc.h.

◆ Procedure

typedef struct _Procedure Procedure

◆ Program

typedef struct _Program Program

◆ ProtothreadConfig

◆ Resource

typedef struct _Resource Resource

◆ RgbConverterFunction

typedef int(* RgbConverterFunction) (int, int, int)

Definition at line 2157 of file ugbc.h.

◆ RGBi

typedef struct _RGBi RGBi

Structure to store color components (red, green and blue).

This structure stores the color components (red, blue and green) of a pixel, 8 bits wide. This structure is used both to represent the retrocomputer palette and to process input data from image files.

◆ ScreenMode

typedef struct _ScreenMode ScreenMode

◆ StaticString

typedef struct _StaticString StaticString

Structure of a single (static) string.

◆ Storage

typedef struct _Storage Storage

Structure of a single storage.

◆ Strip

typedef struct _Strip Strip

◆ TileData

typedef struct _TileData TileData

◆ TileDescriptor

◆ TileDescriptors

◆ Type

typedef struct _Type Type

◆ Variable

typedef struct _Variable Variable

Structure of a single variable.

◆ VariableType

Type of variables.

◆ VestigialConfig

◆ Writing

typedef enum _Writing Writing

Enumeration Type Documentation

◆ _AnimationType

Enumerator
AT_SIMPLE 
AT_BOUNCE 
AT_LOOP 

Definition at line 285 of file ugbc.h.

◆ _AudioDeviceName

Enumerator
ADN_SN76489 
ADN_POKEY 
ADN_SID 
ADN_DAC1 
ADN_AY8910 
ADN_TED 
ADN_VIC1 

Definition at line 360 of file ugbc.h.

◆ _BankType

enum _BankType

Type of memory banks.

Enumerator
BT_CODE 

Executable code

BT_VARIABLES 

Variables

BT_TEMPORARY 

Temporary variables

BT_DATA 

Generic (unknonw) data

BT_STRINGS 

Strings (static and dynamic)

BT_EXPANSION 

Expansion (used by compression and bank commands)

Definition at line 120 of file ugbc.h.

◆ _Compression

Type of compression.

Enumerator
CMP_NONE 
CMP_MSC1 
CMP_RLE 

Definition at line 107 of file ugbc.h.

◆ _ConditionalType

Types of conditional jumps supported.

Enumerator
CT_IF 

IF ... THEN ... ENDIF

CT_ON_GOTO 

ON ... GOTO ...

CT_ON_GOSUB 

ON ... GOSUB ...

CT_ON_PROC 

ON ... PROC ...

CT_SELECT_CASE 

SELECT ... CASE ...

Definition at line 1334 of file ugbc.h.

◆ _ConstantType

Enumerator
CT_INTEGER 
CT_STRING 
CT_FLOAT 

Definition at line 786 of file ugbc.h.

◆ _CopperOperation

Enumerator
COP_NOP 
COP_WAIT 
COP_STORE_BYTE 
COP_STORE_WORD 
COP_STORE_DWORD 
COP_MOVE_BYTE 
COP_MOVE_WORD 
COP_MOVE_DWORD 
COP_COLOR_BORDER 
COP_COLOR_BACKGROUND 
COP_COLOR 

Definition at line 2221 of file ugbc.h.

◆ _Dialect

enum _Dialect

Type of dialects.

Enumerator
DI_UGBASIC 
DI_TSB 
DI_ATARI_BASIC 

Definition at line 94 of file ugbc.h.

◆ _FileStorageFormat

Enumerator
FSF_BINARY 
FSF_CSV 

Definition at line 249 of file ugbc.h.

◆ _FloatTypeAngle

Enumerator
FT_RADIAN 
FT_DEGREE 

Definition at line 859 of file ugbc.h.

◆ _FloatTypePrecision

Enumerator
FT_FAST 
FT_SINGLE 

Definition at line 852 of file ugbc.h.

◆ _FujiNetDefine

Enumerator
FN_HDBDOS 
FN_BECKER 
FN_SERIAL 
FN_SIO 

Definition at line 372 of file ugbc.h.

◆ _GammaCorrection

Gamma correction type (for some palettes).

This enumeration represent the type of color correction to be used.

Enumerator
GAMMA_CORRECTION_NONE 
GAMMA_CORRECTION_TYPE1 
GAMMA_CORRECTION_TYPE2 

Definition at line 315 of file ugbc.h.

◆ _HardwareName

Enumerator
HN_GMC 
HN_SN76489 

Definition at line 346 of file ugbc.h.

◆ _HardwareParameterName

Enumerator
HPN_SLOT 
HPN_ADDRESS 

Definition at line 353 of file ugbc.h.

◆ _LoopType

enum _LoopType

Types of loops supported.

Enumerator
LT_DO 

DO ... LOOP

LT_WHILE 

WHILE ... WEND

LT_REPEAT 

REPEAT ... UNTIL

LT_FOR 

FOR ... NEXT

LT_FOR_MT 

FOR ... NEXT (multithread)

LT_GAMELOOP 

BEGIN...END GAMELOOP

LT_LOOP 

LOOP...END LOOP

Definition at line 1385 of file ugbc.h.

◆ _MemoryAreaType

Enum for memory area type.

This enum will describe the kind of memory area, if it is accessible directly (so: it can be used for code and variable, without limits) or it is "gated" through a specific prologue and epilogue code.

Enumerator
MAT_DIRECT 

This memory area can be accessed directly, and can be initialized by compiler.

MAT_GATED 

This memory area can be accessed only after calling a specific prologue and epilogue code.

MAT_RAM 

This memory area can be accessed directly but it is not initialized directly – only at runtime.

Definition at line 708 of file ugbc.h.

◆ _MusicType

enum _MusicType
Enumerator
MUSIC_TYPE_AUTO 
MUSIC_TYPE_IAF 
MUSIC_TYPE_MID 
MUSIC_TYPE_PSG 
MUSIC_TYPE_SJ2 

Definition at line 239 of file ugbc.h.

◆ _OutputFileType

Enumerator
OUTPUT_FILE_TYPE_BIN 
OUTPUT_FILE_TYPE_PRG 
OUTPUT_FILE_TYPE_XEX 
OUTPUT_FILE_TYPE_K7_ORIGINAL 
OUTPUT_FILE_TYPE_K7_NEW 
OUTPUT_FILE_TYPE_TAP 
OUTPUT_FILE_TYPE_CAS 
OUTPUT_FILE_TYPE_ROM 
OUTPUT_FILE_TYPE_D64 
OUTPUT_FILE_TYPE_DSK 
OUTPUT_FILE_TYPE_ATR 
OUTPUT_FILE_TYPE_REU 
OUTPUT_FILE_TYPE_RAM 
OUTPUT_FILE_TYPE_GB 
OUTPUT_FILE_TYPE_COM 
OUTPUT_FILE_TYPE_VZ 
OUTPUT_FILE_TYPE_SDDRIVE 

Definition at line 256 of file ugbc.h.

◆ _PeepHoleOptimizationKind

Enumerator
PEEPHOLE 
DEADVARS 
RELOCATION1 
RELOCATION2 

Definition at line 278 of file ugbc.h.

◆ _VariableType

Type of variables.

Enumerator
VT_BYTE 

Single unsigned byte (8 bit)

VT_SBYTE 

Single signed byte (7 bit w / 2 complement)

VT_WORD 

Single unsigned word (16 bit)

VT_SWORD 

Single signed word (15 bit w / 2 complement)

VT_DWORD 

Single unsigned double word (32 bit)

VT_SDWORD 

Single signed double word (31 bit w / 2 complement)

VT_ADDRESS 

Memory address (16 bit)

VT_POSITION 

Ordinate or abscissa (8 bit or 16 bit)

VT_COLOR 

Color index (8 bit)

VT_STRING 

Strings (static)

VT_BUFFER 

Static buffer of a specific size

VT_TARRAY 

Array of any kind

VT_DSTRING 

Strings (dynamic)

VT_IMAGE 

MOBs (Movable OBjects) – deprecated! IMAGE (static picture)

VT_THREAD 

THREAD ID

VT_IMAGES 

IMAGES (static pictures) + optional tile set attached

VT_CHAR 

CHAR (printable character)

VT_SPRITE 

SPRITE (basic hardware movable objects)

VT_TILE 

TILE (basic character sized graphic)

VT_TILES 

TILES (rectagled group of character sized graphics)

VT_TILESET 

TILESET (a set of tiles)

VT_SEQUENCE 

SEQUENCE (a set of images)

VT_MUSIC 

MUSIC (a [piece of] music)

VT_BLIT 

BLIT (blit definition)

VT_FLOAT 

FLOAT (floating point)

VT_TILEMAP 

TILEMAP

VT_BIT 

BIT

VT_MSPRITE 

MSPRITE (multi hardware movable objects)

VT_DOJOKA 

DOJOKA (handle of logged dojo connection)

VT_IMAGEREF 

IMAGEREF

VT_PATH 

PATH

VT_VECTOR2 

VECTOR

VT_TYPE 

TYPE

VT_NUMBER 

NUMBER

Definition at line 447 of file ugbc.h.

◆ _Writing

enum _Writing
Enumerator
WRITING_REPLACE 
WRITING_OR 
WRITING_XOR 
WRITING_AND 
WRITING_IGNORE 
WRITING_PAPER 
WRITING_PEN 
WRITING_NORMAL 

Definition at line 1465 of file ugbc.h.

Function Documentation

◆ absolute()

Variable * absolute ( Environment * _environment,
char * _value )

Return the absolute value of a variable.

Parameters
_environmentCurrent calling environment
_valueValue to calculate the absolute value
Returns
Variable* The absolute value

Definition at line 97 of file abs.c.

◆ add_complex()

void add_complex ( Environment * _environment,
char * _variable,
int _expression,
int _limit_lower,
int _limit_upper,
int _clamp )

Definition at line 308 of file add.c.

◆ add_complex_array()

void add_complex_array ( Environment * _environment,
char * _variable,
char * _expression,
char * _limit_lower,
char * _limit_upper,
int _clamp )

Emit code for ADD x,y,a TO b.

Parameters
_environmentCurrent calling environment
_variableVariable to operate on
_expressionExpression to add to the variable
_limit_lowerLower limit
_limit_upperUpper limit

Definition at line 281 of file add.c.

◆ add_complex_array_type()

void add_complex_array_type ( Environment * _environment,
char * _variable,
char * _field,
char * _expression,
char * _limit_lower,
char * _limit_upper,
int _clamp )

Definition at line 295 of file add.c.

◆ add_complex_mt()

void add_complex_mt ( Environment * _environment,
char * _variable,
char * _expression,
char * _limit_lower,
char * _limit_upper,
int _clamp )

Emit code for ADD x,y,a TO b.

Parameters
_environmentCurrent calling environment
_variableVariable to operate on
_expressionExpression to add to the variable
_limit_lowerLower limit
_limit_upperUpper limit

Definition at line 248 of file add.c.

◆ add_complex_type()

void add_complex_type ( Environment * _environment,
char * _variable,
char * _field,
int _expression,
int _limit_lower,
int _limit_upper,
int _clamp )

Definition at line 346 of file add.c.

◆ add_complex_type_vars()

void add_complex_type_vars ( Environment * _environment,
char * _variable,
char * _field,
char * _expression,
char * _limit_lower,
char * _limit_upper,
int _clamp )

Definition at line 188 of file add.c.

◆ add_complex_vars()

void add_complex_vars ( Environment * _environment,
char * _variable,
char * _expression,
char * _limit_lower,
char * _limit_upper,
int _clamp )

Emit code for ADD x,y,a TO b.

Parameters
_environmentCurrent calling environment
_variableVariable to operate on
_expressionExpression to add to the variable
_limit_lowerLower limit
_limit_upperUpper limit

Definition at line 136 of file add.c.

◆ address_displacement()

char * address_displacement ( Environment * _environment,
char * _address,
char * _displacement )

Definition at line 14516 of file _infrastructure.c.

◆ allow()

void allow ( Environment * _environment)

Emit code for YIELD.

Parameters
_environmentCurrent calling environment

Definition at line 117 of file allow.c.

◆ animate_semivars()

void animate_semivars ( Environment * _environment,
char * _prefix,
char * _anim,
char * _x,
char * _y )

Emit code for ANIMATE ....

Parameters
_environmentCurrent calling environment
_nameName of the procedure

Definition at line 71 of file animate.c.

◆ animating()

Variable * animating ( Environment * _environment,
char * _prefix,
char * _animation )

Emit code for RUN PARALLEL.

Parameters
_environmentCurrent calling environment

Definition at line 66 of file animating.c.

◆ animation()

void animation ( Environment * _environment,
char * _identifier,
char * _atlas,
char * _prefix,
char * _next )

Emit code for ANIMATION ....

Parameters
_environmentCurrent calling environment
_nameName of the procedure

Definition at line 180 of file animation.c.

◆ asciicode()

Variable * asciicode ( Environment * _environment)

Definition at line 43 of file asciicode.c.

◆ assemblyLineIsAComment()

int assemblyLineIsAComment ( char * _buffer)

Definition at line 14280 of file _infrastructure.c.

◆ atlas_descriptor_create()

AtlasDescriptor * atlas_descriptor_create ( Environment * _environment,
char * _filename,
int _flags,
int _image_origin_x,
int _image_origin_y,
int _frame_width,
int _frame_height,
int _frame_offset_x,
int _frame_offset_y )

Definition at line 119 of file atlas_descriptor_create.c.

◆ back()

void back ( Environment * _environment,
char * _color )

Emit ASM code to fill background color.

This function can be called to fill the screen background with the given color. Depending on the mode selected (TILEMAP vs BITMAP) it can fill the screen in a different way.

Parameters
_environmentCurrent calling environment
_colorIndex of color to use to fill the screen

Definition at line 53 of file back.c.

◆ bank_cleanup()

void bank_cleanup ( Environment * _environment)

Emit source and configuration lines for banks.

This function can be called to generate all the definitions (on the source file, on the configuration file and on any support file) necessary to implement the memory banks.

Parameters
_environmentCurrent calling environment

Definition at line 52 of file bank.c.

◆ bank_define()

Bank * bank_define ( Environment * _environment,
char * _name,
BankType _type,
int _address,
char * _filename )

Implementation for BANK xxx AT [WITH yyy].

This method deals with populating the data structures for the definition of a "bank" of memory. The memory banks are defined and separate areas, identified by a name (optionally given) and a starting address and populated (optionally) with data coming from an external file. This definition occurs when the program presents a BANK instruction. Banks are characterized by a "type", which represents the nature of the data contained therein. The types surveyed are the following:

There can be only one definition of a bank with a specific name. Any duplicate definitions will be ignored.

Parameters
_environmentCurrent calling environment
_nameName of the bank (NULL if automatic)
_type
_address
_filename
Returns
Bank*

Definition at line 108 of file bank.c.

◆ bank_find()

Bank * bank_find ( Bank * _first,
char * _name )

Definition at line 251 of file _infrastructure.c.

◆ bank_get()

Variable * bank_get ( Environment * _environment)

Emit ASM code for instruction = BANK( ).

This function outputs the ASM code to get the current expansion bank index.

Parameters
_environmentCurrent calling environment
Returns
Current number of the bank selected

Definition at line 71 of file bank_get.c.

◆ bank_get_address()

Variable * bank_get_address ( Environment * _environment,
int _bank )

Emit ASM code for instruction = BANK ADDRESS( ).

This function outputs the ASM code to get the resident memory address for the given bank.

Parameters
_environmentCurrent calling environment
_bankBank to get address of
Returns
Current address of the bank selected

Definition at line 75 of file bank_get_address.c.

◆ bank_get_address_var()

Variable * bank_get_address_var ( Environment * _environment,
char * _bank )

Emit ASM code for instruction = BANK ADDRESS( ).

This function outputs the ASM code to get the resident memory address for the given bank.

Parameters
_environmentCurrent calling environment
_bankBank to get address of
Returns
Current address of the bank selected

Definition at line 95 of file bank_get_address.c.

◆ bank_get_count()

Variable * bank_get_count ( Environment * _environment)

Emit ASM code for instruction = BANK COUNT.

This function outputs the ASM code to get the resident memory number of banks.

Parameters
_environmentCurrent calling environment
Returns
Current number of banks present.

Definition at line 78 of file bank_get_count.c.

◆ bank_get_size()

Variable * bank_get_size ( Environment * _environment,
int _bank )

Emit ASM code for instruction = BANK SIZE( ).

This function outputs the ASM code to get the size of the shared memory for the given bank.

Parameters
_environmentCurrent calling environment
_bankBank to get size of
Returns
Current size of the bank selected

Definition at line 68 of file bank_get_size.c.

◆ bank_get_size_var()

Variable * bank_get_size_var ( Environment * _environment,
char * _bank )

Emit ASM code for instruction = BANK SIZE( ).

This function outputs the ASM code to get the resident memory address for the given bank.

Parameters
_environmentCurrent calling environment
_bankBank to get address of
Returns
Current size of the bank selected

Definition at line 92 of file bank_get_size.c.

◆ bank_read_semi_var()

void bank_read_semi_var ( Environment * _environment,
int _bank,
int _address1,
char * _address2,
int _size )

Emit ASM code for instruction BANK READ ....

This function outputs the ASM code to read data from a specific bank into the RAM.

Parameters
_environmentCurrent calling environment
_bankbank from read from
_address1address to read from (0 based)
_address2address to write to (RAM)
_sizesize of memory to read/write

This function outputs the ASM code to read data from a specific bank into the RAM.

Parameters
_environmentCurrent calling environment
_bankbank from read from
_address1address to read from (A000 based)
_address2address to write to (RAM)
_sizesize of memory to read/write

Definition at line 50 of file bank_read.c.

◆ bank_read_vars()

void bank_read_vars ( Environment * _environment,
char * _bank,
char * _address1,
char * _address2,
char * _size )

Emit ASM code for instruction BANK READ ....

This function outputs the ASM code to read data from a specific bank into the RAM.

Parameters
_environmentCurrent calling environment
_bankbank from read from
_address1address to read from (0 based)
_address2address to write to (RAM)
_sizesize of memory to read/write

Definition at line 107 of file bank_read.c.

◆ bank_read_vars_bank_direct_size()

void bank_read_vars_bank_direct_size ( Environment * _environment,
int _bank,
char * _address1,
char * _address2,
int _size )

Definition at line 218 of file bank_read.c.

◆ bank_read_vars_bank_direct_size_vars()

void bank_read_vars_bank_direct_size_vars ( Environment * _environment,
int _bank,
char * _address1,
char * _address2,
int _size )

Definition at line 178 of file bank_read.c.

◆ bank_read_vars_direct()

void bank_read_vars_direct ( Environment * _environment,
char * _bank,
char * _address1,
char * _address2,
char * _size )

Definition at line 138 of file bank_read.c.

◆ bank_read_vars_direct_size()

void bank_read_vars_direct_size ( Environment * _environment,
char * _bank,
char * _address1,
char * _address2,
int _size )

Definition at line 169 of file bank_read.c.

◆ bank_set()

void bank_set ( Environment * _environment,
int _bank )

Emit ASM code for instruction BANK ....

This function outputs the ASM code to set the current expansion bank index.

Parameters
_environmentCurrent calling environment
_bankBank to select

Definition at line 72 of file bank_set.c.

◆ bank_set_var()

void bank_set_var ( Environment * _environment,
char * _bank )

Emit ASM code for instruction BANK ....

This function outputs the ASM code to set the current expansion bank index.

Parameters
_environmentCurrent calling environment
_bankBank to select

Definition at line 87 of file bank_set.c.

◆ bank_uncompress_semi_var()

void bank_uncompress_semi_var ( Environment * _environment,
int _bank,
int _address1,
char * _address2 )

Emit ASM code for instruction BANK UNCOMPRESS ....

This function outputs the ASM code to uncompress data from a specific bank into the RAM.

Parameters
_environmentCurrent calling environment
_bankbank from uncompress from
_address1address to uncompress from (0 based)
_address2address to write to (RAM)

Definition at line 49 of file bank_uncompress.c.

◆ bank_uncompress_vars()

void bank_uncompress_vars ( Environment * _environment,
char * _bank,
char * _address1,
char * _address2 )

Emit ASM code for instruction BANK UNCOMPRESS ....

This function outputs the ASM code to uncompress data from a specific bank into the RAM.

Parameters
_environmentCurrent calling environment
_bankbank from uncompress from
_address1address to uncompress from (0 based)
_address2address to write to (RAM)

Definition at line 64 of file bank_uncompress.c.

◆ bank_write_semi_var()

void bank_write_semi_var ( Environment * _environment,
char * _address2,
int _bank,
int _address1,
int _size )

Definition at line 127 of file bank_write.c.

◆ bank_write_vars()

void bank_write_vars ( Environment * _environment,
char * _address1,
char * _bank,
char * _address2,
char * _size )

Emit ASM code for instruction BANK WRITE ....

This function outputs the ASM code to write data from the RAM to a specific bank.

Parameters
_environmentCurrent calling environment
_bankbank to write to
_address1address to read from (RAM)
_address2address to write to (0 based)
_sizesize of memory to read/write

Definition at line 49 of file bank_write.c.

◆ bank_write_vars_bank_direct_size()

void bank_write_vars_bank_direct_size ( Environment * _environment,
char * _address1,
int _bank,
char * _address2,
int _size )

Definition at line 111 of file bank_write.c.

◆ bank_write_vars_direct()

void bank_write_vars_direct ( Environment * _environment,
char * _bank,
char * _address1,
char * _address2,
char * _size )

Definition at line 80 of file bank_write.c.

◆ banks_any_used()

int banks_any_used ( Environment * _environment)

Definition at line 93 of file _banks.c.

◆ banks_generate()

void banks_generate ( Environment * _environment)

Definition at line 45 of file _banks.c.

◆ banks_get_address()

char * banks_get_address ( Environment * _environment,
int _bank )

Definition at line 121 of file _banks.c.

◆ banks_get_address_var()

Variable * banks_get_address_var ( Environment * _environment,
char * _bank )

Definition at line 152 of file _banks.c.

◆ banks_get_default_resident()

int banks_get_default_resident ( Environment * _environment,
int _bank )

Definition at line 107 of file _banks.c.

◆ banks_init()

void banks_init ( Environment * _environment)

Definition at line 68 of file _banks.c.

◆ banks_init_extended()

void banks_init_extended ( Environment * _environment,
int * _allowed,
int _allowed_count,
int _allowed_size )

Definition at line 43 of file _banks.c.

◆ banks_store()

int banks_store ( Environment * _environment,
Variable * _variable,
int _resident )

Definition at line 170 of file _banks.c.

◆ banks_store_data()

int banks_store_data ( Environment * _environment,
char * _data,
int _size )

Definition at line 312 of file _banks.c.

◆ bar()

void bar ( Environment * _environment,
char * _x0,
char * _y0,
char * _x1,
char * _y1,
char * _c,
int _preserve_color )

Emit ASM code to implement BAR command.

Parameters
_environmentCurrent calling environment
_x1Left abscissa of the box
_y1Left ordinate of the box
_x2Right abscissa of the box
_y2Right ordinate of the box
_cColor to use for drawing the bar

Definition at line 100 of file bar.c.

◆ basename()

char * basename ( char * _path)

Definition at line 14314 of file _infrastructure.c.

◆ begin_build()

void begin_build ( Environment * _environment)

Start building exe from assembly.

Parameters
_environment

Definition at line 46 of file _build.c.

◆ begin_compilation()

void begin_compilation ( Environment * _environment)

Definition at line 41 of file _init.c.

◆ begin_copper()

void begin_copper ( Environment * _environment,
char * _name )

Emit code for BEGIN COPPER.

Parameters
_environmentCurrent calling environment

Definition at line 159 of file begin_copper.c.

◆ begin_do_loop()

void begin_do_loop ( Environment * _environment)

Emit ASM code for DO ....

This function outputs the code to implement the starting point of a DO...LOOP loop.

Parameters
_environmentCurrent calling environment

Definition at line 131 of file begin_do_loop.c.

◆ begin_for()

void begin_for ( Environment * _environment,
char * _index,
char * _from,
char * _to )

Definition at line 436 of file begin_for.c.

◆ begin_for_from()

void begin_for_from ( Environment * _environment,
char * _index,
char * _from,
char * _to,
char * _step )

◆ begin_for_from_assign()

void begin_for_from_assign ( Environment * _environment,
char * _from )

Definition at line 182 of file begin_for.c.

◆ begin_for_from_assign_mt()

void begin_for_from_assign_mt ( Environment * _environment,
char * _from )

Definition at line 77 of file begin_for_mt.c.

◆ begin_for_from_mt()

void begin_for_from_mt ( Environment * _environment,
char * _index,
char * _from,
char * _to,
char * _step )

◆ begin_for_from_prepare()

void begin_for_from_prepare ( Environment * _environment)

Definition at line 172 of file begin_for.c.

◆ begin_for_from_prepare_mt()

void begin_for_from_prepare_mt ( Environment * _environment)

Definition at line 67 of file begin_for_mt.c.

◆ begin_for_identifier()

void begin_for_identifier ( Environment * _environment,
char * _index )

Definition at line 289 of file begin_for.c.

◆ begin_for_identifier_mt()

void begin_for_identifier_mt ( Environment * _environment,
char * _index )

Definition at line 214 of file begin_for_mt.c.

◆ begin_for_mt()

void begin_for_mt ( Environment * _environment,
char * _index,
char * _from,
char * _to )

◆ begin_for_mt_step()

void begin_for_mt_step ( Environment * _environment,
char * _index,
char * _from,
char * _to,
char * _step )

Emit ASM code for FOR ... STEP ... NEXT (in thread).

This function outputs the code to implement the starting point of a FOR ... STEP ... NEXT loop inside a thread

Parameters
_environmentCurrent calling environment
_indexVariable to use as index
_fromStarting value
_toEnding value
_stepStep value

Definition at line 53 of file begin_for_mt_step.c.

◆ begin_for_prepare()

void begin_for_prepare ( Environment * _environment,
char * _index )

Emit ASM code for FOR ....

This function outputs the code to implement the starting point of a FOR...NEXT loop

Parameters
_environmentCurrent calling environment
_indexVariable to use as index
_fromStarting value
_toEnding value

Definition at line 143 of file begin_for.c.

◆ begin_for_prepare_mt()

void begin_for_prepare_mt ( Environment * _environment,
char * _index )

Definition at line 41 of file begin_for_mt.c.

◆ begin_for_step()

void begin_for_step ( Environment * _environment,
char * _index,
char * _from,
char * _to,
char * _step )

Emit ASM code for FOR ... STEP ... NEXT.

This function outputs the code to implement the starting point of a FOR ... STEP ... NEXT loop

Parameters
_environmentCurrent calling environment
_indexVariable to use as index
_fromStarting value
_toEnding value
_stepStep value

Definition at line 49 of file begin_for_step.c.

◆ begin_for_step_assign()

void begin_for_step_assign ( Environment * _environment,
char * _step )

Definition at line 247 of file begin_for.c.

◆ begin_for_step_assign_mt()

void begin_for_step_assign_mt ( Environment * _environment,
char * _step )

Definition at line 147 of file begin_for_mt.c.

◆ begin_for_step_prepare()

void begin_for_step_prepare ( Environment * _environment)

Definition at line 237 of file begin_for.c.

◆ begin_for_step_prepare_mt()

void begin_for_step_prepare_mt ( Environment * _environment)

Definition at line 137 of file begin_for_mt.c.

◆ begin_for_to()

void begin_for_to ( Environment * _environment,
char * _to )

◆ begin_for_to_assign()

void begin_for_to_assign ( Environment * _environment,
char * _to )

Definition at line 216 of file begin_for.c.

◆ begin_for_to_assign_mt()

void begin_for_to_assign_mt ( Environment * _environment,
char * _to )

Definition at line 113 of file begin_for_mt.c.

◆ begin_for_to_mt()

void begin_for_to_mt ( Environment * _environment,
char * _to )

◆ begin_for_to_prepare()

void begin_for_to_prepare ( Environment * _environment)

Definition at line 206 of file begin_for.c.

◆ begin_for_to_prepare_mt()

void begin_for_to_prepare_mt ( Environment * _environment)

Definition at line 103 of file begin_for_mt.c.

◆ begin_gameloop()

void begin_gameloop ( Environment * _environment)

Emit ASM code for BEGIN GAMELOOP.

This function is called to emit the code necessary to define the starting point of a game loop. A game loop is nothing more than an implicit loop, within which all the logic of the program (or of the game) runs. The end point of a game loop can correspond to the end of the program or to the END GAMELOOP statement.

Parameters
_environmentCurrent calling environment

Definition at line 55 of file begin_gameloop.c.

◆ begin_loop()

void begin_loop ( Environment * _environment,
int _do )

Emit ASM code for DO ....

This function outputs the code to implement the starting point of a DO...LOOP loop.

Parameters
_environmentCurrent calling environment

Definition at line 49 of file begin_loop.c.

◆ begin_procedure()

void begin_procedure ( Environment * _environment,
char * _name )

Emit code for PROCEDURE ... END PROC.

Parameters
_environmentCurrent calling environment
_nameName of the procedure

Definition at line 113 of file begin_procedure.c.

◆ begin_repeat()

void begin_repeat ( Environment * _environment)

Emit ASM code for REPEAT ....

This function outputs the code to implement the starting point of a REPEAT...UNTIL loop.

Parameters
_environmentCurrent calling environment

Definition at line 103 of file begin_repeat.c.

◆ begin_storage()

void begin_storage ( Environment * _environment,
char * _name,
char * _file_name )

Emit code for STORAGE ... ENDSTORAGE.

Parameters
_environmentCurrent calling environment
_nameName of the storage

Definition at line 147 of file begin_storage.c.

◆ begin_type()

void begin_type ( Environment * _environment,
char * _name )

Emit code for STORAGE ... ENDSTORAGE.

Parameters
_environmentCurrent calling environment
_nameName of the storage

Definition at line 117 of file begin_type.c.

◆ begin_while()

void begin_while ( Environment * _environment)

Emit ASM code for WHILE ....

This function outputs the code to implement the starting point of a WHILE...WEND loop.

Parameters
_environmentCurrent calling environment
_expressionExpression to evaluate

Definition at line 83 of file while.c.

◆ begin_while_condition()

void begin_while_condition ( Environment * _environment,
char * _expression )

Definition at line 99 of file while.c.

◆ bell()

void bell ( Environment * _environment,
int _note,
int _duration,
int _channels )

Emit ASM code for BELL ....

This function emits a code capable of play a bell sound

Parameters
_environmentCurrent calling environment
_pitchfrequency to play
_channelschannels to play on

Definition at line 56 of file bell.c.

◆ bell_vars()

void bell_vars ( Environment * _environment,
char * _note,
char * _duration,
char * _channels,
int _sync )

Emit ASM code for BELL ....

This function emits a code capable of play a bell-like sound.

Parameters
_environmentCurrent calling environment
_pitchfrequency to play
_channelschannels to play on

Definition at line 86 of file bell.c.

◆ bitmap_at()

void bitmap_at ( Environment * _environment,
int _address )

Emit ASM implementation for BITMAP AT [int] instruction.

This function allows you to set the starting address, in memory, for the bitmap and it is the version that is used when the memory is given as a direct number (i.e.: $A000). The input parameter is decoded and declined according to the hardware limits. So it is not said that exactly the given address is set.

On some machine calling this instruction will define the special variable:

  • BITMAPADDRESS (VT_ADDRESS) - the starting address of bitmap memory
Parameters
_environmentCurrent calling environment
_addressAddress to use

This function allows you to set the starting address, in memory, for the bitmap and it is the version that is used when the memory is given as a direct number (i.e.: $2000). The input parameter is decoded and declined according to the hardware limits. So it is not said that exactly the given address is set.

On some machine calling this instruction will define the special variable:

  • bitmapAddress (VT_ADDRESS) - the starting address of bitmap memory
Parameters
_environmentCurrent calling environment
_addressAddress to use

Definition at line 85 of file bitmap_at.c.

◆ bitmap_at_var()

void bitmap_at_var ( Environment * _environment,
char * _address )

Emit ASM implementation for BITMAP AT [expression] instruction.

This function allows you to set the starting address, in memory, for the bitmap and it is the version that is used when the memory is given as a expression that involves variables. The input parameter is decoded and declined according to the hardware limits. So it is not said that exactly the given address is set.

On some machine calling this instruction will define the special variable:

  • BITMAPADDRESS (VT_ADDRESS) - the starting address of bitmap memory
Parameters
_environmentCurrent calling environment
_addressAddress to use

Definition at line 109 of file bitmap_at.c.

◆ bitmap_disable()

void bitmap_disable ( Environment * _environment)

Emit ASM implementation for BITMAP DISABLE instruction.

This function can be called to emit the code to disable bitmap graphics on the target machine.

Parameters
_environmentCurrent calling environment

Definition at line 55 of file bitmap_disable.c.

◆ bitmap_enable()

void bitmap_enable ( Environment * _environment,
int _width,
int _height,
int _colors )

Emit ASM implementation for BITMAP ENABLE instruction.

This function can be called to emit the code to enable bitmap graphics on the target machine. Bitmap resolution and colors depends on hardware. Enabling the bitmap also sets the starting address in memory, for those computers that have graphics mapped in memory.

On some machine calling this instruction will define two special variables:

  • BITMAPADDRESS (VT_ADDRESS) - the starting address of bitmap memory
  • COLORMAPADDRESS (VT_ADDRESS) - the starting address of color map memory
Parameters
_environmentCurrent calling environment

Definition at line 56 of file bitmap_enable.c.

◆ blit_define()

void blit_define ( Environment * _environment,
char * _name,
int _sop,
int _mop,
int _smop,
int _iop,
int _dop,
int _idop,
int _top )

Emit ASM code for BLIT IMAGE [image] AT [int],[int].

This function outputs a code that draws an image on a bitmap.

Parameters
_environmentCurrent calling environment
_imageImage to draw
_xAbscissa of the point to draw
_yOrdinate of the point

Definition at line 204 of file blit_define.c.

◆ blit_define_begin_compound()

void blit_define_begin_compound ( Environment * _environment,
char * _name )

Definition at line 250 of file blit_define.c.

◆ blit_define_compound_binary()

void blit_define_compound_binary ( Environment * _environment,
int _operation,
int _operand1,
int _operand2,
int _result )

Definition at line 287 of file blit_define.c.

◆ blit_define_compound_operand_to_register()

void blit_define_compound_operand_to_register ( Environment * _environment,
int _register,
int _source )

Definition at line 272 of file blit_define.c.

◆ blit_define_compound_unary()

void blit_define_compound_unary ( Environment * _environment,
int _operation,
int _operand,
int _result )

Definition at line 281 of file blit_define.c.

◆ blit_define_end_compound()

void blit_define_end_compound ( Environment * _environment,
int _register )

Definition at line 293 of file blit_define.c.

◆ blit_image()

void blit_image ( Environment * _environment,
char * _blit,
char * _x,
char * _y,
char * _frame,
char * _sequence,
int _flags )

Emit ASM code for BLIT IMAGE [image] AT [int],[int].

This function outputs a code that draws an image on a bitmap.

Parameters
_environmentCurrent calling environment
_imageImage to draw
_xAbscissa of the point to draw
_yOrdinate of the point

Definition at line 53 of file blit_image.c.

◆ boom()

void boom ( Environment * _environment,
int _duration,
int _channels )

Emit ASM code for BOOM ....

This function emits a code capable of play a explosion-like sound.

Parameters
_environmentCurrent calling environment
_channelschannels to play on

Definition at line 55 of file boom.c.

◆ boom_var()

void boom_var ( Environment * _environment,
char * _duration,
char * _channels )

Emit ASM code for BOOM ....

This function emits a code capable of play a explosion-like sound.

Parameters
_environmentCurrent calling environment
_channelschannels to play on

Definition at line 84 of file boom.c.

◆ bottom()

void bottom ( Environment * _environment)

Emit code for HOME.

Parameters
_environmentCurrent calling environment

Definition at line 68 of file bottom.c.

◆ box()

void box ( Environment * _environment,
char * _x1,
char * _y1,
char * _x2,
char * _y2,
char * _c,
int _preserve_color )

Emit ASM code to implement BOX command.

Parameters
_environmentCurrent calling environment
_x1Left abscissa of the box
_y1Left ordinate of the box
_x2Right abscissa of the box
_y2Right ordinate of the box
_cColor to use for drawing the box

Definition at line 84 of file box.c.

◆ buffered_fprintf()

void buffered_fprintf ( Environment * _environment,
FILE * _stream,
const char * _format,
... )

Definition at line 15011 of file _infrastructure.c.

◆ buffered_fputs()

int buffered_fputs ( Environment * _environment,
const char * _string,
FILE * _stream )

Definition at line 15021 of file _infrastructure.c.

◆ buffered_fwrite()

size_t buffered_fwrite ( Environment * _environment,
void * _data,
size_t _size,
size_t _count,
FILE * _stream )

Definition at line 15026 of file _infrastructure.c.

◆ buffered_output()

void buffered_output ( Environment * _environment,
FILE * _stream )

Definition at line 15051 of file _infrastructure.c.

◆ buffered_pop_output()

void buffered_pop_output ( Environment * _environment)

Definition at line 15035 of file _infrastructure.c.

◆ buffered_prepend_output()

void buffered_prepend_output ( Environment * _environment)

Definition at line 15041 of file _infrastructure.c.

◆ buffered_push_output()

void buffered_push_output ( Environment * _environment)

Definition at line 15031 of file _infrastructure.c.

◆ build_resource_for_sequence()

Resource * build_resource_for_sequence ( Environment * _environment,
char * _image,
char * _frame,
char * _sequence )

Definition at line 15073 of file _infrastructure.c.

◆ calculate_exact_tile()

int calculate_exact_tile ( TileDescriptor * _tile,
TileDescriptors * _tiles )

Definition at line 13128 of file _infrastructure.c.

◆ calculate_frame_by_type()

Variable * calculate_frame_by_type ( Environment * _environment,
TsxTileset * _tileset,
char * _images,
char * _description )

Definition at line 14541 of file _infrastructure.c.

◆ calculate_nearest_tile()

int calculate_nearest_tile ( TileDescriptor * _tile,
TileDescriptors * _tiles )

Definition at line 13108 of file _infrastructure.c.

◆ calculate_tile_affinity()

int calculate_tile_affinity ( TileDescriptor * _first,
TileDescriptor * _second )

Definition at line 13093 of file _infrastructure.c.

◆ calculate_tile_descriptor()

TileDescriptor * calculate_tile_descriptor ( TileData * _tileData)

Definition at line 13041 of file _infrastructure.c.

◆ call_procedure()

void call_procedure ( Environment * _environment,
char * _name )

Emit code for CALL/PROC ....

Parameters
_environmentCurrent calling environment
_nameName of the procedure

Definition at line 139 of file call.c.

◆ case_else()

void case_else ( Environment * _environment)

Emit ASM code for CASE ELSE.

This function outputs the code when other comparisons fails

Parameters
_environmentCurrent calling environment
_expressionExpression with the true / false condition

Definition at line 78 of file case_else.c.

◆ case_equals()

void case_equals ( Environment * _environment,
int _value )

Emit ASM code for CASE ....

This function outputs the code to implement a single comparison of a structured conditional jump.

Parameters
_environmentCurrent calling environment
_expressionExpression with the true / false condition

Definition at line 148 of file case_equals.c.

◆ case_equals_label()

void case_equals_label ( Environment * _environment)

Definition at line 74 of file case_equals.c.

◆ case_equals_var()

void case_equals_var ( Environment * _environment,
char * _value )

Emit ASM code for CASE ....

This function outputs the code to implement a single comparison of a structured conditional jump.

Parameters
_environmentCurrent calling environment
_expressionExpression with the true / false condition

Definition at line 106 of file case_equals.c.

◆ center()

void center ( Environment * _environment,
char * _string,
int _newline,
char * _width )

Emit code for CENTRE ....

Parameters
_environmentCurrent calling environment
_stringString to center

Definition at line 124 of file center.c.

◆ cgoto()

void cgoto ( Environment * _environment,
char * _expression )

Definition at line 85 of file cgoto.c.

◆ chain()

void chain ( Environment * _environment,
char * _filename )

Emit code for DLOAD(...).

Parameters
_environmentCurrent calling environment
_filenameFilename to read into buffer

Definition at line 101 of file chain.c.

◆ char_at()

void char_at ( Environment * _environment,
char * _x,
char * _y,
char * _code,
char * _type,
char * _size )

Emit code for CENTRE ....

Parameters
_environmentCurrent calling environment
_stringString to center

Definition at line 51 of file char_at.c.

◆ charset_at()

void charset_at ( Environment * _environment,
int _address )

Emit ASM implementation for BITMAP AT [int] instruction.

This function allows you to set the starting address, in memory, for the bitmap and it is the version that is used when the memory is given as a direct number (i.e.: $2000). The input parameter is decoded and declined according to the hardware limits. So it is not said that exactly the given address is set.

On some machine calling this instruction will define the special variable:

  • bitmapAddress (VT_ADDRESS) - the starting address of bitmap memory
Parameters
_environmentCurrent calling environment
_addressAddress to use

This function allows you to set the starting address, in memory, for the bitmap and it is the version that is used when the memory is given as a direct number (i.e.: $A000). The input parameter is decoded and declined according to the hardware limits. So it is not said that exactly the given address is set.

On some machine calling this instruction will define the special variable:

  • BITMAPADDRESS (VT_ADDRESS) - the starting address of bitmap memory
Parameters
_environmentCurrent calling environment
_addressAddress to use

Definition at line 43 of file charset_at.c.

◆ charset_at_var()

void charset_at_var ( Environment * _environment,
char * _address )

Emit ASM implementation for BITMAP AT [expression] instruction.

This function allows you to set the starting address, in memory, for the bitmap and it is the version that is used when the memory is given as a expression that involves variables. The input parameter is decoded and declined according to the hardware limits. So it is not said that exactly the given address is set.

On some machine calling this instruction will define the special variable:

  • BITMAPADDRESS (VT_ADDRESS) - the starting address of bitmap memory
Parameters
_environmentCurrent calling environment
_addressAddress to use

Definition at line 47 of file charset_at.c.

◆ charset_lowercase()

void charset_lowercase ( Environment * _environment)

Definition at line 55 of file charset_at.c.

◆ charset_uppercase()

void charset_uppercase ( Environment * _environment)

Definition at line 51 of file charset_at.c.

◆ check_datatype_limits()

int check_datatype_limits ( VariableType _type,
int _value )

Definition at line 15912 of file _infrastructure.c.

◆ check_if_filename_is_valid()

int check_if_filename_is_valid ( Environment * _environment,
char * _filename )

Definition at line 13942 of file _infrastructure.c.

◆ circle()

void circle ( Environment * _environment,
char * _x,
char * _y,
char * _r,
char * _c,
int _preserve_color )

Emit code for CIRCLE command.

Parameters
_environmentCurrent calling environment
_xAbscissa of the center of the circle
_yOrdinate of the center of the circle
_rRadius of the circle
_cColor to be used to draw circle

Definition at line 105 of file circle.c.

◆ clear()

void clear ( Environment * _environment)

Definition at line 41 of file clear.c.

◆ clear_key()

Variable * clear_key ( Environment * _environment)

Definition at line 43 of file clear_key.c.

◆ cline()

void cline ( Environment * _environment,
char * _characters )

Emit code for CLINE ....

Parameters
_environmentCurrent calling environment
_charactersCharacters to remove

Definition at line 52 of file cline.c.

◆ clip()

void clip ( Environment * _environment,
char * _x1,
char * _y1,
char * _x2,
char * _y2 )

Emit code to implement CLIP command.

Parameters
_environmentCurrent calling environment
_x1Left abscissa for clipping area
_y1Top ordinate for clipping area
_x2Right abscissa for clipping area
_y2Bottom ordinate for clipping area

Definition at line 78 of file clip.c.

◆ cls()

void cls ( Environment * _environment,
char * _paper )

Emit code for CLS.

Parameters
_environmentCurrent calling environment
_paperColor to use to clear the screen (NULL = default one)

Definition at line 48 of file cls.c.

◆ cls_box()

void cls_box ( Environment * _environment,
char * _x1,
char * _y1,
char * _w,
char * _h )

Definition at line 43 of file cls_box.c.

◆ cmove()

void cmove ( Environment * _environment,
char * _dx,
char * _dy )

Emit code for CMOVE.

Parameters
_environment

Definition at line 100 of file cmove.c.

◆ cmove_direct()

void cmove_direct ( Environment * _environment,
int _dx,
int _dy )

Definition at line 41 of file cmove.c.

◆ collision_to()

Variable * collision_to ( Environment * _environment,
int _sprite )

Emit ASM code for = COLLISION([int]x).

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. This function is used when a direct integer is used.

Parameters
_environmentCurrent calling environment
_spriteInteger with the bitmask of the sprites
Returns
Variable* Temporary variable with the result of collision (0 = no collision, 1 = collision occurred)

Definition at line 57 of file collision.c.

◆ collision_to_vars()

Variable * collision_to_vars ( Environment * _environment,
char * _sprite )

Emit ASM code for = COLLISION([expression]).

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. This function is used when an expression is used.

Parameters
_environmentCurrent calling environment
_spriteExpression with the bitmask of the sprites
Returns
Variable* Temporary variable with the result of collision (0 = no collision, 1 = collision occurred)

Definition at line 79 of file collision.c.

◆ color()

void color ( Environment * _environment,
int _index,
int _shade )

Emit ASM code for instruction COLOR [int], [int].

This function outputs the ASM code to change the color index, among those available. It should be used where the command is invoked with integers.

Parameters
_environmentCurrent calling environment
_indexIndex of the common color to set
_shadeShade of the common color to set

Definition at line 59 of file color.c.

◆ color_background()

void color_background ( Environment * _environment,
int _index,
int _background_color )

Emit ASM code for instruction COLOR BACKGROUND [int] TO [int]x.

This function outputs the ASM code to change the background color, among those available. It should be used where the command is invoked with a direct integer value.

Parameters
_environmentCurrent calling environment
_indexIndex of the background color
_background_colorIndex of the color to use

Definition at line 52 of file color_background.c.

◆ color_background_vars()

void color_background_vars ( Environment * _environment,
char * _index,
char * _background_color )

Emit ASM code for instruction COLOR BACKGROUND [expression] TO [expression].

This function outputs the ASM code to change the background color, among those available. It should be used where the command is invoked with expressions.

Parameters
_environmentCurrent calling environment
_indexExpression with the index of the background color
_background_colorExpression with the index of the color to use

Definition at line 68 of file color_background.c.

◆ color_border()

void color_border ( Environment * _environment,
int _color )

Emit ASM code for instruction COLOR BORDER [int]x.

This function outputs the ASM code to change the border color, where the command is invoked with a direct integer value.

Parameters
_environmentCurrent calling environment
_colorIndex color to use.

Definition at line 50 of file color_border.c.

◆ color_border_var()

void color_border_var ( Environment * _environment,
char * _color )

Emit ASM code for instruction COLOR BORDER [expression].

This function outputs the ASM code to change the border color, where the command is invoked with an expression.

Parameters
_environmentCurrent calling environment
_colorVariable with the expression.

Definition at line 65 of file color_border.c.

◆ color_get_vars()

Variable * color_get_vars ( Environment * _environment,
char * _index )

Emit ASM code for instruction = COLOR( [int] ).

This function outputs the ASM code to get the color index, among those available.

Parameters
_environmentCurrent calling environment
_indexIndex of the common color to set
Returns
Shade of the common color to set

Definition at line 53 of file color_get.c.

◆ color_semivars()

void color_semivars ( Environment * _environment,
int _index,
char * _shade )

Emit ASM code for instruction COLOR [expression], [expression].

This function outputs the ASM code to change the common color, among those available. It should be used where the command is invoked with expressions.

Parameters
_environmentCurrent calling environment
_indexExpression with the index of common color to set
_common_colorExpression with the index of the color to use

Definition at line 75 of file color.c.

◆ color_sprite()

void color_sprite ( Environment * _environment,
int _index,
int _common_color )

Emit ASM code for instruction COLOR SPRITE [int] TO [int].

This function outputs the ASM code to change the common sprite color, among those available. It should be used where the command is invoked with integers.

Parameters
_environmentCurrent calling environment
_indexIndex of the common color to set
_common_colorIndex of the color to use

Emit ASM code for instruction COLOR SPRITE [int] TO [int].

This function outputs the ASM code to change the common sprite color, among those available. It should be used where the command is invoked with integers.

Parameters
_environmentCurrent calling environment
_indexIndex of the common color to set
_common_colorIndex of the color to use

Definition at line 47 of file color_sprite.c.

◆ color_sprite_semi_vars()

void color_sprite_semi_vars ( Environment * _environment,
int _index,
char * _color )

Definition at line 51 of file color_sprite.c.

◆ color_sprite_vars()

void color_sprite_vars ( Environment * _environment,
char * _index,
char * _common_color )

Emit ASM code for instruction COLOR SPRITE [expression] TO [expression].

This function outputs the ASM code to change the common sprite color, among those available. It should be used where the command is invoked with expressions.

Parameters
_environmentCurrent calling environment
_indexExpression with the index of common color to set
_common_colorExpression with the index of the color to use

Definition at line 65 of file color_sprite.c.

◆ color_tsb()

void color_tsb ( Environment * _environment,
char * _border,
char * _background,
char * _cursor )

Definition at line 41 of file color_tsb.c.

◆ color_vars()

void color_vars ( Environment * _environment,
char * _index,
char * _shade )

Emit ASM code for instruction COLOR [expression], [expression].

This function outputs the ASM code to change the common color, among those available. It should be used where the command is invoked with expressions.

Parameters
_environmentCurrent calling environment
_indexExpression with the index of common color to set
_common_colorExpression with the index of the color to use

Definition at line 93 of file color.c.

◆ colormap_at()

void colormap_at ( Environment * _environment,
int _address )

Emit ASM implementation for COLORMAP AT [int] instruction.

This function allows you to set the starting address, in memory, for the colormap and it is the version that is used when the memory is given as a direct number (i.e.: $8400). The input parameter is decoded and declined according to the hardware limits. So it is not said that exactly the given address is set.

On some machine calling this instruction will define the special variable:

  • COLORMAPADDRESS (VT_ADDRESS) - the starting address of colormap memory
Parameters
_environmentCurrent calling environment
_addressAddress to use

Emit ASM implementation for COLORMAP AT [int] instruction.

This function allows you to set the starting address, in memory, for the colormap and it is the version that is used when the memory is given as a direct number (i.e.: $2000). The input parameter is decoded and declined according to the hardware limits. So it is not said that exactly the given address is set.

On some machine calling this instruction will define the special variable:

  • colormapAddress (VT_ADDRESS) - the starting address of colormap memory
Parameters
_environmentCurrent calling environment
_addressAddress to use

Definition at line 60 of file colormap_at.c.

◆ colormap_at_var()

void colormap_at_var ( Environment * _environment,
char * _address )

Emit ASM implementation for COLORMAP AT [expression] instruction.

This function allows you to set the starting address, in memory, for the colormap and it is the version that is used when the memory is given as an expression. The input parameter is decoded and declined according to the hardware limits. So it is not said that exactly the given address is set.

On some machine calling this instruction will define the special variable:

  • colormapAddress (VT_ADDRESS) - the starting address of colormap memory
Parameters
_environmentCurrent calling environment
_addressAddress to use

Definition at line 82 of file colormap_at.c.

◆ colormap_clear()

void colormap_clear ( Environment * _environment)

Emit ASM implementation for COLORMAP CLEAR instruction.

This function is called when you want to generate code that erases the entire color map, using the default foreground and background color.

Precondition
Bitmap must be enabled at least once with instruction BITMAP ENABLE.
Parameters
_environmentCurrent calling environment
Exceptions
EXIT_FAILURE"CRITICAL: COLORMAP CLEAR WITH xxx AND xxx needs BITMAP ENABLED"

Definition at line 97 of file colormap_clear.c.

◆ colormap_clear_with()

void colormap_clear_with ( Environment * _environment,
int _foreground,
int _background )

Emit ASM implementation for COLORMAP CLEAR WITH [int] ON [int] instruction.

This function is called when you want to generate code that erases the entire color map, using a foreground and a background color. This function is useful if the color indices are given as integers.

Precondition
Bitmap must be enabled at least once with instruction BITMAP ENABLE.
Parameters
_environmentCurrent calling environment
_foregroundIndex of foreground color
_backgroundIndex of background color
Exceptions
EXIT_FAILURE"COLORMAP CLEAR WITH xxx ON xxx needs BITMAP ENABLED"

Emit ASM implementation for COLORMAP CLEAR WITH [int] ON [int] instruction.

This function is called when you want to generate code that erases the entire color map, using a foreground and a background color. This function is useful if the color indices are given as integers.

Precondition
Bitmap must be enabled at least once with instruction BITMAP ENABLE.
Parameters
_environmentCurrent calling environment
_foregroundIndex of foreground color
_backgroundIndex of background color
Exceptions
EXIT_FAILURE"COLORMAP CLEAR WITH xxx ON xxx needs BITMAP ENABLED"

Definition at line 58 of file colormap_clear.c.

◆ colormap_clear_with_vars()

void colormap_clear_with_vars ( Environment * _environment,
char * _foreground,
char * _background )

Emit ASM implementation for COLORMAP CLEAR WITH [expression] ON [expression] instruction.

This function is called when you want to generate code that erases the entire color map, using a foreground and a background color. This function is useful if the color indices are given as integers.

Precondition
Bitmap must be enabled at least once with instruction BITMAP ENABLE.
Parameters
_environmentCurrent calling environment
_foregroundExpression for index of foreground color
_backgroundExpression for index of background color
Exceptions
EXIT_FAILURE"CRITICAL: COLORMAP CLEAR WITH xxx AND xxx needs BITMAP ENABLED"

Definition at line 79 of file colormap_clear.c.

◆ combine_nibble_vars()

Variable * combine_nibble_vars ( Environment * _environment,
char * _low,
char * _high )

Emit code for COMBINE NIBBLE.

Parameters
_environment

Definition at line 67 of file combine_nibble.c.

◆ configure_set_value()

void configure_set_value ( Environment * _environment,
int _name,
int _parameter,
int _value )

Definition at line 37 of file configure_set_value.c.

◆ configure_set_value_var()

void configure_set_value_var ( Environment * _environment,
int _name,
int _parameter,
char * _value )

Definition at line 54 of file configure_set_value.c.

◆ console()

void console ( Environment * _environment,
int _x1,
int _y1,
int _x2,
int _y2 )

Emit code for CONSOLE.

Parameters
_environment

Definition at line 118 of file console.c.

◆ console_calculate()

void console_calculate ( Environment * _environment)

Definition at line 262 of file 6847.c.

◆ console_calculate_vars()

void console_calculate_vars ( Environment * _environment)

Definition at line 316 of file 6847.c.

◆ console_init()

void console_init ( Environment * _environment)

Definition at line 41 of file console.c.

◆ console_restore()

void console_restore ( Environment * _environment,
int _number )

Emit code for CONSOLE.

Parameters
_environment

Definition at line 76 of file console_restore.c.

◆ console_restore_vars()

void console_restore_vars ( Environment * _environment,
char * _number )

Definition at line 125 of file console_restore.c.

◆ console_save()

void console_save ( Environment * _environment,
int _number )

Emit code for CONSOLE.

Parameters
_environment

Definition at line 63 of file console_save.c.

◆ console_save_vars()

void console_save_vars ( Environment * _environment,
char * _number )

Definition at line 96 of file console_save.c.

◆ console_tiles_get_height()

Variable * console_tiles_get_height ( Environment * _environment)

Definition at line 41 of file console_tiles_get_height.c.

◆ console_tiles_get_width()

Variable * console_tiles_get_width ( Environment * _environment)

Definition at line 41 of file console_tiles_get_width.c.

◆ console_vars()

void console_vars ( Environment * _environment,
char * _x1,
char * _x2,
char * _x3,
char * _x4 )

Definition at line 181 of file console.c.

◆ const_define_float()

void const_define_float ( Environment * _environment,
char * _name,
double _value )

◆ const_define_numeric()

void const_define_numeric ( Environment * _environment,
char * _name,
int _value )

Definition at line 11862 of file _infrastructure.c.

◆ const_define_string()

void const_define_string ( Environment * _environment,
char * _name,
char * _value )

Definition at line 11907 of file _infrastructure.c.

◆ const_emit()

void const_emit ( Environment * _environment,
char * _name )

Definition at line 41 of file _const.c.

◆ constant_create()

Constant * constant_create ( Environment * _environment,
char * _name )

Definition at line 348 of file _infrastructure.c.

◆ constant_find()

Constant * constant_find ( Environment * _environment,
char * _name )

Definition at line 373 of file _infrastructure.c.

◆ copper_color()

void copper_color ( Environment * _environment,
int _index,
int _color )

Emit code for BEGIN COPPER.

Parameters
_environmentCurrent calling environment

Definition at line 94 of file copper_color.c.

◆ copper_color_background()

void copper_color_background ( Environment * _environment,
int _color )

Emit code for BEGIN COPPER.

Parameters
_environmentCurrent calling environment

Definition at line 94 of file copper_color_background.c.

◆ copper_color_border()

void copper_color_border ( Environment * _environment,
int _color )

Emit code for BEGIN COPPER.

Parameters
_environmentCurrent calling environment

Definition at line 94 of file copper_color_border.c.

◆ copper_move()

void copper_move ( Environment * _environment,
int _address1,
int _address2,
VariableType _VariableType )

Definition at line 120 of file copper_move.c.

◆ copper_nop()

void copper_nop ( Environment * _environment)

Emit code for BEGIN COPPER.

Parameters
_environmentCurrent calling environment

Definition at line 84 of file copper_nop.c.

◆ copper_store()

void copper_store ( Environment * _environment,
int _address,
int _value,
VariableType _VariableType )

Definition at line 283 of file copper_store.c.

◆ copper_use()

void copper_use ( Environment * _environment,
char * _name )

Definition at line 81 of file copper_use.c.

◆ copper_wait()

void copper_wait ( Environment * _environment,
int _line )

Emit code for BEGIN COPPER.

Parameters
_environmentCurrent calling environment

Definition at line 109 of file copper_wait.c.

◆ count_screen_mode_selected()

int count_screen_mode_selected ( Environment * _environment)

Definition at line 11498 of file _infrastructure.c.

◆ cpuspeed()

void cpuspeed ( Environment * _environment,
char * _value )

Emit ASM code for CPUSPEED.

Parameters
_environmentCurrent calling environment

Definition at line 49 of file cpuspeed.c.

◆ create_path()

Variable * create_path ( Environment * _environment,
char * _x0,
char * _y0,
char * _x1,
char * _y1 )

Emit ASM code to implement CREATE PATH command.

Parameters
_environmentCurrent calling environment
_x1Left abscissa of the line
_y1Left ordinate of the line
_x2Right abscissa of the line
_y2Right ordinate of the line

Definition at line 90 of file create_path.c.

◆ create_vector()

Variable * create_vector ( Environment * _environment,
char * _x,
char * _y )

Emit ASM code to implement CREATE PATH command.

Parameters
_environmentCurrent calling environment
_xLeft abscissa of the line
_yLeft ordinate of the line

Definition at line 68 of file create_vector.c.

◆ cset()

void cset ( Environment * _environment,
char * _value )

Definition at line 73 of file cset.c.

◆ csprite_init()

Variable * csprite_init ( Environment * _environment,
char * _image,
char * _sprite,
int _flags )

Emit code for SPRITE(...).

Parameters
_environmentCurrent calling environment
_imageimage to use as SPRITE

Definition at line 47 of file csprite_init.c.

◆ data_floating()

void data_floating ( Environment * _environment,
double _value )

Emit code for DATA instruction (float values).

Parameters
_environmentCurrent calling environment
_valueFloat value to store

Definition at line 225 of file data.c.

◆ data_numeric()

void data_numeric ( Environment * _environment,
int _value )

Emit code for DATA instruction (numeric values).

Parameters
_environmentCurrent calling environment
_valueNumeric value to store

Definition at line 162 of file data.c.

◆ data_segment_define()

DataSegment * data_segment_define ( Environment * _environment,
char * _name )

Definition at line 14901 of file _infrastructure.c.

◆ data_segment_define_numeric()

DataSegment * data_segment_define_numeric ( Environment * _environment,
int _number )

Definition at line 14925 of file _infrastructure.c.

◆ data_segment_define_or_retrieve()

DataSegment * data_segment_define_or_retrieve ( Environment * _environment,
char * _name )

Definition at line 14977 of file _infrastructure.c.

◆ data_segment_define_or_retrieve_numeric()

DataSegment * data_segment_define_or_retrieve_numeric ( Environment * _environment,
int _number )

Definition at line 14989 of file _infrastructure.c.

◆ data_segment_find()

DataSegment * data_segment_find ( Environment * _environment,
char * _name )

Definition at line 14949 of file _infrastructure.c.

◆ data_segment_find_numeric()

DataSegment * data_segment_find_numeric ( Environment * _environment,
int _number )

Definition at line 14963 of file _infrastructure.c.

◆ data_string()

void data_string ( Environment * _environment,
char * _value )

Emit code for DATA instruction (string values).

Parameters
_environmentCurrent calling environment
_valueString value to store

Definition at line 281 of file data.c.

◆ data_type()

void data_type ( Environment * _environment)

Definition at line 328 of file data.c.

◆ declare_procedure()

void declare_procedure ( Environment * _environment,
char * _name,
int _address,
int _system )

Emit code for DECLARE PROC ....

Parameters
_environmentCurrent calling environment
_nameName of the procedure

Definition at line 175 of file declare_procedure.c.

◆ decrypt()

Variable * decrypt ( Environment * _environment,
char * _data,
char * _key,
char * _var )

Emit code for DECRYPT.

Parameters
_environmentCurrent calling environment

Definition at line 81 of file decrypt.c.

◆ defdgr_vars()

void defdgr_vars ( Environment * _environment,
char * _character,
char * _b0,
char * _b1,
char * _b2,
char * _b3,
char * _b4,
char * _b5,
char * _b6,
char * _b7 )

Emit code for DATA instruction (numeric values).

Parameters
_environmentCurrent calling environment
_valueNumeric value to store

Definition at line 94 of file defdgr.c.

◆ define_audio_target_check()

int define_audio_target_check ( Environment * _environment,
int _value )

Definition at line 41 of file _define.c.

◆ define_implicit_array_if_needed()

void define_implicit_array_if_needed ( Environment * _Environment,
char * _name )

Definition at line 15899 of file _infrastructure.c.

◆ deserialize()

Variable * deserialize ( Environment * _environment,
char * _data,
char * _key,
char * _var )

Emit code for DESERIALIZE.

Parameters
_environmentCurrent calling environment
_stringData to deserialize

Definition at line 62 of file deserialize.c.

◆ distance()

Variable * distance ( Environment * _environment,
char * _x1,
char * _y1,
char * _x2,
char * _y2 )

Return the distance between two (screen) positions.

Parameters
_environmentCurrent calling environment
_x1Abscissa of the first point
_y1Ordinate of the first point
_x1Abscissa of the second point
_y1Ordinate of the second point
Returns
Variable* The distance (integer part)

Definition at line 76 of file distance.c.

◆ dload()

void dload ( Environment * _environment,
char * _filename,
char * _offset,
char * _address,
char * _bank,
char * _size )

Emit code for DLOAD(...).

Parameters
_environmentCurrent calling environment
_filenameFilename to read into buffer

Definition at line 60 of file dload.c.

◆ dojo_begin()

void dojo_begin ( Environment * _environment)

Definition at line 53 of file dojo.c.

◆ dojo_create_port()

Variable * dojo_create_port ( Environment * _environment)

Definition at line 84 of file dojo_create_port.c.

◆ dojo_end()

void dojo_end ( Environment * _environment)

Definition at line 173 of file dojo.c.

◆ dojo_error()

Variable * dojo_error ( Environment * _environment)

Definition at line 57 of file dojo_error.c.

◆ dojo_fujinet_begin()

void dojo_fujinet_begin ( Environment * _environment)

Definition at line 75 of file dojo_fujinet.c.

◆ dojo_fujinet_end()

void dojo_fujinet_end ( Environment * _environment)

Definition at line 159 of file dojo_fujinet.c.

◆ dojo_fujinet_get_response()

void dojo_fujinet_get_response ( Environment * _environment,
char * _status,
char * _data,
char * _size )

Definition at line 129 of file dojo_fujinet.c.

◆ dojo_fujinet_get_response0()

void dojo_fujinet_get_response0 ( Environment * _environment,
char * _status )

Definition at line 123 of file dojo_fujinet.c.

◆ dojo_fujinet_get_response_payload()

void dojo_fujinet_get_response_payload ( Environment * _environment,
char * _data )

Definition at line 147 of file dojo_fujinet.c.

◆ dojo_fujinet_get_response_payloadd()

void dojo_fujinet_get_response_payloadd ( Environment * _environment,
char * _address )

Definition at line 153 of file dojo_fujinet.c.

◆ dojo_fujinet_get_response_size()

void dojo_fujinet_get_response_size ( Environment * _environment,
char * _status,
char * _size )

Definition at line 141 of file dojo_fujinet.c.

◆ dojo_fujinet_get_responsed()

void dojo_fujinet_get_responsed ( Environment * _environment,
char * _status,
char * _data,
char * _size )

Definition at line 135 of file dojo_fujinet.c.

◆ dojo_fujinet_has_response()

void dojo_fujinet_has_response ( Environment * _environment,
char * _result )

◆ dojo_fujinet_init()

void dojo_fujinet_init ( Environment * _environment)

Definition at line 43 of file dojo_fujinet.c.

◆ dojo_fujinet_partial()

void dojo_fujinet_partial ( Environment * _environment)

Definition at line 110 of file dojo_fujinet.c.

◆ dojo_fujinet_put_request()

void dojo_fujinet_put_request ( Environment * _environment,
int _command,
char * _param1,
char * _param2,
char * _address,
char * _size,
char * _result )

Definition at line 92 of file dojo_fujinet.c.

◆ dojo_fujinet_put_request0()

void dojo_fujinet_put_request0 ( Environment * _environment,
int _command,
char * _param1,
char * _param2,
char * _result )

Definition at line 86 of file dojo_fujinet.c.

◆ dojo_fujinet_put_requestd()

void dojo_fujinet_put_requestd ( Environment * _environment,
int _command,
char * _param1,
char * _param2,
char * _data,
char * _size,
char * _result )

Definition at line 98 of file dojo_fujinet.c.

◆ dojo_fujinet_put_requestds()

void dojo_fujinet_put_requestds ( Environment * _environment,
int _command,
char * _param1,
char * _param2,
char * _data,
int _size,
char * _result )

Definition at line 104 of file dojo_fujinet.c.

◆ dojo_get_message()

Variable * dojo_get_message ( Environment * _environment,
char * _port,
char * _channel )

Definition at line 92 of file dojo_get_message.c.

◆ dojo_get_message_inplace()

void dojo_get_message_inplace ( Environment * _environment,
char * _port,
char * _channel,
char * _variable )

Definition at line 39 of file dojo_get_message_inplace.c.

◆ dojo_get_response()

void dojo_get_response ( Environment * _environment,
char * _status,
char * _address,
char * _size )

Definition at line 123 of file dojo.c.

◆ dojo_get_response0()

void dojo_get_response0 ( Environment * _environment,
char * _status )

Definition at line 113 of file dojo.c.

◆ dojo_get_response_payload()

void dojo_get_response_payload ( Environment * _environment,
char * _address )

Definition at line 153 of file dojo.c.

◆ dojo_get_response_payloadd()

void dojo_get_response_payloadd ( Environment * _environment,
char * _data )

Definition at line 163 of file dojo.c.

◆ dojo_get_response_size()

void dojo_get_response_size ( Environment * _environment,
char * _status,
char * _size )

Definition at line 143 of file dojo.c.

◆ dojo_get_responsed()

void dojo_get_responsed ( Environment * _environment,
char * _status,
char * _data,
char * _size )

Definition at line 133 of file dojo.c.

◆ dojo_has_response()

void dojo_has_response ( Environment * _environment,
char * _result )

◆ dojo_init()

void dojo_init ( Environment * _environment)

Definition at line 43 of file dojo.c.

◆ dojo_open_port()

Variable * dojo_open_port ( Environment * _environment,
char * _name )

Definition at line 98 of file dojo_open_port.c.

◆ dojo_partial()

void dojo_partial ( Environment * _environment)

Definition at line 103 of file dojo.c.

◆ dojo_peek_message()

Variable * dojo_peek_message ( Environment * _environment,
char * _port,
char * _channel )

Definition at line 80 of file dojo_peek_message.c.

◆ dojo_ping()

Variable * dojo_ping ( Environment * _environment,
char * _param1,
char * _param2 )

Definition at line 88 of file dojo_ping.c.

◆ dojo_put_message()

Variable * dojo_put_message ( Environment * _environment,
char * _port,
char * _channel,
char * _message )

Definition at line 80 of file dojo_put_message.c.

◆ dojo_put_request()

void dojo_put_request ( Environment * _environment,
int _command,
char * _param1,
char * _param2,
char * _address,
char * _size,
char * _result )

Definition at line 73 of file dojo.c.

◆ dojo_put_request0()

void dojo_put_request0 ( Environment * _environment,
int _command,
char * _param1,
char * _param2,
char * _result )

Definition at line 63 of file dojo.c.

◆ dojo_put_requestd()

void dojo_put_requestd ( Environment * _environment,
int _command,
char * _param1,
char * _param2,
char * _data,
char * _size,
char * _result )

Definition at line 83 of file dojo.c.

◆ dojo_put_requestds()

void dojo_put_requestds ( Environment * _environment,
int _command,
char * _param1,
char * _param2,
char * _data,
int _size,
char * _result )

Definition at line 93 of file dojo.c.

◆ dojo_serial_begin()

void dojo_serial_begin ( Environment * _environment)

Definition at line 47 of file dojo.c.

◆ dojo_serial_end()

void dojo_serial_end ( Environment * _environment)

Definition at line 110 of file dojo.c.

◆ dojo_serial_get_response()

void dojo_serial_get_response ( Environment * _environment,
char * _status,
char * _data,
char * _size )

Definition at line 80 of file dojo.c.

◆ dojo_serial_get_response0()

void dojo_serial_get_response0 ( Environment * _environment,
char * _status )

Definition at line 74 of file dojo.c.

◆ dojo_serial_get_response_payload()

void dojo_serial_get_response_payload ( Environment * _environment,
char * _data )

Definition at line 98 of file dojo.c.

◆ dojo_serial_get_response_payloadd()

void dojo_serial_get_response_payloadd ( Environment * _environment,
char * _address )

Definition at line 104 of file dojo.c.

◆ dojo_serial_get_response_size()

void dojo_serial_get_response_size ( Environment * _environment,
char * _status,
char * _size )

Definition at line 92 of file dojo.c.

◆ dojo_serial_get_responsed()

void dojo_serial_get_responsed ( Environment * _environment,
char * _status,
char * _data,
char * _size )

Definition at line 86 of file dojo.c.

◆ dojo_serial_has_response()

void dojo_serial_has_response ( Environment * _environment,
char * _result )

◆ dojo_serial_init()

void dojo_serial_init ( Environment * _environment)

Definition at line 43 of file dojo.c.

◆ dojo_serial_put_request()

void dojo_serial_put_request ( Environment * _environment,
int _command,
char * _param1,
char * _param2,
char * _address,
char * _size,
char * _result )

Definition at line 56 of file dojo.c.

◆ dojo_serial_put_request0()

void dojo_serial_put_request0 ( Environment * _environment,
int _command,
char * _param1,
char * _param2,
char * _result )

Definition at line 51 of file dojo.c.

◆ dojo_serial_put_requestd()

void dojo_serial_put_requestd ( Environment * _environment,
int _command,
char * _param1,
char * _param2,
char * _data,
char * _size,
char * _result )

Definition at line 62 of file dojo.c.

◆ dojo_serial_put_requestds()

void dojo_serial_put_requestds ( Environment * _environment,
int _command,
char * _param1,
char * _param2,
char * _data,
int _size,
char * _result )

Definition at line 68 of file dojo.c.

◆ double_buffer()

void double_buffer ( Environment * _environment,
int _enabled )

Emit code for DOUBLE BUFFER ....

Parameters
_environmentCurrent calling environment
_enabledif double buffer is enabled

Definition at line 50 of file double_buffer.c.

◆ downb()

void downb ( Environment * _environment,
char * _line,
char * _column,
char * _width,
char * _height )

Emit code for DOWNB ....

Parameters
_environmentCurrent calling environment
_lineLine of window to scroll
_columnColumn of window to scroll
_widthWidth of window to scroll
_heightHeight of window to scroll

Definition at line 80 of file downb.c.

◆ downw()

void downw ( Environment * _environment,
char * _line,
char * _column,
char * _width,
char * _height )

Emit code for DOWNW ....

Parameters
_environmentCurrent calling environment
_lineLine of window to scroll
_columnColumn of window to scroll
_widthWidth of window to scroll
_heightHeight of window to scroll

Definition at line 82 of file downw.c.

◆ draw()

void draw ( Environment * _environment,
char * _x0,
char * _y0,
char * _x1,
char * _y1,
char * _c,
int _preserve_color )

Emit ASM code to implement DRAW command.

Parameters
_environmentCurrent calling environment
_x1Left abscissa of the line
_y1Left ordinate of the line
_x2Right abscissa of the line
_y2Right ordinate of the line
_cColor to use for drawing the line

Definition at line 153 of file draw.c.

◆ draw_string()

void draw_string ( Environment * _environment,
char * _string )

Definition at line 142 of file draw_string.c.

◆ draw_tile_column()

void draw_tile_column ( Environment * _environment,
char * _tile,
char * _x,
char * _y1,
char * _y2,
char * _color )

Emit ASM code for DRAW TILE ROW [y], [x1] TO [x2], [color].

This function outputs a code that draws a line of tiles on a tilemap.

Parameters
_environmentCurrent calling environment
_imageImage to draw
_xAbscissa of the point to draw
_yOrdinate of the point

Definition at line 56 of file draw_tile_column.c.

◆ draw_tile_row()

void draw_tile_row ( Environment * _environment,
char * _tile,
char * _y,
char * _x1,
char * _x2,
char * _color )

Emit ASM code for DRAW TILE ROW [y], [x1] TO [x2], [color].

This function outputs a code that draws a line of tiles on a tilemap.

Parameters
_environmentCurrent calling environment
_imageImage to draw
_xAbscissa of the point to draw
_yOrdinate of the point

Definition at line 86 of file draw_tile_row.c.

◆ draw_tsb_string()

void draw_tsb_string ( Environment * _environment,
char * _string,
char * _x,
char * _y,
char * _c,
int _preserve_color )

Definition at line 41 of file draw_tsb_string.c.

◆ dsave()

void dsave ( Environment * _environment,
char * _filename,
char * _offset,
char * _address,
char * _size )

Emit code for DLOAD(...).

Parameters
_environmentCurrent calling environment
_filenameFilename to read into buffer

Definition at line 58 of file dsave.c.

◆ dstring_cleanup()

void dstring_cleanup ( Environment * _Environment)

Definition at line 41 of file _dstring.c.

◆ ellipse()

void ellipse ( Environment * _environment,
char * _x,
char * _y,
char * _rx,
char * _ry,
char * _c,
int _preserve_color )

Emit code for ELLIPSE command.

Parameters
_environmentCurrent calling environment
_xAbscissa of the center of the ellipse
_yOrdinate of the center of the ellipse
_rxHorizontal radius of the ellipse
_ryVertical radius of the ellipse
_cColor to be used to draw ellipse

Definition at line 81 of file ellipse.c.

◆ else_if_then()

void else_if_then ( Environment * _environment,
char * _expression )

Emit ASM code for ... ELSE [IF] ....

This function outputs the code to implement the alternative for a conditional if.

Parameters
_environmentCurrent calling environment
_expressionExpression with the true / false condition

Definition at line 80 of file else_if_then.c.

◆ else_if_then_label()

void else_if_then_label ( Environment * _environment)

Emit ASM code for ... ELSE [IF] ....

This function outputs the code to implement the alternative for a conditional if.

Parameters
_environmentCurrent calling environment
_expressionExpression with the true / false condition

Definition at line 50 of file else_if_then.c.

◆ embed_scan_string()

int embed_scan_string ( const char * )

◆ embedparse()

int embedparse ( void * )

◆ encrypt()

Variable * encrypt ( Environment * _environment,
char * _data,
char * _key )

Emit code for ENCRYPT.

Parameters
_environmentCurrent calling environment

Definition at line 79 of file encrypt.c.

◆ end()

void end ( Environment * _environment)

Emit ASM code for END.

This function will stop completely everything.

Parameters
_environmentCurrent calling environment

Definition at line 91 of file end.c.

◆ end_build()

void end_build ( Environment * _environment)

End building exe from asssembly.

Parameters
_environment

Definition at line 57 of file _build.c.

◆ end_compilation()

void end_compilation ( Environment * _environment)

Definition at line 58 of file _cleanups.c.

◆ end_copper()

void end_copper ( Environment * _environment)

Emit code for BEGIN COPPER.

Parameters
_environmentCurrent calling environment

Definition at line 46 of file end_copper.c.

◆ end_do_loop()

void end_do_loop ( Environment * _environment)

Emit ASM code for ... LOOP.

This function outputs the code to implement the end of loop, by defining the last point of the loop.

Parameters
_environmentCurrent calling environment

Definition at line 49 of file end_do_loop.c.

◆ end_for()

void end_for ( Environment * _environment)

Definition at line 71 of file end_for.c.

◆ end_for_identifier()

void end_for_identifier ( Environment * _environment,
char * _index )

Emit ASM code for ... NEXT.

This function outputs the code to implement the end of a for...next loop, by defining the last point of the loop.

Parameters
_environmentCurrent calling environment

Definition at line 49 of file end_for.c.

◆ end_gameloop()

void end_gameloop ( Environment * _environment)

Emit ASM code for END GAMELOOP.

This function is called to emit the code necessary to define the ending point of a game loop.

Precondition
A BEGIN GAMELOOP must be issued before use this function.
Parameters
_environmentCurrent calling environment
Exceptions
EXIT_FAILURE"Cannot call END GAMELOOP without BEGIN GAMELOOP"

Definition at line 67 of file end_gameloop.c.

◆ end_if_then()

void end_if_then ( Environment * _environment)

Emit ASM code for ENDIF.

This function outputs the code to implement the end of conditional jump, by defining the last label present into the stack.

Parameters
_environmentCurrent calling environment

Definition at line 50 of file end_if_then.c.

◆ end_loop()

void end_loop ( Environment * _environment,
int _do )

Emit ASM code for ... LOOP.

This function outputs the code to implement the end of loop, by defining the last point of the loop.

Parameters
_environmentCurrent calling environment

Definition at line 49 of file end_loop.c.

◆ end_loop_until()

void end_loop_until ( Environment * _environment,
char * _expr )

Emit ASM code for ... LOOP.

This function outputs the code to implement the end of loop, by defining the last point of the loop.

Parameters
_environmentCurrent calling environment

Definition at line 49 of file end_loop_until.c.

◆ end_loop_while()

void end_loop_while ( Environment * _environment,
char * _expr )

Emit ASM code for ... LOOP.

This function outputs the code to implement the end of loop, by defining the last point of the loop.

Parameters
_environmentCurrent calling environment

Definition at line 49 of file end_loop_while.c.

◆ end_procedure()

void end_procedure ( Environment * _environment,
char * _value )

Emit code for END PROC.

Parameters
_environmentCurrent calling environment
_valueValue to the return

Definition at line 72 of file end_proc.c.

◆ end_repeat()

void end_repeat ( Environment * _environment)

Emit ASM code for ... UNTIL [expression].

This function outputs the code to implement the end of a while loop, by defining the last point of the loop.

Parameters
_environmentCurrent calling environment

Definition at line 49 of file end_repeat.c.

◆ end_repeat_condition()

void end_repeat_condition ( Environment * _environment,
char * _expression )

Definition at line 67 of file end_repeat.c.

◆ end_select_case()

void end_select_case ( Environment * _environment)

Emit ASM code for ENDSELECT.

This function outputs the code when multiple comparison ends.

Parameters
_environmentCurrent calling environment
_expressionExpression with the true / false condition

Definition at line 78 of file end_select_case.c.

◆ end_storage()

void end_storage ( Environment * _environment)

Emit code for ENDSTORAGE.

Parameters
_environmentCurrent calling environment
_valueValue to the return

Definition at line 47 of file end_storage.c.

◆ end_type()

void end_type ( Environment * _environment)

Emit code for ENDSTORAGE.

Parameters
_environmentCurrent calling environment
_valueValue to the return

Definition at line 47 of file end_type.c.

◆ end_while()

void end_while ( Environment * _environment)

Emit ASM code for ... WEND.

This function outputs the code to implement the end of a while loop, by defining the last point of the loop.

Parameters
_environmentCurrent calling environment

Definition at line 127 of file while.c.

◆ envelope()

void envelope ( Environment * _environment,
char * _voice,
char * _attack,
char * _decay,
char * _sustain,
char * _release )

Definition at line 41 of file envelope.c.

◆ environment_create()

Environment * environment_create ( void )

Create a new environment.

Allocate space and reset (put to zero) the content of the Environment structure.

Returns
Environment just created

Definition at line 17283 of file _infrastructure.c.

◆ environment_parse_command_line()

void environment_parse_command_line ( Environment * _environment,
int _argc,
char * _argv[] )

Parse command line parameters.

Parameters
_environmentEnvironment to change
_argcThe number of parameters given on the command line.
_argvThe array of parameters given on the command line.

Definition at line 17365 of file _infrastructure.c.

◆ environment_setup_10liner()

void environment_setup_10liner ( Environment * _environment)

Definition at line 17748 of file _infrastructure.c.

◆ environment_setup_default()

void environment_setup_default ( Environment * _environment)

Setup default environment values.

Parameters
_environmentEnvironment to change

Definition at line 17294 of file _infrastructure.c.

◆ environment_setup_embedded()

void environment_setup_embedded ( Environment * _environment)

Definition at line 46 of file _init.c.

◆ environment_setup_retrohack()

void environment_setup_retrohack ( Environment * _environment)

Definition at line 17755 of file _infrastructure.c.

◆ error()

void error ( Environment * _environment,
char * _message )

Emit ASM code for ERROR.

This function will stop completely everything.

Parameters
_environmentCurrent calling environment

Definition at line 73 of file error.c.

◆ escape_newlines()

char * escape_newlines ( char * _string)

Definition at line 13936 of file _infrastructure.c.

◆ escape_newlines_full()

char * escape_newlines_full ( char * _string,
int _size )

Definition at line 13798 of file _infrastructure.c.

◆ every_cleanup()

void every_cleanup ( Environment * _environment)

Definition at line 41 of file _every.c.

◆ every_off()

void every_off ( Environment * _environment,
char * _timer )

Emit ASM code for EVERY OFF.

Parameters
_environmentCurrent calling environment

Definition at line 51 of file every_off.c.

◆ every_on()

void every_on ( Environment * _environment,
char * _timer )

Emit ASM code for EVERY ON.

Parameters
_environmentCurrent calling environment

Definition at line 51 of file every_on.c.

◆ every_ticks_call()

void every_ticks_call ( Environment * _environment,
char * _timing,
char * _label,
char * _timer )

Definition at line 46 of file every_call.c.

◆ every_ticks_gosub()

void every_ticks_gosub ( Environment * _environment,
char * _timing,
char * _label,
char * _timer )

Emit ASM code for EVERY ... TICKS GOSUB ....

Emit assembly code to initialize the EVERY subsystem.

Parameters
_environment
_timing
_label
_environmentCurrent calling environment
_labelLabel to jump to when vertical raster reach the value given
_positionThe vertical position to wait for

Definition at line 54 of file every_gosub.c.

◆ exit_loop()

void exit_loop ( Environment * _environment,
int _number )

Emit ASM code for EXIT.

This function out of the loop. Optionally, the programmer can give the number of loops to jump out.

Parameters
_environmentCurrent calling environment
_numberNumber of loops to exit.

Definition at line 97 of file exit_loop.c.

◆ exit_loop_if()

void exit_loop_if ( Environment * _environment,
char * _expression,
int _number )

Emit ASM code for EXIT IF.

This function out of the loop on condition. Optionally, the programmer can give the number of loops to jump out.

Parameters
_environmentCurrent calling environment
_expressionExpression to check
_numberNumber of loops to exit.

Definition at line 85 of file exit_loop_if.c.

◆ exit_proc_if()

void exit_proc_if ( Environment * _environment,
char * _expression,
char * _value )

Emit ASM code for EXIT PROC IF.

This function out of the current procedure on condition.

Parameters
_environmentCurrent calling environment
_expressionExpression to check

Definition at line 170 of file exit_proc_if.c.

◆ exit_procedure()

void exit_procedure ( Environment * _environment)

Emit code for POP PROC / EXIT PROC.

Parameters
_environmentCurrent calling environment

Definition at line 124 of file exit_proc.c.

◆ fade_in()

void fade_in ( Environment * _environment,
char * _period )

Emit code for FADE.

Definition at line 47 of file fade_in.c.

◆ fade_in_color()

void fade_in_color ( Environment * _environment,
int _index,
int _shade )

Definition at line 37 of file fade_in_color.c.

◆ fade_in_color_semivars()

void fade_in_color_semivars ( Environment * _environment,
int _index,
char * _shade )

Emit ASM code for instruction COLOR [expression], [expression].

This function outputs the ASM code to change the common color, among those available. It should be used where the command is invoked with expressions.

Parameters
_environmentCurrent calling environment
_indexExpression with the index of common color to set
_common_colorExpression with the index of the color to use

Definition at line 53 of file fade_in_color.c.

◆ fade_in_color_vars()

void fade_in_color_vars ( Environment * _environment,
char * _index,
char * _shade )

Emit ASM code for instruction COLOR [expression], [expression].

This function outputs the ASM code to change the common color, among those available. It should be used where the command is invoked with expressions.

Parameters
_environmentCurrent calling environment
_indexExpression with the index of common color to set
_common_colorExpression with the index of the color to use

Definition at line 71 of file fade_in_color.c.

◆ fade_milliseconds_var()

void fade_milliseconds_var ( Environment * _environment,
char * _millliseconds )

Definition at line 51 of file fade.c.

◆ fade_out()

void fade_out ( Environment * _environment,
char * _period )

Emit code for FADE.

Definition at line 47 of file fade_out.c.

◆ fade_ticks_var()

void fade_ticks_var ( Environment * _environment,
char * _ticks )

Emit code for FADE.

Definition at line 47 of file fade.c.

◆ fast()

void fast ( Environment * _environment)

Emit ASM code for FAST.

Parameters
_environmentCurrent calling environment

Definition at line 49 of file fast.c.

◆ fcircle()

void fcircle ( Environment * _environment,
char * _x,
char * _y,
char * _r,
char * _c,
int _preserve_color )

Emit code for CIRCLE command.

Parameters
_environmentCurrent calling environment
_xAbscissa of the center of the circle
_yOrdinate of the center of the circle
_rRadius of the circle
_cColor to be used to draw circle

Definition at line 121 of file fcircle.c.

◆ fellipse()

void fellipse ( Environment * _environment,
char * _x,
char * _y,
char * _rx,
char * _ry,
char * _c,
int _preserve_color )

Emit code for ELLIPSE command.

Parameters
_environmentCurrent calling environment
_xAbscissa of the center of the ellipse
_yOrdinate of the center of the ellipse
_rxHorizontal radius of the ellipse
_ryVertical radius of the ellipse
_cColor to be used to draw ellipse

Definition at line 93 of file fellipse.c.

◆ field_find()

Field * field_find ( Type * _type,
char * _name )

Definition at line 16144 of file _infrastructure.c.

◆ field_type()

void field_type ( Environment * _environment,
char * _name,
VariableType _datatype )

Definition at line 41 of file field_type.c.

◆ file_get_size()

int file_get_size ( Environment * _environment,
char * _filename )

Definition at line 15271 of file _infrastructure.c.

◆ file_read_csv()

char * file_read_csv ( Environment * _Environment,
char * _filename,
VariableType _type,
int * _size,
int * _count )

Definition at line 15940 of file _infrastructure.c.

◆ file_size()

int file_size ( Environment * _environment,
char * _target_name )

Emit code for FILE ... AS ....

Parameters
_environmentCurrent calling environment
_nameName of the storage

Definition at line 103 of file file_size.c.

◆ file_storage()

void file_storage ( Environment * _environment,
char * _source_name,
char * _target_name,
FileStorageFormat _format,
VariableType _type )

Emit code for FILE ... AS ....

Parameters
_environmentCurrent calling environment
_nameName of the storage

Definition at line 109 of file file_storage.c.

◆ fill()

void fill ( Environment * _environment,
char * _x,
char * _y,
char * _w,
char * _h,
char * _char,
char * _color )

Definition at line 58 of file fill.c.

◆ finalize_text_variables()

void finalize_text_variables ( Environment * _environment)

Definition at line 169 of file _init.c.

◆ find_copper_list()

CopperList * find_copper_list ( Environment * _environment,
char * _name )

Definition at line 17181 of file _infrastructure.c.

◆ find_frame_by_type()

int find_frame_by_type ( Environment * _environment,
TsxTileset * _tileset,
char * _images,
char * _description )

Definition at line 14612 of file _infrastructure.c.

◆ find_last_path_separator()

char * find_last_path_separator ( char * _path)

Definition at line 15206 of file _infrastructure.c.

◆ find_screen_mode_by_id()

ScreenMode * find_screen_mode_by_id ( Environment * _environment,
int _id )

Definition at line 11570 of file _infrastructure.c.

◆ find_screen_mode_by_suggestion()

ScreenMode * find_screen_mode_by_suggestion ( Environment * _environment,
int _bitmap,
int _width,
int _height,
int _colors,
int _tile_width,
int _tile_height )

Definition at line 11514 of file _infrastructure.c.

◆ flash()

void flash ( Environment * _environment,
char * _index,
char * _register )

Emit code for FLASH.

Definition at line 44 of file flash.c.

◆ flash_off()

void flash_off ( Environment * _environment,
char * _index )

Definition at line 48 of file flash.c.

◆ flip_image_vars()

void flip_image_vars ( Environment * _environment,
char * _image,
char * _frame,
char * _sequence,
char * _direction )

Emit ASM code for FLIP IMAGE X/Y/XY/YX [image].

This function outputs a code that flip an image

Parameters
_environmentCurrent calling environment
_imageImage to draw

Emit ASM code for FLIP IMAGE X/Y/XY/YX [image].

This function outputs a code that draws an image on a bitmap.

Parameters
_environmentCurrent calling environment
_imageImage to draw
_xAbscissa of the point to draw
_yOrdinate of the point

Definition at line 56 of file flip_image.c.

◆ flip_image_vars_direction()

void flip_image_vars_direction ( Environment * _environment,
char * _image,
char * _frame,
char * _sequence,
int _direction )

Definition at line 44 of file flip_image.c.

◆ flip_image_vars_indirection()

void flip_image_vars_indirection ( Environment * _environment,
char * _image,
char * _frame,
char * _sequence,
char * _direction )

Definition at line 66 of file flip_image.c.

◆ font_descriptors_init()

void font_descriptors_init ( Environment * _environment,
int _embedded_present )

Definition at line 14474 of file _infrastructure.c.

◆ forbid()

void forbid ( Environment * _environment)

Emit code for YIELD.

Parameters
_environmentCurrent calling environment

Definition at line 89 of file forbid.c.

◆ fp_cos()

Variable * fp_cos ( Environment * _environment,
char * _angle )

Definition at line 82 of file fp_cos.c.

◆ fp_exp()

Variable * fp_exp ( Environment * _environment,
char * _value )

Definition at line 88 of file fp_exp.c.

◆ fp_log()

Variable * fp_log ( Environment * _environment,
char * _value )

Definition at line 73 of file fp_log.c.

◆ fp_sin()

Variable * fp_sin ( Environment * _environment,
char * _angle )

Definition at line 82 of file fp_sin.c.

◆ fp_tan()

Variable * fp_tan ( Environment * _environment,
char * _angle )

Definition at line 62 of file fp_tan.c.

◆ frames()

int frames ( Environment * _environment,
char * _image )

Emit code for FRAMES(...).

Parameters
_environmentCurrent calling environment
_imageimage to check
Returns
The number of frames

Definition at line 160 of file frames.c.

◆ freeze_vars()

void freeze_vars ( Environment * _environment,
char * _prefix )

Emit code for FREEZE ....

Parameters
_environmentCurrent calling environment
_nameName of the procedure

Definition at line 69 of file freeze.c.

◆ fujinet_close()

void fujinet_close ( Environment * _environment)

Definition at line 41 of file fujinet_close.c.

◆ fujinet_define()

void fujinet_define ( Environment * _environment,
FujiNetDefine _mode )

Definition at line 41 of file fujinet_define.c.

◆ fujinet_get_bytes_waiting()

Variable * fujinet_get_bytes_waiting ( Environment * _environment)

Definition at line 41 of file fujinet_get_bytes_waiting.c.

◆ fujinet_get_error()

Variable * fujinet_get_error ( Environment * _environment)

Definition at line 41 of file fujinet_get_error.c.

◆ fujinet_get_status()

void fujinet_get_status ( Environment * _environment)

Definition at line 41 of file fujinet_get_status.c.

◆ fujinet_http_post_bin()

Variable * fujinet_http_post_bin ( Environment * _environment,
char * _value )

Definition at line 63 of file fujinet_http_post_bin.c.

◆ fujinet_http_post_bin_type()

Variable * fujinet_http_post_bin_type ( Environment * _environment,
char * _value,
VariableType _type )

Definition at line 41 of file fujinet_http_post_bin_type.c.

◆ fujinet_is_connected()

Variable * fujinet_is_connected ( Environment * _environment)

Definition at line 41 of file fujinet_is_connected.c.

◆ fujinet_is_ready()

Variable * fujinet_is_ready ( Environment * _environment)

Definition at line 41 of file fujinet_is_ready.c.

◆ fujinet_json_query()

void fujinet_json_query ( Environment * _environment,
char * _query )

Definition at line 41 of file fujinet_json_query.c.

◆ fujinet_login()

void fujinet_login ( Environment * _environment,
char * _login )

Definition at line 41 of file fujinet_login.c.

◆ fujinet_open()

Variable * fujinet_open ( Environment * _environment,
char * _url,
char * _mode,
char * _trans )

Definition at line 41 of file fujinet_open.c.

◆ fujinet_parse_json()

Variable * fujinet_parse_json ( Environment * _environment)

Definition at line 41 of file fujinet_parse_json.c.

◆ fujinet_password()

void fujinet_password ( Environment * _environment,
char * _password )

Definition at line 41 of file fujinet_password.c.

◆ fujinet_read()

Variable * fujinet_read ( Environment * _environment,
char * _size )

Definition at line 41 of file fujinet_read.c.

◆ fujinet_read_type()

Variable * fujinet_read_type ( Environment * _environment,
VariableType _type )

Definition at line 43 of file fujinet_read_type.c.

◆ fujinet_set_channel_mode()

Variable * fujinet_set_channel_mode ( Environment * _environment,
int _mode )

Definition at line 41 of file fujinet_set_channel_mode.c.

◆ fujinet_set_channel_mode_var()

Variable * fujinet_set_channel_mode_var ( Environment * _environment,
char * _mode )

Definition at line 51 of file fujinet_set_channel_mode.c.

◆ fujinet_set_device()

void fujinet_set_device ( Environment * _environment,
int _device_id )

Definition at line 41 of file fujinet_set_device.c.

◆ fujinet_set_device_var()

void fujinet_set_device_var ( Environment * _environment,
char * _device_id )

Definition at line 47 of file fujinet_set_device.c.

◆ fujinet_write()

Variable * fujinet_write ( Environment * _environment,
char * _value )

Definition at line 41 of file fujinet_write.c.

◆ fujinet_write_type()

Variable * fujinet_write_type ( Environment * _environment,
char * _value,
VariableType _type )

Definition at line 43 of file fujinet_write_type.c.

◆ gameloop_cleanup()

void gameloop_cleanup ( Environment * _environment)

Emit source and configuration lines for game loops.

This function can be called to generate all the definitions (on the source file, on the configuration file and on any support file) necessary to implement the memory banks.

Parameters
_environmentCurrent calling environment

Definition at line 50 of file _cleanups.c.

◆ generate_cgoto_address_table()

void generate_cgoto_address_table ( Environment * _environment)

Definition at line 122 of file _var.c.

◆ generate_storage_filename()

char * generate_storage_filename ( Environment * _environment,
char * _prefix,
char * _suffix,
int _number )

Definition at line 15261 of file _infrastructure.c.

◆ get_at()

Variable * get_at ( Environment * _environment,
char * _x,
char * _y )

Emit code for = AT$(...,...).

Parameters
_environmentCurrent calling environment
_xColumn to locate to
_yRow to locate to

Definition at line 48 of file text_get_at.c.

◆ get_cmove()

Variable * get_cmove ( Environment * _environment,
char * _x,
char * _y )

Emit code for = CMOVE(...,...).

Parameters
_environmentCurrent calling environment
_xColumn to locate to
_yRow to locate to

Definition at line 78 of file get_cmove.c.

◆ get_cmove_direct()

Variable * get_cmove_direct ( Environment * _environment,
int _x,
int _y )

Definition at line 100 of file get_cmove.c.

◆ get_default_temporary_path()

char * get_default_temporary_path ( )

Definition at line 15156 of file _infrastructure.c.

◆ get_image()

void get_image ( Environment * _environment,
char * _image,
char * _x1,
char * _y1,
char * _x2,
char * _y2,
char * _frame,
char * _sequence,
int _palette )

Emit ASM code for GET IMAGE [image] AT [int],[int].

This function outputs a code that save an image from a bitmap.

Parameters
_environmentCurrent calling environment
_imageImage to draw
_xAbscissa of the point to draw
_yOrdinate of the point

Definition at line 57 of file get_image.c.

◆ get_image_overwrite_size()

void get_image_overwrite_size ( Environment * _environment,
char * _image,
char * _x1,
char * _y1,
char * _x2,
char * _y2 )

Definition at line 15055 of file _infrastructure.c.

◆ get_paper()

Variable * get_paper ( Environment * _environment,
char * _color )

Emit code for the PAPER$(...).

Parameters
_environment
_color
Returns
Variable*

Definition at line 48 of file text_get_paper.c.

◆ get_pen()

Variable * get_pen ( Environment * _environment,
char * _color )

Emit code for the PEN$(...).

Parameters
_environment
_color
Returns
Variable*

Definition at line 78 of file text_get_pen.c.

◆ get_raster_line()

Variable * get_raster_line ( Environment * _environment)

Emit ASM code for RASTER LINE.

This function outputs a code that retrieve the current raster line.

Parameters
_environmentCurrent calling environment

Definition at line 56 of file get_raster_line.c.

◆ get_tab()

Variable * get_tab ( Environment * _environment)

Emit code for TAB$.

Parameters
_environmentCurrent calling environment

Definition at line 71 of file get_tab.c.

◆ get_temporary_filename()

char * get_temporary_filename ( Environment * _environment)

Definition at line 13672 of file _infrastructure.c.

◆ get_ticks_per_second()

Variable * get_ticks_per_second ( Environment * _environment)

Emit code for TAB$.

Parameters
_environmentCurrent calling environment

Definition at line 72 of file get_ticks_per_second.c.

◆ get_timer()

Variable * get_timer ( Environment * _environment)

Emit code for = TI.

Emit code to measure the current value of 60th/50th seconds passed.

Parameters
_environmentCurrent calling environment
Returns
Temporary variable with the number of ticks passed

Definition at line 47 of file timer.c.

◆ global()

void global ( Environment * _environment)

Manage variable as "global".

Parameters
_environmentCurrent calling environment

Definition at line 96 of file global.c.

◆ gosub_label()

void gosub_label ( Environment * _environment,
char * _label )

Emit ASM code for GOSUB [label].

This function can be used to issue a code equivalent to a unconditional jump to an alphanumeric label, previously or subsequently defined, with the syntax of the labels, saving the calling address.

Parameters
_environmentCurrent calling environment
_labelLabel where to jump to

Definition at line 116 of file gosub.c.

◆ gosub_number()

void gosub_number ( Environment * _environment,
int _number )

Emit ASM code for GOSUB [number].

This function can be used to issue a code equivalent to a unconditional jump to a numeric label, previously or subsequently defined, with the syntax of the labels, saving the calling address.

Parameters
_environmentCurrent calling environment
_labelLabel where to jump to

Definition at line 140 of file gosub.c.

◆ goto_label()

void goto_label ( Environment * _environment,
char * _label )

Emit ASM code for GOTO [label].

This function can be used to issue a code equivalent to the unconditional jump to an alphanumeric label, previously or subsequently defined, with the syntax of the labels.

Parameters
_environmentCurrent calling environment
_labelLabel where to jump to

Definition at line 115 of file goto.c.

◆ goto_number()

void goto_number ( Environment * _environment,
int _number )

Emit ASM code for GOTO [number].

This function can be used to issue a code equivalent to the unconditional jump to an alphanumeric label, previously or subsequently defined, with the syntax of the labels.

Parameters
_environmentCurrent calling environment
_labelLabel where to jump to

Definition at line 148 of file goto.c.

◆ gprint()

void gprint ( Environment * _environment,
char * _atlas,
char * _text,
char * _x,
char * _y )

Emit code for GPRINT... instruction.

Parameters
_environmentCurrent calling environment

Definition at line 100 of file gprint.c.

◆ gr_locate()

void gr_locate ( Environment * _environment,
char * _x,
char * _y )

Emit code for GR LOCATE command.

Parameters
_environmentCurrent calling environment
_xAbscissa of current graphic location
_yOrdinate of current graphic location

Definition at line 89 of file gr.c.

◆ graphic()

void graphic ( Environment * _environment)

Emit ASM implementation for GRAPHIC instruction.

This function is useful for quickly initializing the high resolution graphics mode. It is equivalent to running the following commands:

  • BITMAP ENABLE
  • BITMAP CLEAR
  • COLORMAP CLEAR
Parameters
_environmentCurrent calling environment

Definition at line 68 of file graphic.c.

◆ halt()

void halt ( Environment * _environment)

Emit ASM code for HALT.

This function outputs the indefinite stop code. Note that even if the main program is suspended indefinitely, the raster and other functions will continue without problems.

Parameters
_environmentCurrent calling environment

Definition at line 74 of file halt.c.

◆ hires()

void hires ( Environment * _environment,
char * _foreground,
char * _background )

Definition at line 41 of file hires.c.

◆ hit_to()

Variable * hit_to ( Environment * _environment,
int _sprite )

Emit ASM code for = HIT([int]x).

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. This function is used when a direct integer is used.

Parameters
_environmentCurrent calling environment
_spriteInteger with the bitmask of the sprites
Returns
Variable* Temporary variable with the result of hit (0 = no hit, 1 = hit occurred)

Definition at line 57 of file hit.c.

◆ hit_to_vars()

Variable * hit_to_vars ( Environment * _environment,
char * _sprite )

Emit ASM code for = HIT([expression]).

This function can be used to issue code aimed at verifying if a sprite has had a hit with another sprite. The result (0 = no collision, 0xff = collision occurred) is returned in the output variable. This function is used when an expression is used.

Parameters
_environmentCurrent calling environment
_spriteExpression with the bitmask of the sprites
Returns
Variable* Temporary variable with the result of hit (0 = no hit, 1 = hit occurred)

Definition at line 77 of file hit.c.

◆ home()

void home ( Environment * _environment)

Emit code for HOME.

Parameters
_environmentCurrent calling environment

Definition at line 70 of file home.c.

◆ if_then()

void if_then ( Environment * _environment,
char * _expression )

Emit ASM code for IF ... THEN ....

This function outputs the code to implement the conditional jump. This implementation assumes that an expression passed as a parameter is 0 (for false) and not zero (for true). In this case, if the expression is zero, it jumps directly to the statement following the corresponding ENDIF (or ELSE, if present). Otherwise, the following code will be executed (up to ENDIF). Since the compiler acts with a single pass, it is necessary to keep the information on the last used label. For this purpose, the label where it will jump will be inserted in the stack, so that it is defined at the moment when the ENDIF instruction will be examined.

Parameters
_environmentCurrent calling environment
_expressionExpression with the true / false condition

Definition at line 123 of file if_then.c.

◆ image_converter()

Variable * 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 )

Definition at line 41 of file image_converter.c.

◆ image_converter_asserts()

void image_converter_asserts ( Environment * _environment,
int _width,
int _height,
int _offset_x,
int _offset_y,
int * _frame_width,
int * _frame_height,
int _modulo_x,
int _modulo_y )

Definition at line 12722 of file _infrastructure.c.

◆ image_converter_asserts_free()

void image_converter_asserts_free ( Environment * _environment,
int _width,
int _height,
int _offset_x,
int _offset_y,
int * _frame_width,
int * _frame_height )

Definition at line 12762 of file _infrastructure.c.

◆ image_converter_asserts_free_height()

void image_converter_asserts_free_height ( Environment * _environment,
int _width,
int _height,
int _offset_x,
int _offset_y,
int * _frame_width,
int * _frame_height,
int _modulo_x )

Definition at line 12819 of file _infrastructure.c.

◆ image_converter_asserts_free_width()

void image_converter_asserts_free_width ( Environment * _environment,
int _width,
int _height,
int _offset_x,
int _offset_y,
int * _frame_width,
int * _frame_height,
int _modulo_y )

Definition at line 12783 of file _infrastructure.c.

◆ image_cut()

char * image_cut ( Environment * _environment,
char * _source,
int _x,
int _y,
int _width,
int _height )

◆ image_descriptor_create()

ImageDescriptor * image_descriptor_create ( Environment * _environment,
char * _filename,
int _flags )

Definition at line 42 of file image_descriptor_create.c.

◆ image_descriptor_flip_x()

ImageDescriptor * image_descriptor_flip_x ( Environment * _environment,
ImageDescriptor * _source )

Definition at line 41 of file image_descriptor_flip_x.c.

◆ image_descriptor_flip_y()

ImageDescriptor * image_descriptor_flip_y ( Environment * _environment,
ImageDescriptor * _source )

Definition at line 41 of file image_descriptor_flip_y.c.

◆ image_descriptor_roll_x_left()

ImageDescriptor * image_descriptor_roll_x_left ( Environment * _environment,
ImageDescriptor * _source )

Definition at line 41 of file image_descriptor_roll_x_left.c.

◆ image_descriptor_roll_x_right()

ImageDescriptor * image_descriptor_roll_x_right ( Environment * _environment,
ImageDescriptor * _source )

Definition at line 41 of file image_descriptor_roll_x_right.c.

◆ image_descriptor_roll_y_down()

ImageDescriptor * image_descriptor_roll_y_down ( Environment * _environment,
ImageDescriptor * _source )

Definition at line 41 of file image_descriptor_roll_y_down.c.

◆ image_enlarge_bottom()

char * image_enlarge_bottom ( Environment * _environment,
char * _source,
int _width,
int _height,
int _delta )

Definition at line 13465 of file _infrastructure.c.

◆ image_enlarge_right()

char * image_enlarge_right ( Environment * _environment,
char * _source,
int _width,
int _height,
int _delta )

Definition at line 13436 of file _infrastructure.c.

◆ image_extract()

Variable * image_extract ( Environment * _environment,
char * _images,
int _frame,
int * _sequence )

Emit code for IMAGE(... FRAME ... STRIP ...).

Parameters
_environmentCurrent calling environment
_imageIMAGES/SEQUENCE variable datatype
_frameFrame to extract
_sequenceSequence to extract, NULL if IMAGES

Definition at line 78 of file image_extract.c.

◆ image_extract_subimage()

char * image_extract_subimage ( Environment * _environment,
char * _source,
int _width,
int _height,
int _frame_width,
int _frame_height,
int _x,
int _y,
int _depth )

Definition at line 13478 of file _infrastructure.c.

◆ image_flip_x()

char * image_flip_x ( Environment * _environment,
char * _source,
int _width,
int _height,
int _depth )

Definition at line 13205 of file _infrastructure.c.

◆ image_flip_y()

char * image_flip_y ( Environment * _environment,
char * _source,
int _width,
int _height,
int _depth )

Definition at line 13253 of file _infrastructure.c.

◆ image_get_height()

Variable * image_get_height ( Environment * _environment,
char * _image )

Emit code for IMAGE HEIGHT(...).

Parameters
_environmentCurrent calling environment
_imageImage to measure.
Returns
The height of the image, in pixels
Parameters
_environmentCurrent calling environment
Imageto measure.

Definition at line 48 of file image_get_height.c.

◆ image_get_width()

Variable * image_get_width ( Environment * _environment,
char * _image )

Emit code for IMAGE WIDTH(...).

Parameters
_environmentCurrent calling environment
_imageImage to measure.
Returns
The width of the image, in pixels

Emit code for IMAGE WIDTH(...).

Parameters
_environmentCurrent calling environment
Imageto measure.

Definition at line 48 of file image_get_width.c.

◆ image_load()

Variable * image_load ( Environment * _environment,
char * _filename,
char * _alias,
int _mode,
int _flags,
int _transparent_color,
int _background_color,
int _bank_expansion )

Emit code for LOAD IMAGE(...).

Parameters
_environmentCurrent calling environment
_filenameFilename to read into buffer
_modeMode to use to convert data

Definition at line 200 of file image_load.c.

◆ image_load_from_buffer()

Variable * image_load_from_buffer ( Environment * _environment,
char * _buffer,
int _buffer_size )

Emit code for (IMAGE)#[...].

Parameters
_environmentCurrent calling environment
_filenameFilename to read into buffer
_modeMode to use to convert data

Definition at line 50 of file image_load_from_buffer.c.

◆ image_nearest_system_color()

RGBi * image_nearest_system_color ( RGBi * _color)

◆ image_ref()

Variable * image_ref ( Environment * _environment,
char * _image )

Definition at line 43 of file image_ref.c.

◆ image_roll_x_left()

char * image_roll_x_left ( Environment * _environment,
char * _source,
int _width,
int _height )

Definition at line 13346 of file _infrastructure.c.

◆ image_roll_x_right()

char * image_roll_x_right ( Environment * _environment,
char * _source,
int _width,
int _height )

Definition at line 13301 of file _infrastructure.c.

◆ image_roll_y_down()

char * image_roll_y_down ( Environment * _environment,
char * _source,
int _width,
int _height )

Definition at line 13391 of file _infrastructure.c.

◆ image_size()

int image_size ( Environment * _environment,
int _width,
int _height )

Definition at line 41 of file image_size.c.

◆ image_storage()

Variable * image_storage ( Environment * _environment,
char * _source_name,
char * _target_name,
int _mode,
int _flags,
int _transparent_color,
int _background_color,
int _bank_expansion )

Emit code for IMAGE ... AS ....

Parameters
_environmentCurrent calling environment
_nameName of the storage

Definition at line 76 of file image_storage.c.

◆ images_load()

Variable * images_load ( Environment * _environment,
char * _filename,
char * _alias,
int _mode,
int _frame_width,
int _frame_height,
int _flags,
int _transparent_color,
int _background_color,
int _bank_expansion,
int _origin_x,
int _origin_y,
int _offset_x,
int _offset_y )

Emit code for LOAD IMAGE(...).

Parameters
_environmentCurrent calling environment
_filenameFilename to read into buffer
_modeMode to use to convert data

Definition at line 256 of file images_load.c.

◆ images_load_from_buffer()

Variable * images_load_from_buffer ( Environment * _environment,
char * _buffer,
int _buffer_size )

Emit code for (IMAGES)#[...].

Parameters
_environmentCurrent calling environment
_filenameFilename to read into buffer
_modeMode to use to convert data

Definition at line 48 of file images_load_from_buffer.c.

◆ images_storage()

Variable * images_storage ( Environment * _environment,
char * _source_name,
char * _target_name,
int _mode,
int _frame_width,
int _frame_height,
int _flags,
int _transparent_color,
int _background_color,
int _bank_expansion,
int _origin_x,
int _origin_y,
int _offset_x,
int _offset_y )

Emit code for IMAGE ... AS ....

Parameters
_environmentCurrent calling environment
_nameName of the storage

Definition at line 76 of file images_storage.c.

◆ import_file_name()

char * import_file_name ( char * _import_path)

Definition at line 17204 of file _infrastructure.c.

◆ in_var()

Variable * in_var ( Environment * _environment,
char * _port )

Emit ASM code for IN.

Parameters
_environmentCurrent calling environment
_portExpression with the port to receive input from
Returns
_value Valure read

Definition at line 101 of file in.c.

◆ ink()

void ink ( Environment * _environment,
char * _color )

Emit code for INK ... command.

Parameters
_environmentCurrent calling environment
_colorColor to use for the pen

Definition at line 69 of file ink.c.

◆ inkb()

void inkb ( Environment * _environment,
char * _value,
char * _color1,
char * _color2 )

Emit code for INKB ... command.

Parameters
_environmentCurrent calling environment
_colorColor to use for the pen

Definition at line 73 of file inkb.c.

◆ inkey()

Variable * inkey ( Environment * _environment)

Definition at line 43 of file inkey.c.

◆ input()

void input ( Environment * _environment,
char * _variable,
VariableType _default_type )

Definition at line 43 of file input.c.

◆ input_string()

Variable * input_string ( Environment * _environment,
char * _size )

Definition at line 43 of file input_string.c.

◆ insert()

void insert ( Environment * _environment,
char * _string,
char * _x,
char * _y,
char * _w,
char * _h,
char * _color )

Definition at line 71 of file insert.c.

◆ instrument()

void instrument ( Environment * _environment,
int _instrument,
int _channels )

Emit ASM code for INSTRUMENT ....

This function emits a code capable of change the instrument for one or more voices.

Parameters
_environmentCurrent calling environment
_instrumentinstrument to use
_channelschannels to play on

Definition at line 51 of file instrument.c.

◆ instrument_semi_var()

void instrument_semi_var ( Environment * _environment,
int _instrument,
char * _channels )

Emit ASM code for INSTRUMENT ....

This function emits a code capable of change the instrument for one or more voices.

Parameters
_environmentCurrent calling environment
_instrumentinstrument to use
_channelschannels to play on

Definition at line 69 of file instrument.c.

◆ interleaved_instructions()

void interleaved_instructions ( Environment * _environment)

Definition at line 123 of file _init.c.

◆ is_do_loop()

int is_do_loop ( Environment * _environment)

Emit ASM code for ... LOOP.

This function outputs the code to implement the end of loop, by defining the last point of the loop.

Parameters
_environmentCurrent calling environment

Definition at line 49 of file is_do_loop.c.

◆ jfire()

Variable * jfire ( Environment * _environment,
int _port )

Definition at line 41 of file jfire.c.

◆ jfire_vars()

Variable * jfire_vars ( Environment * _environment,
char * _port )

Definition at line 60 of file jfire.c.

◆ jmove()

void jmove ( Environment * _environment,
char * _port,
char * _x,
char * _y,
char * _minx,
char * _maxx,
char * _miny,
char * _maxy,
char * _xstep,
char * _ystep )

Definition at line 70 of file jmove.c.

◆ joy()

Variable * joy ( Environment * _environment,
int _port )

Definition at line 68 of file joy.c.

◆ joy_direction()

Variable * joy_direction ( Environment * _environment,
int _port,
int _direction )

Definition at line 41 of file joy_direction.c.

◆ joy_direction_semivars()

Variable * joy_direction_semivars ( Environment * _environment,
char * _port,
int _direction )

Definition at line 59 of file joy_direction.c.

◆ joy_vars()

Variable * joy_vars ( Environment * _environment,
char * _port )

Definition at line 41 of file joy.c.

◆ joydir()

Variable * joydir ( Environment * _environment,
int _port )

Definition at line 86 of file joydir.c.

◆ joydir_semivars()

Variable * joydir_semivars ( Environment * _environment,
char * _port )

Definition at line 41 of file joydir.c.

◆ joyx()

Variable * joyx ( Environment * _environment,
int _port )

Definition at line 52 of file joy_analog.c.

◆ joyx_vars()

Variable * joyx_vars ( Environment * _environment,
char * _port )

Definition at line 41 of file joy_analog.c.

◆ joyy()

Variable * joyy ( Environment * _environment,
int _port )

Definition at line 73 of file joy_analog.c.

◆ joyy_vars()

Variable * joyy_vars ( Environment * _environment,
char * _port )

Definition at line 62 of file joy_analog.c.

◆ key_constant()

int key_constant ( Environment * _environment,
int _key )

Definition at line 51 of file key_constant.c.

◆ key_pressed()

Variable * key_pressed ( Environment * _environment,
int _scancode )

Definition at line 43 of file key_pressed.c.

◆ key_pressed_var()

Variable * key_pressed_var ( Environment * _environment,
char * _scancode )

Definition at line 55 of file key_pressed.c.

◆ key_state()

Variable * key_state ( Environment * _environment,
int _scancode )

Definition at line 43 of file key_state.c.

◆ key_state_var()

Variable * key_state_var ( Environment * _environment,
char * _scancode )

Definition at line 56 of file key_state.c.

◆ keyshift()

Variable * keyshift ( Environment * _environment)

Definition at line 43 of file keyshift.c.

◆ kill_procedure()

void kill_procedure ( Environment * _environment,
char * _handle )

Emit code for KILL ....

Parameters
_environmentCurrent calling environment
_handleIdentifier of the thread

Definition at line 77 of file kill.c.

◆ label_define_named()

void label_define_named ( Environment * _environment,
char * _label )

Definition at line 11739 of file _infrastructure.c.

◆ label_define_numeric()

void label_define_numeric ( Environment * _environment,
int _label )

Definition at line 11718 of file _infrastructure.c.

◆ label_exists_named()

int label_exists_named ( Environment * _environment,
char * _label )

Definition at line 11705 of file _infrastructure.c.

◆ label_exists_numeric()

int label_exists_numeric ( Environment * _environment,
int _label )

Definition at line 11692 of file _infrastructure.c.

◆ label_referred_define_named()

void label_referred_define_named ( Environment * _environment,
char * _label )

Definition at line 11807 of file _infrastructure.c.

◆ label_referred_define_numeric()

void label_referred_define_numeric ( Environment * _environment,
int _label )

Definition at line 11786 of file _infrastructure.c.

◆ label_referred_exists_named()

int label_referred_exists_named ( Environment * _environment,
char * _label )

Definition at line 11773 of file _infrastructure.c.

◆ label_referred_exists_numeric()

int label_referred_exists_numeric ( Environment * _environment,
int _label )

Definition at line 11760 of file _infrastructure.c.

◆ label_stored_define_named()

void label_stored_define_named ( Environment * _environment,
char * _label )

Definition at line 11841 of file _infrastructure.c.

◆ label_stored_exists_named()

int label_stored_exists_named ( Environment * _environment,
char * _label )

Definition at line 11828 of file _infrastructure.c.

◆ lbottom()

void lbottom ( Environment * _environment)

Emit code for HOME.

Parameters
_environmentCurrent calling environment

Definition at line 68 of file lbottom.c.

◆ leftb()

void leftb ( Environment * _environment,
char * _line,
char * _column,
char * _width,
char * _height )

Emit code for LEFTB ....

Parameters
_environmentCurrent calling environment
_lineLine of window to scroll
_columnColumn of window to scroll
_widthWidth of window to scroll
_heightHeight of window to scroll

Definition at line 80 of file leftb.c.

◆ leftw()

void leftw ( Environment * _environment,
char * _line,
char * _column,
char * _width,
char * _height )

Emit code for LEFTW ....

Parameters
_environmentCurrent calling environment
_lineLine of window to scroll
_columnColumn of window to scroll
_widthWidth of window to scroll
_heightHeight of window to scroll

Definition at line 82 of file leftw.c.

◆ linker_cleanup()

void linker_cleanup ( Environment * _environment)

Emit tail of linker's configuration file lines.

This function emit the tail of linker's configuration file.

Parameters
_environmentCurrent calling environment

Definition at line 133 of file _linker.c.

◆ linker_setup()

void linker_setup ( Environment * _environment)

Emit tail of linker's configuration file lines.

This function emit the header of linker's configuration file.

Parameters
_environmentCurrent calling environment

Definition at line 48 of file _linker.c.

◆ load()

Variable * load ( Environment * _environment,
char * _filename,
char * _alias,
int _at,
int _bank_expansion,
int _flags )

Emit code for LOAD(...).

Parameters
_environmentCurrent calling environment
_filenameFilename to read into buffer

Definition at line 89 of file load.c.

◆ locate()

void locate ( Environment * _environment,
char * _x,
char * _y )

Emit code for LOCATE ...,....

Parameters
_environmentCurrent calling environment
_xColumn to locate to
_yRow to locate to

Definition at line 110 of file locate.c.

◆ loop()

void loop ( Environment * _environment,
char * _label )

◆ malloc_palette()

RGBi * malloc_palette ( int _size)

Allocate a palette space.

Parameters
_sizeSize of palette, in entries
Returns
RGBi* Memory storage for the palette

Definition at line 13962 of file _infrastructure.c.

◆ max_of_three()

float max_of_three ( float _m,
float _n,
float _p )

Definition at line 13660 of file _infrastructure.c.

◆ max_of_two()

float max_of_two ( float _x,
float _y )

Definition at line 13656 of file _infrastructure.c.

◆ maximum()

Variable * maximum ( Environment * _environment,
char * _source,
char * _destination )

Return the maximum value between two expressions.

Parameters
_environmentCurrent calling environment
_sourceSource variable's name
_destinationDestination variable's name
Returns
Variable* The maximum value of both

Definition at line 93 of file max.c.

◆ memclr()

void memclr ( Environment * _environment,
char * _address,
char * _size,
char * _value )

Definition at line 64 of file memclr.c.

◆ memcont()

void memcont ( Environment * _environment,
char * _param )

Definition at line 80 of file memcont.c.

◆ memdef()

void memdef ( Environment * _environment,
char * _size,
char * _address,
char * _eaddress,
char * _bank )

Definition at line 74 of file memdef.c.

◆ memlen()

void memlen ( Environment * _environment,
char * _size )

Definition at line 66 of file memlen.c.

◆ memload()

void memload ( Environment * _environment)

Definition at line 79 of file memload.c.

◆ memor()

void memor ( Environment * _environment,
char * _address,
char * _eaddress,
char * _bank )

Definition at line 75 of file memor.c.

◆ memorize()

void memorize ( Environment * _environment)

Definition at line 67 of file memorize.c.

◆ memory_area_assign()

void memory_area_assign ( MemoryArea * _first,
Variable * _variable )

Definition at line 189 of file _infrastructure.c.

◆ memory_area_unassign()

void memory_area_unassign ( MemoryArea * _first,
Variable * _variable )

Definition at line 225 of file _infrastructure.c.

◆ mempos()

void mempos ( Environment * _environment,
char * _address,
char * _bank )

Definition at line 72 of file mempos.c.

◆ memrestore()

void memrestore ( Environment * _environment,
char * _param )

Definition at line 78 of file memrestore.c.

◆ memsave()

void memsave ( Environment * _environment)

Definition at line 78 of file memsave.c.

◆ min_of_three()

float min_of_three ( float _m,
float _n,
float _p )

Definition at line 13668 of file _infrastructure.c.

◆ min_of_two()

float min_of_two ( float _x,
float _y )

Definition at line 13664 of file _infrastructure.c.

◆ minimum()

Variable * minimum ( Environment * _environment,
char * _source,
char * _destination )

Return the minimum value between two expressions.

Parameters
_environmentCurrent calling environment
_sourceSource variable's name
_destinationDestination variable's name
Returns
Variable* The minimum value of both

Definition at line 94 of file min.c.

◆ mmob()

void mmob ( Environment * _environment,
char * _sprite,
char * _sx,
char * _sy,
char * _zx,
char * _zy,
char * _gr,
char * _sp )

Emit code for MOVE ....

Parameters
_environmentCurrent calling environment
_nameName of the procedure

Definition at line 79 of file mmob.c.

◆ mmove_memory_memory()

void mmove_memory_memory ( Environment * _environment,
char * _from,
char * _to,
char * _size )

Emit ASM code for MMOVE [expr] TO [expr] SIZE [expr].

This function outputs a code that move a tile on a tilemap.

Parameters
_environmentCurrent calling environment
_fromSource address to move from
_toDestination address to move to
_sizeSize of the memory to move

Definition at line 53 of file mmove.c.

◆ mmove_memory_video()

void mmove_memory_video ( Environment * _environment,
char * _from,
char * _to,
char * _size )

Emit ASM code for MMOVE {VIDEO} [expr] TO {VIDEO} [expr] SIZE [expr].

This function outputs a code that move a tile on a tilemap.

Parameters
_environmentCurrent calling environment
_fromSource address to move from
_toDestination address to move to
_sizeSize of the memory to move

Definition at line 77 of file mmove.c.

◆ mmove_video_memory()

void mmove_video_memory ( Environment * _environment,
char * _from,
char * _to,
char * _size )

Emit ASM code for MMOVE {VIDEO} [expr] TO {VIDEO} [expr] SIZE [expr].

This function outputs a code that move a tile on a tilemap.

Parameters
_environmentCurrent calling environment
_fromSource address to move from
_toDestination address to move to
_sizeSize of the memory to move

Definition at line 101 of file mmove.c.

◆ move()

void move ( Environment * _environment,
char * _prefix,
char * _movement,
char * _x,
char * _y,
char * _animation )

Emit code for MOVE ....

Parameters
_environmentCurrent calling environment
_nameName of the procedure

Definition at line 81 of file move.c.

◆ move_tile()

void move_tile ( Environment * _environment,
char * _tile,
char * _x,
char * _y )

Emit ASM code for MOVE TILE [image] AT [int],[int].

This function outputs a code that move a tile on a tilemap.

Parameters
_environmentCurrent calling environment
_imageImage to draw
_xAbscissa of the point to draw
_yOrdinate of the point

Definition at line 53 of file move_tile.c.

◆ movement()

void movement ( Environment * _environment,
char * _identifier,
char * _atlas,
char * _prefix )

Emit code for MOVEMENT ....

Parameters
_environmentCurrent calling environment
_nameName of the procedure

Definition at line 123 of file movement.c.

◆ moving()

Variable * moving ( Environment * _environment,
char * _prefix,
char * _movement )

Emit code for MOVING.

Parameters
_environmentCurrent calling environment

Definition at line 66 of file moving.c.

◆ msprite_duplicate()

Variable * msprite_duplicate ( Environment * _environment,
char * _original )

Emit code for SPRITE(...).

Parameters
_environmentCurrent calling environment
_imageimage to use as SPRITE

Definition at line 49 of file msprite_duplicate.c.

◆ msprite_init()

Variable * msprite_init ( Environment * _environment,
char * _image,
char * _sprite,
int _flags )

Emit code for SPRITE(...).

Parameters
_environmentCurrent calling environment
_imageimage to use as SPRITE

Definition at line 47 of file msprite_init.c.

◆ msprite_update()

void msprite_update ( Environment * _environment)

Emit code for SPRITE(...).

Parameters
_environmentCurrent calling environment
_imageimage to use as SPRITE

Definition at line 47 of file msprite_update.c.

◆ music_load()

Variable * music_load ( Environment * _environment,
char * _filename,
char * _alias,
int _bank_expansion )

Emit code for LOAD MUSIC(...).

Parameters
_environmentCurrent calling environment
_filenameFilename to read into buffer

Definition at line 71 of file music_load.c.

◆ music_load_to_variable()

Variable * music_load_to_variable ( Environment * _environment,
char * _filename,
char * _alias,
int _bank_expansion )

Definition at line 732 of file _music.c.

◆ music_pause()

void music_pause ( Environment * _environment)

Definition at line 81 of file music.c.

◆ music_resume()

void music_resume ( Environment * _environment)

Definition at line 95 of file music.c.

◆ music_seek_var()

void music_seek_var ( Environment * _environment,
char * _position )

Definition at line 124 of file music.c.

◆ music_stop()

void music_stop ( Environment * _environment)

Definition at line 109 of file music.c.

◆ music_storage()

Variable * music_storage ( Environment * _environment,
char * _source_name,
char * _target_name,
int _bank_expansion )

Emit code for LOAD MUSIC(...).

Parameters
_environmentCurrent calling environment
_filenameFilename to read into buffer

Definition at line 71 of file music_storage.c.

◆ music_var()

void music_var ( Environment * _environment,
char * _music,
int _loop,
int _music_type )

Emit ASM code for MUSIC ....

This function emits a code capable of play a music.

Parameters
_environmentCurrent calling environment
_musicmusic to play

This function emits a code capable of play a music.

Parameters
_environmentCurrent calling environment
_musicmusic to play

Emit ASM code for MUSIC ...

This function emits a code capable of play a music.

Parameters
_environmentCurrent calling environment
_musicmusic to play

Definition at line 54 of file music.c.

◆ new_image()

Variable * new_image ( Environment * _environment,
int _width,
int _height,
int _mode )

Emit code for NEW IMAGE(...).

Parameters
_environmentCurrent calling environment
_widthWidth of the image, in pixel
_heightHeigth of the image, in pixel
_modeMode to use

Definition at line 49 of file new_image.c.

◆ new_images()

Variable * new_images ( Environment * _environment,
int _frames,
int _width,
int _height,
int _mode )

Emit code for NEW IMAGE(...).

Parameters
_environmentCurrent calling environment
_widthWidth of the image, in pixel
_heightHeigth of the image, in pixel
_modeMode to use

Definition at line 49 of file new_images.c.

◆ new_music()

Variable * new_music ( Environment * _environment,
int _size )

Emit code for NEW IMAGE(...).

Parameters
_environmentCurrent calling environment
_widthWidth of the image, in pixel
_heightHeigth of the image, in pixel
_modeMode to use

Definition at line 67 of file new_music.c.

◆ new_sequence()

Variable * new_sequence ( Environment * _environment,
int _sequences,
int _frames,
int _width,
int _height,
int _mode )

Emit code for NEW SEQUENCE(...).

Parameters
_environmentCurrent calling environment
_widthWidth of the image, in pixel
_heightHeigth of the image, in pixel
_modeMode to use

Definition at line 49 of file new_sequence.c.

◆ next_animation()

void next_animation ( Environment * _environment,
char * _prefix )

Emit code for KILL ....

Parameters
_environmentCurrent calling environment
_handleIdentifier of the thread

Definition at line 66 of file next_animation.c.

◆ next_raster()

void next_raster ( Environment * _environment)

Emit ASM code for NEXT RASTER.

This function outputs assembly code needed to wait for the next raster. Meanwhile, the execution of the main code will resume where it left off.

Parameters
_environmentCurrent calling environment

Definition at line 50 of file next_raster.c.

◆ next_raster_at_with()

void next_raster_at_with ( Environment * _environment,
int _position,
char * _label )

Emit ASM code for NEXT RASTER AT [int] WITH [label].

This function outputs a code that puts the raster routine on hold for the vertical raster to arrive at a new _position with the execution of a different code from the previous one. This function is particularly useful when the position is communicated is given as an integer.

Parameters
_environmentCurrent calling environment
_labelLabel to jump to when vertical raster reach the value given
_positionThe vertical position to wait for

Emit ASM code for NEXT RASTER AT [int] WITH [label].

This function outputs a code that puts the raster routine on hold for the vertical raster to arrive at a new _position with the execution of a different code from the previous one. This function is particularly useful when the position is communicated is given as an integer.

Parameters
_environmentCurrent calling environment
_labelLabel to jump to when vertical raster reach the value given
_positionThe vertical position to wait for

Definition at line 53 of file next_raster_at.c.

◆ next_raster_at_with_var()

void next_raster_at_with_var ( Environment * _environment,
char * _position,
char * _label )

Emit ASM code for NEXT RASTER AT [expresssion] WITH label.

This function outputs a code that puts the raster routine on hold for the vertical raster to arrive at a new _position with the execution of a different code from the previous one. This function is particularly useful when the position is communicated is given as an expression.

Parameters
_environmentCurrent calling environment
_labelLabel to jump to when vertical raster reach the value given
_positionThe vertical position to wait for

Definition at line 69 of file next_raster_at.c.

◆ offsetting_add_variable_reference()

void offsetting_add_variable_reference ( Environment * _environment,
Offsetting * _first,
Variable * _var,
int _sequence )

Definition at line 455 of file _infrastructure.c.

◆ offsetting_size_count()

Offsetting * offsetting_size_count ( Environment * _environment,
int _size,
int _count )

Definition at line 397 of file _infrastructure.c.

◆ on_gosub()

void on_gosub ( Environment * _environment,
char * _expression )

Emit ASM code for ON ... GOSUB ....

This function outputs the code to implement the unconditional jump with returning, calculated by expression.

Parameters
_environmentCurrent calling environment
_expressionExpression with the true / false condition

Definition at line 79 of file on_gosub.c.

◆ on_gosub_end()

void on_gosub_end ( Environment * _environment)

Emit ASM code for ... (of ON ... GOSUB ...).

This function outputs the code to implement the end of unconditional jump (with returning) by expression.

Parameters
_environmentCurrent calling environment

Definition at line 177 of file on_gosub.c.

◆ on_gosub_index()

void on_gosub_index ( Environment * _environment,
char * _label )

Emit ASM code for ... (of ON ... GOSUB ...).

This function outputs the code to implement any specific indexed jump with returning on forced jumps by expression.

Parameters
_environmentCurrent calling environment
_labelLabel to jump to

Definition at line 107 of file on_gosub.c.

◆ on_gosub_number()

void on_gosub_number ( Environment * _environment,
int _number )

Emit ASM code for ... (of ON ... GOSUB ...).

This function outputs the code to implement any specific indexed jump with returning on forced jumps by expression.

Parameters
_environmentCurrent calling environment
_labelLine number to jump to

Definition at line 158 of file on_gosub.c.

◆ on_goto()

void on_goto ( Environment * _environment,
char * _expression )

Emit ASM code for ON ... GOTO ....

This function outputs the code to implement the conditional jump by expression.

Parameters
_environmentCurrent calling environment
_expressionExpression with the true / false condition

Definition at line 79 of file on_goto.c.

◆ on_goto_end()

void on_goto_end ( Environment * _environment)

Emit ASM code for ... (of ON ... GOTO ...).

This function outputs the code to implement the ending of unconditional jump by expression.

Parameters
_environmentCurrent calling environment

Definition at line 164 of file on_goto.c.

◆ on_goto_index()

void on_goto_index ( Environment * _environment,
char * _label )

Emit ASM code for ... (of ON ... GOTO ...).

This function outputs the code to implement any specific indexed jump on forced jumps by expression.

Parameters
_environmentCurrent calling environment
_labelLabel to jump to

Definition at line 105 of file on_goto.c.

◆ on_goto_number()

void on_goto_number ( Environment * _environment,
int _number )

Emit ASM code for ... (of ON ... GOTO ...).

This function outputs the code to implement any specific indexed jump on forced jumps by expression.

Parameters
_environmentCurrent calling environment
_numberLine number to jump to

Definition at line 146 of file on_goto.c.

◆ on_proc()

void on_proc ( Environment * _environment,
char * _expression )

Emit ASM code for ON ... PROC ....

This function outputs the code to implement the call subroutine, calculated by expression.

Parameters
_environmentCurrent calling environment
_expressionExpression with the true / false condition

Definition at line 88 of file on_proc.c.

◆ on_proc_end()

void on_proc_end ( Environment * _environment)

Emit ASM code for ... (of ON ... PROC ...).

This function outputs the code to implement the end of call subroutine by expression.

Parameters
_environmentCurrent calling environment

Definition at line 162 of file on_proc.c.

◆ on_proc_index()

void on_proc_index ( Environment * _environment,
char * _label )

Emit ASM code for ... (of ON ... PROC ...).

This function outputs the code to implement any specific indexed call to subroutine by expression.

Parameters
_environmentCurrent calling environment
_labelProcedure to call

Definition at line 116 of file on_proc.c.

◆ on_scroll_call()

void on_scroll_call ( Environment * _environment,
int _x,
int _y,
char * _label )

Emit ASM code for ON SCROLL ... CALL ....

This function outputs the code to implement the unconditional jump with returning, calculated by expression.

Parameters
_environmentCurrent calling environment
_expressionExpression with the true / false condition

Definition at line 75 of file on_scroll_call.c.

◆ on_scroll_gosub()

void on_scroll_gosub ( Environment * _environment,
int _x,
int _y,
char * _label )

Emit ASM code for ON ... GOSUB ....

This function outputs the code to implement the unconditional jump with returning, calculated by expression.

Parameters
_environmentCurrent calling environment
_expressionExpression with the true / false condition

Definition at line 71 of file on_scroll_gosub.c.

◆ option_dialect()

void option_dialect ( Environment * _environment,
Dialect _dialect )

Definition at line 41 of file option_dialect.c.

◆ origin_resolution_relative_transform_x()

Variable * origin_resolution_relative_transform_x ( Environment * _environment,
char * _x,
int _is_relative )

Definition at line 14332 of file _infrastructure.c.

◆ origin_resolution_relative_transform_y()

Variable * origin_resolution_relative_transform_y ( Environment * _environment,
char * _y,
int _is_relative )

Definition at line 14401 of file _infrastructure.c.

◆ out_var()

void out_var ( Environment * _environment,
char * _port,
char * _value )

Emit ASM code for OUT.

Parameters
_environmentCurrent calling environment
_portExpression with the port to send output to
_valueExpression to send.

Definition at line 108 of file out.c.

◆ paint_vars()

void paint_vars ( Environment * _environment,
char * _x,
char * _y,
char * _c,
char * _b )

Emit ASM code for PAIN.

Parameters
_environmentCurrent calling environment
_addressExpression with the location to write to.
_valueExpression to write.

Definition at line 99 of file paint.c.

◆ palette_extract()

int palette_extract ( Environment * _environment,
char * _data,
int _width,
int _height,
int _depth,
int _flags,
RGBi * _palette )

Definition at line 41 of file palette_extract.c.

◆ palette_match()

RGBi * palette_match ( RGBi * _source,
int _source_size,
RGBi * _system,
int _system_size )

Make a "palette match".

Parameters
_sourceSource palette to match
_source_sizeSize of the source palette
_systemSystem palette to use as reference
_system_sizeSize of the reference palette
Returns
RGBi* Matched palette

Definition at line 13981 of file _infrastructure.c.

◆ palette_match_hardware_index()

RGBi * palette_match_hardware_index ( RGBi * _source,
int _source_size,
RGBi * _system,
int _system_size )

Definition at line 14015 of file _infrastructure.c.

◆ palette_merge()

RGBi * palette_merge ( RGBi * _palette1,
int _palette1_size,
RGBi * _palette2,
int _palette2_size,
int * _size )

Make a "palette merge".

Parameters
_palette1First palette to merge
_palette1_sizeSize of the first palette to merge
_palette2Second palette to merge
_palette2_sizeSize of the second palette to merge
_sizeSize of the merged palette
Returns
RGBi* Merged palettes

Definition at line 14216 of file _infrastructure.c.

◆ palette_promote_color_as_background()

RGBi * palette_promote_color_as_background ( int _index,
RGBi * _source,
int _source_size )

Promote an index color in a palette.

Parameters
_indexSource palette index
_sourceSource palette to check
_source_sizeSize of the source palette
_unique_sizeSize of the unique palette
Returns
RGBi* Palette without duplications

Definition at line 14105 of file _infrastructure.c.

◆ palette_promote_color_as_foreground()

RGBi * palette_promote_color_as_foreground ( int _index,
RGBi * _source,
int _source_size,
int _max_size )

Promote an index color in a palette.

Parameters
_indexSource palette index
_sourceSource palette to check
_source_sizeSize of the source palette
_unique_sizeSize of the unique palette
Returns
RGBi* Palette without duplications

Definition at line 14141 of file _infrastructure.c.

◆ palette_remove_duplicates()

RGBi * palette_remove_duplicates ( RGBi * _source,
int _source_size,
int * _unique_size )

Remove duplicates from a palette.

Parameters
_sourceSource palette to check
_source_sizeSize of the source palette
_unique_sizeSize of the unique palette
Returns
RGBi* Palette without duplications

Definition at line 14052 of file _infrastructure.c.

◆ palette_shift()

RGBi * palette_shift ( RGBi * _source,
int _source_size,
int _offset )

Shift colors in palette.

Parameters
_sourceSource palette to shift
_source_sizeSize of the source palette
_offsetOffset to shift (> 0 to right, < 0 to left)
Returns
RGBi* Shifted palette

Definition at line 14183 of file _infrastructure.c.

◆ paper()

void paper ( Environment * _environment,
char * _color )

Emit code for PAPER ... command.

Parameters
_environmentCurrent calling environment
_colorColor to use for the paper

Definition at line 47 of file paper.c.

◆ param_procedure()

Variable * param_procedure ( Environment * _environment,
char * _name )

Emit code for PARAM(...).

Parameters
_environmentCurrent calling environment
_nameName of the procedure
Returns
Variable* Variable with the result of the function

Definition at line 71 of file param.c.

◆ parse_buffer()

char * parse_buffer ( Environment * _environment,
char * _buffer,
int * _size,
int _hex_only )

Definition at line 13168 of file _infrastructure.c.

◆ parse_buffer_definition()

Variable * parse_buffer_definition ( Environment * _environment,
char * _buffer,
VariableType _type,
int _hex_only )

Definition at line 13194 of file _infrastructure.c.

◆ parser_adapted_numeric()

Variable * parser_adapted_numeric ( Environment * _environment,
int _number )

Definition at line 14874 of file _infrastructure.c.

◆ parser_array_cleanup()

void parser_array_cleanup ( Environment * _environment)

Definition at line 14785 of file _infrastructure.c.

◆ parser_array_index_numeric()

void parser_array_index_numeric ( Environment * _environment,
int _index )

Definition at line 14799 of file _infrastructure.c.

◆ parser_array_index_symbolic()

void parser_array_index_symbolic ( Environment * _environment,
char * _index )

Definition at line 14791 of file _infrastructure.c.

◆ parser_array_init()

void parser_array_init ( Environment * _environment)

Definition at line 14767 of file _infrastructure.c.

◆ parser_array_init_by()

void parser_array_init_by ( Environment * _environment,
ArrayReference * _array_reference )

Definition at line 14776 of file _infrastructure.c.

◆ parser_array_retrieve()

ArrayReference * parser_array_retrieve ( Environment * _environment)

Definition at line 14755 of file _infrastructure.c.

◆ parser_casted_numeric()

Variable * parser_casted_numeric ( Environment * _environment,
VariableType _type,
int _number )

Definition at line 14889 of file _infrastructure.c.

◆ pattern_match()

int pattern_match ( char * _pattern,
char * _value )

Definition at line 11100 of file _infrastructure.c.

◆ pause_seconds()

void pause_seconds ( Environment * _environment,
char * _string,
char * _duration )

Definition at line 67 of file pause.c.

◆ peek_var()

Variable * peek_var ( Environment * _environment,
char * _location )

Emit ASM code for PEEK(...).

This function outputs valid code to retrieve a byte from memory, and returns it as a temporary variable. This version is valid for use where the location to be read is an expression

Parameters
_environmentCurrent calling environment
_locationExpression with the location to read from.
Returns
Variable* Temporary variable with the content of the location (1 byte).

Definition at line 130 of file peek.c.

◆ peekd_var()

Variable * peekd_var ( Environment * _environment,
char * _location )

Definition at line 274 of file peek.c.

◆ peekw_var()

Variable * peekw_var ( Environment * _environment,
char * _location )

Definition at line 203 of file peek.c.

◆ pen()

void pen ( Environment * _environment,
char * _color )

Emit code for PEN ... command.

Parameters
_environmentCurrent calling environment
_colorColor to use for the pen

Definition at line 47 of file pen.c.

◆ play()

void play ( Environment * _environment,
int _note,
int _delay,
int _channels )

Emit ASM code for PLAY ....

This function emits a code capable of play a note for a certain amount of time on specific channels

Parameters
_environmentCurrent calling environment
_notenote to play
_delaydelay of playing
_channelschannels to play on

Definition at line 57 of file play.c.

◆ play_off()

void play_off ( Environment * _environment,
int _channels )

Emit ASM code for PLAY OFF.

This function emits a code capable of stop play on specific channels

Parameters
_environmentCurrent calling environment
_channelschannels to play off

Definition at line 54 of file play_off.c.

◆ play_off_var()

void play_off_var ( Environment * _environment,
char * _channels )

Emit ASM code for PLAY OFF ....

This function emits a code capable of stop play on specific channels.

Parameters
_environmentCurrent calling environment
_channelschannels to play on

Definition at line 68 of file play_off.c.

◆ play_string()

void play_string ( Environment * _environment,
char * _string )

Definition at line 77 of file play_string.c.

◆ play_vars()

void play_vars ( Environment * _environment,
char * _note,
char * _delay,
char * _channels )

Emit ASM code for PLAY ....

This function emits a code capable of play a note for a certain amount of time on specific channels

Parameters
_environmentCurrent calling environment
_notenote to play
_delaydelay of playing
_channelschannels to play on

Definition at line 78 of file play.c.

◆ plot()

void plot ( Environment * _environment,
char * _x,
char * _y,
char * _c,
int _preserve_color )

Emit code for PLOT.

Emit code to draw a pixel at a given point.

Parameters
_environmentCurrent calling environment
_xAbscissa of the pixel.
_yCoordinate of the pixel.
_cColor of the pixel.

Definition at line 46 of file plot.c.

◆ pmode()

void pmode ( Environment * _environment,
int _mode,
int _start_page )
Parameters
_environment
_mode
_start_page

Definition at line 52 of file pmode.c.

◆ po_buf_add()

POBuffer po_buf_add ( POBuffer buf,
char c )

Definition at line 100 of file _optimizer.c.

◆ po_buf_cat()

POBuffer po_buf_cat ( POBuffer buf,
char * string )

Definition at line 83 of file _optimizer.c.

◆ po_buf_cmp()

int po_buf_cmp ( POBuffer a,
POBuffer b )

Definition at line 152 of file _optimizer.c.

◆ po_buf_cpy()

POBuffer po_buf_cpy ( POBuffer buf,
char * string )

Definition at line 94 of file _optimizer.c.

◆ po_buf_del()

POBuffer po_buf_del ( POBuffer buf)

Definition at line 49 of file _optimizer.c.

◆ po_buf_fgets()

POBuffer po_buf_fgets ( POBuffer buf,
FILE * f )

Definition at line 138 of file _optimizer.c.

◆ po_buf_is_hex()

int po_buf_is_hex ( POBuffer _s)

Definition at line 323 of file _optimizer.c.

◆ po_buf_match()

POBuffer po_buf_match ( POBuffer _buf,
const char * _pattern,
... )

Definition at line 271 of file _optimizer.c.

◆ po_buf_new()

POBuffer po_buf_new ( int size)

Definition at line 62 of file _optimizer.c.

◆ po_buf_printf()

POBuffer po_buf_printf ( POBuffer buf,
const char * fmt,
... )

Definition at line 129 of file _optimizer.c.

◆ po_buf_strcmp()

int po_buf_strcmp ( POBuffer _s,
POBuffer _t )

Definition at line 251 of file _optimizer.c.

◆ po_buf_trim()

int po_buf_trim ( POBuffer buf)

Definition at line 157 of file _optimizer.c.

◆ po_buf_vprintf()

POBuffer po_buf_vprintf ( POBuffer buf,
const char * fmt,
va_list ap )

Definition at line 111 of file _optimizer.c.

◆ po_var_find()

POVariable * po_var_find ( char * _name)

Definition at line 349 of file _optimizer.c.

◆ po_var_init()

void po_var_init ( )

Definition at line 336 of file _optimizer.c.

◆ po_var_lookup()

POVariable * po_var_lookup ( char * _name)

Definition at line 360 of file _optimizer.c.

◆ po_var_register()

POVariable * po_var_register ( char * _name)

Definition at line 340 of file _optimizer.c.

◆ point()

Variable * point ( Environment * _environment,
char * _x,
char * _y )

Emit code for POINT(...).

Emit code to get the color at a given point.

Parameters
_environmentCurrent calling environment
_xAbscissa of the pixel.
_yCoordinate of the pixel.
Returns
Variable* Color at the given coordinates

Definition at line 46 of file point.c.

◆ point_at()

void point_at ( Environment * _environment,
int _x,
int _y )

Emit ASM code for POINT AT ([int],[int]).

This function outputs a code that draws a pixel on the screen in bitmap mode on coordinates given explicitly and directly as integers.

Precondition
Bitmap must be enabled at least once with instruction BITMAP ENABLE.
Parameters
_environmentCurrent calling environment
_xAbscissa of the point to draw
_yOrdinate of the point
Exceptions
EXIT_FAILURE"CRITICAL: POINT AT (xxx,xxx) needs BITMAP ENABLE"

Emit ASM code for POINT AT ([int],[int]).

This function outputs a code that draws a pixel on the screen in bitmap mode on coordinates given explicitly and directly as integers. To do this, it calculates both the position in memory where it will draw and the offset within the byte, storing this information in the following special variables:

Precondition
Bitmap must be enabled at least once with instruction BITMAP ENABLE.
Parameters
_environmentCurrent calling environment
_xAbscissa of the point to draw
_yOrdinate of the point
Exceptions
EXIT_FAILURE"CRITICAL: POINT AT (xxx,xxx) needs BITMAP ENABLE"

Definition at line 54 of file point_at.c.

◆ point_at_vars()

void point_at_vars ( Environment * _environment,
char * _x,
char * _y )

Emit ASM code for POINT AT ([int]x,[int]x).

This function outputs a code that draws a pixel on the screen in bitmap mode on coordinates given explicitly and directly as integers. To do this, it calculates both the position in memory where it will draw and the offset within the byte, storing this information in the following special variables:

  • pen_address - offset in memory that refers to the pixel to be modified
Precondition
Bitmap must be enabled at least once with instruction BITMAP ENABLE.
Parameters
_environmentCurrent calling environment
_xExpression with the abscissa of the point to draw
_yExpression with the ordinate of the point
Exceptions
EXIT_FAILURE"CRITICAL: POINT AT (xxx,xxx) needs BITMAP ENABLE"

Definition at line 80 of file point_at.c.

◆ poke_var()

void poke_var ( Environment * _environment,
char * _address,
char * _value )

Emit ASM code for POKE.

Parameters
_environmentCurrent calling environment
_addressExpression with the location to write to.
_valueExpression to write.

Definition at line 106 of file poke.c.

◆ poked_var()

void poked_var ( Environment * _environment,
char * _address,
char * _value )

Definition at line 262 of file poke.c.

◆ pokew_var()

void pokew_var ( Environment * _environment,
char * _address,
char * _value )

Definition at line 187 of file poke.c.

◆ pop()

void pop ( Environment * _environment)

Emit ASM code for POP.

This function can be used to issue a code equivalent to removing caller address for a GOSUB.

Parameters
_environmentCurrent calling environment

Definition at line 66 of file pop.c.

◆ powering()

Variable * powering ( Environment * _environment,
char * _base,
char * _exponential )

Emit code to raise a variable to a given variable.

This function allows you to emit a code that raise a variable to a given variable.

Precondition
_base and _exponential variables must exist
Parameters
_environmentCurrent calling environment
_baseBase variable's name
_exponentialExponential variable's name
Returns
Variable* The result of calculation

Definition at line 91 of file pow.c.

◆ precalculate_tile_descriptors_for_font()

TileDescriptors * precalculate_tile_descriptors_for_font ( char * _fontData,
int _fontSize )

Definition at line 13073 of file _infrastructure.c.

◆ prepare_variable_storage()

void prepare_variable_storage ( Environment * _environment,
char * _name,
Variable * _variable )

Definition at line 15218 of file _infrastructure.c.

◆ print()

void print ( Environment * _environment,
char * _value,
int _new_line,
int _raw )

Emit code for PRINT... instruction.

Parameters
_environmentCurrent calling environment
_valueValue to print
_new_line1 if a new line must be added at the end

Definition at line 141 of file print.c.

◆ print_buffer()

void print_buffer ( Environment * _environment,
char * _value,
int _new_line,
int _printable )

Emit code for PRINT... instruction.

Parameters
_environmentCurrent calling environment
_valueValue to print
_new_line1 if a new line must be added at the end

Definition at line 123 of file print_buffer.c.

◆ print_newline()

void print_newline ( Environment * _environment)

Emit code for print a single newline.

Parameters
_environmentCurrent calling environment

Definition at line 422 of file print.c.

◆ print_question_mark()

void print_question_mark ( Environment * _environment)

Emit code for print a single question mark.

Parameters
_environmentCurrent calling environment

Definition at line 413 of file print.c.

◆ print_tab()

void print_tab ( Environment * _environment,
int _new_line )

Emit code for print a single TAB.

Parameters
_environmentCurrent calling environment
_new_line1 if a new line must be added at the end

Definition at line 398 of file print.c.

◆ proc()

void proc ( Environment * _environment,
char * _label )

Emit ASM code for PROC.

Parameters
_environmentCurrent calling environment

Definition at line 86 of file proc.c.

◆ procedure_exists()

int procedure_exists ( Environment * _environment,
char * _name )

Definition at line 15841 of file _infrastructure.c.

◆ put_image()

void put_image ( Environment * _environment,
char * _image,
char * _x1,
char * _y1,
char * _x2,
char * _y2,
char * _frame,
char * _sequence,
int _flags )

Emit ASM code for PUT IMAGE [image] AT [int],[int].

This function outputs a code that draws an image on a bitmap.

Parameters
_environmentCurrent calling environment
_imageImage to draw
_xAbscissa of the point to draw
_yOrdinate of the point

Definition at line 53 of file put_image.c.

◆ put_image_vars()

void put_image_vars ( Environment * _environment,
char * _image,
char * _x1,
char * _y1,
char * _x2,
char * _y2,
char * _frame,
char * _sequence,
char * _flags )

Emit ASM code for PUT IMAGE [image] AT [int],[int].

This function outputs a code that draws an image on a bitmap.

Parameters
_environmentCurrent calling environment
_imageImage to draw
_xAbscissa of the point to draw
_yOrdinate of the point

Definition at line 406 of file put_image.c.

◆ put_image_vars_flags()

void put_image_vars_flags ( Environment * _environment,
char * _image,
char * _x1,
char * _y1,
char * _x2,
char * _y2,
char * _frame,
char * _sequence,
int _flags )

Definition at line 430 of file put_image.c.

◆ put_key()

void put_key ( Environment * _environment,
char * _string )

Definition at line 43 of file put_key.c.

◆ put_tile()

void put_tile ( Environment * _environment,
char * _tile,
char * _x,
char * _y,
char * _w,
char * _h )

Emit ASM code for PUT TILE [image] AT [int],[int].

This function outputs a code that draws a tile on a tilemap.

Parameters
_environmentCurrent calling environment
_imageImage to draw
_xAbscissa of the point to draw
_yOrdinate of the point

Definition at line 56 of file put_tile.c.

◆ put_tilemap_inline()

void put_tilemap_inline ( Environment * _environment,
char * _tilemap,
int _flags,
char * _dx,
char * _dy,
char * _layer,
int _padding_tile )

Definition at line 43 of file put_tilemap_inline.c.

◆ put_tilemap_vars()

void put_tilemap_vars ( Environment * _environment,
char * _tilemap,
int _flags,
char * _dx,
char * _dy,
char * _layer,
char * _pad_frame )

Emit ASM code for PUT TILEMAP [tilemap].

This function outputs a code that draws an image on a bitmap.

Parameters
_environmentCurrent calling environment
_tilemapTilemap to draw

Definition at line 71 of file put_tilemap.c.

◆ random_value()

Variable * random_value ( Environment * _environment,
VariableType _type )

Emit ASM code for = RANDOM.

This function outputs a code suitable for calculating a random value, the range of which depends on the type of data passed as a parameter:

  • ''VT_BYTE'' (BYTE) : 0...255
  • ''VT_COLOR'' (COLOR) : 0...15
  • ''VT_WORD'' (WORD) : 0...65.535
  • ''VT_ADDRESS'' (ADDRESS) : 0...65.535
  • ''VT_POSITION'' (POSITION) : 0...65.535
  • ''VT_DWORD'' (DWORD) : 0...4.294.967.295

The random value is passed back into a temporary variable.

Parameters
_environmentCurrent calling environment
_typeType of random number to generate
Returns
Variable* The random value calculated

Emit ASM code for = RANDOM.

This function outputs a code suitable for calculating a random value, the range of which depends on the type of data passed as a parameter:

The random value is passed back into a temporary variable.

Parameters
_environmentCurrent calling environment
_typeType of random number to generate
Returns
Variable* The random value calculated

This function outputs a code suitable for calculating a random value, the range of which depends on the type of data passed as a parameter:

The random value is passed back into a temporary variable.

Parameters
_environmentCurrent calling environment
_typeType of random number to generate
Returns
Variable* The random value calculated

Definition at line 41 of file random.c.

◆ randomize()

void randomize ( Environment * _environment,
char * _other_seed )

Emit ASM code for RANDOMIZE.

This function initialize the seed for random function.

Parameters
_environmentCurrent calling environment

Definition at line 48 of file randomize.c.

◆ range()

Variable * range ( Environment * _environment,
char * _expression,
char * _min,
char * _max )

Emit code for READ instruction.

Parameters
_environmentCurrent calling environment
_variableVariable to store to

Definition at line 70 of file range.c.

◆ raster_at()

void raster_at ( Environment * _environment,
char * _label,
int _position )

Emit ASM code for RASTER AT [int] WITH [label].

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.

Parameters
_environmentCurrent calling environment
_labelLabel to jump to when vertical raster reach the value given
_positionThe vertical position to wait for

Emit ASM code for RASTER AT [int] WITH [label].

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.

Parameters
_environmentCurrent calling environment
_labelLabel to jump to when vertical raster reach the value given
_positionThe vertical position to wait for

Definition at line 55 of file raster_at.c.

◆ raster_at_var()

void raster_at_var ( Environment * _environment,
char * _label,
char * _position )

Emit ASM code for RASTER AT [expression] WITH label.

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 expression

Parameters
_environmentCurrent calling environment
_labelLabel to jump to when vertical raster reach the value given
_positionThe vertical position to wait for

Definition at line 73 of file raster_at.c.

◆ read_data()

void read_data ( Environment * _environment,
char * _variable,
int _safe )

Emit code for READ instruction.

Parameters
_environmentCurrent calling environment
_variableVariable to store to

Definition at line 348 of file read_data.c.

◆ read_data_unsafe()

void read_data_unsafe ( Environment * _environment,
char * _variable )

Definition at line 43 of file read_data_unsafe.c.

◆ read_end()

Variable * read_end ( Environment * _environment)

Emit code for READ END function.

Parameters
_environmentCurrent calling environment

Definition at line 46 of file read_end.c.

◆ read_end_unsafe()

Variable * read_end_unsafe ( Environment * _environment)

◆ remember()

void remember ( Environment * _environment)

Definition at line 68 of file remember.c.

◆ repeat()

void repeat ( Environment * _environment,
char * _label )

◆ reset()

void reset ( Environment * _environment)

Definition at line 41 of file reset.c.

◆ reset_screen_mode_selected()

int reset_screen_mode_selected ( Environment * _environment)

Definition at line 11487 of file _infrastructure.c.

◆ resolve_color()

char * resolve_color ( Environment * _environment,
char * _color )

Definition at line 15426 of file _infrastructure.c.

◆ resource_load_asserts()

char * resource_load_asserts ( Environment * _environment,
char * _filename )

Definition at line 12847 of file _infrastructure.c.

◆ respawn_procedure()

Variable * respawn_procedure ( Environment * _environment,
char * _name )

Emit code for SPAWN ....

Parameters
_environmentCurrent calling environment
_nameName of the procedure

Definition at line 85 of file respawn.c.

◆ restore_label()

void restore_label ( Environment * _environment,
char * _label )

Definition at line 95 of file restore.c.

◆ restore_label_unsafe()

void restore_label_unsafe ( Environment * _environment,
char * _label )

Definition at line 41 of file restore_label_unsafe.c.

◆ resume_vars()

void resume_vars ( Environment * _environment,
char * _thread )

Emit code for RESUME ....

Parameters
_environmentCurrent calling environment
_nameName of the procedure

Definition at line 72 of file resume.c.

◆ return_label()

void return_label ( Environment * _environment)

Emit ASM code for RETURN.

This function can be used to issue a code equivalent to the return from a conditional jump.

Parameters
_environmentCurrent calling environment

Definition at line 71 of file return.c.

◆ return_procedure()

void return_procedure ( Environment * _environment,
char * _value )

Emit code for RETURN ....

Parameters
_environmentCurrent calling environment
_valueValue to the return

Definition at line 83 of file return_procedure.c.

◆ rgbi_distance()

int rgbi_distance ( RGBi * _e1,
RGBi * _e2 )

Calculate the distance between two colors.

This function calculates the color distance between two colors(_a and _b). By "distance" we mean the geometric distance between two points in a three-dimensional space, where each dimension corresponds to one of the components (red, green and blue). The returned value is normalized to the nearest 8-bit value.

Parameters
_e1First color
_e2Second color
Returns
int distance

Definition at line 13523 of file _infrastructure.c.

◆ rgbi_equals_rgb()

int rgbi_equals_rgb ( RGBi * _first,
RGBi * _second )

Definition at line 13498 of file _infrastructure.c.

◆ rgbi_equals_rgba()

int rgbi_equals_rgba ( RGBi * _first,
RGBi * _second )

Definition at line 13502 of file _infrastructure.c.

◆ rgbi_extract_palette()

int rgbi_extract_palette ( Environment * _environment,
unsigned char * _source,
int _width,
int _height,
int _depth,
RGBi _palette[],
int _palette_size,
int _sorted )

Extract the color palette from the given image.

Parameters
_source
_palette
_palette_size
Returns
int

Definition at line 13566 of file _infrastructure.c.

◆ rgbi_move()

void rgbi_move ( RGBi * _source,
RGBi * _destination )

Definition at line 13506 of file _infrastructure.c.

◆ rightb()

void rightb ( Environment * _environment,
char * _line,
char * _column,
char * _width,
char * _height )

Emit code for RIGHTB ....

Parameters
_environmentCurrent calling environment
_lineLine of window to scroll
_columnColumn of window to scroll
_widthWidth of window to scroll
_heightHeight of window to scroll

Definition at line 80 of file rightb.c.

◆ rightw()

void rightw ( Environment * _environment,
char * _line,
char * _column,
char * _width,
char * _height )

Emit code for RIGHTW ....

Parameters
_environmentCurrent calling environment
_lineLine of window to scroll
_columnColumn of window to scroll
_widthWidth of window to scroll
_heightHeight of window to scroll

Definition at line 82 of file rightw.c.

◆ rnd()

Variable * rnd ( Environment * _environment,
char * _value )

Return a random value.

Parameters
_environmentCurrent calling environment
_valueMaximum value for the random value
Returns
Variable* The random value

Definition at line 79 of file rnd.c.

◆ rnd0()

Variable * rnd0 ( Environment * _environment)

Return a random value.

Parameters
_environmentCurrent calling environment
_valueMaximum value for the random value
Returns
Variable* The random value

Definition at line 71 of file rnd01.c.

◆ rnd1()

Variable * rnd1 ( Environment * _environment)

Definition at line 110 of file rnd01.c.

◆ rot()

void rot ( Environment * _environment,
char * _angle,
char * _step )

Definition at line 78 of file rot.c.

◆ rotate_vector()

Variable * rotate_vector ( Environment * _environment,
char * _v,
char * _a )

Emit ASM code to implement CREATE PATH command.

Parameters
_environmentCurrent calling environment
_xLeft abscissa of the line
_yLeft ordinate of the line

Definition at line 67 of file rotate_vector.c.

◆ run()

void run ( Environment * _environment)

Emit code for RUN.

Parameters
_environmentCurrent calling environment

Definition at line 66 of file run.c.

◆ run_parallel()

void run_parallel ( Environment * _environment)

Emit code for RUN PARALLEL.

Parameters
_environmentCurrent calling environment

Definition at line 61 of file run_parallel.c.

◆ running()

Variable * running ( Environment * _environment,
char * _thread_id,
char * _procedure )

Emit code for RUN PARALLEL.

Parameters
_environmentCurrent calling environment

Definition at line 67 of file running.c.

◆ sbpen_get()

Variable * sbpen_get ( Environment * _environment,
char * _index )

Definition at line 61 of file sb.c.

◆ sbpen_set()

void sbpen_set ( Environment * _environment,
int _index,
char * _color )

Definition at line 41 of file sb.c.

◆ scancode()

Variable * scancode ( Environment * _environment)

Definition at line 43 of file scancode.c.

◆ scanshift()

Variable * scanshift ( Environment * _environment)

Definition at line 43 of file scanshift.c.

◆ screen_can()

Variable * screen_can ( Environment * _environment,
int _mode )

Emit ASM code for CAN SCREEN [mode].

This function outputs assembly code to check if the given mode is available.

Parameters
_environmentCurrent calling environment
_modeMode to check

Definition at line 72 of file screen_can.c.

◆ screen_columns()

void screen_columns ( Environment * _environment,
int _columns )

Emit ASM code for SCREEN COLUMNS [integer].

This function changes the number of columns that can be displayed. Depending on the hardware, the effect can be different as different are the acceptable values. This version is the one called when an integer number of lines is given in the program.

Parameters
_environmentCurrent calling environment
_columnsNumber of columns

Definition at line 52 of file screen_columns.c.

◆ screen_columns_var()

void screen_columns_var ( Environment * _environment,
char * _columns )

Emit ASM code for SCREEN COLUMNS [int]x.

This function changes the number of columns that can be displayed. Depending on the hardware, the effect can be different as different are the acceptable values. This version is the one called when an expression is given in the program.

Parameters
_environmentCurrent calling environment
_rowsNumber of columns

Definition at line 71 of file screen_columns.c.

◆ screen_get_height()

Variable * screen_get_height ( Environment * _environment)

Definition at line 41 of file screen_get_height.c.

◆ screen_get_width()

Variable * screen_get_width ( Environment * _environment)

Definition at line 41 of file screen_get_width.c.

◆ screen_horizontal_scroll()

void screen_horizontal_scroll ( Environment * _environment,
int _displacement )

Emit ASM code for SCREEN HORIZONTAL SCROLL [int]x.

This function outputs an assembly code capable of performing a hardware scroll of the screen. The scroll is always in the direction from right to left, so with a _displacement of 0 the screen is exactly as it would be without scrolling while with the value 7 you would have a scroll of 7 pixels to left. This version is used when a direct integer is used.

Parameters
_environmentCurrent calling environment
_displacementHorizontal offset in pixels (0-7)

Definition at line 53 of file screen_horizontal_scroll.c.

◆ screen_horizontal_scroll_var()

void screen_horizontal_scroll_var ( Environment * _environment,
char * _displacement )

Emit ASM code for SCREEN HORIZONTAL SCROLL [expression[.

This function outputs an assembly code capable of performing a hardware scroll of the screen. The scroll is always in the direction from right to left, so with a _displacement of 0 the screen is exactly as it would be without scrolling while with the value 7 you would have a scroll of 7 pixels to left. This version is used when an expression is used.

Parameters
_environmentCurrent calling environment
_displacementHorizontal offset in pixels (0-7)

Definition at line 73 of file screen_horizontal_scroll.c.

◆ screen_mode()

void screen_mode ( Environment * _environment,
int _mode )

Emit ASM code for SCREEN [mode].

This function outputs assembly code to change the current mode.

Parameters
_environmentCurrent calling environment
_modeMode to change to

Definition at line 116 of file screen_mode.c.

◆ screen_off()

void screen_off ( Environment * _environment)

Emit ASM code for SCREEN OFF.

This function outputs assembly code to turn off the screen.

Parameters
_environmentCurrent calling environment

Definition at line 48 of file screen_off.c.

◆ screen_on()

void screen_on ( Environment * _environment)

Emit ASM code for SCREEN ON.

This function outputs assembly code to turn on the screen.

Parameters
_environmentCurrent calling environment

Definition at line 48 of file screen_on.c.

◆ screen_page()

Variable * screen_page ( Environment * _environment)

Emit code for SCREEN SWAP.

Parameters
_environmentCurrent calling environment

Definition at line 46 of file screen_page.c.

◆ screen_rows()

void screen_rows ( Environment * _environment,
int _rows )

Emit ASM code for SCREEN ROWS [integer].

This function changes the number of lines that can be displayed. Depending on the hardware, the effect can be different as different are the acceptable values. This version is the one called when an integer number of lines is given in the program.

Parameters
_environmentCurrent calling environment
_rowsNumber of rows

Emit ASM code for SCREEN ROWS [integer].

This function changes the number of lines that can be displayed. Depending on the hardware, the effect can be different as different are the acceptable values. This version is the one called when an integer number of lines is given in the program.

Parameters
_environmentCurrent calling environment
_rowsNumber of rows

Definition at line 52 of file screen_rows.c.

◆ screen_rows_var()

void screen_rows_var ( Environment * _environment,
char * _rows )

Emit ASM code for SCREEN ROWS [int]x.

This function changes the number of lines that can be displayed. Depending on the hardware, the effect can be different as different are the acceptable values. This version is the one called when an expression is given in the program.

Parameters
_environmentCurrent calling environment
_rowsNumber of rows

Definition at line 71 of file screen_rows.c.

◆ screen_swap()

void screen_swap ( Environment * _environment)

Emit code for SCREEN SWAP.

Parameters
_environmentCurrent calling environment

Definition at line 49 of file screen_swap.c.

◆ screen_tiles_get()

Variable * screen_tiles_get ( Environment * _environment)

Definition at line 41 of file screen_tiles_get.c.

◆ screen_tiles_get_height()

Variable * screen_tiles_get_height ( Environment * _environment)

Definition at line 41 of file screen_tiles_get_height.c.

◆ screen_tiles_get_width()

Variable * screen_tiles_get_width ( Environment * _environment)

Definition at line 41 of file screen_tiles_get_width.c.

◆ screen_type_color_set()

void screen_type_color_set ( Environment * _environment,
int _type,
int _color_set )

Definition at line 188 of file screen_mode.c.

◆ screen_var()

Variable * screen_var ( Environment * _environment,
char * _x,
char * _y,
int _as_string )

Definition at line 41 of file screen.c.

◆ screen_vertical_scroll()

void screen_vertical_scroll ( Environment * _environment,
int _displacement )

Emit ASM code for SCREEN VERTICAL SCROLL [integer].

This function outputs an assembly code capable of performing a hardware scroll of the screen. The scroll is always in the direction from bottom to up, so with a _displacement of 0 the screen is exactly as it would be without scrolling while with the value 7 you would have a scroll of 7 pixels upwards. This version is used when a direct integer is used.

Parameters
_environmentCurrent calling environment
_displacementVertical offset in pixels (0-7)

Emit ASM code for SCREEN VERTICAL SCROLL [integer].

This function outputs an assembly code capable of performing a hardware scroll of the screen. The scroll is always in the direction from bottom to up, so with a _displacement of 0 the screen is exactly as it would be without scrolling while with the value 7 you would have a scroll of 7 pixels upwards. This version is used when a direct integer is used.

Parameters
_environmentCurrent calling environment
_displacementVertical offset in pixels (0-7)

Definition at line 56 of file screen_vertical_scroll.c.

◆ screen_vertical_scroll_var()

void screen_vertical_scroll_var ( Environment * _environment,
char * _displacement )

Emit ASM code for SCREEN VERTICAL SCROLL [expression].

This function outputs an assembly code capable of performing a hardware scroll of the screen. The scroll is always in the direction from bottom to up, so with a _displacement of 0 the screen is exactly as it would be without scrolling while with the value 7 you would have a scroll of 7 pixels upwards. This version is used when an expression is used.

Parameters
_environmentCurrent calling environment
_displacementVertical offset in pixels (0-7)

Definition at line 81 of file screen_vertical_scroll.c.

◆ scroll()

void scroll ( Environment * _environment,
int _dx,
int _dy )

Definition at line 41 of file scroll.c.

◆ select_case()

void select_case ( Environment * _environment,
char * _expression )

Emit ASM code for SELECT CASE ... {PASSING}.

This function outputs the code to implement a structured conditional jump. This implementation assumes that an expression passed as a parameter can be compared to various expressions that will given after. If the expression is equal to the this, it execute the instructions that follows, until a "CASE" or an "ENDSELECT" is reached. Otherwise, it jumps directly to the next CASE statement (or CASE ELSE, if present).

Since the compiler acts with a single pass, it is necessary to keep the information on the last used label. For this purpose, the label where it will jump will be inserted in the stack, so that it is defined at the moment when the ENDSELECT instruction will be examined.

Parameters
_environmentCurrent calling environment
_expressionExpression with the true / false condition

Definition at line 145 of file select_case.c.

◆ sequence_load()

Variable * sequence_load ( Environment * _environment,
char * _filename,
char * _alias,
int _mode,
int _frame_width,
int _frame_height,
int _flags,
int _transparent_color,
int _background_color,
int _bank_expansion,
int _origin_x,
int _origin_y,
int _offset_x,
int _offset_y )

Emit code for LOAD IMAGE(...).

Parameters
_environmentCurrent calling environment
_filenameFilename to read into buffer
_modeMode to use to convert data

Definition at line 235 of file sequence_load.c.

◆ sequence_storage()

Variable * sequence_storage ( Environment * _environment,
char * _source_name,
char * _target_name,
int _mode,
int _frame_width,
int _frame_height,
int _flags,
int _transparent_color,
int _background_color,
int _bank_expansion,
int _origin_x,
int _origin_y,
int _offset_x,
int _offset_y )

Emit code for IMAGE ... AS ....

Parameters
_environmentCurrent calling environment
_nameName of the storage

Definition at line 76 of file sequence_storage.c.

◆ serial_read()

Variable * serial_read ( Environment * _environment,
char * _size )

Emit code for SERIAL READ(...).

Parameters
_environmentCurrent calling environment

Definition at line 41 of file serial_read.c.

◆ serial_read_type()

Variable * serial_read_type ( Environment * _environment,
VariableType _datatype,
int _big_endian )

Emit code for SERIAL READ datatype.

Parameters
_environmentCurrent calling environment

Definition at line 43 of file serial_read_type.c.

◆ serial_write()

Variable * serial_write ( Environment * _environment,
char * _data )

Emit code for SERIAL WRITE(...).

Parameters
_environmentCurrent calling environment

Definition at line 41 of file serial_write.c.

◆ serial_write_type()

Variable * serial_write_type ( Environment * _environment,
char * _data,
VariableType _type,
int _big_endian )

Emit code for SERIAL WRITE(...).

Parameters
_environmentCurrent calling environment

Definition at line 43 of file serial_write_type.c.

◆ serialize()

Variable * serialize ( Environment * _environment,
char * _data,
char * _key )

Emit code for SERIALIZE.

Parameters
_environmentCurrent calling environment
_stringData to serialize

Definition at line 74 of file serialize.c.

◆ set_timer()

void set_timer ( Environment * _environment,
char * _value )

Emit code for TI =.

Emit code to assign the current value of the internal timer.

Parameters
_environmentCurrent calling environment
_valueTime to assign

Definition at line 67 of file timer.c.

◆ setup_text_variables()

void setup_text_variables ( Environment * _environment)

Definition at line 61 of file _init.c.

◆ shared()

void shared ( Environment * _environment)

Manage variable as "global".

Parameters
_environment

Definition at line 88 of file shared.c.

◆ shell_injection()

void shell_injection ( Environment * _environment)

Definition at line 41 of file _shell.c.

◆ shoot()

void shoot ( Environment * _environment,
int _channels )

Emit ASM code for SHOOT ....

This function emits a code capable of play a shoot sound.

Parameters
_environmentCurrent calling environment
_channelschannels to play on

Definition at line 67 of file shoot.c.

◆ show_troubleshooting_and_exit()

int show_troubleshooting_and_exit ( Environment * _environment,
int _argc,
char * _argv[] )

Definition at line 15502 of file _infrastructure.c.

◆ show_usage_and_exit()

void show_usage_and_exit ( int _argc,
char * _argv[] )

Show usage and exit.

When using a CLI (Command Line Interface), you must pass a series of parameters (the source file, the target, any optimization options). If the user makes a syntax error or explicitly requests help, this function intervenes. This function lists all available flags (e.g., -t for the target, -o for output, -i for includes, and so on). It displays a list of all retrocomputers for which ugBASIC can compile. Finally, terminates the program, returning a status code to the operating system.

Parameters
_argcThe number of parameters given on the command line.
_argvThe array of parameters given on the command line.

Definition at line 53855 of file ugbc.tab.c.

◆ sign()

Variable * sign ( Environment * _environment,
char * _value )

Return the sign of a variable.

Parameters
_environmentCurrent calling environment
_valueValue to calculate the sign
Returns
Variable* The sign of value

Definition at line 85 of file sgn.c.

◆ slice_image()

void slice_image ( Environment * _environment,
char * _image,
char * _frame,
char * _sequence,
char * _destination )

Definition at line 43 of file slice_image.c.

◆ slow()

void slow ( Environment * _environment)

Emit ASM code for SLOW.

Parameters
_environmentCurrent calling environment

Definition at line 49 of file slow.c.

◆ sound()

void sound ( Environment * _environment,
int _freq,
int _delay,
int _channels )

Emit ASM code for SOUND ....

This function emits a code capable of play a frequency for a certain amount of time on specific channels

Parameters
_environmentCurrent calling environment
_freqfrequency to play
_delaydelay of frequency
_channelschannels to play on

Definition at line 57 of file sound.c.

◆ sound_off()

void sound_off ( Environment * _environment,
int _channels )

Emit ASM code for SOUND OFF.

This function emits a code capable of stop play on specific channels

Parameters
_environmentCurrent calling environment
_channelschannels to play off

Definition at line 54 of file sound_off.c.

◆ sound_off_var()

void sound_off_var ( Environment * _environment,
char * _channels )

Emit ASM code for SOUND OFF ....

This function emits a code capable of stop play on specific channels.

Parameters
_environmentCurrent calling environment
_channelschannels to play on

Definition at line 68 of file sound_off.c.

◆ sound_vars()

void sound_vars ( Environment * _environment,
char * _freq,
char * _delay,
char * _channels )

Emit ASM code for SOUND ....

This function emits a code capable of play a frequency for a certain amount of time on specific channels

Parameters
_environmentCurrent calling environment
_freqfrequency to play
_delaydelay of frequency
_channelschannels to play on

Definition at line 79 of file sound.c.

◆ spawn_procedure()

Variable * spawn_procedure ( Environment * _environment,
char * _name,
int _halted )

Emit code for SPAWN ....

Parameters
_environmentCurrent calling environment
_nameName of the procedure

Definition at line 68 of file spawn.c.

◆ spc()

void spc ( Environment * _environment,
char * _spaces )

Definition at line 68 of file spc.c.

◆ spen()

Variable * spen ( Environment * _environment)

Emit ASM code for = SPEN().

This function can be used to read the X (horizontal) position of the electronic pen connected to the hardware. The result is stored in a temporary variable.

Parameters
_environmentCurrent calling environment
Returns
Variable* Variable with the result of the reading

Definition at line 54 of file spen.c.

◆ sprite_at()

void sprite_at ( Environment * _environment,
int _sprite,
int _x,
int _y )

Emit ASM code for SPRITE [int] AT ([int],[int]).

This function emits a code capable of position a sprite to the (x,y) on the screen. This version is suitable when an integer number is used.

Parameters
_environmentCurrent calling environment
_spriteIndex of the sprite to position (0...7)
_xThe abscissa of the sprite
_yThe ordinate of the sprite

Definition at line 53 of file sprite_at.c.

◆ sprite_at_vars()

void sprite_at_vars ( Environment * _environment,
char * _sprite,
char * _x,
char * _y )

Emit ASM code for SPRITE [expression] AT ([expression],[expression]).

This function emits a code capable of position a sprite to the (x,y) on the screen. This version is suitable when an expression is used.

Parameters
_environmentCurrent calling environment
_spriteExpression with the index of the sprite to position (0...7)
_xExpression with the abscissa of the sprite
_yExpression with the ordinate of the sprite

Definition at line 71 of file sprite_at.c.

◆ sprite_color()

void sprite_color ( Environment * _environment,
int _sprite,
int _color )

Emit ASM code for instruction SPRITE [int] COLOR [int].

This function emits a code capable of changing the specific color for a given sprite.

Parameters
_environmentCurrent calling environment
_spriteIndex of the sprite for which to change color
_colorIndex of the color

Definition at line 51 of file sprite_color.c.

◆ sprite_color_vars()

void sprite_color_vars ( Environment * _environment,
char * _sprite,
char * _color )

Emit ASM code for instruction SPRITE [int] COLOR [int].

This function emits a code capable of changing the specific color for a given sprite.

Parameters
_environmentCurrent calling environment
_spriteExpression with the index of the sprite for which to change color
_colorExpression with the index of the color

Definition at line 65 of file sprite_color.c.

◆ sprite_compress_horizontal()

void sprite_compress_horizontal ( Environment * _environment,
int _sprite )

Emit ASM code for SPRITE [int] COMPRESS HORIZONTAL.

This function emits a code capable of compressing horizontally a given sprite. The index of sprite is given as a direct integer.

Parameters
_environmentCurrent calling environment
_spriteIndex of the sprite to compress horizontally (0...7)

Definition at line 50 of file sprite_compress_horizontal.c.

◆ sprite_compress_horizontal_var()

void sprite_compress_horizontal_var ( Environment * _environment,
char * _sprite )

Emit ASM code for SPRITE [int] COMPRESS HORIZONTAL.

This function emits a code capable of compressing horizontally a given sprite. The index of sprite is given as a direct integer.

Parameters
_environmentCurrent calling environment
_spriteIndex of the sprite to compress horizontally (0...7)

Definition at line 63 of file sprite_compress_horizontal.c.

◆ sprite_compress_vertical()

void sprite_compress_vertical ( Environment * _environment,
int _sprite )

Emit ASM code for SPRITE [int] CPMPRESS VERTICAL.

This function emits a code capable of compressing vertically a given sprite. The index of sprite is given as a direct integer.

Parameters
_environmentCurrent calling environment
_spriteIndex of the sprite to compress vertically (0...7)

Emit ASM code for SPRITE [int] CPMPRESS VERTICAL.

This function emits a code capable of compressing vertically a given sprite. The index of sprite is given as a direct integer.

Parameters
_environmentCurrent calling environment
_spriteIndex of the sprite to compress vertically (0...7)

Definition at line 50 of file sprite_compress_vertical.c.

◆ sprite_compress_vertical_var()

void sprite_compress_vertical_var ( Environment * _environment,
char * _sprite )

Emit ASM code for SPRITE [expression] COMPRESS VERTICAL.

This function emits a code capable of compressing vertically a given sprite. The index of sprite is given as an expression.

Parameters
_environmentCurrent calling environment
_spriteExpression with the index of the sprite to compress vertically (0...7)

Definition at line 65 of file sprite_compress_vertical.c.

◆ sprite_converter()

Variable * sprite_converter ( Environment * _environment,
char * _data,
int _width,
int _height,
int _depth,
RGBi * _colorm,
int _flags,
int _slot_x,
int _slot_y )

Definition at line 41 of file sprite_converter.c.

◆ sprite_data_from()

void sprite_data_from ( Environment * _environment,
int _sprite,
int _address )

Emit ASM code for SPRITE [int] DATA FROM [int].

This function emits a code capable of setting the starting address of the sprite _sprite to the value _address. This version is suitable when direct value is used.

Parameters
_environmentCurrent calling environment
_spriteIndex of the sprite to define (0...7)
_addressAddress where the sprite data begins from

Definition at line 52 of file sprite_data_from.c.

◆ sprite_data_from_vars()

void sprite_data_from_vars ( Environment * _environment,
char * _sprite,
char * _image )

Emit ASM code for SPRITE [expression] DATA FROM [expression].

This function emits a code capable of setting the starting address of the sprite _sprite to the value _address. This version is suitable when expressions are used.

Parameters
_environmentCurrent calling environment
_spriteExpression with the index of the sprite to define (0...7)
_addressExpression with the address where the sprite data begins from

Definition at line 67 of file sprite_data_from.c.

◆ sprite_disable()

void sprite_disable ( Environment * _environment,
int _sprite )

Emit ASM code for SPRITE [int] DISABLE.

This function emits a code capable of disable the sprite _sprite. This version is suitable when direct integer are used.

Parameters
_environmentCurrent calling environment
_spriteIndex of the sprite to disable (0...7)

Definition at line 50 of file sprite_disable.c.

◆ sprite_disable_var()

void sprite_disable_var ( Environment * _environment,
char * _sprite )

Emit ASM code for SPRITE [expression] DISABLE.

This function emits a code capable of disable the sprite _sprite. This version is suitable when an expression is used.

Parameters
_environmentCurrent calling environment
_spriteExpression with the index of the sprite to disable (0...7)

Definition at line 63 of file sprite_disable.c.

◆ sprite_enable()

void sprite_enable ( Environment * _environment,
int _sprite )

Emit ASM code for SPRITE [int] ENABLE.

This function emits a code capable of enable the sprite _sprite. This version is suitable when direct integer are used.

Parameters
_environmentCurrent calling environment
_spriteIndex of the sprite to enable (0...7)

Definition at line 50 of file sprite_enable.c.

◆ sprite_enable_var()

void sprite_enable_var ( Environment * _environment,
char * _sprite )

Emit ASM code for SPRITE [expression] ENABLE.

This function emits a code capable of enable the sprite _sprite. This version is suitable when an expression is used.

Parameters
_environmentCurrent calling environment
_spriteExpression with the index of the sprite to enable (0...7)

Definition at line 63 of file sprite_enable.c.

◆ sprite_expand_horizontal()

void sprite_expand_horizontal ( Environment * _environment,
int _sprite )

Emit ASM code for SPRITE [int] EXPAND HORIZONTAL.

This function emits a code capable of expanding horizontally a given sprite. The index of sprite is given as a direct integer.

Parameters
_environmentCurrent calling environment
_spriteIndex of the sprite to expand horizontally (0...7)

Definition at line 50 of file sprite_expand_horizontal.c.

◆ sprite_expand_horizontal_var()

void sprite_expand_horizontal_var ( Environment * _environment,
char * _sprite )

Emit ASM code for SPRITE [expression] EXPAND HORIZONTAL.

This function emits a code capable of expanding horizontally a given sprite. The index of sprite is given as an expression.

Parameters
_environmentCurrent calling environment
_spriteExpression with the index of the sprite to expand horizontally (0...7)

Definition at line 65 of file sprite_expand_horizontal.c.

◆ sprite_expand_vertical()

void sprite_expand_vertical ( Environment * _environment,
int _sprite )

Emit ASM code for SPRITE [int] EXPAND VERTICAL.

This function emits a code capable of expanding vertically a given sprite. The index of sprite is given as a direct integer.

Parameters
_environmentCurrent calling environment
_spriteIndex of the sprite to expand vertically (0...7)

Definition at line 50 of file sprite_expand_vertical.c.

◆ sprite_expand_vertical_var()

void sprite_expand_vertical_var ( Environment * _environment,
char * _sprite )

Emit ASM code for SPRITE [expression] EXPAND VERTICAL.

This function emits a code capable of expanding vertically a given sprite. The index of sprite is given as an expression.

Parameters
_environmentCurrent calling environment
_spriteExpression with the index of the sprite to expand vertically (0...7)

Definition at line 65 of file sprite_expand_vertical.c.

◆ sprite_init()

Variable * sprite_init ( Environment * _environment,
char * _image,
char * _sprite,
int _flags )

Emit code for SPRITE(...).

Parameters
_environmentCurrent calling environment
_imageimage to use as SPRITE

Definition at line 47 of file sprite_init.c.

◆ sprite_monocolor()

void sprite_monocolor ( Environment * _environment,
int _sprite )

Emit ASM code for SPRITE [int] MONOCOLOR.

This function emits a code capable of enabling monocolor for a given sprite. The index of sprite is given as direct integer.

Parameters
_environmentCurrent calling environment
_spriteIndex of the sprite for which enable monocolor (0...7)

Definition at line 50 of file sprite_monocolor.c.

◆ sprite_monocolor_var()

void sprite_monocolor_var ( Environment * _environment,
char * _sprite )

Emit ASM code for SPRITE [expression] MONOCOLOR.

This function emits a code capable of enabling monocolor for a given sprite. The index of sprite is given as expression.

Parameters
_environmentCurrent calling environment
_spriteExpression with index of the sprite for which enable monocolor (0...7)

Definition at line 65 of file sprite_monocolor.c.

◆ sprite_multicolor()

void sprite_multicolor ( Environment * _environment,
int _sprite )

Emit ASM code for SPRITE [int] MULTICOLOR.

This function emits a code capable of enabling multicolor for a given sprite. The index of sprite is given as a direct integer.

Parameters
_environmentCurrent calling environment
_spriteIndex of the sprite for which enable multicolor (0...7)

Definition at line 50 of file sprite_multicolor.c.

◆ sprite_multicolor_var()

void sprite_multicolor_var ( Environment * _environment,
char * _sprite )

Emit ASM code for SPRITE [expression] MULTICOLOR.

This function emits a code capable of enabling multicolor for a given sprite. The index of sprite is given as an expression.

Parameters
_environmentCurrent calling environment
_spriteExpression with index of the sprite for which enable multicolor (0...7)

Definition at line 65 of file sprite_multicolor.c.

◆ sqroot()

Variable * sqroot ( Environment * _environment,
char * _value )

Return the square root of a variable.

Parameters
_environmentCurrent calling environment
_valueValue to calculate the square root
Returns
Variable* The square root of value

Definition at line 98 of file sqr.c.

◆ static_string_create()

StaticString * static_string_create ( Environment * _environment,
char * _value,
int _size )

Definition at line 17258 of file _infrastructure.c.

◆ static_string_create_filled()

StaticString * static_string_create_filled ( Environment * _environment,
int _size,
char _value )

Definition at line 17238 of file _infrastructure.c.

◆ static_string_find_by_value()

StaticString * static_string_find_by_value ( Environment * _environment,
char * _value,
int _Size )

Definition at line 17226 of file _infrastructure.c.

◆ stop_animation()

void stop_animation ( Environment * _environment,
char * _prefix )

Emit code for STOP ....

Parameters
_environmentCurrent calling environment
_handleIdentifier of the thread

Definition at line 64 of file stop_animation.c.

◆ stop_movement()

void stop_movement ( Environment * _environment,
char * _prefix )

Emit code for STOP ....

Parameters
_environmentCurrent calling environment
_handleIdentifier of the thread

Definition at line 64 of file stop_movement.c.

◆ strcopy()

char * strcopy ( char * _dest,
char * _source )

Definition at line 17121 of file _infrastructure.c.

◆ strig()

Variable * strig ( Environment * _environment,
int _port )

Definition at line 41 of file strig.c.

◆ strig_vars()

Variable * strig_vars ( Environment * _environment,
char * _port )

Definition at line 60 of file strig.c.

◆ string_reserve()

StaticString * string_reserve ( Environment * _environment,
char * _value )

Definition at line 14727 of file _infrastructure.c.

◆ strptr()

Variable * strptr ( Environment * _environment,
char * _name )

Emit code for function = STRPTR( ... ).

Parameters
_environmentCurrent calling environment
_identifierIdentifier to explore
Returns
Variable* Address of identifier

Definition at line 66 of file strptr.c.

◆ strreplace()

char * strreplace ( const char * _orig,
const char * _rep,
const char * _with )

Definition at line 17133 of file _infrastructure.c.

◆ strrstr()

const char * strrstr ( const char * haystack,
const char * needle )

Definition at line 15882 of file _infrastructure.c.

◆ strstrcase()

const char * strstrcase ( const char * _x,
const char * _y )

Definition at line 15857 of file _infrastructure.c.

◆ strtoupper()

char * strtoupper ( char * _string)

Definition at line 14299 of file _infrastructure.c.

◆ suspend_vars()

void suspend_vars ( Environment * _environment,
char * _thread )

Emit code for SUSPEND ....

Parameters
_environmentCurrent calling environment
_nameName of the procedure

Definition at line 71 of file suspend.c.

◆ sys()

void sys ( Environment * _environment,
int _address )

Emit code for SYS / EXEC ... command.

Parameters
_environmentCurrent calling environment
_colorColor to use for the pen

Definition at line 150 of file sys.c.

◆ sys_call()

void sys_call ( Environment * _environment,
int _address )

Definition at line 41 of file sys_call.c.

◆ sys_var()

void sys_var ( Environment * _environment,
char * _address )

Definition at line 176 of file sys.c.

◆ system_call()

int system_call ( Environment * _environment,
char * _commandline )

Call an external executable.

Parameters
_environmentEnviroment to call
_commandlineCommand line to execute
Returns
int 0 if success, != 0 if failed

Definition at line 13709 of file _infrastructure.c.

◆ system_move_safe()

int system_move_safe ( Environment * _environment,
char * _source,
char * _destination )

Definition at line 15800 of file _infrastructure.c.

◆ system_remove_safe()

int system_remove_safe ( Environment * _environment,
char * _filename )

Definition at line 13784 of file _infrastructure.c.

◆ target_analysis()

void target_analysis ( Environment * _environment)

Definition at line 68 of file _cleanup.c.

◆ target_cleanup()

void target_cleanup ( Environment * _environment)

Definition at line 343 of file _build.c.

◆ target_deep_analyzer()

void target_deep_analyzer ( Environment * _environment)

◆ target_finalization()

void target_finalization ( Environment * _environment)

Definition at line 45 of file _cleanup.c.

◆ target_finalize()

void target_finalize ( Environment * _environment)

Definition at line 2236 of file _optimizer.c.

◆ target_initialization()

void target_initialization ( Environment * _environment)

Definition at line 43 of file _init.c.

◆ target_linkage()

void target_linkage ( Environment * _environment)

Convert C64's assembly to executable.

Parameters
_environment

Convert C64's assembly to executable.

Parameters
_environment

Definition at line 327 of file _build.c.

◆ target_peephole_optimizer()

void target_peephole_optimizer ( Environment * _environment)

Definition at line 2205 of file _optimizer.c.

◆ target_prepare_finalization()

void target_prepare_finalization ( Environment * _environment)

Definition at line 41 of file _cleanup.c.

◆ text_at()

void text_at ( Environment * _environment,
char * _x,
char * _y,
char * _text )

Definition at line 112 of file text.c.

◆ text_encoded()

void text_encoded ( Environment * _environment,
char * _text,
char * _pen,
char * _paper,
int _raw )

Definition at line 41 of file text_encoded_at.c.

◆ text_get_xcurs()

Variable * text_get_xcurs ( Environment * _environment)

Definition at line 122 of file text.c.

◆ text_get_ycurs()

Variable * text_get_ycurs ( Environment * _environment)

Definition at line 128 of file text.c.

◆ text_hscroll_line()

void text_hscroll_line ( Environment * _environment,
int _direction,
int _overlap )

Definition at line 45 of file text_hscroll_line.c.

◆ text_hscroll_screen()

void text_hscroll_screen ( Environment * _environment,
int _direction,
int _overlap )

Definition at line 41 of file text_hscroll_screen.c.

◆ text_newline()

void text_newline ( Environment * _environment)

Definition at line 51 of file text.c.

◆ text_question_mark()

void text_question_mark ( Environment * _environment)

Definition at line 134 of file text.c.

◆ text_set_tab()

void text_set_tab ( Environment * _environment,
char * _new_tab )

Emit code for SET TAB ....

Parameters
_environmentCurrent calling environment
_new_tabNew tab count value

Definition at line 67 of file set_tab.c.

◆ text_tab()

void text_tab ( Environment * _environment)

Definition at line 86 of file text.c.

◆ text_text()

void text_text ( Environment * _environment,
char * _text,
int _raw )

Definition at line 41 of file text.c.

◆ text_vscroll()

void text_vscroll ( Environment * _environment)

◆ text_vscroll_screen()

void text_vscroll_screen ( Environment * _environment,
int _direction,
int _overlap )

Definition at line 41 of file text_vscroll_screen.c.

◆ textmap_at()

void textmap_at ( Environment * _environment,
int _address )

Emit ASM code for TEXTMAP AT [int]xx.

This function allows you to set the starting address, in memory, for the text and it is the version that is used when the memory is given as a direct number (i.e.: $8400). The input parameter is decoded and declined according to the hardware limits. So it is not said that exactly the given address is set.

On some machine calling this instruction will define the special variable:

  • TEXTADDRESS (VT_ADDRESS) - the starting address of text memory
Parameters
_environmentCurrent calling environment
_addressAddress to use

This function allows you to set the starting address, in memory, for the text and it is the version that is used when the memory is given as a direct number (i.e.: $0400). The input parameter is decoded and declined according to the hardware limits. So it is not said that exactly the given address is set.

On some machine calling this instruction will define the special variable:

  • TEXTADDRESS (VT_ADDRESS) - the starting address of text memory
Parameters
_environmentCurrent calling environment
_addressAddress to use

Emit ASM code for TEXTMAP AT [int]xx.

This function allows you to set the starting address, in memory, for the bitmap and it is the version that is used when the memory is given as a direct number (i.e.: $A000). The input parameter is decoded and declined according to the hardware limits. So it is not said that exactly the given address is set.

On some machine calling this instruction will define the special variable:

  • BITMAPADDRESS (VT_ADDRESS) - the starting address of bitmap memory
Parameters
_environmentCurrent calling environment
_addressAddress to use

Definition at line 61 of file textmap_at.c.

◆ textmap_at_var()

void textmap_at_var ( Environment * _environment,
char * _address )

Emit ASM code for TEXTMAP AT [expression].

This function allows you to set the starting address, in memory, for the text and it is the version that is used when the memory is given as an expression. The input parameter is decoded and declined according to the hardware limits. So it is not said that exactly the given address is set.

On some machine calling this instruction will define the special variable:

  • TEXTADDRESS (VT_ADDRESS) - the starting address of text memory
Parameters
_environmentCurrent calling environment
_addressExpression with address to use

Emit ASM code for TEXTMAP AT [expression].

This function allows you to set the starting address, in memory, for the bitmap and it is the version that is used when the memory is given as a expression that involves variables. The input parameter is decoded and declined according to the hardware limits. So it is not said that exactly the given address is set.

On some machine calling this instruction will define the special variable:

  • BITMAPADDRESS (VT_ADDRESS) - the starting address of bitmap memory
Parameters
_environmentCurrent calling environment
_addressAddress to use

Definition at line 88 of file textmap_at.c.

◆ tile_allocate()

int tile_allocate ( TileDescriptors * _tiles,
char * _data )

Definition at line 13152 of file _infrastructure.c.

◆ tile_at()

Variable * tile_at ( Environment * _environment,
char * _x,
char * _y )

Emit code for TILE AT.

Parameters
_environmentCurrent calling environment
_xtile abscissa
_ytile ordinate
Returns
The tile present in that position

Definition at line 53 of file tile_at.c.

◆ tile_belong()

Variable * tile_belong ( Environment * _environment,
char * _tile,
char * _tiles )

Emit code for TILE ... BELONG TO ....

Parameters
_environmentCurrent calling environment
_tileTile to check
_tilesTiles to check

Definition at line 70 of file tile_belong.c.

◆ tile_class()

Variable * tile_class ( Environment * _environment,
char * _tileset,
int _id )

Emit code for TILE CLASS(...).

Parameters
_environmentCurrent calling environment
_tilesetTileset
_idTile id

Definition at line 73 of file tile_class.c.

◆ tile_get_first()

Variable * tile_get_first ( Environment * _environment,
char * _tile )

Emit code for TILE FIRST(...).

Parameters
_environmentCurrent calling environment
_imageImage to measure.
Returns
The starting tile of the image

Emit code for TILE FIRST(...).

Parameters
_environmentCurrent calling environment
_imageImage to measure.
Returns
The height of the image, in pixels
Parameters
_environmentCurrent calling environment
_imageImage to measure.
Returns
The height of the image, in pixels

Definition at line 65 of file tile_get_first.c.

◆ tile_get_height()

Variable * tile_get_height ( Environment * _environment,
char * _tile )

Emit code for TILE HEIGHT(...).

Parameters
_environmentCurrent calling environment
_imageImage to measure.
Returns
The height of the image, in pixels

Definition at line 48 of file tile_get_height.c.

◆ tile_get_width()

Variable * tile_get_width ( Environment * _environment,
char * _tile )

Emit code for TILE WIDTH(...).

Parameters
_environmentCurrent calling environment
_imageImage to measure.
Returns
The height of the image, in pixels

Definition at line 48 of file tile_get_width.c.

◆ tile_id()

int tile_id ( Environment * _environment,
char * _tileset,
char * _id )

Emit code for TILE ID(...).

Parameters
_environmentCurrent calling environment
_tilesetTileset
_idTile id

Definition at line 72 of file tile_id.c.

◆ tile_load()

Variable * tile_load ( Environment * _environment,
char * _filename,
int _flags,
char * _tileset,
int _index )

Emit code for LOAD TILE(...).

Parameters
_environmentCurrent calling environment
_filenameFilename to read into buffer
_modeMode to use to convert data

Definition at line 168 of file tile_load.c.

◆ tile_probability()

Variable * tile_probability ( Environment * _environment,
char * _tileset,
int _id )

Emit code for TILE CLASS(...).

Parameters
_environmentCurrent calling environment
_tilesetTileset
_idTile id

Definition at line 73 of file tile_probability.c.

◆ tilemap_at()

Variable * tilemap_at ( Environment * _environment,
char * _tilemap,
char * _x,
char * _y,
char * _layer )

Return the height of a TILEMAP.

Parameters
_environmentCurrent calling environment
_tilesettileset

Definition at line 72 of file tilemap_at.c.

◆ tilemap_disable()

void tilemap_disable ( Environment * _environment)

Emit ASM implementation for TEXT DISABLE instruction.

This function can be called to emit the code to disable text mode on the target machine.

Parameters
_environmentCurrent calling environment

Definition at line 64 of file tilemap_disable.c.

◆ tilemap_enable()

void tilemap_enable ( Environment * _environment,
int _width,
int _height,
int _colors,
int _tile_width,
int _tile_height )

Emit ASM implementation for TEXT ENABLE instruction.

This function can be called to emit the code to enable text mode on the target machine.

Parameters
_environmentCurrent calling environment

Definition at line 53 of file tilemap_enable.c.

◆ tilemap_get_height()

Variable * tilemap_get_height ( Environment * _environment,
char * _tilemap )

Return the height of a TILEMAP.

Parameters
_environmentCurrent calling environment
_tilesettileset

Definition at line 66 of file tilemap_get_height.c.

◆ tilemap_get_width()

Variable * tilemap_get_width ( Environment * _environment,
char * _tilemap )

Return the width of a TILEMAP.

Parameters
_environmentCurrent calling environment
_tilesettileset

Definition at line 66 of file tilemap_get_width.c.

◆ tilemap_index_vars()

Variable * tilemap_index_vars ( Environment * _environment,
char * _tilemap,
char * _column,
char * _row,
char * _layer )

Definition at line 88 of file tilemap_index.c.

◆ tilemap_load()

Variable * tilemap_load ( Environment * _environment,
char * _filename,
char * _alias,
int _mode,
int _flags,
int _transparent_color,
int _background_color,
int _bank_expansion )

Emit code for LOAD TILEMAP(...).

Parameters
_environmentCurrent calling environment
_filenameFilename to read into buffer
_modeMode to use to convert data

Definition at line 70 of file tilemap_load.c.

◆ tilemap_storage()

Variable * tilemap_storage ( Environment * _environment,
char * _source_name,
char * _target_name,
int _mode,
int _flags,
int _transparent_color,
int _background_color,
int _bank_expansion )

Emit code for LOAD TILEMAP(...).

Parameters
_environmentCurrent calling environment
_filenameFilename to read into buffer
_modeMode to use to convert data

Definition at line 74 of file tilemap_storage.c.

◆ tiles_at()

void tiles_at ( Environment * _environment,
int _address )

Emit ASM code for TILES AT [int]xx.

This function allows you to set the starting address, in memory, for the tiles (for textual mode) and it is the version that is used when the memory is given as a direct number (i.e.: $8400). The input parameter is decoded and declined according to the hardware limits. So it is not said that exactly the given address is set.

On some machine calling this instruction will define the special variable:

  • tilees_address (VT_ADDRESS) - the starting address of text memory
Parameters
_environmentCurrent calling environment
_addressAddress to use

This function allows you to set the starting address, in memory, for the tiles (for textual mode) and it is the version that is used when the memory is given as a direct number (i.e.: $0400). The input parameter is decoded and declined according to the hardware limits. So it is not said that exactly the given address is set.

On some machine calling this instruction will define the special variable:

  • tilees_address (VT_ADDRESS) - the starting address of text memory
Parameters
_environmentCurrent calling environment
_addressAddress to use

Definition at line 60 of file tiles.c.

◆ tiles_at_var()

void tiles_at_var ( Environment * _environment,
char * _address )

Emit ASM code for TILES AT [expression].

This function allows you to set the starting address, in memory, for the tiles (for textual mode) and it is the version that is used when the memory is given as an expression. The input parameter is decoded and declined according to the hardware limits. So it is not said that exactly the given address is set.

On some machine calling this instruction will define the special variable:

  • tiles_address (VT_ADDRESS) - the starting address of text memory
Parameters
_environmentCurrent calling environment
_addressAddress to use

Definition at line 83 of file tiles.c.

◆ tiles_load()

Variable * tiles_load ( Environment * _environment,
char * _filename,
int _flags,
char * _tileset,
int _index )

Emit code for LOAD TILE(...).

Parameters
_environmentCurrent calling environment
_filenameFilename to read into buffer
_modeMode to use to convert data

Definition at line 176 of file tiles_load.c.

◆ tileset_load()

Variable * tileset_load ( Environment * _environment,
char * _filename,
char * _alias,
int _mode,
int _flags,
int _transparent_color,
int _background_color,
int _bank_expansion )

Emit code for LOAD TILESERT(...).

Parameters
_environmentCurrent calling environment
_filenameFilename to read into buffer
_modeMode to use to convert data

Definition at line 89 of file tileset_load.c.

◆ tileset_of_vars()

Variable * tileset_of_vars ( Environment * _environment,
char * _tilemap )

Definition at line 58 of file tileset_of.c.

◆ tileset_storage()

Variable * tileset_storage ( Environment * _environment,
char * _source_name,
char * _target_name,
int _mode,
int _flags,
int _transparent_color,
int _background_color,
int _bank_expansion )

Emit code for LOAD TILESERT(...).

Parameters
_environmentCurrent calling environment
_filenameFilename to read into buffer
_modeMode to use to convert data

Definition at line 74 of file tileset_storage.c.

◆ tileset_tile_get_height()

Variable * tileset_tile_get_height ( Environment * _environment,
char * _tileset )

Return the height of a TILE on a TILESET.

Parameters
_environmentCurrent calling environment
_tilesettileset

Definition at line 70 of file tileset_tile_get_height.c.

◆ tileset_tile_get_width()

Variable * tileset_tile_get_width ( Environment * _environment,
char * _tileset )

Return the width of a TILE on a TILESET.

Parameters
_environmentCurrent calling environment
_tilesettileset

Definition at line 70 of file tileset_tile_get_width.c.

◆ tmp_buf()

POBuffer tmp_buf ( void * key1,
unsigned int key2 )

Definition at line 218 of file _optimizer.c.

◆ tmp_buf_clr()

void tmp_buf_clr ( void * key1)

Definition at line 243 of file _optimizer.c.

◆ travel_path()

Variable * travel_path ( Environment * _environment,
char * _p,
char * _x,
char * _y,
char * _times,
char * _limited )

Emit ASM code to implement TRAVEL PATH command.

Parameters
_environmentCurrent calling environment
_pPath
_x1Left abscissa of the line
_y1Left ordinate of the line

Definition at line 104 of file travel_path.c.

◆ type_find()

Type * type_find ( Type * _first,
char * _name )

Definition at line 16129 of file _infrastructure.c.

◆ uncompress()

Variable * uncompress ( Environment * _environment,
char * _value )

◆ unescape_string()

char * unescape_string ( Environment * _environment,
char * _value,
int _printing,
int * _final_size )

Definition at line 1875 of file _infrastructure.c.

◆ unfreeze_vars()

void unfreeze_vars ( Environment * _environment,
char * _prefix )

Emit code for FREEZE ....

Parameters
_environmentCurrent calling environment
_nameName of the procedure

Definition at line 70 of file unfreeze.c.

◆ upb()

void upb ( Environment * _environment,
char * _line,
char * _column,
char * _width,
char * _height )

Emit code for UPB ....

Parameters
_environmentCurrent calling environment
_lineLine of window to scroll
_columnColumn of window to scroll
_widthWidth of window to scroll
_heightHeight of window to scroll

Definition at line 80 of file upb.c.

◆ upw()

void upw ( Environment * _environment,
char * _line,
char * _column,
char * _width,
char * _height )

Emit code for UPB ....

Parameters
_environmentCurrent calling environment
_lineLine of window to scroll
_columnColumn of window to scroll
_widthWidth of window to scroll
_heightHeight of window to scroll

Definition at line 82 of file upw.c.

◆ use_tileset()

void use_tileset ( Environment * _environment,
char * _tileset )

Emit code for USE TILESET xxx.

Parameters
_environmentCurrent calling environment
_tilesettileset to use

Definition at line 63 of file use_tileset.c.

◆ variable_add()

Variable * variable_add ( Environment * _environment,
char * _source,
char * _destination )

Add two variable and return the sum of them.

This function allows you to sum the value of two variables. Note that both variables must pre-exist before the operation, under penalty of an exception.

Precondition
_source and _destination variables must exist
Parameters
_environmentCurrent calling environment
_sourceSource variable's name
_destinationDestination variable's name
Returns
Variable* The sum of source and destination variable
Exceptions
EXIT_FAILURE"Destination variable does not cast"
EXIT_FAILURE"Source variable does not exist"

Definition at line 4147 of file _infrastructure.c.

◆ variable_add_const()

Variable * variable_add_const ( Environment * _environment,
char * _source,
int _destination )

Add a variable with a constant, and return the sum of them.

This function allows you to sum the value of a variables and a constant. Note that variable must pre-exist before the operation, under penalty of an exception.

Precondition
_source variables must exist
Parameters
_environmentCurrent calling environment
_sourceSource variable's name
_destinationDestination value to use
Returns
Variable* The sum of source and destination variable
Exceptions
EXIT_FAILURE"Destination variable does not cast"
EXIT_FAILURE"Source variable does not exist"

Definition at line 3868 of file _infrastructure.c.

◆ variable_add_inplace()

void variable_add_inplace ( Environment * _environment,
char * _source,
int _dest )

Definition at line 4288 of file _infrastructure.c.

◆ variable_add_inplace_array()

void variable_add_inplace_array ( Environment * _environment,
char * _source,
char * _destination )

Add a variable to an array element, and return the sum of them on the array element.

Parameters
_environmentCurrent calling environment
_sourceSource variable's name and destination of sum
_destinationValue to sum

Definition at line 4483 of file _infrastructure.c.

◆ variable_add_inplace_mt()

void variable_add_inplace_mt ( Environment * _environment,
char * _source,
char * _destination )

Add two variable and return the sum of them on the first.

This function allows you to sum the value of two variables. Note that both variables must pre-exist before the operation, under penalty of an exception.

Precondition
_source and _destination variables must exist
Parameters
_environmentCurrent calling environment
_sourceSource variable's name and destination of sum
_destinationValue to sum
Exceptions
EXIT_FAILURE"Destination variable does not cast"
EXIT_FAILURE"Source variable does not exist"

Definition at line 4513 of file _infrastructure.c.

◆ variable_add_inplace_type()

void variable_add_inplace_type ( Environment * _environment,
char * _source,
char * _field,
int _dest )

Definition at line 4326 of file _infrastructure.c.

◆ variable_add_inplace_type_vars()

void variable_add_inplace_type_vars ( Environment * _environment,
char * _source,
char * _field,
char * _dest )

Definition at line 4443 of file _infrastructure.c.

◆ variable_add_inplace_vars()

void variable_add_inplace_vars ( Environment * _environment,
char * _source,
char * _destination )

Add two variable and return the sum of them on the first.

This function allows you to sum the value of two variables. Note that both variables must pre-exist before the operation, under penalty of an exception.

Precondition
_source and _destination variables must exist
Parameters
_environmentCurrent calling environment
_sourceSource variable's name and destination of sum
_destinationValue to sum
Exceptions
EXIT_FAILURE"Destination variable does not cast"
EXIT_FAILURE"Source variable does not exist"

Definition at line 4377 of file _infrastructure.c.

◆ variable_and()

Variable * variable_and ( Environment * _environment,
char * _left,
char * _right )

Calculate logical "and" and return it as the result.

This function allows you to emit code to make a logical AND between two expressions, and return the result as boolean.

Parameters
_environmentCurrent calling environment
_leftLeft expression to check
_rightRight expression to check
Returns
Variable* The result of operation

Definition at line 6816 of file _infrastructure.c.

◆ variable_and_const()

Variable * variable_and_const ( Environment * _environment,
char * _destination,
int _mask )

Calculate "and" mask for a variable and it as the result.

This function allows you to subdivide the value of a variable for two for various times. Note that variable must pre-exist before the operation, under penalty of an exception.

Precondition
_destination variables must exist
Parameters
_environmentCurrent calling environment
_destinationDestination variable's name
_maskAnd mask to apply
Returns
Variable* The result of operation
Exceptions
EXIT_FAILURE"Destination variable does not exist"

Definition at line 6781 of file _infrastructure.c.

◆ variable_array_count_vars()

Variable * variable_array_count_vars ( Environment * _environment,
char * _name,
char * _target )

Definition at line 12042 of file _infrastructure.c.

◆ variable_array_fill()

void variable_array_fill ( Environment * _environment,
char * _name,
int _value )

Definition at line 12423 of file _infrastructure.c.

◆ variable_array_fill_incremental()

void variable_array_fill_incremental ( Environment * _environment,
char * _name,
int _min,
int _count )

Definition at line 12563 of file _infrastructure.c.

◆ variable_array_fill_random()

void variable_array_fill_random ( Environment * _environment,
char * _name,
int _base,
int _min_value,
int _max_value,
int _count,
int _boolean )

Definition at line 12449 of file _infrastructure.c.

◆ variable_array_max_vars()

Variable * variable_array_max_vars ( Environment * _environment,
char * _name )

Definition at line 12230 of file _infrastructure.c.

◆ variable_array_min_vars()

Variable * variable_array_min_vars ( Environment * _environment,
char * _name )

Definition at line 12321 of file _infrastructure.c.

◆ variable_array_shuffle()

void variable_array_shuffle ( Environment * _environment,
char * _name,
int _rounds )

Definition at line 12637 of file _infrastructure.c.

◆ variable_array_sum_vars()

Variable * variable_array_sum_vars ( Environment * _environment,
char * _name )

Definition at line 12142 of file _infrastructure.c.

◆ variable_array_type()

Variable * variable_array_type ( Environment * _environment,
char * _name,
VariableType _type )

Definition at line 1138 of file _infrastructure.c.

◆ variable_bin()

Variable * variable_bin ( Environment * _environment,
char * _value,
char * _digits,
char * _zero,
char * _one )

Emit code for <string>BIN(...).

Emit the code to convert the given value in a binary string.

Parameters
_environmentCurrent calling environment
_valueValue to convert into string
_digitsNumber of digits to represent
Returns
Variable* String with the binary representation

Definition at line 11219 of file _infrastructure.c.

◆ variable_bit()

Variable * variable_bit ( Environment * _environment,
char * _value,
char * _position )

Emit code for HAS BIT / BIT(...).

Parameters
_environmentCurrent calling environment
_valueValue to check at bit level
_positionPosition to check at bit level
Returns
Variable* Bit value for that position

Definition at line 11461 of file _infrastructure.c.

◆ variable_by_constant()

Variable * variable_by_constant ( Environment * _environment,
VariableType _type,
int _value )

Definition at line 1848 of file _infrastructure.c.

◆ variable_cast()

Variable * variable_cast ( Environment * _environment,
char * _source,
VariableType _type )

Cast a variable from a type to another.

This function can be called to convert a variable from one type to another. The function takes care of both creating a temporary variable and copying the value into it, conveying it differently depending on the type. The variable must exist in order to work, otherwise an exception will be thrown.

Precondition
_source variable must exist
Parameters
_environmentCurrent calling environment
_sourceSource variable's name
_typeRequired type
Returns
Variable* A new temporary variable with the content converted to the required type
Exceptions
EXIT_FAILURE"Cannot find source var"

Definition at line 1636 of file _infrastructure.c.

◆ variable_cleanup()

void variable_cleanup ( Environment * _environment)

Emit source and configuration lines for variables.

This function can be called to generate all the definitions (on the source file, on the configuration file and on any support file) necessary to implement the variables.

Parameters
_environmentCurrent calling environment

Definition at line 559 of file _var.c.

◆ variable_compare()

Variable * variable_compare ( Environment * _environment,
char * _source,
char * _destination )

Compare two variable and return the result of comparation.

This function allows you to compare the value of two variables. Note that both variables must pre-exist before the operation, under penalty of an exception.

Precondition
_source and _destination variables must exist
Parameters
_environmentCurrent calling environment
_sourceSource variable's name
_destinationDestination variable's name
Returns
Variable* The product of source and destination variable
Exceptions
EXIT_FAILURE"Destination variable does not cast"
EXIT_FAILURE"Source variable does not exist"

Definition at line 5979 of file _infrastructure.c.

◆ variable_compare_and_branch_const()

void variable_compare_and_branch_const ( Environment * _environment,
char * _source,
int _destination,
char * _name,
int _positive )

Definition at line 5920 of file _infrastructure.c.

◆ variable_compare_const()

Variable * variable_compare_const ( Environment * _environment,
char * _source,
int _destination )

Compare two variable and return the result of comparation.

This function allows you to compare the value of two variables. Note that both variables must pre-exist before the operation, under penalty of an exception.

Precondition
_source and _destination variables must exist
Parameters
_environmentCurrent calling environment
_sourceSource variable's name
_destinationDestination variable's name
Returns
Variable* The product of source and destination variable
Exceptions
EXIT_FAILURE"Destination variable does not cast"
EXIT_FAILURE"Source variable does not exist"

Definition at line 6409 of file _infrastructure.c.

◆ variable_compare_not()

Variable * variable_compare_not ( Environment * _environment,
char * _source,
char * _destination )

Compare two variable and return the result of comparation.

This function allows you to compare the value of two variables. Note that both variables must pre-exist before the operation, under penalty of an exception.

Precondition
_source and _destination variables must exist
Parameters
_environmentCurrent calling environment
_sourceSource variable's name
_destinationDestination variable's name
Returns
Variable* The product of source and destination variable
Exceptions
EXIT_FAILURE"Destination variable does not cast"
EXIT_FAILURE"Source variable does not exist"

Definition at line 6489 of file _infrastructure.c.

◆ variable_compare_not_const()

Variable * variable_compare_not_const ( Environment * _environment,
char * _source,
int _destination )

Compare two variable and return the result of comparation.

This function allows you to compare the value of two variables. Note that both variables must pre-exist before the operation, under penalty of an exception.

Precondition
_source and _destination variables must exist
Parameters
_environmentCurrent calling environment
_sourceSource variable's name
_destinationDestination variable's name
Returns
Variable* The product of source and destination variable
Exceptions
EXIT_FAILURE"Destination variable does not cast"
EXIT_FAILURE"Source variable does not exist"

Definition at line 6449 of file _infrastructure.c.

◆ variable_complement_const()

Variable * variable_complement_const ( Environment * _environment,
char * _source,
int _value )

Calculate the complement of a variable.

This function allows you to calculate a complement of the value of one variable. Note that the variable must pre-exist before the operation, under penalty of an exception.

Precondition
_destination variables must exist
Parameters
_environmentCurrent calling environment
_destinationDestination variable's name
_valueValue to use for complement
Returns
Variable* The complement of _destination variable
Exceptions
EXIT_FAILURE"Destination variable does not exist"

Definition at line 5060 of file _infrastructure.c.

◆ variable_decrement()

void variable_decrement ( Environment * _environment,
char * _source )

Decrement a variable by one.

Parameters
_environmentCurrent calling environment
_sourceSource variable's name
Returns
Variable* The source variable

Definition at line 5814 of file _infrastructure.c.

◆ variable_decrement_array()

void variable_decrement_array ( Environment * _environment,
char * _source )

Definition at line 17117 of file _infrastructure.c.

◆ variable_decrement_array_type()

void variable_decrement_array_type ( Environment * _environment,
char * _source,
char * _field )

Definition at line 17109 of file _infrastructure.c.

◆ variable_decrement_mt()

void variable_decrement_mt ( Environment * _environment,
char * _source )

Decrement a variable by one.

Parameters
_environmentCurrent calling environment
_sourceSource variable's name
Returns
Variable* The source variable

Definition at line 5890 of file _infrastructure.c.

◆ variable_decrement_type()

void variable_decrement_type ( Environment * _environment,
char * _source,
char * _field )

Definition at line 5846 of file _infrastructure.c.

◆ variable_define()

Variable * variable_define ( Environment * _environment,
char * _name,
VariableType _type,
int _value )

Define a variable for the program.

This function is necessary to define a variable within the program. This call reserves a space compatible with the given variable type, and assigns it to the given name. The initial value of the variable is also passed.

Allowed types:

It is possible to call the function several times with the same variable name: a single memory space will always be reserved. If the type differs, an exception will be thrown. Note that the variable will be defined in the last bank defined by the BANK command as VARIABLES. In other words, it is possible to define different variables in different banks, thus optimizing the space occupied by the program.

Parameters
_environmentCurrent calling environment
_nameName of the variable to define
_typeType of the variable to define
_valueInital valure
Returns
Variable* The variable definition
Exceptions
EXIT_FAILURE"Variable redefined with a different type"

Definition at line 718 of file _infrastructure.c.

◆ variable_define_no_init()

Variable * variable_define_no_init ( Environment * _environment,
char * _name,
VariableType _type )

Definition at line 912 of file _infrastructure.c.

◆ variable_delete()

int variable_delete ( Environment * _environment,
char * _name )

Definition at line 1006 of file _infrastructure.c.

◆ variable_direct_assign()

Variable * variable_direct_assign ( Environment * _environment,
char * _var,
char * _expr )

Definition at line 14639 of file _infrastructure.c.

◆ variable_div()

Variable * variable_div ( Environment * _environment,
char * _source,
char * _destination,
char * _remainder )

Make a division between two variable and return the product of them.

Parameters
_environmentCurrent calling environment
_sourceSource variable's name
_destinationDestination variable's name
Returns
Variable* The quotient of source and destination variable

Definition at line 5238 of file _infrastructure.c.

◆ variable_div2_const()

Variable * variable_div2_const ( Environment * _environment,
char * _destination,
int _bits,
char * _remainder )

Subdivide by two a variable for various times and return the result.

This function allows you to subdivide the value of a variable for two for various times. Note that variable must pre-exist before the operation, under penalty of an exception.

Precondition
_destination variables must exist
Parameters
_environmentCurrent calling environment
_destinationDestination variable's name
_bitsTimes to subdivide
Returns
Variable* The result of operation
Exceptions
EXIT_FAILURE"Destination variable does not exist"

Definition at line 6608 of file _infrastructure.c.

◆ variable_div_const()

Variable * variable_div_const ( Environment * _environment,
char * _source,
int _dest,
char * _remainder )

Definition at line 5385 of file _infrastructure.c.

◆ variable_exists()

int variable_exists ( Environment * _environment,
char * _name )

Definition at line 994 of file _infrastructure.c.

◆ variable_exists_by_realname()

int variable_exists_by_realname ( Environment * _environment,
char * _name )

Definition at line 1000 of file _infrastructure.c.

◆ variable_export()

Variable * variable_export ( Environment * _environment,
char * _name,
VariableType _type,
int _size_or_value )

Definition at line 849 of file _infrastructure.c.

◆ variable_flip()

Variable * variable_flip ( Environment * _environment,
char * _variable )

Definition at line 9746 of file _infrastructure.c.

◆ variable_global()

void variable_global ( Environment * _environment,
char * _pattern )

Definition at line 467 of file _infrastructure.c.

◆ variable_greater_than()

Variable * variable_greater_than ( Environment * _environment,
char * _source,
char * _destination,
int _equal )

Compare two variable and return the result of comparation.

This function allows you to compare the value of two variables. Note that both variables must pre-exist before the operation, under penalty of an exception.

Precondition
_source and _destination variables must exist
Parameters
_environmentCurrent calling environment
_sourceSource variable's name
_destinationDestination variable's name
_equalTrue if equal
Returns
Variable* The product of source and destination variable
Exceptions
EXIT_FAILURE"Destination variable does not cast"
EXIT_FAILURE"Source variable does not exist"

Definition at line 7580 of file _infrastructure.c.

◆ variable_greater_than_const()

Variable * variable_greater_than_const ( Environment * _environment,
char * _source,
int _dest,
int _equal )

Definition at line 7917 of file _infrastructure.c.

◆ variable_hex()

Variable * variable_hex ( Environment * _environment,
char * _value,
int _separator )

Emit code for = HEX( ... ).

Parameters
_environmentCurrent calling environment
_valueNumber to convert to hexadecimal
Returns
Variable* Result of conversion

Definition at line 9303 of file _infrastructure.c.

◆ variable_hex2bin()

Variable * variable_hex2bin ( Environment * _environment,
char * _value,
char * _variable )

Emit code for = HEX2BIN( ... ).

Parameters
_environmentCurrent calling environment
_valueNumber to convert to hexadecimal
Returns
Variable* Result of conversion

Definition at line 9393 of file _infrastructure.c.

◆ variable_import()

Variable * variable_import ( Environment * _environment,
char * _name,
VariableType _type,
int _size_or_value )

Definition at line 778 of file _infrastructure.c.

◆ variable_increment()

void variable_increment ( Environment * _environment,
char * _source )

Increment a variable by one.

Parameters
_environmentCurrent calling environment
_sourceSource variable's name
Returns
Variable* The source variable

Definition at line 5494 of file _infrastructure.c.

◆ variable_increment_array()

void variable_increment_array ( Environment * _environment,
char * _source )

Definition at line 17113 of file _infrastructure.c.

◆ variable_increment_array_type()

void variable_increment_array_type ( Environment * _environment,
char * _source,
char * _field )

Definition at line 17105 of file _infrastructure.c.

◆ variable_increment_mt()

void variable_increment_mt ( Environment * _environment,
char * _source )

Increment a variable by one.

Parameters
_environmentCurrent calling environment
_sourceSource variable's name
Returns
Variable* The source variable

Definition at line 5740 of file _infrastructure.c.

◆ variable_increment_type()

void variable_increment_type ( Environment * _environment,
char * _source,
char * _field )

Definition at line 5524 of file _infrastructure.c.

◆ variable_int()

Variable * variable_int ( Environment * _environment,
char * _expression )

Definition at line 15145 of file _infrastructure.c.

◆ variable_less_than()

Variable * variable_less_than ( Environment * _environment,
char * _source,
char * _destination,
int _equal )

Compare two variable and return the result of comparation.

This function allows you to compare the value of two variables. Note that both variables must pre-exist before the operation, under penalty of an exception.

Precondition
_source and _destination variables must exist
Parameters
_environmentCurrent calling environment
_sourceSource variable's name
_destinationDestination variable's name
_equalTrue if equal
Returns
Variable* The product of source and destination variable
Exceptions
EXIT_FAILURE"Destination variable does not cast"
EXIT_FAILURE"Source variable does not exist"

Definition at line 7225 of file _infrastructure.c.

◆ variable_less_than_const()

Variable * variable_less_than_const ( Environment * _environment,
char * _source,
int _dest,
int _equal )

Definition at line 7533 of file _infrastructure.c.

◆ variable_mod()

Variable * variable_mod ( Environment * _environment,
char * _source,
char * _destination )

Definition at line 11646 of file _infrastructure.c.

◆ variable_move()

Variable * variable_move ( Environment * _environment,
char * _source,
char * _destination )

Store the value of a variable inside another variable by converting it.

This function allows you to store the value of one variable in another, making it (implicitly) cast (type conversion). Note that both variables must pre-exist before the operation, under penalty of an exception.

Precondition
_source and _dest variables must exist
Parameters
_environmentCurrent calling environment
_sourceDestination variable's name
_destinationDestination variable's name
Returns
Variable* The destination variable
Exceptions
EXIT_FAILURE"Destination variable does not exist"
EXIT_FAILURE"Source variable does not cast"

Definition at line 3089 of file _infrastructure.c.

◆ variable_move_array()

void variable_move_array ( Environment * _environment,
char * _array,
char * _value )

Definition at line 10527 of file _infrastructure.c.

◆ variable_move_array1_type()

void variable_move_array1_type ( Environment * _environment,
char * _array,
char * _index,
char * _field,
char * _value )

Definition at line 16687 of file _infrastructure.c.

◆ variable_move_array1_type_const()

void variable_move_array1_type_const ( Environment * _environment,
char * _array,
char * _index,
char * _field,
int _value )

Definition at line 16914 of file _infrastructure.c.

◆ variable_move_array1_type_fields()

void variable_move_array1_type_fields ( Environment * _environment,
char * _array,
char * _index,
char * _field1,
char * _field2 )

Definition at line 16796 of file _infrastructure.c.

◆ variable_move_array_string()

void variable_move_array_string ( Environment * _environment,
char * _array,
char * _string )

Definition at line 10551 of file _infrastructure.c.

◆ variable_move_array_type()

void variable_move_array_type ( Environment * _environment,
char * _array,
char * _field,
char * _value )

Definition at line 16288 of file _infrastructure.c.

◆ variable_move_from_array()

Variable * variable_move_from_array ( Environment * _environment,
char * _array )

Definition at line 11077 of file _infrastructure.c.

◆ variable_move_from_array1_type()

Variable * variable_move_from_array1_type ( Environment * _environment,
char * _array,
char * _index,
char * _field )

Definition at line 16655 of file _infrastructure.c.

◆ variable_move_from_array1_type_inplace()

void variable_move_from_array1_type_inplace ( Environment * _environment,
char * _array,
char * _index,
char * _field,
char * _value )

Definition at line 16546 of file _infrastructure.c.

◆ variable_move_from_array_inplace()

void variable_move_from_array_inplace ( Environment * _environment,
char * _array,
char * _value )

Definition at line 11056 of file _infrastructure.c.

◆ variable_move_from_array_type()

Variable * variable_move_from_array_type ( Environment * _environment,
char * _array,
char * _field )

Definition at line 16406 of file _infrastructure.c.

◆ variable_move_from_array_type_inplace()

void variable_move_from_array_type_inplace ( Environment * _environment,
char * _array,
char * _field,
char * _value )

Definition at line 16438 of file _infrastructure.c.

◆ variable_move_from_mt()

Variable * variable_move_from_mt ( Environment * _environment,
char * _source,
char * _destination )

Increment a variable by one.

Parameters
_environmentCurrent calling environment
_sourceSource variable's name
Returns
Variable* The source variable

Definition at line 5696 of file _infrastructure.c.

◆ variable_move_from_type()

Variable * variable_move_from_type ( Environment * _environment,
char * _type,
char * _field )

Definition at line 16177 of file _infrastructure.c.

◆ variable_move_from_type_inplace()

void variable_move_from_type_inplace ( Environment * _environment,
char * _type,
char * _field,
char * _value )

Definition at line 16196 of file _infrastructure.c.

◆ variable_move_naked()

Variable * variable_move_naked ( Environment * _environment,
char * _source,
char * _destination )

Store the value of a variable inside another variable without conversion.

This function allows you to store the value of one variable in another, without cast (type conversion). Note that both variables must pre-exist before the operation, under penalty of an exception.

Precondition
_source and _dest variables must exist
Parameters
_environmentCurrent calling environment
_sourceDestination variable's name
_destinationDestination variable's name
Returns
Variable* The destination variable
Exceptions
EXIT_FAILURE"Destination variable does not exist"
EXIT_FAILURE"Source variable does not exist"

Definition at line 3922 of file _infrastructure.c.

◆ variable_move_to_mt()

Variable * variable_move_to_mt ( Environment * _environment,
char * _source,
char * _destination )

Definition at line 5716 of file _infrastructure.c.

◆ variable_move_type()

void variable_move_type ( Environment * _environment,
char * _type,
char * _field,
char * _value )

Definition at line 16243 of file _infrastructure.c.

◆ variable_mul()

Variable * variable_mul ( Environment * _environment,
char * _source,
char * _destination )

Make a multiplication between two variable and return the product of them.

This function allows you to multiplicate the value of two variables. Note that both variables must pre-exist before the operation, under penalty of an exception.

Precondition
_source and _destination variables must exist
Parameters
_environmentCurrent calling environment
_sourceSource variable's name
_destinationDestination variable's name
Returns
Variable* The product of source and destination variable
Exceptions
EXIT_FAILURE"Destination variable does not cast"
EXIT_FAILURE"Source variable does not exist"

Definition at line 5097 of file _infrastructure.c.

◆ variable_mul2_const()

Variable * variable_mul2_const ( Environment * _environment,
char * _destination,
int _steps )

Double a variable for various times and return the result.

This function allows you to double the value of a variable for various times. Note that variable must pre-exist before the operation, under penalty of an exception.

Precondition
_destination variables must exist
Parameters
_environmentCurrent calling environment
_destinationDestination variable's name
Returns
Variable* The result of operation
Exceptions
EXIT_FAILURE"Destination variable does not exist"

Definition at line 6508 of file _infrastructure.c.

◆ variable_not()

Variable * variable_not ( Environment * _environment,
char * _value )

Calculate logical "not" and return it as the result.

This function allows you to emit code to make a logical OR between two expressions, and return the result as boolean.

Parameters
_environmentCurrent calling environment
_valueLeft expression to check
Returns
Variable* The result of operation

Definition at line 7183 of file _infrastructure.c.

◆ variable_on_memory_init()

void variable_on_memory_init ( Environment * _environment,
int _imported_too )

Definition at line 41 of file _var.c.

◆ variable_or()

Variable * variable_or ( Environment * _environment,
char * _left,
char * _right )

Calculate logical "or" and return it as the result.

This function allows you to emit code to make a logical OR between two expressions, and return the result as boolean.

Parameters
_environmentCurrent calling environment
_leftLeft expression to check
_rightRight expression to check
Returns
Variable* The result of operation

Definition at line 7070 of file _infrastructure.c.

◆ variable_reset()

void variable_reset ( Environment * _environment)

Reset the usage flags for the temporary variable pool.

This function allows you to reset the use flag of each temporary variable in the pool. The purpose of this function is to allow the reuse of variables.

Parameters
_environmentCurrent calling environment

Definition at line 1128 of file _infrastructure.c.

◆ variable_resident()

Variable * variable_resident ( Environment * _environment,
VariableType _type,
char * _meaning )

Definition at line 1518 of file _infrastructure.c.

◆ variable_resize_buffer()

Variable * variable_resize_buffer ( Environment * _environment,
char * _destination,
int _size )

Resize the (static) size of a buffer.

Parameters
_environmentCurrent calling environment
_destinationDestination variable's name
_sizeSize of the buffer, in bytes
Returns
Variable* The destination variable

Definition at line 2162 of file _infrastructure.c.

◆ variable_retrieve()

Variable * variable_retrieve ( Environment * _environment,
char * _name )

Definition at line 988 of file _infrastructure.c.

◆ variable_retrieve_by_realname()

Variable * variable_retrieve_by_realname ( Environment * _environment,
char * _name )

Definition at line 967 of file _infrastructure.c.

◆ variable_retrieve_or_define()

Variable * variable_retrieve_or_define ( Environment * _environment,
char * _name,
VariableType _type,
int _value )

Definition at line 1040 of file _infrastructure.c.

◆ variable_set_type()

void variable_set_type ( Environment * _environment,
char * _source,
char * _type )

Definition at line 16159 of file _infrastructure.c.

◆ variable_sl_const()

Variable * variable_sl_const ( Environment * _environment,
char * _source,
int _bits )

Definition at line 6553 of file _infrastructure.c.

◆ variable_sr_const()

Variable * variable_sr_const ( Environment * _environment,
char * _source,
int _bits )

Definition at line 6647 of file _infrastructure.c.

◆ variable_store()

Variable * variable_store ( Environment * _environment,
char * _destination,
unsigned int _value )

Store a direct value to a variable.

This function outputs code to initialize a variable to a specific direct value. The variable must exist in order to work, otherwise an exception will be thrown.

Precondition
_destination variable must exist
Parameters
_environmentCurrent calling environment
_destinationDestination variable's name
_valueValue to assign
Returns
Variable* The destination variable
Exceptions
EXIT_FAILURE"Destination variable does not exists"

Definition at line 1720 of file _infrastructure.c.

◆ variable_store_array()

Variable * variable_store_array ( Environment * _environment,
char * _destination,
unsigned char * _buffer,
int _size,
int _at )

Definition at line 2224 of file _infrastructure.c.

◆ variable_store_array_const()

void variable_store_array_const ( Environment * _environment,
char * _array,
int _value )

Definition at line 10245 of file _infrastructure.c.

◆ variable_store_buffer()

Variable * variable_store_buffer ( Environment * _environment,
char * _destination,
unsigned char * _buffer,
int _size,
int _at )

Definition at line 2175 of file _infrastructure.c.

◆ variable_store_float()

Variable * variable_store_float ( Environment * _environment,
char * _destination,
double _value )

Store a string to a variable.

Parameters
_environmentCurrent calling environment
_destinationDestination variable's name
_valueValue to assign
Returns
Variable* The destination variable

Definition at line 2038 of file _infrastructure.c.

◆ variable_store_mt()

void variable_store_mt ( Environment * _environment,
char * _source,
unsigned int _value )

Store a variable's value.

Parameters
_environmentCurrent calling environment
_sourceSource variable's name
Returns
Variable* The source variable

Definition at line 5675 of file _infrastructure.c.

◆ variable_store_string()

Variable * variable_store_string ( Environment * _environment,
char * _destination,
char * _value )

Store a string to a variable.

Parameters
_environmentCurrent calling environment
_destinationDestination variable's name
_valueValue to assign
Returns
Variable* The destination variable

Definition at line 1995 of file _infrastructure.c.

◆ variable_store_type()

Variable * variable_store_type ( Environment * _environment,
char * _source,
char * _signed,
unsigned int _value )

Definition at line 1808 of file _infrastructure.c.

◆ variable_string_asc()

Variable * variable_string_asc ( Environment * _environment,
char * _char )

Emit code for = ASC( ... ).

Parameters
_environmentCurrent calling environment
_charString to convert to ascii
Returns
Variable* Result of conversion

Definition at line 9927 of file _infrastructure.c.

◆ variable_string_chr()

Variable * variable_string_chr ( Environment * _environment,
char * _ascii )

Emit code for = CHR( ... ).

Parameters
_environmentCurrent calling environment
_asciiASCII value to convert to string
Returns
Variable* Result of conversion

Definition at line 9822 of file _infrastructure.c.

◆ variable_string_dup()

Variable * variable_string_dup ( Environment * _environment,
char * _string,
char * _repetitions )

Definition at line 9578 of file _infrastructure.c.

◆ variable_string_flip()

Variable * variable_string_flip ( Environment * _environment,
char * _string )

Emit code for = FLIP( ... ).

Parameters
_environmentCurrent calling environment
_stringString to flip
Returns
Variable* Result of flip

Definition at line 9710 of file _infrastructure.c.

◆ variable_string_insert()

Variable * variable_string_insert ( Environment * _environment,
char * _string,
char * _altstring,
char * _pos )

Definition at line 15281 of file _infrastructure.c.

◆ variable_string_inst()

Variable * variable_string_inst ( Environment * _environment,
char * _string,
char * _altstring,
char * _pos )

Definition at line 15357 of file _infrastructure.c.

◆ variable_string_instr()

Variable * variable_string_instr ( Environment * _environment,
char * _search,
char * _searched,
char * _start )

Emit code for = INSTR( ..., ... [, ...] ).

Parameters
_environmentCurrent calling environment
_searchString to be searched
_searchedString to search
_startStarting position to start to search
Returns
Variable* Result of text search

Definition at line 8795 of file _infrastructure.c.

◆ variable_string_left()

Variable * variable_string_left ( Environment * _environment,
char * _string,
char * _position )

Emit code for = LEFT( ..., ... ).

Parameters
_environmentCurrent calling environment
_stringString to extract text from
_positionPosition to start from
Returns
Variable* Result of text extraction

Definition at line 7994 of file _infrastructure.c.

◆ variable_string_left_assign()

void variable_string_left_assign ( Environment * _environment,
char * _string,
char * _position,
char * _expression )

Emit code for LEFT( ..., ... ) = ....

Parameters
_environmentCurrent calling environment
_stringString to extract text from
_positionPosition to start from
Returns
Variable* Result of text extraction

Definition at line 8085 of file _infrastructure.c.

◆ variable_string_len()

Variable * variable_string_len ( Environment * _environment,
char * _string )

Emit code for = LEN( ... ).

Parameters
_environmentCurrent calling environment
_stringString to examinate
Returns
Variable* Result of length measurement

Definition at line 10007 of file _infrastructure.c.

◆ variable_string_lower()

Variable * variable_string_lower ( Environment * _environment,
char * _string )

Emit code for = UPPER( ... ).

Parameters
_environmentCurrent calling environment
_stringString to convert in lower case
Returns
Variable* Result of case conversion

Definition at line 8944 of file _infrastructure.c.

◆ variable_string_mid()

Variable * variable_string_mid ( Environment * _environment,
char * _string,
char * _position,
char * _len )

Emit code for = MID( ..., ... [, ...] ).

Parameters
_environmentCurrent calling environment
_stringString to extract text from
_positionPosition to start from
_lenLength to extract
Returns
Variable* Result of text extraction

Definition at line 8397 of file _infrastructure.c.

◆ variable_string_mid_assign()

void variable_string_mid_assign ( Environment * _environment,
char * _string,
char * _position,
char * _len,
char * _expression )

Emit code for MID( ..., ... [, ...] ) = ....

Parameters
_environmentCurrent calling environment
_stringString to extract text from
_positionPosition to start from
_lenLength to extract
Returns
Variable* Result of text extraction

Definition at line 8657 of file _infrastructure.c.

◆ variable_string_pick()

Variable * variable_string_pick ( Environment * _environment,
char * _string,
int _position )

Definition at line 15401 of file _infrastructure.c.

◆ variable_string_right()

Variable * variable_string_right ( Environment * _environment,
char * _string,
char * _position )

Emit code for = LEFT( ..., ... ).

Parameters
_environmentCurrent calling environment
_stringString to extract text from
_positionPosition to start from
Returns
Variable* Result of text extraction

Definition at line 8201 of file _infrastructure.c.

◆ variable_string_right_assign()

void variable_string_right_assign ( Environment * _environment,
char * _string,
char * _position,
char * _expression )

Emit code for RIGHT( ..., ... ) = ....

Parameters
_environmentCurrent calling environment
_stringString to extract text from
_positionPosition to start from
Returns
Variable* Result of text extraction

Definition at line 8307 of file _infrastructure.c.

◆ variable_string_space()

Variable * variable_string_space ( Environment * _environment,
char * _repetitions )

Emit code for = SPACE( ... ).

Parameters
_environmentCurrent calling environment
_repetitionsNumber of spaces to produce in output string
Returns
Variable* Result of production

Definition at line 9669 of file _infrastructure.c.

◆ variable_string_str()

Variable * variable_string_str ( Environment * _environment,
char * _value )

Emit code for = STR( ... ).

Parameters
_environmentCurrent calling environment
_valueNumber to convert to string
Returns
Variable* Result of conversion

Definition at line 9104 of file _infrastructure.c.

◆ variable_string_string()

Variable * variable_string_string ( Environment * _environment,
char * _string,
char * _repetitions )

Emit code for = STRING( ..., ... ).

Parameters
_environmentCurrent calling environment
_stringString to use as base (the first letter)
_repetitionsNumber of repetition of output string
Returns
Variable* Result of production

Definition at line 9495 of file _infrastructure.c.

◆ variable_string_substring()

Variable * variable_string_substring ( Environment * _environment,
char * _string,
char * _start,
char * _end )

Emit code for = SUBSTRING( ..., ... [, ...] ).

Parameters
_environmentCurrent calling environment
_stringString to extract text from
_startPosition to start from
_endLength to end to
Returns
Variable* Result of text extraction

Definition at line 8566 of file _infrastructure.c.

◆ variable_string_upper()

Variable * variable_string_upper ( Environment * _environment,
char * _string )

Emit code for = UPPER( ... ).

Parameters
_environmentCurrent calling environment
_stringString to convert in uppercase
Returns
Variable* Result of case conversion

Definition at line 9039 of file _infrastructure.c.

◆ variable_string_val()

Variable * variable_string_val ( Environment * _environment,
char * _value )

Emit code for = VAL( ... ).

Parameters
_environmentCurrent calling environment
_valueString to convert to number
Returns
Variable* Result of conversion

Definition at line 9201 of file _infrastructure.c.

◆ variable_sub()

Variable * variable_sub ( Environment * _environment,
char * _source,
char * _dest )

Make a differenze between two variable and return the difference of them.

This function allows you to difference the value of two variables. Note that both variables must pre-exist before the operation, under penalty of an exception.

Precondition
_source and _destination variables must exist
Parameters
_environmentCurrent calling environment
_sourceSource variable's name
_destinationDestination variable's name
Returns
Variable* The sum of source and destination variable
Exceptions
EXIT_FAILURE"Destination variable does not cast"
EXIT_FAILURE"Source variable does not exist"

Definition at line 4660 of file _infrastructure.c.

◆ variable_sub_const()

Variable * variable_sub_const ( Environment * _environment,
char * _source,
int _destination )

Make a differenze between a variable a constant, and return the difference of them.

This function allows you to difference the value of a variable and a constant. Note that both variable must pre-exist before the operation, under penalty of an exception.

Precondition
_source variable must exist
Parameters
_environmentCurrent calling environment
_sourceSource variable's name
_destinationValue to subtract
Returns
Variable* The difference of source and destination variable
Exceptions
EXIT_FAILURE"Destination variable does not cast"
EXIT_FAILURE"Source variable does not exist"

Definition at line 4786 of file _infrastructure.c.

◆ variable_sub_inplace()

void variable_sub_inplace ( Environment * _environment,
char * _source,
char * _dest )

Make a differenze between two variable and assign the difference of them to the first.

This function allows you to difference the value of two variables. Note that both variables must pre-exist before the operation, under penalty of an exception.

Precondition
_source and _destination variables must exist
Parameters
_environmentCurrent calling environment
_sourceSource variable's name and destination of the subtraction
_destinationDestination variable's name
Exceptions
EXIT_FAILURE"Destination variable does not cast"
EXIT_FAILURE"Source variable does not exist"

Definition at line 4834 of file _infrastructure.c.

◆ variable_swap()

void variable_swap ( Environment * _environment,
char * _source,
char * _dest )

Swap values of two variables.

This function allows you to swap the value of two variables. Note that none variable must pre-exist before the operation.

Parameters
_environmentCurrent calling environment
_sourceSource variable's name
_destinationDestination variable's name

Definition at line 4984 of file _infrastructure.c.

◆ variable_temporary()

Variable * variable_temporary ( Environment * _environment,
VariableType _type,
char * _meaning )

Define a temporary variable.

This function is necessary to define a temporary variable. This call will search for a (unused) temporary variable of the same type. If there is none, a new temporary variable will be reserved. The name will be chosen so as not to collide with either existing temporary variables or already defined actual variables. Note that the variable will be defined in the last bank defined by the BANK command as TEMPORARY. In other words, it is possible to define different variables in different banks, thus optimizing the space occupied by the program.

Allowed types:

Parameters
_environmentCurrent calling environment
_typeType of the variable to define
Returns
Variable* The variable definition

Definition at line 1388 of file _infrastructure.c.

◆ variable_temporary_remove()

void variable_temporary_remove ( Environment * _environment,
char * _name )

Definition at line 12956 of file _infrastructure.c.

◆ variable_type_from_numeric_value()

VariableType variable_type_from_numeric_value ( Environment * _environment,
int _number )

Definition at line 14807 of file _infrastructure.c.

◆ variable_xor()

Variable * variable_xor ( Environment * _environment,
char * _left,
char * _right )

Calculate logical "xor" and return it as the result.

This function allows you to emit code to make a logical XOR between two expressions, and return the result as boolean.

Parameters
_environmentCurrent calling environment
_leftLeft expression to check
_rightRight expression to check
Returns
Variable* The result of operation

Definition at line 6943 of file _infrastructure.c.

◆ variable_xor_inplace()

void variable_xor_inplace ( Environment * _environment,
char * _source,
int _dest )

Definition at line 4537 of file _infrastructure.c.

◆ variable_xor_inplace_mt()

void variable_xor_inplace_mt ( Environment * _environment,
char * _source,
char * _destination )

Add two variable and return the sum of them on the first.

This function allows you to sum the value of two variables. Note that both variables must pre-exist before the operation, under penalty of an exception.

Precondition
_source and _destination variables must exist
Parameters
_environmentCurrent calling environment
_sourceSource variable's name and destination of sum
_destinationValue to sum
Exceptions
EXIT_FAILURE"Destination variable does not cast"
EXIT_FAILURE"Source variable does not exist"

Definition at line 4620 of file _infrastructure.c.

◆ variable_xor_inplace_vars()

void variable_xor_inplace_vars ( Environment * _environment,
char * _source,
char * _destination )

Add two variable and return the sum of them on the first.

This function allows you to sum the value of two variables. Note that both variables must pre-exist before the operation, under penalty of an exception.

Precondition
_source and _destination variables must exist
Parameters
_environmentCurrent calling environment
_sourceSource variable's name and destination of sum
_destinationValue to sum
Exceptions
EXIT_FAILURE"Destination variable does not cast"
EXIT_FAILURE"Source variable does not exist"

Definition at line 4576 of file _infrastructure.c.

◆ varptr()

Variable * varptr ( Environment * _environment,
char * _name )

Emit code for function = VARPTR( ... ).

Parameters
_environmentCurrent calling environment
_identifierIdentifier to explore
Returns
Variable* Address of identifier

Definition at line 84 of file varptr.c.

◆ vars_emit_constant_integer()

void vars_emit_constant_integer ( Environment * _environment,
char * _name,
int _value )

Definition at line 46 of file _vars.c.

◆ vars_emit_constants()

void vars_emit_constants ( Environment * _environment)

Definition at line 58 of file _vars.c.

◆ vars_emit_strips()

void vars_emit_strips ( Environment * _environment,
char * _name,
Strip * _strips )

Definition at line 118 of file _vars.c.

◆ vcenter()

void vcenter ( Environment * _environment,
char * _string,
int _newline )

Emit code for CENTRE ....

Parameters
_environmentCurrent calling environment
_stringString to center

Definition at line 111 of file vcenter.c.

◆ vector_get_x()

Variable * vector_get_x ( Environment * _environment,
char * _vector )

Definition at line 60 of file vector_get_x.c.

◆ vector_get_y()

Variable * vector_get_y ( Environment * _environment,
char * _vector )

Definition at line 60 of file vector_get_y.c.

◆ vhcenter()

void vhcenter ( Environment * _environment,
char * _string,
int _newline,
char * _width )

Emit code for CENTRE ....

Parameters
_environmentCurrent calling environment
_stringString to center

Definition at line 111 of file vhcenter.c.

◆ volume()

void volume ( Environment * _environment,
int _volume,
int _channels )

Emit ASM code for VOLUME ....

This function emits a code capable to change the volume of the audio generated.

Parameters
_environmentCurrent calling environment
_volumevolume to play
_channelschannels to play on

Definition at line 70 of file volume.c.

◆ volume_off()

void volume_off ( Environment * _environment,
int _channels )

Emit ASM code for VOLUME OFF.

This function emits a code capable to turn off the volume.

Parameters
_environmentCurrent calling environment
_channelschannels to mute

Definition at line 68 of file volume_off.c.

◆ volume_off_var()

void volume_off_var ( Environment * _environment,
char * _channels )

Emit ASM code for VOLUME OFF.

This function emits a code capable to mute the audio generated.

Parameters
_environmentCurrent calling environment
_channelschannels to play on

Definition at line 91 of file volume_off.c.

◆ volume_vars()

void volume_vars ( Environment * _environment,
char * _volume,
char * _channels )

Emit ASM code for VOLUME ....

This function emits a code capable to change the volume of the audio generated.

Parameters
_environmentCurrent calling environment
_volumevolume to play
_channelschannels to play on

Definition at line 96 of file volume.c.

◆ wait_cycles()

void wait_cycles ( Environment * _environment,
int _timing,
int _parallel )

Emit ASM code for WAIT # [integer] CYCLES.

This function outputs a code that engages the CPU in a busy wait.

Parameters
_environmentCurrent calling environment
_timingNumber of cycles to wait

Emit ASM code for WAIT # [integer] CYCLES.

This function outputs a code that engages the CPU in a busy wait.

Parameters
_environmentCurrent calling environment
_timingNumber of cycles to wait

Definition at line 49 of file wait_cycles.c.

◆ wait_cycles_var()

void wait_cycles_var ( Environment * _environment,
char * _timing,
int _parallel )

Emit ASM code for WAIT [expression] CYCLES.

This function outputs a code that engages the CPU in a busy wait.

Parameters
_environmentCurrent calling environment
_timingNumber of cycles to wait

Emit ASM code for WAIT [expression] CYCLES.

This function outputs a code that engages the CPU in a busy wait.

Parameters
_environmentCurrent calling environment
_timingNumber of cycles to wait

Definition at line 109 of file wait_cycles.c.

◆ wait_fire()

void wait_fire ( Environment * _environment,
int _port,
int _release )

Definition at line 43 of file wait_fire.c.

◆ wait_fire_semivar()

void wait_fire_semivar ( Environment * _environment,
char * _port,
int _release )

Definition at line 49 of file wait_fire.c.

◆ wait_key()

void wait_key ( Environment * _environment,
int _release )

Definition at line 43 of file wait_key.c.

◆ wait_key_or_fire()

void wait_key_or_fire ( Environment * _environment,
int _port,
int _release )

Definition at line 43 of file wait_key_or_fire.c.

◆ wait_key_or_fire_semivar()

void wait_key_or_fire_semivar ( Environment * _environment,
char * _port,
int _release )

Definition at line 49 of file wait_key_or_fire.c.

◆ wait_milliseconds()

void wait_milliseconds ( Environment * _environment,
int _timing )

Emit ASM code for WAIT # [integer] MS.

This function outputs a code that engages the CPU in a busy wait.

Parameters
_environmentCurrent calling environment
_timingNumber of cycles to wait

Definition at line 49 of file wait_milliseconds.c.

◆ wait_milliseconds_var()

void wait_milliseconds_var ( Environment * _environment,
char * _timing )

Emit ASM code for WAIT [expression] MILLISECONDS.

This function outputs a code that engages the CPU in a busy wait.

Parameters
_environmentCurrent calling environment
_timingNumber of cycles to wait

Definition at line 99 of file wait_milliseconds.c.

◆ wait_parallel()

void wait_parallel ( Environment * _environment,
char * _thread )

Emit code for WAIT PARALLEL ....

Parameters
_environmentCurrent calling environment

Definition at line 68 of file wait_parallel.c.

◆ wait_ticks()

void wait_ticks ( Environment * _environment,
int _timing )

Emit ASM code for WAIT # [integer] TICKS.

This function outputs a code that engages the CPU in a busy wait.

Parameters
_environmentCurrent calling environment
_timingNumber of cycles to wait

Definition at line 49 of file wait_ticks.c.

◆ wait_ticks_var()

void wait_ticks_var ( Environment * _environment,
char * _timing )

Emit ASM code for WAIT [expression] TICKS.

This function outputs a code that engages the CPU in a busy wait.

Parameters
_environmentCurrent calling environment
_timingNumber of cycles to wait

Definition at line 65 of file wait_ticks.c.

◆ wait_until()

void wait_until ( Environment * _environment)

Emit code for WAIT UNTIL ....

Parameters
_environmentCurrent calling environment

Definition at line 71 of file wait_until.c.

◆ wait_until_condition()

void wait_until_condition ( Environment * _environment,
char * _condition )

Definition at line 77 of file wait_until.c.

◆ wait_vbl()

void wait_vbl ( Environment * _environment,
char * _raster_line )

Emit ASM code for WAIT VBL/b>.

This function outputs a code that waits for a vertical blank.

Parameters
_environmentCurrent calling environment

Definition at line 53 of file wait_vbl.c.

◆ wait_while()

void wait_while ( Environment * _environment)

Emit code for WAIT WHILE ....

Parameters
_environmentCurrent calling environment

Definition at line 71 of file wait_while.c.

◆ wait_while_condition()

void wait_while_condition ( Environment * _environment,
char * _condition )

Definition at line 81 of file wait_while.c.

◆ wave()

void wave ( Environment * _environment,
char * _voice,
char * _bits,
char * _pulse )

Definition at line 41 of file wave.c.

◆ writing()

void writing ( Environment * _environment,
char * _mode,
char * _parts )

Emit code for WRITING.

Parameters
_environmentCurrent calling environment
_modeExpression with the writing mode
_partsExpression with the writings parts

Definition at line 48 of file writing.c.

◆ x_graphic_get()

Variable * x_graphic_get ( Environment * _environment,
char * _x )

Return the graphic abscissa for the given text abscissa.

Parameters
_environmentCurrent calling environment
_valueText abscissa
Returns
Variable* Screen abscissa

Definition at line 82 of file x_graphics_get.c.

◆ x_text_get()

Variable * x_text_get ( Environment * _environment,
char * _x )

Return the graphic abscissa for the given text abscissa.

Parameters
_environmentCurrent calling environment
_valueText abscissa
Returns
Variable* Screen abscissa

Definition at line 81 of file x_text_get.c.

◆ xpen()

Variable * xpen ( Environment * _environment)

Emit ASM code for = XPEN().

This function can be used to read the X (horizontal) position of the electronic pen connected to the hardware. The result is stored in a temporary variable.

Parameters
_environmentCurrent calling environment
Returns
Variable* Variable with the result of the reading

Definition at line 51 of file xpen.c.

◆ y_graphic_get()

Variable * y_graphic_get ( Environment * _environment,
char * _y )

Return the graphic ordinate for the given text ordinate.

Parameters
_environmentCurrent calling environment
_valueText ordinate
Returns
Variable* Screen ordinate

Definition at line 82 of file y_graphics_get.c.

◆ y_text_get()

Variable * y_text_get ( Environment * _environment,
char * _y )

Return the text ordinate for the given graphic ordinate.

Parameters
_environmentCurrent calling environment
_valueScreen ordinate
Returns
Variable* Text ordinate

Definition at line 83 of file y_text_get.c.

◆ yield()

void yield ( Environment * _environment)

Emit code for YIELD.

Parameters
_environmentCurrent calling environment

Definition at line 63 of file yield.c.

◆ ypen()

Variable * ypen ( Environment * _environment)

Emit ASM code for = YPEN().

This function can be used to read the Y (vertical) position of the electronic pen connected to the hardware. The result is stored in a temporary variable.

Parameters
_environmentCurrent calling environment
Returns
Variable* Variable with the result of the reading

Definition at line 51 of file ypen.c.

◆ yyerror()

int yyerror ( Environment * _ignored,
const char * _message )

yyerror() is a syntactic error handling function. The parser (yyparse()) automatically calls yyerror() whenever it encounters a token that doesn't meet the defined grammatical rules. Information about where the error occurred is added.

Definition at line 54240 of file ugbc.tab.c.

Variable Documentation

◆ yycolno

int yycolno
extern

This variable keeps track of the current column number when reading the input file.

Definition at line 133 of file ugbc.tab.c.

◆ yyposno

int yyposno
extern

This variable keeps track of the current byte position when reading the input file.

Definition at line 138 of file ugbc.tab.c.