Added entry points for ANSI C
This commit is contained in:
23
lang/cem/libcc/mon/_write.e
Normal file
23
lang/cem/libcc/mon/_write.e
Normal file
@@ -0,0 +1,23 @@
|
||||
#
|
||||
mes 2,EM_WSIZE,EM_PSIZE
|
||||
exp $_write
|
||||
pro $_write,0
|
||||
lol EM_WSIZE+EM_PSIZE
|
||||
loc EM_WSIZE
|
||||
loc EM_PSIZE
|
||||
ciu
|
||||
lal 0
|
||||
loi EM_WSIZE+EM_PSIZE
|
||||
loc 4
|
||||
mon
|
||||
zne *1
|
||||
loc EM_PSIZE
|
||||
loc EM_WSIZE
|
||||
cui
|
||||
bra *2
|
||||
1
|
||||
ste errno
|
||||
loc -1
|
||||
2
|
||||
ret EM_WSIZE
|
||||
end
|
||||
Reference in New Issue
Block a user