hence/hence/lib/main.asm

22 lines
394 B
NASM
Raw Normal View History

2022-09-02 09:33:46 +00:00
; "main function" like definition macro
.requires "$lib/core.asm"
.requires "$lib/std.asm"
2023-03-09 16:05:33 +00:00
.define lib_main_local_jump_main, (CORE_MEM_PRG_END - 3 - 1)
2022-09-02 09:33:46 +00:00
.macro jump_main
2022-09-03 13:14:58 +00:00
.std_jump lib_main_local_jump_main
2022-09-02 09:33:46 +00:00
.endmacro
2022-09-06 09:54:57 +00:00
.macro main, main_arg_0_label
2022-09-03 13:14:58 +00:00
.org lib_main_local_jump_main
2022-09-06 09:54:57 +00:00
ts main_arg_0_label
2022-09-02 09:33:46 +00:00
tlr CORE_REG_PC
.org main
.endmacro
2023-03-23 16:59:10 +00:00
.macro def_main
main: .main main
.endmacro