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