No system-calls from libem
This commit is contained in:
parent
72b89fc1ad
commit
ab38665421
|
@ -112,7 +112,7 @@ putchar:
|
|||
move.l #1, -(sp)
|
||||
pea (11,sp)
|
||||
move.l #1, -(sp)
|
||||
jsr (__write)
|
||||
jsr (WRITE)
|
||||
lea (12, sp), sp
|
||||
rts
|
||||
.align 2
|
||||
|
|
|
@ -7,5 +7,5 @@
|
|||
.sect .text
|
||||
.fatal:
|
||||
jsr (.trp)
|
||||
jmp (__exit)
|
||||
jmp (EXIT)
|
||||
.align 2
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
pea (fmt)
|
||||
jsr (.diagnos)
|
||||
add.l #8, sp
|
||||
jmp (__exit)
|
||||
jmp (EXIT)
|
||||
|
||||
.sect .data
|
||||
fmt: .asciz "system call %d not implemented\n"
|
||||
|
|
|
@ -16,7 +16,7 @@ EHEAP=17
|
|||
move.l a0,-(sp)
|
||||
move.l d1, -(sp)
|
||||
move.l d1,(.limhp)
|
||||
jsr (__brk) ! allocate 1K bytes of extra storage
|
||||
jsr (BRK) ! allocate 1K bytes of extra storage
|
||||
add.l #4,sp
|
||||
move.l (sp)+,a0
|
||||
tst.l d0
|
||||
|
|
|
@ -46,5 +46,5 @@ fmt: .asciz "%s\n"
|
|||
jsr (.diagnos)
|
||||
lea (4, sp), sp
|
||||
illegal
|
||||
jsr (__exit)
|
||||
jmp (EXIT)
|
||||
.align 2
|
||||
|
|
Loading…
Reference in a new issue