2021-08-25 14:38:02 +00:00
|
|
|
; Collection of the EXTernal labels exported by GTE. This is the closest thing
|
|
|
|
; we have to an API definition.
|
|
|
|
|
2021-08-26 13:52:43 +00:00
|
|
|
EngineStartUp EXT
|
|
|
|
EngineShutDown EXT
|
2021-08-25 14:38:02 +00:00
|
|
|
|
2021-08-26 13:52:43 +00:00
|
|
|
SetScreenMode EXT
|
|
|
|
ReadControl EXT
|
2021-08-25 14:38:02 +00:00
|
|
|
|
2021-10-06 12:10:09 +00:00
|
|
|
; Low-Level Functions
|
|
|
|
SetPalette EXT
|
|
|
|
GetVBLTicks EXT
|
|
|
|
|
|
|
|
; Tilemap functions
|
2021-08-26 13:52:43 +00:00
|
|
|
SetBG0XPos EXT
|
|
|
|
SetBG0YPos EXT
|
|
|
|
SetBG1XPos EXT
|
|
|
|
SetBG1YPos EXT
|
|
|
|
CopyBG0Tile EXT
|
|
|
|
CopyBG1Tile EXT
|
2021-10-06 12:10:09 +00:00
|
|
|
CopyTileToDyn EXT
|
2021-08-26 13:52:43 +00:00
|
|
|
Render EXT
|
2021-08-25 14:38:02 +00:00
|
|
|
|
2021-08-26 13:52:43 +00:00
|
|
|
; Rotation
|
|
|
|
ApplyBG1XPosAngle EXT
|
|
|
|
ApplyBG1YPosAngle EXT
|
2021-08-25 14:38:02 +00:00
|
|
|
|
2021-08-26 13:52:43 +00:00
|
|
|
CopyPicToField EXT
|
|
|
|
CopyBinToField EXT
|
|
|
|
CopyBinToBG1 EXT
|
|
|
|
|
|
|
|
AddTimer EXT
|
|
|
|
RemoveTimer EXT
|
|
|
|
DoTimers EXT
|
2021-08-25 14:38:02 +00:00
|
|
|
|
2021-08-26 13:52:43 +00:00
|
|
|
StartScript EXT
|
|
|
|
StopScript EXT
|
2021-08-25 14:38:02 +00:00
|
|
|
|
2021-10-21 13:50:07 +00:00
|
|
|
; Sprite functions
|
|
|
|
AddSprite EXT
|
2021-10-24 03:31:38 +00:00
|
|
|
UpdateSprite EXT
|
2021-10-21 13:50:07 +00:00
|
|
|
|
2021-10-07 21:38:20 +00:00
|
|
|
; Direct access to internals
|
|
|
|
DoScriptSeq EXT
|
2021-10-11 19:09:38 +00:00
|
|
|
GetTileAddr EXT
|
2021-10-07 21:38:20 +00:00
|
|
|
|
2021-10-29 02:41:01 +00:00
|
|
|
PushDirtyTile EXT ; A = address from GetTileStoreOffset, marks as dirty (will not mark the same tile more than once)
|
|
|
|
PopDirtyTile EXT ; No args, returns Y with tile store offset of the dirty tile
|
|
|
|
RenderTile EXT ; Y = address from GetTileStoreOffset
|
|
|
|
GetTileStoreOffset EXT ; X = column, Y = row
|
|
|
|
TileStore EXT ; Tile store internal data structure
|
|
|
|
|
|
|
|
DrawTileSprite EXT ; X = target address in sprite plane, Y = address in tile bank
|
2021-10-29 03:19:18 +00:00
|
|
|
EraseTileSprite EXT ; X = target address is sprite plane
|
2021-10-29 02:41:01 +00:00
|
|
|
GetSpriteVBuffAddr EXT ; X = x-coordinate (0 - 159), Y = y-coordinate (0 - 199). Return in Acc.
|
|
|
|
|
2021-08-26 13:52:43 +00:00
|
|
|
; Allocate a full 64K bank
|
|
|
|
AllocBank EXT
|
|
|
|
|
|
|
|
; Data references
|
|
|
|
;
|
|
|
|
; Super Hires line address lookup table for convenience
|
|
|
|
ScreenAddr EXT
|
|
|
|
OneSecondCounter EXT
|
|
|
|
BlitBuff EXT
|