Mercurial > hg > Members > kono > nitros9-code
changeset 2782:aaba193af04f lwtools-port
Updated code to use lwasm/lwlink
line wrap: on
line diff
--- a/level1/cmds/attr.a Wed Jan 23 21:23:45 2013 -0600 +++ b/level1/cmds/attr.a Sat Jan 26 08:26:31 2013 -0600 @@ -24,9 +24,7 @@ edition set 11 - psect tee_a,Prgrm+Objct,ReEnt+rev,edition,200,start - - vsect dp + section data fpath rmb 1 rawpath rmb 1 parmptr rmb 2 @@ -43,6 +41,10 @@ u0078 rmb 46 endsect + section text +* psect tee_a,Prgrm+Objct,ReEnt+rev,edition,200,start + + IFNE DOHELP HelpMsg fcb C$LF fcc "Use: Attr <pathname> {[-]<opts>}"
--- a/level1/cmds/dw.a Wed Jan 23 21:23:45 2013 -0600 +++ b/level1/cmds/dw.a Sat Jan 26 08:26:31 2013 -0600 @@ -17,9 +17,7 @@ rev set $00 edition set 1 - psect dw_a,$01,$80,1,200,start - - vsect + section data pbuffer rmb 256 pbend rmb 2 cbuffer rmb 256 @@ -30,6 +28,9 @@ die rmb 1 endsect + section text +* psect dw_a,$01,$80,1,200,start + * signal handling icpt lda #1 sta die,u
--- a/level1/cmds/inetd.a Wed Jan 23 21:23:45 2013 -0600 +++ b/level1/cmds/inetd.a Sat Jan 26 08:26:31 2013 -0600 @@ -23,11 +23,7 @@ rev set $00 edition set 3 - psect inetd_a,$01,$80,1,200,start - -DEBUG equ 1 - - vsect + section data targetport rmb 2 netdatardy rmb 1 nbufferl equ 128 @@ -47,6 +43,12 @@ tmodeparams rmb 128 endsect +* psect inetd_a,$01,$80,1,200,start + section text + +DEBUG equ 1 + + NetSig equ 2 tmode fcs /tmode/
--- a/level1/cmds/load.a Wed Jan 23 21:23:45 2013 -0600 +++ b/level1/cmds/load.a Sat Jan 26 08:26:31 2013 -0600 @@ -17,12 +17,13 @@ rev set $00 edition set 4 - psect load_a,Prgrm+Objct,ReEnt+rev,edition,200,start - - vsect dp + section data u0000 rmb 200 endsect +* psect load_a,Prgrm+Objct,ReEnt+rev,edition,200,start + section text + start os9 F$Load bcs Exit lda ,x
--- a/level1/cmds/tee.a Wed Jan 23 21:23:45 2013 -0600 +++ b/level1/cmds/tee.a Sat Jan 26 08:26:31 2013 -0600 @@ -19,15 +19,16 @@ rev set $00 edition set 2 - psect tee_a,Prgrm+Objct,ReEnt+rev,edition,200,start - - vsect dp + section data u0000 rmb 1 parray rmb 13 pcount rmb 1 buff rmb 200 endsect +* psect tee_a,Prgrm+Objct,ReEnt+rev,edition,200,start + section text + start clrb clr pcount clear path counter cmpy #$0000 any parameters?
--- a/level1/cmds/telnet.a Wed Jan 23 21:23:45 2013 -0600 +++ b/level1/cmds/telnet.a Sat Jan 26 08:26:31 2013 -0600 @@ -49,9 +49,7 @@ rev set $00 edition set 5 - psect telnet_a,tylg,atrv,edition,200,start - - vsect + section data connected rmb 1 netdatardy rmb 1 keydatardy rmb 1 @@ -75,6 +73,9 @@ telctrlbuf rmb 3 endsect +* psect telnet_a,tylg,atrv,edition,200,start + section text + TELESCAPE equ 'Y-$40 * CTRL-Y NetSig equ 32
--- a/level1/cmds/touch.a Wed Jan 23 21:23:45 2013 -0600 +++ b/level1/cmds/touch.a Sat Jan 26 08:26:31 2013 -0600 @@ -28,10 +28,8 @@ rev set $00 edition set 2 - psect touch_a,Prgrm+Objct,ReEnt+rev,edition,200,start - * Your utility's static storage vars go here - vsect dp + section data parmptr rmb 2 pointer to our command line params bufptr rmb 2 pointer to user expandable buffer bufsiz rmb 2 size of user expandable buffer @@ -50,7 +48,7 @@ * Some utilities won't need this, some will. * Currently set up to be larger for Level 2 than Level 1 * Note: this buffer must come just before the stack - vsect + section data IFGT Level-1 bigbuff rmb 8*1024 8K default buffer for Level 2 ELSE @@ -58,6 +56,9 @@ ENDC endsect +* psect touch_a,Prgrm+Objct,ReEnt+rev,edition,200,start + section text + * Place constant strings here IFNE DOHELP HlpMsg fcb C$LF
--- a/level1/cmds/tsmon.a Wed Jan 23 21:23:45 2013 -0600 +++ b/level1/cmds/tsmon.a Sat Jan 26 08:26:31 2013 -0600 @@ -17,15 +17,16 @@ rev set $00 edition set 2 - psect tsmon_a,Prgrm+Objct,ReEnt+rev,edition,200,start - - vsect dp + section data childid rmb 1 parmptr rmb 2 parmlen rmb 2 inbuff rmb 128 endsect +* psect tsmon_a,Prgrm+Objct,ReEnt+rev,edition,200,start + section text + Login fcc "LOGIN" LoginPrm fcb C$CR
--- a/level2/coco3/cmds/makefile Wed Jan 23 21:23:45 2013 -0600 +++ b/level2/coco3/cmds/makefile Sat Jan 26 08:26:31 2013 -0600 @@ -6,7 +6,7 @@ DEPENDS = ./makefile AFLAGS += --includedir=$(NITROS9DIR)/3rdparty/packages/basic09 -LFLAGS += -l=$(NITROS9DIR)/lib/net.l -l=$(NITROS9DIR)/lib/alib.l -l=$(NITROS9DIR)/lib/sys6809l1.l +LFLAGS += --library=$(NITROS9DIR)/lib/net.l --library=$(NITROS9DIR)/lib/alib.l --library=$(NITROS9DIR)/lib/sys6809l1.l CMDS = asm attr backup binex build cmp cobbler copy cputype \ date dcheck debug ded deiniz del deldir devs dir dirsort disasm \
--- a/lib/alib/asc_bin.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/asc_bin.a Sat Jan 26 08:26:31 2013 -0600 @@ -16,7 +16,7 @@ ttl Assembler Library Module - psect ASC_BIN,0,0,0,0,0 + section .text ASC_BIN: clra msb/lsb=0 @@ -57,4 +57,4 @@ endsect - \ No newline at end of file +
--- a/lib/alib/b09strlen.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/b09strlen.a Sat Jan 26 08:26:31 2013 -0600 @@ -14,7 +14,7 @@ ttl Assembler Library Module - psect B09STRLEN,0,0,0,0,0 + section .text B09STRLEN: pshs d,x,y
--- a/lib/alib/bin2hex.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/bin2hex.a Sat Jan 26 08:26:31 2013 -0600 @@ -12,7 +12,7 @@ nam Convert Byte to Hex ttl Assembler Library Module - psect BIN2HEX,0,0,0,0,0 + section .text BIN2HEX: pshs b
--- a/lib/alib/bin_asc.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/bin_asc.a Sat Jan 26 08:26:31 2013 -0600 @@ -13,7 +13,7 @@ ttl Assembler Library Module - psect BIN_ASC,0,0,0,0,0 + section .text BIN_ASC: pshs a,b,x save registers
--- a/lib/alib/bin_dec.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/bin_dec.a Sat Jan 26 08:26:31 2013 -0600 @@ -16,12 +16,11 @@ ttl Assembler Library Module - psect BIN_DEC,0,0,0,0,0 - - vsect + section .bss nega rmb 1 endsect + section .text BIN_SDEC: clr nega,u tsta
--- a/lib/alib/bin_hex.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/bin_hex.a Sat Jan 26 08:26:31 2013 -0600 @@ -17,7 +17,7 @@ ttl Assembler Library Module - psect BIN_HEX,0,0,0,0,0 + section .text BIN_HEX: pshs d,x @@ -32,4 +32,4 @@ endsect - \ No newline at end of file +
--- a/lib/alib/bin_rom.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/bin_rom.a Sat Jan 26 08:26:31 2013 -0600 @@ -24,7 +24,7 @@ ttl Assembler Library Module - psect BINROM,0,0,0,0,0 + section .text BIN_ROM:
--- a/lib/alib/compare.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/compare.a Sat Jan 26 08:26:31 2013 -0600 @@ -20,14 +20,15 @@ ttl Assembler Library Module - Psect COMPARE,0,0,0,0,0 - - vsect dp + section .bss CASEMTCH: rmb 1 endsect + section .text + + COMPARE: pshs d tst CASEMTCH need to covert to upper?
--- a/lib/alib/datestr.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/datestr.a Sat Jan 26 08:26:31 2013 -0600 @@ -17,7 +17,7 @@ ttl Assembler Library Module - psect DATESTR,0,0,0,0,0 + section .text DATESTR: pshs d,x,y,u
--- a/lib/alib/dec_bin.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/dec_bin.a Sat Jan 26 08:26:31 2013 -0600 @@ -15,12 +15,12 @@ ttl Assembler Library Module - psect DEC_BIN,0,0,0,0,0 - - vsect + section .bss nega rmb 1 endsect + section .text + DEC_BIN: clra set result to 0 clrb
--- a/lib/alib/dectab.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/dectab.a Sat Jan 26 08:26:31 2013 -0600 @@ -8,7 +8,7 @@ ttl Assembler Library Module - psect DECTAB$,0,0,0,0,0 + section .text DECTAB$: fdb 10000,1000,100,10,1,0
--- a/lib/alib/div16x16.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/div16x16.a Sat Jan 26 08:26:31 2013 -0600 @@ -13,12 +13,12 @@ ttl Assembler Library Module - psect DIV16,0,0,0,0,0 - - vsect + section .bss negcount rmb 1 endsect + section .text + * Signed Divide SDIV16: clr negcount,u
--- a/lib/alib/div16x8.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/div16x8.a Sat Jan 26 08:26:31 2013 -0600 @@ -14,12 +14,12 @@ ttl Assembler Library Module - psect DIV168,0,0,0,0,0 - - vsect + section .bss negcount rmb 1 endsect + section .text + * Signed Divide SDIV168: clr negcount,u
--- a/lib/alib/div8x8.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/div8x8.a Sat Jan 26 08:26:31 2013 -0600 @@ -13,12 +13,12 @@ ttl Assembler Library Module - psect DIV88,0,0,0,0,0 - - vsect + section .bss negcount rmb 1 endsect + section .text + * Signed Divide SDIV88: clr negcount,u
--- a/lib/alib/fgetc.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/fgetc.a Sat Jan 26 08:26:31 2013 -0600 @@ -15,7 +15,7 @@ ttl Assembler Library Module - psect FGETC,0,0,0,0,0 + section .text FGETC: pshs a,x,y
--- a/lib/alib/fgets.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/fgets.a Sat Jan 26 08:26:31 2013 -0600 @@ -21,7 +21,7 @@ ttl Assembler Library Module - psect FGETS,0,0,0,0,0 + section .text FGETS_NOCR: pshs d,x
--- a/lib/alib/fgety.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/fgety.a Sat Jan 26 08:26:31 2013 -0600 @@ -15,7 +15,7 @@ ttl Assembler Library Module - psect FGETY,0,0,0,0,0 + section .text FGETY: pshs x,y
--- a/lib/alib/fputc.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/fputc.a Sat Jan 26 08:26:31 2013 -0600 @@ -14,7 +14,7 @@ ttl Assembler Library Module - psect FPUTC,0,0,0,0,0 + section .text FPUTC: pshs b,x,y
--- a/lib/alib/fputcr.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/fputcr.a Sat Jan 26 08:26:31 2013 -0600 @@ -14,7 +14,7 @@ ttl Assembler Library Module - psect FPUTCR,0,0,0,0,0 + section .text FPUTCR: ldb #$0d
--- a/lib/alib/fputs.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/fputs.a Sat Jan 26 08:26:31 2013 -0600 @@ -16,7 +16,7 @@ ttl Assembler Library Module - psect FPUTS,0,0,0,0,0 + section .text FPUTS: pshs a,x,y,u
--- a/lib/alib/fputspace.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/fputspace.a Sat Jan 26 08:26:31 2013 -0600 @@ -13,7 +13,7 @@ ttl Assembler Library Module - psect FPUTSPACE,0,0,0,0,0 + section .text FPUTSPACE: ldb #$20
--- a/lib/alib/fputy.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/fputy.a Sat Jan 26 08:26:31 2013 -0600 @@ -14,7 +14,7 @@ ttl Assembler Library Module - psect FPUTY,0,0,0,0,0 + section .text FPUTY: pshs x,y
--- a/lib/alib/frewind.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/frewind.a Sat Jan 26 08:26:31 2013 -0600 @@ -14,7 +14,7 @@ ttl Assembler Library Module - psect FREWIND,0,0,0,0,0 + section .text FREWIND: pshs x,u
--- a/lib/alib/ftoeof.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/ftoeof.a Sat Jan 26 08:26:31 2013 -0600 @@ -14,7 +14,7 @@ ttl Assembler Library Module - psect FTOEOF,0,0,0,0,0 + section .text FTOEOF: pshs x,u
--- a/lib/alib/ftrans.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/ftrans.a Sat Jan 26 08:26:31 2013 -0600 @@ -17,7 +17,7 @@ nam File data transfer ttl Assembler Library Module - csect + section .data * this sets up a stack frame used for variable references @@ -31,7 +31,7 @@ endsect - psect FTRANS,0,0,0,0,0 + section .text FTRANS: pshs a,b,x,y,u
--- a/lib/alib/getc.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/getc.a Sat Jan 26 08:26:31 2013 -0600 @@ -15,7 +15,7 @@ ttl Assembler Library Module - psect GETC,0,0,0,0,0 + section .text GETC: clra std in
--- a/lib/alib/getfmd.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/getfmd.a Sat Jan 26 08:26:31 2013 -0600 @@ -19,7 +19,7 @@ nam Get Last Modified Date ttl Assembler Library Module - psect GETFMD,0,0,0,0,0 + section .text BUFSIZ equ 8
--- a/lib/alib/gets.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/gets.a Sat Jan 26 08:26:31 2013 -0600 @@ -18,7 +18,7 @@ ttl Assembler Library Module - psect GETS,0,0,0,0,0 + section .text GETS: pshs a
--- a/lib/alib/gety.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/gety.a Sat Jan 26 08:26:31 2013 -0600 @@ -15,7 +15,7 @@ ttl Assembler Library Module - psect GETY,0,0,0,0,0 + section .text GETY: pshs a
--- a/lib/alib/hex_bin.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/hex_bin.a Sat Jan 26 08:26:31 2013 -0600 @@ -15,7 +15,7 @@ nam Convert Hex String to Binary ttl Assembler Library Module - psect HEX_BIN,0,0,0,0,0 + section .text HEX_BIN: @@ -76,4 +76,4 @@ endsect - \ No newline at end of file +
--- a/lib/alib/inkey.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/inkey.a Sat Jan 26 08:26:31 2013 -0600 @@ -16,7 +16,7 @@ ttl Assembler Library Module - psect INKEY,0,0,0,0,0 + section .text INKEY: clra std in
--- a/lib/alib/is_alnum.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/is_alnum.a Sat Jan 26 08:26:31 2013 -0600 @@ -13,7 +13,7 @@ ttl Assembler Library Module - psect IS_ALNUM,0,0,0,0,0 + section .text IS_ALNUM:
--- a/lib/alib/is_alpha.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/is_alpha.a Sat Jan 26 08:26:31 2013 -0600 @@ -12,7 +12,7 @@ ttl Assembler Library Module - psect IS_ALPHA,0,0,0,0,0 + section .text IS_ALPHA:
--- a/lib/alib/is_cntrl.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/is_cntrl.a Sat Jan 26 08:26:31 2013 -0600 @@ -13,7 +13,7 @@ ttl Assembler Library Module - psect IS_CNTRL,0,0,0,0,0 + section .text IS_CNTRL:
--- a/lib/alib/is_digit.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/is_digit.a Sat Jan 26 08:26:31 2013 -0600 @@ -12,7 +12,7 @@ ttl Assembler Library Module - psect IS_DIGIT,0,0,0,0,0 + section .text IS_DIGIT:
--- a/lib/alib/is_lower.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/is_lower.a Sat Jan 26 08:26:31 2013 -0600 @@ -12,7 +12,7 @@ ttl Assembler Library Module - psect IS_LOWER,0,0,0,0,0 + section .text IS_LOWER:
--- a/lib/alib/is_print.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/is_print.a Sat Jan 26 08:26:31 2013 -0600 @@ -14,7 +14,7 @@ ttl Assembler Library Module - psect IS_PRINT,0,0,0,0,0 + section .text IS_PRINT: lbsr IS_CNTRL
--- a/lib/alib/is_punct.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/is_punct.a Sat Jan 26 08:26:31 2013 -0600 @@ -13,7 +13,7 @@ ttl Assembler Library Module - psect IS_PUNCT,0,0,0,0,0 + section .text IS_PUNCT:
--- a/lib/alib/is_space.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/is_space.a Sat Jan 26 08:26:31 2013 -0600 @@ -16,7 +16,7 @@ ttl Assembler Library Module - psect IS_SPACE,0,0,0,0,0 + section .text IS_SPACE:
--- a/lib/alib/is_termin.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/is_termin.a Sat Jan 26 08:26:31 2013 -0600 @@ -17,7 +17,7 @@ ttl Assembler Library Module - psect IS_TERMIN,0,0,0,0,0 + section .text IS_TERMIN:
--- a/lib/alib/is_upper.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/is_upper.a Sat Jan 26 08:26:31 2013 -0600 @@ -12,7 +12,7 @@ ttl Assembler Library Module - psect IS_UPPER,0,0,0,0,0 + section .text IS_UPPER:
--- a/lib/alib/is_xdigit.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/is_xdigit.a Sat Jan 26 08:26:31 2013 -0600 @@ -12,7 +12,7 @@ ttl Assembler Library Module - psect IS_XDIGIT,0,0,0,0,0 + section .text IS_XDIGIT:
--- a/lib/alib/jsr_cmd.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/jsr_cmd.a Sat Jan 26 08:26:31 2013 -0600 @@ -28,7 +28,7 @@ nam Jsr to 1 char Command ttl Assembler Library Module - psect JSR_CMD,0,0,0,0,0 + section .text JSR_CMD: tst ,x end of table?
--- a/lib/alib/jsr_cmd2.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/jsr_cmd2.a Sat Jan 26 08:26:31 2013 -0600 @@ -29,7 +29,7 @@ nam Jsr to 2 char Command ttl Assembler Library Module - psect JSR_CMD2,0,0,0,0,0 + section .text JSR_CMD2: tst ,x end of table?
--- a/lib/alib/linedit.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/linedit.a Sat Jan 26 08:26:31 2013 -0600 @@ -24,7 +24,7 @@ ttl Assembler Library Module - psect LINEDIT,0,0,0,0,0 + section .text * these variable are all referenced via the * U stack pointer.
--- a/lib/alib/makefile Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/makefile Sat Jan 26 08:26:31 2013 -0600 @@ -39,13 +39,10 @@ to_sp.r to_non_sp.r memset.r rnd.r -all: ../alib.l ../alib.zip - -../alib.zip: $(SRC) - zip $@ $(SRC) +all: ../alib.l ../alib.l: $(MODS) - $(MERGE) $^ > $@ + lwar -c $@ $? dskclean: clean
--- a/lib/alib/memmove.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/memmove.a Sat Jan 26 08:26:31 2013 -0600 @@ -16,7 +16,7 @@ - psect MEMMOVE,0,0,0,0,0 + section .text MEMMOVE: pshs d,x,y,u
--- a/lib/alib/memset.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/memset.a Sat Jan 26 08:26:31 2013 -0600 @@ -14,7 +14,7 @@ ttl Assembler Library Module - psect MEMSET,0,0,0,0,0 + section .text MEMSET: pshs x,y
--- a/lib/alib/mktemp.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/mktemp.a Sat Jan 26 08:26:31 2013 -0600 @@ -18,7 +18,7 @@ ttl Assembler Library Module - psect MKTEMP,0,0,0,0,0 + section .text MKTEMP: pshs d,x,y
--- a/lib/alib/mult16x16.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/mult16x16.a Sat Jan 26 08:26:31 2013 -0600 @@ -13,7 +13,7 @@ ttl Assembler Library Module - psect MULT16,0,0,0,0,0 + section .text MULT16: PSHS D,X,Y,U save #s and make stack room @@ -44,4 +44,4 @@ endsect - \ No newline at end of file +
--- a/lib/alib/mult16x8.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/mult16x8.a Sat Jan 26 08:26:31 2013 -0600 @@ -14,7 +14,7 @@ ttl Assembler Library Module - psect MULT168,0,0,0,0,0 + section .text MULT168: PSHS A,X save numbers
--- a/lib/alib/parsnstr.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/parsnstr.a Sat Jan 26 08:26:31 2013 -0600 @@ -16,7 +16,7 @@ ttl Assembler Library Module - psect PARSNSTR,0,0,0,0,0 + section .text PARSNSTR:
--- a/lib/alib/print_asc.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/print_asc.a Sat Jan 26 08:26:31 2013 -0600 @@ -11,7 +11,7 @@ ttl Assembler Library Module - psect PRINT_ASC,0,0,0,0,0 + section .text PRINT_ASC: pshs a,x
--- a/lib/alib/print_dec.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/print_dec.a Sat Jan 26 08:26:31 2013 -0600 @@ -12,7 +12,7 @@ ttl Assembler Library Module - psect PRINT_DEC,0,0,0,0,0 + section .text PRINT_DEC: pshs a,x
--- a/lib/alib/print_hex.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/print_hex.a Sat Jan 26 08:26:31 2013 -0600 @@ -12,7 +12,7 @@ ttl Assembler Library Module - psect PRINT_HEX,0,0,0,0,0 + section .text PRINT_HEX: pshs a,x
--- a/lib/alib/prints.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/prints.a Sat Jan 26 08:26:31 2013 -0600 @@ -21,7 +21,7 @@ ttl Assembler Library Module - psect PRINTS,0,0,0,0,0 + section .text PRINTS: pshs x,u
--- a/lib/alib/ptsearch.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/ptsearch.a Sat Jan 26 08:26:31 2013 -0600 @@ -19,11 +19,7 @@ ttl Assembler Library Module - psect PTSEARCH,0,0,0,0,0 - -* set up stack frame for variables - - csect + section .data pattend rmb 2 end of pattern in memory memend rmb 2 realend-pattern size @@ -34,6 +30,10 @@ endsect + section .text + +* set up stack frame for variables + PTSEARCH: pshs d,x,y,u leas -4,s room for temps @@ -87,4 +87,4 @@ endsect - \ No newline at end of file +
--- a/lib/alib/putc.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/putc.a Sat Jan 26 08:26:31 2013 -0600 @@ -13,12 +13,12 @@ ttl Assembler Library Module - psect PUTC,0,0,0,0,0 + section .text PUTC: pshs a lda #1 stn out - bsr FPUTC + lbsr FPUTC puls a,pc endsect
--- a/lib/alib/putcr.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/putcr.a Sat Jan 26 08:26:31 2013 -0600 @@ -14,7 +14,7 @@ ttl Assembler Library Module - psect PUTCR,0,0,0,0,0 + section .text PUTCR: pshs a
--- a/lib/alib/puts.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/puts.a Sat Jan 26 08:26:31 2013 -0600 @@ -14,7 +14,7 @@ ttl Assembler Library Module - psect PUTS,0,0,0,0,0 + section .text PUTS: pshs a
--- a/lib/alib/putspace.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/putspace.a Sat Jan 26 08:26:31 2013 -0600 @@ -13,7 +13,7 @@ ttl Assembler Library Module - psect PUTSPACE,0,0,0,0,0 + section .text PUTSPACE: pshs a
--- a/lib/alib/puty.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/puty.a Sat Jan 26 08:26:31 2013 -0600 @@ -13,12 +13,12 @@ ttl Assembler Library Module - psect PUTY,0,0,0,0,0 + section .text PUTY: pshs a lda #1 stn out - bsr FPUTY + lbsr FPUTY puls a,pc endsect
--- a/lib/alib/rnd.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/rnd.a Sat Jan 26 08:26:31 2013 -0600 @@ -16,14 +16,14 @@ ttl Assembler Library Module - psect Rnd,0,0,0,0,0 - - vsect dp + section .bss SEED rmb 4 endsect + section .text + RND: pshs d,x,u
--- a/lib/alib/sho_regs.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/sho_regs.a Sat Jan 26 08:26:31 2013 -0600 @@ -18,9 +18,7 @@ ttl Assembler Library Module - psect SHO_REGS,0,0,0,0,0 - - csect + section .data count rmb 1 counter for 9 regs. buffer rmb 8 buffer for ascii strings @@ -36,6 +34,8 @@ endsect + section .text + SHO_REGS: leas -2,s room for copy of <S> pshs cc,a,b,dp,x,y,u save rest
--- a/lib/alib/stimestr.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/stimestr.a Sat Jan 26 08:26:31 2013 -0600 @@ -13,7 +13,7 @@ ttl Assembler Library Module - psect STIMESTR,0,0,0,0,0 + section .text STIMESTR: pshs x,y @@ -26,4 +26,4 @@ puls x,y,pc endsect -t \ No newline at end of file +t
--- a/lib/alib/strcat.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/strcat.a Sat Jan 26 08:26:31 2013 -0600 @@ -15,7 +15,7 @@ ttl Assembler Library Module - psect STRCAT,0,0,0,0,0 + section .text STRCAT: pshs d,x,y @@ -28,4 +28,4 @@ endsect - \ No newline at end of file +
--- a/lib/alib/strcmp.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/strcmp.a Sat Jan 26 08:26:31 2013 -0600 @@ -21,7 +21,7 @@ ttl Assembler Library Module - psect STRCMP,0,0,0,0,0 + section .text STRCMP: pshs d
--- a/lib/alib/strcpy.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/strcpy.a Sat Jan 26 08:26:31 2013 -0600 @@ -15,7 +15,7 @@ ttl Assembler Library Module - psect STRCPY,0,0,0,0,0 + section .text STRCPY: pshs d @@ -25,4 +25,4 @@ endsect - \ No newline at end of file +
--- a/lib/alib/strhcpy.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/strhcpy.a Sat Jan 26 08:26:31 2013 -0600 @@ -19,7 +19,7 @@ ttl Assembler Library Module - psect STRHCPY,0,0,0,0,0 + section .text STRHCPY: pshs d @@ -29,4 +29,4 @@ endsect - \ No newline at end of file +
--- a/lib/alib/strhlen.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/strhlen.a Sat Jan 26 08:26:31 2013 -0600 @@ -17,7 +17,7 @@ ttl Assembler Library Module - psect STRHLEN,0,0,0,0,0 + section .text STRHLEN: pshs x @@ -33,4 +33,4 @@ endsect - \ No newline at end of file +
--- a/lib/alib/strlen.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/strlen.a Sat Jan 26 08:26:31 2013 -0600 @@ -12,7 +12,7 @@ ttl Assembler Library Module - psect STRLEN,0,0,0,0,0 + section .text STRLEN: pshs x @@ -27,4 +27,4 @@ endsect - \ No newline at end of file +
--- a/lib/alib/strncmp.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/strncmp.a Sat Jan 26 08:26:31 2013 -0600 @@ -20,7 +20,7 @@ ttl Assembler Library Module - psect STRNCMP,0,0,0,0,0 + section .text STRNCMP:
--- a/lib/alib/strncpy.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/strncpy.a Sat Jan 26 08:26:31 2013 -0600 @@ -17,7 +17,7 @@ ttl Assembler Library Module - psect STRNCPY,0,0,0,0,0 + section .text STRNCPY: pshs d bytes wanted to move @@ -33,4 +33,4 @@ endsect - \ No newline at end of file +
--- a/lib/alib/to_lower.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/to_lower.a Sat Jan 26 08:26:31 2013 -0600 @@ -15,7 +15,7 @@ ttl Assembler Library Module - psect TO_LOWER,0,0,0,0,0 + section .text TO_LOWER: pshs cc @@ -27,4 +27,4 @@ puls cc,pc endsect - \ No newline at end of file +
--- a/lib/alib/to_lowrs.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/to_lowrs.a Sat Jan 26 08:26:31 2013 -0600 @@ -11,7 +11,7 @@ nam Convert String to Lowercase ttl Assembler Library Module - psect TO_LOWRS,0,0,0,0,0 + section .text TO_LOWRS: pshs cc,b,x @@ -19,7 +19,7 @@ loop ldb ,x get char to check beq exit exit if all done - bsr TO_LOWER convert to upper + lbsr TO_LOWER convert to upper stb ,x+ put back in string bra loop loop till done
--- a/lib/alib/to_non_sp.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/to_non_sp.a Sat Jan 26 08:26:31 2013 -0600 @@ -13,7 +13,7 @@ nam Advance to non-space ttl Assembler Library Module - psect TO_NON_SP,0,0,0,0,0 + section .text TO_NON_SP: ldb ,x+
--- a/lib/alib/to_sp.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/to_sp.a Sat Jan 26 08:26:31 2013 -0600 @@ -12,7 +12,7 @@ nam Advance to space ttl Assembler Library Module - psect TO_SP,0,0,0,0,0 + section .text TO_SP: pshs b
--- a/lib/alib/to_upper.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/to_upper.a Sat Jan 26 08:26:31 2013 -0600 @@ -15,7 +15,7 @@ ttl Assembler Library Module - psect TO_UPPER,0,0,0,0,0 + section .text TO_UPPER: pshs cc @@ -27,4 +27,4 @@ puls cc,pc endsect - \ No newline at end of file +
--- a/lib/alib/to_upprs.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/to_upprs.a Sat Jan 26 08:26:31 2013 -0600 @@ -13,7 +13,7 @@ ttl Assembler Library Module - psect TO_UPPRS,0,0,0,0,0 + section .text TO_UPPRS: pshs cc,b,x @@ -21,7 +21,7 @@ loop ldb ,x get char to check beq exit exit if all done - bsr TO_UPPER convert to upper + lbsr TO_UPPER convert to upper stb ,x+ put back in string bra loop
--- a/lib/alib/windefs.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/alib/windefs.a Sat Jan 26 08:26:31 2013 -0600 @@ -9,7 +9,7 @@ ttl Window Definitions - psect Windefs,0,0,0,0,0 + section .text WBColor: equ $1b33 background color WBoldSw: equ $1b3d bold switch
--- a/lib/makefile Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/makefile Sat Jan 26 08:26:31 2013 -0600 @@ -1,11 +1,8 @@ include $(NITROS9DIR)/rules.mak -SRC = os9defs.a scfdefs.a rbfdefs.a pipedefs.a systype.a net.a +SRC = os9s.a scfs.a rbfs.a pipes.a systype.a net.a drivewire.a -all: sys6809l1.l sys6809l2.l sys6309l2.l net.l alib.l sys.zip - -sys.zip: $(SRC) - zip $@ $(SRC) +all: sys6809l1.l sys6809l2.l sys6309l2.l net.l alib.l sys6809l1.l: sys6809l1.a @@ -15,6 +12,8 @@ net.l: net.a +drivewire.l: drivewire.a + alib.l: cd alib; make
--- a/lib/net.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/net.a Sat Jan 26 08:26:31 2013 -0600 @@ -12,13 +12,13 @@ nam net.a ttl network routines - psect net_a,0,0,0,0,0 - - vsect + section .bss nbufferl equ 128 nbuffer rmb nbufferl endsect + section .text + space fcb C$SPAC devnam fcs "/N"
--- a/lib/sys6309l2.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/sys6309l2.a Sat Jan 26 08:26:31 2013 -0600 @@ -2,12 +2,8 @@ Level equ 2 H6309 equ 1 - psect sys_a,0,0,0,0,0 - - use os9defs.a - use rbfdefs.a - use scfdefs.a - use pipedefs.a + use os9.a + use rbf.a + use scf.a + use pipe.a use systype.a - - endsect
--- a/lib/sys6809l1.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/sys6809l1.a Sat Jan 26 08:26:31 2013 -0600 @@ -2,12 +2,8 @@ Level equ 1 H6309 equ 0 - psect sys_a,0,0,0,0,0 - - use os9defs.a - use rbfdefs.a - use scfdefs.a - use pipedefs.a + use os9.a + use rbf.a + use scf.a + use pipe.a use systype.a - - endsect
--- a/lib/sys6809l2.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/sys6809l2.a Sat Jan 26 08:26:31 2013 -0600 @@ -2,12 +2,8 @@ Level equ 2 H6309 equ 0 - psect sys_a,0,0,0,0,0 - - use os9defs.a - use rbfdefs.a - use scfdefs.a - use pipedefs.a + use os9.a + use rbf.a + use scf.a + use pipe.a use systype.a - - endsect
--- a/lib/systype.a Wed Jan 23 21:23:45 2013 -0600 +++ b/lib/systype.a Sat Jan 26 08:26:31 2013 -0600 @@ -86,7 +86,7 @@ ****************** * ACIA type set up * - csect + section .data ACIA6850: RMB 1 MC6850 acia. ACIA6551: RMB 1 SY6551 acia. ACIA2661: RMB 1 SC2661 acia.
--- a/rules.mak Wed Jan 23 21:23:45 2013 -0600 +++ b/rules.mak Sat Jan 26 08:26:31 2013 -0600 @@ -51,8 +51,8 @@ endif # RMA/RLINK -ASM = rma -LINKER = rlink +ASM = lwasm --6309 --format=obj --pragma=pcaspcr,nosymbolcase,condundefzero,undefextern,dollarnotlocal --includedir=. +LINKER = lwlink # Commands MAKDIR = os9 makdir @@ -106,14 +106,14 @@ %.r: %.c $(CC) $(CFLAGS) $< -r -%.l: %.a - $(ASM) $< -o=$@ +%.l: %.r + lwar -c $@ $? %: %.r - $(LINKER) $(LFLAGS) $^ -o=$@ + $(LINKER) $(LFLAGS) $^ -o$@ %.r: %.a - $(ASM) $< -o=$@ + $(ASM) $< -o$@ # File managers %.mn: %.asm