annotate level1/cmds/megaread.asm @ 1891:5f8822fb42e0

shortened H6309L2 code to fit within $1D0 bytes
author robert
date Fri, 14 Oct 2005 01:53:05 +0000
parents d73d05da6483
children d5b309f1983f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1542
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
1 ********************************************************************
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
2 * MegaRead - Disk Performance Utility
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
3 *
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
4 * $Id$
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
5 *
1544
e548e2df2006 Megaread fixed by Rodney
boisy
parents: 1543
diff changeset
6 * Modified from an original program by Caveh Jalali
1542
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
7 *
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
8 * Edt/Rev YYYY/MM/DD Modified by
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
9 * Comment
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
10 * ------------------------------------------------------------------
1544
e548e2df2006 Megaread fixed by Rodney
boisy
parents: 1543
diff changeset
11 * 01/01 1987/05/30 Bruce Isted (CIS PPN 76625,2273)
e548e2df2006 Megaread fixed by Rodney
boisy
parents: 1543
diff changeset
12 * Released to the public domain
1542
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
13 *
1544
e548e2df2006 Megaread fixed by Rodney
boisy
parents: 1543
diff changeset
14 * 01/00 2004/04/22 Boisy G. Pitre
e548e2df2006 Megaread fixed by Rodney
boisy
parents: 1543
diff changeset
15 * Ported to NitrOS-9 style, no error on exit
e548e2df2006 Megaread fixed by Rodney
boisy
parents: 1543
diff changeset
16 *
e548e2df2006 Megaread fixed by Rodney
boisy
parents: 1543
diff changeset
17 * 01/01 2004/04/22 Rodney V. Hamilton
e548e2df2006 Megaread fixed by Rodney
boisy
parents: 1543
diff changeset
18 * Added EOF check for floppy
1528
1c5a50add566 Megaread added
boisy
parents:
diff changeset
19
1542
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
20 nam MegaRead
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
21 ttl Disk Performance Utilty
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
22
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
23 IFP1
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
24 use defsfile
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
25 ENDC
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
26
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
27 tylg set Prgrm+Objct
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
28 atrv set ReEnt+rev
1544
e548e2df2006 Megaread fixed by Rodney
boisy
parents: 1543
diff changeset
29 rev set $01
1542
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
30 edition set 1
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
31
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
32 ReadK equ 1024 1024K is 1 megabyte (modify as desired)
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
33
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
34 mod eom,name,tylg,atrv,start,size
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
35
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
36 org 0
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
37 KiloBuff rmb $0400
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
38 rmb 200 stack space
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
39 size equ .
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
40
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
41 name fcs /MegaRead/
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
42 fcb edition
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
43
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
44 start ldx #ReadK
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
45 loop pshs x save counter
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
46 leax KiloBuff,u point (X) to buffer
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
47 ldy #$0400 read 1K
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
48 clra std input
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
49 os9 I$Read
1544
e548e2df2006 Megaread fixed by Rodney
boisy
parents: 1543
diff changeset
50 bcs eofchk
1542
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
51 puls x recover counter
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
52 leax -1,x done yet?
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
53 bne loop no, go get another 1K
1544
e548e2df2006 Megaread fixed by Rodney
boisy
parents: 1543
diff changeset
54 bra exitok yes, exit
1554
d73d05da6483 Rodney fixed slight bug
boisy
parents: 1544
diff changeset
55 eofchk cmpb #E$EOF end of media?
1544
e548e2df2006 Megaread fixed by Rodney
boisy
parents: 1543
diff changeset
56 bne exit no, a real error
e548e2df2006 Megaread fixed by Rodney
boisy
parents: 1543
diff changeset
57 exitok clrb
e548e2df2006 Megaread fixed by Rodney
boisy
parents: 1543
diff changeset
58 exit os9 F$Exit
e548e2df2006 Megaread fixed by Rodney
boisy
parents: 1543
diff changeset
59
1542
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
60 emod
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
61 eom equ *
16d293af795b Obtained megaread source from RTSI
boisy
parents: 1528
diff changeset
62 end