This commit is contained in:
Oliver Lehmann 2009-08-26 08:23:57 +00:00
parent f8e692b443
commit c677bf900b
15 changed files with 252 additions and 0 deletions

View File

@ -0,0 +1,17 @@
access module
external
_cerror
global
access procedure
entry
ld r0,r7
ld r1,r6
xor r4,r4
sc #33
ld r2,r4
ret nc
jp cerror
end access
end access

View File

@ -0,0 +1,16 @@
acct module
external
_cerror
global
acct procedure
entry
ld r0,r7
xor r4,r4
sc #51
ld r2,r4
ret nc
jp cerror
end acct
end acct

View File

@ -0,0 +1,11 @@
alarm module
global
alarm procedure
entry
ld r0,r7
sc #27
ld r2,r4
ret
end alarm
end alarm

View File

@ -0,0 +1,16 @@
chdir module
external
_cerror
global
chdir procedure
entry
ld r0,r7
xor r4,r4
sc #12
ld r2,r4
ret nc
jp cerror
end chdir
end chdir

View File

@ -0,0 +1,17 @@
chmod module
external
_cerror
global
chmod procedure
entry
ld r0,r7
ld r1,r6
xor r4,r4
sc #15
ld r2,r4
ret nc
jp cerror
end chmod
end chmod

View File

@ -0,0 +1,18 @@
chown module
external
_cerror
global
chown procedure
entry
ld r0,r7
ld r1,r6
ld r2,r5
xor r4,r4
sc #16
ld r2,r4
ret nc
jp cerror
end chown
end chown

View File

@ -0,0 +1,16 @@
close module
external
_cerror
global
close procedure
entry
ld r0,r7
xor r4,r4
sc #6
ld r2,r4
ret nc
jp cerror
end close
end close

View File

@ -0,0 +1,16 @@
creat module
external
_cerror
global
creat procedure
entry
ld r0,r7
ld r1,r6
sc #8
ld r2,r4
ret nc
jp cerror
end creat
end creat

View File

@ -0,0 +1,16 @@
dup module
external
_cerror
global
dup procedure
entry
ld r0,r7
ld r1,r6
sc #41
ld r2,r4
ret nc
jp cerror
end dup
end dup

View File

@ -0,0 +1,26 @@
execl module
external
_environ
_cerror
global
execl procedure
entry
ld r0,@r15
ex r0,r7
ld @r15,r2
push @r15,r3
push @r15,r4
push @r15,r5
push @r15,r6
ld r1,r15
ld r2,_environ
sc #59
ld r2,r4
inc r15,#8
ld @r15,r7
jp cerror
end execl
end execl

View File

@ -0,0 +1,28 @@
execle module
external
_cerror
global
execle procedure
entry
ld r0,@r15
ex r0,r7
ld @r15,r2
push @r15,r3
push @r15,r4
push @r15,r5
push @r15,r6
ld r1,r15
ld r2,r1
ld r3,#%8000
xor r4,r4
cpir r4,@r2,r3,z
ld r2,@r2
sc #59
ld r2,r4
inc r15,#8
ld @r15,r7
jp cerror
end execle
end execle

View File

@ -0,0 +1,17 @@
execv module
external
_environ
_cerror
global
execv procedure
entry
ld r0,r7
ld r1,r6
ld r2,_environ
sc #59
ld r2,r4
jp cerror
end execv
end execv

View File

@ -0,0 +1,16 @@
execve module
external
_cerror
global
execve procedure
entry
ld r0,r7
ld r1,r6
ld r2,r5
sc #59
ld r2,r4
jp cerror
end execve
end execve

View File

@ -0,0 +1,13 @@
exit module
external
_cerror
global
exit procedure
entry
ld r0,r7
sc #1
ld r2,r4
end exit
end exit

View File

@ -0,0 +1,9 @@
pause module
global
pause procedure
entry
sc #29
ret
end pause
end pause