Change to using libstd startup code

This commit is contained in:
pjht 2024-03-21 08:37:43 -05:00
parent 1d681007c1
commit d895706306
Signed by: pjht
GPG Key ID: 7B5F6AFBEC7EE78E

View File

@ -1,21 +1,10 @@
include syscalls.i include syscalls.i
section .text,text section .text,text
public _start public main
_start: main:
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 move.l #msg, a0
jsr syscall_println jsr syscall_println
jsr syscall_exit rts
section .data,data section .data,data
msg: dc.b "Hello from test_proc",0 msg: dc.b "Hello from test_proc",0
section .bss,bss
tmp_stack: ds.w 16
tmp_stack_top: