ack/lang/m2/libm2/head_m2.e

71 lines
993 B
Plaintext
Raw Permalink Normal View History

1987-05-13 14:36:45 +00:00
#
1988-02-19 15:54:01 +00:00
;
; (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
; See the copyright notice in the ACK home directory, in the file "Copyright".
;
;
; Module: Modula-2 runtime startoff
; Author: Ceriel J.H. Jacobs
1994-06-24 14:02:31 +00:00
; Version: $Id$
1988-02-19 15:54:01 +00:00
;
1987-05-13 14:36:45 +00:00
mes 2,EM_WSIZE,EM_PSIZE
1988-03-23 17:55:57 +00:00
exa handler
exa environ
exa argv
exa argc
exa MainLB
exa bkillbss
1988-03-23 17:55:57 +00:00
exp $catch
1988-04-29 14:38:36 +00:00
exp $init
inp $trap_handler
1987-05-13 14:36:45 +00:00
bkillbss
bss EM_PSIZE,0,0
1991-03-06 14:26:16 +00:00
exp $_m_a_i_n
pro $_m_a_i_n, 0
1987-05-13 14:36:45 +00:00
lor 0
1988-03-23 17:55:57 +00:00
lae MainLB
1987-05-13 14:36:45 +00:00
sti EM_PSIZE
lal EM_WSIZE+EM_PSIZE
loi EM_PSIZE
1988-03-23 17:55:57 +00:00
lae environ ; save environment pointer
1987-05-13 14:36:45 +00:00
sti EM_PSIZE
lal EM_WSIZE
loi EM_PSIZE
1988-03-23 17:55:57 +00:00
lae argv ; save argument pointer
1987-05-13 14:36:45 +00:00
sti EM_PSIZE
lol 0
1988-03-23 17:55:57 +00:00
ste argc ; save argument count
1987-05-13 14:36:45 +00:00
1988-03-16 09:20:36 +00:00
lpi $trap_handler
1987-05-13 14:36:45 +00:00
sig
asp EM_PSIZE
1988-04-29 14:38:36 +00:00
cal $init
1988-03-23 17:55:57 +00:00
cal $__M2M_
cal $halt
1988-01-25 16:14:48 +00:00
loc 0 ; should not get here
1987-05-13 14:36:45 +00:00
ret EM_WSIZE
end
pro $trap_handler,0
1988-04-27 18:11:33 +00:00
lpi $trap_handler
sig
lol 0 ; trap number
1988-03-23 17:55:57 +00:00
lae handler
loi EM_PSIZE
1988-04-27 18:11:33 +00:00
lpi $catch
1988-04-29 14:38:36 +00:00
lae handler
1988-04-27 18:11:33 +00:00
sti EM_PSIZE
cai
asp EM_PSIZE+EM_WSIZE
rtt
end 0