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
|
2021-11-12 17:27:43 +00:00
|
|
|
GetVerticalCounter EXT
|
|
|
|
SetBorderColor EXT
|
2021-10-06 12:10:09 +00:00
|
|
|
|
|
|
|
; 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-11-14 01:45:27 +00:00
|
|
|
; SCB/Palette binding (high bit of array point indicates whether to bind to BG0 Y position (0)
|
|
|
|
; or BG1 Y position (1).
|
|
|
|
SetSCBArray EXT
|
|
|
|
BltSCB EXT
|
|
|
|
|
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
|
2021-11-15 18:23:38 +00:00
|
|
|
CopyPicToBG1 EXT
|
2021-08-26 13:52:43 +00:00
|
|
|
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-11-20 18:16:03 +00:00
|
|
|
MoveSprite EXT ; Set an existing sprite's position
|
|
|
|
UpdateSprite EXT ; Change an existing sprite's flags
|
2022-01-20 02:58:57 +00:00
|
|
|
RemoveSprite 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
|
2021-10-29 05:52:29 +00:00
|
|
|
ApplyTiles EXT ; Drain the dirty tile queue and call RenderTile on each
|
2021-10-29 02:41:01 +00:00
|
|
|
RenderTile EXT ; Y = address from GetTileStoreOffset
|
|
|
|
GetTileStoreOffset EXT ; X = column, Y = row
|
|
|
|
TileStore EXT ; Tile store internal data structure
|
|
|
|
|
2022-01-20 02:58:57 +00:00
|
|
|
RenderDirty EXT ; Render only dirty tiles + sprites directly to the SHR screen
|
|
|
|
|
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
|
2022-02-02 16:21:31 +00:00
|
|
|
|
2022-02-04 05:44:46 +00:00
|
|
|
;; Helper function to load the GTE User Toolset
|
|
|
|
;GTEInstall
|
|
|
|
; php
|
2022-02-02 16:21:31 +00:00
|
|
|
; ~InitialLoad userId;localToolPath;#0
|
|
|
|
|
2022-02-04 05:44:46 +00:00
|
|
|
; pea $8000 ; User tool
|
|
|
|
; pea $00A5 ; Tool 165
|
|
|
|
; PushLong toolPtr
|
|
|
|
; _SetTSPtr
|
2022-02-02 16:21:31 +00:00
|
|
|
|
2022-02-04 05:44:46 +00:00
|
|
|
; plp
|
|
|
|
; rtl
|
2022-02-02 16:21:31 +00:00
|
|
|
|
|
|
|
; Look for the tool set in the System Tools folder and then next to the application
|
2022-02-04 05:44:46 +00:00
|
|
|
;sysToolPath strl '*:System:Tools:ToolGTE'
|
|
|
|
;localToolPath strl '9:ToolGTE'
|
|
|
|
;toolPtr adrl 0
|