2021-08-25 14:38:02 +00:00
|
|
|
use Util.Macs.s
|
2022-02-02 16:21:31 +00:00
|
|
|
use Load.Macs.s
|
2021-08-25 14:38:02 +00:00
|
|
|
use Locator.Macs.s
|
|
|
|
use Mem.Macs.s
|
|
|
|
use Misc.Macs.s
|
|
|
|
use Tool222.MACS.s
|
|
|
|
use Core.MACS.s
|
|
|
|
|
|
|
|
use .\Defs.s
|
|
|
|
|
|
|
|
EngineStartUp ENT
|
|
|
|
phb
|
|
|
|
phk
|
|
|
|
plb
|
|
|
|
|
|
|
|
jsr ToolStartUp ; Start up the toolbox tools we rely on
|
2022-02-02 16:21:31 +00:00
|
|
|
jsr _CoreStartUp
|
2022-04-23 05:47:13 +00:00
|
|
|
jsr SoundStartUp ; Start up any sound/music tools
|
2022-02-02 16:21:31 +00:00
|
|
|
|
|
|
|
plb
|
|
|
|
rtl
|
|
|
|
|
2021-08-25 14:38:02 +00:00
|
|
|
EngineShutDown ENT
|
2021-08-26 21:12:08 +00:00
|
|
|
phb
|
|
|
|
phk
|
|
|
|
plb
|
|
|
|
|
2022-04-23 05:47:13 +00:00
|
|
|
jsr SoundShutDown
|
2022-02-02 16:21:31 +00:00
|
|
|
jsr _CoreShutDown
|
2021-08-25 14:38:02 +00:00
|
|
|
jsr ToolShutDown
|
2021-08-26 21:12:08 +00:00
|
|
|
|
|
|
|
plb
|
2021-08-25 14:38:02 +00:00
|
|
|
rtl
|
|
|
|
|
|
|
|
ToolStartUp
|
|
|
|
_TLStartUp ; normal tool initialization
|
|
|
|
pha
|
|
|
|
_MMStartUp
|
|
|
|
_Err ; should never happen
|
|
|
|
pla
|
|
|
|
sta MasterId ; our master handle references the memory allocated to us
|
|
|
|
ora #$0100 ; set auxID = $01 (valid values $01-0f)
|
|
|
|
sta UserId ; any memory we request must use our own id
|
|
|
|
|
|
|
|
_MTStartUp
|
|
|
|
rts
|
|
|
|
|
|
|
|
MasterId ds 2
|
|
|
|
|
|
|
|
; Fatal error handler invoked by the _Err macro
|
|
|
|
PgmDeath tax
|
|
|
|
pla
|
|
|
|
inc
|
|
|
|
phx
|
|
|
|
phk
|
|
|
|
pha
|
|
|
|
bra ContDeath
|
|
|
|
PgmDeath0 pha
|
|
|
|
pea $0000
|
|
|
|
pea $0000
|
|
|
|
ContDeath ldx #$1503
|
|
|
|
jsl $E10000
|
|
|
|
|
|
|
|
; Use Tool222 (NinjaTrackerPlus) for music playback
|
|
|
|
SoundStartUp
|
|
|
|
lda #NO_MUSIC
|
|
|
|
bne :no_music
|
|
|
|
|
|
|
|
pea $00DE
|
|
|
|
pea $0000
|
|
|
|
_LoadOneTool
|
|
|
|
_Err
|
|
|
|
|
|
|
|
lda UserId
|
|
|
|
pha
|
|
|
|
_NTPStartUp
|
|
|
|
:no_music
|
|
|
|
rts
|
|
|
|
|
|
|
|
SoundShutDown
|
|
|
|
lda #NO_MUSIC
|
|
|
|
bne :no_music
|
|
|
|
_NTPShutDown
|
|
|
|
:no_music
|
|
|
|
rts
|
|
|
|
|
2022-04-23 05:47:13 +00:00
|
|
|
ToolShutDown
|
2022-02-02 16:21:31 +00:00
|
|
|
rts
|
2021-08-25 14:38:02 +00:00
|
|
|
|
2022-04-23 05:47:13 +00:00
|
|
|
put CoreImpl.s
|
2022-02-18 19:42:37 +00:00
|
|
|
put blitter/Template.s
|
|
|
|
|
2021-08-26 21:45:23 +00:00
|
|
|
put Memory.s
|
2021-08-25 14:38:02 +00:00
|
|
|
put Graphics.s
|
2021-10-21 13:50:07 +00:00
|
|
|
put Sprite.s
|
2022-02-21 19:33:39 +00:00
|
|
|
put blitter/Tiles.s
|
2021-11-11 23:06:38 +00:00
|
|
|
put Sprite2.s
|
2022-02-18 18:12:32 +00:00
|
|
|
put SpriteRender.s
|
2021-08-25 14:38:02 +00:00
|
|
|
put Render.s
|
2021-08-26 13:52:43 +00:00
|
|
|
put Timer.s
|
|
|
|
put Script.s
|
2021-08-25 14:38:02 +00:00
|
|
|
put blitter/Blitter.s
|
|
|
|
put blitter/Horz.s
|
|
|
|
put blitter/PEISlammer.s
|
|
|
|
put blitter/Tables.s
|
2021-11-14 01:45:27 +00:00
|
|
|
put blitter/Tiles00000.s ; normal tiles
|
|
|
|
put blitter/Tiles00001.s ; dynamic tiles
|
|
|
|
put blitter/Tiles00010.s ; normal masked tiles
|
|
|
|
put blitter/Tiles00011.s ; dynamic masked tiles
|
|
|
|
|
|
|
|
put blitter/Tiles10000.s ; normal tiles + sprites
|
2021-11-19 22:30:22 +00:00
|
|
|
put blitter/Tiles10001.s ; dynamic tiles + sprites
|
2021-11-16 03:23:15 +00:00
|
|
|
put blitter/Tiles10010.s ; normal masked tiles + sprites
|
2021-11-19 22:30:22 +00:00
|
|
|
put blitter/Tiles10011.s ; dynamic masked tiles + sprites
|
|
|
|
|
2021-11-19 21:07:43 +00:00
|
|
|
put blitter/Tiles11000.s ; normal high priority tiles + sprites
|
2021-11-19 22:30:22 +00:00
|
|
|
put blitter/Tiles11001.s ; dynamic high priority tiles + sprites
|
2021-11-19 21:07:43 +00:00
|
|
|
put blitter/Tiles11010.s ; normal high priority masked tiles + sprites
|
2021-11-19 22:48:39 +00:00
|
|
|
put blitter/Tiles11011.s ; dynamic high priority masked tiles + sprites
|
2021-11-19 22:30:22 +00:00
|
|
|
|
2021-10-22 05:56:12 +00:00
|
|
|
put blitter/TilesBG1.s
|
2021-08-25 14:38:02 +00:00
|
|
|
put blitter/Vert.s
|
2021-08-26 13:52:43 +00:00
|
|
|
put blitter/BG0.s
|
2021-08-25 14:38:02 +00:00
|
|
|
put blitter/BG1.s
|
2021-11-14 01:45:27 +00:00
|
|
|
put blitter/SCB.s
|
2021-08-25 14:38:02 +00:00
|
|
|
put TileMap.s
|