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2͊y2>{ Ì>{$!6#6ͳδ6#6Ϳ$!δ^#V+q#pi`"z{!"`i"y= 2y2 *P" :R2 T!"P2R"@2B*!:{>2@*@ڙڙ:2/O:2:2!6U~7z½7:_!`i#|/g}/o#޴|}4߾߾ W!?Hw+>!jyw+͕:?>+%www;!">!͕,%12222!|2":2! 6t!E,P Morrow Designs 48K CP/M 2.2 E4 AB: DJ/DMA 8", CD: DJ/DMA 5 1/4", E: HDC/DMA M5 $@B B HH II$@DI ABI$"$H$H@$$I! H*  $H@@A I $D!!$I"BI"I"@$BIIH$$MOVCPM COMjASM COM@ BIOS ASM` BOOT ASMCBIOS ASMEDDT COM&DEBLOCK ASMP !DISKDEF LIB1"#$%DUMP ASM!&'(DUMP COM)ED COM4*+,-LOAD COM.PIP COM:/012STAT COM)345SUBMIT COM 6SYSGEN COM 7XSUB COM8MBASIC COM9:;<=>?@MBASIC COM>ABCDMOVCPM5 COMjEFGHIJKMOVCPM10COMjLMNOPQRMOVCPM16COMjSTUVWXYCBIOS B Z[\]^_`aCBIOS B bcdBOOTMW ASMAeghijBOOTMW COM fFORMATMWCOMklmnopqrFORMATMWCOMQstuvwxFORMATMWDOCyzDOWN COM{CHECK COME|}~SW901 010 >&2P!"Q2S:ʑ!@"~ʭqʭ4#¡z5û#)# )% \X COPYRIGHT (C) 1979, DIGITAL RESEARCH _͌> ͒> Ò> Ò͘~#͌ì _2<2 !2:2a{_:ʖ:>Ľʖ:=2–!B!6#5ʖ:Ľ!ͬʧ )!F#xʺ~0wëw!" !~6ͽ:ý(!SW901 016 SW901 000 SW901 005 CBIOS A 7CBIOS B CBIOS B CBIOS B CBIOS B CBIOS B CBIOS B CBIOS B CBIOS B CBIOS B CBIOS B /ABOOT A ABOOT B ABOOT B >PILOT COMPILOT COMqRAMCHK1 COM,E4 DOCE4 DOCFDJ COMFDJ COM1  (Copyright (C) Digital Research, 19801] w?w! [[0 n))) O <|n}n.g))Ë!$ʇ~/w/wz|g*"|=?:G|g"! *xB {5~#o}o>$*½# K:m ! ~‹#c* DM! xʋ w#zÈL!Uͦ*)"[660#60 4~:ڬ+4#60ì!"ÈxG *w# x*  Invalid memory size$ Synchronization error$ Constructing 00K CP/M 2.2$ Ready for "sysgen" or "save 00 cpm00.com" $#͘*~ ""͌#>?͌͘ =_.:;<> Oo$>!Y2*O"ʉ@G:ʐ:wÖx2p0ʹ#*©6?ëw˜0ï#6 ¹.0#*6?w0#6 #6" #~?  xDIR ERA TYPESAVEREN USER".!yO#< Ty#O 321y_͸2y2ͽ:˜1͘A͌>>͌92^ :¥.!_~#fow]!v"!çREAD ERRORçNO FILE^: ! ~ 3#0 Wx x   G ~ # 3x~#B!Y~ɯ2:=!ý:=!:ý^T!~  6?#ˆ:`O> K{͘A͒>:͒͢>:͒͢xK > K > ͒x  ͢ØÆ^ BRͧ9!5‚#~Y‚#"T<ÆALL (Y/N)?^ Tʧ͘!6!~ڇ w4!Y~ʆ͌†t=ʆf ^ T 2o&)|+!<ͧ'ÆNO SPACE^ :Ty!B*O=?_s#"^sG!~Ypsp2mÆÆf ͧÆFILE EXISTS _: É: :ʉ=2)ͽÉ T!@k!}|q=qf^!~2>`~22\!!B!~> >#0~O#Cx2͘1)ͽÂf zͧÆBAD LOADCOMf^: ! Â$$$ SUB"."C {2!"E 9" 1A 22!ty)K!G_^#V*C   ~E , &-AGMS  !!ô!ô!Bdos Err On : $Bad Sector$Select$File R/O$ :B A2 ! ~6  O͐  : E  B 2 >: b # : y! 4 5~yy 5 6y Ґ ^H @Oy H  H : – ͬ   #H : !  H ù  H  H $O͐ : 2 *C N# 2>2T *C G ͻ : w ̈́ n> 2;O ^ DM;}H> "*C  ::dd slO s#r:E ͊ :==»y==»*Ww# *" ͸ *:G#š" ͸ :!w4!i w: Z!E ~=26 2*C !!~~#~O~G#n,-.‹! w! yG!x͢.:E <ʄ! q!pQ:E <. ʄ$.:E <ʄ i 6}2E x N! ~态O>G~G!~G} *C !r#r#r ^ ͥ_y#x#{s+p+q-*C  ͥ!!q#p#w*:B O Y G }*MD "ã:!B w!>2*C ~=2u:B 2~2wE:A *C w>" !""2B !" !r QQQâ~?ͦ ~?r Q *"C Q- Q͜QüQr Q$Q*):B  " *)*)Q;*"E :;:A  2A QÓQÜQ*C }/_|/*W}_*"}o|g":ʑ*C 6:ʑw:2E* *E }DQ>2 !"#$%&'()^++)n,4,)~M,},),,O?(?(Q?(?(^ (0!P6%#6~z7%!͕22͂~2͓#6%y2y2`i"> >!2! ͌7?>@!D~U5+"##""####"!͕  =-!͌7:o:$!*&͕++~@>&2P"Q2Swʥ.(%"%#%% 7 t      %&'()*+, -. /0  12!"34#$!"#$1234%&'(5678 )*+,9:;<  -./0 12345678 !"#$%&'(9:;<=>?@)*+,-./0?4 < @+ 4 h@x1@W@L!"M!{!!! ""t"y"!2"$"9:"{!9͓!9͘!$#:"o&))))2"͊!y2">{" Ì!>{"$"!#6#6ͳ""6#6Ϳ!$"!!"^#V+q#pi`"#z{"!  x : 2 p & x ~+é 7 2 H ! >w _ : ! 5ͤ N k ͱ ¦ ͱ xʊ #N x : ! 2 ͤ ! 5™ #wO ~x½  p H    y< < ʑ  : !qMD # 2E > ! ^#V w#P :B O|^#V#"##"##"##"!O *!O *|!6ʝ 6>*w#w*w#w'û *! J * ""!N#F*^#V*~#foyx *{_zW+ * yx # *DM*s#r*s#ryOxG*0MD!!N: E G>O: \ S *C  :q n& ^#V> O^ "*}:*)= ":O:o"*C  *C !ͮ ~2~2ͦ :2ͮ : O:w:w |g}o *# ) :B O! yoxg*:B O }!N#F "*#*s#r^  ~!J  ! J *:o$*C ~i 6i w**{#z r+s{ozg**͕ **  , w͜ ͸ Ͳ ! !N#F$**O !~#2&.Pv9͍>22!"!"2#22#:!ʁ!^#Vͥ2*#|O|g+|g}oö#|g"#!###$:#=o&)))))))#!>:#>2>=>͍:#g.͍#!#:ʄ:e:#**#z{{{!#:#{={*"#:#2#>2#ɯ2#:=>2͚>> 2͚͵2 .*#DM.*!#DM.#..>7>x¤.ä2#:#g|Oogy#{_~#foy'w# x~#O ,!:O:#:##O:2!o&))))6:#g. |ʩ^#V#"#~#fo"#$*+#ʦ~<ʬ:#w#Î"+!,é!':#O*+z{*#"#*#"!#y #:# #:# #:# #:# #""`i""y=" 2"y2" "*P" #:R2 #T!""P2R"@2B*#!":"{">2#@*#@"ڙ""ڙ":"2#/O:"2":"2#!#6U~7z½"7:"_!"`i#|/g}/o#"|}")4#,, W!?H#w+>!j#yw+͕:?>+%w#w#w#;!">!$͕,%1222#2!|2":2'!' 6#t#!E$,P Morrow Designs 48K CP/M 2.2 E4 AB: DJ/DMA 8", CD: DJ/DMA 5 1/4", E: HDC/DMA M5 $@B B HH II$@DI ABI$"$H$H@$$I! H*  $H@@A I $D!!$I"BI"I"@$BIIH$$"**#"͕  : 2 Þ y<_WyOxOxG* ~V5dw^  :ʈNÎ N#Fyʝ*}|\#u* #DM*6# x±**s#r͡ *6#6  ^ >:A #~$=2E k͌ : :/GyO>2!q*C " ͡  ʔ*J Ҕ^ :Oyʃ?|x | s-|N-# S:2E !~Яw > T   D ^ 6k -äPYy 5*{zBK5ڋ>*C w~#+w#w+ɯ2E 22 i  ^ *C :~w~͔͔# #  w ~>2!E 5T *C !"C  "C !w# F! w͌ x 2͢ *C  ~<wʃG:!ʎì 4~ʶ ¬:<ʶ$ ʶïZͻ   x >2>2ͻ :!Z2:E w ̈́ ͊ Ͳ  ># ü BAD MAP OVERFLOW! 'PMMMM((((*&)T]))C(DU!"͌½:*@½#!#)# ) ## %:=:=/¿>ÿ:J$O!~9#####:2͂w#~#fo' s#r':>:Y2!~c~~y#>EO>2~yO>2: ͏͏:!w^n~~   !"#$%&'($$BBI$@BI!"$$A DI$@ A$@$$@H! "!$$" @B$!!!DH$$"H @@BHH  !$$A"D@ "A" "BHA " !$ D B I $ !$$ H@BD D$ HI DIA!$$$ $" "$D ! $"  $AB " BDD $$D!"DI$!$BH!"IB I$"D HD" " $"! @H !BI " I  $I$I$DI$ !I$@"$"$! $I$I$!$DH(*B"B!A$ BB@$$!"$$HIHB@@H " @$! $I!$DDDD@@UUI$@I $HH@$HD ((()UUQ !$IDH! BA  B$HTTTT$$D!  B H  UUQ$BI@!$@@! $B @A $@P DH@2 0 0:x0_<2! wI2 2> 2 >2ɯ22 !~@_6^4#: w~$w: 0 q: A: A͋q: a{_2  2 - !ɯ2I:  ;*:  ͭͷ ͭ͋>9q>9: '!2 >9 7:! 6 >2>2: 2 Qͭ:Ğ! :lj<͖<j<|<: OʊQ>ÖH >2 2 û: B­>ôD> ¸!52 !"!N#~#A07O! ~*!) " :  '<ͭ'<>V$>O$:Ğà\ÞØ`rÍÖ![w#w#b!"!F#v2[G*##~w*##~<*}q!~ڬ6![^![^#fk"͎͘!G#*####*^#Vû!^*"*$ !$$ H@BD D$ HI DIA!$$$ $" "$D ! $"  $AB " BDD $$D!"DI$!$BH!"IB I$"D HD" " $"! @H !BI " I  $I$I$DI$ !I$@"$"$! $I$I$!$DH(*B"B!A$ BB@$$!"$$HIHB@@H " @$! $I!$DDDD@@UUI$@I $HH@$HD ((()UUQ !$IDH! BA  B$HTTTT$$D!  B H  UUQ$BI@!$@@! $B @A $@P DH!4w_#~ ʸ A:4~~# ¼ > \ ?ʻ w# !ͼ ? !ͼ {zA"*![N![ N#Fr+sq#p/>G=#w#w3#w#w!JSYMBOL TABLE OVERFLOW G*##~w*##~͎*_###s#r^#V`à 4 Wm ()*+,-/ABCDEHLMDBDIDSDWEIIFINORSPACIADCADDADIANAANDANICMACMCCMPCPIDAADADDCRDCXENDEQUHLTINRINXJMPLDALXIMODMOVMVINOPNOTORAORGORIOUTPOPPSWRALRARRETRLCRRCRSTSBBSBISETSHLSHRSTASTCSUBSUIXORXRAXRICALLENDMLDAXLHLDPCHLPUSHSHLDSPHLSTAXXCHGXTHLENDIFMACROTITLE  PF FP! ( 2/?'  v:P@< !  PP27 ( *"  NZZ NCC POPEP M x_BH!œ#¶ ¦{KÈCÈ<:JCR:  !6 s!#  ɯ<:O=_Z!F!V#fjQ̓E!^#Vo&)~#FxGyѯ<àn8!~ڢͅ6~44O! s#r!~ ڿ6ͅ^4!mw!wp!~ͅ!55N! N#fio&)^#fk1*" COPYRIGHT(C) 1978, DIGITAL RESEARCH á 4êü /L9ASMPRNHEX!)ͼ !ͼ :5͡ :6:6͡ :7͡ :\ ʻ 24!dͮ 25ͮ 27ͮ 26!8 ( ʃ !Y 1  :7ʞ !z 8  !"2D2X2#! 8 !ͼ z{* ! !"!8 w#  +6# *#"~!ͼ G:6QxJQS*!w#"! 1 !"!Y~~# …¡z!ͼ wʹ* ! w#" ! 8 !" ! zz_O4:  :6y:! G~#x=2> > ! >x6 #='G! ~ p( O*}O>4?:7w:#ĸ*"!͸* }w>ͪg( ʆ1 Y :7ʗ8 z !<ͼ CP/M ASSEMBLER - VER 2.0 NO SOURCE FILE PRESENT NO DIRECTORY SPACE SOURCE FILE NAME ERROR SOURCE FILE READ ERROR OUTPUT FILE WRITE ERROR CANNOT CLOSE FILES END OF ASSEMBLY G:7xʘ!#~ʄl͸Ä**!O {zʊ͸*"!!#^4!$wͯͯWƐ'@'ê>:ͪ!#^Ww*!{͚|͚}͚͚{!$~#͚͚> ͪ> ͪz'{ͅ>ɯo>g"k!m6ů{_zW5>)D*kOxGd !m?FDM!xGyOڂÃ)sn55)=â|g}o=î--#zg{ozg{ozg{oÓ:: ;,!ɯ22=2l!"]!~H5_!m~0:ą:  *":  :‰:̅ԅ!^#=ʅVq”*qͦ1& O:lµ̅>2ly:_!w~!s!m~ùy !~=w_!m~ ͅͰ>2lyPLnR>UX:l̅2l͓*>E2C!" """ :ʼ:*1 |R|ͦ0FIL: R  R* } *" :¿::¿üX!C^#fk[@ :Œ:=ʌG!ʆF#H vÛc*| EH ͺ,^1 ͦ *""1 EH DH ͺ,1 ͦ :  1:  " > 2  for mds) ; const console status ; reg-a = 00 if no character ready ; reg-a = ff if character ready ; conin console character in (result in reg-a) ; conout console character out (char in reg-c) ; list list out (char in reg-c) ; punch punch out (char in reg-c) ; reader paper tape reader in (result to reg-a) ; home move to track 00 ; ; (the following calls set-up the io parameter block for the ; mds, which is used to perform subsequent reads and writes) ; seldsk select disk given by reg-c (0,1,2...) ; settrk set track address (0,...76) for subsequent read/write ; setsec set sector address (1,...,26) for subsequent read/write ; setdma set subsequent dma address (initially 80h) ; ; (read and write assume previous calls to set up the io parameters) ; read read track/sector to preset dma address ; write write track/sector from preset dma address ; ; jump vector for indiviual routines jmp boot wboote: jmp wboot jmp const jmp conin jmp conout jmp list jmp punch jmp reader jmp sp,buff+80h lxi h,signon call prmsg ;print message xra a ;clear accumulator sta cdisk ;set initially to disk a jmp gocpm ;go to cp/m ; ; wboot:; loader on track 0, sector 1, which will be skipped for warm ; read cp/m from disk - assuming there is a 128 byte cold start ; start. ; lxi sp,buff ;using dma - thus 80 thru ff available for stack ; mvi c,retry ;max retries push b wboot0: ;enter here on error retries lxi b,cpmb ;set dma address to start of disk system call setdma mvi c,0 ;boot from drive 0 call seldsk mvi c,0 call settrk ;start with track 0 mvi c,2 ;start reading sector 2 call setsec ; ; read sectors, count nsects to zero pop b ;10-error count mvi b,nsects rdsec: ;read next sector push b ;save sector count call read jnz booterr ;retry if errors occur lhld iod ;increment dma address lxi d,128 ;sector size dad d ;incremented dma address in hl mov b,h mov c,l ;ready for call to set dma call setdma lda ios ;sector number just read cpi 2:|: |Ë  |*" ͩ !6="1 :  1}1:n:>BʋSSͦSSxS 1:  1"" ͦ 1 |R >O U!" 1 1!|_!^#fk $8AP`ixH ñññ81Ľ y0îH ñGîG  ñH ñ(Ľ yîH ñîîĽ y0îîH ñG 1: :,; c*| } 8OĽ y0G G t :):,.>C :|: Jü;r :R: ʼʋ!ʼR!ʼʋ>SR{ozg!~4ʧͦ !6 ! **̈́**̈́\iͩ !w#H USE FACTOR !* "z{*"* "I !" :1 R O*UR X* G:xl :  *̩ : l x͖ *#"EH DH 0:~ ! ^4! w͆ Æ *! 6z͖ {͖ 4>R>V>D >P >L >Nhome jmp seldsk jmp settrk jmp setsec jmp setdma jmp read jmp write jmp listst ;list status jmp sectran ; maclib diskdef ;load the disk definition library disks 4 ;four disks diskdef 0,1,26,6,1024,243,64,64,offset diskdef 1,0 diskdef 2,0 diskdef 3,0 ; endef occurs at end of assembly ; ; end of controller - independent code, the remaining subroutines ; are tailored to the particular operating environment, and must ; be altered for any system which differs from the intel mds. ; ; the following code assumes the mds monitor exists at 0f800h ; and uses the i/o subroutines within the monitor ; ; we also assume the mds system has four disk drives revrt equ 0fdh ;interrupt revert port intc equ 0fch ;interrupt mask port icon equ 0f3h ;interrupt control port inte equ 0111$1110b ;enable rst 0(warm boot), rst 7 (monitor) ; ; mds monitor equates mon80 equ 0f800h ;mds monitor rmon80 equ 0ff0fh ;restart mon80 (boot error) ci equ 0f803h ;console character to reg-a ri equ 0f8066 ;read last sector? jc rd1 ; must be sector 26, zero and go to next track lda iot ;get track to register a inr a mov c,a ;ready for call call settrk xra a ;clear sector number rd1: inr a ;to next sector mov c,a ;ready for call call setsec pop b ;recall sector count dcr b ;done? jnz rdsec ; ; done with the load, reset default buffer address gocpm: ;(enter here from cold start boot) ; enable rst0 and rst7 di mvi a,12h ;initialize command out revrt xra a out intc ;cleared mvi a,inte ;rst0 and rst7 bits on out intc xra a out icon ;interrupt control ; ; set default buffer address to 80h lxi b,buff call setdma ; ; reset monitor entry points mvi a,jmp sta 0 lxi h,wboote shld 1 ;jmp wboot at location 00 sta 5 lxi h,bdos shld 6 ;jmp bdos at location 5 if not test sta 7*8 ;jmp to mon80 (may have been changed by ddt) lxi h,mon80 shld 7*8+1 endif ; leave iobyte set ; previously selected disk was b, send parameter to cpm lda cdisk ;last log; MDS-800 I/O Drivers for CP/M 2.2 ; (four drive single density version) ; ; Version 2.2 February, 1980 ; vers equ 22 ;version 2.2 ; ; Copyright (c) 1980 ; Digital Research ; Box 579, Pacific Grove ; California, 93950 ; ; true equ 0ffffh ;value of "true" false equ not true ;"false" test equ false ;true if test bios ; if test bias equ 03400h ;base of CCP in test system endif if not test bias equ 0000h ;generate relocatable cp/m system endif ; patch equ 1600h ; org patch cpmb equ $-patch ;base of cpm console processor bdos equ 806h+cpmb ;basic dos (resident portion) cpml equ $-cpmb ;length (in bytes) of cpm system nsects equ cpml/128 ;number of sectors to load offset equ 2 ;number of disk tracks used by cp/m cdisk equ 0004h ;address of last logged disk on warm start buff equ 0080h ;default buffer address retry equ 10 ;max retries on disk i/o before error ; ; perform following functions ; boot cold start ; wboot warm start (save i/o byte) ; (boot and wboot are the sameh ;reader in to reg-a co equ 0f809h ;console char from c to console out po equ 0f80ch ;punch char from c to punch device lo equ 0f80fh ;list from c to list device csts equ 0f812h ;console status 00/ff to register a ; ; disk ports and commands base equ 78h ;base of disk command io ports dstat equ base ;disk status (input) rtype equ base+1 ;result type (input) rbyte equ base+3 ;result byte (input) ; ilow equ base+1 ;iopb low address (output) ihigh equ base+2 ;iopb high address (output) ; readf equ 4h ;read function writf equ 6h ;write function recal equ 3h ;recalibrate drive iordy equ 4h ;i/o finished mask cr equ 0dh ;carriage return lf equ 0ah ;line feed ; signon: ;signon message: xxk cp/m vers y.y db cr,lf,lf if test db '32' ;32k example bios endif if not test db '00' ;memory size filled by relocator endif db 'k CP/M vers ' db vers/10+'0','.',vers mod 10+'0' db cr,lf,0 ; boot: ;print signon message and go to ccp ; (note: mds boot initialized iobyte at 0003h) lxi ged disk number mov c,a ;send to ccp to log it in ei jmp cpmb ; ; error condition occurred, print message and retry booterr: pop b ;recall counts dcr c jz booter0 ; try again push b jmp wboot0 ; booter0: ; otherwise too many retries lxi h,bootmsg call prmsg jmp rmon80 ;mds hardware monitor ; bootmsg: db '?boot',0 ; ; const: ;console status to reg-a ; (exactly the same as mds call) jmp csts ; conin: ;console character to reg-a call ci ani 7fh ;remove parity bit ret ; conout: ;console character from c to console out jmp co ; list: ;list device out ; (exactly the same as mds call) jmp lo ; listst: ;return list status xra a ret ;always not ready ; punch: ;punch device out ; (exactly the same as mds call) jmp po ; reader: ;reader character in to reg-a ; (exactly the same as mds call) jmp ri ; home: ;move to home position ; treat as track 00 seek mvi c,0 jmp settrk ; seldsk: ;select disk given by register c lxi h,0000h ;return 000select proper disk bank mov m,a ;set disk select bit on/off ret ; waitio: mvi c,retry ;max retries before perm error rewait: ; start the i/o function and wait for completion call intype ;in rtype call inbyte ;clears the controller ; lda dbank ;set bank flags ora a ;zero if drive 0,1 and nz if 2,3 mvi a,iopb and 0ffh ;low address for iopb mvi b,iopb shr 8 ;high address for iopb jnz iodr1 ;drive bank 1? out ilow ;low address to controller mov a,b out ihigh ;high address jmp wait0 ;to wait for complete ; iodr1: ;drive bank 1 out ilow+10h ;88 for drive bank 10 mov a,b out ihigh+10h ; wait0: call instat ;wait for completion ani iordy ;ready? jz wait0 ; ; check io completion ok call intype ;must be io complete (00) unlinked ; 00 unlinked i/o complete, 01 linked i/o complete (not used) ; 10 disk status changed 11 (not used) cpi 10b ;ready status change? jz wready ; ; must be 00 in the accumulator ora a jnz werror ;some other condition, title 'mds cold start loader at 3000h' ; ; MDS-800 Cold Start Loader for CP/M 2.0 ; ; Version 2.0 August, 1979 ; false equ 0 true equ not false testing equ false ;if true, then go to mon80 on errors ; if testing bias equ 03400h endif if not testing bias equ 0000h endif cpmb equ bias ;base of dos load bdos equ 806h+bias ;entry to dos for calls bdose equ 1880h+bias ;end of dos load boot equ 1600h+bias ;cold start entry point rboot equ boot+3 ;warm start entry point ; org 03000h ;loaded down from hardware boot at 3000h ; bdosl equ bdose-cpmb ntrks equ 2 ;number of tracks to read bdoss equ bdosl/128 ;number of sectors in dos bdos0 equ 25 ;number of bdos sectors on track 0 bdos1 equ bdoss-bdos0 ;number of sectors on track 1 ; mon80 equ 0f800h ;intel monitor base rmon80 equ 0ff0fh ;restart location for mon80 base equ 078h ;'base' used by controller rtype equ base+1 ;result type rbyte equ base+3 ;result byte reset equ base+7 ;reset controller ; dstat equ base ;disk status0 if error mov a,c cpi ndisks ;too large? rnc ;leave HL = 0000 ; ani 10b ;00 00 for drive 0,1 and 10 10 for drive 2,3 sta dbank ;to select drive bank mov a,c ;00, 01, 10, 11 ani 1b ;mds has 0,1 at 78, 2,3 at 88 ora a ;result 00? jz setdrive mvi a,00110000b ;selects drive 1 in bank setdrive: mov b,a ;save the function lxi h,iof ;io function mov a,m ani 11001111b ;mask out disk number ora b ;mask in new disk number mov m,a ;save it in iopb mov l,c mvi h,0 ;HL=disk number dad h ;*2 dad h ;*4 dad h ;*8 dad h ;*16 lxi d,dpbase dad d ;HL=disk header table address ret ; ; settrk: ;set track address given by c lxi h,iot mov m,c ret ; setsec: ;set sector number given by c lxi h,ios mov m,c ret sectran: ;translate sector bc using table at de mvi b,0 ;double precision sector number in BC xchg ;translate table address to HL dad b ;translate(sector) address mov a,m ;translated sector number to A sta ios mov l,a ;return sector number in  retry ; ; check i/o error bits call inbyte ral jc wready ;unit not ready rar ani 11111110b ;any other errors? (deleted data ok) jnz werror ; ; read or write is ok, accumulator contains zero ret ; wready: ;not ready, treat as error for now call inbyte ;clear result byte jmp trycount ; werror: ;return hardware malfunction (crc, track, seek, etc.) ; the mds controller has returned a bit in each position ; of the accumulator, corresponding to the conditions: ; 0 - deleted data (accepted as ok above) ; 1 - crc error ; 2 - seek error ; 3 - address error (hardware malfunction) ; 4 - data over/under flow (hardware malfunction) ; 5 - write protect (treated as not ready) ; 6 - write error (hardware malfunction) ; 7 - not ready ; (accumulator bits are numbered 7 6 5 4 3 2 1 0) ; ; it may be useful to filter out the various conditions, ; but we will get a permanent error message if it is not ; recoverable. in any case, the not ready condition is ; treated as a separate condi port ilow equ base+1 ;low iopb address ihigh equ base+2 ;high iopb address bsw equ 0ffh ;boot switch recal equ 3h ;recalibrate selected drive readf equ 4h ;disk read function stack equ 100h ;use end of boot for stack ; rstart: lxi sp,stack;in case of call to mon80 ; clear disk status in rtype in rbyte ; check if boot switch is off coldstart: in bsw ani 02h ;switch on? jnz coldstart ; clear the controller out reset ;logic cleared ; ; mvi b,ntrks ;number of tracks to read lxi h,iopb0 ; start: ; ; read first/next track into cpmb mov a,l out ilow mov a,h out ihigh wait0: in dstat ani 4 jz wait0 ; ; check disk status in rtype ani 11b cpi 2 ; if testing cnc rmon80 ;go to monitor if 11 or 10 endif if not testing jnc rstart ;retry the load endif ; in rbyte ;i/o complete, check status ; if not ready, then go to mon80 ral cc rmon80 ;not ready bit set rar ;restore ani 11110b ;overrun/addr err/seek/crc/xxxx ; if testing cnz rmon80 ;gL ret ; setdma: ;set dma address given by regs b,c mov l,c mov h,b shld iod ret ; read: ;read next disk record (assuming disk/trk/sec/dma set) mvi c,readf ;set to read function call setfunc call waitio ;perform read function ret ;may have error set in reg-a ; ; write: ;disk write function mvi c,writf call setfunc ;set to write function call waitio ret ;may have error set ; ; ; utility subroutines prmsg: ;print message at h,l to 0 mov a,m ora a ;zero? rz ; more to print push h mov c,a call conout pop h inx h jmp prmsg ; setfunc: ; set function for next i/o (command in reg-c) lxi h,iof ;io function address mov a,m ;get it to accumulator for masking ani 11111000b ;remove previous command ora c ;set to new command mov m,a ;replaced in iopb ; the mds-800 controller requires disk bank bit in sector byte ; mask the bit from the current i/o function ani 00100000b ;mask the disk select bit lxi h,ios ;address the sector select byte ora m ;tion for later improvement trycount: ; register c contains retry count, decrement 'til zero dcr c jnz rewait ;for another try ; ; cannot recover from error mvi a,1 ;error code ret ; ; intype, inbyte, instat read drive bank 00 or 10 intype: lda dbank ora a jnz intyp1 ;skip to bank 10 in rtype ret intyp1: in rtype+10h ;78 for 0,1 88 for 2,3 ret ; inbyte: lda dbank ora a jnz inbyt1 in rbyte ret inbyt1: in rbyte+10h ret ; instat: lda dbank ora a jnz insta1 in dstat ret insta1: in dstat+10h ret ; ; ; ; data areas (must be in ram) dbank: db 0 ;disk bank 00 if drive 0,1 ; 10 if drive 2,3 iopb: ;io parameter block db 80h ;normal i/o operation iof: db readf ;io function, initial read ion: db 1 ;number of sectors to read iot: db offset ;track number ios: db 1 ;sector number iod: dw buff ;io address ; ; ; define ram areas for bdos operation endef end o to monitor endif if not testing jnz rstart ;retry the load endif ; ; lxi d,iopbl ;length of iopb dad d ;addressing next iopb dcr b ;count down tracks jnz start ; ; ; jmp to boot to print initial message, and set up jmps jmp boot ; ; parameter blocks iopb0: db 80h ;iocw, no update db readf ;read function db bdos0 ;# sectors to read on track 0 db 0 ;track 0 db 2 ;start with sector 2 on track 0 dw cpmb ;start at base of bdos iopbl equ $-iopb0 ; iopb1: db 80h db readf db bdos1 ;sectors to read on track 1 db 1 ;track 1 db 1 ;sector 1 dw cpmb+bdos0*128 ;base of second read ; end z wait0 ; ; check disk status in rtype ani 11b cpi 2 ; if testing cnc rmon80 ;go to monitor if 11 or 10 endif if not testing jnc rstart ;retry the load endif ; in rbyte ;i/o complete, check status ; if not ready, then go to mon80 ral cc rmon80 ;not ready bit set rar ;restore ani 11110b ;overrun/addr err/seek/crc/xxxx ; if testing cnz rmon80 ;gwrite ;write disk jmp listst ;return list status jmp sectran ;sector translate ; ; fixed data tables for four-drive standard ; IBM-compatible 8" disks ; disk parameter header for disk 00 dpbase: dw trans,0000H dw 0000H,0000H dw dirbf,dpblk dw chk00,all00 ; disk parameter header for disk 01 dw trans,0000H dw 0000H,0000H dw dirbf,dpblk dw chk01,all01 ; disk parameter header for disk 02 dw trans,0000H dw 0000H,0000H dw dirbf,dpblk dw chk02,all02 ; disk parameter header for disk 03 dw trans,0000H dw 0000H,0000H dw dirbf,dpblk dw chk03,all03 ; ; sector translate vector trans: db 1,7,13,19 ;sectors 1,2,3,4 db 25,5,11,17 ;sectors 5,6,7,8 db 23,3,9,15 ;sectors 9,10,11,12 db 21,2,8,14 ;sectors 13,14,15,16 db 20,26,6,12 ;sectors 17,18,19,20 db 18,24,4,10 ;sectors 21,22,23,24 db 16,22 ;sectors 25,26 ; dpblk: ;disk parameter block, common to all disks dw 26 ;sectors per track db 3 ;block shift factor db 7 ;block mask db 0 ;null mask dw 242 ;disk ;track address set from register c pop h pop d pop b jmp load1 ;for another sector ; ; end of load operation, set parameters and go to cp/m gocpm: mvi a,0c3h ;c3 is a jmp instruction sta 0 ;for jmp to wboot lxi h,wboote ;wboot entry point shld 1 ;set address field for jmp at 0 ; sta 5 ;for jmp to bdos lxi h,bdos ;bdos entry point shld 6 ;address field of jump at 5 to bdos ; lxi b,80h ;default dma address is 80h call setdma ; ei ;enable the interrupt system lda cdisk ;get current disk number mov c,a ;send to the ccp jmp ccp ;go to cp/m for further processing ; ; ; simple i/o handlers (must be filled in by user) ; in each case, the entry point is provided, with space reserved ; to insert your own code ; const: ;console status, return 0ffh if character ready, 00h if not ds 10h ;space for status subroutine mvi a,00h ret ; conin: ;console character into register a ds 10h ;space for input routine ani 7fh ;strip parity bit ret ; conout: ;console charak size-1 dw 63 ;directory max db 192 ;alloc 0 db 0 ;alloc 1 dw 16 ;check size dw 2 ;track offset ; ; end of fixed tables ; ; individual subroutines to perform each function boot: ;simplest case is to just perform parameter initialization xra a ;zero in the accum sta iobyte ;clear the iobyte sta cdisk ;select disk zero jmp gocpm ;initialize and go to cp/m ; wboot: ;simplest case is to read the disk until all sectors loaded lxi sp,80h ;use space below buffer for stack mvi c,0 ;select disk 0 call seldsk call home ;go to track 00 ; mvi b,nsects ;b counts # of sectors to load mvi c,0 ;c has the current track number mvi d,2 ;d has the next sector to read ; note that we begin by reading track 0, sector 2 since sector 1 ; contains the cold start loader, which is skipped in a warm start lxi h,ccp ;base of cp/m (initial load point) load1: ;load one more sector push b ;save sector count, current track push d ;save next sector to read push h ;save dma addrcter output from register c mov a,c ;get to accumulator ds 10h ;space for output routine ret ; list: ;list character from register c mov a,c ;character to register a ret ;null subroutine ; listst: ;return list status (0 if not ready, 1 if ready) xra a ;0 is always ok to return ret ; punch: ;punch character from register c mov a,c ;character to register a ret ;null subroutine ; ; reader: ;read character into register a from reader device mvi a,1ah ;enter end of file for now (replace later) ani 7fh ;remember to strip parity bit ret ; ; ; i/o drivers for the disk follow ; for now, we will simply store the parameters away for use ; in the read and write subroutines ; home: ;move to the track 00 position of current drive ; translate this call into a settrk call with parameter 00 mvi c,0 ;select track 0 call settrk ret ;we will move to 00 on first read/write ; seldsk: ;select disk given by register C lxi h,0000h ;error return code mov a,c sta diskno cpi 4 ; Skeletal CBIOS for first level of CP/M 2.0 alteration ; msize equ 20 ;cp/m version memory size in kilobytes ; ; "bias" is address offset from 3400H for memory systems ; than 16K (referred to as "b" throughout the text). ; bias equ (msize-20)*1024 ccp equ 3400H+bias ;base of ccp bdos equ ccp+806h ;base of bdos bios equ ccp+1600h ;base of bios cdisk equ 0004H ;current disk number 0=A,...,15=P iobyte equ 0003h ;intel i/o byte ; org bios ;origin of this program nsects equ ($-ccp)/128 ;warm start sector count ; ; jump vector for individual subroutines jmp boot ;cold start wboote: jmp wboot ;warm start jmp const ;console status jmp conin ;console character in jmp conout ;console character out jmp list ;list character out jmp punch ;punch character out jmp reader ;reader character out jmp home ;move head to home position jmp seldsk ;select disk jmp settrk ;set track number jmp setsec ;set sector number jmp setdma ;set dma address jmp read ;read disk jmp ess mov c,d ;get sector address to register c call setsec ;set sector address from register c pop b ;recall dma address to b,c push b ;replace on stack for later recall call setdma ;set dma address from b,c ; ; drive set to 0, track set, sector set, dma address set call read cpi 00h ;any errors? jnz wboot ;retry the entire boot if an error occurs ; ; no error, move to next sector pop h ;recall dma address lxi d,128 ;dma=dma+128 dad d ;new dma address is in h,l pop d ;recall sector address pop b ;recall number of sectors remaining, and current trk dcr b ;sectors=sectors-1 jz gocpm ;transfer to cp/m if all have been loaded ; ; more sectors remain to load, check for track change inr d mov a,d ;sector=27?, if so, change tracks cpi 27 jc load1 ;carry generated if sector<27 ; ; end of current track, go to next track mvi d,1 ;begin with first sector of next track inr c ;track=track+1 ; ; save register state, and change tracks push b push d push h call settr;must be between 0 and 3 rnc ;no carry if 4,5,... ; disk number is in the proper range ds 10 ;space for disk select ; compute proper disk parameter header address lda diskno mov l,a ;L=disk number 0,1,2,3 mvi h,0 ;high order zero dad h ;*2 dad h ;*4 dad h ;*8 dad h ;*16 (size of each header) lxi d,dpbase dad d ;HL=.dpbase(diskno*16) ret ; settrk: ;set track given by register c mov a,c sta track ds 10h ;space for track select ret ; setsec: ;set sector given by register c mov a,c sta sector ds 10h ;space for sector select ret ; sectran: ;translate the sector given by BC using the ;translate table given by DE xchg ;HL=.trans dad b ;HL=.trans(sector) mov l,m ;L = trans(sector) mvi h,0 ;HL= trans(sector) ret ;with value in HL ; setdma: ;set dma address given by registers b and c mov l,c ;low order address mov h,b ;high order address shld dmaad ;save the address ds 10h ;space for setting the dma address ret ; read: ;perform read operatio͓ !" >- Ͷ Aګ ҫ _!7^#V~  \p Z z ů2[\͓͢ ҫ ͐ =« f " ͓ ҫ ͐ ʻf " =ʻf "=« ý> 2͐ f "]=f =« *]}o"_  *]"a. ~ #E }"]*a 6 *]}#|#*]E ͐ « f f f {zA|« W}d ͐ f f f DMʡڏ"=ʡͲ=ʡYPͲ1**!O~4#~#F#x~#s#r#w>͐ « f f  . ᯕo>g. 2|2\  !]w# ʫ .&  0 6 #& .K !e K w# ʫ : U 6 #K 6AW w#] !e~H#~E#~X*}|́ "!́ ͐ !ʬ =« f kʫ j \͢F w# ͋ t ʫ : W& _& & O { `i"F & & w# & ͋ « t Y t Y GтWx ͢!o ~Z #N  *. *.  NEXT PC͐ =« f  . ~ Ͷ ʻ .͓ =« f |« }w#Ä >2L͐ ! =« f }ʫ +"MD Å D  !  #n (usually this is similar to write ; so we will allow space to set up read command, then use ; common code in write) ds 10h ;set up read command jmp waitio ;to perform the actual i/o ; write: ;perform a write operation ds 10h ;set up write command ; waitio: ;enter here from read and write to perform the actual i/o ; operation. return a 00h in register a if the operation completes ; properly, and 01h if an error occurs during the read or write ; ; in this case, we have saved the disk number in 'diskno' (0,1) ; the track number in 'track' (0-76) ; the sector number in 'sector' (1-26) ; the dma address in 'dmaad' (0-65535) ds 256 ;space reserved for I/O drivers mvi a,1 ;error condition ret ;replaced when filled-in ; ; the remainder of the CBIOS is reserved uninitialized ; data area, and does not need to be a part of the ; system memory image (the space must be available, ; however, between "begdat" and "enddat"). ; track: ds 2 ;two bytes for expansion sector: ds 2 ;two =COPYRIGHT (C) 1980, DIGITAL RESEARCH DDT VERS 2.2$10 !~=W!xe ~#Xbxʇ {z~#o}o҃i.2_!fp+q*e2_2_!hp+q*g!jp+q*i!lp+q*k!np+q*m2_!pp+q*oÃO$*sy͏ , $  ͌ 9!z6 # L!zw͌j# X:z 0 ͘=N#Fy}80*z{¯#z+++ ¥ z#½# · 9!`͠ y9!rͷ y=!z{w# % w!P͠ y͓}*w#"͌ @.@<!Eͷ~P !ͷ’P͌Q!ͷªP}QxQ!ͷ͓G@Q! ͷ y͓Gþ!ͷ ͓Q!ͷ͓Q͌Q!.ͷ6y#G͙Qà!2ͷQ͓͌Q!>ͷq eg͙Q:zJEËC–EQyQxQRQ** {zҷ*~#" <AOGƐ'@'OxƐ'@'ON#  ë «   Ͷ ͐ =« f xY |« }ҫ gA>S Ag}S S i |« }!w s#r:[ʔ _!~ʦ ![4ç \͢¦ 2[ 7 >?  e͢!g"c> _͢a_!f~> 5*c~#"c 0 7   > >  ͢| } @ >. *_}o| , 0 ë ^#V#!Y ))))o P q s#r#!V4 !V6# ,® >2Vñ m ͅ m ͅ m ͅ « Vʫ ! XN!~  ! _^! ^#V~ x+ >= = !~  . !   #x f L L ͓ͅ ҆ *" !6ï +"_*~ #E گ ʫ ^#V. ï ~ CZMEIABDHSP!"M"+"!91*~!O~6=G#^#V#~x (#"!N#FW( *J>7Å*M|N+"M N:LHͅÅD Å >* *͓ b" . *"] !/~##ʁtZ*F#n!Is!^#V&&##&))::^#V#*^#V>+)x-8_bytes for expansion dmaad: ds 2 ;direct memory address diskno: ds 1 ;disk number 0-15 ; ; scratch ram area for BDOS use begdat equ $ ;beginning of data area dirbf: ds 128 ;scratch directory area all00: ds 31 ;allocation vector 0 all01: ds 31 ;allocation vector 1 all02: ds 31 ;allocation vector 2 all03: ds 31 ;allocation vector 3 chk00: ds 16 ;check vector 0 chk01: ds 16 ;check vector 1 chk02: ds 16 ;check vector 2 chk03: ds 16 ;check vector 3 ; enddat equ $ ;end of data area datsiz equ $-begdat;size of data area end maad' (0-65535) ds 256 ;space reserved for I/O drivers mvi a,1 ;error condition ret ;replaced when filled-in ; ; the remainder of the CBIOS is reserved uninitialized ; data area, and does not need to be a part of the ; system memory image (the space must be available, ; however, between "begdat" and "enddat"). ; track: ds 2 ;two bytes for expansion sector: ds 2 ;two z8O!B N#N ¾SP.* |} !9":q!"28!"9:] !í 1 )*)þ))>+><7"9.Yͯ * M^2U :2:2ͳ:_³ͯ !6! @!!BH @@ABH B! "BHI$$BI$BI $ HI D$HD$$ H B!$D$"$B$DA!ABI$H B$I $HI$H$! $I $I$$A !A@$I$"!$H$I$I "! $A$  HHAA"I @BB $A"$$$I$$H!!! BH" !I B  $$!BD! $!BI D@"!$I$$H"!I$I$I$UUU$$A$ x (#"!N#FW( *J>7Å*M|N+"M N:LHͅÅD Å >* *͓ b" . *"] !/~##ʁtZ*F#n!Is!^#V&&##&))::^#V#*^#V>+)x-8_28 ;CP/M sects/host buff cpmspt equ hstblk * hstspt ;CP/M sectors/track secmsk equ hstblk-1 ;sector mask smask hstblk ;compute sector mask secshf equ @x ;log2(hstblk) ; ;***************************************************** ;* * ;* BDOS constants on entry to write * ;* * ;***************************************************** wrall equ 0 ;write to allocated wrdir equ 1 ;write to directory wrual equ 2 ;write to unallocated ; ;***************************************************** ;* * ;* The BDOS entry points given below show the * ;* code which is relevant to deblocking only. * ;* * ;***************************************************** ; ; DISKDEF macro, or hand coded tables go here dpbase equ $ ;disk param block base ; boot: wboot: ;enter here on systemkdsk ;disk to seek sta unadsk ;unadsk = sekdsk lhld sektrk shld unatrk ;unatrk = sectrk lda seksec sta unasec ;unasec = seksec ; chkuna: ;check for write to unallocated sector lda unacnt ;any unalloc remain? ora a jz alloc ;skip if not ; ; more unallocated records remain dcr a ;unacnt = unacnt-1 sta unacnt lda sekdsk ;same disk? lxi h,unadsk cmp m ;sekdsk = unadsk? jnz alloc ;skip if not ; ; disks are the same lxi h,unatrk call sektrkcmp ;sektrk = unatrk? jnz alloc ;skip if not ; ; tracks are the same lda seksec ;same sector? lxi h,unasec cmp m ;seksec = unasec? jnz alloc ;skip if not ; ; match, move to next sector for future ref inr m ;unasec = unasec+1 mov a,m ;end of track? cpi cpmspt ;count CP/M sectors jc noovf ;skip if no overflow ; ; overflow to next track mvi m,0 ;unasec = 0 lhld unatrk inx h shld unatrk ;unatrk = unatrk+1 ; noovf: ;match found, mark as unnecessary read xra a ;0 to accumulator sta rsfl boot to initialize xra a ;0 to accumulator sta hstact ;host buffer inactive sta unacnt ;clear unalloc count ret ; home: ;home the selected disk home: lda hstwrt ;check for pending write ora a jnz homed sta hstact ;clear host active flag homed: ret ; seldsk: ;select disk mov a,c ;selected disk number sta sekdsk ;seek disk number mov l,a ;disk number to HL mvi h,0 rept 4 ;multiply by 16 dad h endm lxi d,dpbase ;base of parm block dad d ;hl=.dpb(curdsk) ret ; settrk: ;set track given by registers BC mov h,b mov l,c shld sektrk ;track to seek ret ; setsec: ;set sector given by register c mov a,c sta seksec ;sector to seek ret ; setdma: ;set dma address given by BC mov h,b mov l,c shld dmaadr ret ; sectran: ;translate sector number BC mov h,b mov l,c ret ; ;***************************************************** ;* * ;* The READ entry point takes the place of ag ;rsflag = 0 jmp rwoper ;to perform the write ; alloc: ;not an unallocated record, requires pre-read xra a ;0 to accum sta unacnt ;unacnt = 0 inr a ;1 to accum sta rsflag ;rsflag = 1 ; ;***************************************************** ;* * ;* Common code for READ and WRITE follows * ;* * ;***************************************************** rwoper: ;enter here to perform the read/write xra a ;zero to accum sta erflag ;no errors (yet) lda seksec ;compute host sector rept secshf ora a ;carry = 0 rar ;shift right endm sta sekhst ;host sector to seek ; ; active host sector? lxi h,hstact ;host active flag mov a,m mvi m,1 ;always becomes 1 ora a ;was it already? jz filhst ;fill host if not ; ; host buffer active, same as seek buffer? lda sekdsk lxi h,hstdsk ;same disk? cmp m ;sekdsk = hstdsk? jnz nomatch ; ; same disk, same ;***************************************************** ;* * ;* Sector Deblocking Algorithms for CP/M 2.0 * ;* * ;***************************************************** ; ; utility macro to compute sector mask smask macro hblk ;; compute log2(hblk), return @x as result ;; (2 ** @x = hblk on return) @y set hblk @x set 0 ;; count right shifts of @y until = 1 rept 8 if @y = 1 exitm endif ;; @y is not 1, shift right one position @y set @y shr 1 @x set @x + 1 endm endm ; ;***************************************************** ;* * ;* CP/M to host disk constants * ;* * ;***************************************************** blksiz equ 2048 ;CP/M allocation size hstsiz equ 512 ;host disk sector size hstspt equ 20 ;host disk sectors/trk hstblk equ hstsiz/1 * ;* the previous BIOS defintion for READ. * ;* * ;***************************************************** read: ;read the selected CP/M sector xra a sta unacnt mvi a,1 sta readop ;read operation sta rsflag ;must read data mvi a,wrual sta wrtype ;treat as unalloc jmp rwoper ;to perform the read ; ;***************************************************** ;* * ;* The WRITE entry point takes the place of * ;* the previous BIOS defintion for WRITE. * ;* * ;***************************************************** write: ;write the selected CP/M sector xra a ;0 to accumulator sta readop ;not a read operation mov a,c ;write type in c sta wrtype cpi wrual ;write unallocated? jnz chkuna ;check for unalloc ; ; write to unallocated, set parameters mvi a,blksiz/128 ;next unalloc recs sta unacnt lda se track? lxi h,hsttrk call sektrkcmp ;sektrk = hsttrk? jnz nomatch ; ; same disk, same track, same buffer? lda sekhst lxi h,hstsec ;sekhst = hstsec? cmp m jz match ;skip if match ; nomatch: ;proper disk, but not correct sector lda hstwrt ;host written? ora a cnz writehst ;clear host buff ; filhst: ;may have to fill the host buffer lda sekdsk sta hstdsk lhld sektrk shld hsttrk lda sekhst sta hstsec lda rsflag ;need to read? ora a cnz readhst ;yes, if 1 xra a ;0 to accum sta hstwrt ;no pending write ; match: ;copy data to or from buffer lda seksec ;mask buffer number ani secmsk ;least signif bits mov l,a ;ready to shift mvi h,0 ;double count rept 7 ;shift left 7 dad h endm ; hl has relative host buffer address lxi d,hstbuf dad d ;hl = host address xchg ;now in DE lhld dmaadr ;get/put CP/M data mvi c,128 ;length of move lda readop ;which way? ora a jnz rwmove ;skip if read ; ; write operation, mark and switch sekdsk: ds 1 ;seek disk number sektrk: ds 2 ;seek track number seksec: ds 1 ;seek sector number ; hstdsk: ds 1 ;host disk number hsttrk: ds 2 ;host track number hstsec: ds 1 ;host sector number ; sekhst: ds 1 ;seek shr secshf hstact: ds 1 ;host active flag hstwrt: ds 1 ;host written flag ; unacnt: ds 1 ;unalloc rec cnt unadsk: ds 1 ;last unalloc disk unatrk: ds 2 ;last unalloc track unasec: ds 1 ;last unalloc sector ; erflag: ds 1 ;error reporting rsflag: ds 1 ;read sector flag readop: ds 1 ;1 if read operation wrtype: ds 1 ;write operation type dmaadr: ds 2 ;last dma address hstbuf: ds hstsiz ;host buffer ; ;***************************************************** ;* * ;* The ENDEF macro invocation goes here * ;* * ;***************************************************** end tors endm ; disks macro nd ;; define nd disks ndisks set nd ;;for later reference dpbase equ $ ;base of disk parameter blocks ;; generate the nd elements dsknxt set 0 rept nd dskhdr %dsknxt dsknxt set dsknxt+1 endm endm ; dpbhdr macro dn dpb&dn equ $ ;disk parm block endm ; ddb macro data,comment ;; define a db statement db data comment endm ; ddw macro data,comment ;; define a dw statement dw data comment endm ; gcd macro m,n ;; greatest common divisor of m,n ;; produces value gcdn as result ;; (used in sector translate table generation) gcdm set m ;;variable for m gcdn set n ;;variable for n gcdr set 0 ;;variable for r rept 65535 gcdx set gcdm/gcdn gcdr set gcdm - gcdx*gcdn if gcdr = 0 exitm endif gcdm set gcdn gcdn set gcdr endm endm ; diskdef macro dn,fsc,lsc,skf,bls,dks,dir,cks,ofs,k16 ;; generate the set statements for later tables if nul lsc ;; current disk dn same as previous fsc dpb&dn equ dpb&fsc ;equivalent parameters als&dn eq direction mvi a,1 sta hstwrt ;hstwrt = 1 xchg ;source/dest swap ; rwmove: ;C initially 128, DE is source, HL is dest ldax d ;source character inx d mov m,a ;to dest inx h dcr c ;loop 128 times jnz rwmove ; ; data has been moved to/from host buffer lda wrtype ;write type cpi wrdir ;to directory? lda erflag ;in case of errors rnz ;no further processing ; ; clear host buffer for directory write ora a ;errors? rnz ;skip if so xra a ;0 to accum sta hstwrt ;buffer written call writehst lda erflag ret ; ;***************************************************** ;* * ;* Utility subroutine for 16-bit compare * ;* * ;***************************************************** sektrkcmp: ;HL = .unatrk or .hsttrk, compare with sektrk xchg lxi h,sektrk ldax d ;low byte compare cmp m ;same? rnz ;return if not ; low bytes equal, test high 1s; CP/M 2.0 disk re-definition library ; ; Copyright (c) 1979 ; Digital Research ; Box 579 ; Pacific Grove, CA ; 93950 ; ; CP/M logical disk drives are defined using the ; macros given below, where the sequence of calls ; is: ; ; disks n ; diskdef parameter-list-0 ; diskdef parameter-list-1 ; ... ; diskdef parameter-list-n ; endef ; ; where n is the number of logical disk drives attached ; to the CP/M system, and parameter-list-i defines the ; characteristics of the ith drive (i=0,1,...,n-1) ; ; each parameter-list-i takes the form ; dn,fsc,lsc,[skf],bls,dks,dir,cks,ofs,[0] ; where ; dn is the disk number 0,1,...,n-1 ; fsc is the first sector number (usually 0 or 1) ; lsc is the last sector number on a track ; skf is optional "skew factor" for sector translate ; bls is the data block size (1024,2048,...,16384) ; dks is the disk size in bls increments (word) ; dir is the number of directory elements (word) ; cks is the number of dir elements to checksum ; ofs is the number of u als&fsc ;same allocation vector size css&dn equ css&fsc ;same checksum vector size xlt&dn equ xlt&fsc ;same translate table else secmax set lsc-(fsc) ;;sectors 0...secmax sectors set secmax+1;;number of sectors als&dn set (dks)/8 ;;size of allocation vector if ((dks) mod 8) ne 0 als&dn set als&dn+1 endif css&dn set (cks)/4 ;;number of checksum elements ;; generate the block shift value blkval set bls/128 ;;number of sectors/block blkshf set 0 ;;counts right 0's in blkval blkmsk set 0 ;;fills with 1's from right rept 16 ;;once for each bit position if blkval=1 exitm endif ;; otherwise, high order 1 not found yet blkshf set blkshf+1 blkmsk set (blkmsk shl 1) or 1 blkval set blkval/2 endm ;; generate the extent mask byte blkval set bls/1024 ;;number of kilobytes/block extmsk set 0 ;;fill from right with 1's rept 16 if blkval=1 exitm endif ;; otherwise more to shift extmsk set (extmsk shl 1) or 1 blkval set blkval/2 endm ;; may be double byte allocation if (dks) inx d inx h ldax d cmp m ;sets flags ret ; ;***************************************************** ;* * ;* WRITEHST performs the physical write to * ;* the host disk, READHST reads the physical * ;* disk. * ;* * ;***************************************************** writehst: ;hstdsk = host disk #, hsttrk = host track #, ;hstsec = host sect #. write "hstsiz" bytes ;from hstbuf and return error flag in erflag. ;return erflag non-zero if error ret ; readhst: ;hstdsk = host disk #, hsttrk = host track #, ;hstsec = host sect #. read "hstsiz" bytes ;into hstbuf and return error flag in erflag. ret ; ;***************************************************** ;* * ;* Unitialized RAM data areas * ;* * ;***************************************************** ;tracks to skip (word) ; [0] is an optional 0 which forces 16K/directory entry ; ; for convenience, the form ; dn,dm ; defines disk dn as having the same characteristics as ; a previously defined disk dm. ; ; a standard four drive CP/M system is defined by ; disks 4 ; diskdef 0,1,26,6,1024,243,64,64,2 ; dsk set 0 ; rept 3 ; dsk set dsk+1 ; diskdef %dsk,0 ; endm ; endef ; ; the value of "begdat" at the end of assembly defines the ; beginning of the uninitialize ram area above the bios, ; while the value of "enddat" defines the next location ; following the end of the data area. the size of this ; area is given by the value of "datsiz" at the end of the ; assembly. note that the allocation vector will be quite ; large if a large disk size is defined with a small block ; size. ; dskhdr macro dn ;; define a single disk header list dpe&dn: dw xlt&dn,0000h ;translate table dw 0000h,0000h ;scratch area dw dirbuf,dpb&dn ;dir buff,parm block dw csv&dn,alv&dn ;check, alloc vec  > 256 extmsk set (extmsk shr 1) endif ;; may be optional [0] in last position if not nul k16 extmsk set k16 endif ;; now generate directory reservation bit vector dirrem set dir ;;# remaining to process dirbks set bls/32 ;;number of entries per block dirblk set 0 ;;fill with 1's on each loop rept 16 if dirrem=0 exitm endif ;; not complete, iterate once again ;; shift right and add 1 high order bit dirblk set (dirblk shr 1) or 8000h if dirrem > dirbks dirrem set dirrem-dirbks else dirrem set 0 endif endm dpbhdr dn ;;generate equ $ ddw %sectors,<;sec per track> ddb %blkshf,<;block shift> ddb %blkmsk,<;block mask> ddb %extmsk,<;extnt mask> ddw %(dks)-1,<;disk size-1> ddw %(dir)-1,<;directory max> ddb %dirblk shr 8,<;alloc0> ddb %dirblk and 0ffh,<;alloc1> ddw %(cks)/4,<;check size> ddw %ofs,<;offset> ;; generate the translate table, if requested if nul skf xlt&dn equ 0 ;no xlate table else if skf = 0 xlt&dn equ 0 ;no xlate table else ;; generaTHAT A JMP TO 0000H REBOOTS) CALL CRLF LHLD OLDSP SPHL ; STACK POINTER CONTAINS CCP'S STACK LOCATION RET ;TO THE CCP ; ; ; SUBROUTINES ; BREAK: ;CHECK BREAK KEY (ACTUALLY ANY KEY WILL DO) PUSH H! PUSH D! PUSH B; ENVIRONMENT SAVED MVI C,BRKF CALL BDOS POP B! POP D! POP H; ENVIRONMENT RESTORED RET ; PCHAR: ;PRINT A CHARACTER PUSH H! PUSH D! PUSH B; SAVED MVI C,TYPEF MOV E,A CALL BDOS POP B! POP D! POP H; RESTORED RET ; CRLF: MVI A,CR CALL PCHAR MVI A,LF CALL PCHAR RET ; ; PNIB: ;PRINT NIBBLE IN REG A ANI 0FH ;LOW 4 BITS CPI 10 JNC P10 ; LESS THAN OR EQUAL TO 9 ADI '0' JMP PRN ; ; GREATER OR EQUAL TO 10 P10: ADI 'A' - 10 PRN: CALL PCHAR RET ; PHEX: ;PRINT HEX CHAR IN REG A PUSH PSW RRC RRC RRC RRC CALL PNIB ;PRINT NIBBLE POP PSW CALL PNIB RET ; ERR: ;PRINT ERROR MESSAGE ; D,E ADDRESSES MESSAGE ENDING WITH "$" MVI C,PRINTF ;PRINT BUFFER FUNCTION CALL BDOS RET ; ; GNB: ;GET NEXT BYTE LDA IBP CPI 80H JNZ G0 te the translate table nxtsec set 0 ;;next sector to fill nxtbas set 0 ;;moves by one on overflow gcd %sectors,skf ;; gcdn = gcd(sectors,skew) neltst set sectors/gcdn ;; neltst is number of elements to generate ;; before we overlap previous elements nelts set neltst ;;counter xlt&dn equ $ ;translate table rept sectors ;;once for each sector if sectors < 256 ddb %nxtsec+(fsc) else ddw %nxtsec+(fsc) endif nxtsec set nxtsec+(skf) if nxtsec >= sectors nxtsec set nxtsec-sectors endif nelts set nelts-1 if nelts = 0 nxtbas set nxtbas+1 nxtsec set nxtbas nelts set neltst endif endm endif ;;end of nul fac test endif ;;end of nul bls test endm ; defds macro lab,space lab: ds space endm ; lds macro lb,dn,val defds lb&dn,%val&dn endm ; endef macro ;; generate the necessary ram data areas begdat equ $ dirbuf: ds 128 ;directory access buffer dsknxt set 0 rept ndisks ;;once for each disk lds alv,%dsknxt,als lds csv,%dsknxt,css dsknxt set dsknxt+1 endm e; FILE DUMP PROGRAM, READS AN INPUT FILE AND PRINTS IN HEX ; ; COPYRIGHT (C) 1975, 1976, 1977, 1978 ; DIGITAL RESEARCH ; BOX 579, PACIFIC GROVE ; CALIFORNIA, 93950 ; ORG 100H BDOS EQU 0005H ;DOS ENTRY POINT CONS EQU 1 ;READ CONSOLE TYPEF EQU 2 ;TYPE FUNCTION PRINTF EQU 9 ;BUFFER PRINT ENTRY BRKF EQU 11 ;BREAK KEY FUNCTION (TRUE IF CHAR READY) OPENF EQU 15 ;FILE OPEN READF EQU 20 ;READ FUNCTION ; FCB EQU 5CH ;FILE CONTROL BLOCK ADDRESS BUFF EQU 80H ;INPUT DISK BUFFER ADDRESS ; ; NON GRAPHIC CHARACTERS CR EQU 0DH ;CARRIAGE RETURN LF EQU 0AH ;LINE FEED ; ; FILE CONTROL BLOCK DEFINITIONS FCBDN EQU FCB+0 ;DISK NAME FCBFN EQU FCB+1 ;FILE NAME FCBFT EQU FCB+9 ;DISK FILE TYPE (3 CHARACTERS) FCBRL EQU FCB+12 ;FILE'S CURRENT REEL NUMBER FCBRC EQU FCB+15 ;FILE'S RECORD COUNT (0 TO 128) FCBCR EQU FCB+32 ;CURRENT (NEXT) RECORD NUMBER (0 TO 127) FCBLN EQU FCB+33 ;FCB LENGTH ; ; SET UP STACK LXI H,0 DAD SP ; ENTRY STACK POINTER IN HL FROM THE CCP SHLD OLDSP ; SET SP TO LOCAL STACK AR ; READ ANOTHER BUFFER ; ; CALL DISKR ORA A ;ZERO VALUE IF READ OK JZ G0 ;FOR ANOTHER BYTE ; END OF DATA, RETURN WITH CARRY SET FOR EOF STC RET ; G0: ;READ THE BYTE AT BUFF+REG A MOV E,A ;LS BYTE OF BUFFER INDEX MVI D,0 ;DOUBLE PRECISION INDEX TO DE INR A ;INDEX=INDEX+1 STA IBP ;BACK TO MEMORY ; POINTER IS INCREMENTED ; SAVE THE CURRENT FILE ADDRESS LXI H,BUFF DAD D ; ABSOLUTE CHARACTER ADDRESS IS IN HL MOV A,M ; BYTE IS IN THE ACCUMULATOR ORA A ;RESET CARRY BIT RET ; SETUP: ;SET UP FILE ; OPEN THE FILE FOR INPUT XRA A ;ZERO TO ACCUM STA FCBCR ;CLEAR CURRENT RECORD ; LXI D,FCB MVI C,OPENF CALL BDOS ; 255 IN ACCUM IF OPEN ERROR RET ; DISKR: ;READ DISK FILE RECORD PUSH H! PUSH D! PUSH B LXI D,FCB MVI C,READF CALL BDOS POP B! POP D! POP H RET ; ; FIXED MESSAGE AREA SIGNON: DB 'FILE DUMP VERSION 1.4$' OPNMSG: DB CR,LF,'NO INPUT FILE PRESENT ON DISK$' ; VARIABLE AREA IBP: DS 2 ;INPUT BUFFER POINTER OLDSP: DS 2 ;ENTRY SP VALUE FROM CCP ;nddat equ $ datsiz equ $-begdat ;; db 0 at this point forces hex record endm ; = gcd(sectors,skew) neltst set sectors/gcdn ;; neltst is number of elements to generate ;; before we overlap previous elements nelts set neltst ;;counter xlt&dn equ $ ;translate table rept sectors ;;once for each sector if sectors < 256 ddb %nxtsec+(fsc) else ddw %nxtsec+(fsc) endif nxtsec set nxtsec+(skf) if nxtsec >= sectors nxtsec set nxtsec-sectors endif nelts set nelts-1 if nelts = 0 nxtbas set nxtbas+1 nxtsec set nxtbas nelts set neltst endif endm endif ;;end of nul fac test endif ;;end of nul bls test endm ; defds macro lab,space lab: ds space endm ; lds macro lb,dn,val defds lb&dn,%val&dn endm ; endef macro ;; generate the necessary ram data areas begdat equ $ dirbuf: ds 128 ;directory access buffer dsknxt set 0 rept ndisks ;;once for each disk lds alv,%dsknxt,als lds csv,%dsknxt,css dsknxt set dsknxt+1 endm eEA (RESTORED AT FINIS) LXI SP,STKTOP ; READ AND PRINT SUCCESSIVE BUFFERS CALL SETUP ;SET UP INPUT FILE CPI 255 ;255 IF FILE NOT PRESENT JNZ OPENOK ;SKIP IF OPEN IS OK ; ; FILE NOT THERE, GIVE ERROR MESSAGE AND RETURN LXI D,OPNMSG CALL ERR JMP FINIS ;TO RETURN ; OPENOK: ;OPEN OPERATION OK, SET BUFFER INDEX TO END MVI A,80H STA IBP ;SET BUFFER POINTER TO 80H ; HL CONTAINS NEXT ADDRESS TO PRINT LXI H,0 ;START WITH 0000 ; GLOOP: PUSH H ;SAVE LINE POSITION CALL GNB POP H ;RECALL LINE POSITION JC FINIS ;CARRY SET BY GNB IF END FILE MOV B,A ; PRINT HEX VALUES ; CHECK FOR LINE FOLD MOV A,L ANI 0FH ;CHECK LOW 4 BITS JNZ NONUM ; PRINT LINE NUMBER CALL CRLF ; ; CHECK FOR BREAK KEY CALL BREAK ; ACCUM LSB = 1 IF CHARACTER READY RRC ;INTO CARRY JC FINIS ;DON'T PRINT ANY MORE ; MOV A,H CALL PHEX MOV A,L CALL PHEX NONUM: INX H ;TO NEXT LINE NUMBER MVI A,' ' CALL PCHAR MOV A,B CALL PHEX JMP GLOOP ; FINIS: ; END OF DUMP, RETURN TO CCP ; (NOTE   ; STACK AREA DS 64 ;RESERVE 32 LEVEL STACK STKTOP: ; END ARRY SET FOR EOF STC RET ; G0: ;READ THE BYTE AT BUFF+REG A MOV E,A ;LS BYTE OF BUFFER INDEX MVI D,0 ;DOUBLE PRECISION INDEX TO DE INR A ;INDEX=INDEX+1 STA IBP ;BACK TO MEMORY ; POINTER IS INCREMENTED ; SAVE THE CURRENT FILE ADDRESS LXI H,BUFF DAD D ; ABSOLUTE CHARACTER ADDRESS IS IN HL MOV A,M ; BYTE IS IN THE ACCUMULATOR ORA A ;RESET CARRY BIT RET ; SETUP: ;SET UP FILE ; OPEN THE FILE FOR INPUT XRA A ;ZERO TO ACCUM STA FCBCR ;CLEAR CURRENT RECORD ; LXI D,FCB MVI C,OPENF CALL BDOS ; 255 IN ACCUM IF OPEN ERROR RET ; DISKR: ;READ DISK FILE RECORD PUSH H! PUSH D! PUSH B LXI D,FCB MVI C,READF CALL BDOS POP B! POP D! POP H RET ; ; FIXED MESSAGE AREA SIGNON: DB 'FILE DUMP VERSION 1.4$' OPNMSG: DB CR,LF,'NO INPUT FILE PRESENT ON DISK$' ; VARIABLE AREA IBP: DS 2 ;INPUT BUFFER POINTER OLDSP: DS 2 ;ENTRY SP VALUE FROM CCP ;"&! 6R*I""ë :!M:H| ! 6>F ͛e: <2 O! Hqy d F : 2! 6*#s#r :!N ͢ *o/ Ҧ Ͷn! 6!"&R! 6o$ Î Ç :!S0 $͢- :2"+s#r!:* *& ~2!:<2 :!W> v :!X³ Z͎\ Ee ð :7/҃ E!76e ͕ :xƒ - ͷ*&"K(Kڰ *KM N͔*K"KҌ :!Z ͎  ͢ : :!  'v!gq:f *g&!lq:l $ !h4:l 1 !h6*lM :hB     !h55!mq:m :hO>H2ny} !m6 !o6:n!oښ *mM !o4‚ !pq:p ڪ >:p :p H:p H!qq*qM͛  ^W :q@2q*qMW   !sp+q*r !up+q *tDM !wp+q*v !zp+q*y2x!|p+q*{2x!~p+q*}2x!p+q*!p+q*!p+q*!p+q*2x!p+q*!6   >>! q* &!p+q* COPYRIGHT (C) 1979, DIGITAL RESEARCH DISK OR DIRECTORY FULL$FILE EXISTS, ERASE IT$NEW FILE$** FILE IS READ/ONLY **$"SYSTEM" FILE NOT ACCESSIBLE$BAK$$$BAK$$$-(Y/N)?$NO MEMORY$BREAK "$" AT $1mM"m +!8s~1m!f6 *M  *!M 1m! 6!6! 6: 2Ebͽ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! 6F×͢җ:Ç :!T¨F :!U¾: 2 :!V͎"$DMͩ/ *oDMͩ : 2 :! (::H%^bF : ͎H :!Ay! 6*""&*o"(R͎an͢na! 6R :!F”͢ґ Ä :!J $:2$͢ :=2:<2!*& ~2!ü*""I*M*o/!:" 6:0O  ú!p+q:/(*DMͩ:  : I N* *DM:aO>!Һ x!: ڦ> ʡ* +" >¡! 6: <2 =O! N͒:  O͒: ! 6:h!o$O* ͸ ! 6 !h6!: 2 3* & 6 : <2 =O! N͒*dM  :sGsu n>!6:<2=O! N͒!">!"͎/Ҵ*+">>!": *#"*""*!".+",*$"**o".!",!36:3{.*22*,**"0M ~ H3*0"**+"*+">23:2/k!36,*+s#rx:3x*0"*: “**"&*"+"(á*$#"&**#"(*"#""*$#"$*"+""*$+"$*#"!4qM*"*$: *(y"$DM}|C#~ *#"*&DMyxC 1*+":4?w+"$""ͷR: —*$"("҈!"&Ô""&*""&$mڸ*o"(**$"($"O26͛*"M :6w͢:6 (INP:/OUT:SPACE)(INP:/OUT:SPACE)(INP:/OUT:SPACE)(INP:/OUT:SPACE)(INP:/OUT:SPACE)(INP:/OUT:SPACE)(INP:/OUT:SPACE)(INP:/OUT:SPACE)(INP:/OUT:SPACE)(INP:/OUT:SPACE)(INP:/OUT:SPACE)(INP:/OUT:SPACE)(INP:/OUT:SPACE)(INP:/OUT:SPACE)(INP:/OUT:SPACE) COPYRIGHT (C) 1979, DIGITAL RESEARCH, PIP VERS 1.8$$$ SUB =.:,<> _[]INPIRDPTRUR1UR2RDROUTLPTUL1PRNLSTPTPUP1UP2PUNTTYCRTUC1CONNULEOFDISK READ ERROR$DISK WRITE ERROR$VERIFY ERROR$NOT A CHARACTER SINK$READER STOPPING $NOT A CHARACTER SOURCE$ABORTED$BAD PARAMETER$INVALID USER NUMBER$RECORD TOO LONG$INVALID DIGIT$END OF FILE, CTL-Z?$CHECKSUM ERROR$CORRECT ERROR, TYPE RETURN OR CTL-Z$INVALID FORMAT$HEX$$$$NO DIRECTORY SPACE$NO FILE$COM$START NOT FOUND$QUIT NOT FOUND$CANNOT CLOSE DESTINATION FILE$DESTINATION IS R/O, DELETE (Y/N)?$**NOT DELETED**$$$$$$$NOT FOUND$COPYING -$REQUIRES CP/M 2.0 OR NEWER FOR OPERATION.$UNRECOGNIZED DESTINATION$CANNOT WRITE$INVALID PIP FORMAT$CANNOT READ$INVALID SEPARATOR$1 :2L> ̈́M9 !7q:*7M͒:7o$+͛ͪ*$M ~28Om:8 I͇͢u$oqo͛rP! 6!"&*$"(R͎ҔM͢ҡÔ($ҵ! 6R͇vͶ2!*!Mm$"*"M :!w͢:! e2!:! : /HH/Q:! @!!6 R!!6 :!KR$*& :!w:<2dn!:s+q*$";!>6:>/;oH*;#"(";:92=*=& *(M !::=2>/H:=<2=*(#"(æÀ:>*(+"(R:>!6$:2*o/*!My:<2=O!s Hq**DMͷ! 6: e!"*""?k*&"?*?+M ~2A :hHҏ *&"?(?:A ½8*#" ҽ*?M ~2AO *?"?ҕ!"*"*"^: 2B! 6F:B2 o(>&H6͛9!C6>!Ca R>:C<2C?! 6!"͇͢Ґq"ڊ͛Íq!!6 !!6 !6*!Ma2D*!M͒2!:D/!+w!6e2!͢!Eq!E:!:H:H!Fq@ COPYRIGHT (C) 1978, DIGITAL RESEARCH ERROR: $, LOAD ADDRESS $DISK READ$INVERTED LOAD ADDRESS$DISK WRITE$LOAD ADDRESS $ERROR ADDRESS $BYTES READ:$INVALID HEX DIGIT$CHECK SUM ERROR $FIRST ADDRESS $LAST ADDRESS $BYTES READ $RECORDS WRITTEN $HEXCANNOT OPEN SOURCE$COMNO MORE DIRECTORY SPACE$CANNOT CLOSE FILE$*!9"!e !" !" \!""͊: ƒde"\\\͊: ²d\͝: )d;! q* &f  ! q> ! : A O: 0O! q: O: O! p+q* |O* }O! p+q*  f! p+q* DMB! p+q)R* DMB1B* DM+;! p+q* i2 ! p+q* i2 ! p+q* i2 i2 !" p+q*! f!$ p+q*# i!& p+q*% i!( p+q*' i2 !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*C &͍:D _og_{ozg^#V) _{ozgi`N#Fogo&og_{_z#W( p+q*' i2 !* p+q*) f!/ s+p+q+p+q:/ =2/ X*+ *- w*+ #"+ *- #"- 1* #" ͖r*   ~!" ! ͸×* " x20 º*   DM":0 Ad*   6!" Ç!" : !"6 "8 ": }2< !"4 "= ! !p+q* !q*& *M *M !p+q*!!p+q*"!p+q*$!6  !kp+q*j> >ڪ Þ !qp+q/ *pDM9: :M2r:N!r !:r *r& N!r4 !6:͔: :ͳ.!ws+p+q+p+q:w=2wN *s*u w*s#"s*u#"u' !"*M^7 !x6:!xھ **DM͆ 2yʭ :yʗ ͯ *"*6:2x÷ *"!x4d !"/ !j}=2| !"*KM^'_ !z6:|!z1 * "}*}DM͆ ' ͯ *"!z4 :e !"͆ !z6:|!z '? 2*H#"H!{6:{ր!Ң *{& :{4 2!{4m *":ڹ ͯ !z4I '2!"!q: !4>!S :S! :2*M! ^#V͎ * :w*#" = = = = = ͯ  *M !6q  !6q  !q  *& !6à  !6 à  !60à  *& !6  !6  !6  *& . 1 4 7 : = F P [ f q  ÷:S:QHI:N<22: H@"2Í202O> c!6Í202O> ڍ*&O*& !sc*&P :w:·>!ұͯ :22:_!6=!6>'!E!4!p+q*0 !r+s+p+q*~$7*>*>H&>*#"*#"> 2:^R͎:!6!6=2:ʙ!6:“H9Ž>!6-e!6ͻ2=2ʺ-é:>>"ͻ2:!!5ͻ2ͬ!\-:>>!p+q:,!6*DM9:<!6:z 2W!6D*&L :w:<2Ov*:>=20O> ڒ:0:AO>Ҥ::A }}Hͬ!wͻO`idͻV[2O>2:!X!6:!:=O!L NE!4 E E:/.*&L 6$L9k9.Xͯ *KM^020 :020:121'ͳ':²ͯ !G6!"!"7 *M^n/ :a/:H!6:ͯ !&63 Copyright (c) 1979, Digital Research????????????CON:RDR:PUN:LST:DEV:VAL:USR:DSK:TTY:CRT:BAT:UC1:TTY:PTR:UR1:UR2:TTY:PTP:UP1:UP2:TTY:CRT:LPT:UL1:R/OR/WSYSDIRR/O R/W SYS DIR ** Aborted **Active User :Active Files: Drive Characteristics65536: 128 Byte Record CapacityKilobyte Drive Capacity32 Byte Directory EntriesChecked Directory EntriesRecords/ ExtentRecords/ BlockSectors/ TrackReserved Tracks is Temp R/O Disk: d:=R/OSet Indicator: d:filename.typ $R/O $R/W $SYS $DIRDisk Status : DSK: d:DSK:User Status : USR:Iobyte Assign: =Bad DelimiterInvalid AssignmentBad Delimiter: Bytes Remaining On R/, Space: Invalid File Indicator** Too Many Files **File Not Found Size Recs Bytes Ext Acc65536 set to R/O Invalid Disk AssignmentWrong CP/M Version (Requires 2.0)!9"2!T OË!]6:\:] Hr3 Ë:\ʀË͇ /ҋͺ *2!"q*"&L ͐ ͐ ͐!$p+q*#~*#N͐*##"#÷!&p+q͠*%DMͱ O O!(q*(& :2!q: " *M n :c4 *M n :2!c:Q !c:2: !:cw>!n !5 Y : { !6!q:!lwҙ  â :0O !q:O| :O| !6:]2l:o'2o:n'2n:m'2m*mMͣ *nMͣ *oMͣ :]:   *}2D" * * *&"!q:UY: Y:ҩ: ʩ:_2ʘ:€!6<:<2!ژ!6 >!]Ҥ; !6:Q::H: !6*M : !6!q:a/>z!/H:_2:!q:A/>Z!/H8: 2::=O>m:W!Q} Hmd>9>!6:2*M!E ^#V͎ڗO **~2*#"m2m͖ 2m!6m!6m!6 m2mͯ m!62m!62m!62m!62m'2:2:TҒ:2!6*ME:2::^Ҳ:<22ý: 2:} >ͯ :i:2:d*M:[ 2*">!b!ͯ >!`0ͯ !q:E:24J!46*}a!44EJ *KM^'́:‚ͯ !36'n::0:f9OY#9.3'ͳ.:020' 'ͳ'7 6'!j>A+!s!"@͓1!"<**"͓n "Dn"":!Q2҂:X!Wғä:ڤ*MEÓ:ұ@@:O2Mc;!6#6>!)*&P ~"::H:H:H:H"!6!4:_jYO jM*"S*" 3@bl*M1͓!""7 *M^͆ \͔!":͎H*#"ͧÝ/ :>͛9ͯ .*#":_!' !'6!36' :1/!aE*#">z?C9IͲÁ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3 ^#V"`#2_+?~(?>2_>(2)>2(w ~#f>P2)>2(rzbzw>2)bzrͿ:_ʝ::2\ ! ">2!4:(BN>2:)!4!^!*FNyͅ*DM:ʼ!ͳ͐ͤ ʼ!6"@!":_?!">62)!:(=?bͿè1!Iͳ:] ʡ\ʥ *}҆ *M ͱ*}x O͐} W͐ͱ !+s#r!+s#r#4D ͠:\ʹ :\=Oͳͩ !6!)6l :) :)=2) :] & !"}2\!h6?!j6?\:'C:'ƀo&")!)6!"):)/)HҘ]!)6> !)ڎ*)&*)*)&*) y!)6 Ä:) 2):)<2)M*)#")/:)ҩ*)+")`*")#"]!*)!/H!")!"]*)) *)s#r!)6> !).*)&*)*)&*) w:)<2)*)) >w#6*)) w#6*)!) w#6*)%) w#6*)) N#F*)) q#p*)%) *) ~e *) * ~o&͞ *)%) q#p!)6* >!)6!)6>!)=:)!)w=*)&*)~2):)*)& *):)2):):*)!) *)) s, >X\:)“>!d!")>!)d!")!")*++!)a*)) ^#V")]*)")*)) ^#V")]!)6> !)T*)&*)~2)*)&*)~2)O;*)) ^#V" copyright(c) 1977, digital research $Error On Line $SUBNo 'SUB' File Present$Disk Write Error$Command Buffer Overflow$Command Too Long$Parameter Error$Invalid Control Character$Directory Full$Cannot Close, Read/Only?$!9"!͇͊!p+q* ͊!p+q*͍2!p+q*͍2!p+q*͊!p+q*͍!p+q*͍!p+q*͍2!s+p+q+p+q:=2ʦ** w*#"*#"!p+q(+*DM*p*& 6:ep\:=ͧ!t6>!t%\= >!t6:t<2t=O! ~2u b:<2O>9b!60+~9b!60+4:uat:u_2u:uMʉSͧ!v6!"v!|6:|Ҁ!x6 2}:} Hk:} h:}$6 2}$*}M3:}02}O> ͧ3!z6ͭ:}"!}5́ͭ́3*yM"h:}^a A2}O>Vͧ^:}>*z& ~ !z4í!{q*v#"v͙dͧ*vv :{w:x<2xO>}|ͧreturnPermanent error, Type return to ignoreFunction completeInvalid drive (Use A through P)No such fileSource file incompleteCan not generate systems on 5 1/4 diskettes that are formatted in single density.o warm boot)Destination on 6, then type returnPermanent error, Type return to ignoreFunction completeInvalid drive (Use A through PNo such fileSourc?ͳ͐ͤ ʼ!6"@!":_?!">62)!:(=?bͿè1!Iͳ:] ʡ\*) w *) >*) w *) >*) w *) >*) w.*)DM\ -+!\6uͱ:)O! DMͱ*)#")Ù*))))))"):m w>.Yn -:YS:Z Hҧ!6> 2)½>!)6> !)*)&*)>2) :) .͐*)M͐:)<2)99:Y=/9&ͩ c,Hͩ 9 EHͺ i`N#Fog_og_ogDM!>))덑o|gҘ =†DM!>))ҭ =¥~ ³^#V) ½^#V|g}o _{ozgi`N#Fogo&og_{_z#W-!6]:ͧz2~e:~2O! 6*~& 6$>!~_z*~& w!~5Bx:yͧ*v+"vv ~_{ozg001 $$$$ SUB ͊!p+q*͍2!p+q*͍2!p+q*͊!p+q*͍!p+q*͍!p+q*͍2!s+p+q+p+q:=2ʦ** w*#"*#"!p+q(+*DM*p*& 6:ep\:=ͧ!t6>!t%\= >!t6:t<2t=O! ~2u b:<2O>9b!60+~9b!60+4:uat:u_2u:uMʉSͧ!v6!"v!|6:|Ҁ!x6 2}:} Hk:} h:}$6 2}$*}M3:}02}O> ͧ3!z6ͭ:}"!}5́ͭ́3*yM"h:}^a A2}O>Vͧ^:}>*z& ~ !z4í!{q*v#"v͙dͧ*vv :{w:x<2xO>}|ͧW Extended Submit Vers 2.0Xsub Already Present$Requires CP/M Version 2.0 or later$:y*###ƒ# yk   җ 4!~=ŐW!xʵ ~#èbx {~#o}où.xsubb!np+q*m2_!pp+q*o ]xsub*"-!/"*"+!""1 M*!"́!"* (xsub active)$|*y ʥ*"*7***x*́͋<͛ :%*=26͋!7^#6 #6 #6$ 8*7~O #w# !6:6=2% ͋*-"*$$$ SUBq:(=2(N *$*& w*$#"$*&#"&' !"N*M^7 !)6:!)ھ *N*DM͆ 2*ʭ :*ʗ ͯ *N"P*6:2)÷ *N"N!) $@BA$! A "!$""ion callOverflowOut of memoryUndefined line numberSubscript out of rangeDuplicate DefinitionDivision by zeroIllegal directType mismatchOut of string spaceString too longString formula too complexCan't continueUndefined user functionNo RESUMERESUME without errorUnprintable errorMissing operandLine buffer overflow??FOR Without NEXT??WHILE without WENDWEND without WHILEFIELD overflowInternal errorBad file numberFile not foundBad file modeFile already open?Disk I/O errorFile already exists??Disk fullInput past endBad record numberBad file name?Direct statement in fileToo many filespP8`@` :Y! d! ~Y#=%iʎ%à&O[H> K> Yi>: y +=2i ZY#ZEo:ҋ0o.o%~ Ҡ ʠ ʠ> :i <ʩ=m+~ ʬ ʬ ʬ#>d2 ͋9C" :g ͬ! (" !9T  +V+^##* C" B* *Cd Nz)~S ͒(q)ʹ(QZ~>r)ʹ(E(OdG+ $* "* 3àE3\B" !9" ~: #~#ʅ #^#V": >[@1>]@ցLO! N#F#~: ҆ ځ#:l `#2l f>R~#"j &o"n >2m !~##"j +fC͎*j <2m n G("j ! 0?<=:l ҫ ګ*n ¨###^#V,:m 2g *n " *p " !n (E AOGEAGx3Ø(:l  *j #*C > 2 ,$`i P "  "!>:yHG+ȸ#", in Ok Break!9~#b  T N#F#`izv C T  *|<ʗ :  D=96543>7@?2C: * "   *" 2 2 |< "  * <֌W-͋9C" :g G:g x=ͬ:g  H * #^#V*Cs* C{! C{>HͣFH(µC(zʢPY" : {:_ u ~GC+K x),  <2~(z˜<* * "~ #####u   =>C,* =( |" 2 " â ~,dC+͆(~ʕ *n €€l>2á Q+!B>ee,%;d)1F6 * 4TF* ::G<:?=:G<:e ?=!B&Gá(* TF~\:I:G<:\V:G:e \!B\/V tz|TF›:::o<ʛ& ,C)+(* TF~:::e /<!B{= @è2go"C#ʧQHLo͋9;*0KDF>-?Redo from start #~ "4N: !!#G* Q!a ;#YHL">2>2 F~,2 ÓC;&G: ʫ>?@> @0KDů2 6,+>2 ͉:~+[(# "4([])Ì]z))DEc9@gQC}DE CsD +"]D  $ |D}DDD<|""XL{LL{PtM=$$YXTZZSR\SZeXY{TzTSYHIyII|(*g(678&+7y8919JHFIHH"+IFFz)) *m*zQ}QQU@VXVaQdQgQ;LM$Xq"9BLdhiUTϫNBTSLOSONԚLEAҒINSNDBV+V,V-O HRAL̶OMMOθHAIιELETŪATI͆EFSTҭEFINԮEFSNǯEFDB̰EƘLSŢNāRASŦDIԧRROҨRRX O/QO҂IELILERIOTωO TωOSUEEXNPUԅƋNSTNNMNKEYILPRINԞLISԟPOEԈINűOASEISԓO O0EEFTO1ERGOKI2KS3KD4IDEXԃUL̖AMEהOPEοUԝΕCTPTIOκRINԑUOKřOEEETURΎEAćUΊESTORŌE͏ESUMũSEIGHTNENUͬESEANDOMIZŻTOАWAХAVPCTEGQI TRTRINGPACEYSTEͽHEROΣROFƤABA SINSAARPTIDTȡAIԗHILŴENĵRITŷO۾yy||PF<2(z{ *z);*)&,,d-D.s)%%'i')1+%+Q+3)NEXT without FORSyntax errorRETURN without GOSUBOut of DATAIllegal functC{K2* " * |< " " * |! 4 4 5wY2B!{DP 2R U >(_#U * ~?o !P #GC!BʻY|<1>DA2MSB!E :* > @(K 2 Ç 2 *  C " :b ʢ >(Kڢ <=ʢ (ͬ~ ̾(" ҊSe]" ;5$ܢ"ʇ: \*v " * ͶB" t##s#r## w# y}ͯ!6"*" 7C*"* "â *bk~####~ ҷ ڷù#s#rïC *DM~#+##~#foC`i~#fo??2i 2h ;#~=!@}O|G!""y O:h ~ʂ#Y:aJg>2h 2i U%~|*O~#Ym?>HjZEڗ;;>ʸ;>HOZ#þGO TOUBZ!AO ^#V#ZOd#<y(!!!Z.!>dG>Y2i Y%=+ZOiMk֢ύ>2i W„Y>5W>Y{~.ʧ:"0":i ~O.O>Y(ͬ}Y|Y%~.ͬ:g * |>}e. , ~,B>2 d: =Bd̨H+~,ʿ+N6,E* 2 QC,͋9~,c: 2 TF—Qd¢WG"ʌ: Wʉ:,+FO: y!...+ʽ,G+M: C#~# #^#V" cCC(+B͓2 " * ~" ڎ_4:g {[H !xVzʬQںzʺ! :g  N#F#N#F! N#F#N#FKG* W " Ð)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Y\DM\ʓ\͹\! w!( V6 ʎ\zwø \ʓ\͹\! ~!ô\! ^#V! s#rDMͱ\ͫ\C" ͒#\>;S"]C ** C!X9}o|g'ÆNO SPACE^ :Ty!B*O=?_s#"^sG!~Ypsp2mÆÆf ͧÆFILE EXISTS _: É: :ʉ=2)ͽÉ T!@k!}|q=qf^!~2>`~22\!!B!~> >#0~O#Cx2͘1)ͽÂf zͧÆBAD LOADCOMf^: ! Â$$$ SUB"."C {2!"E 9" 1A 22!ty)K!G_^#V*C   ~E , &-AGMS  !!ô!ô!Bdos Err On : $Bad Sector$Select$File R/O$ :B A2 ! ~6  O͐  : E  B 2 >: b # : y! 4 5~yy 5 6y Ґ ^H @Oy H  H : – ͬ   #H : !  H ù  H  H $O͐ : 2 *C N# !9}o|g ] \ \ ** C!9}o|g!X9}o|g S] )] )]*|<:  C*+6* ~šRÇ !?`2 "!"6:͗C2e " * ^#V"zB"UB"##^#V"A##^#V"A##^#V"=A 2!]!!"" !"22d 2 2 2!"!" !z "x ! "L *"v >2!^" :^^<2^!~" ^F#~+w##D^+6" !^/x^+6"" #/x^i^^6ZS^Mʐ^F C:dʯ^z{2ô^"v +^C/}^C:d" ô^+*v +"v +:!]"2<s#r# *  DM=^#"" {ozgB|g}o_|0_!{ozgB"v "" " *B}o|g++!_#G1!_#G!#G" !B! v] Owned by Microsoft Bytes freeBASIC-80 Rev. 5.21 [CP/M Version] Copyright 1977-1981 (C) by Microsoft Created: 28-Jul-81 \DM*q]*s]X\"q]PY[2*o]! ~#foCs#rG\:T\!T\!& äV~# xY\DM\ʓ\͹\! w!( V6 ʎ\zwø \ʓ\͹\! ~!ô\! ^#V! s#rDMͱ\ͫ\C" ͒#\>;S"]C ** C!X9}o|g1!~# x  y2!"%8 K ͯ>H"s:=j 2y2/2 l>2sT!"P2RͯH>2ͯ‘!"ͯ!"""!6UC~7zº7\X COPYRIGHT (C) 1979, DIGITAL RESEARCH _͌> ͒> Ò> Ò͘~#͌ì _2<2 !2:2a{_:ʖ:>Ľʖ:=2–!B!6#5ʖ:Ľ!ͬʧ )!F#xʺ~0wëw!" !~6ͽ:ý(!  x : 2 p & x ~+é 7 2 H ! >w _ : ! 5ͤ N k ͱ ¦ ͱ xʊ #N x : ! 2 ͤ ! 5™ #wO ~x½  p H    y< < ʑ  : !qMD # 2E > ! ^#V w#P :B O|^#V#"##"##"##"!O *!O *|!6ʝ 6>*w#w*w#w'û *! J * ""!N#F*^#V*~#foyx *{_zW+ * yx # *DM*s#r*s#ryOxG*0MD!!N: E G>O: \ S *C  :q n& ^#V> O^ "*}:*)= ":O:o"*C  *C !ͮ ~2~2ͦ :2ͮ : O:w:w |g}o *# ) :B O! yoxg*:B O }!N#F "*#*s#r^  ~!J  ! J *:o$*C ~i 6i w**{#z r+s{ozg**͕ **  , w͜ ͸ Ͳ ! !N#F$**O !~#:G|g"! *xB {5~#o}o>$*½# K:m ! ~‹#c* DM! xʋ w#zÈL!Uͦ*)"[660#60 4~:ڬ+4#60ì!"ÈxG *w# x*  Invalid memory size$ Synchronization error$ Constructing 00K CP/M 2.2$ Ready for "sysgen" or "save 00 cpm00.com" $#͘*~ ""͌#>?͌͘ =_.:;<> Oo$>!Y2*O"ʉ@G:ʐ:wÖx2p0ʹ#*©6?ëw˜0ï#6 ¹.0#*6?w0#6 #6" #~?  xDIR ERA TYPESAVEREN USER".!yO#< Ty#O 321y_͸2y2ͽ:˜1͘A͌>>͌92^ :¥.!_~#fow]!v"!çREAD ERRORçNO FILE^: ! ~ 3#0 Wx x   G ~ # 3x~#B!Y~ɯ2:=!ý:=!:ý^T!~  6?#ˆ:`O> K{͘A͒>:͒͢>:͒͢xK > K > ͒x  ͢ØÆ^ BRͧ9!5‚#~Y‚#"T<ÆALL (Y/N)?^ Tʧ͘!6!~ڇ w4!Y~ʆ͌†t=ʆf ^ T 2o&)|+!<ͧ"**#"͕  : 2 Þ y<_WyOxOxG* ~V5dw^  :ʈNÎ N#Fyʝ*}|\#u* #DM*6# x±**s#r͡ *6#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|/g}/o#"|}"(#,, W!?1#w+>!S#yw+(:?>+%`#`#`#Q!">!#(,%1222"2!|2":2'!' 6#]#!.$,P Morrow Designs 48K CP/M 2.2 E4 A: HDC/DMA M5, BC: DJ/DMA 8", DE: DJ/DMA 5 1/4" $@B B HH II$@DI ABI$"$H$H@$$I! H*  $H@@A I $D!!$I"BI"I"@$BIIH$$(Copyright (C) Digital Research, 19801] w?w! [[0 n))) O <|n}n.g))Ë!$ʇ~/w/wz|g*"|=?:G|g"! *xB {5~#o}o>$*½# K:m ! ~‹#c* DM! xʋ w#zÈL!Uͦ*)"[660#60 4~:ڬ+4#60ì!"ÈxG *w# x*  Invalid memory size$ Synchronization error$ Constructing 00K CP/M 2.2$ Ready for "sysgen" or "save 00 cpm00.com" $#͘*~ ""͌#>?͌͘ =_.:;<> Oo$>!Y2*O"ʉ@G:ʐ:wÖx2p0ʹ#*©6?ëw˜0ï#6 ¹.0#*6?w0#6 #6" #~?  xDIR ERA TYPESAVEREN USER".!yO#< Ty#O 321y_͸2y2ͽ:˜1͘A͌>>͌92^ :¥.!_~#fow]!v"!çREAD ERRORçNO FILE^: ! ~ 3#0 Wx x   G ~ # 3x~#B!Y~ɯ2:=!ý:=!:ý^T!~  6?#ˆ:`O> K{͘A͒>:͒͢>:͒͢xK > K > ͒x  ͢ØÆ^ BRͧ9!5‚#~Y‚#"T<ÆALL (Y/N)?^ Tʧ͘!6!~ڇ w4!Y~ʆ͌†t=ʆf ^ T 2o&)|+!<ͧ"**#"͕  : 2 Þ y<_WyOxOxG* ~V5dw^  :ʈNÎ N#Fyʝ*}|\#u* #DM*6# x±**s#r͡ *6#6  ^ >:A #~$=2E k͌ : :/GyO>2!q*C " ͡  ʔ*J Ҕ^ :Oyʃ?|x | s-|N-# S:2E !~Яw > T   D ^ 6k -äPYy 5*{zBK5ڋ>*C w~#+w#w+ɯ2E 22 i  ^ *C :~w~͔͔# #  w ~>2!E 5T *C !"C  "C !w# F! w͌ x 2͢ *C  ~<wʃG:!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O ~x½  p H    y< < ʑ  : !qMD # 2E > ! ^#V w#P :B O|^#V#"##"##"##"!O *!O *|!6ʝ 6>*w#w*w#w'û *! J * ""!N#F*^#V*~#foyx *{_zW+ * yx # *DM*s#r*s#ryOxG*0MD!!N: E G>O: \ S *C  :q n& ^#V> O^ "*}:*)= ":O:o"*C  *C !ͮ ~2~2ͦ :2ͮ : O:w:w |g}o *# ) :B O! yoxg*:B O }!N#F "*#*s#r^  ~!J  ! J *:o$*C ~i 6i w**{#z r+s{ozg**͕ **  , w͜ ͸ Ͳ ! !N#F$**O !~#2&.Pv9͍>22!"!"2 #22#:!ʁ!^#Vͥ2*"|O|g+|g}oö#|g"#!###$:"=o&)))))))#!>:#>2>=>͍:#g.͍#!#:ʄ:e:"**"z{{{!#:"{={*"":#2">2"ɯ2":=>2͚>> 2͚͵2 .* #DM.*#DM.#..>7>x¤.ä2#:#g|Oogy#{_~#foy'w# x~#O ,!:O:#:#O:2!o&))))6:#g. |ʩ^#V#"#~#fo"#$*+#ʦ~<ʬ:#w#Î"+!,é!':#O*+z{*#" #* #"#y #:# #: # #: # #: # #2"y2" "*P"":R2"T!""P2R"@2B*"!":"h">2"@*""چ""چ":"2"/O:"2":"2"!"6U~7zª"7:"_!"`i#|/g}/o#"|}")1#,,)A#--  !?U#w+>!w#yw+,:?>+%Ä#Ä#Ä#U!">!$,,%1222#2!|2":2'!' 6#́#!R$,P Morrow Designs 48K CP/M 2.2 E4 AB: HDC/DMA M10, CD: DJ/DMA 8", EF: DJ/DMA 5 1/4" $@B B HH II$@DI ABI$"$H$H@$$I! H*  $H@@A I $D!!$I"BI"I"@$BIIH$$(Copyright (C) Digital Research, 19801] w?w! [[0 n))) O <|n}n.g))Ë!$ʇ~/w/wz|g*"|=?:G|g"! *xB {5~#o}o>$*½# K:m ! ~‹#c* DM! xʋ w#zÈL!Uͦ*)"[660#60 4~:ڬ+4#60ì!"ÈxG *w# x*  Invalid memory size$ Synchronization error$ Constructing 00K CP/M 2.2$ Ready for "sysgen" or "save 00 cpm00.com" $ # ü BAD MAP OVERFLOW! 'PMMMM((((*W&)T]))GfU:m:/V>V͝:W$̳̳O!/~9s####c#:m2mw#~#fo; s#r;:m>:WY|2!m~~ʔ~ʔy#ڔ>EO>2Ô~ʔyOҔ>2Ô:mʙ Ù&å&ê:!Vw%%5E   !"#$%&'( !"#$%&'()++),A,)Z,,)%,,O?$$BBI$@BI!"$$A DI$@ A$@$$@H! "!$$" @B$!!!DH$$"H @@BHH  !$$A"D@ "A" "BHA " !$ D B I $ !$$ H@BD D$ HI DIA!$$$ $" "$D ! $"  $AB " BDD $$D!"DI$!$BH!"IB I$"D HD" " $"! @H !BI " I  $I$I$DI$ !I$@"$"$! $I$I$!$DH(*B"B!A$ BB@$$!"$$HIHB@@H " @$! $I!$DDDD@@@UUT!"A"I !$H@PPPRBH $ !$B!""@ "$$$AA$I$""""H"H!BA@@@"ATAI ! A $H$B $ !I"A"@DD!I **@II @'(?(Q?(?(^ (0!P6%#6~ozb7ͼ!A,2W2I~2m͗#6ͼy2Uy2V`i"Q> ì>!2T!P #7?>@!H~5+"\##"d"a####"i![,  =!H#7:Jo:L$!Kn*W&,++~@>&2P"Q2Sw<.(%"%#%%~      %&'()*+, -. /0  12!"34#$!"#$1234%&'(5678 )*+,9:;<  -./0 12345678 !"#$%&'(9:;<=>?@)*+,-./0?4 < @+ 4 h@x1@W@ ":!h!!!!!a"f"!h!ͅ!ͬ!2"2"!#"",!%!!<2"$$$$"",!! a" .!72""9:"h!9̀!9ͅ!#:"o&))))2"w!y2">h" y!>h""!"6#6͠"ͻ"6#6ͬ!"!!ͻ"^#V+q#pi`""zh"!""`i""y=" $ !$$ H@BD D$ HI DIA!$$$ $" "$D ! $"  $AB " BDD $$D!"DI$!$BH!"IB I$"D HD" " $"! @H !BI " I  $I$I$DI$ !I$@"$"$! $I$I$!$DH(*B"B!A$ BB@$$!"$$HIHB@@H " @$! $I!$DDDD@@@UUT!"A"I !$H@PPPRBH $ !$B!""@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#H : !  H ù  H  H $O͐ : 2 *C N# 2>2T *C G ͻ : w ̈́ n> 2;O ^ DM;}H> "*C  ::dd slO s#r:E ͊ :==»y==»*Ww# *" ͸ *:G#š" ͸ :!w4!i w: Z!E ~=26 2*C !!~~#~O~G#n,-.‹! w! yG!x͢.:E <ʄ! q!pQ:E <. ʄ$.:E <ʄ i 6}2E x N! ~态O>G~G!~G} *C !r#r#r ^ ͥ_y#x#{s+p+q-*C  ͥ!!q#p#w*:B O Y G }*MD "ã:!B w!>2*C ~=2u:B 2~2wE:A *C w>" !""2B !" !r QQQâ~?ͦ ~?r Q *"C Q- Q͜QüQr Q$Q*):B  " *)*)Q;*"E :;:A  2A QÓQÜQ*C }/_|/*W}_*"}o|g":ʑ*C 6:ʑw:2E* *E }DQ>2(?(Q?(?(^ (0!P6%#6~ozb7ͼ!A,2W2I~2m͗#6ͼy2Uy2V`i"Q> ì>!2T!P #7?>@!H~5+"\##"d"a####"i![,  =!H#7:Jo:L$!Kn*W&,++~@>&2P"Q2Sw<.(%"%#%%~      %&'()*+, -. /0  12!"34#$!"#$1234%&'(5678 )*+,9:;<  -./0 12345678 !"#$%&'(9:;<=>?@)*+,-./0?4 < @+ 4 h@x1@W@ ":!h!!!!!a"f"!h!ͅ!ͬ!2"2"!#"",!%!!<2"$$$$"",!! a" .!72""9:"h!9̀!9ͅ!#:"o&))))2"w!y2">h" y!>h""!"6#6͠"ͻ"6#6ͬ!"!!ͻ"^#V+q#pi`""zh"!""`i""y=" $ !$$ H@BD D$ HI DIA!$$$ $" "$D ! $"  $AB " BDD $$D!"DI$!$BH!"IB I$"D HD" " $"! @H !BI " I  $I$I$DI$ !I$@"$"$! $I$I$!$DH(*B"B!A$ BB@$$!"$$HIHB@@H " @$! $I!$DDDD@@@UUT!"A"I !$H@PPPRBH $ !$B!""@ "$$$AA$I$""""H"H!BA@@@"ATAI ! A $H$B $ !I"A"@DD!I **@II @HDCA mwlog equ st506+st412*2++cm5619*2 ;Logical disks per drive for HDDMA maxlog equ (maxhd*hdlog)+(maxmw*mwlog)+maxfd+maxdm+maxmf ;Disk System Ordering Macros ;--------------------------- ; The following marco is used in generating the logical order of the ; CP/M drives. ; order macro num if num eq hdorder dw hddst endif if num eq mworder dw mwdst endif if num eq fdorder dw fddst endif if num eq dmorder dw dmdst endif if num eq mforder dw mfdst endif endm page ;*********************************** ;Begin CBIOS Executable Code Section ;*********************************** ; This section consists of 3 routines ; 1) The Jump Table ; 2) Warm Boot routine ; 3) Go CPM (executed directly after every warm/cold boot) ; ;CBIOS Jump Table ;---------------- ; The jump table below must remain in the same order, the routines ; may be changed, but the function executed must be the same. ; if absasm ;mac stuff org bios ;Cbios starting address else2"y2" "*P"":R2"T!""P2R"@2B*"!":"h">2"@*""چ""چ":"2"/O:"2":"2"!"6U~7zª"7:"_!"`i#|/g}/o#"|}")1#,,)A#--!?U#w+>!w#yw+,:?>+%Ä#Ä#Ä#U!">!$,,%1222#2!|2":2'!' 6#́#!R$,P Morrow Designs 48K CP/M 2.2 E4 AB: HDC/DMA M16, CD: DJ/DMA 8", EF: DJ/DMA 5 1/4" $@B B HH II$@DI ABI$"$H$H@$$I! H*  $H@@A I $D!!$I"BI"I"@$BIIH$$ ***************************** ;Begin Internal CBIOS equates ;**************************** ; ; ;Revision Numbers ;---------------- ; 1) The CBIOS revision number is output on a cold boot of the system. ; 2) The first part of the CBIOS revision number is converted to an ; alpha character while the the second part is simply output as a ; number. For example 54 becomes E4 and 27 becomes B7. revnum equ 54 ;CBIOS revision number cpmrev equ 22 ;CP/M revision number 2.2 ;Debug Flag ;---------- ; The DEBUG flag merely causes various internal values and ; addresses to be printed during the assembly process. This ; printing is forced via assembly errors and thus should not ; affect the resulting code in any way. ; debug equ 0 ;Set to 1 for debugging mode page ;General CP/M system equates. ;============================ ; ;Location Definitions ;-------------------- wbot equ 0 ;Warm boot jump address iobyte equ 3 ;IOBYTE location cdisk equ 4 ;Address of last logged disk e ;rmac stuff cseg public codend,savln public cbios,ccp,bdos,bioslen public cbios,cboot,wboot,const,conin,conout,lstout public home,setdrv,settrk,setsec,setdma,read,write public lstost,sectran biosln equ -1 ;suppress errors endif cbios: ;label for refrencing base of cbios bdos equ cbios-bdosln ccp equ cbios-(bdosln+ccpln) if nostand ne 0 cblock equ cbios-19h ;Current actual block# * blkmsk endif ;Used for unallocated writting ;Begin Normal CPM BIOS Jump Table ;-------------------------------- jmp cboot ;Cold boot entry point wboote: jmp wboot ;Warm boot entry point jmp const ;Console status routine cin: jmp conin ;Console input cout: jmp conout ;Console output pout: jmp lstout ;List device output if (lsttyp ge 2) AND (lsttyp le 5) ;has multio or wbio jmp punout ;Punch device output jmp rdrin ;Reader device input if not absasm ;if rmac public punout,rdrin endif else ;not multio/wbio jmp cout ;user console out as punch jmp cin ;use $$BBI$@BI!"$$A DI$@ A$@$$@H! "!$$" @B$!!!DH$$"H @@BHH  !$$A"D@ "A" "BHA " !$ D B I $ !$$ H@BD D$ HI DIA!$$$ $" "$D ! $"  $AB " BDD $$D!"DI$!$BH!"IB I$"D HD" " $"! @H !BI " I  $I$I$DI$ !I$@"$"$! $I$I$!$DH(*B"B!A$ BB@$$!"$$HIHB@@H " @$! $I!$DDDD@@@UUT!"A"I !$H@PPPRBH $ !$B!""@ "$$$AA$I$""""H"H!BA@@@"ATAI ! A $H$B $ !I"A"@DD!I **@II @ntry equ 5 ;BDOS entry jump address buff equ 80h ;Default buffer address tpa equ 100h ;Transient memory ;Size Definitions ;---------------- ccpln equ 800h bdosln equ 0e00h size equ (msize*1024) if absasm ;if mac cbios equ size-(biosln*100h) bios equ cbios offsetc equ 2100h-bios ;Offset for sysgen endif ;Sizes output for Debugging purposes ;----------------------------------- if debug dbgtmp set offsetc ;DDT offset ! dbgtmp set ccp ;CCP address ! dbgtmp set bdos ;BDOS address ! dbgtmp set bios ;CBIOS address ! endif ;Misc. constants ;--------------- ; retries equ 10 ;Max retries on disk i/o before error page ;Internal Disk System Equates ;============================ ; ;Hard Disk System Equates ;------------------------ ; m10 equ m10f or m10m fujitsu equ m20 or m10f hdspt equ 32*m26+21*m20+21*m10 ;Sectors per track for HDCA mwspt equ 9 ;Sectors per track for HDDMA hdlog equ m10*2+m20*3+m26*3 ;Logical disks per drive for console in as reader endif jmp home ;Home drive jmp setdrv ;Select disk jmp settrk ;Set track jmp setsec ;Set sector jmp setdma ;Set DMA address jmp read ;Read the disk jmp write ;Write the disk jmp lstost ;List device status jmp sectran ;Sector translation ;The following jumps are extended BIOS calls defined by Morrow Designs ;--------------------------------------------------------------------- if maxfd ne 0 jmp fdsel ;Hookup for SINGLE.COM program else jmp donop endif jmp 0 ;End of the jump table page ;Warm Boot ;========= ; WBOOT loads in all of CP/M except the CBIOS, then initializes ; system parameters as in cold boot. See the Cold Boot Loader ; listing for exactly what happens during warm and cold boots. ; wboot: lxi sp,tpa ;Set up stack pointer mvi a,1 sta cwflg ;Set cold/warm boot flag mvi h,wmdrive ;Move drive to warm boot off of into (h) mvi l,d$wboot ;Peform warm boot operation call jumper jnc gocpm ;No error hlt ;H)) ;The rest of the page is used for this stuff autoflg:db 0 ;Auto command feature enable flag coldmes:dw coldcm ;Pointer to the cold start command warmes: dw warmcm ;Pointer to the warm start command ;Define the Auto Start Command ;----------------------------- ; If there is a command inserted here, it will be passed to the ; CCP if the auto feature is enabled. For Example: ; ; coldcm: db coldend-coldcm ; db 'MBASIC MYPROG' ; coldend equ $ ; ; will execute Microsoft BASIC, and MBASIC will execute the ; "MYPROG" BASIC program. Note: The command line must be in ; upper case for most commands. ; coldcm: db coldend-coldcm ;Length of cold boot command db '' ;Cold boot command goes here coldend equ $ warmcm: db warmend-warmcm ;Length of warm boot command db '' ;Warm boot command goes here warmend equ $ page ;CBIOS Configuration Data ;======================== ; ;Pointer to the Drive configuration table. ;----------------------------------------- ; drconf: dbine the default baud rates for the ; console and the list devices. These words are provided so that ; the user can easily modify them. ; ; The next two bytes are ued to configure the hardware handshaking ; protocall used by the serial list drivers with the Multio or ; Wunderbuss I/O boards. The first of these two bytes is a mask. ; This mask is ANDed with the 8250's MODEM Status Register to strip ; out the desired handshake lines. Next the result of the ANDing ; is XORed with the second of the two bytes. This XORing allows ; the handshake lines to be inverted. Common byte values are ; shown below. ; ; The last byte in the revision one structure is the last character ; that was recieved from the printer. This byte is used to ; implement Xon/Xoff software handshaking. This handshaking ; protocol should not bother printers that have not implemented ; Xon/Xoff protocol so this driver is enabled all the time. ; ioconf: db 2 ;Revision 2 structure db 11 ;11 bytes long now db contyp alt computer db 0 jmp wboot ;In case user restarts the computer ;Begin Executing CPM (GOCPM) ;=========================== ; Gocpm is the entry point from cold boots, and warm boots. It ; initializes some of the locations in page 0, and sets up the ; initial DMA address (80h). ; gocpm: lxi b,buff ;Set up initial DMA address call setdma mvi a,(jmp) ;Initialize jump to warm boot sta wbot sta entry ;Initialize jump to BDOS lxi h,wboote ;Set up low memory entry to CBIOS warm boot shld wbot+1 lxi h,bdos+6 ;Set up low memory entry to BDOS shld entry+1 xra a ;A <- 0 sta bufsec ;Set buffer to unknown state sta bufwrtn ;Set buffer not dirty flag sta error ;Clear buffer error flag lda cwflg ;Get cold/warm boot flag ora a lxi h,coldmes ;Pointer to initial cold command jz cldcmnd lxi h,warmes ;Pointer to initial warm command cldcmnd:mov e,m ;Do one level of indirection inx h mov d,m ldax d ;Get command length inr a ;Bump length to include length byte  0 ;Revision 0 structure db 32 ;32 bytes long now ;Pointer to Device Specification Tables ;-------------------------------------- ; This macro generates a table of pointers to the start of each active ; disk driver's dispatch table. The order of this table defines the ; logical order of the CP/M drives. ; dsttab equ $ dn set 1 rept 16 order %dn dn set dn+1 endm ;I/O configuration table. ;------------------------ ; At this CBIOS revision 11 bytes are defined for this table. ; Several extensive changes are planned for the table. Future ; revision of the IOCONF table will have independant entries for ; three serial ports and will be used by several character drivers. ; Also the IOBYTE will be implemented for all the character ; drivers. I might even write an external program to edit this ; table. ; ; The first two bytes show the I/O configuration that the CBIOS was ; assembled with. These bytes are used by external software to ; determine the configuration options that are  ;Console device driver number db lsttyp ;List device drive number iobyt: db 00000000b ;Initial IOBYT value (All devices go to CON:) group: db 0 ;Group byte if not absasm ;if rmac public group endif defcon: dw cbaud ;Console baud rate divisor value deflst: dw lbaud ;Printer baud rate divisor value ;Clear To Send protocol if lsttyp eq 3 lstand: db cts ;Serial list handshake mask lstxor: db 0 ;Serial list inversion flag endif ;Data Set Ready protocol if lsttyp eq 4 lstand: db dsr ;Serial list handshake mask lstxor: db 0 ;Serial list inversion flag endif ;Xon/Xof protocol if (lsttyp ne 3) and (lsttyp ne 4) lstand: db 0 ;Serial list handshake mask lstxor: db 0ffh ;Serial list inversion flag endif lastch: db xon ;Last character recieved from the printer page ;Configuration Pointer Table ;=========================== ; At the first page boundry following the CBIOS we have a series of ; pointers that point to various internal tables. At the start ofitself lxi h,ccp+7 ;Command buffer (includes length byte) mov c,a ;Set up for block move mvi b,0 call movbyt ;Move command to internal CCP buffer lda cwflg ;Figure out whether or not to send message ora a lda autoflg jz cldbot rar cldbot: rar lda cdisk ;Jump to CP/M with currently selected disk in C mov c,a jc ccp ;Enter CP/M, send message jmp ccp+3 ;Enter CP/M, no message cwflg: db 0 ;Cold/warm boot flag page ;*************** ;Misc. Data Area ;*************** ; The following area is a hodge-podge of pointers, constants and ; revision labels. ; ;Auto Start ;========== ; The following byte determines if an initial command is to be ; given to CP/M on warm or cold boots. The value of the byte is ; used to give the command to CP/M: ; ; 0 = never give command. ; 1 = give command on cold boots only. ; 2 = give the command on warm boots only. ; 3 = give the command on warm and cold boots. ; autost: db 0 ;Revision 0 structure db 100h - (low ($ - cbiosavailable. ; ; The next byte is the initial IOBYTE value. This value is written ; to location 3 on cold boots. See the CP/M 2 alternation guide ; for a description of the IOBYTE. ; ; The next byte is to make sure that the group select byte on the ; Mult I/O or Decsion I stays consistant throughout the Cbios. ; Only the group bits themselves (bits 0 and 1) should be changed ; as you output to the group port. If you modify one of the other ; bits (such as driver-enable) then you should modify the same bit ; in this byte. For example: ; ; ;Select console group ; lda group ;Get group byte ; ori congrp ;Select the console port ; out grpsel ;Select the group ; ; ;Modify a bit in the group byte ; lda group ;Get group byte ; ori bank ;Set the bank bit ; sta group ;Save new group setting ; ori group2 ;Select second serial port ; out grpsel ;Select the desired group ; ; Note: You should not set the group bits themselves in the ; group byte. ; ; The following two words def ; each of these tables we have a revision byte and a length byte. ; The revision byte is the current revision number for that ; particular structure and the length byte is the length of that ; structure. This length does not include the revision byte nor ; the length byte itself. ; ; Revision Description ; E.0 1 and 2 defined ; E.3 This table is moved to a page boundry ; E.3 0, 3 and 4 defined ; ; The pointers defined so far are as follows: ; ------------------------------------------- ; 0) High byte is the page number of the CBIOS. Low byte is ; the CBIOS revision number. Used to determine pointer ; structure. ; 1) This points to the drive configuration table. ; 2) This points to the I/O configuration bytes for the serial ; drivers. Eg, the console, printer, reader, and punch ; devices. ; 3) This points to the drive parameter table for DJDMA floppy ; disk drives. If no DJDMA is present then this pointer is ; null (0). ; 4) This porror so report to CP/M push h ;Save DPH address call gdph ;Get entry if DPH save table pop d ;DPH -> (de) mov m,e ;Put address of DPH in table inx h mov m,d inx h mov m,c ;Put sector size in table inx h mov a,m ;Check if bad map has ever been read for this ora a ; drive cz getbad ;Never been read so read in bad map xchg ;DPH -> (hl) setd0: mov a,c ;Move sector size code into (a) sta secsiz ;Save sector size xra a setd1: dcr c ;Create number of (128 bytes/physical sector)-1 jz setd2 rlc ori 1 jmp setd1 setd2: sta secpsec ;Save for deblocking lda cpmdrv ;Save current drive as old drive sta lastdrv ; in case of select errors ret setd3: mov h,c ;Drive in (h) mvi l,d$sel2 ;Select drive call jumper call gdph ;Quick select mov e,m ;DPH -> (de) inx h mov d,m inx h mov c,m ;Sector size -> (c) xchg ;DPH -> (hl) jmp setd0 ;Return a pointer to the current drive's DPH ;------------------------------------------- ; 1) Thio get ; the desired sector. Once the correct sector is in memory, the ; buffer written indicator is set, so the buffer will be ; flushed, then the data is transferred into the buffer. ; write: mov a,c ;Save write command type sta writtyp mvi a,1 ;Set write command call rwent ret ;Read/Write to/from the disk ;--------------------------- ; Redwrt calculates the physical sector on the disk that ; contains the desired CP/M sector, then checks if it is the ; sector currently in the buffer. If no match is made, the ; buffer is flushed if necessary and the correct sector read ; from the disk. ; if not absasm ;if rmac public rwent,fill,flush,prep,jumper endif rwent: sta rdwr ;Save command type mvi b,0 ;The 0 is modified to contain the log2 secsiz equ $-1 ; of the physical sector size/128 ; on the currently selected disk lhld cpmsec ;Get the desired CP/M sector # mov a,h ani 80h ;Save only the side bit mov c,a ;Remember the side mov a,h ani 7fh ;Forget the sidints to the autostart command structures. Used to ; automatically invoke a command on cold or warm boot ; 5) This will be a null (0) pointer. It marks the end of ; the table. ; if ($ - cbios) gt 256 ;Test for code overlap 'Fatal error, pointer table placement.' else ds 100h - (low ($ - cbios)) ;Start at a page boundry endif ;bpage is filled-in at run-time by init bpage: db 0 ;CBIOS page number db revnum ;Cbios revision number dw drconf ;Drive configuration table pointer dw ioconf ;I/O configuration table pointer if (maxdm ne 0) or (maxmf ne 0) dw dmarap ;Drive parameter table pointer for DJDMA else dw 0 endif dw autost ;Auto command structure pointer dw 0 ;End of table marker page ;************************ ;Begin BIOS Disk Routines ;************************ ; ;Home the Disk (HOME) ;==================== ; Home is translated into a seek to track zero. ; home: lda bufwrtn ;Test buffer dirty flag ora a jnz dohome ;Skip buffer disable if s routine is only called by SETDRV. ; 2) The drive number should be in location CPMDRV. The DE register ; pair is destroyed. The DPH pointer is returned in the HL ; register pair ; ; gdph: lda cpmdrv ;Return pointer to DPH save area rlc ;Each entry is 4 bytes long rlc mov e,a mvi d,0 lxi h,dphtab ;DPH save area table dad d ;Add offset ret ;(hl) = DPH save area for current drive ;Select a Track (SELTRK) ;======================= ; Settrk saves the track # to seek to. Nothing is done at this ; point, everything is deffered until a read or write. ; settrk: mov h,b ;Enter with track number in (bc) mov l,c shld cpmtrk ret ;Select a Sector (SETSEC) ;======================== ; Setsec just saves the desired sector to seek to until an ; actual read or write is attempted. ; setsec: mov h,b ;Enter with sector number in (bc) mov l,c shld cpmsec donop: ret ;Set the DMA Address (SETDMA) ;============================ ; Setdma saves the DMA address for thee bit mov h,a dcx h ;Temporary adjustment divloop:dcr b ;Update repeat count jz divdone ora a mov a,h rar mov h,a mov a,l rar ;Divide the CP/M sector # by the size mov l,a ; of the physical sectors jmp divloop divdone:inx h mov a,h ora c ;Restore the side bit mov h,a shld truesec ;Save the physical sector number lxi h,cpmdrv ;Pointer to desired drive,track, and sector lxi d,bufdrv ;Pointer to buffer drive,track, and sector mvi b,6 ;Count loop dtslop: dcr b ;Test if done with compare jz move ;Yes, match. Go move the data ldax d ;Get a byte to compare cmp m ;Test for match inx h ;Bump pointers to next data item inx d jz dtslop ;Match, continue testing ;If Drive, track, and sector don't match, flush the buffer if ;necessary and then refill. call fill ;Fill the buffer with correct physical sector rc ;No good, return with error indication ;Move has been modified to cause either a transfer into or out ;the buffer. move: lda cpmbuffer dirty xra a ;Invalidate buffer on home call sta bufsec dohome: lxi b,0 ;Track to seek to call settrk ret ;Select a Disk Dirve (SELDSK) ;============================ ; Setdrv selects the next drive to be used in read/write ; operations. If the drive has never been selected it calls ; a low level drive select routine that should perform some ; sort of check if the device is working. If not working then ; it should report an error. If the logical drive has been ; selected before then setdrv just returns the DPH without ; checking the drive. ; setdrv: mov a,c ;Save the logical drive number sta cpmdrv cpi maxlog ;Check for a valid drive number jnc zret ;Illegal drive mov a,e ;Check if bit 0 of (e) = 1 ani 1 jnz setd3 ;Drive has allready been accessed mov h,c ;Move logical drive into (h) mvi l,d$sel1 call jumper ;Call low level drive select mov a,h ;Check if the low level drive select returned ora l ;zero to indicate an error jz zret ;Yes, an e data transfer. ; setdma: mov h,b ;Enter with DMA address in (bc) mov l,c shld cpmdma ;CP/M dma address ret ;Read Data from a Disk (READ) ;============================ ; Read routine to buffer data from the disk. If the sector ; requested from CP/M is in the buffer, then the data is simply ; transferred from the buffer to the desired dma address. If ; the buffer does not contain the desired sector, the buffer is ; flushed to the disk if it has ever been written into, then ; filled with the sector from the disk that contains the ; desired CP/M sector. ; read: xra a ;Set the command type to read if nostand ne 0 sta unaloc ;Clear unallocated write flag endif call rwent ret ;Write Data to a Disk (WRITE) ;============================ ; Write routine moves data from memory into the buffer. If the ; desired CP/M sector is not contained in the disk buffer, the ; buffer is first flushed to the disk if it has ever been ; written into, then a read is performed into the buffer tsec ;Get the CP/M sector to transfer dcr a ;Adjust to proper sector in buffer ani 0 ;Strip off high ordered bits secpsec equ $-1 ;The 0 is modified to represent the # of ; CP/M sectors per physical sectors mov l,a ;Put into HL mvi h,0 dad h ;Form offset into buffer dad h dad h dad h dad h dad h dad h lxi d,buffer ;Starting address of buffer dad d ;Form beginning address of sectgr to transfer xchg ;DE = address in buffer lxi h,0 ;Get DMA address, the 0 is modified t/ cpmdma equ $-2 ; contain the DMA address mvi a,0 ;The zero gets modified to contain rdwr equ $-1 ; a zero if a read, or a 1 if write ana a ;Test which kind of operation jnz into ;Transfer data into the buffer outof: call mov128 lda error ;Get the buffer error flag ret into: xchg ; call mov128 ;Move the data, HL = destination mvi a,1 ; DE = source sta bufwrtn ;Set buffer written into flag mvi a,0 ;Check for directory write writtyp equ $-1 dcr a ;Test for a d ;Track 0 mvi c,1 ;Sector 1 call mwsec lxi b,buffer ;DMA address call mwdma mvi c,retries ;Number of read retries retry: push b call mwread ;Read the sector pop b jnc buffer ;Jump to boot loader if no error dcr c ;Bump retry count jnz retry lxi d,nosec ;Return sad news errpr mvi c,wmess ;Print string command call bdos jmp 0 ;Return to CP/M bfail: db acr, alf, 'HDDMA controller or drive failure.', acr, alf, '$' nosec db acr, alf, 'Read error, track 0 sector 0.', acr, alf, '$' ***************************************************************** * * * The follwing equates are for the HDDMA hard disk controller * * * ***************************************************************** ;Specifications for a hard disk cyl equ 1 ;Number of cylinders heads equ 1 ;Number of heads per cylinder precomp equ 1 ;Cylinder to start write precomensation lowcurr equ 1 ;Cylinder to start low current stepdly equ 30 ;Step delay (0-12.7 milliseconds) steprcl equ 30 ;Recalibrate step delay headdly equ 0 ;Settle delay (0-25.5 milliseconds) sectsiz equ 7 ;Sector size code (must be 7 for this Cbios) ; 0 = 128 byte sectors ; 1 = 256 byte sectors ; 3 = 512 byte sectors (default) ; 7 = 1024 byte sectors ; f = 2048 byte sectors ;Define controller commands dmaread equ 0 ;Read sector dmawrit equ 1 ;Write sector dmarhed equ 2 ;Find a sector dmawhed equ 3 ;Write headers (format a track) dmalcon equ 4 ;Load disk parameters dmassta equ 5 ;Sense disk drive status dmanoop equ 6 ;Null controller operation reset equ 54h ;Reset controller attn equ 55h ;Send a controller attention chan equ 50h ;Default channel address stepout equ 10h ;Step direction out stepin equ 0 ;Step direction in band1 equ 40h ;No precomp, high current band2 equ 0c0h ;Precomp, high current band3 equ 80h ;precomp, low current track0 equ 1 ;Track zero status wflt equ 2 ;Write fault from drive dready equ 4 ;Drive ready sekcmp equ irectory write (a=1=dir) mvi a,0 rnz ; if not dir then exit (a=0=no-error) call flush ;Flush the buffer if this is a dir oper ret ;(Accm is setup by the routine PREP) ;Perform Sector Translation (SECTRAN) ;==================================== ;Sectran translates a logical sector number into a physical ; sector number. ; sectran:lda cpmdrv ;Get the Drive Number mov h,a ;Drive in (h) mvi l,d$stran call jumper ;See device level sector translation routines ret page ;Begin CBIOS Disk Routine Utilities ;================================== ; These are general purpose routines that are used by by one or more ; of the preceeding CBIOS Disk Routines and/or the Lo_Level drivers. ; ;Fill the Buffer with a new Sector ;--------------------------------- ; Fill fills the buffer with a new sector from the disk. If ; were no errors then the carry is returned cleared else it is ; set. ; fill: call flush ;Flush buffer first rc ;(carry is set if there were any errors) lxi d,!4w_#~ ʸ A:4~~# ¼ > \ ?ʻ w# !ͼ ? !ͼ !)ͼ !ͼ :5͡ :6:6͡ :7!4w_#~ ʸ A:4~~# ¼ > \ ?ʻ w# !ͼ ? !ͼ !)ͼ !ͼ :5͡ :6:6͡ :7!4w_#~ ʸ A:4~~# ¼ > \ ?ʻ w# !ͼ ? !ͼ !)ͼ !ͼ :5͡ :6:6͡ :7!4w_#~ ʸ A:4~~# ¼ > \ ?ʻ w# !ͼ ? !ͼ !)ͼ !ͼ :5͡ :6:6͡ :78 ;Seek complete ***************************************************************** * * * The following are the lowest level drivers for the Morrow * * Designs Hard Disk DMA controller. * * * ***************************************************************** mwldrv: sta mwcurl ;Save current logical drive call mwreset ;Reset controller card jc zret ;Controller failure lda mwcurl call mwdrv ;Select drive jc zret ;Select error call mwstat ;Get drive status ani dready ;Check if drive ready jnz zret call mwhome ;Home drive ret zret: xra a ;Return error status ret mwdrv: sta mwdrive ;Save new selected drive mwsel: mvi a,dmanoop jmp mwprep ;Execute disk command mwstat: mvi a,dmassta ;Sense status operation code jmp mwprep ;Execute disk command mwhome: call mwreset ;Reset controller lxi h,dmarg1 ;Load arguments mvi m,steprcl ;Load step delay (slow) inx h mvi m,headdly ;Head settle delay call mwissue ;Do load constants agai ***************************************************************** * * * Boot program for HDC/DMA controller. * * * * REVISED: 9/9/83 - bjg * * Changed equate "dmasel1" to de-activate * * step and direction on "Load Constants" * * command. * * * ***************************************************************** ; ; Define normal Cbios stuff ; alf equ 'J'-64 ;A line feed acr equ 'M'-64 ;A carraige return mwspt equ 9 ;Number of sectors per track retries equ 10 ;Number of disk retries before error bdos equ 5 ;Bdos entry point wmess equ 9 ;Write a message org 0100h buffer: jmp start ds 1021 ;Space for boot loader start: mvi c,retries ;Set up retry count again: push b xra a ;Drive 0 call mwldrv ;Test controller and login drive pop b ora a jnz ready ;The controller has responded dcr c ;Bump retry count jnz again lxi d,bfail ;Missing controller message jmp errpr ready: call mwhome ů͆ =5ͳ  ^ &d  HDDMA controller or drive failure. $ Read error, track 0 sector 0. $28ڤ:ͦڤͮ¤ͳɯ2>`>`8!6#6͘ͳ6#68ͳ^#V+q#pi`"z`!"`i"y=/ 2y2 1T!"P2R*!6#6#6#6͘">2@*~~:2/O:2:2!6U~7z¢7:_!|/g}/o#Ϳ|}<!4w_#~ ʸ A:4~~# ¼ > \ ?ʻ w# !ͼ ? !ͼ !)ͼ !ͼ :5͡ :6:6͡ :7!4w_#~ ʸ A:4~~# ¼ > \ ?ʻ w# !ͼ ? !ͼ !)ͼ !ͼ :5͡ :6:6͡ :7n call mwptr ;Get pointer to current cylinder number mvi m,0ffh ;Fake at cyl 65535 for max head travel inx h mvi m,0ffh lxi b,0 ;Seek to cylinder 0 call mwseek ;Recal slowly call mwreset ;Back to fast stepping mode ret mwseek call mwptr ;Get track pointer mov e,m ;Get old track number inx h mov d,m dcx h mov m,c ;Store new track number inx h mov m,b mov l,c ;Build cylinder word mov h,b shld dmarg0 ;Set command channel cylinder number mov a,d inr a lxi h,0ffffh jnz mwskip0 mvi c,stepout jmp mwskip mwskip0:mov h,b ;(hl) = new track, (de) = old track mov l,c call mwhlmde mvi c,stepout mov a,h ani 80h ;Check hit bit for negitive direction jnz mwsout ;Step in mvi c,0 jmp mwskip mwsout: call mwneghl mwskip: shld dmastep lda mwdrive ora c sta dmasel0 mvi a,dmanoop ;No-operation command for the channel call mwprep ;Step to proper track lxi h,0 ;Clear step counter shld dmastep ret mwdma mov h,b ;Set DMA addressntly select drives track address rlc mov e,a mvi d,0 lxi h,mwtab dad d ;Offset into track table ret mwneghl:mov a,h cma mov h,a mov a,l cma mov l,a inx h ret mwhlmde:xchg call mwneghl xchg dad d ret mwhlcde:mov a,h cmp d rnz mov a,l cmp e ret mwtab: dw -1 ;Collection of track addresses dw -1 ;Initialize to (way out on the end of the disk) dw -1 dw -1 mwcurl db 0 ;Current logical drive mwdrive db 0ffh ;Currently selected drive mwhead db 0 ;Currently selected head mwsectr db 0 ;Currently selected sector dmachan equ $ ;Command channel area dmasel0 db 0 ;Drive select dmastep dw 0 ;Relative step counter dmasel1 db 03ch ;Head select dmadma dw 0 ;DMA address db 0 ;Extended address dmarg0 db 0 ;First argument dmarg1 db 0 ;Second argument dmarg2 db 0 ;Third argument dmarg3 db 0 ;Fourth argument dmaop db 0 ;Operation code dmastat db 0 ;Controller status byte dmalnk dw dmachan ;Link address to next command channel*͓2D!9N#F#^#V#~#fo"jUkb"hUi`"fUOGtm603tm602tandonm10st412st506m5seagateq2040quantumhd561/2hd561/1olivettims4020ms4010ms2012ms2006ms1012ms1006miniscribecm5640cm5619cm5616m16cmipyxis27pyxis20pyxis13pyxis7df516ampexHeader CRCWrite faultData CRCData overrunData header not foundHeader not foundWrong headWrong cylinderDrive not readyController BusỳS!"e!"e*e~2e:e*e*e#"e*e~A*e>Z*e~OG! MD*e~OGyw*e#"e:e2eé*e6!e"e*e*e##"eywx#w!"e*e~F*e~r*e> ғ*e~rÓ*ew#w!e*ee}o|g!MZ2DÇS*e~ʤ*e*e##"e:ew:e#wä*e*e#"e6)*e> !*e~!*e#"eä{nosofttestverifyBad sector size.sizeBad skew factor.skewBad head number.headBad track number.trackBad drive arg.drivèS!~w#~w!~w#~w!~#ˆͪ !lUywx#w!~#fo~#!~#foN#F!~#foN#F*y!~#fo"e!~w#~w!~w#~w!~#fo~# ͪ ! mov l,c shld dmadma ret mwsec mov a,c ;Load sector number dcr a ;Range is actaully 0-16 call mwdspt ;Figure out head number -> (c) adi mwspt ;Make sector number sta mwsectr mov a,c sta mwhead ;Save head number ret mwdspt mvi c,0 ;Clear head counter mwdsptx sui mwspt ;Subtract a tracks worth of sectors rc ;Return if all done inr c ;Bump to next head jmp mwdsptx mwreset out reset ;Send reset pulse to controller lxi h,dmachan ;Address of command channel shld chan ;Default channel address xra a sta chan+2 ;Clear extended address byte lhld dmarg0 ;Save the track number push h lxi h,dmarg1 ;Load arguments mvi m,stepdly ;Load step delay inx h mvi m,headdly ;Head settle delay inx h mvi m,sectsiz ;Sector size code inx h mvi m,dmalcon ;Load constants command call mwissue ;Do load constants pop h ;Restore the track number shld dmarg0 ret mwread mvi a,dmaread ;Load disk read command mwprep: sta dmaop ;Save command channel op c db 0 ;extended address end a,h cma mov h,a mov a,l cma mov l,a inx h ret mwhlmde:xchg call mwneghl xchg dad d ret mwhlcde:mov a,h cmp d rnz mov a,l cmp e ret mwtab: dw -1 ;Collection of track addresses dw -1 ;Initialize to (way out on the end of the disk) dw -1 dw -1 mwcurl db 0 ;Current logical drive mwdrive db 0ffh ;Currently selected drive mwhead db 0 ;Currently selected head mwsectr db 0 ;Currently selected sector dmachan equ $ ;Command channel area dmasel0 db 0 ;Drive select dmastep dw 0 ;Relative step counter dmasel1 db 03ch ;Head select dmadma dw 0 ;DMA address db 0 ;Extended address dmarg0 db 0 ;First argument dmarg1 db 0 ;Second argument dmarg2 db 0 ;Third argument dmarg3 db 0 ;Fourth argument dmaop db 0 ;Operation code dmastat db 0 ;Controller status byte dmalnk dw dmachan ;Link address to next command channel~w#~wÔ!N#F!~w#~w}ʮ!T!~#foN#F*y!~# !~w#~w!~w#~w! !e!~#foN#Fͮ@!~#foN#F$yV:eV!e>>#^V !e~#? ͗ ? !?!~#foN#F*yn!~# !~w#~w!~w#~w! !e!~#foN#Fͮ@!~#foN#F$y:e*e##~#fo !eyx# !E !~w#~w !(!~#foN#F*y!~# !~w#~w!~w#~w! !e!~#foN#Fͮ@!~#foN#F$yʢ:e*e####~OG! !eyx#â!- !~w#~w !!~#foN#F*yʺ!~# !~w#~w!~w#~w! !e!~#foN#Fͮ@!~#foN#F$y/:e/!e>@>#7/! !~w#~w !!~#foN#F*yG!~# !~w#~w!~w#~w! !e!~#foN#Fͮ@!~#foN#F$*eMD!tR! !~w#~w !!~#foN#F*y!~w#~w>2e2e 2e2e!~w#~w >2e2eÂ>2e2eÂ>2e2eÂ>2e2eÂ! Â!!~#foN#F*y !~w#~w>2e2ode mvi c,band1 lhld dmarg0 lxi d,precomp call mwhlcde jc mwpreps mvi c,band2 lxi d,lowcurr call mwhlcde jc mwpreps mvi c,band3 ;cylinder > low_current mwpreps lda mwhead ;Load head address sta dmarg2 cma ;Negative logic for the controller ani 7 ;3 bits of head select rlc ;Shove over to bits 2 - 4 rlc ora c ;Add on low current and precomp bits mov c,a lda mwdrive ;Load drive address ora c ;Slap in drive bits sta dmasel1 ;Save in command channel head select lda mwsectr ;Load sector address sta dmarg3 mwissue lxi h,dmastat ;Clear status byte mvi m,0 out attn ;Start the controller lxi d,0 ;Time out counter (65536 retries) mwiloop mov a,m ;Get status ora a ;Set up CPU flags rm ;Return no error (carry reset) stc rnz ;Return error status xthl ;Waste some time xthl xthl xthl dcx d ;Bump timeout counter mov a,d ora e jnz mwiloop ;Loop if still busy stc ;Set error flag ret mwptr lda mwdrive ;Get curree !!~#foN#F*y9 !~w#~w>2e2e ͪ ͑"ÇSUsage: formatmw drive-type [arguments] Morrow Designs HDDMA format/test program. Version 1.7 ̀S!p !H 2DÇS ̀S!N#F! !2DÇSChecking format. Formatting. ̀S=*e ~#fo *e( !W*e ~OG KM"eV:eM :ej 2f2f*e##~#fo "fv *e"f*e"f:eƒ :e¥ 2e2e*e####~OGi` "eñ *e"e*e"eͭ !["0W! *f"f!f:f:f## *fͬ*fͪ *e"f!f:e:e#2 *f !*f*fe *f#"f !e~#< ÇS*f#"f ! !]"0W>22W*f"f!f:f:f# *fͬ*e"f!f:e:e# !*f*f͓*f#"fr ÇS*f#"fU ̀S!9!w#w!!e  # !~#fo))[ *e#}!~w#~wý !!w#w~#~!!e  #Y !~#fo))[ ~OG:e:e\ !!~#fo#*e͒M}| ÇS!~#fo))[ !N#F!~w#~w}!!~#fo*e *e͒M}| ͋S!~#fo"ti!["pi!]:pi:qi *pi*ti}og}*pi *ti!2N}og}*pi####!N#FP!! N#FP! ~ .#~k!! N#FP!! N#F!N#F!N#F&â!!N#FE!! N#F!N#F!N#F&!ÇS Byte: Sector: Head: Data compare: Track: ̀S!!N#FP!!N#FP!!N#FP!! N#FP!!!N#F!N#F!N#F&ÇS sector: head: Verify timeout: track: ͋S:e2,W2-W2.W!~#fo}/o|/g}og))!eyOx#Gy2/W!~#fo}og}23W!N#F!2N}og}24W!~25W>27W!6W"ti*ti6*ti~OG!eyx#>2f> 2ri2si:ri2ri:si2si!ri~#ʙͫy!t!N#FP!l!N#FP!b*ti~OGP!`áSáS*ti4:fOGy¨xʒ! !riyOx#G! *ti~OG!N#F!N#F:fOGA! 9Ò:8WOGyxʙ:8W2f' FATAL! Count: Sector: Head: error. Track: Write: ̀S!9!~#fo)xW N#F!)!N#FP!!!N#FP!! N#FP! ~ «#~!! N#FP!! N#F!N#F!N#F&!!N#FE!#~!~#fo)))W !~#fo)))W ~#~!~#fo)))W !~#fo)))W ~#~!~#fo)))W !~#fo)))W ~#~!~#fo)))W !~#~!~#fo)))W !~#~!~#fo)))W !~#~!~#fo)))W !~#~ÇSCan't write bad sector map.Timeout on writing bad sector map.Too many bad sectors. Assigning alternates for the first %i sectors. No room for a bad map on this drive.̀S*e##>#"*e####>"!l" !]"f!e:f:f"*f*f#"f6ý"*e####~OG*e͐N*e)yOxGi` "$f![:$f:%f#(#*$f"[*[!%"(2 f2!f![: f:!f#V$* f)))] * f)))W ~#fo}og}* f)))] * f)))W N#F!]N}og}* f)))W N#F*e͐N* f)))W ~#fo #""f* f)))] *"f}og}* f)))] *"f!2N}og}* f)))] 6* f)))] 6*e)#* f #""f* f)))] *"f}og}* f)))] *"f!2N}og}* f#" f/#!ͬ:e2,W2-W2.W*e}o}@o}2/W*e >#$:/W2/W*e >#$:/W2/W!]"0W>22W>23W>24W>25W>26W>27Wͫy$!" :8WOGy$x$!! ÇS͋S"piþ áS͋S!["ti!]:ti:ui8 *ti!~*ti####"ti áS Head: error. Track: Format timeout.͋S!~#fo"ti!~#fo"pi!~#fo"ri:e2,W2-W2.W*pi}/o|/g}og))!eyOx#Gy@Oy2/W*e :ti:ui# :/W2/W*e :ti:ui# :/W2/W!W*e ~OG! }/o|/g}23W*e}/o|/g}24W*e!KM }/o|/g}25W:ri26W>27WͫyP!U :8WOGy_xháS:8WOGi`)xW N#F!E *tiP!= *piP!; áS̀S!"f> 2 f2 f>28W*! f~#:8WÇSÇS*f:f2f: f2 f}: f2 f: f2 fDrive not ready.Can't read drive status.Controller does not respond.͋S>P2ti2ui*ti*ti#"ti,WyOGyw*ti*ti#"ti!,W!]N}og}*ti*ti#"ti6:e2,W2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}|!!   #'Ê&*ti!yOx#GáS͋S!~#fo"ti*ti"ri!#~(!>#(!~#fo>o>g"pi*ri*ri#"ri6-&(!~#fo"pi!~#>(!> w#wc(!#~c(!!~#fo>o>g}|!:pi:qi#ڛ(!N#F*pi!N#FM*ri'*ri "ri*ri*pi!N#FM0 }*ri>9(*ri~'w*ri!tiyOx#GáS̀S!!N#F!&f!i:,ÇS͋S!o}2/W>23W*e ~24W*e ~25W*e!KM }26W>27WͫyL!(2D!"-W>27Wͫyj!(2D2-W2.W*e ~24W>27Wͫy”!(2D2LW2MWÇSSeek timeout ͋S>P2ti2ui:LW:MW!:LW:MW#áS:e2/W>27W!!LW  #"*e}o}2,W*LW!yOx#Gi`"-WA:e2,W!~#fo!LWyOx#Gi`"-W>28WͫyY!(2D!~#fo"LWáS sector: head: Verify timeout: track: ͋S:e2,W2-W2.W!~#fo}/o|/g}og))!eyOx#Gy2/W!~#fo}og}23W!N#F!2N}og}24W!~25W>27W!6W"ti*ti6*ti~OG!eyx#>2 f> 2ri2si:ri2ri:si2si!ri~#ʙͫy®!{!N#FP!s!N#FP!i*ti~OGP!gáSáS: fOGy¨xu:8WOGy½xʙ:8W2 f.: f:!ri~#:!]"pi!]*e :pi:qiu*pi~OG!yx#|*pi]}o|g*ti~OG!N#F!N#F|! !riyOx#G! *ti~OG!N#F!N#F: fOG! 9*ti4 *pi#"pi FATAL! Count: Sector: Head: error. Track: Verify: ̀S!!~#fo)xW N#F!!N#FP!f*f͓*f#"fáS*f#"f̀S! ~7#~F!e~#FÇS2f2f![:f:f#*f)))W ! u #D*f)))W ! ‘ #D*f)))W ! ­ #D*f)))W !   #N*f)))W ! ~#~N*f)))W !~#~*f)))W !~#~*f)))W !~#~*f)))W ! ~#~*[#"[ÇS*f#"fMÇS HardSoft%+ 5i %+ 4i %+ 6i %p Track Head Sector Type No bad sectors detected. Bad sector report: ̀S!(![~#!(ÇS!k !*[*!v(!w#w!![  #!~#fo)))W ~1#~<!XMDA!SMD!~#fo)))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pi2qi-!~u¼-> 2pi2qi-!"pi*ri~x-!w#w\.*ri~b¨.!! N#F! ~w#~w~#~!! N#F! ~w#~w~#~!~#\.!!!  #O.!N#FV.!N#Fywx#w!~#p2!!  #p2!!!N#F!~#fo͆S!~w#~wf.*ri~p&/!! N#F! ~w#~w~#~!!N#Fͮ@ywx#w!~#\.!!!  #/!N#F/!N#Fywx#w\.*ri~l›/!~a0!! ~#fo~#~#~#~!>w#w!~w#~w+n0!!~#fo !##~!!=Q`/*ri~f¢0!!}|!!N#F!!yOx#G! ~#fo >+F+N=/!d6!9ywx#w! ! ~#fo }|\.!!}|!*pi! ~#fo##N#F+++N#F!8ywx#w! ! ~#fo####}|\.!!}|!>w#w! ! ~#fo####}|\.*ri~d#1!!}|!!>>#00!N#F!! ~#fo >+F+N=0!X3!`i w#wh9! #~h9! ! ~#fo>o>g}|!! #~~+~ !#~9!!O9! N#F!`i02ji2ki2ii2hi!hiN##~*pi>9 :*pi~'w*pi!tiyOx#GáSwrite error in putlwrite error in putlbad putl call͋S!~#fo"ti!~#fo"pi!ti~#œ:!![: áS!~#fo"ri!ri>#:;!*ti *ti ~#fo }|!ri>#;*ti ~#~;!N#F!~w#~w*pi*pi#"pi~:ri2ri:si2si*ti ~w#~w:*ti ~K;#~ <*ti ~# <*ti ~#fo*ti ~ <*ti N#F*ti *tiN#F͹B*ti y¨;x##:!*ti *tiN#F͹By;x;!!G: ç:*ti w#wç:!~#foMDáS*ti w#w <͋S!~#fo"ti*ti"ri!#~y#yo>g}|*ri*ri#"ri6-!~#fo}o|g"pi!~#¤ w#wo>g}|!:pi:qi#=!N#F*pi!N#FM*ri%<*ri "rGyw*pi" *pi* *ri }|!~#JE!*pi( AE #JEáS!*ti{Fx{E!N#F!N#F*tíGxEáS*pi ~OG*pi ~OGyOG}|EñEi`"ri!*pi( E #E*riMDáS*pi( !~#~!ri~# F!*pi* ͇HáS*ti ~OG! *pi* ! *pi! i`"ri!! *riMD!DtRáS!*pi* ͇HáSáS͋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U @rcXG1$ +@*UcLMDL!9~w#~w#~w#~w+MD!9 _ #M{ !94M! 9~cM+w>#w! 9N#FxwMO>GM҇MO>G! 9q#p*U! 9~M+w>#w! 9N#FxMO>GMMO>G! 9q#p*U! 9N#FM! 9q#p*U! 9N#FM! 9q#p*U!9~N/#>+++>#~#~#~ #~{P>#># >#O!9MD!9~#foO! 9MD!9~#foOKO!9N#F!9-POO!9MD!9~#foO! 9MD!9~#foOKO!9N#F!9-POO! 9MD!9~#fo#O!9MD!9~#fo#OKO!9N#Fkb9POlUfD 4h OP!9~Q/#w>+++w>#wMD!9!9!N#F!>w#w#w##w#w!!ʹS! N#F !#~R*UQq#px#w#wQQq#p#w#wQQ w #w #w #wQQ w #w #w #wQ~#€R#~#foy#”Rx#•R+++~#fo##tR!9!9!N#F!ͤTyzS!q#p! N#F!ͤTyR!N#FdS!yOx#GSy4S+~w#~w!SO>G! ~#+~wS&Sw y3SS!MD!  #wBS!N#F!ʹS!MD ! ~#fo+ #wqS*U!9!9*ti*ri*pii`!"pi"ri"ti!9N#F! ~Si`+ >#wSS+SSâT! ~ T# +~wS!9~w#~wS! ~4Ti`+ #~wT!9~w#~w T LTi`7#~w@TS!9~dTi`+#w[TâTwTi`>#wmT>w! !9~UTz~w+~ w++~ w–T!!9N#F!9^#V! #~#~ T! ~#~WT+TT U>w+~w} Ui` @ BCG@M [u+plUfD 4h numbers. nosoft Whe thi fla i specifie the sof error tha occur durin formattin o testin wil b reporte bu no adde t th ba spo ma bein built Thi fla i use primarill durin driv evaluatio an allow CP/͠ tes program t ge sho a margina sectors Thi fla ma als b use whe th th drive ba spo ma overflows Eg Entrie wil no be "wasted" on soft errors. size # Specif th secto size Lega value ar 128 256 512 1024 an 204 bytes Defaul i 102 bytes Note User o th Morro Design multi-use operatin system Micronix ar require t forma thei disk wit 51 byt sectors. skew #Specif th skewi1 !"P"2R2T !wwwww >w>w>w >w !>w >w ~wWŒw#<iÕ>wÁ!>w >w >ww~www ~w!2"#PʠU!~ +|     !~8 Q<#%- >0_xVfY<!">wwUÄ Decision 1 Shutdown Program $ Now parking winchester heads in safe landing zones... $ Your system is now ready to be turned off. $ HDC/DMA controller not responding! $ drives are now ready to be turned off. $ drive is now ready to be turned off. $ Remember to backup on floppy and run CHECK.COM periodically!! $ to be turned off. $ drive is now ready to bedy to be turned off. $ HDC/DMA controller not responding! $ drives are now ready to be turned off. $ drive is now ready to be turned off. $ Remember to backup on floppy and run CHECK.COM periodically!! $ to be turned off. $ drive is now ready to ben facto t b堠 used Defaul i 3 ske facto o i suggeste for Micronix. test Invok dis tes routine Thi routin write variou pattern o th dis an the verifie them. track # Specif particula cylinde t b formatte an tested Consul wit th manufacturer' specification fo lega cylinde values. An combinatio o optiona argument ca b combine fo variou affects Commo comman usage includes: A>formatmw m5 formats drive 0 for a CP/M environment. A>formatmw m16 drive 2 size 512 skew 6 formats drive 2 for a UNIX environment. 102 bytes Note User o th Morro Design multi-use operatin system Micronix ar require t forma thei disk wit 51 byt sectors. skew #Specif th skewiz8O!B N#N ¾SP.* |} !9":q!"w>w>w >w !>w >w ~wWŒw#<iÕ>wÁ!>w >w >ww~www ~w!2"#PʠU!~ +|   FORMATMW Program Th FORMATM progra formats verifie an test har dis drive tha ar connecte t Morro Design Har Dis DM controller. Usage: formatmw drive-type [arguments] wher drive-typ i require nam tha describe th driv bein formatted Possibl drive-type an argument follow: DRIVE-TYPE COMPANY 1K SECTORS  "cmi", "m16", "cm5619" Computer Memories Inc. 16,524 "seagate", "m5", "st506" Seagate Technology. 5,508 "st412", "m10" 11,016 Optional arguments: drive # Specif ᠠ physica driv (0-3 t b formatted Defaul i driv 0. head # Specif physica hea t b formatted B default al th head ar formatte an tested I yo wan t chec ou on hea only includ thi argument Consul th manufacturer' manua fo th allowabl hea !*M $ !9N#F#^#V#~#fo"kb"i`"OG!N#FI ! !N#F!Z i` 6!MDIllegal commandSector header CRC errorWrite faultData CRC errorData overrun (channel error)Data not found (no data preamble)Sector header not foundStatus code 3Status code 2Drive not readyTimeout!!T;>P22**##"ywx#w*w#w!">2*">2 sector , head , cylinder : Soft error: ! ~#! !> :OGi`) N#F ! ! !N#F2! ! !N#F2! ! !N#F2! *#"!9!>w#w>##w>@+w!~###ʌ:ʏ!>2O#2P#>2R#>2Q#!O#ͫwDrive not ready Controller does not respond 22:2*}0o}2>2:2>2X:$! :OGy>! *}0o}2>2:02>2X!":2>222X*####~2:02>2Xy¹D͇:2!::#!~#fo!yOx#Gi`"*! > *R ~ *R #"R !P ~#ʃ !Ͱ!!*P 6i`"V :V O :W ʃ *P *P ! !!/ ! !! *L  }o|g![ $ (TLPKC.D 4c!~#!N#Fi`"a !a ~#*a ~OG! *a  ~OG! !N#F!N#F*a j>2` !~#fo"Z !~#fo!~#fo "\ *a  ~#!\ :Z :[ #*Z *Z #"Z ~OG:` OG >2` P>2` P!~#foMD!\ :Z :[ #*Z ~OG! *Z !yOx#G!:Z :[ ##*Z  ~ 4! :` OG *Z *Z #"Z ~OG:` OG ~ ccc !9!~#fo"e !~#fo"k !~#fo "o !~#fo#O#!O#>2Y#2Z#2X#2W#!W#Ϳ##~2j !~#fo ~#0!k ~# !N#F:k ր:l |:j |!"m *e ! *o !" yʲ!y:j OG "g !"c *k :k 2k :l 2l } *e *e #"e ~2i :i OG!V!z! *o !! y!!!zK*e *m "e !m :k 2k :l #2l !~#fo#2O#2P#:m 2Q#:n 2R#!O#͑>2j !o 6* #" 2 2 : : !~#fo~j!~#fo~.‚j* *  }!~w#~w * * #" 6 * #" * * #" !N#F!~w#~w~x!~#fo~!~#fo~.!~w#~wë!~#fo~.!~w#~w2 2 : : #!~#fo~S* * #" 6 y*  *  *  *  6~ w~* * #" !N#F!~w#~w~* #" !N#F!~w#~w}!~#fo!~#fo~A!~#fo>Z!~#fo~OG! MD!~#fo~OGyw!~w#~wÆ!!~#~!~#fo~3!~w#~w!~#fo!yOx#G!N#F!~w#~w}ʊ!N#F!~w#~w!~N!N#F!~w#~w}!N#F!~w#~w!N#F!~w#~w~Ð!~#foMD!~#fo!~#fo (!~w#~w!~w#~w!~#fo~ &}!!9!9~w#~w#~w#~w+MD!9 _ #X{ !94X! 9~+w>#w! 9N#FxO>GNO>G! 9q#pJ! 9~+w>#w! 9N#FxO>GNyOx#Gi`":2!~#fo"!~#fo}/o|/g}og))!yOx#Gy@Oy2!*  #j:2!*  #ڈ:2!~#fo"!~2!~2>2X:¸@ͨ:OGyx>2!!U;d3c2b1  a0 A) Drive 0. (if you have only one drive) B) Drive 1. C) Drive 2. D) Drive 3. Drive: ! y !22*MD>22*MD>22*MD>22*MDx7c)baE A) m5 B) m10 C) m16 Selection: ! y !!"*MD!"*MD!"*MD ba A) CP/M B) Micronix Selection: !9!W !y yw!T !~OG!H>22*###6 ~OG>22*###6~OGà errors. 1 error. No errors. @ͨy22*::#Ҏ22*##~OG::22*###~OG::22: :***y!~#- ! X *#"*#"0*#"K: : !***Ϳö*#"g: ::j OG}o|g"m !k :m :n #'*m MD,*k MDi`"m *m *e !z:j OG ͍*o !" yʲ!k ~#ʮ!c :g :h #ڟî*g *g #"g 6 *g *g #"g :i wc!c :g :h #E!g :c :d #i`"q !q ~#*c "g *g !y:j OG yOxGi`"m !N#F:m ր:n D!! *o !! yp!!!Kp!"m !y! *o !" yʸ*m !y:j OG !:j OG ͍!! *o !" yʸ!y"g >2j !~#fo#2O#2P#:m 2Q#:n 2R#!O#͑!q ~#ʟ*g *g #"g 6 !k ~#Ÿî*e !yOx#G!w#w!~#~X!N#FͰ!~w#~w.! ! y}2s 2t *s #"s :s :t ! y¢x­! !N#Fi`"u !u ~#*u  ~D*u ~*u  ! i`"w :x (!w >>#(*u  6!~#foMD!>w>#w!~#_!~Q#~_!>w#w͖i`"y !y ~#v*y !N#Fy’*y  ~D*y  ! *y  ! x*y  6!N#F!N#F!N#FH!#~ O>G! 9q#pJ! 9N#FN! 9q#pJ! 9N#FN! 9q#pJ!! 9~+ʆ~l! 9N#F ! 9~w#~w! 9~w+~wS!9q#pJ!9N#F!9~#fo ## # +++ #J!9N#F!9~#fo  # # #J~#~#~#~#~#~#~#~!9~/Z :OG! MDû :OGy2:OG !~#fo"c#*c#~ *c#~ ! *c#~OG *c##"c# !N#F! !N#F*i`"' *"!~#fo"*MD !~#fo"c#!~#fo"_#!~#fo"a#:`# *_#>o>g"_#:d# *c#>o>g"c#*a#*a##"a#6-*c#*_#" ! ~# *_#* *a#Z *a# "a#*c#*_#20 }2 ! >9 : '2 *a#*a##"a#: w*a#!yOx#G: can't write : can't read !"R !"T :2X 2Y *X *T ̓!X ~#ʫ *R *R #"R *T *T #"T ~:X 2X :Y 2Y s *R *R #"R 6! "L *L *L ##"L L ywx#w!"R *R ~ *R ~k *R > *R ~k È *L w#w!N ~# !Ͱ!!*N Hi`"V !V ~# *N *N ! ! !> ! ! *R ~ *R ~<ʙ *R ~>½ Ù *R *R #"R 6 *R #"T *T ~ *T > *T ~ *L *L ##"L :R w:S #w *R ~> *T "P *T #"T à *T "N *T "R *R!~#~!N#F!,M "{ *{  ~@*{ MD!~#q!~c#~q!>w#w͖i`"} !} ~#ˆ*} !N#Fy¤*}  ~D*}  ! x*}  6*} !~*} #w#w#w#w*}  !~#~*}  }o|g!,MD!~#fo#~2 #~2 #~2 #~2 !~#fo " * ! ! !s##~* " ! !s##~* # ! !s##~! ywx#w!O#~#~!~#fo ~!O#~#~!~,w#~wé!~#foMDRDR:PTP:CON:LST:!9!~#8!~#fo~8!~#>!N#Fi`" : : b!" !~#fo" * ~* ~w* * ~a* >z* ~OG! MDò* ~OGyw* #" * #" t* 6!!}|: : !~#fo###~:! !N#Fy}>L2 2 !~#fo 6D!~#fo " * 6!~#fo#~: !~#fo~2 2 : A: F! >P>#LF!!N#Fyʠ>C2 2 !!N#Fy>P2 2 !!N#Fy>T2 2 !~#fo : w!~#f", Ltd.228( rCCCarm boot from. mwquiet equ 0 ;1=no m-type for hddma banner if maxmw ne 0 badsiz equ 32 ;Number of badmap entries for HDDMA else ;(Only HDDMA drives use the bad map) badsiz equ 1 ;Leave one entry as filler endif true equ 1 false equ 0 micron equ 0 page 4") fdorder equ 0 ;DJ2D/B floppies (8" only) mworder equ 1 ;HDDMA hard disks hdorder equ 0 ;HDCA hard disk drives maxdm equ 2 ;DJDMA floppies (8") maxmf equ 2 ;DJDMA floppies (5 1/4") maxfd equ 0 ;DJ2D/B floppies (8" only) maxmw equ 1 ;HDDMA hard disks maxhd equ 0 ;HDCA hard disk drive st506 equ 0 ;Seagate ST-506 st412 equ 1 ;Seagate ST-412 cm5619 equ 0 ;CMI CM-5619 m10f equ 0 ;Fujitsu M2301B m10m equ 0 ;Memorex m20 equ 0 ;Fujitsu M2302B m26 equ 0 ;Shugart SA4000 mfslow equ 0 ;1 = sa200 slow stepping fdorig equ 0f800h ;Origin of DJ2D/B Disk Jockey PROM wmdrive equ 0 ;CP/M logical drive for w;head file for sw901, movcpm.com absasm equ 0 ;set 0 for rmac, set 1 for mac msize equ 48 ;Memory size of target CP/M nostand equ 1 ;Set to 1 for non-standard mode contyp equ 4 ;Console type cbaud equ 12 ;Console Baud Rate lsttyp equ 1 ;List Device type lbaud equ 96 ;List Device Baud Rate dmorder equ 1 ;DJDMA floppies (8") mforder equ 2 ;DJDMA floppies (5 1/4") fdorder equ 0 ;DJ2D/B floppies (8" only) mworder equ 3 ;HDDMA hard disks hdorder equ 0 ;HDCA hard disk drives maxdm equ 2 ;DJDMA floppies (8") maxmf equ 2 ;DJDMA floppies (5 1/4") maxfd equ 0 ;DJ2D/B floppies (8" only) maxmw equ 1 ;HDDMA hard disks maxhd equ 0 ;HDCA hard disk drive st506 equ 1 ;Seagate ST-506 st412 equ 0 ;Seagate ST-412 cm5619 equ 0 ;CMI CM-5619 m10f equ 0 ;Fujitsu M2301B m10m equ 0 ;Memorex m20 equ 0 ;Fujitsu M2302B m26 equ 0 ;Shugart SA4000 mfslow equ 0 ;1 = sa200 slow stepping fdorig equ 0f800h ;Origin of DJ2D/B Disk Jockey PROM wmdrive equ 0 ;CP/M logical drive for war;head file for sw901, movcpm16.com absasm equ 0 ;set 0 for rmac, set 1 for mac msize equ 48 ;Memory size of target CP/M nostand equ 1 ;Set to 1 for non-standard mode contyp equ 4 ;Console type cbaud equ 12 ;Console Baud Rate lsttyp equ 1 ;List Device type lbaud equ 96 ;List Device Baud Rate dmorder equ 2 ;DJDMA floppies (8") mforder equ 3 ;DJDMA floppies (5 1/4") fdorder equ 0 ;DJ2D/B floppies (8" only) mworder equ 1 ;HDDMA hard disks hdorder equ 0 ;HDCA hard disk drives maxdm equ 2 ;DJDMA floppies (8") maxmf equ 2 ;DJDMA floppies (5 1/4") maxfd equ 0 ;DJ2D/B floppies (8" only) maxmw equ 1 ;HDDMA hard disks maxhd equ 0 ;HDCA hard disk drive st506 equ 0 ;Seagate ST-506 st412 equ 0 ;Seagate ST-412 cm5619 equ 1 ;CMI CM-5619 m10f equ 0 ;Fujitsu M2301B m10m equ 0 ;Memorex m20 equ 0 ;Fujitsu M2302B m26 equ 0 ;Shugart SA4000 mfslow equ 0 ;1 = sa200 slow stepping fdorig equ 0f800h ;Origin of DJ2D/B Disk Jockey PROM wmdrive equ 0 ;CP/M logical drive for wm boot from. mwquiet equ 0 ;1=no m-type for hddma banner if maxmw ne 0 badsiz equ 32 ;Number of badmap entries for HDDMA else ;(Only HDDMA drives use the bad map) badsiz equ 1 ;Leave one entry as filler endif true equ 1 false equ 0 micron equ 0 page ) fdorder equ 0 ;DJ2D/B floppies (8" only) mworder equ 3 ;HDDMA hard disks hdorder equ 0 ;HDCA hard disk drives maxdm equ 2 ;DJDMA floppies (8") maxmf equ 2 ;DJDMA floppies (5 1/4") maxfd equ 0 ;DJ2D/B floppies (8" only) maxmw equ 1 ;HDDMA hard disks maxhd equ 0 ;HDCA hard disk drive st506 equ 1 ;Seagate ST-506 st412 equ 0 ;Seagate ST-412 cm5619 equ 0 ;CMI CM-5619 m10f equ 0 ;Fujitsu M2301B m10m equ 0 ;Memorex m20 equ 0 ;Fujitsu M2302B m26 equ 0 ;Shugart SA4000 mfslow equ 0 ;1 = sa200 slow stepping fdorig equ 0f800h ;Origin of DJ2D/B Disk Jockey PROM wmdrive equ 0 ;CP/M logical drive for war;head file for sw901, movcpm10.com absasm equ 0 ;set 0 for rmac, set 1 for mac msize equ 48 ;Memory size of target CP/M nostand equ 1 ;Set to 1 for non-standard mode contyp equ 4 ;Console type cbaud equ 12 ;Console Baud Rate lsttyp equ 1 ;List Device type lbaud equ 96 ;List Device Baud Rate dmorder equ 2 ;DJDMA floppies (8") mforder equ 3 ;DJDMA floppies (5 1/4") fdorder equ 0 ;DJ2D/B floppies (8" only) mworder equ 1 ;HDDMA hard disks hdorder equ 0 ;HDCA hard disk drives maxdm equ 2 ;DJDMA floppies (8") maxmf equ 2 ;DJDMA floppies (5 1/4") maxfd equ 0 ;DJ2D/B floppies (8" only) maxmw equ 1 ;HDDMA hard disks maxhd equ 0 ;HDCA hard disk drive st506 equ 0 ;Seagate ST-506 st412 equ 1 ;Seagate ST-412 cm5619 equ 0 ;CMI CM-5619 m10f equ 0 ;Fujitsu M2301B m10m equ 0 ;Memorex m20 equ 0 ;Fujitsu M2302B m26 equ 0 ;Shugart SA4000 mfslow equ 0 ;1 = sa200 slow stepping fdorig equ 0f800h ;Origin of DJ2D/B Disk Jockey PROM wmdrive equ 0 ;CP/M logical drive for warm boot from. mwquiet equ 0 ;1=no m-type for hddma banner if maxmw ne 0 badsiz equ 32 ;Number of badmap entries for HDDMA else ;(Only HDDMA drives use the bad map) badsiz equ 1 ;Leave one entry as filler endif true equ 1 false equ 0 micron equ 0 page 4") fdorder equ 0 ;DJ2D/B floppies (8" only) mworder equ 1 ;HDDMA hard disks hdorder equ 0 ;HDCA hard disk drives maxdm equ 2 ;DJDMA floppies (8") maxmf equ 2 ;DJDMA floppies (5 1/4") maxfd equ 0 ;DJ2D/B floppies (8" only) maxmw equ 1 ;HDDMA hard disks maxhd equ 0 ;HDCA hard disk drive st506 equ 0 ;Seagate ST-506 st412 equ 0 ;Seagate ST-412 cm5619 equ 1 ;CMI CM-5619 m10f equ 0 ;Fujitsu M2301B m10m equ 0 ;Memorex m20 equ 0 ;Fujitsu M2302B m26 equ 0 ;Shugart SA4000 mfslow equ 0 ;1 = sa200 slow stepping fdorig equ 0f800h ;Origin of DJ2D/B Disk Jockey PROM wmdrive equ 0 ;CP/M logical drive for w#;head file for sw901, movcpm5.com absasm equ 0 ;set 0 for rmac, set 1 for mac msize equ 48 ;Memory size of target CP/M nostand equ 1 ;Set to 1 for non-standard mode contyp equ 4 ;Console type cbaud equ 12 ;Console Baud Rate lsttyp equ 1 ;List Device type lbaud equ 96 ;List Device Baud Rate dmorder equ 2 ;DJDMA floppies (8") mforder equ 3 ;DJDMA floppies (5 1/4") fdorder equ 0 ;DJ2D/B floppies (8" only) mworder equ 1 ;HDDMA hard disks hdorder equ 0 ;HDCA hard disk drives maxdm equ 2 ;DJDMA floppies (8") maxmf equ 2 ;DJDMA floppies (5 1/4") maxfd equ 0 ;DJ2D/B floppies (8" only) maxmw equ 1 ;HDDMA hard disks maxhd equ 0 ;HDCA hard disk drive st506 equ 1 ;Seagate ST-506 st412 equ 0 ;Seagate ST-412 cm5619 equ 0 ;CMI CM-5619 m10f equ 0 ;Fujitsu M2301B m10m equ 0 ;Memorex m20 equ 0 ;Fujitsu M2302B m26 equ 0 ;Shugart SA4000 mfslow equ 0 ;1 = sa200 slow stepping fdorig equ 0f800h ;Origin of DJ2D/B Disk Jockey PROM wmdrive equ 0 ;CP/M logical drive for waV1 DJDMA floppy disk controller with 8 and 5 1/4 inch disks. ; DDRV2 DJ 2D/B floppy disk controller with 8 inch disks. ; DDRV3 HDDMA 5, 10, 16, megabyte hard disk systems. ; DDRV3 HDCA 10, 20 and 26 megabyte hard disks. ; ; Note: Floppy systems diskette (drive A:) has to have 1024 byte ; sectors in order for the cold and warm boot loaders to ; work. Be sure to format all new system diskettes with ; 1024 byte sectors. The system diskette can be either ; single or double sided. The sector size on normal (non ; A: drive) diskettes is not restricted. Thus if you have ; a diskette with software that is supposed to run on the ; A: drive then you should mount the diskette in the B: ; drive and then PIP it over to a 1024 byte sector ; system diskette. page ;***************************** ;Begin User Configuration Area ;***************************** absasm equ 1 ;set 0 for rmac, set 1 for mac ; ;General System Considerations ;============================= ;Memory Size ;----------- ; 1 ; lsttyp equ 3 ;List Device type lbaud equ 96 ;List Device Baud Rate page ;Setup Disk System ;================= ; ;Select the Number of each type of disk drive ;-------------------------------------------- ; 1) This following table tells the system the types and numbers of drives ; that are active. ; 2) Drives that are not present should be set to zero. ; 3) An example: If you have 2-8" drives using a DJDMA and one disk ; attached to an HDDMA controller you would set maxdm = 2 and ; maxmw = 1, with all other selections set to zero. ; maxdm equ 2 ;DJDMA floppies (8") maxmf equ 2 ;DJDMA floppies (5 1/4") maxfd equ 0 ;DJ2D/B floppies (8" only) maxmw equ 0 ;HDDMA hard disks maxhd equ 0 ;HDCA hard disk drives ;Set the Logical Ordering of the drives ;-------------------------------------- ; 1) You must assign an 'order number' for each drive type selected ; in the previous set of equates. Drive types that WERE NOT selected ; in the previous set of equates must brm boot from. mwquiet equ 0 ;1=no m-type for hddma banner if maxmw ne 0 badsiz equ 32 ;Number of badmap entries for HDDMA else ;(Only HDDMA drives use the bad map) badsiz equ 1 ;Leave one entry as filler endif true equ 1 false equ 0 micron equ 0 page ") fdorder equ 0 ;DJ2D/B floppies (8" only) mworder equ 1 ;HDDMA hard disks hdorder equ 0 ;HDCA hard disk drives maxdm equ 2 ;DJDMA floppies (8") maxmf equ 2 ;DJDMA floppies (5 1/4") maxfd equ 0 ;DJ2D/B floppies (8" only) maxmw equ 1 ;HDDMA hard disks maxhd equ 0 ;HDCA hard disk drive st506 equ 1 ;Seagate ST-506 st412 equ 0 ;Seagate ST-412 cm5619 equ 0 ;CMI CM-5619 m10f equ 0 ;Fujitsu M2301B m10m equ 0 ;Memorex m20 equ 0 ;Fujitsu M2302B m26 equ 0 ;Shugart SA4000 mfslow equ 0 ;1 = sa200 slow stepping fdorig equ 0f800h ;Origin of DJ2D/B Disk Jockey PROM wmdrive equ 0 ;CP/M logical drive for wa) The following equate sets the memory size in kilobytes. For ; example, 48 denotes a 48k system while 64 equals a 64k system. ; msize equ 48 ;Memory size of target CP/M biosln equ 13h ;BIOS length. Also in ABOOT&.ASM ;Non-Standard Flag ;----------------- ; If this CBIOS is used with the CP/M 2.2 system that is shipped on ; a Morrow Designs diskette then NOSTAND can be set to 1. This ; will allow the CBIOS to use various data areas found inside of ; the CP/M 2.2 BDOS. If the CBIOS is used with a different ; operating system then NOSTAND should be set to 0. ; nostand equ 0 ;Set to 1 for non-standard mode ;Define the console and printer environments ;=========================================== ; The following is a list of possible baud rates and the decimal ; value needed for the cbaud and lbaud definitions ; ; Baud Rate cbaud/lbaud Baud Rate cbaud/lbaud ; 50 2304 2000 58 ; 75 1536 2400 48 ; 110 1047 3600 32 ; 134.5 857 4800 24 ; 150 768 e set to zero in this set. ; 2) Numbering must start with 1 and be continious. ; 3) An example: Suppose that your system consists of two DJDMA_8" ; drives and four DJDMA_1/4" drives along with one drive attached to ; an HDDMA controller; Furthermore, suppose that you set dmorder to ; 3, mforder to 2 and mworder to 1. The HDDMA would be your A: drive. ; The 8" drives would be the B: and C: drives; And, finally, the D:, ; E:, F:, and G: drives would be assigned to the 5_1/4" DJDMA drives. ; dmorder equ 1 ;DJDMA floppies (8") mforder equ 2 ;DJDMA floppies (5 1/4") fdorder equ 0 ;DJ2D/B floppies (8" only) mworder equ 0 ;HDDMA hard disks hdorder equ 0 ;HDCA hard disk drives ;HDDMA controller disk drives ;---------------------------- ; 1) If the HDDMA controller has been selected then you must choose one ; (and only one) of the following drive types. ; st506 equ 0 ;Seagate ST-506 st412 equ 0 ;Seagate ST-412 cm5619 equ 0 ;CMI CM-5619 ;HDCA controller disk drives ;;********************************************************************** Title 'CBIOS-CP/M_2.2 Rev_E.4 07_Sep_83 Copyright 1983 Morrow Designs' ;********************************************************************** ; ;The following drivers are included in this CBIOS. ;------------------------------------------------- ; ; Console Devices: ; CDRV0 Prom Patch (4 Jumps: conin, conout, const & conint) ; CDRV1 Patch Area (128 bytes) ; CDRV2 Multi I/O or Decision I driver ; CDRV3 2D/B driver ; CDRV4 DJDMA serial port ; CDRV5 Switchboard serial port ; CDRV6 North Star motherboard (2 serial + 1 parallel) ; ; List Devices: ; LDRV0 Prom Patch (3 Jumps: lstout, lstost & lstset) ; LDRV1 Patch Area (128 bytes) ; LDRV2 Multio_Rev3-4 or Wunderbuss i/o Serial, no protocol ; LDRV3 Multio_Rev3-4 or Wunderbuss i/o Serial, Clear To Send protocol ; LDRV4 Multio_Rev3-4 or Wunderbuss i/o Serial, Data Set Ready protocol ; LDRV5 Multio_Rev3-4 or Wunderbuss i/o Serial, Xon/Xoff protocol ; ; Disk systems: ; DDR 7200 16 ; 300 384 9600 12 ; 600 192 19200 6 ; 1200 96 38400 3 ; 1800 64 56000 2 ; ;Define the console driver to be used. ;------------------------------------- ; CONTYP is: 0 Nothing, used for patching to PROM's. ; 1 Provide for 128 bytes of patch space. ; 2 Multi I/O or Decision I driver. ; 3 2D/B driver. ; 4 DJDMA serial port ; 5 Switchboard serial port ; 6 North Star motherboard (2 serial + 1 parallel) ; contyp equ 2 ;Console type cbaud equ 12 ;Console Baud Rate ;Define the list driver to be used ;--------------------------------- ; LSTTYP is: 0 Nothing, used for patching to PROM's. ; 1 Provide for 128 bytes of patch space. ; 2 Multio/Wbio serial, no protocol. ; 3 Multio/Wbio serial, Clear To Send protocol. ; 4 Multio/Wbio serial, Data Set Ready protocol. ; 5 Multio/Wbio serial, Xon/Xoff protocol. ; ; Note: The Wunderbuss i/o board (Wbio) used in the Decision 1 is ; functionally identical to the Multio.$--------------------------- ; 1) If the HDCA controller has been selected then you must choose one ; (and only one) of the following drive types. ; m10f equ 0 ;Fujitsu M2301B m10m equ 0 ;Memorex m20 equ 0 ;Fujitsu M2302B m26 equ 0 ;Shugart SA4000 ;DJDMA controller equates ;------------------------ ; mfslow equ 0 ;set true if slow stepping 5-1/4" floppy ;DJ2D/B controller equates ;------------------------- ; fdorig equ 0f800h ;Origin of DJ2D/B Disk Jockey PROM ;Misc Considerations ;------------------- wmdrive equ 0 ;CP/M logical drive number to warm boot from. mwquiet equ 0 ;Set for no names printed on login (HDDMA only) if maxmw ne 0 badsiz equ 32 ;Number of badmap entries for HDDMA else ;(Only HDDMA drives use the bad map) badsiz equ 1 ;Leave one entry as filler endif page s. ; st506 equ 0 ;Seagate ST-506 st412 equ 0 ;Seagate ST-412 cm5619 equ 0 ;CMI CM-5619 ;HDCA controller disk drives ;n ;Do a directory write ;We are now doing an unallocated write lhld cblock ;Save current block number shld oblock lda cpmdrv ;Save drive that this block belongs to sta unadrv mvi a,1 ;Set unallocated write flag sta unaloc ; and we do nothing about the write ret ;(carry cleared by last ora) awritin:xra a ;Clear unallocated writting mode sta unaloc else ;Do standard unallocated test sui 2 ;Test for an unallocated write rz ;(carry will be cleared if zero result) endif fwritin:lda secsiz ;Check for 128 byte sectors dcr a ;(doesn't affect the carry flag) rz ;No deblocking (carry cleared by last ora) fread: mvi a,d$read sta rwop call prep ;Read the physical sector the buffer ret ;(carry and accm set by prep) ;Flush the Disk Buffer ;--------------------- ; Flush writes the contents of the buffer out to the disk if ; it has ever been written into. If there are any errors then ; the carry is returned set else it is cleared. ; flush: mvi acalled with the drive in (h) and the ; routine number (see description above) in (l). It passes ; along the (bc) and (de) registers unaltered. Jumpbuf is ; a call to jumper with the drive number from bufdrv. ; ;Entry Point_1 jumpbuf:lda bufdrv ;Dispatch with bufdrv for drive mov h,a ;Entry Point_2 jumper: push d push b push h mov a,h ;Logical drive into (a) lxi d,dsttab ;Drive specification pointer table jumpl: mov c,a ;Save logical in (c) ldax d mov l,a inx d ldax d mov h,a ;Get a DST pointer in (hl) inx d mov a,c ;Logical in (a) sub m ;Subtract from first entry in DST jnc jumpl ;Keep scanning table till correct driver found inx h ;Bump (hl) to point to start of dispatch table pop d ;Real (hl) -> (de) mov a,e ;Move offset number into (a) rlc ;Each entry is 2 bytes mov e,a ;Make an offset mvi d,0 dad d ;(hl) = **Routine mov a,m ;Pick up address of handler for selected inx h ; function mov h,m mov l,a ;(hl) = *routine mov a,c,0 ;The 0 is modified to reflect if bufwrtn equ $-1 ; the buffer has been written into ora a ;Test if written into rz ;Not written, all done (or clears the carry) mvi a,d$write sta rwop call prep ;Do the physical write ret ;(carry and accm set by prep) ;Prepare the Disk for Reading and/or Writing ;------------------------------------------- ; 1) This is actually the place where disks are read/written (contrary ; to the name of this routine) ; 2) Prep prepares to read/write the disk. Retries are attempted. ; If there are any errors then the carry is returned ; set and the location ERROR is set to 0FFh, else the carry is ; returned cleared ERROR is reset to zero. ; prep: call alt ;Check for alternate sectors di ;Reset interrupts xra a ;Reset buffer written flag sta bufwrtn mvi b,retries ;Maximum number of retries to attempt retrylp:push b ;Save the retry count mvi l,d$sel2 ;Select drive call jumpbuf lhld alttrk ;Track number -> (hl) mov ;Logical in (a) pop b ;Restore saved registers pop d pchl ;Move Data ;--------- ; 1) The entry point mov128 forces 128 bytes of data to be moved ; from source to destination. ; 2) The second entry point (movbyt) can move upto 65K of data. ; 3) The Source pointer is passed in the DE register pair. ; 4) The Destination pointer is passed in the HL register pair. ; ;Entry Point_1 mov128: lxi b,128 ;Length of transfer ;Entry Point_2 movbyt: xra a ;Check if host processor is a Z80 adi 3 jpo z80mov ;Yes, Its a Z80 so use block move m8080: ldax d ;Get a byte of source mov m,a ;Move it inx d ;Bump pointers inx h dcx b ;Update counter mov a,b ;Test for end ora c jnz m8080 ret z80mov: xchg ;Source in (hl), Destination in (de) dw 0b0edh ;ldir xchg ret ;Print a Message ;--------------- ;Utility routine to output the message pointed at by (hl) ;terminated with a null. ; message:mov a,m ;Get a character of the message inx h ;Bump text pointcpmdrv ;Update the drive, track, and sector lxi h,bufdrv lxi b,5 ;Number of bytes to move call movbyt ;Copy the data lda rdwr ;Test read write flag ora a jz fread ;Skip write type check if reading lda writtyp ;0 = alloc, 1 = dir, 2 = unalloc if nostand ne 0 ;Do non standard (but quick and dirty) check ora a ;(clears the carry) jnz fnaloc ;Skip if not an allocated write lda unaloc ;Check unallocated write in progress flag ora a ;(clears the carry flag) jz fwritin ;We are doing an allocated write lhld cblock ;Get current block address xchg lhld oblock ; and old block address mov a,d ;Compare old versus new cmp h jnz awritin ;Different, clear unallocated writting mode mov a,e cmp l jnz awritin lxi h,cpmdrv ;Test for different drive lda unadrv cmp m ;(reset the carry on equal) jnz awritin ;Drive is different, clear unallocated mode ret ;Unallocated write (return with carry=clear) fnaloc: dcr a ;(doesn't affect carry) jz awriti b,h mov c,l mvi l,d$strk call jumpbuf lhld altsec ;Sector -> (hl) mov b,h mov c,l mvi l,d$ssec call jumpbuf lxi b,buffer ;Set the DMA address mvi l,d$sdma call jumpbuf mvi l,0 ;Get operation address offset (8 or 9) rwop equ $-1 ;(set by FREAD [read=8] and FLUSH [write=9]) call jumpbuf ;Read or write to the disk pop b ;Restore the retry counter mvi a,0 ;No error exit status jnc prpret ;Return NO ERROR (accm=0, carry=clear) dcr b ;Update the retry counter stc ;Assume retry count expired mvi a,0ffh ;Error return jz prpret ;Return ERROR (accm=ff, carry=set) mov a,b cpi retries/2 jnz retrylp ;Try again push b ;Save retry count mvi l,d$home ;Home drive after (retries/2) errors call jumpbuf pop b jmp retrylp ;Try again prpret: sta error ;save the error flag ret ;Access a lo-level driver subroutine ;----------------------------------- ; Jumpbuf, jumper are used to dispatch to a low level device ; subroutine. Jumper is %er ora a ;Test for end rz ;Return if done push h ;Save pointer to text mov c,a ;Output character in C call cout ;Output the character pop h ;Restore the pointer jmp message ;Continue until null reached ;Drive select error return ;------------------------- ; 1) This routine sets the HL pair to zero (the sel-drive error ; return condition) and updates the value of CDISK. Notice that ; this routine is called from both the high level select routine ; (SETDRV) and from the lo-level routines as well (e.g. MFLDR1 ; in the DJDMA drivers). To stop infinite select error loops by the ; CCP, cdisk is modified if it specifies the disk in error. ; zret: lxi h,0 ;Seldrv error exit lda cdisk ani 15 ;isolate 'ccp' curr disk (strip user num) mov c,a lda cpmdrv ;get curr selected drive cmp c rnz ;exit if not 'ccp' select error lda lastdrv ;Get last valid selected drive mov c,a lda cdisk ;Pick up user/drive ani 0f0h ;Save user number ora c ;Put together with old vaverflow lda cpmdrv ;Put drive in table mov m,a inx h lxi b,8 call movbyt ;Move the rest of information into the table jmp badl bade: shld badptr ;Restore new bad map pointer badret: pop d pop b ret overflo:lxi h,omes call message jmp badret ;Check for alternate sectors in bad sector table ;----------------------------------------------- ; 1) This routine is only called by PREP. ; 2) If an alternate sector is found replace alttrk and altsec with ; new sector number else pass along unaltered. ; alt: lxi h,badmap ;Address of bad map -> (hl) lda bufdrv ;Pick up drive number currently working on mov c,a ;Move drive into (c) for speed in search all: xchg lhld badptr ;Get bad map pointer xchg ; -> (de) mov a,d ;Check if at end of bad map table cmp h jnz alt2 ;Still more mov a,e cmp l jnz alt2 ;Still more lhld buftrk ;No alternate sector so use selected sector shld alttrk lhld bufsec shld altsec ret alt2: push h ;Save current bad maead equ 8 ;Read a physical sector d$write equ 9 ;Write a physical sector d$bad equ 10 ;Return pointer to bad sector info ;Disk System DPB Generation Macros ;--------------------------------- ; The following are the macros used in generating the DPH, DPB and ; allocation tables. ; dpbgen macro nam,log,dspt,dbsh,dblm,dexm,ddsm,ddrm,dal0,dal1,dcks,doff,ssiz dpb&nam&log equ $ dw dspt db dbsh db dblm db dexm dw ddsm dw ddrm db dal0 db dal1 dw dcks dw doff db ssiz endm dphgen macro nam,log,dpb1,dpb2 dph&nam&log equ $ dw 0 dw 0,0,0 dw dirbuf dw &dpb1&dpb2 dw csv&nam&log dw alv&nam&log endm alloc macro nam,log,al,cs csv&nam&log: ds cs alv&nam&log: ds al endm page if (maxdm ne 0) or (maxmf ne 0) ;DJDMA present? ;************************************************************** ;Begin the DJDMA Driver (DDRV1) ;****************************** ; ;Step Rate tables ;================ ; 1) The followin tabl ar driv parameter fo drive connecte t ; lid drive sta cdisk ;set new default disk for 'ccp' ret ;No bad Map ;---------- ; This routine is used by the lo-level drivers to indicate that ; the selected device has no bad map. ; nobad: lxi h,0 ;Used by device drives to indicate no bad ret ; sector map ;Return DPH pointer ;------------------ ; Enter with (de) with DPH base address and (a) with logical ; drive number. Returns with DPH address in (hl). ; retdph: mov l,a ;Move logical drive into (l) mvi h,0 dad h ;Multiply by 16 (size of DPH) dad h dad h dad h dad d ;(hl) = pointer to DPH ret page ;CBIOS Bad Map Routines (only for HDDMA) ;======================================= ; ;null routines if no HDDMA ;------------------------- ; if maxmw eq 0 ;if no HDDMA ; getbad: ret ;no bad map to read from disk ; alt: lhld buftrk ;No alternate sector so use selected sector shld alttrk lhld bufsec shld altsec ret ; else ;have a HDDMA ;Check if a device has a bad map ;---------------------p entry address mov a,c ;Move drive into (a) cmp m ;Check if drive in table matches jnz altmis ;Does not match skip this entry inx h ;Point to LSB of alternate track lda buftrk ;Pick up LSB of buffer track cmp m jnz altmis inx h ;Point to MSB alternate track lda buftrk+1 ;Pick up MSB of buffer track cmp m jnz altmis inx h ;Point to LSB of alternate sector lda bufsec ;Pick up LSB of buffer sector cmp m jnz altmis inx h ;Point to MSB of alternate sector lda bufsec+1 ;Pick up MSB of buffer sector cmp m jnz altmis ;Found an alternate sector inx h ;Point to real info on the alternate sector lxi d,alttrk xchg ;MOVLOP (de) = source, (hl) = dest push b lxi b,4 call movbyt ;Move alternate sector info in correct place pop b pop h ret altmis: pop h ;Current alternate did not match lxi d,9 ;Bump pointer by the length of an entry dad d jmp all ;Loop for more ;Bad Map Routines Data Areas ;--------------------------- ; omes: db 0dh, 0ah, th DJDM flopp dis controller Ther i on entr fo eac o ; th th eigh driv tha th controlle ca address Th firs ; fou entrie ar fo th 8 drive an th las fou ar fo th ; 5.25 drives User wit fas steppin 8 drive (SA850/1 o ; slo 5.25 drive (SA400 shoul adjus thi tabl fo optima ; devic performace. ; 2) Each table entry contains four fixed length fields. The fields ; are defined as follows: ; ; tracks This byte contains the number of tracks on the ; drive. Most 8" drives have 77 tracks and ; most 5.25" drives have 35 or 40 tracks. ; ; config This a a flag byte that indicates as to whether ; or not this drive has been configured. Set to ; 0 to force reconfiguration. ; ; step This word contains the stepping rate constant. ; The DJDMA's delay routines tick 34.1 times per ; millisecond. Thus the step constant would be the ; drive manufactors recomended stepping delay times ; 34.1. Example. Shugart ---------- ; 1) This routine is only called by SETDRV ; 2) If the device has a bad sector map then append bad entries to end ; of badmap table. ; 3) This routine is only required for HDDMA. ; getbad: mvi m,1 ;Set drive initilized push b push d lda cpmdrv ;Pick up current drive mov h,a ;Call drive routine to return a pointer to mvi l,d$bad ;the track and sector of the bad map call jumper mov a,h ;If routine returns 0 then the device has ora l ; no bad sector map jz badret mov e,m ;Pick up track number of bad sector map -> (de) inx h mov d,m inx h xchg shld cpmtrk xchg mov a,m ;Pick up sector number of of bad sector map inx h mov h,m mov l,a shld truesec call fill ;Read in bad sector map into the buffer rc lhld badptr ;Pick up bad map pointer lxi d,buffer ;Start at beginning of buffer badl: ldax d ;Pick up an entry from the buffer ora a jz bade ;All done mov a,m ;Pick up entry from bad map table inr a jz overflo ;Bad map o 'BAD MAP OVERFLOW!', 0dh, 0ah, 0 badptr: dw badmap ;Pointer to next available bad map entry endif ;end of Bad Map Routines page ;CBIOS Disk Routines Data Area ;============================= ; ;DPH save area ;------------- ; 1) Each entry is 4 bytes long: ; 0 - LSB of DPH address ; 1 - MSB of DPH address ; 2 - Sector size code (1=128, 2=256, 3=512, 4=1024) ; 3 - Bad map has been initilized (0 = Uninitilized) ; dphtab: rept maxlog*4 db 0 endm page ;************************** ;Begin Disk Driver Routines ;************************** ; ;General Equates and Macros ;========================== ; ;Disk System Dispatch Table Offsets ;---------------------------------- ; The following are offset numbers of Device Specification Tables. ; d$wboot equ 0 ;Warm boot d$stran equ 1 ;Sector translation d$sel1 equ 2 ;Drive select, Return DPH d$sel2 equ 3 ;Drive select d$home equ 4 ;Home drive d$strk equ 5 ;Set track d$ssec equ 6 ;Set sector d$sdma equ 7 ;Set DMA address d$r&SA 850's step at 3 ; milliseond intervals. The step constant would be ; 3 * 43.1 or 102. ; ; rfu The next two words are reserved for future use. ; They must be zero. ; ; settle This word is similar to the previously defined ; step word. This specifies the head settle timing ; after the heads have been stepped. Example, ; Shugart's SA 850 head settle time is 15 ; milliseconds. The settle constant would be 15 * ; 34.1 or 512. ; ; 3) An assembler macro (DCONF) has been provided to assist in ; generating the dparam table. This macros parameters are the ; number of tracks, the step rate in milliseconds, and the head ; settle time in milliseconds. For example: ; ; ;Shugart SA 850 ; dconf 77, 3, 15 ;77 tracks, 3 ms step, 15 ms settle ; ; ;Shugart SA 400 ; dconf 35, 40, 10 ;35 tracks, 40 ms step, 10 ms settle ; ; 4) Note: Caution should be used when defining the drive parameters. ; Incorrect definations may damage the floppy disk drive. Morrow ; equ 2Ch ;Enable/disable serial input trksiz equ 2Dh ;Set number of tracks dmsetl equ 2Eh ;Set logical drives readm equ 0A0h ;Read from controller memory writem equ 0A1h ;Write to controller memory ;Define stepping rate equates ;---------------------------- ; dmfste equ 3*341/10 ;SA851 stepping rate constant dmfset equ 15*341/10 ;SA851 settling rate constant ;Define Internal status byte fields ;---------------------------------- ; dms$t0 equ 01000000b ;Track 0 status mask (1 = on trk 0) dms$dd equ 00100000b ;Double density mask (1 = double) dms$wr equ 00010000b ;Double sided track wrap (1 = wrap) dms$ds equ 00001000b ;Double sided status mask (1 = double) dms$hs equ 00000100b ;Hard sectored status mask (1 = hard) dms$ss equ 00000011b ;Sector size code mask ... ;... 0 = 128, 1 = 256, 2 = 512, 3 = 1024 ;Define North Star status byte fields ;------------------------------------ ; dmn$d eq 10000000 ;Doubl densit mask dmn$ds equ 01000000b ;Double sided mask dmn$2x e: lxi h,dmwchn ;Warm boot command channel lxi d,dmwoff call dmcmd ;Execute the channel jnz dmwbad ;Retry lda dmwst0 ;Get track read status lhld dmwst1 ;Track ones status in L ora l cpi 40h jnz dmwbad ;Loop on 'terrible' errors like no disk lxi b,300h ;Move .75 Kbytes of sector 3 lxi d,buffer ;Sector 3 is in our buffer lxi h,ccp+1300h ; and this is where we want it to go call movbyt xra a ret dmwchn: db dmsdma ;Set track 0 DMA address dw ccp-512 ;First track DMA address - boot loader db 0 db rdtrck ;Read track command db 0 ;Track 0 db 0 ;Side 0 db 0 ;Drive 0 dw dmwmap ;Sector load/status map db 0 dmwst0: db 0 ;Track read status db dmsdma dw ccp+dmcod8 ;DMA address for track 1 db 0 db rdtrck db 1 ;Track 1 db 0 ;Side 0 db 0 ;Drive 0 dw dmwmap+26 ;Load map right after track 0 map db 0 dmwst1: db 0 ;Track read status db dmsdma dw buffer ;Sector 3 gets loaded in system buffer db 0 db dmrsec db  Designs takes no responsibility for damage that occures through ; the misuse of this macro. ; dconf macro tracks, step, settle db tracks ;Number of tracks db 0 ;Reset the calibrated flag dw step*341/10 ;Step time dw 0 ;Reserved for future use, must be zero dw 0 ;Reserved for future use, must be zero dw settle*341/10 ;Head settle time endm dmarap: db 0, 10*8 ;Revision 0, length 80 bytes dparam equ $ ;Drive parameter table ; ;Define 8" drive parameters ;-------------------------- ; 1) Use SA800 parameters: 77 tracks, 8 ms step, 8 ms settle ; dconf 77, 8, 8 ;Drive 0 dconf 77, 8, 8 ;Drive 1 dconf 77, 8, 8 ;Drive 2 dconf 77, 8, 8 ;Drive 3 ; ;Define 5.25" drive parameters ;----------------------------- ; 1) Use Tandon parameters: 40 tracks, 5 ms step, 15 ms settle ; 2) Note: Drive 1 is set up for a 20ms step rate and a 25ms head ; settling time so that it will operate properly with our ; soft-sectored drives. ; if mfslow dconf 40, 20, 20 ;Drivqu 00100000b ;CP/M version 2.x mask dmn$ok equ 00010000b ;Validation mask dmn$40 equ 00001000b ;40/80 track mask dmn$dt equ 00000100b ;Double track density mask dmn$xx equ 00000011b ;RFU mask ;Common Subroutines ;------------------ ; Return a pointer to the current drives drive parameter entry ;------------------------------------------------------------- ; dmdpar: lhld dmdriv ;Get the current drive number mvi h,0 ;Drive number is a byte dad h ;Ten bytes per parameter table entry mov d,h mov e,l dad h dad h dad d lxi d,dparam ;Parameter table address dad d ret page if maxdm ne 0 ;Start 8" drive's unique code section ;==================================================================== ;Devic Specificatio Tabl fo DJDMA controlle wit " drives ;============================================================== ; dmdst: db maxdm ;Number of logical drives dw dmwarm ;Warm boot dw dmtran ;Sector translation dw dmldr1 ;Select drive 1 dw dmldr1 ;Track 1 db 3 ;Side 0, sector 3 db 0 ;Drive 0 db 0 ;Read status db dmhalt ;Controller halt command db 0 dmwoff equ $-dmwchn-1 ;Halt offset for the command channel dmwmap: dw -1, -1, 0, 0, 0, 0, 0 ;Do not load the boot loader dw 0, 0, 0, 0, 0, 0 dw 0, -1, -1, -1 ;First 2 sectors on track 2 endif ;end of 8" DJDMA warm boot ;DJDMA 8" sector translation ;--------------------------- ; dmtran: inx b ;Ajust sectors to start at 1 lda dmpsta ;Test for double sided drives ani dms$ds jz dmtrn0 ;Skip if single sided lda dmcspt ;Get SPT/2 sub c ;Test for side one sectors jnc dmtrn0 ;Skip sector adjustment if on side zero cma ;'Knock off' first sides sectors inr a mov c,a mvi b,80h ;Set side one flag dmtrn0: mov l,c ;Make an index to the SECTRAN table mvi h,0 dad d mov l,m ;Load the translated sector mov h,b ;Set the side bit ret ;DJDM 8 driv selec 1 ;----------------------- ; 1) Determin th secto siz an the 0 dconf 40, 20, 20 ;Drive 1 dconf 40, 20, 20 ;Drive 2 dconf 40, 20, 20 ;Drive 3 else dconf 40, 5, 15 ;Drive 0 dconf 40, 5, 15 ;Drive 1 dconf 40, 5, 15 ;Drive 2 dconf 40, 5, 15 ;Drive 3 endif page ;DJDMA equates ;============= ; ;Define DJDMA i/o ports and default channel address ;-------------------------------------------------- ; dmchan equ 50h ;Default channel address dmkick equ 0efh ;Kick I/O port address serin equ 03eh ;Address of serial input data ;Define the channel commands ;--------------------------- ; dmrsec equ 20h ;Read sector command dmwsec equ 21h ;Write a sector command dmstac equ 22h ;Get drive status dmsdma equ 23h ;Set DMA address intrqc equ 24h ;Set Interrupt request dmhalt equ 25h ;Halt command bracha equ 26h ;Channel branch setcha equ 27h ;Set channel address dmserr equ 28h ;Set CRC retry count rdtrck equ 29h ;Read track command wrtrck equ 2Ah ;Write track command serout equ 2Bh ;Serial character ouput senabl 2 ;Select drive 2 dw dmhome ;Home drive dw dmseek ;Seek to specified track dw dmsec ;Set sector dw dmdma ;Set DMA address dw dmread ;Read a sector dw dmwrit ;Write a sector dw nobad ;No bad sector map if dmorder ne 1 ;no warm boot possible ;DJDMA 8" warm boot dummy ;------------------------ ; 1) If 8" DJDMA is not drive A (i.e. dmorder not equal 1) then ; it is not possible to warm boot from 8". So routine not needed. ; dmwarm: ret ;return if called else ;DJDM 8 war boo loader ;------------------------- ; 1) Thi loade load fro th star o th CC (trac secto 5 ; t th en o th BDO (trac sector 3) Onl 76 (3/4k byte ; o trac secto i rea i since th war boo routin i ; no allowe t loa an th CBIO code. ; 2) Secto i rea int th dis buffe an copie int it prope ; restin place. ; dmcod8 equ 22*128 ;Amount of code on track 0 to load dmwarm: call dmsel2 ;Select drive 0 dmwbad' numbe o side o th drive ; 2) Retur correc DPH. ; dmldr1: call dmsel2 ;Do logical select call dminit ;Test for a controller jc zret ;Skip if no controller present call dmstat ;Accm:= Djdma_returned_Drive_Status jc zret ;Skip on status check error push psw ani dms$t0 ;Check for track 0 jz dmldr0 ;Skip if not on track 0 (status valid) pop psw ;Clean stack lxi h,1 ;read sector 1 ... shld truesec inx h ;... of track 2 shld cpmtrk ;because track 1 always single density xra a sta rdwr ;force read to get valid drive status call fill ;flush buffer and read jc zret ;exit with error if error call dmdpar ;Get the drive parameter address inx h mvi m,0 ;Decalibrate the drive call dmparm call dmstat ;Accm:= Djdma_returned_Drive_Status jc zret ;If (error eq true) goto error_return push psw dmldr0: pop psw ;Get drive status sta dmpsta ;Set the physical status mode call dmsptr ;Save status in status table mov m,astant inx h mvi m,(high dmfset) call dmparm ;Set drive parameters for the SA850 ret ;DJDMA 8" driver variables ;------------------------- ; dmcspt: db 0 ;CPM sectors per track / 2 ; 8" Disk parameter headers ;-------------------------- ; dphdm0: dw 0 ;translation table address dw 0 dw 0 dw 0 dw dirbuf ;directory buffer dw 0 ;pointer to disk parameter block dw csvdm0 ;scratch pad area for checking changed disks dw alvdm0 ;scratch pad for allocation information dphdm1: dw 0 ;translation table address dw 0 dw 0 dw 0 dw dirbuf ;directory buffer dw 0 ;pointer to disk parameter block dw csvdm1 ;scratch pad area for checking changed disks dw alvdm1 ;scratch pad for allocation information dphdm2: dw 0 ;translation table address dw 0 dw 0 dw 0 dw dirbuf ;directory buffer dw 0 ;pointer to disk parameter block dw csvdm2 ;scratch pad area for checking changed disks dw alvdm2 ;scratch pad for allocation information dphdm3: dw 0 ;tranc+10 ;Load map right after track 0 map db 0 db 0 ;Track read status db dmhalt db 0 mfwlen equ $-mfwchn-1 ;Channel length mfwsec: dw 0ffh, 0, 0, 0, 0 ;Do not load boot loader dw 0, -1, -1, -1, -1 ;first two sectors loaded endif ;DJDMA 5.25" warm boot routine ;DJDMA 5.25" sector translation ;------------------------------ ; mftran: lda dmpsta ;Test for soft sectored media ani dms$hs lxi h,mfxlt1 ;Soft sectored SECTRAN table jz mftrn lda dmpsta ;Test disk density ani dms$dd lxi h,mfxltd ;Double density SECTRAN table jnz mftrn lxi h,mfxlts ;Single density SECTRAN table mftrn: dad b mov l,m ;Load physical sector number mvi h,0 ret ;DJDM 5.25 firs tim select ;----------------------------- ; 1) Thi routin inpecte th disk. I th dis i har sectore ; th th Nort Sta configuratio byt i rea fro trac , ; secto byt 5c I th medi i soft sectore th th ; Morro Design Micr Decisio forma i assumed. ; mfld ani dms$ss ;Mask in sector size bits rlc ;Make a word index push psw ;Used to select a DPB mov e,a mvi d,0 lxi h,xlts ;Table of XLT table pointers dad d push h ;Save pointer to proper XLT call dmgdph ;Get a pointer to the drives DPH pop d ;Copy XLT pointer from table to DPH lxi b,2 call movbyt lxi d,8 ;Offset to DPB pointer dad d push h lda dmpsta ;Test for a double sided drive ani dms$ds lxi d,dpb128s ;Base for single sided DPB's jz dmsok call dmfstp ;Set controller to fast steping mode lxi d,dpb128d ;Base of double sided DPB's dmsok: xchg po ;Restor DPH pointe to DPB pop psw ;Offset to correct DPB (sector size) rlc ;Times 4 rlc ; 8 rlc ; 16 bytes per DPB mov c,a ;Offset to the correct DPB mvi b,0 dad b xchg ;Load the DPB pointer in the DPH mov m,e inx h mov m,d lxi h,15 ;Offset to the sector size code dad d mov c,m dmgdph: lda dmdriv ;Get the DPH pointer lxi d,dphdmslation table address dw 0 dw 0 dw 0 dw dirbuf ;directory buffer dw 0 ;pointer to disk parameter block dw csvdm3 ;scratch pad area for checking changed disks dw alvdm3 ;scratch pad for allocation information endif ;End of 8" drive's unique code page if maxmf ne 0 ;Start of 5" drive's unique code section ;======================================================================= ;Drive specification table for DJDMA 5.25" drives ;================================================ ; mfdst: db maxmf ;Number of logical drives dw mfwarm ;Warm boot dw mftran ;Sector translation dw mfldr1 ;Select drive 1 dw mfsel2 ;Select drive 2 dw dmhome ;Home drive dw mfseek ;Seek to specified track dw mfssec ;Set sector dw dmdma ;Set DMA address dw mfread ;Read a sector dw mfwrit ;Write a sector dw nobad ;No bad sector map if mforder ne 1 ;no warm boot possible ;DJDMA 5.25" warm boot dummy ;--------------------------- ; 1) If 5.25" DJDMA is not r1: call mfsel2 ;Do logical drive select call dminit ;Test for a controller jc zret call dmstat ;Get the drive status byte jc zret ;Error exit if status not good sta dmpsta call dmsptr ;Save in the status table mov m,a ani dms$hs ;Test for hard sectored drives jnz mfld0 ;Skip to hard sectored logger call mfrds1 ;get sector 1 of track 0 lxi h,buffer+80h+25 ;longitudinal parity check the data mvi b,25 ;number of bytes to check xra a ;init long parity mov e,a ;0-check byte mfckl: dcx h ;next byte to check xra m ;get long parity mov d,a ;save parity ora e ;catch any 1 bits in 0-check byte mov e,a ;save 0-check mov a,d ;get parity again dcr b jnz mfckl ;loop for whole table ora a ;tests parity (should be 0 for valid) jnz mfsft ;assume single side if bad table ora e ;test 0-check (should not be all 0) jz mfsft ;assume single side in all 0 table lda buffer+81h ;get Morrow soft sector config byte ani 4 ;0 call retdph ret ;DJDM 8 driv selec 2 ;----------------------- ; 1) Figur numbe o sector_pe_trac믲 fo SECTRAN. ; ; dmldr2: call dmsel2 ;Perform logical drive select call dmgdph ;Load the DPH pointer lxi d,10 ;Offset to the DPB pointer dad d mov a,m ;Load the DPB pointer inx h mov h,m mov l,a mov a,m ;Load the number of CP/M sectors/track rrc ;Divide by two sta dmcspt ;Save CPM SPT ret ;Set the drive's step rate to 3ms ;-------------------------------- ; 1) Th curren driv i doubl sided Thu i i saf t se th ; steppin rat t m wit 1 m settling. ; dmfstp: call dmdpar ;Get the parameter table pointer inx h ;Bump to the drive initialized flag mvi m,0 ;Force reparamitization of this drive inx h ;Offset to the Stepping rate constant mvi m,(low dmfste) ;Fast stepping rate constant inx h mvi m,(high dmfste) lxi d,5 ;Skip over the reserved fields dad d mvi m,(low dmfset) ;Fast settling rate condrive A (i.e. mforder not equal 1) then ; it is not possible to warm boot from 5.25". So routine not needed. ; mfwarm: ret ;return if called else ;DJDM 5.25 war boo loader ;---------------------------- ; 1) Loa fro th star o th CC (trac secto 1 t th en ; o th BDO (trac secto 1). mftrck equ 9*512 ;Amount of code on track 0 mfwarm: call mfsel2 ;Select drive 0 mfwbad: lxi h,mfwchn ;Warm boot command channel lxi d,mfwlen call dmcmd jnz mfwbad ;Loop on 'bad' errors lda mfwst0 cpi 40h jnz mfwbad xra a ;Return no error ret mfwchn: db dmsdma ;Set track 0 DMA address dw ccp-512 ;First track DMA address - boot loader db 0 db rdtrck ;Read track command db 0 ;Track 0 db 0 ;Side 0 db 4 ;mini Drive 0 dw mfwsec ;Sector load/status map db 0 mfwst0: db 0 ;Track read status db dmsdma dw ccp+mftrck ;DMA address for track 1 db 0 db rdtrck db 1 ;Track 1 db 0 ;Side 0 db 4 ;mini Drive 0 dw mfwse(check double sided indicator mvi a,0a9h ;double sided config byte jnz mfld1 ;skip if double sided mfsft: mvi a,0a1h ;Morrow Soft sectored floppy jmp mfld1 mfld0: call mfrds1 ;get sector 1 of track 0 lda buffer+5Ch ;Get the North Star configuration byte mfld1: ora a ;Old CP/M 1.4 systems did not have a cz mflcl ; configuration byte. This routine cpi 0E5h ; will make a configuration byte for cz mflcl ; these systems. mov c,a lxi h,mfs ;Pointer to configuration table mfld2: mov a,m ;Get an entry ora a ;Check for end of the table jz zret ;Yes, select error cmp c ;Check if entry matches selected drive jz mfld3 ;Match, get entry inx h ;Skip to the next entry inx h inx h inx h jmp mfld2 mfld3: inx h ;Bump to the true configuration byte lda dmpsta ;Get the physical status ora m ;Fill in the fields the hardware can't sta dmpsta ; figure out push h call dmsptr ;Load the status byte into the table mov m,a ingl side floppy Track 3 t 6 ar o sid i reverse ; (e.g Trac 3 i o trac 3 sid 1 and trac 6 i o trac ; sid 1). ; mfseek: xra a ;Clear double sided select flag sta mfsid1 lxi h,dmpsta ;Get the drive status mov a,m ani dms$hs ;Test for hard sectored drives jz dmsoft ;Skip if soft sectored mov a,m ;Test for double sided drives ani dms$ds jz dmseek ;Skip if single sided mov a,m ;Test for track wrap mode ani dms$wr jz dmseek ;Skip if not wrapping mov a,c ;Test for tracks 35-69 cpi 35 jc dmseek ;Skip if less than track 35 mvi a,69 ;Adjust tracks 35 -> 69 to 34 -> 0 sub c mov c,a mvi a,080h ;Set side one flag sta mfsid1 jmp dmseek dmsoft: mov a,m ;get drive status again ani dms$ds ;check for double sided (cy = 0) jz dmseek ;skip if not double sided mov a,c ;get track number rar ;divide by 2 for Morrow soft sectored mov c,a jnc dmseek ;skip if on side 1 mvi a,80h sta mfsid1 ded dw dpbmf4 db 0a9h ;Morrow Designs CP/M 2.x Soft sectored db dms$ds ;Double density, 40 tracks, 2-sided dw dpbmf5 db 0 ;End of configuration table ; Hard sectored single sided sector translation table ; mfxlts: db 1, 2 db 3, 4 db 5, 6 db 7, 8 db 9, 10 db 11, 12 db 13, 14 db 15, 16 db 17, 18 db 19, 20 ; Hard sectored double sided sector translation table ; mfxltd: db 1, 2, 3, 4 db 21, 22, 23, 24 db 5, 6, 7, 8 db 25, 26, 27, 28 db 9, 10, 11, 12 db 29, 30, 31, 32 db 13, 14, 15, 16 db 33, 34, 35, 36 db 17, 18, 19, 20 db 37, 38, 39, 40 ; Soft sectored single sided translation table ; mfxlt1: db 1, 2, 3, 4, 5, 6, 7, 8 db 25, 26, 27, 28, 29, 30, 31, 32 db 9, 10, 11, 12, 13, 14, 15, 16 db 33, 34, 35, 36, 37, 38, 39, 40 db 17, 18, 19, 20, 21, 22, 23, 24 mfsid1: db 0 ;On side one flag ;disk parameter headers ;---------------------- ; dphmf0: dw 0 ;translation table address dw 0 dw 0 dw 0 dw di pop h inx h ;Bump to the DPB pointer mov a,m ;Load the DPB pointer inx h mov h,m mov l,a push h ;Save DPB address call mfgdph ;Get a DPH pointer lxi d,10 ;Offset to DPB address in DPH dad d pop d mov m,e ;Store DPB address in DPH inx h mov m,d call mfgdph ;Get the DPH pointer lda dmpsta ;Get physical status ani dms$ss ;Mask sector size field inr a ;Make CBIOS sector size code mov c,a ret ; ; routine called by first time select to read sector 1 track 0 ; for disk configuration byte checks for hard/soft sectored ; minifloppies. ; mfrds1: lxi h,1 ;Select sector 1 of track 0 shld truesec dcx h shld cpmtrk xra a ;Make sure we are doing a read sta rdwr call fill ;Flush buffer and refill rnc ;return if no error pop h ;flush return address jmp zret ;do error return ; Get the configuration byte for a North Star Disk ;------------------------------------------------- ; 1) This routine is only used by MFLDR1: (mini-f;else indicate side 2 jmp dmseek ;DJDMA 5.25" set sector ;---------------------- ; mfssec: lda dmpsta ;if (drive .eq. soft_sectored) ani dms$hs ; goto sector save routine jz dmsec ;else dcr c ; adjust for first sect = zero jmp dmsec ;DJDMA 5.25" read/write sector ;----------------------------- ; mfread: call mfset ;Set up side flag jmp dmread mfwrit: call mfset ;Set up side flag jmp dmwrit mfset: lda mfsid1 ;Get the side flag lxi h,dmsctr ;Merge with the sector number ora m mov m,a ret ;DJDMA 5.25" driver variables ;---------------------------- ; ;Mini-Floppy Configuration/DPB_Lookup table ; 1) This table is used by the mini-floppy first time select routine ; (mfsldr1) and is used to: ; a) validate the drive configuration byte. ; b) fill in the parameters that can't be determined by doing ; sense drive status (like sensing double sided drives). ; c) returning a pointer to the proper DPB for the media. ; 2) There are four fields per rbuf ;directory buffer dw dpbmf0 ;pointer to disk parameter block dw csvmf0 ;scratch pad area for checking changed disks dw alvmf0 ;scratch pad for allocation information ; dphmf1: dw 0 ;translation table address dw 0 dw 0 dw 0 dw dirbuf ;directory buffer dw dpbmf1 ;pointer to disk parameter block dw csvmf1 ;scratch pad area for checking changed disks dw alvmf1 ;scratch pad for allocation information ; dphmf2: dw 0 ;translation table address dw 0 dw 0 dw 0 dw dirbuf ;directory buffer dw dpbmf2 ;pointer to disk parameter block dw csvmf2 ;scratch pad area for checking changed disks dw alvmf2 ;scratch pad for allocation information ; dphmf3: dw 0 ;translation table address dw 0 dw 0 dw 0 dw dirbuf ;directory buffer dw dpbmf3 ;pointer to disk parameter block dw csvmf3 ;scratch pad area for checking changed disks dw alvmf3 ;scratch pad for allocation information ;disk parameter buffers ;---------------------- ; dpbmf0: dw 20 ;SPT db 3loppy first time ; select ; 2) Nort Sta configuratio byt valu i o a E5 Chec ; physica dis densit an generat correc configuratio byt ; value. ; mflcl: lda dmpsta ;Get physical status ani dms$dd ;Test the double density bit mvi a,10h ;CP/M 1.4 single density configuration rz mvi a,90h ;CP/M 1.4 double density configuration ret ; Return a pointer to the current drives DPH ;------------------------------------------- ; ; 1) This routine is only used by MFLDR1: (mini-floppy first time ; select ; mfgdph: lda dmdriv ;Get the current drive sui 4 ;5.25 drives start at drive 4 lxi d,dphmf0 call retdph ret ;Selec driv # ;--------------- ; 1) Thi drive configure th 1/" drive a drive t 7. ; ; mfsel2: adi 4 ;5.25" drives are drives 4-7 jmp dmsel2 ;Se track ;--------- ; 1) Nort Sta implement doubl side drive b doublin ; th numbe o track t 70 Track t 3 ar o sid lik ; sentry. ; Field_1: Drive configuration byte. ; Field_2: Additional drive parameters that can't be determined ; by doing a sense drive status (i.e. double_sided and ; track_wrap). ; Field_3: Pointer to the appropriate DPB ; mfs: db 10h ;North Star CP/M 1.4 db 0 ;Single density, 35 tracks, 1-sided dw dpbmf0 ;1K groups db 90h ;North Star CP/M 1.4 db 0 ;Double density, 35 tracks, 1-sided dw dpbmf1 ;1K groups db 0b0h ;North Star CP/M 2.x db 0 ;Double density, 35 tracks, 1-sided dw dpbmf2 ;2K groups db 0f0h ;North Star CP/M 2.x db (dms$ds or dms$wr) ;Double density, 35 tracks, 2-sided dw dpbmf3 ;2K groups db 0a0h ;North Star CP/M 2.x (fake 40 track) db 0 ;Double density, 35 tracks, 1-sided dw dpbmf2 ;2K groups db 0d0h ;North Star CP/M 2.x (fake 40 track) db (dms$ds or dms$wr) ;Double density, 35 tracks, 2-sided dw dpbmf3 ;2K groups db 0a1h ;Morrow Designs CP/M 2.x Soft sectored db 0 ;Double density, 40 tracks, 1-si) ;BSH db 7 ;BLM db 0 ;EXM dw 79 ;DSM dw 63 ;DRM db 0C0h ;AL0 db 0 ;AL1 dw 16 ;CKS dw 3 ;OFF db 2 ;SECSIZ ; dpbmf1: dw 40 ;SPT db 3 ;BSH db 7 ;BLM db 0 ;EXM dw 164 ;DSM dw 63 ;DRM db 0C0h ;AL0 db 0 ;AL1 dw 16 ;CKS dw 2 ;OFF db 3 ;SECSIZ ; dpbmf2: dw 40 ;SPT db 4 ;BSH db 15 ;BLM db 1 ;EXM dw 81 ;DSM dw 63 ;DRM db 080h ;AL0 db 0 ;AL1 dw 16 ;CKS dw 2 ;OFF db 3 ;SECSIZ ; dpbmf3: dw 40 ;SPT db 4 ;BSH db 15 ;BLM db 1 ;EXM dw 169 ;DSM dw 63 ;DRM db 080h ;AL0 db 0 ;AL1 dw 16 ;CKS dw 2 ;OFF db 3 ;SECSIZ ; dpbmf4: dw 40 ;SPT db 4 ;BSH db 15 ;BLM db 1 ;EXM dw 94 ;DSM dw 127 ;DRM db 0C0h ;AL0 db 0 ;AL1 dw 32 ;CKS dw 2 ;OFF db 4 ;SECSIZ dpbmf5: dw 40 ;SPT db 4 ;BSH db 15 ;BLM db 1 ;EXM dw 194 ;DSM dw 191 ;DRM db 0E0h ;AL0 db 0 ;AL1 dw 48 ;CKS dw 2 ;OFF db 4 ;SECSIZ page endif ;End of 5" drive's unique code section ;===================================================================== ;CSe flopp driv parameters ;---------------------------- ; 1) Thi routin inspect th DPARA tabl an i th driv ; ha no bee calibrate previousl then tha drive trac ; count steppin rate an hea settl tim are loaded. ; dmparm: mvi a,8 ;Eight drives lxi d,1340h ;Controllers drive parameter address lxi h,dparam+1 ;CBIOS's drive parameter table dmstr0: push psw ;Save the drive count mov a,m ;Load flags ora a ;Does the drive need to be calibrated? jnz dmstr1 ;No, do not fiddle around push h ;Save the parameter table pointer push d ;Save the controllers table pointer dcr m ;Set to calibrated mode (0ffh) dcx h ;Back up to the track size byte shld dmntrk ;Set the number of tracks pointer inx h inx h shld dmspar ;Set the stepping constants pointer xchg ;Set the local parameter table pointer shld dmloc0 inx h ;Offset to the stepping parameters inx h inx h inx h shld dmloc1 lxi h,dmwcon ;Write the drive constans routine with: ; DE = offset to the halt status ; HL = pointer to the start of the command ; 2) This routine returns: ; A = command status ; ZF = set on 40 command status value ; dmcmd: call dmdoit ;Do the desired command dcx h ;Back up to the command status byte dcx h mov a,m ;Load the command status byte cpi 40h ;Set flags ret ;Execute a DJDMA command, no command status is returned ;------------------------------------------------------ ; 1) Enter this routine with: ; DE = offset to the halt status ; HL = pointer to the start of the command ; 2) This routine returns no status ; dmdoit: mvi a,bracha ;Branch channel command sta dmchan shld dmchan+1 ;Load command vector xra a ;Clear extended address sta dmchan+3 dad d ;Offset to the halt status mov m,a ;Clear the halt status indicator out dmkick ;Start the controller dmwait: ora m ;Wait for the operation complete status jz dmwait ret ;DJDMA commmand channel routines ;================ommon routines for the DJDMA with 8 and 5.25" drives ;===================================================== ; ;Set up the disk controller ;-------------------------- ; dminit: lxi h,dmchan ;See if the controller will halt mvi m,dmhalt inx h mvi m,0 out dmkick ;Start controller lxi d,0 ;Set up timeout counter dminwt: mov a,m ;Test for status returned ora a jnz dmiok ;Controller has responded dcx d ;Bump timeout counter mov a,d ora e jnz dminwt stc ;Set error flag ret dmiok: call dmparm ;Set the drive parameters lxi h,dmsetu ;Set more parameters lxi d,6 call dmdoit ret ;Return no error (C reset) ;Driv selec two ;----------------- ; 1) 8 drive ar drive 0-3 5.25 drive ar drive 4-7. ; dmsel2: sta dmdriv ;Save the drive name sta dmgsta+1 ;(for sense status command) call dmsptr ;Get status pointer mov a,m sta dmpsta ;Save current status ret ;Seek to track 0 ;--------------- ; dmhome: call dmdpar ;Get the drivets out lxi d,17 ;Halt status offset call dmdoit pop d ;Retrieve the table pointers pop h dmstr1: lxi b,10 ;Bump parameter table pointer dad b xchg lxi b,16 ;Bump controller tables pointer dad b xchg pop psw ;Retrieve drive count dcr a ;Bump count jnz dmstr0 ;Set up next drive ret ;Return the selected drive's status ;---------------------------------- ; 1) The status is returned in the (a) register in the following form: ; ; bit=1 if 7 6 5 4 3 2 1 0 ; -------- ^ ^ ^ ^ ^ ^ ^ ^ ; Reserved ---------------+ | | | | | | | ; on track 0 Track zero ----------------+ | | | | | | ; dbl dens Double density ---------------+ | | | | | ; wrap trk Track wrap flag -----------------+ | | | | ; 2-sided Double sided media -----------------+ | | | ; hard sect Hard sectored media -------------------+ | | ; Sector size MSB --------------------------+ | ; Sector size LSB -----------------------------+ ; 00 = =============== ; ;Set the logical drive assignments and the retry count ;----------------------------------------------------- ; dmsetu: db dmsetl ;Set the logical drive assignments db 0 ;Drives 0-3 are 8", 4-7 are 5.25" db 0 ;Old status db dmserr ;Set the error retry count to 0 db 1 ;One retry (the CBIOS does ten) db dmhalt db 0 ;Get a drive's status ;--------------------- ; dmgsta: db dmstac ;Controller/drive status command db 0 ;Drive to be sensed dmsta1: db 0 ;Status byte 1 dmsta2: db 0 ;Status byte 2 dmsta3: db 0 ;Status byte 3 db 0 ;Return status db dmhalt db 0 ;Set the dma address and then do a read or a write ;------------------------------------------------- ; dmrdwr: db dmsdma ;Set DMA address command dmcdma: dw 0 ;DMA address db 0 ;X-addr dmrwcm: db 0 ;Read/write command filled in dmtrck: db 0 ;Track dmsctr: db 0 ;Sector dmdriv: db 0 ;Drive db 0 ;Status db dmhalt ;Controller halt command db 0 ;Status  parameter address inx h mvi m,0 ;Decalibrate the drive call dmparm ret ;Set track ;--------- ; dmseek: mov a,c ;Set up DJDMA track sta dmtrck ret ;Set sector ;---------- ; dmsec: mov a,c ;Set the sector number + side bit ora b sta dmsctr ret ;Set the DMA pointer ;------------------- ; dmdma: mov h,b ;Set the DMA address mov l,c shld dmcdma ret ;Read/write a sector. ;-------------------- ; 1) Notice that the carry is returned set if there were any ; errors otherwise it is returned cleared. Also notice that ; the accm is equal to the djdma returned status (e.g. 40=no_error) ; dmread: mvi a,dmrsec ;Read sector command jmp dmsrw dmwrit: mvi a,dmwsec ;Write sector command dmsrw: sta dmrwcm ;Set the disk command byte lxi h,dmrdwr ;Read/write command channel address lxi d,10 call dmcmd ;Do the read/write stc ;if (error eq true) rnz ; return (carry_set=ERROR) cmc ;else ret ; return (carry_cleared=NO_ERROR) ;128, 01 = 256, 10 = 512, 11 = 1024 bytes. ; ; 2) 5" drives are always reported as being single sided (because the ; hardware double sided line is not implemented). ; dmstat: lxi h,dmgsta ;Get controller status command lxi d,7 call dmcmd stc ;Set the error flag just in case rnz ;Return on error ;76543210 (STATUS REGISTER BITS) lda dmsta1 ;?????H?? Double density, hard Sectored ani 00010010b ;---D--H- mov l,a ;---D--H- lda dmsta3 ;??0??D?? Track 0, Double sided bits ani 00100100b ;--0--S-- ora l ;--0D-SH- rlc ;-0D-SH-- lxi h,dmsta2 ;-0D-SH-- ora m ;-0D-SHXX Sector size code ret ;Return no error (C reset) ;Return a pointer to the current drives status byte ;-------------------------------------------------- ; dmsptr: lxi d,dmstbl ;Status byte table lhld dmdriv ;Current drive into L mvi h,0 dad d ret ;Execute a DJDMA command, return command status results ;------------------------------------------------------ ; 1) Enter thi*;Write a drive's constants into the controller's memory ;------------------------------------------------------ ; dmwcon: db writem ;Write track size dmntrk: dw 0 ;Number of tracks + desync db 0 ;X-address dw 2 ;Two bytes dmloc0: dw 0 ;Local controller address db writem ;Write stepping rate data dmspar: dw 0 ;Pointer to the stepping parameters db 0 dw 8 dmloc1: dw 0 db dmhalt ;Controller halt db 0 ;Status ;Driver variables ;---------------- ; dmpsta: db 0 ;Physical status for the current drive dmstbl: db 0,0,0,0,0,0,0,0 ;Physical status bytes for each drive endif ;End of djdma routines page if maxfd ne 0 ;Include Discus 2D ? ;*********************************************************** ; Begin the DJ2DB Driver (DDRV2) ;******************************* ; ;DJ2DB equates ;------------- ; 1) The following equates relate the Morrow Designs 2D/B ; controller. If the controller is non standard (0F800H) ; only the FDORIG equate need be changed. ;  boot loader ;------------------------------------ ; fdwarm: mov c,a call fdsel ;Select drive A mvi c,0 ;Select side 0 call fdside wrmfail:call fdhome ;Track 0, single density jc wrmfail ;Loop if error ;The next block of code re-initializes ; the warm boot loader for track 0 mvi a,5-2 ;Initialize the sector to read - 2 sta newsec lxi h,ccp-100h ;First revolution DMA - 100h shld newdma ;Load all of track 0 t0boot: mvi a,5-2 ;First sector - 2 newsec equ $-1 inr a ;Update sector # inr a cpi 27 ;Size of track in sectors + 1 jc nowrap ;Skip if not at end of track jnz t1boot ;Done with this track sui 27-6 ;Back up to sector 6 lxi h,ccp-80h ;Memory address of sector - 100h shld newdma nowrap: sta newsec ;Save the updated sector # mov c,a call fdsec ;Set up the sector lxi h,ccp-100h ;Memory address of sector - 100h newdma equ $-2 lxi d,100h ;Update DMA address dad d nowrp: shld newdma ;Save the updated DMA address mov b,h mov core sector requested pop d ;Restore address of xlt table sideone:xchg ;hl <- &(translation table) dad b ;bc = offset into table mov l,m ;hl <- physical sector mvi h,0 ret sidetwo:call fdgsid ;Check out number of sides jz sidea ;Single sided pop psw ;Retrieve adjusted sector pop b cma ;Make sector request positive inr a mov c,a ;Make new sector the requested sector pop d call sideone mvi a,80h ;Side two bit ora h ; and sector mov h,a ret ;DJ2D/B First Time Drive Select Routine ;-------------------------------------- ; fdldrv: sta fdlog ;Save logical drive mov c,a ;Save drive # mvi a,0 ;Have the floppies been accessed yet ? flopflg equ $-1 ana a jnz flopok mvi b,17 ;Floppies havn't been accessed lxi h,fdboot ;Check if 2D controller is installed mvi a,(jmp) clopp: cmp m ;Must have 17 jumps jnz zret inx h inx h inx h dcr b jnz clopp lxi d,fdinit ;Initialization sequence lxi h,fdorig+7e2h ;Load address lxi b,30 ;Byte ; --NOTE-- 'fdorig' equate moved to top of source module ;fdorig equ 0xxxxh ;Origin of Disk Jockey PROM fdboot equ fdorig+00h ;Disk Jockey 2D initialization fdcin equ fdorig+03h ;Disk Jockey 2D character input routine fdcout equ fdorig+06h ;Disk Jockey 2D character output routine fdhome equ fdorig+09h ;Disk Jockey 2D track zero seek fdseek equ fdorig+0ch ;Disk Jockey 2D track seek routine fdsec equ fdorig+0fh ;Disk Jockey 2D set sector routine fddma equ fdorig+12h ;Disk Jockey 2D set DMA address fdread equ fdorig+15h ;Disk Jockey 2D read routine fdwrite equ fdorig+18h ;Disk Jockey 2D write routine fdsel equ fdorig+1bh ;Disk Jockey 2D select drive routine fdtstat equ fdorig+21h ;Disk Jockey 2D terminal status routine fdstat equ fdorig+27h ;Disk Jockey 2D status routine fderr equ fdorig+2ah ;Disk Jockey 2D error, flash led fdden equ fdorig+2dh ;Disk Jockey 2D set density routine fdside equ fdorig+30h ;Disk Jockey 2D set side routine fdram equ fdorig+400h ;Disk Jockey 2D RAM address dblsid eq,l call fddma ;Set up the new DMA address lxi b,retries*100h+0;Maximum # of errors, track # wrmfred:push b call fdseek ;Set up the proper track call fdread ;Read the sector pop b jnc t0boot ;Continue if no error dcr b jnz wrmfred ;Keep trying if error jmp fderr ;Too many errors, flash the light ;Load track 1, sector 1, sector 3 (partial), sector 2 (1024 byte sectors) t1boot: mvi c,1 ;Track 1 call fdseek lxi b,ccp+0b00h ;Address for sector 1 lxi d,10*100h+1 ;Retry count + sector 1 call wrmread lxi b,ccp+0f00h ;Address for sector 2 lxi d,10*100h+3 ;Retry count + sector 3 call wrmread lxi b,0300h ;Size of partial sector lxi d,ccp+1300h ;Address for sector 3 lxi h,ccp+0f00h ;Address of sector 3 wrmcpy: mov a,m ;Get a byte and stax d ; save it inx d ;Bump pointers inx h dcx b ;Bump counter mov a,b ;Check if done ora c jnz wrmcpy ; if not, loop lxi b,ccp+0f00h ;Address for sector 2 lxi d,10*100h+2 ;Retry count + sector 2 call  count call movbyt ;Load controller RAM mvi a,0ffh ;Start 1791 sta dreg mvi a,clrcmd ;1791 reset sta cmdreg mvi a,1 ;Set 2D initialized flag sta flopflg flopok: call flush ;Flush buffer since we are using it lda fdlog ;Select new drive mov c,a call fdsel call fdlhome ;Recalibrate the drive lxi h,1 ;Select sector 1 of track 2 shld truesec inx h shld cpmtrk xra a ;Make sure we are doing a read sta rdwr call fill ;Fill in buffer with sector jc zret ;Test for error return call fdstat ;Get status on current drive sta fdldst ;Save drive status ani 0ch ;Mask in sector size bits push psw ;Used to select a DPB rar lxi h,xlts ;Table of XLT addresses mov e,a mvi d,0 dad d push h ;Save pointer to proper XLT call fdget ;Get pointer to proper DPH pop d lxi b,2 ;Copy XLT pointer into DPH call movbyt lxi d,8 ;Offset to DPB pointer in DPH dad d ;HL <- &DPH.DPB push h call fdgsid ;Get pointer to side flag table entry lda fdldst u 20h ;Side bit from controller io equ fdorig+3f8h ;Start of I/O registers dreg equ io+1 cmdreg equ io+4 clrcmd equ 0d0h ;***************************************************************; ; ; ; Device Specification Table for the Disk Jockey 2D/B ; ; ; ;***************************************************************; fddst: db maxfd ;Number of logical drives dw fdwarm ;Warm boot dw fdtran ;Sector translation dw fdldrv ;Select drive 1 dw fdsel2 ;Select drive 2 dw fdlhome ;Home drive dw fdseek ;Seek to specified track dw fdssec ;Set sector dw fddma ;Set DMA address dw fdread ;Read a sector dw fdwrite ;Write a sector dw nobad ;No bad sector map if fdorder ne 1 ;no warm boot possible ;DJ2D/B warm boot dummy ;--------------------------- ; 1) If DJ2D/B is not drive A (i.e. fdorder not equal 1) then ; it is not possible to warm boot from DJ2D/B. So routine not needed. ; fdwarm: ret ;return if called else ; DJ2D/B Floppy disk warmwrmread xra a ;Clear error indicator ret wrmread:push d call fddma ;Set DMA address pop b call fdsec ;Set sector wrmfrd: push b ;Save error count call fdread ;Read a sector jc wrmerr ;Do retry stuff on error call fdstat ;Sector size must be 1024 bytes ani 0ch ;Mask length bits sui 0ch ;Carry (error) will be set if < 0c0h wrmerr: pop b ;Fetch retry count rnc ;Return if no error dcr b ;Bump error count jnz wrmfrd jmp fderr ;Error, flash the light endif ;end of DJ2D/B warm boot routine ;DJ2D/B Sector Translate Routine ;------------------------------- ; fdtran: inx b push d ;Save table address push b ;Save sector # call fdget ;Get DPH for current drive lxi d,10 ;Load DPH pointer dad d mov a,m inx h mov h,m mov l,a mov a,m ;Get # of CP/M sectors/track ora a ;Clear carry rar ;Divide by two sub c ;Subtract sector number push psw ;Save adjusted sector jm sidetwo sidea: pop psw ;Discard adjusted sector pop b ;Rest+ ;Get drive status ani dblsid ;Check double sided bit mov m,a ;Save sides flag lxi d,dpb128s ;Base for single sided DPB's jz sideok lxi d,dpb128d ;Base of double sided DPB's sideok: xchg pop d ;(HL) -> DPB base, (DE) -> &DPH.DPB pop psw ;Offset to correct DPB ral ral ;Make 0, 10, 20, 30 mov c,a mvi b,0 ;Make offset dad b ;(hl) is now a DPB pointer xchg ;Put proper DPB address in DPH.DPB mov m,e inx h mov m,d lxi h,15 ;Offset to DPB.SIZ dad d mov c,m ;Fetch sector size code fdget: lda fdlog ;Return proper DPH lxi d,dphfd0 jmp retdph ;DJ2D/B Non-Initial Drive Select Routine ;--------------------------------------- ; fdsel2: sta fdlog mov c,a jmp fdsel ;DJ2D/B Home Drive Routine ;------------------------- ; fdlhome:mvi c,0 ;Select side 0 call fdside jmp fdhome ;Do actual home ;DJ2D/B Set Sector Routine ;------------------------- ; fdssec: push b ;Save sector number mov a,b ;Check side select bit rlc ;Move high bit to bit the ; tables are located on track 0 sectors 6 and 8. They are ; loaded into memory in the Cbios ram by the cold boot routine. ; xlt128: db 0 db 1,7,13,19,25 db 5,11,17,23 db 3,9,15,21 db 2,8,14,20,26 db 6,12,18,24 db 4,10,16,22 ; xlt256: db 0 db 1,2,19,20,37,38 db 3,4,21,22,39,40 db 5,6,23,24,41,42 db 7,8,25,26,43,44 db 9,10,27,28,45,46 db 11,12,29,30,47,48 db 13,14,31,32,49,50 db 15,16,33,34,51,52 db 17,18,35,36 ; xlt512: db 0 db 1,2,3,4,17,18,19,20 db 33,34,35,36,49,50,51,52 db 5,6,7,8,21,22,23,24 db 37,38,39,40,53,54,55,56 db 9,10,11,12,25,26,27,28 db 41,42,43,44,57,58,59,60 db 13,14,15,16,29,30,31,32 db 45,46,47,48 ; xlt124: db 0 db 1,2,3,4,5,6,7,8 db 25,26,27,28,29,30,31,32 db 49,50,51,52,53,54,55,56 db 9,10,11,12,13,14,15,16 db 33,34,35,36,37,38,39,40 db 57,58,59,60,61,62,63,64 db 17,18,19,20,21,22,23,24 db 41,42,43,44,45,46,47,48 ;Disk Parameter Buffers ;---------------------- ; 1) Each of the following tables describes db 0 ;EXM dw 561 ;DSM dw 255 ;DRM db 0f0h ;AL0 db 0 ;AL1 dw 64 ;CKS dw 2 ;OFF db 3 ;512 byte sectors ; ;1024 byte sectors, double density, and double sided. ;---------------------------------------------------- ; dp1024d:dw 128 ;CP/M sectors/track db 4 ;BSH db 15 ;BLM db 0 ;EXM dw 599 ;DSM dw 255 ;DRM db 0f0h ;AL0 db 0 ;AL1 dw 64 ;CKS dw 2 ;OFF db 4 ;1024 byte sectors endif page if maxmw ne 0 ;HDDMA controller present ? ;********************************************************** ; Begin the HDDMA Driver (DDRV3) ;******************************* ; ;HDDMA equates ;============= ; ;Specifications for a Seagate Technology 506 if st506 cyl equ 153 ;Number of cylinders heads equ 4 ;Number of heads per cylinder precomp equ 64 ;Cylinder to start write precomensation lowcurr equ 128 ;Cylinder to start low current stepdly equ 30 ;Step delay (0-12.7 milliseconds) steprcl equ 30 ;Recalibrate step delay headdly equ 0 ;Settle delay  zero ani 1 mov c,a call fdside ;Call select side 0 = side A, 1 = Side B pop b jmp fdsec fdgsid: lxi h,fdlsid ;Side flag table lda fdlog ;Drive number push d mov e,a ;Make offset mvi d,0 dad d ;Offset to proper entry pop d mov a,m ;Set up flags ora a ret fdinit: dw 0 ;Initialization bytes loaded onto 2D/B dw 1800h ;Head loaded timeout dw 0 ;DMA address db 0 ;Double sided flag db 0 ;Read header flag db 07eh ;Drive select constant db 0 ;Drive number db 8 ;Current disk db 0 ;Head loaded flag db 9 ;Drive 0 parameters db 0ffh ;Drive 0 track address db 9 ;Drive 1 parameters db 0ffh ;Drive 1 track address db 9 ;Drive 2 parameters db 0ffh ;Drive 2 track address db 9 ;Drive 3 parameters db 0ffh ;Drive 3 track address db 9 ;Current parameters db 0 ;Side desired db 1 ;Sector desired db 0 ;Track desired db 0 ;Header image, track db 0 ;Sector db 0 ;Side db 0 ;Sector dw 0 ;CRC fdlog: db 0 fdldst: db 0 ; a diskette with the ; specified characteristics. ; ;128 byte sectors, single density, and single sided. ;--------------------------------------------------- ; dpb128s:dw 26 ;CP/M sectors/track db 3 ;BSH db 7 ;BLM db 0 ;EXM dw 242 ;DSM dw 63 ;DRM db 0c0h ;AL0 db 0 ;AL1 dw 16 ;CKS dw 2 ;OFF db 1 ;128 byte sectors ; ;256 byte sectors, double density, and single sided. ;--------------------------------------------------- ; dpb256s:dw 52 ;CP/M sectors/track db 4 ;BSH db 15 ;BLM db 1 ;EXM dw 242 ;DSM dw 127 ;DRM db 0c0h ;AL0 db 0 ;AL1 dw 32 ;CKS dw 2 ;OFF db 2 ;256 byte sectors ; ;512 byte sectors, double density, and single sided. ;--------------------------------------------------- ; dpb512s:dw 60 ;CP/M sectors/track db 4 ;BSH db 15 ;BLM db 0 ;EXM dw 280 ;DSM dw 127 ;DRM db 0c0h ;AL0 db 0 ;AL1 dw 32 ;CKS dw 2 ;OFF db 3 ;512 byte sectors ; ;1024 byte sectors, double density, and single sided. ;------(0-25.5 milliseconds) endif ;Specifications for a Seagate ST412 if st412 cyl equ 306 ;Number of cylinders heads equ 4 ;Number of heads per cylinder precomp equ 128 ;Cylinder to start write precomensation lowcurr equ 128 ;Cylinder to start low current stepdly equ 0 ;Step delay (0-12.7 milliseconds) steprcl equ 30 ;Recalibrate step delay headdly equ 0 endif ;Specifications for an CMI 5619 if cm5619 cyl equ 306 ;Number of cylinders heads equ 6 ;Number of heads per cylinder precomp equ 128 ;Cylinder to start write precomensation lowcurr equ 128 ;Cylinder to start low current stepdly equ 2 ;Step delay (0-12.7 milliseconds) steprcl equ 30 ;Recalibrate step delay headdly equ 0 endif sectsiz equ 7 ;Sector size code (must be 7 for this Cbios) ; 0 = 128 byte sectors ; 1 = 256 byte sectors ; 3 = 512 byte sectors ; 7 = 1024 byte sectors (default) ; f = 2048 byte sectors ;Define controller commands dmaread equ 0 ;Read sector dmawrit equ Floppy drive status byte fdlsid: rept maxfd db 0ffh ;Double sided flag 0 = single, 1 = double endm endif page if (maxfd ne 0) or (maxdm ne 0) ;DJDMA or DJ2DB present? ;*********************************************************************** ; Begin Common Floppy Disk Translation tables and DPB's ;****************************************************** ; ;Sector translation pointer table ;-------------------------------- ; 1) Xlts is a table of address that point to each of the xlt ; tables for each sector size. ; xlts: dw xlt128 ;Xlt for 128 byte sectors dw xlt256 ;Xlt for 256 byte sectors dw xlt512 ;Xlt for 512 byte sectors dw xlt124 ;Xlt for 1024 byte sectors ;Sector translation tables ;------------------------- ; ; 1) Xlt tables (sector skew tables) for CP/M 2.0. These tables ; define the sector translation that occurs when mapping CP/M ; sectors to physical sectors on the disk. There is one skew ; table for each of the possible sector sizes. Currently---------------------------------------------- ; dp1024s:dw 64 ;CP/M sectors/track db 4 ;BSH db 15 ;BLM db 0 ;EXM dw 299 ;DSM dw 127 ;DRM db 0c0h ;AL0 db 0 ;AL1 dw 32 ;CKS dw 2 ;OFF db 4 ;1024 byte sectors ; ;128 byte sectors, single density, and double sided. ;----------------------------------------------------; ; dpb128d:dw 52 ;CP/M sectors/track db 4 ;BSH db 15 ;BLM db 1 ;EXM dw 242 ;DSM dw 127 ;DRM db 0c0h ;AL0 db 0 ;AL1 dw 32 ;CKS dw 2 ;OFF db 1 ;128 byte sectors ; ;256 byte sectors, double density, and double sided. ;--------------------------------------------------- ; dpb256d:dw 104 ;CP/M sectors/track db 4 ;BSH db 15 ;BLM db 0 ;EXM dw 486 ;DSM dw 255 ;DRM db 0f0h ;AL0 db 0 ;AL1 dw 64 ;CKS dw 2 ;OFF db 2 ;256 byte sectors ; ;512 byte sectors, double density, and double sided. ;--------------------------------------------------- ; dpb512d:dw 120 ;CP/M sectors/track db 4 ;BSH db 15 ;BLM ,1 ;Write sector dmarhed equ 2 ;Find a sector dmawhed equ 3 ;Write headers (format a track) dmalcon equ 4 ;Load disk parameters dmassta equ 5 ;Sense disk drive status dmanoop equ 6 ;Null controller operation reset equ 54h ;Reset controller attn equ 55h ;Send a controller attention chan equ 50h ;Default channel address stepout equ 10h ;Step direction out stepin equ 0 ;Step direction in band1 equ 40h ;No precomp, high current band2 equ 0c0h ;Precomp, high current band3 equ 80h ;precomp, low current track0 equ 1 ;Track zero status wflt equ 2 ;Write fault from drive dready equ 4 ;Drive ready sekcmp equ 8 ;Seek complete ;Drive Specification Table for the HD DMA hard disk controller ;------------------------------------------------------------- ; mwdst: db maxmw*mwlog ;Number of logical drives dw mwwarm ;Warm boot dw mwtran ;Sector translation dw mwldrv ;Select logical drive 1 (First time select) dw mwdrv ;Select logical drive 2 (General select) dw mwhome ;Check if drive ready jnz zret call mwhome ;Home drive lxi d,dphmw0 ;Start of hard disk DPH's lda mwcurl mov l,a mvi h,0 dad h dad h dad h dad h dad d ;(hl) = pointer to DPH mvi c,4 ;Return sector size of 1024 ret ;HDDMA Non-Initial Drive Select Routine ;-------------------------------------- ; mwdrv: sta mwcurl call mwdlog mov a,c sta mwdrive ;Save new selected drive mwsel: mvi a,dmanoop jmp mwprep ;Execute disk command mwdlog: mvi c,0 mwllx: sui mwlog rc inr c jmp mwllx mwstat: mvi a,dmassta ;Sense status operation code jmp mwprep ;Execute disk command ;HDDMA Home Drive Routine ;------------------------ ; mwhome: call mwreset ;Reset controller, do a load constants lxi h,dmarg1 ;Load arguments mvi m,steprcl ;Load step delay (slow rate) inx h mvi m,headdly ;Head settle delay call mwissue ;Do load constants again call mwptr ;Get pointer to current cylinder number mvi m,0ffh ;Fake at cylinder 65535 for max head travel inx sta 42h lhld dmarg0 ;Save the track number push h lxi h,dmasel1 ;Load arguments lda mwdrive ;Get the currently selected drive ori 03ch ;Raise *step and *dir mov m,a ;Save in drive select register lxi d,5 ;Offset to dmarg1 dad d mvi m,stepdly ;Load step delay inx h mvi m,headdly ;Head settle delay inx h mvi m,sectsiz ;Sector size code inx h mvi m,dmalcon ;Load constants command call mwissue ;Do load constants pop h ;Restore the track number shld dmarg0 push psw ;Save status lhld tempb ;Restore memory used for the channel pointer shld chan lda tempb+2 sta chan+2 pop psw ret ;HDDMA Read/Write Sector Routines ;-------------------------------- ; mwread: mvi a,dmaread ;Load disk read commnd jmp mwprep mwwrite:mvi a,dmawrit ;Load disk write command mwprep: sta dmaop ;Save command channel op code mvi c,band1 lhld dmarg0 lxi d,precomp call mwhlcde jc mwpreps mvi c,band2 lxi d,lowcurr call mwhlcde jc mwpreps mvi c,band3Home current selected drive dw mwseek ;Seek to selected track dw mwsec ;Select sector dw mwdma ;Set DMA address dw mwread ;Read a sector dw mwwrite ;Write a sector if heads gt 2 ;Test if drive is big enough for a bad spot map dw mwbad ;Return bad sector map info else dw nobad endif if mworder ne 1 ;no warm boot possible ;HDDMA warm boot dummy ;--------------------------- ; 1) If HDDMA is not drive A (i.e. mworder not equal 1) then ; it is not possible to warm boot from HDDMA. So routine not needed. ; mwwarm: ret ;return if called else ;HDDMA Warm Boot Routine ;----------------------- ; mwwarm: xra a call mwdrv ;Select drive A call mwhome ;Home and reset the drive lxi b,0 ;Make sure we are on track 0 call mwseek xra a sta mwhead ;Select head zero sta mwsectr ;Select sector 1 lxi h,buffer ;Load sector 1 into buffer shld dmadma call mwwread ;Read CCP into buffer rc ;Return if error lxi d,buffer+200h lxi h,ccp lxi b,200h ; h mvi m,0ffh lxi b,0 ;Seek to cylinder 0 call mwseek ;Recal slowly jmp mwreset ;Back to fast stepping mode ;HDDMA Return Bad Map Position Routine ;------------------------------------- ; mwbad: lxi h,mwbtab ;Return pointer to bad sector location ret mwbtab: dw 0 ;Track 0 dw 19 ;Head 2, sector 0 = (2 * SPT + 0) + 1 ;HDDMA Set Track Routine ;----------------------- ; mwseek: call mwptr ;Get track pointer mov e,m ;Get old track number inx h mov d,m dcx h mov m,c ;Store new track number inx h mov m,b mov l,c ;Build cylinder word mov h,b shld dmarg0 ;Set command channel cylinder number mov a,d inr a lxi h,0ffffh jnz mwskip0 mvi c,stepout jmp mwskip mwskip0:mov h,b ;(hl) = new track, (de) = old track mov l,c call mwhlmde mvi c,stepout mov a,h ani 80h ;Check hit bit for negitive direction jnz mwsout ;Step in mvi c,0 jmp mwskip mwsout: call mwneghl mwskip: shld dmastep lda mwdrive ora c sta dmasel0 mvi a,dmanoop ; ;cylinder > low_current mwpreps:lda mwhead ;Load head address sta dmarg2 cma ;Negative logic for the controller ani 7 ;3 bits of head select rlc ;Shove over to bits 2 - 4 rlc ora c ;Add on low current and precomp bits mov c,a lda mwdrive ;Load drive address ora c ;Slap in drive bits sta dmasel1 ;Save in command channel head select lda mwsectr ;Load sector address sta dmarg3 if 0 ;Set to 1 for MW error reporter mwissue:call mwdoit ;Do desired operation rnc ;Do nothing if no error push psw ;Save error info call hexout ;Print status call dspout ; and a space lxi h,dmachan mvi c,16 ;16 bytes of status mwerr: push b push h mov a,m call hexout ;Print a byte of the status line call spout pop h pop b inx h ;Bump command channel pointer dcr c jnz mwerr mvi c,0ah ;Terminate with a CRLF call pout mvi c,0dh call pout pop psw ;Restore error status ret dspout: call spout ;Print two spaces spout: mvi c,' ' ;Print a spacMove 200h bytes call movbyt lxi h,ccp-200h ;Initial DMA address push h xra a push psw ;Save first sector -1 mwwlod: pop psw ;Restore sector pop h ;Restore DMA address inr a sta mwsectr cpi 6 ;Past BDOS ? rz ;Yes, all done inr h ;Update DMA address by 1024 bytes inr h inr h inr h shld dmadma push h push psw call mwwread ;Read in a sector jnc mwwlod ret ;Return with error mwwread:mvi c,retries ;Retry counter mwwerr: push b ;Save the retry count call mwread ;Read the sector pop b rnc dcr c ;Update the error count jnz mwwerr ;Keep trying if not too many errors stc ;Set error flag ret endif ;of HDDMA warm boot routine ;HDDMA First Time Drive Select Routine ;------------------------------------- ; mwldrv: sta mwcurl ;Save current logical drive call mwreset ;Reset controller card jc zret ;Controller failure lda mwcurl call mwdrv ;Select drive jc zret ;Select error call mwstat ;Get drive status ani dready ;No-operation command for the channel call mwprep ;Step to proper track lxi h,0 ;Clear step counter shld dmastep ret ;HDDMA Set DMA Address Routine ;----------------------------- ; mwdma: mov h,b ;Set DMA address mov l,c shld dmadma ret ;HDDMA Set Sector Routine ;------------------------ ; mwsec: mov a,c ;Load sector number dcr a ;Range is actaully 0-16 call mwdspt ;Figure out head number -> (c) adi mwspt ;Make sector number sta mwsectr mov a,c sta mwhead ;Save head number ret mwdspt: mvi c,0 ;Clear head counter mwdsptx:sui mwspt ;Subtract a tracks worth of sectors rc ;Return if all done inr c ;Bump to next head jmp mwdsptx mwreset:lhld chan ;Save the command channel for a while shld tempb lda chan+2 sta tempb+2 out reset ;Send reset pulse to controller lxi h,dmachan ;Address of command channel shld chan ;Default channel address xra a sta chan+2 ;Clear extended address byte shld 40h ;Set up a pointer to the command channel-e jmp pout hexout: push psw ;Poor persons number printer rrc rrc rrc rrc call nibout pop psw nibout: ani 0fh adi '0' cpi '9'+1 jc nibok adi 27h nibok: mov c,a jmp pout mwdoit equ $ else mwissue equ $ ;Do a disk command, handle timeouts + errors endif lxi h,dmastat ;Clear status byte mvi m,0 out attn ;Start the controller lxi d,0 ;Time out counter (65536 retries) mwiloop:mov a,m ;Get status ora a ;Set up CPU flags rm ;Return no error (carry reset) stc rnz ;Return error status xthl ;Waste some time xthl xthl xthl dcx d ;Bump timeout counter mov a,d ora e jnz mwiloop ;Loop if still busy stc ;Set error flag ret mwptr: lda mwdrive ;Get currently select drives track address rlc mov e,a mvi d,0 lxi h,mwtab dad d ;Offset into track table ret mwtran: mov h,b mov l,c inx h ret mwneghl:mov a,h cma mov h,a mov a,l cma mov l,a inx h ret mwhlmde:xchg call mwneghl xchg dad d ct equ 1 ;Read sector wsect equ 5 ;Write sector isbuff equ 8 ;Initialize header buffer pointer ; Function port (52) pstep equ 04h ;Step bit nstep equ 0ffh-pstep ;Step bit mask null equ 0fch ;Null command ; Misc constants hdrlen equ 4 ;Sector header length seclen equ 512 ;Sector data length ; ;Device Specification Table for HDCA controller driver ;----------------------------------------------------- ; hddst: db maxhd*hdlog ;Number of logical drives dw hdwarm ;Warm boot dw hdtran ;Sector translation dw hdldrv ;First time select dw hddrv ;General select dw hdhome ;Home current selected drive dw hdseek ;Seek to selected track dw hdsec ;Select sector dw hddma ;Set DMA address dw hdread ;Read a sector dw hdwrite ;Write a sector dw nobad ;No bad sector map if hdorder ne 1 ;no warm boot possible ;HDCA warm boot dummy ;--------------------------- ; 1) If HDCA is not drive A (i.e. hdorder not equal 1) then ; it is not posana c ; previous state cmp b jnz hdindx2 if m10 ;Memorex M10's have 40 ms head settle dad h ;HL*2 endif if m26 ;Shugart M26's have 30 ms head settle xra a ;HL/2 + HL (same as HL*1.5) mov a,h rar mov d,a mov a,l rar mov e,a dad d endif shld settle ;Save the count for timeout delay endif call hdhome hdl2: lda hdcur ;Load logical drive lxi d,dphhd0 ;Start of hard disk DPH's mvi c,3 ;Hard disk sector size equals 512 bytes jmp retdph dcrc: dcr c ;Conditional decrement C routine ret divlog: mvi c,0 divlx: sui hdlog rc inr c jmp divlx ;HDCA Non-Initial Drive Select Routine ;------------------------------------- ; hddrv: sta hdcur call divlog ;Get the physical drive # hdd2: mov a,c sta hddisk ;Select the drive ori null out hdfunc mvi a,hdfren+hdrun+hdclok+hdwprt ;Write protect out hdcntl ret ;HDCA Home Disk Routine ;---------------------- ; hdhome: call hdptr ;Get track pointer mvi m,0 ;Set trac ret mwhlcde:mov a,h cmp d rnz mov a,l cmp e ret mwtab equ $ ;Collection of track addresses rept maxmw db 0ffh ;Initialize to (way out on the end of the disk) db 0ffh endm db 0ffh mwcurl: db 0 ;Current logical drive mwdrive:db 0ffh ;Currently selected drive mwhead: db 0 ;Currently selected head mwsectr:db 0 ;Currently selected sector dmachan equ $ ;Command channel area dmasel0:db 0 ;Drive select dmastep:dw 0 ;Relative step counter dmasel1:db 0 ;Head select dmadma: dw 0 ;DMA address db 0 ;Extended address dmarg0: db 0 ;First argument dmarg1: db 0 ;Second argument dmarg2: db 0 ;Third argument dmarg3: db 0 ;Fourth argument dmaop: db 0 ;Operation code dmastat:db 0 ;Controller status byte dmalnk: dw dmachan ;Link address to next command channel db 0 ;extended address tempb: ds 4 ;Command Channel Pointer Buffer endif page if maxhd ne 0 ;Want HDC3 or 4 controller included ? ;************************************************************sible to warm boot from HDCA. So routine not needed. ; hdwarm: ret ;return if called else ;HDCA Warm Boot Routine ;---------------------- ; hdwarm: call divlog ;Get physical drive number in (c) xra a lxi h,ccp-200h ;Initial DMA address push h sta head ;Select head zero inr a ; 1 -> (a) push psw ;Save first sector - 1 call hdd2 ;Select drive mvi c,0 call hdhome ;Home the drive hdwrld: pop psw ;Restore sector pop h ;Restore DMA address inr a sta hdsect cpi 13 ;Past BDOS ? rz ;Yes, all done inr h ;Update DMA address inr h shld hdadd push h push psw hdwrrd: lxi b,retries*100h+0 ;Retry counter hdwr: push b ;Save the retry count call hdread ;Read the sector pop b jnc hdwrld ;Test for error dcr b ;Update the error count jnz hdwr ;Keep trying if not too many errors stc ;Error flag ret endif ;HDCA warm boot routine ;HDCA Sector Translate Routine ;----------------------------- ; hdtran: mov h,b ;Seck to zero in hdstat ;Test status ani tkzero ;At track zero ? rz ;Yes if not fujitsu hdstepo:in hdstat ;Test status ani tkzero ;At track zero ? jz hddelay mvi a,1 stc call accok ;Take one step out jmp hdstepo else xra a jmp accok endif if not fujitsu hddelay:lhld settle ;Get hddelay deloop: dcx h ;Wait 20ms mov a,h ora l inx h dcx h jnz deloop ret endif ;HDCA Set Track Routine ;---------------------- ; hdseek: call hdptr ;Get pointer to current track mov e,m ;Get current track mov m,c ;Update the track mov a,e ;Need to seek at all ? sub c rz cmc ;Get carry into direction jc hdtrk2 cma inr a if fujitsu hdtrk2: jmp accok else hdtrk2: call accok jmp hddelay endif accok: mov b,a ;Prep for build call build sloop: ani nstep ;Get step pulse low out hdfunc ;Output low step line ori pstep ;Set step line high out hdfunc ;Output high step line dcr b ;Update repeat count jnz sloo**************** ; Begin the HDCA Driver (DDRV4) ;****************************** ; ;HDCA equates ;------------ ; hdorg equ 50h ;Hard Disk Controller origin hdstat equ hdorg ;Disk Status hdcntl equ hdorg ;Disk Control hdreslt equ hdorg+1 ;Disk Results hdcmnd equ hdorg+1 ;Disk Commands hdskomp equ hdorg+2 ;Seek complete clear port (on HDC4) hdfunc equ hdorg+2 ;Function port hddata equ hdorg+3 ;Data port ; Status port (50) tkzero equ 01h ;Track zero opdone equ 02h ;Operation done complt equ 04h ;Seek complete tmout equ 08h ;Time out wfault equ 10h ;Write fault drvrdy equ 20h ;Drive ready index equ 40h ;Delta index ; Control port (50) hdfren equ 01h ;Enable external drivers hdrun equ 02h ;Enable controllers state machine hdclok equ 04h ;Clock source control bit, high = disk hdwprt equ 08h ;Write protect a drive ; Result port (51) retry equ 02h ;Retry flag ; Command port (51) idbuff equ 0 ;Initialize data buffer pointer rsetor translation is handled via mov l,c ; physical sector header skewwing inx h ret ;HDCA First Time Drive Select Routine ;------------------------------------ ; hdldrv: sta hdcur ;Save logical disk call divlog ;Divide by logical disks per drive mov a,c sta hddisk ;Save new physical drive call hdptr ;Get track pointers mov a,m ;Get current track inr a ;Check if -1 jnz hdl2 ;Nope, allready accessed ori null ;Select drive out hdfunc mvi a,hdfren+hdclok ;Enable drivers out hdcntl mvi c,239 ;Wait 2 minutes for disk ready lxi h,0 hdtdel: dcx h mov a,h ora l cz dcrc jz zret ;Drive not ready error in hdstat ;Test if ready yet ani drvrdy jnz hdtdel if not fujitsu lxi h,0 ;Time one revolution of the drive mvi c,index in hdstat ana c mov b,a ;Save current index level in B hdinxd1:in hdstat ana c cmp b ;Loop untill index level changes jz hdinxd1 hdindx2:inx h in hdstat ;Start counting untill index returns to .p ;Keep going the required # of tracks jmp wsdone ;HDCA Set DMA Address Routine ;---------------------------- ; hddma: mov h,b ;Save the DMA address mov l,c shld hdadd ret wsdone: in hdstat ;Wait for seek complete to finish ani complt jz wsdone in hdskomp ;Clear sdone bit on an HDCA4 ret ;HDCA Set Sector Routine for M26 Disk ;------------------------------------ ; if m26 hdsec: mvi a,01fh ;For compatibility with Cbios revs. ; 2.3 and 2.4 ana c ;Mask in sector number (0-31) cz getspt ;Translate sector 0 to sector 32 sta hdsect ;Save translated sector number (1-32) mvi a,0e0h ;Get the head number ana c rlc rlc rlc sta head ;Save the head number getspt: mvi a,hdspt ret else ;HDCA Set Sector Routine for M10 and M20 Disks ;--------------------------------------------- ; hdsec: mov a,c call divspt adi hdspt ana a cz getspt sta hdsect mov a,c sta head getspt: mvi a,hdspt dcr c ret divspt: mvi c,0 divsxdb 0 ;Current physical disk number head: db 0 ;Current physical head number hdsect: db 0 ;Current physical sector number hdtrak: db 0ffh ;Track pointer for each drive db 0ffh ;All drive default to an uncalibrated db 0ffh ; state (ff) db 0ffh settle: dw 0 ;Time delay constant for head settle endif page ;******************** ; End of Disk Drivers ;******************** ; ; Cbios ram locations that don't need initialization. ;==================================================== ; if nostand ne 0 ;Unallocated writting variables unaloc: db 0 ;Unallocated write in progress flag oblock: dw 0 ;Last unallocated block number written unadrv: db 0 ;Drive that the block belongs to endif cpmsec: dw 0 ;CP/M sector # cpmdrv: db 0 ;CP/M drive # cpmtrk: dw 0 ;CP/M track # truesec:dw 0 ;Physical sector that contains CP/M sector error: db 0 ;Buffer's error status flag bufdrv: db 0 ;Drive that buffer belongs to buftrk: dw 0 ;Track that buffer belongs to bufs ;OFF db 3 ;SECSIZ endif endif ;End of HD DPH's and DPB's ; DPH's for DJ2DB ;---------------- ; if maxfd ne 0 dn set 0 rept maxfd dphgen fd,%dn,0,0 dn set dn+1 endm endif if maxmw ne 0 ;***************************************************************; ; ; ; mwsectp is the number of 128 byte sectors per cylinder. ; ; mwsectp = 72 * heads ; ; ; ; mwtrks is the total number of data cylinders. ; ; mwtrks = tracks - 1 ; ; ; ;***************************************************************; if st506 ne 0 mwsecpt equ 288 ;Sectors per track mwtrks equ 152 ;Total data tracks endif if st412 ne 0 mwsecpt set 288 mwtrks set 305 endif if cm5619 ne 0 mwsecpt set 432 mwtrks set 305 endif dphdsk set 0 ;Generate DPH's for the HDDMA hard disks rept maxmw ldsk set 0 rept mwlog dphgen mw,%dphdsk,dpbmw,%ldsk dphdsk set dphdsk+1 ldsk set ldsk+1 endm endm off set 1 ;Initial system track offset trkoff set 81: sui hdspt rc inr c jmp divsx endif ;HDCA Read Sector Routine ;------------------------ ; hdread: call hdprep rc xra a out hdcmnd cma out hddata out hddata mvi a,rsect ;Read sector command out hdcmnd call process rc xra a out hdcmnd mvi b,seclen/4 lhld hdadd in hddata in hddata rtloop: in hddata ;Move four bytes mov m,a inx h in hddata mov m,a inx h in hddata mov m,a inx h in hddata mov m,a inx h dcr b jnz rtloop ret ;HDCA Write Sector Routine ;------------------------- ; hdwrite:call hdprep ;Prepare header rc xra a out hdcmnd lhld hdadd mvi b,seclen/4 wtloop: mov a,m ;Move 4 bytes out hddata inx h mov a,m out hddata inx h mov a,m out hddata inx h mov a,m out hddata inx h dcr b jnz wtloop mvi a,wsect ;Issue write sector command out hdcmnd call process rc mvi a,wfault ana b stc rz xra a ret process:in hdstat ;Wait for command to finish mov b,a ani opdone ec: dw 0 ;Sector that buffer belongs to alttrk: dw 0 ;Alternate track altsec: dw 0 ;Alterante sector lastdrv:db 0 ;Last selected drive ;***************************************************************; ; ; ; DPB and DPH area. ; ; ; ;***************************************************************; if maxhd ne 0 dphdsk set 0 ;Generate DPH's for the HDCA hard disks rept maxhd ldsk set 0 rept hdlog dphgen hd,%dphdsk,dpbhd,%ldsk ldsk set ldsk+1 dphdsk set dphdsk+1 endm endm if m26 ne 0 dpbhd0: dw 1024 ;CP/M sectors/track db 5 ;BSH db 31 ;BLM db 1 ;EXM dw 2015 ;DSM dw 511 ;DRM db 0ffh ;AL0 db 0ffh ;AL1 dw 0 ;CKS dw 1 ;OFF db 3 ;SECSIZ dpbhd1: dw 1024 ;CP/M sectors/track db 5 ;BSH db 31 ;BLM db 1 ;EXM dw 2015 ;DSM dw 511 ;DRM db 0ffh ;AL0 db 0ffh ;AL1 dw 0 ;CKS dw 64 ;OFF db 3 ;SECSIZ dpbhd2: dw 1024 ;CP/M sectors/track db 5 ;BSH db 31 ;BLM db 1 ;EXM dw 2047 ;DSM dw 511 ;DRM92/(mwsecpt/8)+1 ;The number of tracks in a partition blocks set mwsecpt/8*mwtrks ;The number of blocks on the drive psize set trkoff*(mwsecpt/8) ;The number of blocks in a partition ldsk set 0 rept blocks/8192 ;Generate some 8 megabyte DPB's dpbgen mw,%ldsk,%mwsecpt,5,31,1,2047,1023,0ffh,0ffh,0,%off,4 off set off+trkoff blocks set blocks-psize ldsk set ldsk+1 endm blocks set blocks/4 if blocks gt 256 ;If there is any stuff left, then use it blocks set blocks-1 dpbgen mw,%ldsk,%mwsecpt,5,31,1,%blocks,1023,0ffh,0ffh,0,%off,4 endif endif ;********************************************************* ;Begin Definitions for the Console and List Device Drivers ;********************************************************* ; ;Define Printer Character Constants ;---------------------------------- acr equ 0Dh ;Carriage return alf equ 0Ah ;Line Feed clear equ 1Ah ;Clear screen on an ADM 3 xoff equ 13h ;Xoff character xon equ 11h ;Xon character if (contyp eq 2) or (lsttyp ge 2) ;Mu jz process mvi a,hdfren+hdrun+hdclok ;Write protect out hdcntl in hdstat ani tmout ;Timed out ? stc rnz in hdreslt ani retry ;Any retries ? stc rnz xra a ret hdprep: in hdstat ani drvrdy stc rnz mvi a,isbuff ;Initialize pointer out hdcmnd call build ori 0ch out hdfunc lda head out hddata ;Form head byte call hdptr ;Get pointer to current drives track mov a,m ;Form track byte out hddata ana a mvi b,80h jz zkey mvi b,0 zkey: lda hdsect ;Form sector byte out hddata mov a,b out hddata mvi a,hdfren+hdrun+hdclok ;Write protect out hdcntl mvi a,hdfren+hdrun+hdclok+hdwprt ;Write protect out hdcntl xra a ret hdptr: lhld hddisk ;Get a pointer to the current drives mvi h,0 ; track position xchg lxi h,hdtrak dad d ret build: lda head ;Build a controller command byte ral ral ral ral lxi h,hddisk ora m xri 0f0h ret hdcur: db 0 ;Current logical disk hdadd: dw 0 ;DMA address hddisk:  db 0ffh ;AL0 db 0ffh ;AL1 dw 0 ;CKS dw 127 ;OFF db 3 ;SECSIZ endif if m10 ne 0 dpbhd0: dw 336 ;CP/M sectors/track db 5 ;BSH db 31 ;BLM db 1 ;EXM dw 1269 ;DSM dw 511 ;DRM db 0ffh ;AL0 db 0ffh ;AL1 dw 0 ;CKS dw 1 ;OFF db 3 ;SECSIZ dpbhd1: dw 336 ;CP/M sectors/track db 5 ;BSH db 31 ;BLM db 1 ;EXM dw 1280 ;DSM dw 511 ;DRM db 0ffh ;AL0 db 0ffh ;AL1 dw 0 ;CKS dw 122 ;OFF db 3 ;SECSIZ endif if m20 ne 0 dpbhd0: dw 672 ;CP/M sectors/track db 5 ;BSH db 31 ;BLM db 1 ;EXM dw 2036 ;DSM dw 511 ;DRM db 0ffh ;AL0 db 0ffh ;AL1 dw 0 ;CKS dw 1 ;OFF db 3 ;SECSIZ dpbhd1: dw 672 ;CP/M sectors/track db 5 ;BSH db 31 ;BLM db 1 ;EXM dw 2036 ;DSM dw 511 ;DRM db 0ffh ;AL0 db 0ffh ;AL1 dw 0 ;CKS dw 98 ;OFF db 3 ;SECSIZ dpbhd2: dw 672 ;CP/M sectors/track db 5 ;BSH db 31 ;BLM db 1 ;EXM dw 1028 ;DSM dw 511 ;DRM db 0ffh ;AL0 db 0ffh ;AL1 dw 0 ;CKS dw 195 /ltio or Wunderbuss ;Multio/Wunderbuss Equates ;------------------------- ; The following equates will define the Decision I mother ; board I/O or the Multi I/O environments if needed. ; ;Location Definitions ;-------------------- mbase equ 48h ;Base address of Multi I/O or Decision I rbr equ mbase ;Read data buffer thr equ mbase ;Tranmitter data buffer dll equ mbase ;Divisor (lsb) strobe equ mbase ;parallel port strobe out status equ mbase ;parallel port status in dlm equ mbase+1 ;Divisor (msb) ier equ mbase+1 ;Interupt enable register sensesw equ mbase+1 ;Sense switches, only in gp 06 data equ mbase+1 ;parallel port data buffer clk equ mbase+2 ;WB14 printer select port lcr equ mbase+3 ;Line control register mcr equ mbase+4 lsr equ mbase+5 ;Line status register msr equ mbase+6 grpsel equ mbase+7 ;Group select port ; ;Define Transmitter/Reciever Mask Bytes ;-------------------------------------- dr equ 01h ;Line status DR bit cts equ 10h ;Clear to send dsr equ 20houtines and the parameter passing conventions. ; ; The console initialization routine (conint) is usually placed ; just after the cold boot loader. ; conin: jmp $ ;Console input conout: jmp $ ;Console output const: jmp $ ;Console input status conint: jmp $ ;Console initialization ds 116 ;(reserve the remaining space) endif ;End of Patch Area Console Routines if contyp eq 2 ;**************************************************** ;Begin Multi I/O or Decision I Console Driver (CDRV2) ;**************************************************** ; 1) This driver on cold boot will inspect bits 1-3 of the sense ; switches. If the value found is in the range 0-6 then the ; console baud rate will be taken from the rate table. Otherwise ; the baud rate will be set from the DEFCON word which is found ; just below the regular Cbios jump table. The standard divisor ; table is given below. ; ; Sense switch: 123 (0 = off, 1 = on) ; 000 = 110 ; 001 = 300 ; 010 = 1 mvi a,7Fh ;For masking out parity ana m ret ;Console Output ;-------------- ; conout: lxi h,dmchot+1 ;Character output location mov a,c ani 7fh mov m,a ;store character in command dcx h ;Back up to start of command lxi d,4 ;offset to returned status call dmdoit ;Write a character ret ;Console Status ;-------------- ; const: lda serin+1 ;Pick up serial input status ora a rz ;If zero then no character ready mvi a,0FFh ;Set character ready ret ;DJDMA Command Strings For Console I/O ;------------------------------------- ; dmchot: db serout ;Serial output command db 0 ;The character to be output db 0 ;dummy status db dmhalt ;Halt Command db 0 ;returned status endif ;End of DJDMA Console Driver if contyp eq 5 ;**************************************** ;Begin Switchboard Console Driver (CDRV5) ;**************************************** ; ;Swithboard Equates ;------------------ ; swbase equ 0 ;Base of the SWITCHBOARD ;Console Inp ;Data set ready thre equ 20h ;Status line THRE bit dlab equ 80h ;Divisor latch access bit ; wls0 equ 1 ;Word length select bit 0 wls1 equ 2 ;Word length select bit 1 for 8 bit word stb equ 4 ;Stop bit count - 2 stop bits ; ; Define Modem Control Register bits ;----------------------------------- dtrenb equ 1 ;DTR enable rtsenb equ 2 ;RTS enable ; ;Define group select Masks ;------------------------- spp equ 0 ;select parallel port s0 equ 01h ;Group number (0-3) s1 equ 02h smask equ 03h bank equ 04h enint equ 08h restor equ 10h ;Printer restore on Multi I/O busy equ 20h ;parallel printer busy mask denable equ 20h ;Driver enable on Multi I/O ; ;Group Port Assignments ;---------------------- congr eq ;Consol por (1=p1 2=p2 3=p3) lstgrp equ 3 ;Printer port (1=p1, 2=p2, 3=p3) endif ;For Multio/Wunderbuss Definitions page ;**************************** ;Begin Console Device Drivers ;**************************** if contyp eq 0 ;********************200 ; 011 = 2400 ; 100 = 4800 ; 101 = 9600 ; 110 = 19200 ; defcon = 9600 ; ; 2) If you are using a Multio then the switches will not be ; available so the baud rate will be taken from DEFCON. ; ;Console input ;------------- ; db 0 ;used by swap.com conin: call const ;select console and test for char jz conin in rbr ;Read character ani 7fh ;Strip parity ret ;Console Output ;-------------- ; db 1 ;used by swap.com conout: call conost ;Select console and test status jz conout mov a,c ;Character is in (c) ani 7fh out thr ;Output to transmitter buffer ret ;Console Status ;-------------- ; 1) Returns zero if character is not ready to be read; Otherwise, ; this routine returns 255 indicating a ready condition. ; const: call selcon ;Select console in lsr ;Read status register ani dr rz ;No charactter ready mvi a,0ffh ;Character ready ret ;Console Output Status Routine ;----------------------------- ; conost: call selcout ;------------- ; conin: in swbase+2 ;Get switchboard status ani 4 ;Test for data ready jz conin in swbase ;Get a character ani 7Fh ;Strip off parity ret ;Console Output ;-------------- ; conout: in swbase+2 ;Check status ani 8 ;Wait till output buffer empty jz conout mov a,c ;Write a character ani 7fh out swbase ret ;Console Status ;-------------- ; const: in swbase+2 ;Get the first ports status ani 4 ;Mask the data ready bits rz ;Return console not ready mvi a,0ffh conint: ret ;NULL terminal initialization endif ;End of Switchboard Console Driver if contyp eq 6 ;*************************************** ;Begin North Star Console Driver (CDRV6) ;*************************************** ; ;General Information ;=================== ; The following code implements the North Star console I/O system. ; This system is for users who purchase a Morrow Designs disk ; system to replace their North Star disk system. The Mapping of ; the logical to**** ;Begin Prom Patch (CDRV0) ;************************ ; This driver simply defines the four jumps normally needed to get to ; your actual console drivers. The assumption is that you already have ; these drivers in a ROM; And, furthermore, that the ROM'ed drivers ; exactly match the specs given in the CPM alteration guide for CONIN, ; CONOUT and CONST. Conint is involked during the cold boot process. ; conin: jmp $ ;Console input conout: jmp $ ;Console output const: jmp $ ;Console input status conint: jmp $ ;Console initialization endif ;End of Prom Patch Console Routines if contyp eq 1 ;*********************************** ;Begin Patch Area (128 byte) (CDRV1) ;*********************************** ; This driver provides you with a 128 byte area for patching in your ; own i/o routines. This first 12 bytes are taken up by jumps to the ; appropriate routines (CONIN, CONOUT and CONST). See the CPM user ; reference manual section on system alteration for a description of ; these rn in lsr ani thre rz mvi a,0ffh ret ;Console Select Routine ;---------------------- ; selcon: lxi d,group ;pass to application ldax d ori congrp out grpsel ret endif ;End of Multio/Wunderbuss Console Driver if contyp eq 3 ;********************************** ;Begin DJ2DB Console Driver (CDRV3) ;********************************** ; ;Console Input ;------------- ; conin: jmp fdcin ;Console input ;Console Output ;-------------- ; conout: mov a,c ani 7fh mov c,a jmp fdcout ;Console output ;Console Status ;-------------- ; const: call fdtstat ;Console status mvi a,0ffh rz inr a ret endif ;End of DJ2DB Console Driver if contyp eq 4 ;********************************** ;Begin DJDMA Console Driver (CDRV4) ;********************************** ; ;Console Input ;------------- ; conin: lxi h,serin+1 ;Serial input status xra a ci2: cmp m ;Wait till 40h deposited at 3fH jz ci2 mov m,a ;Clear status dcx h ;Point to input data 0 physical entry points is performed as follows: ; ; Device name Left Right Parallel ; serial serial port ; ; Console CON: = TTY: CRT: UC1: ; Reader RDR: = TTY: PTR: UR1: ; Punch PUN: = TTY: PTP: UP1: ; List LST: = TTY: CRT: UL1: ; ; For example, to use a printer connected to the right serial port, ; use the CP/M command: ; ; STAT LST:=CRT: ; ; Likewise, the CP/M command "STAT LST:=UL1:" is used if you have a ; printer connected to the parallel port. ; ;North Star Equates ;================== ; nsldat equ 2 ;Left serial port data port nslsta equ 3 ;Left serial port status port nsrdat equ 4 ;Right serial port data port nsrsta equ 5 ;Right serial port status port nsstbe equ 1 ;Transmitter buffer empty status bit nssrbr equ 2 ;Reciever buffer ready status bit ;See the 8251 data sheets for more ; configuration information. nslin1 equ 0ceh ;Left serial port initialization # 1 nsrin1 equ 0ceh ;Right serial port initialization # 1 ;76543210 Bit defition on the STAT ; command and in the "CP/M Interface Guide" in the IOBYTE section. ; The device function postfixes are as follows. ; ; devSET Initial device setup and initialzation ; devIN Read one character from the device ; devOUT Write one character to the device ; devIST Return the device character input ready status ; devOST Return the device character output ready status ; ; The setup routine initializes the device and returns. The input ; routine returns one character in the A register (parity reset). ; The output routine write one character from the C register. The ; input status routine returns in the A register a 0 if the device ; does not have a character ready for input for 0ffh if a character ; is ready for input. The output status routine returns in the A ; register a 0 if the device is not ready accept a character and a ; 0ffh if the device is ready. The input and output routines ; should wait untill the device is ready for the desired operation ; before the doing t ; IOBYTE: 76543210 dw ttyist ;RDR: = TTY: xxxx00xx dw ptrist ;RDR: = PTR: xxxx01xx dw ur1ist ;RDR: = UR1: xxxx10xx dw ur2ist ;RDR: = UR2: xxxx11xx ;Punch Output ;----------- ; punout mv e, ;Punc output call redir ; IOBYTE: 76543210 dw ttyout ;PUN: = TTY: xx00xxxx dw ptpout ;PUN: = PTP: xx01xxxx dw up1out ;PUN: = UP1: xx10xxxx dw up2out ;PUN: = UP2: xx11xxxx ;List Output ;----------- ; lstout: mvi e,3 ;List output call redir ; IOBYTE: 76543210 dw ttyout ;LST: = TTY: 00xxxxxx dw crtout ;LST: = CRT: 01xxxxxx dw lptout ;LST: = LPT: 10xxxxxx dw ul1out ;LST: = UL1: 11xxxxxx ;List Status ;----------- ; lstost mv e, ;Lis outpu status call redir ; IOBYTE: 76543210 dw ttyost ;LST: = TTY: 00xxxxxx dw crtost ;LST: = CRT: 01xxxxxx dw lptost ;LST: = LPT: 10xxxxxx dw ul1ost ;LST: = UL1: 11xxxxxx ;Redirect the I/O ;---------------- ; redir: lda iobyte ;Get the INTEL standard iobyte redir0: rlc ;Shift the nations ;11001110 Default configuration ;xxxxxx00 Synchronous mode ;xxxxxx01 1X clock rate ;xxxxxx10 16X clock rate ;xxxxxx11 64X clock rate ;xxxx00xx 5 bit characters ;xxxx01xx 6 bit characters ;xxxx10xx 7 bit characters ;xxxx11xx 8 bit characters ;xxx0xxxx Parity disbable ;xxx1xxxx Parity enable ;xx0xxxxx Odd parity generation/check ;xx1xxxxx Even parity generation/check ;00xxxxxx Invalid ;01xxxxxx 1 stop bit ;10xxxxxx 1.5 stop bits ;11xxxxxx 2 stop bits nslin2 equ 37h ;Left serial port initialization # 2 nsrin2 equ 37h ;Right serial port initialization # 2 ;76543210 Bit definations ;00110111 Default configuration ;xxxxxxx1 Enable transmitter ;xxxxxx1x Assert DTR; ;xxxxx1xx Enable reciever ;xxxx1xxx Send break character, TxD low ;xxx1xxxx Reset PE, OE, FE error flags ;xx1xxxxx Assert RTS; ;x1xxxxxx Internal reset ;1xxxxxxx Enter hunt mode (for sync) nspdat equ 0 ;Phe operation and returning. ; ; Not all of these functions need to be implemented for all the ; devices. The following is a table of the entry points needed for ; each device handler. ; ; device setup input output input output ; name status status ; ; CON: CONIN CONOUT CONIST ; RDR: RDRIN RDRIST ; PUN: PUNOUT ; LST: LSTOUT LSTOST ; ; TTY: TTYSET TTYIN TTYOUT TTYIST TTYOST ; CRT: CRTSET CRTIN CRTOUT CRTIST CRTOST ; UC1: UC1SET UC1IN UC1OUT UC1IST ; ; PTR: PTRSET PTRIN PTRIST ; UR1: UR1SET UR1IN UR1IST ; UR2: UR2SET UR2IN UR2IST ; ; PTP: PTPSET PTPOUT ; UP1: UP1SET UP1OUT ; UP2: UP2SET UP2OUT ; ; LPT: LPTSET LPTOUT LPTOST ; UL1: UL1SET UL1OUT UL1OST ; ; The CONIN, CONOUT, CONIST, RDRIN, RDRIST, PUNOUT, LSTOUT, and ; LSTOST routines are the logical device driver entry points ; provided by this device mapper. The other entry names must be ; provided by the physical device drivers. ; ;Console Input ;------------- ; conin: mvi e,1 ;Consonext field in dcr e ;Bump the shift count jnz redir0 redir1: ani 110b ;Mask the redirection field mov e,a ;Make the word table offset mvi d,0 pop h ;Get the table base dad d ;Offset into our table mov a,m ;Load the low level i/o routine pointer inx h mov h,m mov l,a pchl ;Execute the low level i/o driver ;Left serial port routines. Use TTY: device. ;-------------------------------------------- ; ttyin: in nslsta ;Read a character ani nssrbr jz ttyin ;Wait till a character is ready in nsldat ;Get the character ani 7fh ;Strip parity ret ttyout: in nslsta ;Write a character ani nsstbe jz ttyout ;Wait till the buffer is empty mov a,c ;Write the character ani 7fh out nsldat ret ttyist: in nslsta ;Return input buffer status ani nssrbr rz ;Return not ready mvi a,0ffh ret ;There is a character ready ttyost: in nslsta ;Return output buffer status ani nsstbe rz ;Return not ready mvi a,0ffh ret ;Rearallel data port nspsta equ 6 ;Parallel status port nsprbr equ 1 ;Reciever buffer ready status bit nsptbe equ 2 ;Transmitter buffer empty status bit nsram equ 0c0h ;North Star memory parity port, ; set to 0 for no North Star RAM ;North Star IOBYTE Implementation ;================================ ; The following code performs the mapping of logical to physical ; serial I/O devices. The physical entry points are CONIN, CONOUT, ; CONIST, RDRIN, PUNOUT, LSTOUT, and LSTOST. These entry points ; are mapped via the Intel standard I/O byte (IOBYTE) at location 3 ; in the base page to the low level device drivers. ; ; Note: A naming convention has been chosen to reduce label ; colisions. The first three characters of a name indicate the ; device drivers name, the following three characters indicated the ; function performed by that particular device routine. The device ; names are defined and described in the "An Introduction to CP/M ; Features and Facilities" manual in the secle input call redir ; IOBYTE: 76543210 dw ttyin ;CON: = TTY: xxxxxx00 dw crtin ;CON: = CRT: xxxxxx01 dw rdrin ;CON: = BAT: xxxxxx10 dw uc1in ;CON: = UC1: xxxxxx11 ;Console Output ;-------------- ; conout: mvi e,1 ;Console output call redir ; IOBYTE: 76543210 dw ttyout ;CON: = TTY: xxxxxx00 dw crtout ;CON: = CRT: xxxxxx01 dw lstout ;CON: = BAT: xxxxxx10 dw uc1out ;CON: = UC1: xxxxxx11 ;Console Status ;-------------- ; const: mvi e,1 ;Console input status call redir ; IOBYTE: 76543210 dw ttyist ;CON: = TTY: xxxxxx00 dw crtist ;CON: = CRT: xxxxxx01 dw rdrist ;CON: = BAT: xxxxxx10 dw uc1ist ;CON: = UC1: xxxxxx11 ;Reader Input ;------------ ; rdrin: mvi e,7 ;Reader input call redir ; IOBYTE: 76543210 dw ttyin ;RDR: = TTY: xxxx00xx dw ptrin ;RDR: = PTR: xxxx01xx dw ur1in ;RDR: = UR1: xxxx10xx dw ur2in ;RDR: = UR2: xxxx11xx ;Reader Status ;------------- ; rdrist: mvi e,7 ;Reader input status call redir 1turn ready ;Right serial port routines. Use CRT:, PTR:, and PTP: devices. ;-------------------------------------------------------------- ; crtin: ptrin: in nsrsta ;Read a character ani nssrbr jz crtin ;Wait till a character is ready in nsrdat ;Get the character ani 7fh ;Strip parity ret crtout: ptpout: in nsrsta ;Write a character ani nsstbe jz crtout ;Wait till the buffer is empty mov a,c ;Write the character ani 7fh out nsrdat ret crtist: ptrist: in nsrsta ;Return input buffer status ani nssrbr rz ;Return not ready mvi a,0ffh ret ;There is a character ready crtost: in nsrsta ;Return output buffer status ani nsstbe rz ;Return not ready mvi a,0ffh ret ;Return ready ;Parallel Port Routines ;---------------------- ; Use UC1: UR1: UP1: UP2: LPT: and UL1: devices. ; uc1in: ur1in: ur2in: in nspsta ;Read a character ani nsprbr jz uc1in ;Wait till a character is ready in nspdat ;Get the character push psw A). The LSTSET routine is used ; for initialization code. It should execute a RET when complete. ; ; The LSTSET routine could be placed just below the CBOOT routine. ; This space (below CBOOT) is recyled for use as a disk buffer ; after CBOOT is done. ; ; These routines all point to lstskp initially so that the system ; won't hang up, waiting for a non-existant list device to become ; ready. ; lstout: jmp lstskp ;Printer output lstost: jmp lstskp ;Printer output status lstset: jmp lstskp ;Printer initialization lstskp: ret ds 118 ;(reserve the remaining space) endif ;End of Patch Area for List Drivers if (lsttyp ge 2) and (lsttyp le 5) ;***************************************************** ;Begin Other List Devices (LDRV2, LDRV3, LDRV4, LDRV5) ;***************************************************** ; All other list devices are Multio/Wunderbuss Serial I/O With ; different types of i/o protocols. ; Altered rev E4, lsttyp 2 thru 5 always include centronics punch ; NOTE: firstnactive) ret pmult: mov a,c ;Print the character out strobe ;really 'data' mvi a,0BFh out data ;strobe low (asserted) (really strobe) xthl xthl ;stall 10 us mvi a,0FFH out data ;strobe high (inactive) (really strobe) ret ;Punch Status ;----------- ; punost: lxi d,group ;pass to application ldax d out grpsel ;select parallel printer group in status ani busy rz ;Return busy if buffer is not empty mvi a,0FFh ret ;return not busy endif ;Multio Wbio Serial Drivers page ;************************ ;Start of the Disk Buffer ;************************ ; All of the Routines following this equate will be overwritten ; by disk accesses. ; buffer equ $ page ;*********************************************** ;Console and list device initialization routines ;*********************************************** ; if contyp eq 2 ;********************************************************************* ;Begin Multio I/O or Wunderbus Console Initialization Rout mvi a,30h ;Reset the parallel input flag out nspsta pop psw ani 7fh ;Strip parity ret uc1out: up1out: up2out: lptout: ul1out: in nspsta ;Write a character ani nsptbe jz uc1out ;Wait till the buffer is empty mvi a,20h ;Reset the parallel output flag out nspsta mov a,c ;Write the character, strobe bit 7 nspout: ori 80h out nspdat ani 7fh out nspdat ori 80H out nspdat ret uc1ist: ur1ist: ur2ist: in nspsta ;Return input buffer status ani nsprbr rz ;Return not ready mvi a,0ffh ret ;Return ready lptost: ul1ost: in nspsta ;Return output buffer status ani nsptbe rz ;Return not ready mvi a,0ffh ret ;Return ready endif ;North Star I/O configuration page ;************************* ;Begin List Device Drivers ;************************* ; if lsttyp eq 0 ;******************************* ;Begin Prom Patch Driver (LDRV0) ;******************************* ; The driver entries LSTOUT and LSTOST are defined in the CP instruction in output routine must be call to status ; so swap program can re-assign list status routine. ; Also, the pointer to the device name string must be just ahead of ; the entry point ; ;List Output ;----------- db 2 ;used by swap.com ; lstout: call lstost ;Check printer status ora a jz lstout ;Loop if not ready mov a,c ;Print the character out thr ret ;List Status ;----------- ; lstost: call sellst ;Printer status routine in lsr ;Check if transmitter buffer empty ani thre rz ;Return busy if buffer is not empty lhld lstand ;Fetch handshake mask bits in msr ;Get MODEM Status Register ana l ;Strip out hand-shake lines xra h ;Invert status rz ;Return busy if printer is busy lda lastch ;Get last character recieved from the printer mov b,a in lsr ;Check for a character from the printer ani dr jz xskip ;Skip if no character present in rbr ;Get the character ani 7fh ;Strip parity sta lastch ;Save last character recieved moine (CIDRV2) ;********************************************************************* ; This routine reads the sense switch on the WB-14 and sets ; the speed accordingly. ; conint: call selg0 ;Select group 0 in sensesw ;Get sense switch (ff on a Multio) push psw call selcon ;Select console pop psw push psw call tini0 ;Initialize the console pop psw push psw call selrdr ;Select the reader/punch pop psw call tini0 ;Initialize the reader/punch ret tini0: ani 0e0h ;Mask in upper three bits rlc ;Move into lower 3 bits rlc rlc cpi 7 ;check for sense = 7 (Default setting) jz dfbaud ;Use default baud rate lxi h,btab ;Pointer to baud rate table add a ;Table of words so double mov e,a ;Make a 16 bit number into (de) mvi d,0 dad d ;Get a pointer into baud rate table mov e,m ;Get lower byte of word inx h ;Bump to high byte of word mov d,m ;Get upper byte. (de) now has divisor jmp setit ;Set baud rate dfbaud: lhld defcon ;Use default baud r/M ; alternation guide (e.g. Input parameters are in register C and ; results are returned in register A). The LSTSET routine is used ; for initialization code. It should execute a RET when complete. ; ; The LSTSET routine could be placed just below the CBOOT routine. ; This space (below CBOOT) is recyled for use as a disk buffer ; after CBOOT is done. ; ; These routines all point to lstskp initially so that the system ; won't hang up, waiting for a non-existant list device to become ; ready. ; lstout: jmp lstskp ;Printer output lstost: jmp lstskp ;Printer output status lstset: jmp lstskp ;Printer initialization lstskp: ret endif ;End of Patch Area for List Drivers if lsttyp eq 1 ;******************************************* ;Begin Patch Area Driver (128 bytes) (LDRV1) ;******************************************* ; The driver entries LSTOUT and LSTOST are defined in the CP/M ; alternation guide (e.g. Input parameters are in register C and ; results are returned in register v b,a xskip: mov a,b sui xoff ;Check for Xoff char (control S) jnz xsdone ;Printer ready ret ;Printer not ready (return zero) ;Group select routines ;--------------------- ; sellst: lxi d,group ;pass to application ldax d ;Select printer group ori lstgrp out grpsel ret xsdone: mvi a,0ffh ;Printer ready for data ret ;Reader Input ;----------- ; db 4 ;used by swap.com rdrin: call rdrist jz rdrin ;wait for char avail in rbr ;get data ani 7fh ret rdrist: call sellst ;it's the list device kiddies in lsr ;check for char ani dr ;data ready? rz ;exit false mvi a,0ffh ;true ret ;Punch Output ;----------- db 3 ;used by swap.com ; punout: call punost ;select group zero, sensesw jz punout in sensesw ;read motherboard switches cpi 0FFh ;FF means Multio jz pmult mov a,c ;Print the character out data mvi a,0BFh out strobe ;strobe low (asserted) xthl xthl ;stall 10 us mvi a,0FFH out strobe ;strobe high (i2ate xchg ;Enable divisor access latch setit: mvi a,dlab+wls1+wls0+stb out lcr ;Set the baud rate in (de) mov a,d out dlm ;Set upper divisor mov a,e out dll ;Set lower divisor ;Clear Divisor latch mvi a,wls1+wls0+stb out lcr xra a out ier ;Set no interrupts out lsr ;Clear status mvi a,dtrenb+rtsenb ;Enable DTR and RTS outputs to terminal out mcr in msr ;Clear MODEM Status Register in lsr ;Clear Line Status Register in rbr ;Clear reciever buffers in rbr ret selg0: lda group ;Select group zero out grpsel ret selrdr: lda group ;Select reader/punch group ori 5-lstgrp ;Use 'other' serial port out grpsel ret btab: dw 1047 ;110 Baud 000 dw 384 ;300 001 dw 96 ;1200 010 dw 48 ;2400 011 dw 24 ;4800 100 dw 12 ;9600 101 dw 6 ;19200 110 ;DEFCON 111 endif ;End Multi I/O, Decision I Con Init if contyp eq 3 ;*************************************************** ;Begin DJ2DB Console Initialization Routine (CIDRV3)s pointer jnz nset0 nset1: inr h ;Skip to the next memory page jz nset2 ;Skip if all done lxi d,$ + 100h ;fix for assem with rmac mov a,d ; mvi a,(high $) + 1 ;Is the pointer above us? cmp h ;Set carry if pointer is <= our page+1 jc nset0 ;Reset the next pages parity mov a,m ;Test for a PROM or no memory mov b,a ;Save the original byte cma ;See if this location will change mov m,a cmp m ;Test for a change mov m,b ;Restore the original value jz nset0 ;Value complemented, must be RAM ora a ;Test for no memory present jz nset1 ;Skip to the next page if no memory lxi d,700h ;Skip 2K bytes of 'PROM' dad d jnc nset1 ;Do a page check if no overflow nset2: mvi a,41h ;Re-enable parity on the memory boards out nsram endif crtset: ;Null routines ptrset: ptpset: uc1set: ur1set: ur2set: up1set: up2set: lptset: ul1set: ret endif ;End North Star Initialization page if (lsttyp ge 2) and (lsttyp le 5) ;************************************entries call movbyt mvi m,0ffh ;End marker if contyp ne 6 ;Non IOBYTE inits call conint ;Initialize the terminal call lstset ;Initialize the list device else ;Do IOBYTE inits lxi h,devset ;Device setup routine pointer table cboot0: mov e,m ;Load a routine address inx h mov d,m inx h mov a,d ;Test for the end of the table ora e jz cboot2 push h ;Save the table pointer lxi h,cboot1 ;Return address push h xchg pchl ;'CALL' a device setup routine cboot1: pop h ;Restore the table pointer jmp cboot0 ;Device setup routine pointers ;----------------------------- devset: dw conint, crtset, uc1set dw ptrset, ur1set, ur2set dw ptpset, up1set, up2set dw lptset, ul1set, 0 cboot2 equ $ endif lxi h,prompt ;Prep for sending signon message call message ;Send the prompt jmp gocpm ;Signon message output during cold boot ;-------------------------------------- ; Print a message like: ; ; Morrow Designs 48K CP/M 2.2 E4 ; AB: DJ/D ;*************************************************** ; conint: call fdtstat ;Clean input buffer rnz ;All empty call fdcin jmp conint endif ;End 2D/B console Initialization if contyp eq 4 ;*************************************************** ;Begin DJDMA Console Initialization Routine (CIDRV4) ;*************************************************** ; conint: call dminit ;See if controller present rc ;No controller, return lxi h,0 ;clear shld serin ;initialize no char present lxi h,dmaci ;Console initialization sequence lxi d,3 ;Halt offset call dmdoit ret ;DJDMA Initialization Command String ;----------------------------------- ; dmaci: db senabl ;Enable serial input db 1 db dmhalt db 0 endif ;End DJDMA Console intialization if contyp eq 6 ;******************************************************** ;Begin North Star Console Initialization Routine (CIDRV6) ;******************************************************** ; Initialize the North Star ******************************* ;Begi Multi I/ o Wunderbus Lis an Punc Initializatio ;Routine ;******************************************************************* ; lstset: call sellst ;Select printer group mvi a,dlab ;Access divisor latch out lcr lhld deflst ;Get LST: baud rate divisor mov a,h out dlm ;Set upper baud rate mov a,l out dll mvi a,stb+wls0+wls1 ;2 stop bits + 8 bit word out lcr mvi a,dtrenb+rtsenb ;DTR + RTS enabled out mcr in rbr ;Clear input buffer xra a out ier ;No interrupts ;fall thru to centronics init ;******************************************************************* ;Begin Multio I/O or Wunderbuss Parallel List Initialization Routine ;******************************************************************* ; punset: lda group out grpsel ;select parallel port in sensesw ;read motherboard switches cpi 0FFh ;FF is Multio jz imult mvi a,0FFh out strobe ;turn strobes off mvi a,0C0h out clk ;turn on drivers mvi a,07FMA 8", CD: DJ/DMA 5 1/4", E: HDC/DMA M5 ; ;Print String for the first line of the Sign-on message ;------------------------------------------------------ prompt: db 80h, clear ;Clean buffer and screen db acr, alf, alf db 'Morrow Designs ' db '0'+msize/10 ;CP/M memory size db '0'+(msize mod 10) db 'K CP/M ' ;CP/M version number db cpmrev/10+'0' db '.' db (cpmrev mod 10)+'0' db ' ' db (revnum/10)+'A'-1 db (revnum mod 10)+'0' db acr, alf ;Macros To generate the second line of the sign-on message ;--------------------------------------------------------- msdrv set 0 ;Start with drive A: msbump macro ndrives ;Print a drive name if dn gt 1 db ', ' endif rept ndrives db msdrv+'A' msdrv set msdrv+1 endm db ': ' endm prhex macro digit ;Write a byte in hex prnib digit/10h prnib digit endm prnib macro digit ;Write a digit in hex temp set digit and 0fh if temp lt 10 db temp + '0' else db temp - 10 + 'A' endif endm dn set 1 ;GeMother board, left serial port, right ; serial port, and North Star RAM parity. ; ;Initialize mother board conint: xra a ;Set up the parallel port + motherboard out 6 out 6 out 6 out 6 mvi a,30h ;Reset the parallel port input flag out nspsta mvi a,60h ;Set the parallel port output flag out nspsta mvi a,acr ;Force a CR out the parallel port call nspout ;Initialize the left serial port mvi a,nslin1 ;See the equates for bit definations out nslsta mvi a,nslin2 out nslsta xra a ;Clear the input/output buffers out nsldat in nsldat in nsldat ;Initialize the right serial port mvi a,nsrin1 ;See the equates for bit definations out nsrsta mvi a,nsrin2 out nsrsta xra a ;Clear the input/output buffers out nsrdat in nsrdat in nsrdat if nsram ne 0 ;Reset parity on North Star RAMs mvi a,40h ;Disable parity logic out nsram lxi h,0 ;Starting address nset0: mov a,m ;Get a byte mov m,a ;Rewrite, set proper parity inr l ;Bump the addresh out strobe ;assert restore (low true) mvi a,0FFh out strobe ;inactivate restore ret imult: lda group ori denable sta group ;turn parallel port drivers on out grpsel ;select parallel port mvi a,0C0h out strobe ;turn data strobe off lda group ori restor out grpsel ;assert restore lda group out grpsel ;de-assert restore ret endif ;End Multio/Wbio punch / list init page ;********************** ;Begin Cold Boot Loader ;********************** ; Cboot is the cold boot loader. All of CP/M has been loaded in ; when control is passed here. ; cboot: lxi sp,tpa ;Set up stack xra a ;Clear cold boot flag sta cwflg sta group ;Clear group select byte sta cpmdrv ;Select disk A: sta cdisk lxi h,cbios+3 ;Patch cold boot to warm code mov a,h sta bpage ;set CBIOS base page number shld cbios+1 lda iobyt ;Initialize the IOBYTE sta iobyte xra a lxi d,badmap ;Clear out bad map stax d lxi h,badmap+1 lxi b,9*badsiz ;32 map 3nerate the drive messages rept 16 ;Run off at least 16 drives if dn eq hdorder ;Generate the HDCA's message msbump maxhd*hdlog db 'HDCA ' if maxhd gt 1 db '(', maxhd+'0', ')' endif if m10 ne 0 if m10m ne 0 db 'Memorex' else db 'Fujitsu' endif db ' M10' endif if m20 ne 0 db 'Fujitsu M20' endif if m26 ne 0 db 'Shugart M26' endif endif if dn eq mworder ;Generate the HDDMA's message msbump maxmw*mwlog db 'HDC/DMA' if mwquiet eq 0 db ' ' if maxmw gt 1 db '(', maxmw+'0', ')' endif if st506 ne 0 db 'M5' endif if st412 ne 0 db 'M10' endif if cm5619 ne 0 db 'M16' endif endif endif if dn eq fdorder ;Generate the 2D/B message msbump maxfd db 'DJ2D/B @' prhex fdorig/100h prhex fdorig endif if dn eq dmorder ;Generate the DJDMA 8 message msbump maxdm db 'DJ/DMA 8"' endif if dn eq mforder ;Generate the DJDMA 5 1/4 message msbump maxmf db 'DJ/DMA 5 1/4"' endif dn set dn+1 endm db acr,alf  ;------------ ; if maxmw ne 0 dn set 0 trkoff set 8192/(mwsecpt/8)+1 psize set trkoff*(mwsecpt/8) rept maxmw blocks set mwsecpt/8*mwtrks rept blocks/8192 ;Generate some 8 megabyte ALV's alloc mw,%dn,256,0 blocks set blocks-psize dn set dn+1 endm blocks set blocks/4 if blocks gt 256 ;Use the remainder blocks set blocks-1 alv set (blocks/8)+1 alloc mw,%dn,%alv,0 dn set dn+1 endif endm endif ;HDCA Drives ;----------- ; if maxhd ne 0 dn set 0 rept maxhd if m26 ne 0 alloc hd,%dn,252,0 dn set dn+1 alloc hd,%dn,252,0 dn set dn+1 alloc hd,%dn,256,0 dn set dn+1 endif if m10 ne 0 alloc hd,%dn,159,0 dn set dn+1 alloc hd,%dn,161,0 dn set dn+1 endif if m20 ne 0 alloc hd,%dn,255,0 dn set dn+1 alloc hd,%dn,255,0 dn set dn+1 alloc hd,%dn,129,0 dn set dn+1 endif endm endif page ;Debugging Aids ;-------------- ; bioslen equ (high ($ - cbios)) + 1 ;BIOS length in pages if bioslen gt biosln ;Test for overflow 'FATALturn ready ;Right serial port routines. Use CRT:, PTR:, and PTP: devices. ;-------------------------------------------------------------- ; crtin: ptrin: in nsrsta ;Read a character ani nssrbr jz crtin ;Wait till a character is ready in nsrdat ;Get the character ani 7fh ;Strip parity ret crtout: ptpout: in nsrsta ;Write a character ani nsstbe jz crtout ;Wait till the buffer is empty mov a,c ;Write the character ani 7fh out nsrdat ret crtist: ptrist: in nsrsta ;Return input buffer status ani nssrbr rz ;Return not ready mvi a,0ffh ret ;There is a character ready crtost: in nsrsta ;Return output buffer status ani nsstbe rz ;Return not ready mvi a,0ffh ret ;Return ready ;Parallel Port Routines ;---------------------- ; Use UC1: UR1: UP1: UP2: LPT: and UL1: devices. ; uc1in: ur1in: ur2in: in nspsta ;Read a character ani nsprbr jz uc1in ;Wait till a character is ready in nspdat ;Get the character push psw  db 0 ;End of message page ;Debugging checks ;---------------- codend equ $ savln equ codend+300h ;for movcpm codelen equ ($ - cbios) ;Length of Cbios code if codelen gt 1000h ;Test for SYSGEN problems 'FATAL ERROR, system is too big for SYSGEN rev. 4.X' dbgtmp set codelen ;Cbios code length ! endif if debug dbgtmp set codelen ;Cbios code length ! endif ;Reserve the space for the disk buffer ;------------------------------------- ds 512-($-buffer) ;Buffer for 512 byte sectors if (maxfd ne 0) or (maxdm ne 0) or (maxmw ne 0) or (maxmf ne 0) ds 512 ;Additional space for 1k sector devices endif page ;****************************** ;Begin Uninitialized Data Areas ;****************************** ; ;Bad Map Space ;============= ; Each bad map entry consists of 9 bytes: ; Logical drive number (1 byte) ; Track number of bad sector (2 bytes) ; Sector number of bad sector (2 bytes) ; Track number of alternate sector (2 bytes) ; ERROR, system overflow. BIOSLN must be at least' dbgtmp set bioslen ;BIOSLN! endif if debug dbgtmp set biosln ;Current BIOSLN! if biosln gt bioslen dbgtmp set bioslen ;Optimal BIOSLN! endif endif page ;Revision History ;================ ; ; ; Date Programmer Description ; ; 9 17 83 west * Public release of E.4 for dj/dma and hdc/dma. ; 9 13 83 west repaired dj console init/drivers ; 9 12 83 west multio initialization selects switches correctly ; 8 23 83 west all multio/wbio devices have names for swap.com ; 8 22 83 west PREP: now allows normal seeks to track zero ; 8 21 83 west all multio/wbio character devices return pointer ; to 'group' in [de] to TPA program ; 8 15 83 west all multio/wbio serial list have centronics punch ; and rdr: implemented as list input ; 5 5 83 F.R.K. add parallel centronics printer thru Mulito/Wbio ; 3 28 83 F.R.K. add dbl-sided soft sector, fix for rmac ; 1 18 83 JZ Did a cosmetic res mvi a,30h ;Reset the parallel input flag out nspsta pop psw ani 7fh ;Strip parity ret uc1out: up1out: up2out: lptout: ul1out: in nspsta ;Write a character ani nsptbe jz uc1out ;Wait till the buffer is empty mvi a,20h ;Reset the parallel output flag out nspsta mov a,c ;Write the character, strobe bit 7 nspout: ori 80h out nspdat ani 7fh out nspdat ori 80H out nspdat ret uc1ist: ur1ist: ur2ist: in nspsta ;Return input buffer status ani nsprbr rz ;Return not ready mvi a,0ffh ret ;Return ready lptost: ul1ost: in nspsta ;Return output buffer status ani nsptbe rz ;Return not ready mvi a,0ffh ret ;Return ready endif ;North Star I/O configuration page ;************************* ;Begin List Device Drivers ;************************* ; if lsttyp eq 0 ;******************************* ;Begin Prom Patch Driver (LDRV0) ;******************************* ; The driver entries LSTOUT and LSTOST are defined in the CP Sector number of alternate sector (2 bytes) ; badmap: ds badsiz*9+1 ;32 entries + end marker ;Directory Buffer ;================ ; dirbuf: ds 128 ;Directory buffer ;Allocation and checked directory table area ;============================================ ; ;DJDMA 8" Drives ;--------------- ; if maxdm ne 0 ;Drive_0 csvdm0: ds 64 alvdm0: ds 75 ;Drive_1 csvdm1: ds 64 alvdm1: ds 75 ;Drive_2 csvdm2: ds 64 alvdm2: ds 75 ;Drive_3 csvdm3: ds 64 alvdm3: ds 75 ;dn set 0 ; rept maxdm ; alloc dm,%dn,75,64 ;dn set dn+1 ; endm endif ;DJDMA 5" Drives ;--------------- ; if maxmf ne 0 ;Drive_4 csvmf0: ds 48 alvmf0: ds 25 ;Drive_5 csvmf1: ds 48 alvmf1: ds 25 ;Drive_6 csvmf2: ds 48 alvmf2: ds 25 ;Drive_7 csvmf3: ds 48 alvmf3: ds 25 ;dn set 0 ; rept maxmf ; alloc mf,%dn,25,48 ;dn set dn+1 ; endm endif ;DJ2DB Drives ;------------ ; if maxfd ne 0 dn set 0 rept maxfd alloc fd,%dn,75,64 dn set dn+1 endm endif ;HDDMA Drivestructuring of the code Dealing ; with the disks at both the hi and lo levels. ; 1 17 83 JZ Now reads 5" soft sectored single density disks ; 1 16 83 JZ Patched up various holes in the disk error handeling ; routines in the Hi-Level routines SETDRV, READ, and ; WRITE and in the DJDMA Drivers ;*11 20 82 Marc Public release of revision E.31 end /dma and hdc/dma. ; 9 13 83 west repaired dj console init/drivers ; 9 12 83 west multio initialization selects switches correctly ; 8 23 83 west all multio/wbio devices have names for swap.com ; 8 22 83 west PREP: now allows normal seeks to track zero ; 8 21 83 west all multio/wbio character devices return pointer ; to 'group' in [de] to TPA program ; 8 15 83 west all multio/wbio serial list have centronics punch ; and rdr: implemented as list input ; 5 5 83 F.R.K. add parallel centronics printer thru Mulito/Wbio ; 3 28 83 F.R.K. add dbl-sided soft sector, fix for rmac ; 1 18 83 JZ Did a cosmetic res4/M ; alternation guide (e.g. Input parameters are in register C and ; results are returned in register A). The LSTSET routine is used ; for initialization code. It should execute a RET when complete. ; ; The LSTSET routine could be placed just below the CBOOT routine. ; This space (below CBOOT) is recyled for use as a disk buffer ; after CBOOT is done. ; ; These routines all point to lstskp initially so that the system ; won't hang up, waiting for a non-existant list device to become ; ready. ; lstout: jmp lstskp ;Printer output lstost: jmp lstskp ;Printer output status lstset: jmp lstskp ;Printer initialization lstskp: ret endif ;End of Patch Area for List Drivers if lsttyp eq 1 ;******************************************* ;Begin Patch Area Driver (128 bytes) (LDRV1) ;******************************************* ; The driver entries LSTOUT and LSTOST are defined in the CP/M ; alternation guide (e.g. Input parameters are in register C and ; results are returned in register v b,a xskip: mov a,b sui xoff ;Check for Xoff char (control S) jnz xsdone ;Printer ready ret ;Printer not ready (return zero) ;Group select routines ;--------------------- ; sellst: lxi d,group ;pass to application ldax d ;Select printer group ori lstgrp out grpsel ret xsdone: mvi a,0ffh ;Printer ready for data ret ;Reader Input ;----------- ; db 4 ;used by swap.com rdrin: call rdrist jz rdrin ;wait for char avail in rbr ;get data ani 7fh ret rdrist: call sellst ;it's the list device kiddies in lsr ;check for char ani dr ;data ready? rz ;exit false mvi a,0ffh ;true ret ;Punch Output ;----------- db 3 ;used by swap.com ; punout: call punost ;select group zero, sensesw jz punout in sensesw ;read motherboard switches cpi 0FFh ;FF means Multio jz pmult mov a,c ;Print the character out data mvi a,0BFh out strobe ;strobe low (asserted) xthl xthl ;stall 10 us mvi a,0FFH out strobe ;strobe high (iate xchg ;Enable divisor access latch setit: mvi a,dlab+wls1+wls0+stb out lcr ;Set the baud rate in (de) mov a,d out dlm ;Set upper divisor mov a,e out dll ;Set lower divisor ;Clear Divisor latch mvi a,wls1+wls0+stb out lcr xra a out ier ;Set no interrupts out lsr ;Clear status mvi a,dtrenb+rtsenb ;Enable DTR and RTS outputs to terminal out mcr in msr ;Clear MODEM Status Register in lsr ;Clear Line Status Register in rbr ;Clear reciever buffers in rbr ret selg0: lda group ;Select group zero out grpsel ret selrdr: lda group ;Select reader/punch group ori 5-lstgrp ;Use 'other' serial port out grpsel ret btab: dw 1047 ;110 Baud 000 dw 384 ;300 001 dw 96 ;1200 010 dw 48 ;2400 011 dw 24 ;4800 100 dw 12 ;9600 101 dw 6 ;19200 110 ;DEFCON 111 endif ;End Multi I/O, Decision I Con Init if contyp eq 3 ;*************************************************** ;Begin DJ2DB Console Initialization Routine (CIDRV3)A). The LSTSET routine is used ; for initialization code. It should execute a RET when complete. ; ; The LSTSET routine could be placed just below the CBOOT routine. ; This space (below CBOOT) is recyled for use as a disk buffer ; after CBOOT is done. ; ; These routines all point to lstskp initially so that the system ; won't hang up, waiting for a non-existant list device to become ; ready. ; lstout: jmp lstskp ;Printer output lstost: jmp lstskp ;Printer output status lstset: jmp lstskp ;Printer initialization lstskp: ret ds 118 ;(reserve the remaining space) endif ;End of Patch Area for List Drivers if (lsttyp ge 2) and (lsttyp le 5) ;***************************************************** ;Begin Other List Devices (LDRV2, LDRV3, LDRV4, LDRV5) ;***************************************************** ; All other list devices are Multio/Wunderbuss Serial I/O With ; different types of i/o protocols. ; Altered rev E4, lsttyp 2 thru 5 always include centronics punch ; NOTE: firstnactive) ret pmult: mov a,c ;Print the character out strobe ;really 'data' mvi a,0BFh out data ;strobe low (asserted) (really strobe) xthl xthl ;stall 10 us mvi a,0FFH out data ;strobe high (inactive) (really strobe) ret ;Punch Status ;----------- ; punost: lxi d,group ;pass to application ldax d out grpsel ;select parallel printer group in status ani busy rz ;Return busy if buffer is not empty mvi a,0FFh ret ;return not busy endif ;Multio Wbio Serial Drivers page ;************************ ;Start of the Disk Buffer ;************************ ; All of the Routines following this equate will be overwritten ; by disk accesses. ; buffer equ $ page ;*********************************************** ;Console and list device initialization routines ;*********************************************** ; if contyp eq 2 ;********************************************************************* ;Begin Multio I/O or Wunderbus Console Initialization Rout ;*************************************************** ; conint: call fdtstat ;Clean input buffer rnz ;All empty call fdcin jmp conint endif ;End 2D/B console Initialization if contyp eq 4 ;*************************************************** ;Begin DJDMA Console Initialization Routine (CIDRV4) ;*************************************************** ; conint: call dminit ;See if controller present rc ;No controller, return lxi h,0 ;clear shld serin ;initialize no char present lxi h,dmaci ;Console initialization sequence lxi d,3 ;Halt offset call dmdoit ret ;DJDMA Initialization Command String ;----------------------------------- ; dmaci: db senabl ;Enable serial input db 1 db dmhalt db 0 endif ;End DJDMA Console intialization if contyp eq 6 ;******************************************************** ;Begin North Star Console Initialization Routine (CIDRV6) ;******************************************************** ; Initialize the North Star  instruction in output routine must be call to status ; so swap program can re-assign list status routine. ; Also, the pointer to the device name string must be just ahead of ; the entry point ; ;List Output ;----------- db 2 ;used by swap.com ; lstout: call lstost ;Check printer status ora a jz lstout ;Loop if not ready mov a,c ;Print the character out thr ret ;List Status ;----------- ; lstost: call sellst ;Printer status routine in lsr ;Check if transmitter buffer empty ani thre rz ;Return busy if buffer is not empty lhld lstand ;Fetch handshake mask bits in msr ;Get MODEM Status Register ana l ;Strip out hand-shake lines xra h ;Invert status rz ;Return busy if printer is busy lda lastch ;Get last character recieved from the printer mov b,a in lsr ;Check for a character from the printer ani dr jz xskip ;Skip if no character present in rbr ;Get the character ani 7fh ;Strip parity sta lastch ;Save last character recieved moine (CIDRV2) ;********************************************************************* ; This routine reads the sense switch on the WB-14 and sets ; the speed accordingly. ; conint: call selg0 ;Select group 0 in sensesw ;Get sense switch (ff on a Multio) push psw call selcon ;Select console pop psw push psw call tini0 ;Initialize the console pop psw push psw call selrdr ;Select the reader/punch pop psw call tini0 ;Initialize the reader/punch ret tini0: ani 0e0h ;Mask in upper three bits rlc ;Move into lower 3 bits rlc rlc cpi 7 ;check for sense = 7 (Default setting) jz dfbaud ;Use default baud rate lxi h,btab ;Pointer to baud rate table add a ;Table of words so double mov e,a ;Make a 16 bit number into (de) mvi d,0 dad d ;Get a pointer into baud rate table mov e,m ;Get lower byte of word inx h ;Bump to high byte of word mov d,m ;Get upper byte. (de) now has divisor jmp setit ;Set baud rate dfbaud: lhld defcon ;Use default baud r5Mother board, left serial port, right ; serial port, and North Star RAM parity. ; ;Initialize mother board conint: xra a ;Set up the parallel port + motherboard out 6 out 6 out 6 out 6 mvi a,30h ;Reset the parallel port input flag out nspsta mvi a,60h ;Set the parallel port output flag out nspsta mvi a,acr ;Force a CR out the parallel port call nspout ;Initialize the left serial port mvi a,nslin1 ;See the equates for bit definations out nslsta mvi a,nslin2 out nslsta xra a ;Clear the input/output buffers out nsldat in nsldat in nsldat ;Initialize the right serial port mvi a,nsrin1 ;See the equates for bit definations out nsrsta mvi a,nsrin2 out nsrsta xra a ;Clear the input/output buffers out nsrdat in nsrdat in nsrdat if nsram ne 0 ;Reset parity on North Star RAMs mvi a,40h ;Disable parity logic out nsram lxi h,0 ;Starting address nset0: mov a,m ;Get a byte mov m,a ;Rewrite, set proper parity inr l ;Bump the addresh out strobe ;assert restore (low true) mvi a,0FFh out strobe ;inactivate restore ret imult: lda group ori denable sta group ;turn parallel port drivers on out grpsel ;select parallel port mvi a,0C0h out strobe ;turn data strobe off lda group ori restor out grpsel ;assert restore lda group out grpsel ;de-assert restore ret endif ;End Multio/Wbio punch / list init page ;********************** ;Begin Cold Boot Loader ;********************** ; Cboot is the cold boot loader. All of CP/M has been loaded in ; when control is passed here. ; cboot: lxi sp,tpa ;Set up stack xra a ;Clear cold boot flag sta cwflg sta group ;Clear group select byte sta cpmdrv ;Select disk A: sta cdisk lxi h,cbios+3 ;Patch cold boot to warm code mov a,h sta bpage ;set CBIOS base page number shld cbios+1 lda iobyt ;Initialize the IOBYTE sta iobyte xra a lxi d,badmap ;Clear out bad map stax d lxi h,badmap+1 lxi b,9*badsiz ;32 map nerate the drive messages rept 16 ;Run off at least 16 drives if dn eq hdorder ;Generate the HDCA's message msbump maxhd*hdlog db 'HDCA ' if maxhd gt 1 db '(', maxhd+'0', ')' endif if m10 ne 0 if m10m ne 0 db 'Memorex' else db 'Fujitsu' endif db ' M10' endif if m20 ne 0 db 'Fujitsu M20' endif if m26 ne 0 db 'Shugart M26' endif endif if dn eq mworder ;Generate the HDDMA's message msbump maxmw*mwlog db 'HDC/DMA' if mwquiet eq 0 db ' ' if maxmw gt 1 db '(', maxmw+'0', ')' endif if st506 ne 0 db 'M5' endif if st412 ne 0 db 'M10' endif if cm5619 ne 0 db 'M16' endif endif endif if dn eq fdorder ;Generate the 2D/B message msbump maxfd db 'DJ2D/B @' prhex fdorig/100h prhex fdorig endif if dn eq dmorder ;Generate the DJDMA 8 message msbump maxdm db 'DJ/DMA 8"' endif if dn eq mforder ;Generate the DJDMA 5 1/4 message msbump maxmf db 'DJ/DMA 5 1/4"' endif dn set dn+1 endm db acr,alf s pointer jnz nset0 nset1: inr h ;Skip to the next memory page jz nset2 ;Skip if all done lxi d,$ + 100h ;fix for assem with rmac mov a,d ; mvi a,(high $) + 1 ;Is the pointer above us? cmp h ;Set carry if pointer is <= our page+1 jc nset0 ;Reset the next pages parity mov a,m ;Test for a PROM or no memory mov b,a ;Save the original byte cma ;See if this location will change mov m,a cmp m ;Test for a change mov m,b ;Restore the original value jz nset0 ;Value complemented, must be RAM ora a ;Test for no memory present jz nset1 ;Skip to the next page if no memory lxi d,700h ;Skip 2K bytes of 'PROM' dad d jnc nset1 ;Do a page check if no overflow nset2: mvi a,41h ;Re-enable parity on the memory boards out nsram endif crtset: ;Null routines ptrset: ptpset: uc1set: ur1set: ur2set: up1set: up2set: lptset: ul1set: ret endif ;End North Star Initialization page if (lsttyp ge 2) and (lsttyp le 5) ;************************************entries call movbyt mvi m,0ffh ;End marker if contyp ne 6 ;Non IOBYTE inits call conint ;Initialize the terminal call lstset ;Initialize the list device else ;Do IOBYTE inits lxi h,devset ;Device setup routine pointer table cboot0: mov e,m ;Load a routine address inx h mov d,m inx h mov a,d ;Test for the end of the table ora e jz cboot2 push h ;Save the table pointer lxi h,cboot1 ;Return address push h xchg pchl ;'CALL' a device setup routine cboot1: pop h ;Restore the table pointer jmp cboot0 ;Device setup routine pointers ;----------------------------- devset: dw conint, crtset, uc1set dw ptrset, ur1set, ur2set dw ptpset, up1set, up2set dw lptset, ul1set, 0 cboot2 equ $ endif lxi h,prompt ;Prep for sending signon message call message ;Send the prompt jmp gocpm ;Signon message output during cold boot ;-------------------------------------- ; Print a message like: ; ; Morrow Designs 48K CP/M 2.2 E4 ; AB: DJ/D db 0 ;End of message page ;Debugging checks ;---------------- codend equ $ savln equ codend+300h ;for movcpm codelen equ ($ - cbios) ;Length of Cbios code if codelen gt 1000h ;Test for SYSGEN problems 'FATAL ERROR, system is too big for SYSGEN rev. 4.X' dbgtmp set codelen ;Cbios code length ! endif if debug dbgtmp set codelen ;Cbios code length ! endif ;Reserve the space for the disk buffer ;------------------------------------- ds 512-($-buffer) ;Buffer for 512 byte sectors if (maxfd ne 0) or (maxdm ne 0) or (maxmw ne 0) or (maxmf ne 0) ds 512 ;Additional space for 1k sector devices endif page ;****************************** ;Begin Uninitialized Data Areas ;****************************** ; ;Bad Map Space ;============= ; Each bad map entry consists of 9 bytes: ; Logical drive number (1 byte) ; Track number of bad sector (2 bytes) ; Sector number of bad sector (2 bytes) ; Track number of alternate sector (2 bytes) ;******************************* ;Begi Multi I/ o Wunderbus Lis an Punc Initializatio ;Routine ;******************************************************************* ; lstset: call sellst ;Select printer group mvi a,dlab ;Access divisor latch out lcr lhld deflst ;Get LST: baud rate divisor mov a,h out dlm ;Set upper baud rate mov a,l out dll mvi a,stb+wls0+wls1 ;2 stop bits + 8 bit word out lcr mvi a,dtrenb+rtsenb ;DTR + RTS enabled out mcr in rbr ;Clear input buffer xra a out ier ;No interrupts ;fall thru to centronics init ;******************************************************************* ;Begin Multio I/O or Wunderbuss Parallel List Initialization Routine ;******************************************************************* ; punset: lda group out grpsel ;select parallel port in sensesw ;read motherboard switches cpi 0FFh ;FF is Multio jz imult mvi a,0FFh out strobe ;turn strobes off mvi a,0C0h out clk ;turn on drivers mvi a,07FMA 8", CD: DJ/DMA 5 1/4", E: HDC/DMA M5 ; ;Print String for the first line of the Sign-on message ;------------------------------------------------------ prompt: db 80h, clear ;Clean buffer and screen db acr, alf, alf db 'Morrow Designs ' db '0'+msize/10 ;CP/M memory size db '0'+(msize mod 10) db 'K CP/M ' ;CP/M version number db cpmrev/10+'0' db '.' db (cpmrev mod 10)+'0' db ' ' db (revnum/10)+'A'-1 db (revnum mod 10)+'0' db acr, alf ;Macros To generate the second line of the sign-on message ;--------------------------------------------------------- msdrv set 0 ;Start with drive A: msbump macro ndrives ;Print a drive name if dn gt 1 db ', ' endif rept ndrives db msdrv+'A' msdrv set msdrv+1 endm db ': ' endm prhex macro digit ;Write a byte in hex prnib digit/10h prnib digit endm prnib macro digit ;Write a digit in hex temp set digit and 0fh if temp lt 10 db temp + '0' else db temp - 10 + 'A' endif endm dn set 1 ;Ge6 Sector number of alternate sector (2 bytes) ; badmap: ds badsiz*9+1 ;32 entries + end marker ;Directory Buffer ;================ ; dirbuf: ds 128 ;Directory buffer ;Allocation and checked directory table area ;============================================ ; ;DJDMA 8" Drives ;--------------- ; if maxdm ne 0 ;Drive_0 csvdm0: ds 64 alvdm0: ds 75 ;Drive_1 csvdm1: ds 64 alvdm1: ds 75 ;Drive_2 csvdm2: ds 64 alvdm2: ds 75 ;Drive_3 csvdm3: ds 64 alvdm3: ds 75 ;dn set 0 ; rept maxdm ; alloc dm,%dn,75,64 ;dn set dn+1 ; endm endif ;DJDMA 5" Drives ;--------------- ; if maxmf ne 0 ;Drive_4 csvmf0: ds 48 alvmf0: ds 25 ;Drive_5 csvmf1: ds 48 alvmf1: ds 25 ;Drive_6 csvmf2: ds 48 alvmf2: ds 25 ;Drive_7 csvmf3: ds 48 alvmf3: ds 25 ;dn set 0 ; rept maxmf ; alloc mf,%dn,25,48 ;dn set dn+1 ; endm endif ;DJ2DB Drives ;------------ ; if maxfd ne 0 dn set 0 rept maxfd alloc fd,%dn,75,64 dn set dn+1 endm endif ;HDDMA Drivestructuring of the code Dealing ; with the disks at both the hi and lo levels. ; 1 17 83 JZ Now reads 5" soft sectored single density disks ; 1 16 83 JZ Patched up various holes in the disk error handeling ; routines in the Hi-Level routines SETDRV, READ, and ; WRITE and in the DJDMA Drivers ;*11 20 82 Marc Public release of revision E.31 ; 11 19 82 Marc Changed HDC3 equate to HDCA ; 11 19 82 Marc Changed blank IO routines from RET to JMP $ ; 11 19 82 Marc Converted BIOSLN to a byte value ; 11 9 82 Marc Reduced bad map size to 1 for non MW systems ; 11 8 82 Marc Deleted baud rate test from Multio drivers ; 11 4 82 Marc Added initial IOBYTE to IOCONF ; 11 3 82 Marc Added the North Star character I/O system ; 11 2 82 Marc Added character redirection code for the IOBYTE ; 11 1 82 Marc Changed serial i/o entry names to IOBYTE names ; 10 18 82 Marc Fixed SETHIGH for 2 sided DJDMA 8 inch disks ; 10 18 82 Marc Deleted the HyType drivers ;*10 1 82 Marc Public release of Marc Fixed double sided head settle time ; 7 14 82 Marc Optimized MWissue ; 7 14 82 Marc Clean up login message for HD a bit ; 6 30 82 Marc Fixed MF multi density problems ; 6 29 82 Marc Added Olivetti HD561/1 HD561/2 drives ; 6 28 82 Marc Added a MW error reporter ; 6 18 82 Marc Added nonstandard system mode flag ; 6 17 82 Marc Added a buffer error flag ; 6 17 82 Marc Added save/restore of 50-52 to MW driver ; 6 17 82 Marc Fixed Centronics drivers ; 6 7 82 Marc Fixed allocation map sizes ; 6 7 82 Marc Fixed MW partitioning ; 6 7 82 Marc Fixed HD partitioning (again) ; 5 13 82 Marc Fixed illegal MAC labels ; 5 11 82 Marc Fixed North Star drive configurations ; 4 30 82 Marc Fixed Quantum Q2040 tracks to 512 ; 4 29 82 Marc Fixed ST412 step constant to 0 ; 4 26 82 Marc Added unallocated writing ; 4 22 82 Marc Fixed HD partition overlap ; 4 20 82 Marc Started testing and debugging of E.3 ; 4 19 82 Marc Added 1 sector to HD warm boot loader ; 4 19 8 ;------------ ; if maxmw ne 0 dn set 0 trkoff set 8192/(mwsecpt/8)+1 psize set trkoff*(mwsecpt/8) rept maxmw blocks set mwsecpt/8*mwtrks rept blocks/8192 ;Generate some 8 megabyte ALV's alloc mw,%dn,256,0 blocks set blocks-psize dn set dn+1 endm blocks set blocks/4 if blocks gt 256 ;Use the remainder blocks set blocks-1 alv set (blocks/8)+1 alloc mw,%dn,%alv,0 dn set dn+1 endif endm endif ;HDCA Drives ;----------- ; if maxhd ne 0 dn set 0 rept maxhd if m26 ne 0 alloc hd,%dn,252,0 dn set dn+1 alloc hd,%dn,252,0 dn set dn+1 alloc hd,%dn,256,0 dn set dn+1 endif if m10 ne 0 alloc hd,%dn,159,0 dn set dn+1 alloc hd,%dn,161,0 dn set dn+1 endif if m20 ne 0 alloc hd,%dn,255,0 dn set dn+1 alloc hd,%dn,255,0 dn set dn+1 alloc hd,%dn,129,0 dn set dn+1 endif endm endif page ;Debugging Aids ;-------------- ; bioslen equ (high ($ - cbios)) + 1 ;BIOS length in pages if bioslen gt biosln ;Test for overflow 'FATALrevision E.3 ; 9 29 82 Marc 40H now points to the HDDMA command channel ; 9 28 82 Marc MW's now have 1024 directory entries ; 9 28 82 Marc Deleted the Centronics drivers ; 9 27 82 Marc Changed login message to look like a label ; 9 27 82 Marc Changed the login messages to say M5, M10, ... ; 9 27 82 Marc Redefined the dparam table structure ; 9 22 82 Marc Added a serial console for the Switchboard ; 9 22 82 Marc Added initialization code for serial group 2 ; 9 22 82 Marc Added sector size byte to the HDCA DPB's ; 9 22 82 Marc Added sector size parameter to DPBGEN ; 9 9 82 Marc Fixed system length checks for 64K systems ; 9 9 82 Marc SETHIGH was botching 2 sided DPB pointers ; 8 31 82 Marc Changed TRACKS in HD driver to HDTRAK ; 8 27 82 Marc Added code/system length checker ; 8 27 82 Marc mwreset save/restores the track number ; 8 26 82 Marc mwreset now sets *step and *dir for CMI ; 8 20 82 Marc Added 'equ'ed handshaking to the serial LST: ; 8 19 82 Marc R2 Marc Added mod. number to CBIOS rev. number ; 4 19 82 Marc Clean up login message 'if's ; 4 15 82 Marc Fixed MCR Initialization for LST: ; 4 15 82 Marc Added Seagate ST412 drive ; 4 6 82 Marc Moved serial LST: device to port 2 ; 4 1 82 Marc Added common group select routines ; 4 1 82 Marc Fixed Diablo HyType II initialization ; 4 1 82 Marc Fixed LISTST for PROM driver ; 3 16 82 Marc Added Tandon TM602 and TM603 drives ; 3 16 82 Marc Use 'part number' equates for MW drives ; 3 15 82 Marc Dropped hdrev and mwrev equates ; 3 15 82 Marc Seagate ST506 head settle is 0 ms. ; 3 15 82 Marc Added MiniScribe 1006 and 1012 drives ; *3 1 82 Marc Public release of revision E.2 ; 2 -- 82 Marc Pre-release testing and debugging ; 2 1 82 Les + Marc Initial coding of revision E end 1verlap ; 4 20 82 Marc Started testing and debugging of E.3 ; 4 19 82 Marc Added 1 sector to HD warm boot loader ; 4 19 8 ERROR, system overflow. BIOSLN must be at least' dbgtmp set bioslen ;BIOSLN! endif if debug dbgtmp set biosln ;Current BIOSLN! if biosln gt bioslen dbgtmp set bioslen ;Optimal BIOSLN! endif endif page ;Revision History ;================ ; ; ; Date Programmer Description ; ; 9 07 83 west * Public release of E.4 for dj/dma and hdc/dma. ; 9 13 83 west repaired dj console init/drivers ; 9 12 83 west multio initialization selects switches correctly ; 8 23 83 west all multio/wbio devices have names for swap.com ; 8 22 83 west PREP: now allows normal seeks to track zero ; 8 21 83 west all multio/wbio character devices return pointer ; to 'group' in [de] to TPA program ; 8 15 83 west all multio/wbio serial list have centronics punch ; and rdr: implemented as list input ; 5 5 83 F.R.K. add parallel centronics printer thru Mulito/Wbio ; 3 28 83 F.R.K. add dbl-sided soft sector, fix for rmac ; 1 18 83 JZ Did a cosmetic resemoved clock switching code from HDCA driver ; 8 18 82 Marc Added handshake configuration code ; 8 18 82 Marc Added handshake configuration bytes ; 8 18 82 Marc Removed 'equ'ed handshaking from LST: ; 8 12 82 Marc Added configuration entries for a0 & d0 ; 8 11 82 Marc Added the autostart command structure ; 8 11 82 Marc Redefined the configuration table ; 8 11 82 Marc Added DJDMA drive parameter table ; 8 9 82 Marc Added clock switching to HDCA code ; 8 9 82 Marc Added seek complete clearing in HDCA ; 8 6 82 Marc Added buffer disable on home ; 8 6 82 Marc Fixed 8250 UART initialization sequence ; 8 6 82 Marc Strip parity on conout to clear up glitches ; 8 6 82 Marc Fixed the 8 inch dpb256ss DPB's EXM ; 8 6 82 Marc Increased the HD capacities slightly ; 8 6 82 Marc Deleted all non-supported MW drives ; 8 6 82 Marc Deleted call to flush in conout ; 8 6 82 Marc Moved printer back to port 3 ; 7 28 82 Marc Moved conin flush call to conout ; 7 27 82 7;********************************************************************** Title 'Cold Boot Loader Rev_E4 27_Jan_83 Copyright_1983 Morrow Designs' ;********************************************************************** ; ;The following Cold Boot Loader Programs are included in this module ;------------------------------------------------------------------- ; DJDMA Disk Jockey DMA controller with 8" Drives ; DJDMA Disk Jockey DMA controller with 5 1/4" Drives ; DJ2DB Disk Jockey 2D Rev_B (8" floppy) controller ; HDDMA Hard Disk DMA controller ; HDC3 Hard Disk Controller rev_3 ; ;Note: ;----- ; Provisions have been made for a Micronix boot loader for use with ; the DJDMA Controller. This loader always gets loaded to 0100h. ; ;System Memroy Maps ;================== ; 1) The following table gives a general idea as to where the ; various parts of of the operating system are in memory. ; 2) The amount of code and table space that can actually be ; loaded from the disk is fixed by the amountontroller hdorder equ FALSE ;Set to boot an HDC3 controller ;Misc Equates ;------------ ; micron equ FALSE ;Set for Micronix boot loader (only DJDMA) absasm equ false ;set for MAC retries equ 10 ;Maximum # of disk retries page ;***************************** ;Begin Internal System Equates ;***************************** ; ;Sizes ;----- ; biosln equ 13h ;BIOS length in pages ccpln equ 800h ;Length of the CCP bdosln equ 0e00h ;Length of the BDOS size equ (msize*1024) ;Memory size in Kilo-bytes ;Starting addresses ;------------------ ; ccp equ size-(biosln*100h+ccpln+bdosln) bdos equ ccp+ccpln bios equ ccp+ccpln+bdosln ader ; that is to be used. ; dmorder equ FALSE ;Set to boot a DJDMA controller 8" Drives) mforder equ TRUE ;Set to boot a DJDMA controller (5 1/4" Drives) fdorder equ FALSE ;Set to boot a DJ2D/B controller mworder equ FALSE ;Set to boot a HDDMA c6 2a00 b000 ; 1 7 2e00 b400 ; 1 8 3200 b800 Unused page ;8" DJDMA Equates ;================ ; ;Define Boot Address for DJDMA boot equ 80h org boot djkick equ 0EFh ;I/O port to start DJDMA controller activity channl equ 50h ;Default Channel Address trkoff equ 22*128 ;Number of bytes loaded from track 0 setdma equ 23h ;Set DMA address djhalt equ 25h ;Halt controller djbran equ 26h ;Branch controller command redtrk equ 29h ;Read track command load2 equ 100h ;read offset#2 for movcpm offset equ 900h-boot ;read offset for DDT page ;Begin 8" DJDMA Executable Code ;============================== ; mvi a,djbran ;Load branch channel command sta channl lxi h,commnd ;Load new command channel address shld channl+1 xra a sta channl+3 djstrt: out djkick ;Start controller djwait: lda djdone ;Get final status ora a ;0 = still busy jz djwait ;Loop if busy lxi h,sectb0 ;Check for bad load lxi b,40ffh ;b = ok, c = loaded lxi d,endtbl-sectb0 ;Error co of space available ; on the system tracks. ; 3) Our most restrictive (smallest) drive is the 5 1/4 inch ; 'minnie floppy'. This drive has 20 512 byte sectors for ; a total of 10k bytes on the system tracks. The 8 inch ; floppy disk drive is also very close to being filled up. ; 4) Since 512 bytes are reserved for the cold boot loader we ; have a total of 9.5k bytes for the operating system. Out ; of this 5.5k bytes are used by the (CCP + BDOS) leaving ; us with a total of 4k bytes of loaded code and data space ; to play with. Right now we are using all of this space ; so any major additions will have to result in a little ; (lot?) of code shuffeling or in the creation of a Cbios ; that simply will not fit on a small disk drive. ; 5) The BIOS can take up as much as 6.4k bytes of space; However, ; only 4k bytes are actually on the disk. The remaining space is ; used for uninitialized storage. ; ; sysgen 48k 56k 60k 62k 64k ; image CP/M CP/M CP/M C if not absasm aseg endif ccpln equ 800h bdosln equ 0e00h bios equ ccp+ccpln+bdosln size equ msize*1024 retries equ 10 load1 equ 100h ;read offset#1 for movcpm ;Load and execution addresses ;---------------------------- ; 1) If this program is being used to boot Micronix, and the load ; address is moved forward from 0100h, then the starting extended ; address for the djdma boot loader should be adjusted. ; if micron eq FALSE loaddr equ ccp ;Load address for floppy cboot equ bios ;Cold boot address for CP/M else ;Micronix boot loader loaddr equ 0100h cboot equ 0100h ;Cold boot address for the loader endif page if (dmorder eq 1) ;****************************************************************** ;Cold boot loader for the Disk Jockey DMA controller using 8" Disks ;****************************************************************** ; ;Disk Map of the Boot Sectors ;============================ ; 1) The loading is identical to that of of the DJ2DB except ; unt + # of sectors djloop: mov a,m ;Load sector code cmp c ;Check for 0ffh (already loaded) jz djcont ;Skip if load was 'ok' mov m,c ;Load 'loaded' flag cmp b ;Check for 'ok' status jz djcont ;Skip if load ok inr m ;Make flag = 0 inr d ;Bump error counter djcont: dcr e ;Bump sector count inx h ;Bump table pointer jnz djloop mov a,d ;Check out error counter ora a jz cboot ;Start CP/M if no errors dcr m ;Drop retry counter jnz djstrt ;Retry load operation jmp $ ;Dynamic error halt ;DJDMA Command Strings ;--------------------- ; ;Set the DMA Address commnd: db setdma dw loaddr-512 ;Start at CCP if micron eq FALSE db 0 ;Extended address for CP/M else db 0ffh ;Wrap around from ffff00 to 000100 endif ;Read a Track db redtrk db 0 ;Track 0 db 0 ;Side 0 db 0 ;Drive 0 dw sectb0 ;Sector table 0 db 0 ;Extended address db 0 ;Returned status ;Set the DMA Address db setdma dw loaddr+trkoff ;Load address for track 1 db 0 P/M CP/M ; ; 900 ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ Loader ; B00 9100 B100 C100 C900 D100 CCP ; 1300 9900 B900 C900 D100 D900 BDOS ; 2100 A700 C700 D700 EF00 E700 Cbios ; 3100 B700 D700 E700 FF00 F700 Tables (approx.) ; 35FF BFFF DFFF EFFF F7FF FFFF End of Memory ; ; ~~~~ 8900 A900 B900 C100 C900 DDT page ;***************************** ;Begin User Configuration Area ;***************************** ; ;Define TRUE and FALSE ;--------------------- ; TRUE equ 1 FALSE equ 0 ;Set the Memory Size ;------------------- ; msize equ 48 ;Memory size of target CP/M ;Boot Controller Selection ;------------------------- ; Only one of the following equates should be set to TRUE. The ; others sould be set to FALSE. These equates define the boot loader ; that is to be used. ; dmorder equ FALSE ;Set to boot a DJDMA controller 8" Drives) mforder equ TRUE ;Set to boot a DJDMA controller (5 1/4" Drives) fdorder equ FALSE ;Set to boot a DJ2D/B controller mworder equ FALSE ;Set to boot a HDDMA c that the loader itself is loaded at 80h ; 2) This program makes use of the fact that the DJDMA has a load track ; command. ; 3) Track 1 is recorded in double density format. There are ; 1024 bytes per sector. ; 4) The warm boot starts from track 0 sector 1 and continues ; through to track 1 sector 1. ; 5) The load address assumes that you're using a 48k system ; ; track sector sysgen load Name ; ; 0 1 900 ff00 Boot loader ; 0 2 980 Unused ; 0 3 a00 ; 0 4 a80 ; 0 5 b00 9100 CCP ; 0 6 b80 9180 ; 0 7 c00 9200 ; 0 8 c80 9280 ; 0 9 d00 9300 ; 0 10 d80 9380 ; 0 11 e00 9400 ; 0 12 e80 9480 ; 0 13 f00 9500 ; 0 14 f80 9580 ; 0 15 1000 9600 ; 0 16 1080 9680 ; 0 17 1100 9700 ; 0 18 1180 9780 ; 0 19 1200 9800 ; 0 20 1280 9880 ; 0 21 1300 9900 BDOS ; 0 22 1380 9980 ; 0 23 1400 9a00 ; 0 24 1480 9a80 ; 0 25 1500 9b00 ; 0 26 1580 9b80 ; ; 1 1 1600 9c00 ; 1 2 1a00 a000 ; 1 3 1e00 a400 CBIOS (@ a700h) ; 1 4 2200 a800 ; 1 5 2600 ac00 ; 1 8 ;Extended address ;Read a Track db redtrk db 1 ;Track 1 db 0 ;Side 0 db 0 ;Drive 0 dw sectb1 ;Sector table 1 db 0 ;Extended address db 0 ;Returned status ;Halt Command db djhalt djdone: db 0 ;Returned status ;Sector Tables for read track command ;------------------------------------ ; 1) Boot + 5ch contains 'configuration byte' for 5" systems ; org boot+5dh sectb0: dw 0ffffh, 0ffffh ;Do not load boot loader dw 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;22 sectors to be loaded sectb1: dw 0, 0, 0, 0ff00h ;First seven sectors ;Other Storage ;------------- ; db retries ;Retry counter endtbl equ $-1 ;end of table marker endif ;End of 8" DJDMA Cold Boot Loader page if (mforder eq 1) ;********************************************************************** ;Cold boot loader for the Disk Jockey DMA controller using 5 1/4" Disks ;********************************************************************** ; ;DJDMA Disk Controller (5 1/4" Disks) ;=============m ;Make flag = 0 inr d ;Bump error counter djcont: dcr e ;Bump sector count inx h ;Bump table pointer jnz djloop mov a,d ;Check out error counter ora a jz cboot ;Start CP/M if no errors dcr m ;Drop retry counter jnz djstrt ;Retry load operation jmp $ ;Dynamic error halt ;DJDMA Command Strings ;--------------------- ; ;Set the DMA Address commnd: db setdma dw loaddr-512 ;Start at CCP if micron eq 0 db 0 ;Extended address for CP/M else db 0ffh ;Wrap around from ffff00 to 000100 endif ;Read a Track db redtrk db 0 ;Track 0 db 0 ;Side 0 db 0 ;Drive 0 dw sectb0 ;Sector table 0 db 0 ;Extended address db 0 ;Returned status ;Set the DMA Address db setdma dw loaddr+trkoff ;Load address for track 1 db 0 ;Extended address ;Read a Track db redtrk db 1 ;Track 1 db 0 ;Side 0 db 0 ;Drive 0 dw sectb1 ;Sector table 1 db 0 ;Extended address db 0 ;Returned status ;Halt Command db djhalt ;Halt controller djdone:  6 2a00 b000 3 ; 1 7 2e00 b400 7 ; 1 8 3200 b800 Unused page ;DJ2DB Equates ;============= ; ;Define Boot Address for DJ2DB boot equ djram+300h ;Upper 3/4 of on board floppy RAM org boot origin equ 0f800h ;Orgin of DJ 2D Mod B PROM djram equ origin+400h ;Disk Jockey 2D Mod B routines tkzero equ origin+9h ;Track 0 seek trkset equ origin+0ch ;Set track setsec equ origin+0fH ;Set sector setdma equ origin+12h ;Set DMA address dread equ origin+15h ;Read sector dmast equ origin+24h ;Get DMA address status equ origin+27h ;Disk status dskerr equ origin+2ah ;Flash error light setden equ origin+2dh ;Set density load2 equ 100h ;read offset#2 for movcpm offset equ 900h-boot ;read offset for DDT page ;Begin DJ2DB Executable Code ;=========================== t0boot: mvi a,5-2 ;First sector - 2 newsec equ $-1 inr a ;Update sector # inr a cpi 27 ;Size of track in sectors + 1 trksiz equ $-1 jc nowrap ;Skip if not at end of track jnz t1boot ;Done with======================= ; 1) The warm boot starts from track 0 sector 1 and continues ; through to track 1 sector 1. ; 2) The cold boot loader (track 0, sector 0) is loaded into ; RAM at 80h. This loader will start loading from track 0, ; sector 1 and stops at track 1, sector 9. The load ; sequence is as follows: ; ; track sector sysgen load order Name ; 0 0 900 80 0 Cold boot ; 0 1 b00 9500 1 CCP ; 0 2 d00 9700 2 ; 0 3 f00 9900 3 ; 0 4 1100 9b00 4 ; 0 5 1300 9d00 5 BDOS ; 0 6 1500 9f00 6 ; 0 7 1700 a100 7 ; 0 8 1900 a300 8 ; 0 9 1b00 a500 9 ; ; 1 0 1d00 a700 10 ; 1 1 1f00 a900 11 ; 1 2 2100 ab00 12 CBIOS ; 1 3 2300 ad00 13 ; 1 4 2500 af00 14 ; 1 5 2700 b100 15 ; 1 6 2900 b300 16 ; 1 7 2b00 b500 17 ; 1 8 2d00 b700 18 ; 1 9 2f00 b900 19 page ;5 1/4" DJDMA Equates ;==================== ; ;Define Boot Address for DJDMA boot equ 80h org boot djkick equ 0EFh ;I/O port to start DJDMA controller activity channl equ db 0 ;Returned status ;Sector tables for read track command ;------------------------------------ ; 1) Boot + 5ch contains 'configuration byte' for 5" drives org boot+5dh sectb0: dw 0ffh, 0, 0, 0, 0 ;Do not load boot loader sectb1: dw 0, 0, 0, 0, 0 ;Load ten sectors ;Other storage ;------------- ; db retries ;Retry counter endtbl equ $-1 ;end of table marker endif ;End of 5 1/4" DJDMA Cold Boot Loader page if (fdorder eq 1) ;************************************************************* ;Cold boot loader for the Disk Jockey 2D Revision B controller ;************************************************************* ; ;Disk Map of the Boot Sectors ;============================ ; 1) The 'order' column is the interleave sequence used by the ; loader during the load. ; 2) Three spare sectors (track 0, sectors 2 to 4) have been ; provided for a more advanced boot loader at a later date. ; 3) The warm boot loader starts on track 0, sector 5 and ; continues through  this track exit equ $-2 sui 27-6 ;Back up to sector 6 backup equ $-1 lxi h,loaddr-80h ;Memory address of sector - 100h nxtdma equ $-2 shld newdma nowrap: sta newsec ;Save the updated sector # mov c,a call setsec ;Set up the sector lxi h,loaddr-100h ;Memory address of sector - 100h newdma equ $-2 lxi d,100h ;Update DMA address secsiz equ $-2 dad d nowrp: shld newdma ;Save the updated DMA address mov b,h mov c,l call setdma ;Set up the new DMA address lxi b,retries*100h+0;Maximum # of errors, track # nxtrty equ $-2 fread: push b call trkset ;Set up the proper track call dread ;Read the sector pop b jnc t0boot ;Continue if no error dcr b jnz fread ;Keep trying if error jmp dskerr ;Too many errors, flash the light t1boot: lxi h,cboot ;We jump to cboot next time shld exit mvi c,1 ;Select double density call setden xra a ;First sector - 2 sta newsec mvi a,8 ;Size of (logical) track + 1 sta trksiz dcr a ;Number of sector50h ;Default Channel Address trkoff equ 9*512 ;Number of bytes loaded from track 0 setdma equ 23h ;Set DMA address djhalt equ 25h ;Halt controller djbran equ 26h ;Branch controller command redtrk equ 29h ;Read track command load2 equ 100h ;read offset#2 for movcpm offset equ 900h-boot ;read offset for DDT page ;Begin 5 1/4" DJDMA Executable Code ;================================== ; mvi a,djbran ;Load branch channel command sta channl lxi h,commnd ;Load new command channel address shld channl+1 xra a sta channl+3 djstrt: out djkick ;Start controller djwait: lda djdone ;Get final status ora a ;0 = still busy jz djwait ;Loop if busy lxi h,sectb0 ;Check for bad load lxi b,40ffh ;b = ok, c = loaded lxi d,endtbl-sectb0 ;Error count + # of sectors djloop: mov a,m ;Load sector code cmp c ;Check for 0ffh (already loaded) jz djcont ;Skip if load was 'ok' mov m,c ;Load 'loaded' flag cmp b ;Check for 'ok' status jz djcont ;Skip if load ok inr to track 1 sector 3. Only the first ; 3/4 K bytes of track 1, sector 3 is loaded since CP/M ; requires that the warm boot loader load up to the start ; of (but not past) the Cbios jump table. ; ; track sector sysgen load order Name ; ; 0 1 900 ff00 0 Boot loader ; 0 2 980 Unused ; 0 3 a00 ; 0 4 a80 ; 0 5 b00 9100 1 CCP ; 0 6 b80 9180 12 ; 0 7 c00 9200 2 ; 0 8 c80 9280 13 ; 0 9 d00 9300 3 ; 0 10 d80 9380 14 ; 0 11 e00 9400 4 ; 0 12 e80 9480 15 ; 0 13 f00 9500 5 ; 0 14 f80 9580 16 ; 0 15 1000 9600 6 ; 0 16 1080 9680 17 ; 0 17 1100 9700 7 ; 0 18 1180 9780 18 ; 0 19 1200 9800 8 ; 0 20 1280 9880 19 ; 0 21 1300 9900 9 BDOS ; 0 22 1380 9980 20 ; 0 23 1400 9a00 10 ; 0 24 1480 9a80 21 ; 0 25 1500 9b00 11 ; 0 26 1580 9b80 22 ; ;Track 1 is recorded in double density format. There are ;1024 bytes per sector. ; ; 1 1 1600 9c00 4 ; 1 2 1a00 a000 1 ; 1 3 1e00 a400 5 CBIOS (@ a700h) ; 1 4 2200 a800 2 ; 1 5 2600 ac00 6 ; 1 9s to back up sta backup lxi h,loaddr+0700h ;DMA start address for first revolution - 2048 shld newdma lxi h,loaddr+0300h ;DMA start address for second revolution - 2048 shld nxtdma lxi h,2048 ;Difference between DMA addresses shld secsiz lxi h,retries*100h+1;Maximum # of errors, track # shld nxtrty jmp t0boot ;Go load in track 1 endif ;End of DJ2DB Cold Boot Loader page if (mworder eq 1) ;***************************************** ;Cold Boot loader for the HDDMA Controller ;***************************************** ; ;Disk Map of the Boot Sectors (Shugart SA1000 disk interface) ;============================================================ ; 1) Since 1k byte sectors were implemented on this disk ; track 0, sector 1 contains both the cold boot loader and ; part of the CCP. The cold boot loader relocates this ; piece of the CCP to it proper resting place as part of ; the boot process. ; ; track sector sysgen load order Name ; 0 1 900 100 0 Cold boot + CCPxi b,10*100h+2 ;B = sector count, C = sector # call clodhd jmp cboot ;Go to CP/M clodhd: push b ;Save sector and count mov a,c ;Load sector sta hdsec lxi h,loaddr-200h ;Get DMA address (self modifying) cdmahd equ $-2 ;Storage for previous DMA address lxi d,400h dad d ;Add in offset, HL = new DMA address shld cdmahd ;Save new DMA address call crdhd ;Attempt a read pop b ;Recover sector number and count ; B = count, C = number dcr b ;Update sector count rz ;All done ? inr c ;Bump sector number jmp clodhd ;Continue reading page ;Low level HDDMA drivers ;------------------------ ; crdhd does the actual read from the controller, the DMA ; address and sector # have already been set up. ; crdhd: call hdsetup ;Set up parameters lxi b,retries*100h+1 ;Maximum # of attempts crhd: push b ;Save error count call hdissue ;Attempt the read pop b ;Restore the error count rnc ;Return if no error dcr b ;Update error count jnz crhd ;Try again ifnded address dmarg0: db 0 ;First argument dmarg1: db stepdly ;Second argument (stepping time) dmarg2: db headdly ;Third argument (Settle time) dmarg3: db sectsiz ;Fourth argument (Sector size) dmaop: db dmalcon ;Operation code dmastat:db 0 ;Controller status byte dmalnk: dw dmachan ;Link address to next command channel db 0 ;extended address org boot+200h cstkhd equ $ ;Stack area at end of sector endif ;End of HDDMA Cold Boot Loader page if (hdorder eq 1) ;************************************ ;Cold Boot loader for HDC3 Controller ;************************************ ; ;Disk Map of the Boot Sectors (Shugart SA4000 disk interface) ;============================================================ ; 1) The cold boot loader (track 0, sector 1) is loaded into ; RAM in the very last part of the Cbios. This area is ; used for uninitialized tables and thus is a safe place ; for the loader. This cold boot loader will start loading ; the CCP from track 0, sector 2 ; 0 2 d00 9300 1 ; 0 3 1100 9700 2 ; 0 4 1500 9b00 3 Bdos (@ 9d00) ; 0 5 1900 9f00 4 ; 0 6 1d00 a300 5 ; 0 7 2100 a700 6 Cbios ; 0 8 2500 ab00 7 ; 0 9 2900 af00 8 ; ; 1 10 2d00 b300 9 page ;HDDMA Equates ;============= ; ;Define Boot Address for HDDMA boot equ 100h org boot cyl equ 153 ;Specifications for a Seagate Technology 506 heads equ 4 ;Number of heads per cylinder spt equ 9 ;Sectors per track precomp equ 64 ;Cylinder to start write precomensation lowcurr equ 128 ;Cylinder to start low current stepdly equ 30 ;Step delay (0-12.7 milliseconds) headdly equ 20 ;Settle delay (0-255 milliseconds) sectsiz equ 7 ;Sector size code (must be 7 for this Cbios) ;0 = 128 byte sectors ;1 = 256 byte sectors ;3 = 512 byte sectors (default for Micronix) ;7 = 1024 byte sectors (default for CP/M) ;f = 2048 byte sectors ;Define controller commands dmaread equ 0 ;Read sector dmawrit equ 1 ;Write sector dmarhed equ 2 ;Find a se not too many errors error: jmp $ ;Dynamic error halt hdsetup:shld dmadma ;Set up DMA address call hdreset ;Reset controller lda hdsec ;Set logical sector number dcr a ;Range is actaully 0-16 call divspt ;Figure out head number -> (c) adi spt ;Make real sector number sta dmarg3 mov a,c sta dmarg2 ;Save head number cma ;Negative logic for the controller ani 7 ;3 bits of head select rlc ;Shove over to bits 2 - 4 rlc sta dmasel1 ;Save in command channel head select ret divspt: mvi c,0 ;Clear head counter divsptx:sui spt ;Subtract a tracks worth of sectors rc ;Return if all done inr c ;Bump to next head jmp divsptx hdreset:mvi a,(ret) ;One time code sta hdreset out reset ;Send reset pulse to controller lxi h,dmachan ;Address of command channel shld chan ;Default channel address xra a sta chan+2 ;Clear extended address byte xthl ;Wait for reset (around 10 uSEC's) xthl call hdissue ;Do load constants jc error ;Controller not and will finish up with ; the last part of the Cbios on track 0, sector 20. ; 2) The warm boot load sequence starts at track 0, sector 2 ; and goes straight through to sector 12. There is still ; plenty of room left in this loader for more advanced ; things like sector interleaving although this is hardly ; necessary on a hard disk. ; ; track sector sysgen load order Name ; 0 1 900 fc00 1 Cold boot ; 0 2 b00 9500 2 CCP ; 0 3 d00 9700 3 ; 0 4 f00 9900 4 ; 0 5 1100 9b00 5 ; 0 6 1300 9d00 6 BDOS ; 0 7 1500 9f00 7 ; 0 8 1700 a100 8 ; 0 9 1900 a300 9 ; 0 10 1b00 a500 10 ; 0 11 1d00 a700 11 ; 0 12 1f00 a900 12 ; 0 13 2100 ab00 13 CBIOS ; 0 14 2300 ad00 14 ; 0 15 2500 af00 15 ; 0 16 2700 b100 16 ; 0 17 2900 b300 17 ; 0 18 2b00 b500 18 ; 0 19 2d00 b700 19 ; 0 20 2f00 b900 20 ; 0 21 3100 Unused page ;HDC3 Equates ;============ ; ;Define Boot Address for HDC3 boot equ size-512 ;very last part of CP/M system org boot hdorg equ 50ctor dmawhed equ 3 ;Write headers (format a track) dmalcon equ 4 ;Load disk parameters dmassta equ 5 ;Sense disk drive status dmanoop equ 6 ;Null controller operation reset equ 54h ;Reset controller attn equ 55h ;Send a controller attention chan equ 50h ;Default channel address stepout equ 10h ;Step direction out stepin equ 0 ;Step direction in band1 equ 40h ;No precomp, high current band2 equ 0c0h ;Precomp, high current band3 equ 80h ;precomp, low current track0 equ 1 ;Track zero status wfault equ 2 ;Write fault from drive dready equ 4 ;Drive ready load2 equ 100h ;read offset#2 for movcpm offset equ 900h-boot ;read offset for DDT page ;Begin HDDMA Executable Code ;=========================== ; lxi sp,cstkhd ;Set up stack at end of this sector lxi h,boot+200h ;Copy part of CCP up lxi d,loaddr lxi b,200h movlop: mov a,m ;Get a byte stax d ;Save it inx h ;Bump pointers inx d dcx b ;Bump counter mov a,b ;Test for end ora c jnz movlop l present mvi a,dmassta ;Sense status command sta dmaop rdychek:call hdissue ani dready ;Check for drive ready jnz rdychek ;Loop if not ready lxi h,0ffffh shld dmastep ;Do recalibrate call hdissue lxi h,0 shld dmastep ;Clear step counter shld dmarg0 ;Clear cylinder # shld dmarg3 ;Clear sector # + read disk command ret hdissue:lxi h,dmastat ;Status byte mvi m,0 out attn ;Start controller lxi d,0 ;Time out counter mov b,e ;Controller busy status hdiloop:mov a,m ;Get status ora a ;Set up CPU flags rm ;Return no error (carry reset) stc rnz ;Return error status xthl ;Waste some time xthl xthl xthl dcx d ;Bump timeout counter mov a,d ora e jnz hdiloop ;Loop if still busy stc ;Set error flag ret hdsec: db 0 ;Currently selected sector dmachan equ $ ;Command channel area dmasel0:db 10h ;Drive select (step out, drive 0) dmastep:dw 0 ;Relative step counter dmasel1:db 0 ;Head select dmadma: dw 0 ;DMA address db 0 ;Exte:h ;Hard Disk Controller hdstat equ hdorg ;Hard Disk Status hdcntl equ hdorg ;Hard Disk Control hddata equ hdorg+3 ;Hard Disk Data hdfunc equ hdorg+2 ;Hard Disk Function hdcmnd equ hdorg+1 ;Hard Disk Command hdreslt equ hdorg+1 ;Hard Disk Result retry equ 2 ;Retry bit of result tkz equ 1 ;Track zero bit of status opdone equ 2 ;Operaction done bit of status complt equ 4 ;Complete bit of status tmout equ 8 ;Time out bit of status wfault equ 10h ;Write fault bit of status drvrdy equ 20h ;Drive ready bit of status indx equ 40h ;Index bit of status pstep equ 4 ;Step bit of function nstep equ 0fbh ;Step bit mask of function hdrlen equ 4 ;Sector header length secln equ 512 ;Sector data length wenabl equ 0fh ;Write enable wreset equ 0bh ;Write reset of function scenbl equ 5 ;Controller control dskclk equ 7 ;Disk clock for control mdir equ 0f7h ;Direction mask for function null equ 0fch ;Null command idbuff equ 0 ;Initialize data command isbuff equ 8 ;Initialize headk ;Turn on Disk Clock out hdcntl in hdstat ani tmout ;Timed out ? stc rnz in hdreslt ani retry ;Any retries ? stc rnz xra a ;No error exit ret hdprep: in hdstat ;Is Drive ready ? ani drvrdy stc rnz mvi a,isbuff ;Initialize pointer to header buffer out hdcmnd mvi a,null out hdfunc ;Select drive A xra a out hddata ;Form head byte out hddata ;Form track byte mvi a,0 ;Form sector byte hdsec equ $-1 out hddata mvi a,80h ;Form Key out hddata mvi a,dskclk ;Turn on Disk clock out hdcntl mvi a,wenabl ;Write enable on out hdcntl ret org boot+200h-2 ;Last word on sector is load address cstkhd equ $ dw boot endif ;End of HDC3 Cold Boot Loader end te two mov m,a inx h in hddata ;Byte three mov m,a inx h in hddata ;Byte four mov m,a inx h dcr b ;Update byte count jnz rtloop ret process:in hdstat ;Wait for command to finish mov b,a ani opdone jz process mvi a,dskclͳ*sú*sͳ!*sͶ !~ʺ!ú!Qk:KkH :LkV !͛?ú:Kk2Kk:Lk2Lk*Kk~2Mk#~2Nk#~2Ok#~2Pk!!Mk##N#F+++N#F*Qs͑0ú!*sͶ !Ai!sú*sͻ#*sͳ*s͋ ú*sͳ*súú*s,*s͋ !>͋ !͛?úͶh!~#fo"Xy*Xy~ : *Xy~ : *Xy~ D *Xy#"Xy *XyMDhͶh!~#fo"Xy*Xy i`"Xy*Xy> *Xy~ *Xy#"Xyg *XyMDhͶh!~#fo"Xy*Xy~ *Xy~2s:s{ ! ͟ !͟ !(͟ Õ h:s} ! ͟ !͟ !)͟ Õ :s ! ͟ ! ͟ Õ :s^‰ *Xy ~^‰ *Xy ~OG "yʉ *Xy ~OG "yʉ *Xy ~2s*Xy 6*Xy ͟ *Xy :sw*Xy###"XyÕ :sOG͟ *Xy#"XyÙ ͫh!N#F! òhͶh!~#fo"Xy!~#fo"Ty*Xy i`"Xy*Xy~@ *Xy~$ *Xy~* *Xy~#1 *Ty*Ty#"Ty*Xy*Xy#"Xy~*Xy~A *Xy>Z *Xy~0t *Xy>9t *Xy~0 *Xy>9 *Ty*Ty#"Ty*Xy*Xy#"Xy~C *Xy~A *Xy>Z *Xy~a *Xy>z *Xy~_ *Xy~ *Ty*Ty#"Ty*Xy*Xy#"Xy~ *Xy~a *Xy>z *Xy~0 *Xy>9 *Xy~_ *Ty*Ty#"Tyer command rsect equ 1 ;Read sector command wsect equ 5 ;Write sector command load2 equ 0h ;read offset#2 for movcpm offset equ 900h-boot ;read offset for DDT page ;Begin HDC3 Executable Code ;========================== ; lxi sp,cstkhd ;Set up stack at end of this sector lxi b,19*100h+2 ;B = sector count, C = sector # call clodhd jmp cboot ;Go to CP/M clodhd: push b ;Save sector and count mov a,c ;Load sector sta hdsec lxi h,loaddr-200h ;Get DMA address (self modifying) cdmahd equ $-2 ;Storage for previous DMA address lxi d,200h ;Offset to new DMA address dad d ;Add in offset, HL = new DMA address shld cdmahd ;Save new DMA address call crdhd ;Attempt a read pop b ;Recover sector number and count ; B = count, C = number dcr b ;Update sector count rz ;All done ? inr c ;Bump sector number jmp clodhd ;Continue reading page ;Low level HDC3 drivers ;---------------------- ; crdhd does the actual read from the controller, the DMA ; *ͻK͛?!9N#F#^#V#~#fo"7ikb"5ii`"3iOGPilot - Len Edmondson - Morrow Designs - 1982CASEDIEIEXISTINSTALLOUTCPMCHCALLLOADLFCURCLRSCOMPILEHOLDSAVEWAITESCDEFERASTRBELLRCENDEUJMCMINMAXAPRTNRTͫhòhͫh!>>#['y)!͛?))!~#fo##N#F2òhͶh!9!~#fo"Xy*Qs!!.3*Qs ~#fo}0lh!̀#!-Ji`"Ck!Mk:Dk2Dy2Ey:Dk2Gy:Ck2Fy!Dy͙d!\EStack overflow    :  xE = 7#1!" yn+  t$ : Unrecognized instruction Ͷh!9!~#fo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9N#Fkb9eàe͓eÇf!9~f/<ghO!9~#fo##~w#~w+++~w#~w fh!9~g/#w>+++w>#w!9N#F!9~#fo  # # #h!9N#F!9~#fo ## # +++ #h~#’h#~#foy#¦hx#§h+++~#fo##Æh!9!9*Xy*Vy*Tyi`!"Ty"Vy"Xy!9N#F###q#p+++q!9N#F#q>    #}yq k!h"e$`ZyCCCAOG!T!>Aw!q>U#w t/w o#Z(l( 7!qx(#w ?#Z(l *!x( !#Z(l( (e7!>?~G(?(>-\( (>xT'!xT->G~-( ?(w!#p{ !!! v~O͌#%n-hz !~OM (yH1! AOG!T!>Aw!q>U#w t/w o#Z(l( 7!qx(#w ?#Z(l *!x( !#Z(l( (e7!>?~G(?(>-\( (>xT'!xT->G~-( ?(w!ZyCCC?#p{ !!! v~O͌#%n-hz !~OM (yHvvm SWAP.CO͠ i provide t swa th LST an PUN driver t allo th Centronic Por t b use a th LST device Othe assignment ma als b made Th progra ha hel message invok as: SWAP Not tha SWA wil refus t functio i you CBIOS doe not have Multio drivers. 3. Multi an WBI Characte Device ar ban switche unde contro o por a base+ whic contai bit othe tha thos require t selec th ban desired Thes othe bit ar mean fo syste control an changin the wil caus th syste t crash Thus i yo wan t selec devic othe tha th on i us b th system yo ma d so bu yo mus no alte th stat o th grou selec port Sinc thi por i writ only yo ca onl obtai th content o th syste bit b accessin th system' cop o it las writ t tha port Locatin thi singl fo th M drives Thi releas identifie i a such 5. You distributio diskette contai severa file dealin wit th CBIOS fo you system I yo nee t chang th characteristic o you system yo wil nee t know about the following items: First you diskette ar marke wit numbe i th uppe right-han corner somethin lik #90 o #901 Thi identifie th collectio o device supporte i you CBIOS an i reall jus factor par number Somewher o m desk ther i maste lis o SoftWar (SW par numbers alon wit th device supporte b eac one M des ha permanen OUT-OF-SPAC ERROR s kee th rea lis o m disk You dis ha cop o th pertinan par o thi maste lis i grou o file beginnin wit th letter 'SW'. Second you dis contain severa variation o th M byt withi th bio require knowledg o severa 'Magi Numbers i earlie release o th bios Th ne characte driver i revisio E. wil retur pointe t th grou byt i registe [DE followin an singl characte servic reques fro BDOS Tha is you applicatio progra runnin i th TP ca fin th grou byt a follows: mvi c,0BH ;check console status, real safe, no one will notice call 5 ;have BDOS do it. xchg ;pointer to group was in [DE], now in [HL] shld savegp ;save the group address. Later, the same program may select a device as follows (for serial port 2) lhld savegp mov a,m ;read group bits ori 2 ;0=parallel, 1=console, 2=unused serial, 3=list serial out 4fh ;this is the address of the group select port ;note fro th application' point-of-view th grou byt i read-only. ;also, you must re-select the port each time you wish to use the device since ;the CBIOS will switch to another port OVCPM.CO͠ program Tr 'DI MOVCPM*.COM' Not tha th number i th nam ar relate t th fil extension i th 'SW files Example o th disk fo Factor Par Numbe #904 ther ar files: MOVCPM.COM SW904.000 MOVCPM5.COM SW904.005 MOVCPM10.COM SW904.010 MOVCPM16.COM SW904.016 Th 'SW file ar th actua equat file use i th Masterin La a Morro Design t creat th MOVCPM*.CO files. Third ther ar file wit names: ABOOT.A ABOOT.B CBIOS.A CBIOS.B Thes piece o progra ar lik epoxy Par A an Par B Yo ca combin the wit th followin commands: PIP ABOOT.ASM=ABOOT.A,ABOOT.B PIP CBIOS.ASM=CBIOS.A,CBIOS.B Combine thi way yo hav CBIOS whic bear n similarit t th on yo nee fo you system Th Par piece contai al o th comment relatin t th EQUate require t mak th assembl tim conditiMorro Design Decisio CBIOS Revisio E. This Revision differs from previous revisions as follows: 1. Th CBIO i large b abou 0.5k leavin TP o abou 54k Suppor ha bee adde fo 5.2 inc soft- sectore diskettes bot singl an doubl side wit Morro Design Micro-Decisio format Thi i availabl onl fo th DJ/DM diskett controller shippe wit EPROMӠ lable 2. o higher Earlie controller requir firmwar changes Th堠 FORMATDJ.CO͠ progra ha bee rename FDJ.CO͠ t distinguis i fro erarlie versions I accomodate th ne formats. 2. Multi an WBI Characte Devic Driver ar supplie wit suppor fo th Centronic Port whic share hardwar wit th existin Diabl Hytyp Port specia cabl i require䠠 fo interfac t Centronic Devices Th Centronic Por i assigne t th PUN devic driver ne prograto select its devices. 4. Th MOVCPM.CO progra supplie wit earlie release containe drive fo th selecte hard-dis a th las driv i th system an th signo banne ofte di no identif th driv type Th inten ha bee t provid flopp dis whic wa bootable an whic coul b use t sysge th hard-dis wit on o th othe MOVCP͠ programs on whic woul mak th hard-dis th primar driv o th system Unfortunately som users an man technician here go int troubl whe the trie t boo thes disk an immediatel PI program t th hard-disk Hard-disk var i storag placemen o al bu th outer-mos tracks I you syste ha HDC/DM controlle wit a M1 o M1 drive yo ma onl us th bootabl diskett t SYSGE th hard-disk yo ma no transfe dat o ru program becaus th bootabl diskett contain driver @on generat th cod require fo collectio o hardware I general a EQUat i Par wil caus sectio o cod t b assemble i Par B Fo instance th EQUat 'mforder tell Par t mak th mini-floppy show-u a drive A thr whateve i i 'maxmf' an t assembl th warm-boo cod fo th mini-floppy S t generat CBIOS wit specia configuration al ɠ hav t d her i th Masterin Lab i t fiddl aroun wit th equate i Par A the ad part an B an voila ne CBIOS i created Becaus hav al sort o configurations hav remove th comment fro Par A fiddle wit th equates an assigne meaningfu name t them 'SW9xx.0yy wher x i a arbitrar par number an y i relate t th warm- boo driv size Yo hav cop o th S file use t mak you MOVCP͠ files I yo eve nee t memor siz o th reconfigure CP/M Th followin lis o equate wer pulle ou o th CBIOS t giv yo a ide o th option availabl i th CBIOS.AS file Refe t th CBIOS.AS͠ fil i yo wan t se ful explanatio fo som o thes equates. List of Equates - CBIOS.ASM maxhd equ 0 ;Set to number of HDCA3 hard disk drives maxmw equ 1 ;Set to number of HDDMA hard disks maxfd equ 0 ;Set to number of 2D/B floppies maxdm equ 2 ;Set to number of DJ DMA floppies 8" maxmf equ 2 ;Set to number of DJ DMA floppies 5 1/4" hdorder equ 0 ;Set the order of logical drives ELSE 0 mworder equ 1 ; if not included fdorder equ 0 dmorder equ 2 mforder equ 3 ;HDC3 controller disk drives. Set only 1 M26 equ 0 ;Shugart SA4000 M20 equ 0 ;Fujitsu M2302B M10F equ 0 ;Fujitsu M2301B M10M equ 0 ;Memorex ;HDDMA controller disk drives. Set only 1 cm5619 equ 0 ;CMI CM-5619 st412 equ 1 ;Seagate ST-412FSET note abov fro th listing and: -IABOOT.HEX -Rmmmm Wher mmm i th OFFSE valu obtaine from the listing. Now exit from DDT as before: G0 and enter: A>SAV 4 CPMxx.COM wit x a above an then A>SYSGEN SYSGEN returns Morrow Designs SYSGEN version 4.x Source drive name (or if in memory) Answe b pressin th RETUR key (A thi poin th sourc fo th ne syste i i RA memory no o th dis wher yo wan it) Th return: Destination drive name (or to warm boot) Ente th destinatio driv - throug P B carefu abou whic drive (har dis o floppy ar drive A B etc a thi ste destroy th origina CP/ o th destinatio drive. T complet thi process pres th RETUR ke twice: Destination on (dr mak an change t you CBIOS o i yo simpl wis t mak nic listin fo reference yo shoul edi th CBIOS. an ABOOT. files an mak th EQUate ther matc th equate i th S files The chang th firs equate 'ABSASM t matc th assemble yo wil b using a indicate i th sourc file Yo hav you choic o eithe MAC o RMAC W d no us th AS assemble supplie wit CP/͠ becaus i ha a insufficien conditiona assembl capability These assemblers are available from most dealers. I yo ar usin th MA assembler yo wil nee t declar th lengt o th CBIOS .. I th lengt o you CBIOS i likel t chang s muc tha yo ca no estimat it lengt accuratel i advance yo ma se BIOSL t som arbitraril larg value an assembl it Loo i th symbo fi st506 equ 0 ;Seagate ST-506 Mak cop o th .AS files the edi th CBIOS.AS fil fo you desire syste configuration Thi involve changin th number followin th eq portio o th fil t reflec th numbe o drives thei orde withi th system th driv type etc Us th followin a guidelin fo assemblin th files: A>MAC CBIOS A>MAC ABOOT Onc th CBIOS.AS an ABOOT.AS file hav bee edite an re-assembled th followin procedur ma b use t incorporat th ne driver int CP/M, enter the command: A>TYP ABOOT.PRN watc fo th labe "OFFSET i th listing an recor it value. Next, the command: A>TYP CBIOS.PRN watc fo th labe "OFFSETC i th listing an recor it value. I yo modifie th BIOSLN the yo mus modif th MOVCPM.CO progra tive):, type to warm boot) Function complete Destination drive name (or to warm boot) Rese th syste an d "col boot. Th syste heade display you ne syste siz now. MOVCPM I you syste doe no nee an re-configuration yo ma us th MOVCP progra a i is A mentione above mos system ar supplie wit mor tha on cop o MOVCPM on fo eac o severa possibl configurations Usually use wil b intereste i onl tw o th MOVCP͠ program supplied MOVCPM.COM whic wil boot-u fro diskettes an MOVCPMn.CO͠ wher i th har dis typ whic wil boot-u o th har disk Althoug th factor ha alread don th following yo wil b intereste i cas you syste eve require service You origina cop o CP/ cam fro diskett i i you CP/ Maste Dis ) an was placed ol fo th valu 'BIOSLEN' an assembl secon tim usin thi value Th actua lengt o th CBIOS containe i MOVCPM.CO fil ca b foun unde DD o SI a follows: SID MOVCPM.COM S103 ;the value displayed is the BIOSLN. Yo shoul ente thi valu i th sourc fil befor assembly Fo you reference whil unde DD o SID LOCATEĠ cop o FDOӠ ha th堠 followin砠 interestin addresses: ABOOT 0900H CCP 0B00H BDOS 1300H BIOS 2100H END: SIGNON MESSAGE TEXT Reconfiguring a System T reconfigur th CP/ syste fo you particula hardware yo nee th MAà assemble (no include wit syste software t assembl th CBIOS.AS an ABOOT.AS files. Man parameter o th CBIOS ca b modifie b changin th valu o certai ke variable whic ar use durin th assembly Fo example th labe MSIZ i use t adjus th  creat CP/ syste tha matche th ne CBIOS' length Th followin procedur wil perfor thi modification. A>DD MOVCPM.COM -S103 Locatio 10 contain th BIOSL valu fo th MOVCP program Now type: 0103 15 xx 0104 43 . wher x i th firs tw digit o BIOSL an pres RETURN Fo instance fo BIOSL o 1800 typ i 18 an exit: -G0 Nex enter: A>SAV 5 MOVCPM.COM t sav th reconfigure MOVCP program and A>MOVCP x * wher堠 x i th MSIZŠ valu tha yo assemble th CBIOS.AS fil with then A>SAV 4 CPMxx.COM wit x a above. Agai ente DDT thi tim wit th ne CP/ syste file: A>DD CPMxx.COM -ICBIOS.HEX -Rnnnn Wher nnn i th valu o OFAnto the hard disk as follows: MOVCPM * * ( movcpm prints some stuff ) SYSGEN ( see paragraph above for sysgen operation ) I i importan t not tha th CP boar ha som switche whic selec whic driv wil b use fo cold-boot A shippe fro th factory th diskett drive wil b used On ma alte th setting o thes switche t mak th har dis th primar drive o on ma us th progra BOOTMW for this purpose. Try the following: ( reset the system and re-boot ) BOOTMW No rea th signo banner I indicate tha th primar driv driv A i har disk an i indicate it size Als not tha th diskette hav bee re-assigne an hav differen driv names Typ DIR an hav loo a th content o thi drive Th sam file foun o th distributio dis shoul b o th har drive supplie wit th system Bot ar double-densit wit 7 cylinders an fou 1024-byt sector pe surfac (selectio "G") Tw othe double-densit format ma als b rea an written The are 256-byt an 512-byt singl an doubl side format wit 2 an 1 sector pe surfac respectively ( part of selection "I" ). Morro als support th commo "CP/͠ Single-Densit Exchang Format whic i single-sided single-densit wit 7 tracks eac wit twenty-si 128-byt sector (selectio "F"). FORMATHD and FORMATMW I i i desire t forma th har disk th progra FORMATHD.CO͠ ( an 1 inc har disks o FORMATMW.CO͠ ( 1/ inc har disks shoul b used. CAUTION! Us cautio wit th har dis forma programs The eras th dat o th har dis an i ca no b recovered I yo hav t forma th disk thin abou wha i o t*U?8!9N#F#^#V#~#fo"Qkb"Qi`"QOG(Q!N#F!N#F`* ͎1:QPnP(Q,͔!~w#~}/Q>2Q>2S2S!:S:S#*S)!~#fo N#F͋*S#"SÌ:Q:QOG}o|g}*S####"S/Q(Q!~#fo~/Q!~#fo~2!~#fo~0H!~#fo>98H/Q!~w#~w/Qpn_htbqsHdi&: Missing numeric value (Q!~#fo~-¬!~w#~wÎ!~#fo~!~#fo#y!!r!N#F!ͼ= n!~#fo#B:i`"S!~#fo~OG!NQ:S :S?:S0:S?!N#FE:S2Q/Q:S\!S>>#h!N#FE*S"SE:S~:SʇÊ:S˜:Sʡä}o|g}ʼ!N#FE*S"SE:S:S:S:S:S:S:S:S!N#FE*S"SE:S#':SV:S(7:SV:SMG:SV!N#FE*S"SE:Sl:Sy2S2SE:S †:Sʙ:S –:S¦>2S2SE!N#FEE:S:S>s2QE:S:S>d2QE!N#FEE:S:S disk No tr usin th MOVCP progra t mak th diskette th primar drive again: MOVCPM 48 thi make 48 syste lik th on o thdiskett) -- or -- MOVCPM whic make 64 syste which will not re-boot ) Th relocate CP/͠ wil begi executing, however th relocate CP/ i highl unstable I particular i war boo occurs th syste ma no re-boo properly Thi i no bu i th MOVCPM.CO program bu rathe differenc i th lengt o th origina an relocate CP/M's W recommen tha yo us th FD progra explaine nex t initializ ne diskette the practic usin MOVCP͠ an SYSGEΠ t creat ne "syste disks, an verif tha the will boot correctly. FDJ.COM Th comman fil FDJ.CO format an initialize bot 1/ an inc diskette fo th DJDM flopp dis controlh har dis befor proceeding. BOOTHD Th progra BOOTHD.CO contain boo stra loade fo th HDC har dis controller BOOTHD.CO coul b programme int PRO s tha yo coul boo directl ont th har disk withou havin t bothe wit th floppies. BOOTMW Th progra BOOTMW.CO contain boo stra loade fo th HDC/DM har dis controller. Th Morro Design MPZ8 CP car ha bot BOOTH an BOOTM encode i it PROM Refe t th MPZ8 manua fo th prope switc settings. I i i desire t forma th har disk th progra FORMATHD.CO͠ ( an 1 inc har disks o FORMATMW.CO͠ ( 1/ inc har disks shoul b used. CAUTION! Us cautio wit th har dis forma programs The eras th dat o th har dis an i ca no b recovered I yo hav t forma th disk thin abou wha i o t!S>>#*S"SE!N#FEE nE: Value out of range (Q!!/!N#F!ͼ= n/Q (Q!!͘2!l͡0!8/Q(Q!S!,*S"S:S 2S:S2S:S2S!!!͘2ywx#w!S!,!~#!n!͘2/Q(Q!S!,*S"S:S(:S8!S!,/Q Do it yourself I) Other Selection: 8 inch formats F) CP/M standard single density G) Morrow CP/M double density H) Morrow Micronix 5 inch hard sectored formats C) Single sided D) Double sided E) Morrow Micronix 5 inch soft sectored formats A) Morrow single sided B) Morrow double sided (Q!9!*͡0!͡0!h͡0!?͡0!/yw!~a\!>h\!~OGl0!~OG!&MM "vT*vT~2Q*vT##~#fo"S*vT####~#fo"S*vT ~#fo"S*vT ~2Q*vT ~#fo"S*vT ~#fo"S*vT ~#fo"S!=͡0͸ /Q!~i¤yn y<yv y͢yyͳyQy͸ y!;͡0>/Q(Q:Q:Q|y/Qy R3 3ynler. Thi progra i menu-drive an i therefor堠 sel explanatory Simpl enter A>FDJ an follo th instructions. Morro hard-sectore 5.2 inc end-use diskette ar double-sided double-densit wit 3 cylinder 7 track eac havin te 512-byt sector selectio "D ) Yo ca read/writ th single-side variatio o th abov 3 track ) a wel a th single-densit 256-byt sector variant o th above Hard-sectore inc diskette ar not supported. Morro soft-sectore 5.2 inc end-use diskette ar double-sided double-densit wit 4 cylinder eac havin fiv 1024-byt sector pe surfac selectio "B ) Th single-side varian i als supported whil single-densit i not. Morro soft-sectore inc end-use diskette ar eithe single-side o double-side dependin upo th typ o B^ /Q Morrow DJDMA Formatter revision 2 (Q:Q< ! ͡0/QR ? d? c? b? a, 3, 2, 1, 0 . Drive A) drive 0 B) drive 1 C) drive 2 D) drive 3 Selection: (Q!z ͡0/y2Q:QOG!? Q2S2S!r ͡0*S0 l0!o ͡0:Q  :QOG}o|g}X *S####"SX :QOGi` "S :QOGi` "S /Q/Q(Q>2Q:QOG/Q Example: fdj -b512 -h10 -i5 -d0 -n2 -p10 -s2 -t40 b means bytes per sector. (128, 256, 512, 1024) d means drive number. (0, 1, 2, 3) h means holes. (1, 10) i means inches. (5, 8) n means density. (1, 2) p means sectors. (1 - 26) s means sides. (1, 2) t means tracks. (35, 40) Valid argments are b, h, i, d, n, p, s, and t. Here are meanings and legal values: (Q!!p ! ! !ͼ=! 9/Q  d c b a bytes per sector A) 128 B) 256 C) 512 D) 1024 Sector size: (Q!> ͡0/y2Q:QOG! Q!"S!< ͡0*S]!) ͡0/Q2S>2SÛ 2S>2SÛ 2S>2SÛ /Q c b a  77 trackssectored Selection: (Q!͡0/!Q2S2S!͡0/Q>2S2S1/Qba A) 0 origin sector numbers B) 1 origin sector numbers Sectors per track: (Q!d͡0/!RQ2S2S!b͡0/Q>2S2S/Q(Q!~#fo:Sw!~#fo#:Sw!~#fo *S }!~#fo##6!~#fo###6!~#fo :Sw:Qd!~#fo 6r!~#fo 6C!~#fo !~#fo ~OGi`*S }:S©:Sº!~#fo####6:S:S!~#fo####6:S:S!~#fo####6/Q:S :S!~#fo####6 Single sided Double sided Soft sectored diskette required (1 hole) Hard sectored diskette required (10 hole) Wrong type of diskette Read only diskette Drive not ready (Q2T2T*S*S&M"S*S)i`"T:Q8*T ~OGyx8*T ~OG!͡0>2Q/Q*T####~OGy@]!͡0>2Q/Q*T##~OGysv:S„:SÐ}˜|ʾ!͡0:S°:S!e͡0:Q!S~#:Qd,!z!"TP!;͡0/Q!"T*T####~OG @:~<2~6( 6`6:@(6>2@>@ x :8G:z<:v<2v>2z:z=0:v=2vM P6oÎ&E]^b\b_bbbs`1O0w{`>@:_!d~2>ͦ~V 2@2 2@6 ͠!@n(n ~>v>6 :^2:ģ~ :]M>+(?G>8>V(2WG:' !@V(+w!@@:@ :@(>>2@P6N>(  6>6R6$6R6$6R>6$626N 6>6D66D66D>666666>ww>6N 6>6D66D66D>66>@wwww>ww>:<26N ( 66NÆ6N:@(6N6N6N>2@>@ x :_G:<>>:<2>2:=V:=2:_2M @6N ( 66NÆ6N:@(6N6N6N>2@>@ x :_G:(oÎÿR]zyzzzz zzzzzzzzs{1O0w{{>@>ͦ~2@h6 ͩ>͠n(:@@>6 :yģ:y:  :}2 6 ͩ(ɯݾ >2@!@q >d2@66\  sQr{2 sssw selected. 40 tracks selected. 35 tracks selected. A) 35 tracks B) 40 tracks C) 77 tracks Selection: (Q!6 ͡0/! Q/Q>#2S2S!! ͡0/Q>(2S2S! ͡0/Q>M2S2S! ͡0/Qy v2vb^a^1 Double sided. Single sided. A) Single sided. B) Double sided. Selection:(Q:QM/Q! ͡0/! Q! ͡0>2S2S/Q! ͡0>2S2S/Q/QU Press to format, anything else to quit Insert a write enabled diskette in 8 inch drive Insert a write enabled diskette in 5 1/4 inch drive (Q!9!1͡0:QV!͡0^!͡0!*S}og0 }!~OGl0!͡0!/yw!͡0!~~¯r3/Q!~ !~ /Q drive sectors per track origin hard sectored soft sectored single density double density bytes per sector double sided single sided tracks inch (Q:QOG]!k͡0*S]!b͡0:Q¹:S®:S!T͡0*S]!3͡0:Qd!#͡0!F͡0ù!͡0!S~#!͡0y>>2S2S!,͡0P:Qs5!#"TP!"TP!t%"TP>2S2S!͡0*T:Qz:Qdz*T 6*T####6*T*T#"T-!P*T!0y*!@{+!C{+i`"T:T@½:T*T͠/Q:Q:Qd!z!"T*T:S:Sf*T##6*T###6u*S*S&M"T!T:T:T#*T*T#"T-!I{+i`"T:T@U:T*T͠/Q*T##6*T###6*T*T#"T-!P*T!0y*!@{+!C{+i`"T:T@¸:T*T͠/Q0/Q(Q!N#F͡08/Q(Q!!N#F!T͈;i`T 6!TMD/Q(Q!N#F͡0/Q.(Q:QP!~#fo}P!+͡0N2/QxmbWLA6+ @ Unknown error, returned code was Heads failed to move to the home positionTimeout waiting for data ID markLost command - channel did not respondLost data - DMA channel did not respondMedia write protectedImproper sector valueCRC error in data fieldCompare error in sector header scanSeek errorCRC error in sector header ss:@( > >2@q>@:y<2yͿ:y=2yͿq x 66\  sQr{2 ss(oÎã[s1O0w{>@>ͦ~2@6 ͩ>͠n(!:(#>:#_!~2:@@>6 :ģ~ G:'2@:G::[ :2]6 ͩ(ݾ >2@q ~ >G~>$82@!@ 666\  sr{2]sssws:@( > J>2@>@:G:<ʻ:<2>2:=:=2:2 x (#(Psws:@( > J>2@>@:G:<>2!9^#V!1 Not a SYSTEM Diskette. (^ >2!9^#V!1 Not a SYSTEM Diskette. >2!9 !͡0*S]!͡0*S]!͡0!͡0*S]!͡0/Q(Q!N#F͡0/Q(Q!N#FF/Q(Q!9!w#w!w#w!!S  #!w#w!!S  #!N#F!~w#~w-!N#F!N#F-y/Q/Q!~w#~wÇ!~w#~wáProbable bad diskette Sector verification failure (Q!)͡0!͡0/Q8b5  a 8 inch format selected 5 inch format selected A) 5 B) 8 Selection: (Q!͡0/!`Q!͡0>2Q/Q!͡0>2Q/Q/Q(Q! !N#F!T͈;i`T 6!TMD/Q(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