22 lines
394 B
NASM
22 lines
394 B
NASM
; "main function" like definition macro
|
|
|
|
.requires "$lib/core.asm"
|
|
.requires "$lib/std.asm"
|
|
|
|
.define lib_main_local_jump_main, (CORE_MEM_PRG_END - 3 - 1)
|
|
|
|
.macro jump_main
|
|
.std_jump lib_main_local_jump_main
|
|
.endmacro
|
|
|
|
.macro main, main_arg_0_label
|
|
.org lib_main_local_jump_main
|
|
ts main_arg_0_label
|
|
tlr CORE_REG_PC
|
|
.org main
|
|
.endmacro
|
|
|
|
.macro def_main
|
|
main: .main main
|
|
.endmacro
|