From d8957063060652b04d1659d2557b298658af582b Mon Sep 17 00:00:00 2001 From: pjht Date: Thu, 21 Mar 2024 08:37:43 -0500 Subject: [PATCH] Change to using libstd startup code --- main.68k | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/main.68k b/main.68k index 2faf1ae..045b395 100644 --- a/main.68k +++ b/main.68k @@ -1,21 +1,10 @@ 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 + public main +main: move.l #msg, a0 jsr syscall_println - jsr syscall_exit + rts section .data,data msg: dc.b "Hello from test_proc",0 - - section .bss,bss -tmp_stack: ds.w 16 -tmp_stack_top: