ugBASIC 1.18
An isomorphic BASIC language compiler for retrocomputers
Loading...
Searching...
No Matches
antic.c File Reference
#include "../ugbc.h"

Go to the source code of this file.

Functions

void antic_raster_at (Environment *_environment, char *_label, char *_positionlo, char *_positionhi)
 ANTIC: emit code to set raster irq
void antic_next_raster (Environment *_environment)
 ANTIC: emit code to wait for next raster irq
void antic_next_raster_at (Environment *_environment, char *_label, char *_positionlo, char *_positionhi)
 ANTIC: emit code to wait for next raster irq at different position
void antic_initialization (Environment *_environment)
void antic_finalization (Environment *_environment)

Function Documentation

◆ antic_finalization()

void antic_finalization ( Environment * _environment)

Definition at line 132 of file antic.c.

◆ antic_initialization()

void antic_initialization ( Environment * _environment)

Definition at line 120 of file antic.c.

◆ antic_next_raster()

void antic_next_raster ( Environment * _environment)

ANTIC: emit code to wait for next raster irq

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 84 of file antic.c.

◆ antic_next_raster_at()

void antic_next_raster_at ( Environment * _environment,
char * _label,
char * _positionlo,
char * _positionhi )

ANTIC: emit code to wait for next raster irq at different position

This function outputs assembly code needed to wait for the next raster on a different position with a different code to execute. Meanwhile, the execution of the main code will resume where it left off.

Parameters
_environmentCurrent calling environment
_labelLabel to jump to when vertical raster reach the value given
_positionloThe vertical position to wait for (bits 7..0)
_positionhiThe vertical position to wait for (bit 8)

Definition at line 103 of file antic.c.

◆ antic_raster_at()

void antic_raster_at ( Environment * _environment,
char * _label,
char * _positionlo,
char * _positionhi )

ANTIC: emit code to set raster irq

This function outputs assembly code needed to initialize a raster routine. In other words, asynchronously and in parallel with the execution of the main program, the routine starting from the label provided will be executed when the vertical brush on the screen reaches the value of _position. This function is particularly useful when the position is communicated is given as an integer.

Parameters
_environmentCurrent calling environment
_labelLabel to jump to when vertical raster reach the value given
_positionloThe vertical position to wait for (bits 7..0)
_positionhiThe vertical position to wait for (bit 8)

Definition at line 58 of file antic.c.