AMCAF Extension V1.40 Manual  Index

Miscellaneous Graphic Commands



SET NTSC
instruction: switch to the 60hz ntsc mode
Set Ntsc

This command switches to 60Hz NTSC screen mode.


SET PAL
instruction: switch to 50hz pal mode
Set Pal

Set Pal returns to the normal 50Hz PAL mode.


SET SPRITE PRIORITY
instruction: change the sprite priority in dual playfield mode
Set Sprite Priority bitmap

This command sets the priority of the sprites in conjunctions with the playfields to the value 'bitmap'. 'bitmap' is a bit mask in the following format:

Bits 0-2: 0 = all sprites      will be displayed behind         playfield 1
          1 = the sprites 0-1  appear in front of               playfield 1
          2 = the sprites 0-3  are drawn in front of the first  playfield
          3 = the sprites 0-5  appear in front of               playfield 1
          4 = all sprites      will be displayed in front of    playfield 1
Bits 3-5: 0 = all sprites      will be displayed behind         playfield 2
          1 = the sprites 0-1  appear in front of               playfield 2
          2 = the sprites 0-3  are drawn in front of the second playfield
          3 = the sprites 0-5  appear in front of               playfield 2
          4 = all sprites      will be displayed in front of    playfield 2

This is a little bit confusing, I admit, but just try it out.

SCRN RASTPORT
function: return the screen rastport address
rastport=Scrn Rastport

Fetches the address of the graphics/rastport structure of the current AMOS screen.


SCRN BITMAP
function: return the screen bitmap address
bitmap=Scrn Bitmap

Fetches the address of the graphics/bitmap structure of the current AMOS screen.


SCRN LAYER
function: return the screen layer address
layer=Scrn Layer

Fetches the address of the graphics/layer structure of the current AMOS screen.


SCRN LAYERINFO
function: return the screen layer info address
layerinfo=Scrn Layerinfo

Fetches the address of the graphics/LayerInfo structure of the current AMOS screen.


SCRN REGION
function: return the screen region address
region=Scrn Region

Fetches the address of the graphics/region structure of the current AMOS screen.