annotate level1/cmds/mpi.asm @ 2307:2f90c1624ab4

Removed earlier port signal defintions, now S$Peer is used
author boisy
date Sun, 03 Jan 2010 14:29:29 +0000
parents 13f5293e67d0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1523
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
1 ********************************************************************
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
2 * mpi - Determines if a Multi-Pak Interface is present
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
3 *
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
4 * $Id$
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
5 *
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
6 * Edt/Rev YYYY/MM/DD Modified by
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
7 * Comment
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
8 * ------------------------------------------------------------------
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
9 * 1 2004/03/16 Rodney Hamilton
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
10 * Created.
1552
13f5293e67d0 Fixed a bug in the mpi utility
boisy
parents: 1531
diff changeset
11 *
13f5293e67d0 Fixed a bug in the mpi utility
boisy
parents: 1531
diff changeset
12 * 1r1 2004/05/08 Boisy G. Pitre
13f5293e67d0 Fixed a bug in the mpi utility
boisy
parents: 1531
diff changeset
13 * Fixed a problem where wrong message was being reported due to buggy
13f5293e67d0 Fixed a bug in the mpi utility
boisy
parents: 1531
diff changeset
14 * code, placed there by me :(
1523
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
15
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
16 nam mpi
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
17 ttl Determines if a Multi-Pak is present
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
18
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
19 ifp1
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
20 use defsfile
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
21 endc
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
22
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
23 tylg set Prgrm+Objct
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
24 atrv set ReEnt+rev
1552
13f5293e67d0 Fixed a bug in the mpi utility
boisy
parents: 1531
diff changeset
25 rev set $01
1523
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
26 edition set 1
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
27
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
28 mod eom,name,tylg,atrv,start,size
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
29
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
30 org 0
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
31 rmb 200
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
32 size equ .
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
33
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
34 name fcs /mpi/
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
35 fcb edition
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
36
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
37 no fcc "No "
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
38 mpi fcc "MPI found"
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
39 fcb C$CR
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
40
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
41 start equ *
1552
13f5293e67d0 Fixed a bug in the mpi utility
boisy
parents: 1531
diff changeset
42 tfr cc,b save CC into B
13f5293e67d0 Fixed a bug in the mpi utility
boisy
parents: 1531
diff changeset
43 ldx #$FF7F get MPI slot sel reg contents
13f5293e67d0 Fixed a bug in the mpi utility
boisy
parents: 1531
diff changeset
44 lda #$CC load A with %11001100
13f5293e67d0 Fixed a bug in the mpi utility
boisy
parents: 1531
diff changeset
45 orcc #IntMasks mask interrupts from this point on
13f5293e67d0 Fixed a bug in the mpi utility
boisy
parents: 1531
diff changeset
46 eora ,x XOR with MPI slot sel reg contents
13f5293e67d0 Fixed a bug in the mpi utility
boisy
parents: 1531
diff changeset
47 sta ,x and save...
13f5293e67d0 Fixed a bug in the mpi utility
boisy
parents: 1531
diff changeset
48 cmpa ,x same?
13f5293e67d0 Fixed a bug in the mpi utility
boisy
parents: 1531
diff changeset
49 beq is_mpi branch if so
13f5293e67d0 Fixed a bug in the mpi utility
boisy
parents: 1531
diff changeset
50 leax <no,pc else point to "no"...
13f5293e67d0 Fixed a bug in the mpi utility
boisy
parents: 1531
diff changeset
51 bra doit and DO IT!
13f5293e67d0 Fixed a bug in the mpi utility
boisy
parents: 1531
diff changeset
52 is_mpi leax <mpi,pc or point to "yes"...
13f5293e67d0 Fixed a bug in the mpi utility
boisy
parents: 1531
diff changeset
53 doit tfr b,cc restore original CC
1523
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
54 ldy #100
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
55 lda #$01
1552
13f5293e67d0 Fixed a bug in the mpi utility
boisy
parents: 1531
diff changeset
56 os9 I$WritLn write the message at ,X
1523
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
57 bcs L001C
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
58 clrb
1552
13f5293e67d0 Fixed a bug in the mpi utility
boisy
parents: 1531
diff changeset
59 L001C os9 F$Exit exit...
1523
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
60
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
61 emod
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
62 eom equ *
82200a2c5721 Added mpi utility
boisy
parents:
diff changeset
63 end