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