Mercurial > hg > Members > kono > os9 > sbc09
changeset 67:02d742bf52e5
reorganize commands
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 02 Aug 2018 08:30:39 +0900 |
parents | 1ff0a1fdd5d7 |
children | ec9ef70bf6e4 |
files | cmds/Makefile cmds/loop.asm src/os9/level1/cmds/Makefile src/os9/level2/cmds/Makefile src/os9/level2/cmds/defsfile src/os9/level2/cmds/loop.asm |
diffstat | 6 files changed, 257 insertions(+), 154 deletions(-) [+] |
line wrap: on
line diff
--- a/cmds/Makefile Tue Jul 31 22:48:08 2018 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,108 +0,0 @@ -SRC2 = ../src/os9/nitros9-code/level2/cmds -SRC1 = ../src/os9/nitros9-code/level1/cmds - -OBJ2 = dmem mdir mfree mmap pmap proc procs reboot smap - -OBJ1 = asm attr calldbg cmp config copy cputype date debug del deldir devs dir dir_cb dirsort dump echo edit \ - error free help ident irqs link list load login makdir pd procs prompt shellplus sleep tee touch tsmon unlink - -all : $(OBJ2) $(OBJ1) - -A09 = ../src/a09 - -dmem : - $(A09) -l $@.lst -o $@ $(SRC2)/$@.asm - -mdir : - $(A09) -l $@.lst -o $@ $(SRC2)/$@.asm -mfree : - $(A09) -l $@.lst -o $@ $(SRC2)/$@.asm -mmap : - $(A09) -l $@.lst -o $@ $(SRC2)/$@.asm -pmap : - $(A09) -l $@.lst -o $@ $(SRC2)/$@.asm -proc : - $(A09) -l $@.lst -o $@ $(SRC2)/$@.asm -procs : - $(A09) -l $@.lst -o $@ $(SRC2)/$@.asm -reboot : - $(A09) -l $@.lst -o $@ $(SRC2)/$@.asm -smap : - $(A09) -l $@.lst -o $@ $(SRC2)/$@.asm - -asm : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -attr : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -calldbg : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -cmp : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -config : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -copy : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -cputype : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -date : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -debug : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -del : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -deldir : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -devs : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -dir : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -dir_cb : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -dirsort : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -di.asm : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -dump : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -dw.as : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -echo : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -edit : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -error : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -free : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -help : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -ident : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -irqs : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -link : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -list : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -load : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -login : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -makdir : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -pd : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -prompt : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -shellplus : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -sleep : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -tee : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -touch : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -tsmon : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm -unlink : - $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm
--- a/cmds/loop.asm Tue Jul 31 22:48:08 2018 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,46 +0,0 @@ -******************************************************************** -* Cmp - Binary file comparison utility -* -* $Id$ -* -* Edt/Rev YYYY/MM/DD Modified by -* Comment -* ------------------------------------------------------------------ -* 1 2003/01/20 Boisy G. Pitre -* Rewritten in assembly for size. - - nam Cmp - ttl Binary file comparison utility - - ifp1 - use defsfile - endc - -* Module header definitions -tylg set Prgrm+Objct -atrv set ReEnt+rev -rev set $00 -edition set 1 - - mod eom,name,tylg,atrv,start,size - - org 0 -count rmb 2 -size equ . - -name fcs /Loop/ - fcb edition - -start ldy #4000 -l1 ldx #0 -l0 leax -1,x - bne l0 - leay -1,y - bne l1 -Exit clrb - os9 F$Exit - - - emod -eom equ * - end
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/os9/level1/cmds/Makefile Thu Aug 02 08:30:39 2018 +0900 @@ -0,0 +1,102 @@ +SRC2 = ../src/os9/nitros9-code/level2/cmds +SRC1 = ../src/os9/nitros9-code/level1/cmds + +OBJ2 = mdir mfree proc procs reboot + +OBJ1 = asm attr calldbg cmp config copy cputype date debug del deldir devs dir dir_cb dirsort dump echo edit \ + error free help ident irqs link list load login makdir pd procs prompt shellplus sleep tee touch tsmon unlink + +all : $(OBJ2) $(OBJ1) + +A09 = ../src/a09 + + +mdir : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +mfree : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +proc : + $(A09) -l $@.lst -o $@ $(SRC2)/$@.asm +procs : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +reboot : + $(A09) -l $@.lst -o $@ $(SRC2)/$@.asm +smap : + $(A09) -l $@.lst -o $@ $(SRC2)/$@.asm + +asm : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +attr : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +calldbg : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +cmp : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +config : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +copy : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +cputype : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +date : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +debug : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +del : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +deldir : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +devs : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +dir : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +dir_cb : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +dirsort : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +disasm : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +dump : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +dw.as : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +echo : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +edit : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +error : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +free : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +help : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +ident : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +irqs : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +link : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +list : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +load : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +login : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +makdir : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +pd : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +prompt : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +shellplus : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +sleep : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +tee : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +touch : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +tsmon : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +unlink : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/os9/level2/cmds/Makefile Thu Aug 02 08:30:39 2018 +0900 @@ -0,0 +1,106 @@ +SRC2 = ../src/os9/nitros9-code/level2/cmds +SRC1 = ../src/os9/nitros9-code/level1/cmds + +OBJ2 = dmem mdir mfree mmap pmap proc procs reboot smap + +OBJ1 = asm attr calldbg cmp config copy cputype date debug del deldir devs dir dir_cb dirsort dump echo edit \ + error free help ident irqs link list load login makdir pd procs prompt shellplus sleep tee touch tsmon unlink + +all : $(OBJ2) $(OBJ1) + +A09 = ../src/a09 + +dmem : + $(A09) -l $@.lst -o $@ $(SRC2)/$@.asm + +mdir : + $(A09) -l $@.lst -o $@ $(SRC2)/$@.asm +mfree : + $(A09) -l $@.lst -o $@ $(SRC2)/$@.asm +mmap : + $(A09) -l $@.lst -o $@ $(SRC2)/$@.asm +pmap : + $(A09) -l $@.lst -o $@ $(SRC2)/$@.asm +proc : + $(A09) -l $@.lst -o $@ $(SRC2)/$@.asm +procs : + $(A09) -l $@.lst -o $@ $(SRC2)/$@.asm +reboot : + $(A09) -l $@.lst -o $@ $(SRC2)/$@.asm +smap : + $(A09) -l $@.lst -o $@ $(SRC2)/$@.asm + +asm : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +attr : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +calldbg : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +cmp : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +config : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +copy : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +cputype : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +date : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +debug : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +del : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +deldir : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +devs : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +dir : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +dir_cb : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +dirsort : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +disasm : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +dump : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +echo : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +edit : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +error : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +free : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +help : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +ident : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +irqs : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +link : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +list : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +load : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +login : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +makdir : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +pd : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +prompt : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +shellplus : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +sleep : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +tee : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +touch : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +tsmon : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm +unlink : + $(A09) -l $@.lst -o $@ $(SRC1)/$@.asm
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/os9/level2/cmds/defsfile Thu Aug 02 08:30:39 2018 +0900 @@ -0,0 +1,3 @@ +* Main defsfile for OS-9 Level One V1 +* + use ../desfile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/os9/level2/cmds/loop.asm Thu Aug 02 08:30:39 2018 +0900 @@ -0,0 +1,46 @@ +******************************************************************** +* Cmp - Binary file comparison utility +* +* $Id$ +* +* Edt/Rev YYYY/MM/DD Modified by +* Comment +* ------------------------------------------------------------------ +* 1 2003/01/20 Boisy G. Pitre +* Rewritten in assembly for size. + + nam Cmp + ttl Binary file comparison utility + + ifp1 + use defsfile + endc + +* Module header definitions +tylg set Prgrm+Objct +atrv set ReEnt+rev +rev set $00 +edition set 1 + + mod eom,name,tylg,atrv,start,size + + org 0 +count rmb 2 +size equ . + +name fcs /Loop/ + fcb edition + +start ldy #4000 +l1 ldx #0 +l0 leax -1,x + bne l0 + leay -1,y + bne l1 +Exit clrb + os9 F$Exit + + + emod +eom equ * + end