Mercurial > hg > Members > kono > nitros9-code
changeset 2787:28b6ec8a14d5 lwtools-port
Added 'extern' pragam, fixed up rules.mak, changed 'section text' to 'section code' in sources
author | Boisy Pitre <boisy.pitre@nuance.com> |
---|---|
date | Sun, 27 Jan 2013 07:54:07 -0600 |
parents | 2d45c7285ae4 |
children | 151849d94f25 |
files | level1/cmds/attr.as level1/cmds/dw.as level1/cmds/inetd.as level1/cmds/load.as level1/cmds/tee.as level1/cmds/telnet.as level1/cmds/touch.as level1/cmds/tsmon.as lib/scf.as rules.mak |
diffstat | 10 files changed, 13 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/level1/cmds/attr.as Sat Jan 26 17:21:50 2013 -0600 +++ b/level1/cmds/attr.as Sun Jan 27 07:54:07 2013 -0600 @@ -41,7 +41,7 @@ u0078 rmb 46 endsect - section text + section code * psect tee_a,Prgrm+Objct,ReEnt+rev,edition,200,start
--- a/level1/cmds/dw.as Sat Jan 26 17:21:50 2013 -0600 +++ b/level1/cmds/dw.as Sun Jan 27 07:54:07 2013 -0600 @@ -28,7 +28,7 @@ die rmb 1 endsect - section text + section code * psect dw_a,$01,$80,1,200,start * signal handling
--- a/level1/cmds/inetd.as Sat Jan 26 17:21:50 2013 -0600 +++ b/level1/cmds/inetd.as Sun Jan 27 07:54:07 2013 -0600 @@ -44,7 +44,7 @@ endsect * psect inetd_a,$01,$80,1,200,start - section text + section code DEBUG equ 1
--- a/level1/cmds/load.as Sat Jan 26 17:21:50 2013 -0600 +++ b/level1/cmds/load.as Sun Jan 27 07:54:07 2013 -0600 @@ -22,7 +22,7 @@ endsect * psect load_a,Prgrm+Objct,ReEnt+rev,edition,200,start - section text + section code start os9 F$Load bcs Exit
--- a/level1/cmds/tee.as Sat Jan 26 17:21:50 2013 -0600 +++ b/level1/cmds/tee.as Sun Jan 27 07:54:07 2013 -0600 @@ -27,7 +27,7 @@ endsect * psect tee_a,Prgrm+Objct,ReEnt+rev,edition,200,start - section text + section code start clrb clr pcount clear path counter
--- a/level1/cmds/telnet.as Sat Jan 26 17:21:50 2013 -0600 +++ b/level1/cmds/telnet.as Sun Jan 27 07:54:07 2013 -0600 @@ -74,7 +74,7 @@ endsect * psect telnet_a,tylg,atrv,edition,200,start - section text + section code TELESCAPE equ 'Y-$40 * CTRL-Y
--- a/level1/cmds/touch.as Sat Jan 26 17:21:50 2013 -0600 +++ b/level1/cmds/touch.as Sun Jan 27 07:54:07 2013 -0600 @@ -57,7 +57,7 @@ endsect * psect touch_a,Prgrm+Objct,ReEnt+rev,edition,200,start - section text + section code * Place constant strings here IFNE DOHELP
--- a/level1/cmds/tsmon.as Sat Jan 26 17:21:50 2013 -0600 +++ b/level1/cmds/tsmon.as Sun Jan 27 07:54:07 2013 -0600 @@ -25,7 +25,7 @@ endsect * psect tsmon_a,Prgrm+Objct,ReEnt+rev,edition,200,start - section text + section code Login fcc "LOGIN" LoginPrm fcb C$CR
--- a/lib/scf.as Sat Jan 26 17:21:50 2013 -0600 +++ b/lib/scf.as Sun Jan 27 07:54:07 2013 -0600 @@ -155,7 +155,6 @@ C$PERD: SET '. C$COMA: SET ', - PAG ********************************************* * Sequential Character Path Descriptor Format
--- a/rules.mak Sat Jan 26 17:21:50 2013 -0600 +++ b/rules.mak Sun Jan 27 07:54:07 2013 -0600 @@ -43,7 +43,7 @@ # Use the cross assembler #AS = os9asm -i=$(DEFSDIR) -AS = lwasm --6309 --format=os9 --pragma=pcaspcr,nosymbolcase,condundefzero --includedir=. --includedir=$(DEFSDIR) +AS = lwasm --6309 --format=os9 --pragma=pcaspcr,nosymbolcase,condundefzero,undefextern,dollarnotlocal --includedir=. --includedir=$(DEFSDIR) ASOUT = -o AFLAGS = -DNOS9VER=$(NOS9VER) -DNOS9MAJ=$(NOS9MAJ) -DNOS9MIN=$(NOS9MIN) -DNOS9DBG=$(NOS9DBG) ifdef PORT @@ -51,7 +51,7 @@ endif # RMA/RLINK -ASM = lwasm --6309 --format=obj --pragma=pcaspcr,nosymbolcase,condundefzero,undefextern,dollarnotlocal --includedir=. +ASM = lwasm --6309 --format=obj --pragma=pcaspcr,nosymbolcase,condundefzero,undefextern,dollarnotlocal,export --includedir=. LINKER = lwlink # Commands @@ -109,6 +109,9 @@ %.a: %.o lwar -c $@ $? +%: %.o + $(LINKER) $(LFLAGS) $^ -o$@ + %: %.a $(LINKER) $(LFLAGS) $^ -o$@