1
0
mirror of https://github.com/stid/woz64.git synced 2024-05-28 07:41:28 +00:00
woz64/core/init.asm

71 lines
1.7 KiB
NASM
Raw Normal View History

2020-01-12 08:10:01 +00:00
#importonce
#import "../libs/memory.asm"
#import "../libs/math.asm"
#import "../libs/print.asm"
#import "../core/keyboard.asm"
#import "../core/screen.asm"
2020-01-13 00:52:10 +00:00
#import "../libs/module.asm"
2020-01-12 08:10:01 +00:00
#import "../progs/woz_shell.asm"
.filenamespace Init
* = * "Init Core"
2020-01-13 00:52:10 +00:00
// ========================================================
// ////// METHODS /////////////////////////////////////////
// ========================================================
// --------------------------------------------------------
// init -
// Module Init.
// --------------------------------------------------------
2020-01-12 08:10:01 +00:00
init: {
// Init All Modules
jsr Memory.init
jsr Math.init
jsr Print.init
jsr Keyboard.init
jsr Screen.init
jsr WozShell.init
jsr Module.init
rts
}
2020-01-13 00:52:10 +00:00
// --------------------------------------------------------
// toDebug -
// Print debug info.
// --------------------------------------------------------
2020-01-12 08:10:01 +00:00
toDebug: {
// Debug All Modules
2020-01-13 00:52:10 +00:00
ModuleToDebug(module_type, module_name, version)
2020-01-12 08:10:01 +00:00
jsr Keyboard.toDebug
jsr Screen.toDebug
jsr Module.toDebug
jsr Memory.toDebug
jsr Print.toDebug
jsr Math.toDebug
jsr WozShell.toDebug
rts
}
2020-01-13 00:52:10 +00:00
// ========================================================
// ////// DATA ////////////////////////////////////////////
// ========================================================
2020-01-12 08:10:01 +00:00
* = * "Init Core Data"
2020-01-13 00:52:10 +00:00
module_type: .byte Module.TYPES.CORE
version: .byte 1, 1, 0
.encoding "screencode_mixed"
2020-01-12 08:10:01 +00:00
module_name:
2020-01-13 00:52:10 +00:00
.text "init"
2020-01-12 08:10:01 +00:00
.byte 0
2020-01-13 00:52:10 +00:00
2020-01-12 08:10:01 +00:00
#import "../core/mem_map.asm"