changeset 1523:82200a2c5721

Added mpi utility
author boisy
date Wed, 17 Mar 2004 16:52:01 +0000
parents c1ea211c5750
children 98b6eddbf729
files level1/ChangeLog level1/cmds/makefile level1/cmds/mpi.asm level2/cmds/makefile level2/coco3/ChangeLog level2/coco3_6309/ChangeLog
diffstat 6 files changed, 68 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/level1/ChangeLog	Thu Feb 19 03:24:41 2004 +0000
+++ b/level1/ChangeLog	Wed Mar 17 16:52:01 2004 +0000
@@ -1,4 +1,5 @@
 NitrOS-9/6809 Level 1 V03.02.01:
+- The mpi utility has been added to the CMDS directory.
 - The dmode utility has been updated.
 - Shell+ has been backported and is now the default shell for Level 1.
 - vrn has been backported and the nil descriptor now requires vrn.
--- a/level1/cmds/makefile	Thu Feb 19 03:24:41 2004 +0000
+++ b/level1/cmds/makefile	Wed Mar 17 16:52:01 2004 +0000
@@ -9,7 +9,7 @@
 		date dcheck debug ded deiniz del deldir devs dir disasm \
 		display dmode dsave dump echo edit error exbin exmode format \
 		free grfo help ident iniz irqs link list load login makdir \
-		mdir merge mfree os9gen padrom park prompt printerr procs pwd pxd \
+		mdir merge mfree mpi os9gen padrom park prompt printerr procs pwd pxd \
 		rename runb save setime shellplus shell_21 sleep \
 		tee tmode touch tsmon tuneport unlink verify xmode
 SUBS		= gfx inkey syscall
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/level1/cmds/mpi.asm	Wed Mar 17 16:52:01 2004 +0000
@@ -0,0 +1,63 @@
+********************************************************************
+* mpi - Determines if a Multi-Pak Interface is present
+*
+* $Id$
+*
+* Edt/Rev  YYYY/MM/DD  Modified by
+* Comment
+* ------------------------------------------------------------------
+*   1      2004/03/16  Rodney Hamilton
+* Created.
+
+         nam   mpi
+         ttl   Determines if a Multi-Pak is present
+
+         ifp1
+         use   defsfile
+         use   rbfdefs
+         endc
+
+tylg     set   Prgrm+Objct   
+atrv     set   ReEnt+rev
+rev      set   $00
+edition  set   1
+
+         mod   eom,name,tylg,atrv,start,size
+
+         org   0
+         rmb   200
+size     equ   .
+
+name     fcs   /mpi/
+         fcb   edition
+
+no	fcc   "No "
+mpi	fcc   "MPI found"
+	fcb   C$CR
+
+start	equ   *
+        tfr   cc,a
+        pshs  a
+	ldx   #$FF7F
+	lda   #$CC
+        orcc  #IntMasks
+	eora  ,x
+	sta   ,x
+	cmpa  ,x
+        puls  a
+        tfr   a,cc
+	beq   is_mpi
+	leax  <no,pc
+	bra   doit
+is_mpi	leax  <mpi,pc
+doit	equ   *
+	ldy   #100
+	lda   #$01
+	os9   I$WritLn 
+	bcs   L001C
+	clrb 
+L001C	os9   F$Exit 
+
+	emod
+eom	equ   *
+	end
--- a/level2/cmds/makefile	Thu Feb 19 03:24:41 2004 +0000
+++ b/level2/cmds/makefile	Wed Mar 17 16:52:01 2004 +0000
@@ -8,7 +8,7 @@
 		date dcheck debug ded deiniz del deldir devs dir dirm disasm \
 		display dmem dmode dsave dump echo edit error exbin exmode \
 		format free grfdrv help ident iniz irqs link list load login \
-		makdir mdir merge mfree mmap modpatch montype os9gen padrom park \
+		makdir mdir merge mfree mmap modpatch montype mpi os9gen padrom park \
 		prompt pmap proc procs pwd pxd reboot rename runb save setime \
 		shell_21 shellplus sleep smap tee tmode touch \
 		tsmon tuneport unlink verify wcreate xmode
--- a/level2/coco3/ChangeLog	Thu Feb 19 03:24:41 2004 +0000
+++ b/level2/coco3/ChangeLog	Wed Mar 17 16:52:01 2004 +0000
@@ -1,4 +1,5 @@
 NitrOS-9/6809 Level 2 V03.02.01:
+- The mpi utility has been added to the CMDS directory.
 - The dmode utility has been updated.
 - sacia has been renamed to sc6551.
 - Several bugs in dsave's -b option have been fixed.
--- a/level2/coco3_6309/ChangeLog	Thu Feb 19 03:24:41 2004 +0000
+++ b/level2/coco3_6309/ChangeLog	Wed Mar 17 16:52:01 2004 +0000
@@ -1,4 +1,5 @@
 NitrOS-9/6809 Level 2 V03.02.01:
+- The mpi utility has been added to the CMDS directory.
 - The dmode utility has been updated.
 - sacia has been renamed to sc6551.
 - Several bugs in dsave's -b option have been fixed.