2024-03-20 14:17:21 -05:00
|
|
|
include syscalls.i
|
|
|
|
section .text,text
|
|
|
|
public _start
|
|
|
|
_start:
|
|
|
|
move.l #tmp_stack_top, a7
|
|
|
|
; set up a permanent stack
|
|
|
|
move.l #2, d0
|
|
|
|
move.l #$2, d1
|
|
|
|
jsr syscall_vmem_map_free
|
|
|
|
adda.l #(2*4096), a0
|
|
|
|
move.l a0, a7
|
|
|
|
move.l #msg, a0
|
|
|
|
jsr syscall_println
|
|
|
|
jsr syscall_exit
|
|
|
|
|
|
|
|
section .data,data
|
|
|
|
msg: dc.b "Hello from test_proc",0
|
|
|
|
|
|
|
|
section .bss,bss
|
2024-03-21 08:30:06 -05:00
|
|
|
tmp_stack: ds.w 16
|
2024-03-20 14:17:21 -05:00
|
|
|
tmp_stack_top:
|