ack/plat/em/libsys/execle.e
David Given 7eaa235fd1 Bodge the ancient em monitor library into building as a libsys for the em22
plat. It's completely untested, but it builds and makes e.out executables.
2018-06-13 21:44:25 +09:00

26 lines
264 B
Plaintext

#
mes 2,EM_WSIZE,EM_PSIZE
exp $execle
pro $execle,0
lal EM_PSIZE
1
dup EM_PSIZE
loi EM_PSIZE
zer EM_PSIZE
cmp
zeq *2
adp EM_PSIZE
bra *1
2
adp EM_PSIZE
loi EM_PSIZE
lal EM_PSIZE
lal 0
loi EM_PSIZE
loc 59
mon
ste errno
loc -1
ret EM_WSIZE
end