woz64/core/init.asm

73 lines
1.9 KiB
NASM

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