{{htmlmetatags>metatag-robots=() metatag-title=(List of examples | ugBASIC User Manual) metatag-keywords=(ugBASIC,Commodore 64,Commodore PLUS/4,ZX Spectrum) metatag-description=(An isomorphic language for retrocomputers) metatag-media-og:image=(:ugbasic:logo-ugbasic-fb.png) metatag-og:title=(List of examples | ugBASIC User Manual) metatag-og:description=(An isomorphic language for retrocomputers) }} ====== ugBASIC User Manual ====== ===== LIST OF EXAMPLES ===== ==== ARRAY MANAGEMENT ==== * ''[[ugbasic:user:example:arrays_examples_01|ACCESSING (1)]]'' * ''[[ugbasic:user:example:arrays_examples_02|ACCESSING (2)]]'' * ''[[ugbasic:user:example:arrays_examples_03|ACCESSING (3)]]'' * ''[[ugbasic:user:example:arrays_examples_04|ACCESSING (4)]]'' * ''[[ugbasic:user:example:arrays_examples_05|INITIALIZING]]'' * ''[[ugbasic:user:example:arrays_examples_06|BOUNDS]]'' * ''[[ugbasic:user:example:arrays_examples_07|INIZIALIZATION]]'' ==== ASSEMBLY INTEGRATION ==== * ''[[ugbasic:user:example:assembly_example_01|INLINE (1 LINE)]]'' * ''[[ugbasic:user:example:assembly_example_02|INLINE (MORE LINES)]]'' ==== AUDIO GENERATION ==== * ''[[ugbasic:user:example:audio_bell_01|PLAY THE BELL]]'' * ''[[ugbasic:user:example:audio_bell_02|PLAY THE BELL (2)]]'' * ''[[ugbasic:user:example:audio_boom_01|BOOM!]]'' * ''[[ugbasic:user:example:audio_instrument_01|USE INSTRUMENTS]]'' * ''[[ugbasic:user:example:audio_music_01|PLAY MUSIC]]'' * ''[[ugbasic:user:example:audio_play_01|PLAY A NOTE]]'' * ''[[ugbasic:user:example:audio_shoot_01|SHOOT!]]'' * ''[[ugbasic:user:example:audio_sound_01|SOUND SAMPLE (1)]]'' * ''[[ugbasic:user:example:audio_sound_02|SOUND SAMPLE (2)]]'' * ''[[ugbasic:user:example:audio_sound_03|SOUND SAMPLE (3)]]'' * ''[[ugbasic:user:example:audio_volume_01|VOLUME CONTROL]]'' ==== BASIC COMMANDS ==== * ''[[ugbasic:user:example:basic_swap|SWAP NUMBERS]]'' ==== BIT DATATYPE ==== * ''[[ugbasic:user:example:bit_example_01|USING DATATYPE]]'' * ''[[ugbasic:user:example:bit_example_02|BIT MANIPULATION]]'' * ''[[ugbasic:user:example:bit_example_03|BIT COMPARISON]]'' * ''[[ugbasic:user:example:bit_example_04|ARRAY OF BITS]]'' ==== BIT MANIPULATION ==== * ''[[ugbasic:user:example:bitm_nibble|COMBINE NIBBLES]]'' ==== IMAGE BLITTING ==== * ''[[ugbasic:user:example:blit_basic_mask|BASIC MASKING]]'' ==== BUFFERS MANAGEMENT ==== * ''[[ugbasic:user:example:buffers_definition_01|LITERAL DEFINITION]]'' * ''[[ugbasic:user:example:buffers_definition_02|LOADING FROM FILE]]'' * ''[[ugbasic:user:example:buffers_definition_03|ALIASING ON FILE LOADING]]'' * ''[[ugbasic:user:example:buffers_print_01|PRINTING ON VIDEO]]'' ==== ==== * ''[[ugbasic:user:example:bug977|EMBER]]'' ==== --- TEXT ==== * ''[[ugbasic:user:example:bugbug|MODE DISPLAY SG4]]'' ==== CONSOLE MANAGEMENT ==== * ''[[ugbasic:user:example:consoles_multiple|MULTIPLE CONSOLE EXAMPLE]]'' ==== OTHER CONTRIBUTIONS ==== * ''[[ugbasic:user:example:contrib_ascii|PRINTABLE CHARACTERS]]'' * ''[[ugbasic:user:example:contrib_ascii2|PRINTABLE CHARACTERS (COMPRESSED)]]'' * ''[[ugbasic:user:example:contrib_asm_mos6502|ASSEMBLY FOR BEGINNERS (MOS 6502)]]'' * ''[[ugbasic:user:example:contrib_asm_motorola6809|ASSEMBLY FOR BEGINNERS (MOTOROLA 6809)]]'' * ''[[ugbasic:user:example:contrib_asm_zilogz80|ASSEMBLY FOR BEGINNERS (ZILOG Z80)]]'' * ''[[ugbasic:user:example:contrib_bad_apple|BAD APPLE]]'' * ''[[ugbasic:user:example:contrib_calibration|TIME CALIBRATION]]'' * ''[[ugbasic:user:example:contrib_cube|3D ROTATING CUBE]]'' * ''[[ugbasic:user:example:contrib_cube2|3D ROTATING CUBE (2)]]'' * ''[[ugbasic:user:example:contrib_cube_10lines|3D ROTATING CUBE]]'' * ''[[ugbasic:user:example:contrib_fibonacci|FIBONACCI CALCULATION]]'' * ''[[ugbasic:user:example:contrib_flare|FLARE ANIMATION]]'' * ''[[ugbasic:user:example:contrib_for_next_bp|FOR...NEXT BEST PRACTICE]]'' * ''[[ugbasic:user:example:contrib_for_next_bp2|FOR...NEXT BEST PRACTICE]]'' * ''[[ugbasic:user:example:contrib_get_put_performances|GET/PUT PERFORMANCE]]'' * ''[[ugbasic:user:example:contrib_if_test_speed|IF SPEED TEST]]'' * ''[[ugbasic:user:example:contrib_joystick|JOYSTICK PRIZE TRIBUTE]]'' * ''[[ugbasic:user:example:contrib_light|LIGHT!]]'' * ''[[ugbasic:user:example:contrib_mazegen|MAZE GENERATOR]]'' * ''[[ugbasic:user:example:contrib_memory_scan|MEMORY SCANNER]]'' * ''[[ugbasic:user:example:contrib_memory_scan_10lines|MEMORY SCANNER]]'' * ''[[ugbasic:user:example:contrib_minigame|MINIGAME]]'' * ''[[ugbasic:user:example:contrib_naboo_n1|NABOO N1 STARFIGHTER]]'' * ''[[ugbasic:user:example:contrib_naboo_n1_resolution|NABOO N1 STARFIGHTER (SCALED)]]'' * ''[[ugbasic:user:example:contrib_parabola|PARABOLA AND HYPERBOLA]]'' * ''[[ugbasic:user:example:contrib_primes|PRIME NUMBERS]]'' * ''[[ugbasic:user:example:contrib_primes2|PRIME NUMBERS (2)]]'' * ''[[ugbasic:user:example:contrib_primes3|PRIME NUMBERS (3)]]'' * ''[[ugbasic:user:example:contrib_primes4|PRIME NUMBERS (4)]]'' * ''[[ugbasic:user:example:contrib_random_distribution|RANDOM DISTRIBUTION]]'' * ''[[ugbasic:user:example:contrib_shuffle|SHUFFLING]]'' * ''[[ugbasic:user:example:contrib_sierpinski|SIERPINSKI CHALLENGE (adapted)]]'' * ''[[ugbasic:user:example:contrib_sierpinski2|SIERPINSKI CHALLENGE (optimized)]]'' * ''[[ugbasic:user:example:contrib_sierpinski3|SIERPINSKI CHALLENGE (final)]]'' * ''[[ugbasic:user:example:contrib_spock|DRAWING SPOCK]]'' * ''[[ugbasic:user:example:contrib_spock2|DRAWING SPOCK USING DATA]]'' * ''[[ugbasic:user:example:contrib_starfield|STAFIELD]]'' * ''[[ugbasic:user:example:contrib_testcard|TEST CARD]]'' * ''[[ugbasic:user:example:contrib_themill|THE MILL]]'' * ''[[ugbasic:user:example:contrib_tiger|A CARTOON FOREST]]'' * ''[[ugbasic:user:example:contrib_timers|TIMERS!]]'' * ''[[ugbasic:user:example:contrib_what_a_wonderful_world|WHAT A WONDERFUL WORLD]]'' ==== FLOW CONTROL ==== * ''[[ugbasic:user:example:control_after_01|USING AFTER..CALL]]'' * ''[[ugbasic:user:example:control_after_02|USING AFTER..GOSUB]]'' * ''[[ugbasic:user:example:control_by_expression_01|USING ON GOTO]]'' * ''[[ugbasic:user:example:control_by_expression_02|USING ON GOSUB]]'' * ''[[ugbasic:user:example:control_case_01|USING SELECT CASE]]'' * ''[[ugbasic:user:example:control_conditionals_01|USING IF..THEN..ELSE]]'' * ''[[ugbasic:user:example:control_conditionals_02|USING IF..THEN..ELSE IF]]'' * ''[[ugbasic:user:example:control_controlled_01|USING FOR..NEXT]]'' * ''[[ugbasic:user:example:control_controlled_02|USING NESTED FOR..NEXT]]'' * ''[[ugbasic:user:example:control_loops_01|USING DO..LOOP]]'' * ''[[ugbasic:user:example:control_loops_02|EXITING FROM LOOP]]'' * ''[[ugbasic:user:example:control_loops_03|EXITING FROM NESTED LOOP]]'' * ''[[ugbasic:user:example:control_loops_04|MIXED DO..LOOP AND WHILE..WEND]]'' * ''[[ugbasic:user:example:control_loops_05|MIXED DO..LOOP AND REPEAT..UNTIL]]'' * ''[[ugbasic:user:example:control_periodic_01|USING EVERY..GOSUB]]'' * ''[[ugbasic:user:example:control_periodic_02|USING EVERY..CALL]]'' * ''[[ugbasic:user:example:control_periodic_03|USING MULTIPLE EVERY..GOSUB]]'' * ''[[ugbasic:user:example:control_popping_01|POPPING FROM GOSUB]]'' * ''[[ugbasic:user:example:control_returning_01|USING GOSUB..RETURN (1)]]'' * ''[[ugbasic:user:example:control_returning_02|USING GOSUB..RETURN (2)]]'' * ''[[ugbasic:user:example:control_run_01|USING RUN]]'' * ''[[ugbasic:user:example:control_uncond_jumps_01|USING GOTO WITH LABELS]]'' * ''[[ugbasic:user:example:control_uncond_jumps_02|USING GOTO WITH LINE NUMBERS]]'' * ''[[ugbasic:user:example:control_wait_ms|WITH UNCONDITIONAL WAIT]]'' ==== I/O CONTROL ==== * ''[[ugbasic:user:example:controls_joy_01|JOYSTICK READ (BITMAP)]]'' * ''[[ugbasic:user:example:controls_joy_02|JOYSTICK READ (BIT DECODING)]]'' * ''[[ugbasic:user:example:controls_joy_03|JOYSTICK READ (FUNCTIONS)]]'' * ''[[ugbasic:user:example:controls_joy_04|ANALOGIC JOYSTICK READ (FUNCTIONS)]]'' * ''[[ugbasic:user:example:controls_keyboard_01|KEYBOARD READ (USING INKEY)]]'' * ''[[ugbasic:user:example:controls_keyboard_02|KEYBOARD READ (USING INKEY AND ASC)]]'' * ''[[ugbasic:user:example:controls_keyboard_03|KEYBOARD READ (USING INKEY AND SCANCODE)]]'' * ''[[ugbasic:user:example:controls_keyboard_04|KEYBOARD READ (USING SCANSHIFT)]]'' * ''[[ugbasic:user:example:controls_keyboard_05|KEYBOARD READ (BIT DECODING SCANSHIFT)]]'' * ''[[ugbasic:user:example:controls_keyboard_06|KEYBOARD READ (USING KEY STATE)]]'' * ''[[ugbasic:user:example:controls_keyboard_07|KEYBOARD READ (BIT DECODE KEY SHIFT)]]'' * ''[[ugbasic:user:example:controls_keyboard_08|WAIT FOR A KEY]]'' * ''[[ugbasic:user:example:controls_keyboard_09|KEYBOARD READ (USING INPUT$)]]'' ==== EMBEDDED DATA ==== * ''[[ugbasic:user:example:data_example_01|USING DATA AND READ INSTRUCTION]]'' * ''[[ugbasic:user:example:data_example_02|USING DATA AND READ INSTRUCTION WITH LABELS]]'' * ''[[ugbasic:user:example:data_example_03|USING RESTORE INSTRUCTION]]'' * ''[[ugbasic:user:example:data_example_04|USING READ END FUNCTION]]'' * ''[[ugbasic:user:example:data_example_05|USING DATA LOAD]]'' * ''[[ugbasic:user:example:data_example_06|USING DATA LOAD]]'' * ''[[ugbasic:user:example:data_example_07|USING DATA AND READ INSTRUCTION WITH EXPLICIT TYPE]]'' * ''[[ugbasic:user:example:data_example_08|USING DATA AND READ INSTRUCTION WITH LABELS]]'' * ''[[ugbasic:user:example:data_example_09|USING RESTORE INSTRUCTION]]'' * ''[[ugbasic:user:example:data_example_10|USING READ END FUNCTION]]'' * ''[[ugbasic:user:example:data_example_11|USING DATA LOAD]]'' * ''[[ugbasic:user:example:data_example_12|USING DATA LOAD]]'' * ''[[ugbasic:user:example:data_example_13|USING DYNAMIC RESTORE]]'' ==== DEFINE PRAGMAS ==== * ''[[ugbasic:user:example:defines_screen_01|UNIQUE SCREEN MODE]]'' * ''[[ugbasic:user:example:defines_screen_02|USING DOUBLE BUFFER]]'' * ''[[ugbasic:user:example:defines_screen_03|USING DOUBLE BUFFER AND SCREEN MODE UNIQUE]]'' ==== DOJO PROJECT ==== * ''[[ugbasic:user:example:dojo_example_01|SIMPLE CHAT CLIENT]]'' ==== EXPANSION MANAGEMENT ==== * ''[[ugbasic:user:example:expansion_bank_01|LIST OF AVAILABLE BANKS]]'' * ''[[ugbasic:user:example:expansion_bank_02|SET A BANK]]'' * ''[[ugbasic:user:example:expansion_bank_03|COPY FROM AND TO EXPANSION]]'' * ''[[ugbasic:user:example:expansion_bank_04|LOAD IMAGE ON BANK]]'' * ''[[ugbasic:user:example:expansion_bank_05|LOAD IMAGES ON BANK]]'' ==== EXTERNAL INTEGRATION ==== * ''[[ugbasic:user:example:extern_example_01|CALL MACHINE LANGUAGE]]'' * ''[[ugbasic:user:example:extern_example_02|CALL MACHINE LANGUAGE WITH REGISTERS]]'' * ''[[ugbasic:user:example:extern_example_03|CALL MACHINE EXTERNAL MACHINE LANGUAGE FILE]]'' * ''[[ugbasic:user:example:extern_example_04|CALL EXTERNAL MACHINE LANGUAGE FILE]]'' * ''[[ugbasic:user:example:extern_example_07|CALL EXTERNAL MACHINE LANGUAGE FILE (ABSOLUTE POSITION)]]'' * ''[[ugbasic:user:example:extern_example_09|CALL EXTERNAL MACHINE LANGUAGE FILE (USING STACK)]]'' * ''[[ugbasic:user:example:extern_example_10|ASM INLINE]]'' * ''[[ugbasic:user:example:extern_example_11|DECLARE EXTERNAL PROCEDURES]]'' * ''[[ugbasic:user:example:extern_example_12|DECLARE EXTERNAL PROCEDURES (WITH PARAMETERS)]]'' * ''[[ugbasic:user:example:extern_example_13|DECLARE EXTERNAL FUNCTIONS (WITH PARAMETERS)]]'' ==== FLOATING POINT ==== * ''[[ugbasic:user:example:float_cos|USING COSINE FUNCTION]]'' * ''[[ugbasic:user:example:float_pi|THE PI CONSTANT]]'' * ''[[ugbasic:user:example:float_sin|USING SINE FUNCTION]]'' * ''[[ugbasic:user:example:float_tan|USING TANGENT FUNCTION]]'' ==== FONT SUPPORT ==== * ''[[ugbasic:user:example:font_example_01|REPLACE A CHAR]]'' * ''[[ugbasic:user:example:font_example_02|REPLACE A CHAR]]'' ==== GRAPHICS PRIMITIVES ==== * ''[[ugbasic:user:example:graphics_bar_00|DRAWING BARS (PEDESTRIAN CROSSING)]]'' * ''[[ugbasic:user:example:graphics_bar_01|DRAWING BARS (TWO RED BARS)]]'' * ''[[ugbasic:user:example:graphics_box_00|DRAWING (COLORED) BOXES]]'' * ''[[ugbasic:user:example:graphics_box_01|DRAWING (PATTERNED) BOXES]]'' * ''[[ugbasic:user:example:graphics_clip_01|CLIPPING DRAWING]]'' * ''[[ugbasic:user:example:graphics_color_01|COLORING (USING INK)]]'' * ''[[ugbasic:user:example:graphics_color_02|COLORING (USING COLOR)]]'' * ''[[ugbasic:user:example:graphics_color_03|COLORING (USING COLOR())]]'' * ''[[ugbasic:user:example:graphics_color_04|USING PALETTE]]'' * ''[[ugbasic:user:example:graphics_double_buffer_01|USING DOUBLE BUFFER]]'' * ''[[ugbasic:user:example:graphics_draw_01|DRAWING USING DRAW INSTRUCTIONS]]'' * ''[[ugbasic:user:example:graphics_lines_01|DRAWING LINES]]'' * ''[[ugbasic:user:example:graphics_lines_02|DRAWING (RANDOM) LINES]]'' * ''[[ugbasic:user:example:graphics_paint_01|FILL POLYGON]]'' * ''[[ugbasic:user:example:graphics_palette_01|USING PALETTE]]'' * ''[[ugbasic:user:example:graphics_plot_01|RANDOM PLOTTING]]'' * ''[[ugbasic:user:example:graphics_plot_02|FILL PLOTTING]]'' * ''[[ugbasic:user:example:graphics_plot_03|USING GET PIXEL COLOR (POINT)]]'' * ''[[ugbasic:user:example:graphics_plot_04|FILL (PATTERN) PLOT]]'' * ''[[ugbasic:user:example:graphics_pmode_01|USING PMODE]]'' * ''[[ugbasic:user:example:graphics_point_01|COLOR AT POINT]]'' * ''[[ugbasic:user:example:graphics_position_01|POSITIONING (USING GR LOCATE)]]'' * ''[[ugbasic:user:example:graphics_position_02|POSITIONING (USING XGR AND YGR)]]'' * ''[[ugbasic:user:example:graphics_screen_01|USING PMODE]]'' * ''[[ugbasic:user:example:graphics_shapes_01|DRAWING SHAPES (USING CIRCLE AND POLYLINE)]]'' * ''[[ugbasic:user:example:graphics_shapes_02|DRAWING RANDOM CIRCLES]]'' * ''[[ugbasic:user:example:graphics_shapes_03|DRAWING RANDOM ELLIPSES]]'' * ''[[ugbasic:user:example:graphics_shapes_04|DRAWING ENCLOSED CIRCLES]]'' * ''[[ugbasic:user:example:graphics_text_01|TEXT COORDINATES (USING X/Y GRAPHIC)]]'' * ''[[ugbasic:user:example:graphics_text_02|DRAWING AROUND TEXT]]'' * ''[[ugbasic:user:example:graphics_text_03|TEXT COORDINATES (USING X/Y TEXT)]]'' * ''[[ugbasic:user:example:graphics_text_04|DRAWING RANDOM TEXTS]]'' * ''[[ugbasic:user:example:graphics_vbl_01|VERTICAL BLANK SYNC (1)]]'' * ''[[ugbasic:user:example:graphics_vbl_02|VERTICAL BLANK SYNC (2)]]'' ==== STATIC IMAGES ==== * ''[[ugbasic:user:example:images_get_01|MONOCHROME IMAGE CAPURE (USING GET IMAGE)]]'' * ''[[ugbasic:user:example:images_get_02|MULTICOLOR IMAGE CAPURE (USING GET IMAGE)]]'' * ''[[ugbasic:user:example:images_get_03|IMAGE CAPURE (USING GET IMAGE AND PALETTE)]]'' * ''[[ugbasic:user:example:images_load_01|LOADING IMAGE ( USING PRINT )]]'' * ''[[ugbasic:user:example:images_load_02|LOADING MULTICOLOR IMAGE ( USING PRINT )]]'' * ''[[ugbasic:user:example:images_load_03|DISPLAY MONOCHROME IMAGE]]'' * ''[[ugbasic:user:example:images_load_04|DISPLAY MUILTICOLOR IMAGE]]'' * ''[[ugbasic:user:example:images_load_05|LOAD AND DISPLAY ONE FRAME IMAGE]]'' * ''[[ugbasic:user:example:images_load_06|DISPLAY ANIMATIONS]]'' * ''[[ugbasic:user:example:images_put_01|DISPLAY MONOCHROME IMAGE (USING PUT IMAGE)]]'' * ''[[ugbasic:user:example:images_put_02|DISPLAY MULTICOLOR IMAGE (USING PUT IMAGE)]]'' * ''[[ugbasic:user:example:images_put_03|DISPLAY A RED TOKEN (USING PUT IMAGE)]]'' * ''[[ugbasic:user:example:images_put_04|DISPLAY AN (Y DOUBLED) RED TOKEN (USING PUT IMAGE)]]'' * ''[[ugbasic:user:example:images_put_05|LOADING FLIPPED IMAGE (USING FLIP X)]]'' ==== MATHEMATIC ROUTINES ==== * ''[[ugbasic:user:example:maths_abs_01|ABSOLUTE VALUE (USING ABS)]]'' * ''[[ugbasic:user:example:maths_distance_01|CALCULATE DISTANCE]]'' * ''[[ugbasic:user:example:maths_example_01|SUM OPERANDS (USING +)]]'' * ''[[ugbasic:user:example:maths_example_02|POWER AND MULTIPLICATIVE OPERANDS (USING ^ AND *)]]'' * ''[[ugbasic:user:example:maths_example_03|ASSOCIATIVE PRIORITY (SUMS AND PRODUCTS)]]'' * ''[[ugbasic:user:example:maths_example_04|ASSOCIATIVE PRIORITY (ALL OPERATIONS)]]'' * ''[[ugbasic:user:example:maths_example_05|USING RELATIVE NUMBERS]]'' * ''[[ugbasic:user:example:maths_example_06|HEXADECIMAL REPRESENTATION]]'' * ''[[ugbasic:user:example:maths_example_07|DECIMAL TO HEXADECIMAL]]'' * ''[[ugbasic:user:example:maths_example_08|SOME SIGNED OPERATIONS]]'' * ''[[ugbasic:user:example:maths_example_09|CONVERTING TO INTEGER]]'' * ''[[ugbasic:user:example:maths_fast_01|FAST OPERATIONS (USING INC/DEC)]]'' * ''[[ugbasic:user:example:maths_fast_02|FAST OPERATIONS (USING ADD)]]'' * ''[[ugbasic:user:example:maths_fast_03|WITH FAST OPERATIONS (USING MUL)]]'' * ''[[ugbasic:user:example:maths_fast_04|FAST OPERATIONS (USING DIV)]]'' * ''[[ugbasic:user:example:maths_rand_01|RANDOM VALUES (USING RND())]]'' * ''[[ugbasic:user:example:maths_rand_02|RANDOM VALUES (USING RANDOMIZE)]]'' * ''[[ugbasic:user:example:maths_rand_03|WITH NOT REPETITIVE RANDOM VALUES]]'' * ''[[ugbasic:user:example:maths_relative_01|MAXIMUM VALUE (USING MAX)]]'' * ''[[ugbasic:user:example:maths_relative_02|MINIMUM VALUE (USING MIN)]]'' * ''[[ugbasic:user:example:maths_relative_03|LIMITS OF NUMERIC TYPES]]'' * ''[[ugbasic:user:example:maths_relative_04|CHECKING SIGN / UNSIGN CONVERSION]]'' * ''[[ugbasic:user:example:maths_signs_01|SIGN (USING SGN())]]'' * ''[[ugbasic:user:example:maths_sqr_01|INTEGER SQUARE ROOT (USING SQR())]]'' ==== ACCESSING MEMORY ==== * ''[[ugbasic:user:example:memory_example_01|READING A BYTE]]'' * ''[[ugbasic:user:example:memory_example_02|READING A WORD]]'' * ''[[ugbasic:user:example:memory_example_03|READING A DOUBLE WORD]]'' ==== MULTI TASKING ==== * ''[[ugbasic:user:example:multitasking_example_01|SIMPLE CONCURRENCY (2 TASKS)]]'' * ''[[ugbasic:user:example:multitasking_example_02|CONDITIONATED CONCURRENCY (WAIT FOR ENDING TASK)]]'' * ''[[ugbasic:user:example:multitasking_example_03|ACCESSING VARIABLES (EXPLICIT)]]'' * ''[[ugbasic:user:example:multitasking_example_04|ACCESSING VARIABLES (IMPLICIT)]]'' * ''[[ugbasic:user:example:multitasking_example_05|PRE-EMPTIVE PARALLEL COMPUTING]]'' * ''[[ugbasic:user:example:multitasking_example_06|MULTITHREADED ANIMATION (1)]]'' * ''[[ugbasic:user:example:multitasking_example_07|MULTITHREADED ANIMATION (2)]]'' ==== --- Mano ==== * ''[[ugbasic:user:example:opil|Courie]]'' ==== --- TEXT ==== * ''[[ugbasic:user:example:opil_old|MODE DISPLAY SG4]]'' ==== USER-DEFINED PROCEDURES ==== * ''[[ugbasic:user:example:procedures_global_01|USING GLOBAL VARIABLES]]'' * ''[[ugbasic:user:example:procedures_global_02|ALL VARIABLES AS GLOBAL (USING WILDCARD *)]]'' * ''[[ugbasic:user:example:procedures_hello_01|DEFINING A PROCEDURE (BUT NOT CALLING IT)]]'' * ''[[ugbasic:user:example:procedures_hello_02|CALL A PROCEDURE (USING [])]]'' * ''[[ugbasic:user:example:procedures_hello_03|CALL A PROCEDURE (ALL WAYS)]]'' * ''[[ugbasic:user:example:procedures_jumping_01|CALL A PROCEDURE (USING ON...PROC)]]'' * ''[[ugbasic:user:example:procedures_jumping_02|EXITING FROM A PROCEDURE]]'' * ''[[ugbasic:user:example:procedures_local_01|USING LOCAL VARIABLES (1)]]'' * ''[[ugbasic:user:example:procedures_local_02|USING LOCAL VARIABLES (2)]]'' * ''[[ugbasic:user:example:procedures_param_01|RETURN VALUE (USING PARAM$())]]'' * ''[[ugbasic:user:example:procedures_param_02|RETURN VALUE (USING RETURN) (1)]]'' * ''[[ugbasic:user:example:procedures_param_03|RETURN VALUE (USING RETURN) (2)]]'' * ''[[ugbasic:user:example:procedures_param_04|RETURN VALUE (USING RETURN) (3)]]'' * ''[[ugbasic:user:example:procedures_parameters_01|CALL WITH SINGLE PARAMETER]]'' * ''[[ugbasic:user:example:procedures_parameters_02|CALL WITH MULTIPLE PARAMETERS]]'' * ''[[ugbasic:user:example:procedures_shared_01|USING SHARED VARIABLES]]'' ==== RASTER ROUTINES ==== * ''[[ugbasic:user:example:raster_example_01|VERTICAL BANDING]]'' ==== SCREEN MANIPULATION ==== * ''[[ugbasic:user:example:screens_cls_01|CLEARING SCREEN (USING CLS) (1)]]'' * ''[[ugbasic:user:example:screens_cls_02|CLEARING SCREEN (USING CLS) (2)]]'' * ''[[ugbasic:user:example:screens_mix_01|CHANGING MODE]]'' * ''[[ugbasic:user:example:screens_resolution_01|CHANGING RESOLUTION]]'' * ''[[ugbasic:user:example:screens_resolution_02|CHECK RESOLUTION]]'' * ''[[ugbasic:user:example:screens_resolution_03|BEST RESOLUTION (BITMAP MODE)]]'' * ''[[ugbasic:user:example:screens_resolution_04|BEST RESOLUTION (TILEMAP MODE)]]'' ==== STATIC IMAGES ==== * ''[[ugbasic:user:example:sequence_load_01|SEQUENCE LOADING AND DISPLAY OF A FRAME]]'' ==== SPRITE MANAGEMENT ==== * ''[[ugbasic:user:example:sprites_example_01|CREATE A (SIMPLE) SPRITE]]'' * ''[[ugbasic:user:example:sprites_example_02|MOVING PARALLEL SPRITES]]'' * ''[[ugbasic:user:example:sprites_example_03|MOVING PARALLEL SPRITES IN GAMELOOP]]'' * ''[[ugbasic:user:example:sprites_example_04|ASSEMBLING A MULTICOLOR SPRITE (1)]]'' * ''[[ugbasic:user:example:sprites_example_05|ASSEMBLING A MULTICOLOR SPRITE (2)]]'' * ''[[ugbasic:user:example:sprites_example_06|COLLISIONS (1)]]'' * ''[[ugbasic:user:example:sprites_example_07|COLLISIONS (2)]]'' * ''[[ugbasic:user:example:sprites_example_08|TESTING COLLISION]]'' ==== STORAGE MANAGEMENT ==== * ''[[ugbasic:user:example:storage_example_01|LOADING A FILE]]'' * ''[[ugbasic:user:example:storage_example_02|LOADING AN IMAGE (1)]]'' * ''[[ugbasic:user:example:storage_example_03|LOADING AN IMAGE (2)]]'' * ''[[ugbasic:user:example:storage_example_04|LOADING IMAGES]]'' * ''[[ugbasic:user:example:storage_example_05|LOADING IMAGES]]'' * ''[[ugbasic:user:example:storage_example_06|LOADING MUSIC]]'' * ''[[ugbasic:user:example:storage_example_07|LOADING ON VARIABLES]]'' * ''[[ugbasic:user:example:storage_example_08|LOADING TILESET]]'' * ''[[ugbasic:user:example:storage_example_09|LOADING TILEMAP]]'' * ''[[ugbasic:user:example:storage_example_10|SAVING A FILE]]'' ==== STRING MANIPULATION ==== * ''[[ugbasic:user:example:strings_asc_01|ASCII VALUE (USING ASC())]]'' * ''[[ugbasic:user:example:strings_cases_01|LETTER CASING (USING UPPER/LOWER)]]'' * ''[[ugbasic:user:example:strings_chr_01|GENERATE CHARACTER (USING CHR())]]'' * ''[[ugbasic:user:example:strings_flip_01|FLIPPING STRINGS]]'' * ''[[ugbasic:user:example:strings_instr_01|SEARCH INSIDE A STRING (USING INSTR())]]'' * ''[[ugbasic:user:example:strings_instr_02|SEARCH INSIDE A STRING FROM A POSITION (USING INSTR())]]'' * ''[[ugbasic:user:example:strings_left_01|EXTRACT A SUBSTRING (USING LEFT())]]'' * ''[[ugbasic:user:example:strings_left_02|REPLACING A SUBSTRING (USING LEFT())]]'' * ''[[ugbasic:user:example:strings_len_01|MEASURE THE LENGHT OF A STRING (USING LEN())]]'' * ''[[ugbasic:user:example:strings_mid_01|EXTRACT / REPLACE A SUBSTRING (USING MID())]]'' * ''[[ugbasic:user:example:strings_mid_02|ITERATIVE MID]]'' * ''[[ugbasic:user:example:strings_right_01|EXTRACT A SUBSTRING (USING RIGHT())]]'' * ''[[ugbasic:user:example:strings_right_02|REPLACE A SUBSTRING (USING RIGHT())]]'' * ''[[ugbasic:user:example:strings_space_01|GENERATE SPACES (USING SPACE())]]'' * ''[[ugbasic:user:example:strings_str_01|CONVERT NUMBERS (USING STR())]]'' * ''[[ugbasic:user:example:strings_string_01|GENERATE STRINGS (USING STRING())]]'' * ''[[ugbasic:user:example:strings_sub_01|SUBTRACTING STRINGS]]'' * ''[[ugbasic:user:example:strings_val_01|CONVERTING A STRING TO NUMBER (USING VAL())]]'' ==== EXTERNAL INTEGRATION ==== * ''[[ugbasic:user:example:sys_example_atari|SYSTEM CALLS (ON ATARI 400/800)]]'' * ''[[ugbasic:user:example:sys_example_atarixl|SYSTEM CALLS (ON ATARI XL/XE)]]'' * ''[[ugbasic:user:example:sys_example_c128|SYSTEM CALLS (ON COMMODORE 128)]]'' * ''[[ugbasic:user:example:sys_example_c64|SYSTEM CALLS (ON COMMODORE 64)]]'' * ''[[ugbasic:user:example:sys_example_cpc|SYSTEM CALLS (ON AMSTRAD CPC)]]'' * ''[[ugbasic:user:example:sys_example_msx1|SYSTEM CALLS (ON MSX)]]'' * ''[[ugbasic:user:example:sys_example_vic20|SYSTEM CALLS (ON COMMODORE VIC-20)]]'' ==== TEXTS OUTPUT ==== * ''[[ugbasic:user:example:texts_advanced_01|HORIZONTAL SCROLLING (USING HSCROLL)]]'' * ''[[ugbasic:user:example:texts_advanced_02|VERTICAL SCROLL (USING VSCROLL)]]'' * ''[[ugbasic:user:example:texts_erasing_01|ERASING TEXT (USING CLINE)]]'' * ''[[ugbasic:user:example:texts_escape_seq_01|USING ESCAPE SEQUENCES (1)]]'' * ''[[ugbasic:user:example:texts_escape_seq_02|USING ESCAPE SEQUENCES (2)]]'' * ''[[ugbasic:user:example:texts_options_01|DISPLAY ALL PEN COLORS (USING PEN)]]'' * ''[[ugbasic:user:example:texts_options_02|CHANGE PEN COLOR (USING PEN$())]]'' * ''[[ugbasic:user:example:texts_options_03|DISPLAY ALL PAPER COLORS (USING PAPER)]]'' * ''[[ugbasic:user:example:texts_options_04|CHANGE PAPER COLOR (USING PAPER$())]]'' * ''[[ugbasic:user:example:texts_options_05|CHANGE PEN AND PAPER COLORS]]'' * ''[[ugbasic:user:example:texts_options_06|CHANGE WRITING MODE (USING WRITING)]]'' * ''[[ugbasic:user:example:texts_position_01|TEXT POSITIONING (USING LOCATE)]]'' * ''[[ugbasic:user:example:texts_position_02|TEXT POSITIONING (USING HOME)]]'' * ''[[ugbasic:user:example:texts_position_03|TEXT POSITIONING (USING CMOVE)]]'' * ''[[ugbasic:user:example:texts_position_04|TEXT POSITIONING (USING CMOVE$())]]'' * ''[[ugbasic:user:example:texts_position_05|TEXT POSITIONING (USING AT$())]]'' * ''[[ugbasic:user:example:texts_position_06|TEXT POSITIONING (USING AT$()/LOCATE)]]'' * ''[[ugbasic:user:example:texts_position_07|TEXT POSITIONING (USING LOCATE/CMOVE)]]'' * ''[[ugbasic:user:example:texts_position_08|TEXT POSITIONING (USING TAB$())]]'' * ''[[ugbasic:user:example:texts_position_09|TEXT POSITIONING (USING CDOWN)]]'' * ''[[ugbasic:user:example:texts_position_10|TEXT POSITIONING (USING CDOWN$())]]'' * ''[[ugbasic:user:example:texts_position_11|TEXT POSITIONING (USING SPC())]]'' * ''[[ugbasic:user:example:texts_print_00|HELLO WORLD]]'' * ''[[ugbasic:user:example:texts_print_01|PRINTABLE CHARS]]'' * ''[[ugbasic:user:example:texts_print_02|PRINT (WITH OPERATORS)]]'' * ''[[ugbasic:user:example:texts_print_03|CHANGE KIND OF PRINT]]'' * ''[[ugbasic:user:example:texts_print_04|PRINT AT GRID]]'' * ''[[ugbasic:user:example:texts_tab_01|PRINTING (USING TAB())]]'' * ''[[ugbasic:user:example:texts_tracking_01|GET TEXT POSITION (USING XCURS()/YCURS())]]'' * ''[[ugbasic:user:example:texts_tracking_02|GET TEXT POSITION (USING MEMORIZE/REMEMBER)]]'' ==== TILESET SUPPORT ==== * ''[[ugbasic:user:example:tileset_example_01|BASIC USAGE]]'' * ''[[ugbasic:user:example:tileset_example_02|TILE PROPERTIES]]'' * ''[[ugbasic:user:example:tileset_example_03|BASIC TILEMAP LOADING (1)]]'' * ''[[ugbasic:user:example:tileset_example_04|BASIC TILEMAP LOADING (2)]]'' * ''[[ugbasic:user:example:tileset_example_05|SCROLLING TILEMAP]]'' * ''[[ugbasic:user:example:tileset_example_06|USING MULTILAYERS TILEMAP]]'' * ''[[ugbasic:user:example:tileset_example_07|USING TILEMAP]]'' * ''[[ugbasic:user:example:tileset_example_08|RETRIEVING A TILE (MULTILAYER)]]'' ==== TSB PROJECT ==== * ''[[ugbasic:user:example:tsb_at_string_01|AT STRINGS]]'' * ''[[ugbasic:user:example:tsb_block_rec_01|BLOCK / REC COMMANDS]]'' * ''[[ugbasic:user:example:tsb_center_01|DEFINE CENTER AND NEW LINES]]'' * ''[[ugbasic:user:example:tsb_cgoto_01|USING CGOTO]]'' * ''[[ugbasic:user:example:tsb_circle_01|ALTERNATIVE SYNTAX FOR CIRCLE]]'' * ''[[ugbasic:user:example:tsb_dpeek_dpoke_01|USING D!PEEK AND D!POKE]]'' * ''[[ugbasic:user:example:tsb_dup_01|USING DUP]]'' * ''[[ugbasic:user:example:tsb_fill_01|USING FILL]]'' * ''[[ugbasic:user:example:tsb_insert_01|USING INSERT FUNCTION]]'' * ''[[ugbasic:user:example:tsb_insert_02|USING INSERT]]'' * ''[[ugbasic:user:example:tsb_inst_01|USING INST]]'' * ''[[ugbasic:user:example:tsb_joy_01|USING JOYSTICK]]'' * ''[[ugbasic:user:example:tsb_loop_01|USING LOOP WITH SIMONS' BASIC SYNTAX]]'' * ''[[ugbasic:user:example:tsb_multi_01|USING MULTI]]'' * ''[[ugbasic:user:example:tsb_op_dollar2_01|DOUBLE DOLLAR]]'' * ''[[ugbasic:user:example:tsb_op_perc2_01|USING DOUBLE PERCENT]]'' * ''[[ugbasic:user:example:tsb_option_call_01|USING OPTION CALL PRAGMA]]'' * ''[[ugbasic:user:example:tsb_pause_01|USING PAUSE]]'' * ''[[ugbasic:user:example:tsb_place_01|USING PLACE]]'' ==== VIDEOGAME ISPIRED ==== * ''[[ugbasic:user:example:vdg_bladerunner|BLADE RUNNER OPENING]]'' ==== ANY PROBLEM? ==== If you have found a problem trying to run those examples, if you think there is a bug or, more simply, you would like it to be improved, [[https://github.com/spotlessmind1975/ugbasic/issues/new?title=IMPROVE EXAMPLES|open an issue]] for this page on GitHub. Thank you!===== POWERED BY ===== [[:ugbasic:user|{{ :ugbasic:user:logo-ugbasic.png?nolink&600 |}}]]