ack/mach/m68020/libsys
David Given f67c98e239 Distributions are a pain --- let's not bother any more. Instead, we just tag
the repository and download a complete snapshot, old and ancient stuff and all.
2016-09-02 23:00:38 +02:00
..
_alarm.s
_brk.s Fixed typo 1993-11-24 12:54:29 +00:00
_close.s
_creat.s
_dup.s
_dup2.s
_execl.s
_execve.s
_exit.s
_fork.s
_ftime.s
_getpid.s
_gtty.s
_ioctl.s
_kill.s
_link.s
_lseek.s
_open.s
_pause.s
_pipe.s
_read.s
_times.s
_unlink.s
_wait.s
_write.s
_Xstat.c
access.s
acct.s
alarm.s
brk.s
call.s
chdir.s
chmod.s
chown.s
chroot.s
cleanup.s
close.s
creat.s
dup.s
dup2.s
errno.s
execl.s
execle.c
execv.c
execve.s
exit.s
fcntl.s
fork.s
fstat.s
ftime.s
getegid.s
getgid.s
getpid.s
getuid.s
gtty.s
head_em.s
ioctl.s
kill.s
link.s
LIST
lock.s
lseek.s
mknod.s
mount.s
nice.s
open.s
pause.s
pipe.s
profil.s
ptrace.s
read.s
README
setgid.s
setuid.s
signal.s
stat.s
stime.s
stty.s
sync.s
time.s
times.s
umask.s
umount.s
unlink.s
utime.s
wait.s
write.s
Xstat.c

	! Two system calls (gtty and stty) in the m68000 tail_mon library
	! were not really system calls but they used _ioctl. The m68020 machine
	! the table was tested on used real system calls, and we'll use
	! them here.
	! There were also three calls (ftime, lock and dup2) that were in the
	! m68000 library, but were not included in the list of system calls
	! for the m68020 that was given to me. We'll include them anyway.
	! The original gtty and stty files are included here.
	! Note however that the 68000 machine (the Mantra) needs the parameters
	! to system calls in registers, while the m68020 machine this table was
	! tested on wanted the parameters on the stack
	!
	! Also read the comments in the signal.s file!
! -------------------  dup2.s
! .define _dup2
! .extern _dup2
! .sect .text
! .sect .rom
! .sect .data
! .sect .bss
! .sect .text
! _dup2:		move.w #0x29,d0
! 		move.l (4,sp),a0
! 		move.l (8,sp),d1
! 		add.l #0x40,a0
! 		jmp (call)
!
!
! ! -------------------  gtty.s
! .define _gtty
! .extern _gtty
! .sect .text
! .sect .rom
! .sect .data
! .sect .bss
! .sect .text
! _gtty:
! tst.b (-40,sp)
! link	a6,#-0
! move.l (12,a6),-(sp)
! move.l #29704,-(sp)
! move.l (8,a6),-(sp)
! jsr (_ioctl)
! add.l #12,sp
! unlk a6
! rts
!
!
! ! -------------------  stty.s
! .define _stty
! .extern _stty
! .sect .text
! .sect .rom
! .sect .data
! .sect .bss
! .sect .text
! _stty:
! tst.b (-40,sp)
! link	a6,#-0
! move.l (12,a6),-(sp)
! move.l #29705,-(sp)
! move.l (8,a6),-(sp)
! jsr (_ioctl)
! add.l #12,sp
! unlk a6
! rts