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"#$%&'( O!P6.#pͩ?xO2(!P6##q#p#w#6%#wʳ!P6%#6~ҲzŲ7+6(#6ì>@!P~5+"##""####"ij!͡  =ɯOy2ȳ:ɳ怱2ɳyO:ɳ-y2ʳ!P6"#:ʳw###ͩ:ɳO!Q~O#>O#>O#>>!> !Pdzw#Ž+ͩ:T?>&2P"Q2Swʱɡ%ǵ:hafhͬͅ22!",!!<2$$$$", a .72ڍ:hڍ̀ͅ:o&))))2wy2>h y>h!6#6͠ͻ6#6ͬ!ͻ^#V+q#pi`"zh!"`i"y= 2y2 *P"`:R2bT!"P2R"@2B*!:h>2@*@ڵچڵچ:2/O:浱2:2!6U~7zª7:_!`i#|/g}/o#˵|}O?(?(Q?(?p;໯ҽҽ໯}} W Morrow Designs 48K CP/M 2.2 E3 AB: DJDMA 8", CD: DJDMA 5 1/4", EF: HDDMA 122E>2! 6J !22!"Ò͸b!P +2?ìJ,2y2 *P"`:R2bT!"P2R"@2B*!:h>2@*@ڵچڵچ:2/O:浱2:2!6U~7zª7:_!`i#|/g}/o#˵|}ABOOT& ASM ABOOT& ASM= ASM COM@BIOS ASM`BOOT ASMBOOTMW ASM?BOOTMW COM CBIOS ASME !"#CBIOS& ASM$%&'()*+CBIOS& ASM,-./0123CBIOS& ASM456789:;CBIOS& ASM<=>?@ABCCBIOS& ASMDEFGHIJKCBIOS& ASMLMNOPQRSCBIOS& ASMTUVWXYZ[CBIOS& ASM\]^_`abcCBIOS& ASMdefghijkCBIOS& ASM !lmnDDT COM&opqDEBLOCK ASMPrstuvDISKDEF LIB1wxyzDUMP ASM!{|}DUMP COM~ED COM4FORMATDJASMFORMATDJASMFORMATDJASMFORMATDJCOMFORMATMWCOMFORMATMWCOMQFORMATMWDOCINSTALL COM:ack 0, sector 5 and * * continues through 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. * * * * * * 8 inch floppy disk boot loader for the * * Morrow Designs Disk Jockey DMA (DJDMA) * * * * The loading is identical to that of of the DJ2DB except * * that the loader itself is loaded at 80h and the 'order' * * column does not apply. The DJDMA is capable of loading a * * complete track at a time and thus it merely zaps the * * tracks in all at once. * * * * * * 5 1/4 inch floppy disk boot loader for the * * Morrow Designs Disk Jockey DMA (DJDMA) * * * * 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: * * INSTALL DOC(LOAD COMMAKEPRL COMMAKEPRL COM?MAKEPRL DOCMBASIC COMMBASIC COM>MOVCPM COMjMOVCPM5 COMjMOVCPM10COMjMOVCPM16COMjNOTESHD DOCyPIP COM:PRL DOC STAT COM)SUBMIT COM SYSGEN COM XSUB COM***************************************************************** * * * Morrow Designs CP/M vers 2.2 Cold Boot Loader. * * Cbios revision E.2, 3/4/82. * * * * The following routines will boot CP/M from the * * Disk Jockey 2D Rev. B 8 inch disk controller (DJ2D/B), * * Disk Jockey DMA 8 + 5 1/4 inch controller (DJDMA), * * Hard Disk Controller revision 3 (HDC3), * * or the Hard Disk DMA (HDDMA) disk controllers. * * * * Provisions have been made for a Micronix boot loader. * * This loader always gets loaded to 0100h. * * * * 8 inch floppy disk boot loader for the * * Morrow Designs Disk Jockey 2D/B (DJ2DB) * * * * The 'order' column is the interleave sequence used by the * * loader during the load. * * * * 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 *  * * 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 * * * * The warm boot starts from track 0 sector 1 and continues * * through to track 1 sector 1. * * * * * * Shugart SA4000 disk interface boot loader for the * * Morrow Designs Hard Disk Controller rev. 3 (HDC3) * * * * 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 *  * 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 6 2a00 b000 3 * * 1 7 2e00 b400 7 * * 1 8 3200 b800 Unused * * * * Three spare sectors (track 0, sectors 2 to 4) have been * * provided for a more advanced boot loader at a later date. * * * * The warm boot loader starts on tr* for the loader. This cold boot loader will start loading * * the CCP from track 0, sector 2 and will finish up with * * the last part of the Cbios on track 0, sector 20. * * * * 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 * * * * 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 thie * * (lot?) of code shuffeling or in the creation of a Cbios * * that simply will not fit on a small disk drive. * * * * sysgen 48k 56k 60k 62k 64k * * image CP/M CP/M CP/M CP/M CP/M * * * * 900 ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ Loader * * b00 9500 b500 c500 cd00 d500 CCP * * 1300 9d00 bd00 cd00 d500 dd00 BDOS * * 2100 ab00 cb00 db00 e300 ed00 Cbios * * 3100 bb00 db00 eb00 f300 fb00 Tables * * 35ff bfff dfff efff f7ff ffff The End * * * * ~~~~ 8d00 ad00 bd00 c500 cd00 DDT * * * ***************************************************************** micron equ 0 ;Set to 1 for Micronix boot loader if micron eq 0 msize equ 48 ;Memory size of target CP/M biosln equ 1700h ;BIOS length codlen equ 11h ;Code length ccpln equ 800h bdosln equ 0e00h size equ (msize*1024) ccp equ size-(biosln+ccpln+bdosln) bdos equ ccp+ccpln bios equ ccp+ccpln+bdosln cboot equ bios ;Cold boot address for CP/M loaddr equ ccp ;Load address for floppy else ;Minull equ 0fch ;Null command idbuff equ 0 ;Initialize data command isbuff equ 8 ;Initialize header command rsect equ 1 ;Read sector command wsect equ 5 ;Write sector command endif ***************************************************************** * * * The following equates are for the Hard Disk DMA. * * * ***************************************************************** if maxmw ne 0 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 3 for this Cbios) ; 0 = 128 byte sectors ; 1 = 256 byte sectors ; 3 = 512 byte sectors ; 7 = 1024 byte sectors (default for CP/M) ; f = 2048 byte sectors ;Define controller commans is hardly * * necessary on a hard disk. * * * * * * Shugart SA1000 disk interface boot loader for the * * Morrow Designs Hard Disk DMA controller (HDDMA) * * * * track sector sysgen load order Name * * 0 1 900 100 0 Cold boot + CCP * * 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 * * * * 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 * * peice of the CCP to it proper resting place as part of * * the boot process. * * * ***************************************************************** ***************************************************************** * * * The following table gives a general idea ascronix boot loader cboot equ 0100h ;Cold boot address for the loader loaddr equ 0100h ;If the load address is moved forward from ;0100 then the starting extended address for ;the djdma boot loader should be adjusted. endif retries equ 10 ;Maximum # of disk retries ***************************************************************** * * * Only one of the following equates should be set. The * * others sould be 0. These equates define the boot loader * * that is to be used. * * * ****************************************************************** maxhd equ 0 ;Set to boot an HDC3 controller maxmw equ 1 ;Set to boot a HDDMA controller maxfd equ 0 ;Set to boot a DJ2D/B controller maxdm equ 0 ;Set to boot a DJDMA controller with 8 inch maxmf equ 0 ;Set to boot a DJDMA controller with 5 1/4 inch ***************************************************************** * * * The following equates are for the Hard Disk Controller 3. * * ds 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 wfault equ 2 ;Write fault from drive dready equ 4 ;Drive ready endif ***************************************************************** * * * The following equates are for the Disk Jockey 2D/B. * * * ***************************************************************** if maxfd ne 0 origin equ 0f800h ;Orgin of DJ 2D Mod B PROM djram equ origin+400h ;Disk Jockey 2D Mod B rout to where the * * various parts of of the operating system are in memory. * * * * The only changes to the map that I see in the future is * * the increasing the space for the uninitialized tables * * following the Cbios. The amount of code and table space * * that can actually be loaded from the disk is fixed by the * * amount of space available on the system tracks. * * * * 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. * * * * 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 littl* ***************************************************************** if maxhd ne 0 hdorg equ 50h ;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 ines 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 endif ***************************************************************** * * * The following equates are for the Disk Jockey DMA if wanted. * * * ***************************************************************** if (maxdm ne 0) or (maxmf ne 0) djkick equ 0efh ;Kick port for DJDMA controller channl equ 50h if maxdm ne 0 ;8 inch boot loader trkoff equ 22*128 ;Number of bytes loaded from track 0 else ;5 1/4 inch boot loader trkoff equ 9*512 ;Number of bytes loaded from track 0 endif setdma equ 23h ;Set DMA address djhalt equ 25h ;Halt controller djbran equ 26h ;Branch controller command redtrk equ 29h ;Read track command  * ***************************************************************** if maxhd ne 0 ;Low level HDC3 drivers crdhd lxi b,retries*100h+1 ;Maximum # of attempts crhd push b ;Save error count call hdread ;Attempt the read pop b ;Restore the error count rnc ;Return if no error dcr b ;Update error count jnz crhd ;Try again if not too many errors jmp $ ;Dynamic error halt hdread call hdprep ;Prepare the sector header image rc ;Error exit mvi a,rsect ;Read sector command out hdcmnd call process ;Process the read rc ;Error exit xra a ;Pointer to data buffer out hdcmnd mvi b,secln/4 ;Number of bytes to read lhld cdmahd ;Get destination of data in hddata ;Two dummy data bytes in hddata rtloop in hddata ;Move four bytes mov m,a ;Byte one inx h in hddata ;Byte 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 commaad constants jc error ;Controller not 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 dendif ***************************************************************** * * * Define the origin address for the various boot loaders. * * * ***************************************************************** if maxhd ne 0 ;HDC3 boot equ bios+biosln-512 ;Very last part of CP/M system endif if maxmw ne 0 ;HDDMA boot equ 100h endif if maxfd ne 0 ;DJ2D/B boot equ djram+300h ;Upper 3/4 of on board floppy RAM endif if (maxdm ne 0) or (maxmf ne 0) ;DJDMA boot equ 80h endif offset equ 900h-boot ;DDT offset org boot ***************************************************************** * * * Cold Boot loader for a hard disk. * * * ***************************************************************** if (maxhd ne 0) or (maxmw ne 0) lxi sp,cstkhd ;Set up stack at end of this sector if maxhd ne 0 lxi b,19*100h+2 ;B = sector count, C = sector # call clodhd jmp cboot ;Go to CP/M else lxi h,boot+200h ;Copy part of CCP up lxi d,loadnd to finish mov b,a ani opdone jz process mvi a,dskclk ;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 if maxmw ne 0 ;Low level HDDMA routines 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 ;Upmadma dw 0 ;DMA address db 0 ;Extended 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 endif ***************************************************************** * * * Cold boot loader for the Disk Jockey 2D Revision B controller * * * ***************************************************************** if maxfd ne 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 trksiz equ $-1 jc nowrap ;Skip if not at end of track jnz t1boot ;Done with this track exit equ $-2 sui 27-6 ;Back up to sector 6 backup equ $-1 lxi h,loaddr-80h ;Memdr 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 lxi b,10*100h+2 ;B = sector count, C = sector # call clodhd jmp cboot ;Go to CP/M endif 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 if maxhd ne 0 lxi d,200h ;Offset to new DMA address else lxi d,400h endif 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 ***************************************************************** * * * crdhd does the actual read from the controller, the DMA * * address and sector # have already been set up. * * date error count jnz crhd ;Try again if 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 loory 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 sectors to back up sta backup lxi h,loaddr+0700h ;DMA start address for first revolution - 2048 shld newdma lxi h,lt controller djdone: db 0 ;Returned status org boot+5dh ;Boot + 5ch contains 'configuration byte' if maxdm ne 0 ;Booting from 8 inch drives 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 db retries ;Retry counter else ;Booting from 5 1/5 inch drives sectb0: dw 0ffh, 0, 0, 0, 0;Do not load boot loader sectb1: dw 0, 0, 0, 0, 0 ;Load ten sectors db retries ;Retry counter endif endtbl equ $-1 ;end of table marker endif end  ;Side 0 db 0 ;Drive 0 dw sectb0 ;Sector table 0 db 0 ;Extended address db 0 ;Returned status db setdma ;Set DMA address dw loaddr+trkoff ;Load address for track 1 db 0 ;Extended address db redtrk ;Read track 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 db djhalt ;Ha!4w_#~ ʸ A:4~~# ¼ > \ ?ʻ w# !ͼ ? !ͼ 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 ***************************************************************** * * * Cold boot loader for the Disk Jockey DMA controller * * * ***************************************************************** if (maxdm ne 0) or (maxmf ne 0) ;Set up DJDMA loader 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 1*" 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*!{͚|͚}͚͚{!$~#͚͚> ͪ> ͪ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 commnd: db setdma ;Set DMA address 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 db redtrk ;Read track 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 db setdma ;Set DMA address dw loaddr+trkoff ;Load address for track 1 db 0 ;Extended address db redtrk ;Read track 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 db djhalt ;Ha@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û!^*"*:|: |Ë  |*" ͩ !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 0f806{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&)^#fk; 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 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 20 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 condi6 ;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 logL 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 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 status; 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 8 ;Seek complete ***************************************************************** * * * The following are the lowest level drivers for the Morrow * * Designs Hard Disk  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 ;g ***************************************************************** * * * Boot program for HDDMA controller. * * * ***************************************************************** ; ; 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 ;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 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 again 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 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 ;gjnc 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  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 address 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  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 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 end 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 ; 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 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 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,band3 ;cylinder > low_current mwpwrite ;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 ;disreps 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 currently 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  ů͆ =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#Ϳ|} k 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 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 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 operatiok ;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 charan (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  ************************************************************************* * * * Morrow Designs CBIOS for CP/M Version 2.2. * * * * This CBIOS can be configured to run with the following devices. * * The disks may be configured to run with any or all of the disk * * systems. The logical order of the disks can be set to any order. * * * * Disk systems: * * HDC3 10, 20 and 26 megabyte hard disks. * * HDDMA 5, 10, 16, megabyte hard disk systems. * * DJDMA floppy disk controller with 8 and 5 1/4 inch disks. * * DJ 2D/B floppy disk controller with 8 inch disks. * * * * Console I/O: * * Disk Jockey 2D/B serial. * * Disk Jockey DMA serial. * * Multi I/O serial. * * Decision I serial. * * * * Printer I/O: * * Multi I/O serial with handshaking. * * Multi I/O Diablo 1620 simulator for the Hytype II. * * * * Note: Floppy systems diskette (drive A:) has to have 1024 byte * * sectors in order formand 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 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 2 * The following flags set a 'non-standard' system mode and an * * assembly time debugger. * * * * 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. * * * * 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. * * * ************************************************************************* nostand equ 1 ;Set to 1 for non-standard mode debug equ 0 ;Set to 1 for debugging mode ************************************************************************* * * * The following is set to the memory size of the CP/M the 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. * * * * Written by Les Kent and Marc Kupper 3/4/82 * * * * Date Programmer Description * * * **10 1 82 Marc Public release of revision 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 s8 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 82 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 CBIOS is * * being created for. * * * ************************************************************************* msize equ 48 ;Memory size of target CP/M biosln equ 1700h ;BIOS length. Also in ABOOT&.ASM ************************************************************************* * * * The following equates set up the disk systems to be included * * along with the types of drives and the logical order of the * * drives. * * * ************************************************************************* maxhd equ 0 ;Set to number of HDC3 hard disk drives maxmw equ 2 ;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 inch maxmf equ 2 ;Set to number of DJ DMA floppies 5 1/4 inch hdorder equ 0 ;Set the order of logical drives ELSE 0 if mworder equ 1 ; not included. fdorder equ 0 dmorder equ 2 mforder equ 3 ;HDC3 controller disk drives. Set only one m10f equ 0 tructure * * 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 Removed 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 com 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 * * * ************************************************************************* title 'CBIOS Revision E for CP/M Version 2.2 - March 4, 1982' revnum equ 53 ;CBIOS revision number 5.x = E cpmrev equ 22 ;CP/M revision number 2.2 ************************************************************************* * *  ;Fujitsu M2301B m20 equ 0 ;Fujitsu M2302B m26 equ 0 ;Shugart SA4000 m10m equ 0 ;Memorex ;HDDMA controller disk drives. Set only one mwquiet equ 0 ;Set for no names printed on login st506 equ 1 ;Seagate ST-506 st412 equ 0 ;Seagate ST-412 cm5619 equ 0 ;CMI CM-5619 wmdrive equ 0 ;Device to warm boot from. This is the ; CP/M logical drive number. badsiz equ 32 ;Number of badmap entries ************************************************************************* * * * Since most hard disk drives hold more than 8 megabytes we * * partition the drive. We partition our drives using two different * * formulas. * * * * One is the so called 'standard partitioning' where we try to * * create as many 8 megabyte partitions as possible plus a small * * partition to take up the slack on the end of the drive. * * * * Another way the drives are partitioned is the so called 'even * * partition' formula. This means that the drive is split into board for serial printer I/O. Selections 2 to 5 will * * work on the Wunderbuss i/o board. To use drivers 6 or 7 * * the MULTR3 equate will have to be set. * * * * Set pbaud to the divisor latch value for the printer. For an * * explanation of the values see the deflst table. * * * ************************************************************************* lsttyp equ 1 lbaud equ 0 ************************************************************************* * * * The next equate determines if you have a Multi I/O Rev 3 or a * * Decision I mother board for parallel i/o. If are not using * * either of these boards then you need not worry about this equate. * * If you are using a Multi I/O rev. other than 3.x or 4.x then you * * should set MULTR3 to 0. * * * ************************************************************************* multr3 equ 0 ;0 = Decision, 1 = Multi I/O rev. 3 or 4 congrp equ 1 ;Cosole port (1 = p1, 2 = p2, 3 = p3) ls**************************************************************** retries equ 10 ;Max retries on disk i/o before error clear equ 'Z'-64 ;Clear screen on an ADM 3 anul equ 0 ;Null aetx equ 'C'-64 ;ETX character aack equ 'F'-64 ;ACK character abel equ 'G'-64 ;Bell abs equ 'H'-64 ;Back Space aht equ 'I'-64 ;Horizontal tab alf equ 'J'-64 ;Line feed avt equ 'K'-64 ;Vertical tab aff equ 'L'-64 ;Form Feed acr equ 'M'-64 ;Carriage return xon equ 'Q'-64 ;Xon character xoff equ 'S'-64 ;Xoff character aesc equ 1bh ;Escape character ars equ 1eh ;RS character aus equ 1fh ;US character asp equ ' ' ;Space adel equ 7fh ;Delete ************************************************************************* * * * 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&n* * equale sized partitions with the only restriction being that no * * partition be over 8 megabytes in length. * * * * All hard disk drives shipped from Morrow Designs are partitioned * * using the standard partition formula. If the user wishes to * * implement even partitioning then he/she must set HDPART or MWPART * * to the number of partitions desired. * * * ************************************************************************* hdpart equ 0 ;Set to number of non standard partitions mwpart equ 0 ;Set to number of non standard partitions ************************************************************************* * * * The following equates define the console and printer environments. * * * ************************************************************************* ************************************************************************* * * * Define the console driver to be used. * * * * CONTYP is: 0 Nothing, used fortgrp equ 3 ;Printer port (1 = p1, 2 = p2, 3 = p3) ************************************************************************* * * * The following equates are internal to the CBIOS. * * * ************************************************************************* m10 equ m10f or m10m if hdpart ne 0 ;Use non standard partitions hdlog equ hdpart else hdlog equ m10*2+m20*3+m26*3 ;Logical disks per drive for HDC3 endif if mwpart ne 0 ;Use non standard partitions mwlog equ mwpart else mwlog set st506+st412*2++cm5619*2 ;Logical disks per drive for HDDMA endif hdc3 equ m26 or m20 or m10 ;HDC3 controller fujitsu equ m20 or m10f hdspt equ 32*m26+21*m20+21*m10 ;Sectors per track hdma set st506 or st412 or cm5619 ;HD DMA controller mwspt equ 9 ;Sectors per track maxlog equ (maxhd*hdlog)+(maxmw*mwlog)+maxfd+maxdm+maxmf ************************************************************************* * * * CP/M system equates. * * * ****am&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 ************************************************************************* * * * 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 ************************************************************************* * * * The folloing are offset numbers of Device Specification Tables. * * * * 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 * * * * Set CBAUD to the divisor latch value for the console. For an * * explanation of the values look at the DEFCON table. * * * ************************************************************************* contyp equ 4 cbaud equ 0 ************************************************************************* * * * Define the printer driver to be used. * * * * LSTTYP is: 0 Nothing, used for patching to PROM's. * * 1 Provide for 128 bytes of patch space. * * 2 Multio serial, no protocol. * * 3 Multio serial, Clear To Send protocol. * * 4 Multio serial, Data Set Ready protocol. * * 5 Multio serial, Xon/Xoff protocol. * * 7 Multio parallel, Diablo HyType II. * * * * Note: The Decision board is functionally identical to the Multi * * I/O ********************************************************************* ccpln equ 800h bdosln equ 0e00h size equ (msize*1024) ccp equ size-(biosln+ccpln+bdosln) bdos equ ccp+ccpln bios equ ccp+ccpln+bdosln offsetc equ 2100h-bios ;Offset for sysgen if debug dbgtmp set offsetc ;DDT offset ! dbgtmp set ccp ;CCP address ! dbgtmp set bdos ;BDOS address ! dbgtmp set bios ;CBIOS address ! endif cdisk equ 4 ;Address of last logged disk buff equ 80h ;Default buffer address tpa equ 100h ;Transient memory intioby equ 0 ;Initial IOBYTE iobyte equ 3 ;IOBYTE location (not supported) wbot equ 0 ;Warm boot jump address entry equ 5 ;BDOS entry jump address if nostand ne 0 cblock equ bios-19h ;Current actual block# * blkmsk ;Used for unallocated writting endif ************************************************************************* * * * The following are internal Cbios equates. Most are misc. constants. * * * ********* ************************************************************************ 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$read equ 8 ;Read a physical sector d$write equ 9 ;Write a physical sector d$bad equ 10 ;Return pointer to bad sector info ************************************************************************* * * * The jump table below must remain in the same order, the routines * * may be changed, but the function executed must be the same. * * * ************************************************************************* org bios ;Cbios starting address jmp cboot ;Cold boot entry point wboote: jmp wboot ;Warm boot entry point if contyp ne 0 const: jmp cstty ;Console status routine cin: jmp citty ;Console input cout: jmp costrp ;Console output else const: jmp $ ;* * 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 define the default baud rates for the * * console and the list devices. These words are provided so that * * the user can easily modifyeflst: dw lbaud ;Printer baud rate divisor value if (lsttyp ne 3) and (lsttyp ne 4) ;Xon/Xoff protocol lstand: db 0 ;Serial list handshake mask lstxor: db 0ffh ;Serial list inversion flag endif if lsttyp eq 3 ;Clear To Send protocol lstand: db cts ;Serial list handshake mask lstxor: db 0 ;Serial list inversion flag endif if lsttyp eq 4 ;Data Set Ready protocol lstand: db dsr ;Serial list handshake mask lstxor: db 0 ;Serial list inversion flag endif lastch: db xon ;Last character recieved from the printer ************************************************************************* * * * The following table are drive parameters for drives connected to * * the DJDMA floppy disk controller. There is one entry for each of * * the the eight drive that the controller can address. The first * * four entries are for the 8 inch drives and the last four are for * * the 5 1/4 inch drives. Users with fast stepping 8 inch drives * * (SA850/1) or slow 5 1/4 inch drives (SConsole status routine PROM pointer cin: jmp $ ;Console input PROM pointer cout: jmp $ ;Console output PROM pointer endif if lsttyp ne 0 pout: jmp list ;List device output else pout: jmp cout ;List device output endif jmp punch ;Punch device output jmp reader ;Reader device input 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 if lsttyp ne 0 jmp listst ;List device status else jmp donop ;List device status endif 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 ************************************************************************* * * * Drive configuration table. * * * ********************************************* them and that they will also be used * * in the future by Morrow Designs software. * * * * The following is a list of possible baud rates and the decimal * * value needed for the defcon or deflst words. * * * * Baud rate defcon/deflst Baud rate defcon/deflst * * 50 2304 2000 58 * * 75 1536 2400 48 * * 110 1047 3600 32 * * 134.5 857 4800 24 * * 150 768 7200 16 * * 300 384 9600 12 * * 600 192 19200 6 * * 1200 96 38400 3 * * 1800 64 56000 2 * * * * * * 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 hA400) should adjust this * * table for optimal device performace. * * * * 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 inch drives have 77 tracks and * * most 5 1/4 inch 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 SA 850's step at 3 * * milliseond intervals. The step constant would be * * 3 * 43.1 or 1**************************** drconf: db 0 ;Revision 0 structure db 32 ;32 bytes long now ************************************************************************* * * * The following is the table of pointers to the Device * * Specification Tables. 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 10 bytes are defined for 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 available. * * * * * * The next byte is to make sure that the group select byte on the andshake lines to be inverted. Common byte values are * * shown below. * * * * cts equ 10h ;Clear To Send status mask * * * * db cts ;Morrow Designs 'Clear To Send' * * db 0 * * * * db cts ;Inverted Clear To Send * * db cts * * * * db 0 ;No handshaking * * db 0ffh * * * * * * 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 1 ;Revision 1 structure db 10 ;10 bytes long now db contyp ;Console device driver number db lsttyp ;List device drive number group: db 0 ;Group byte defcon: dw cbaud ;Console baud rate divisor value d02. * * * * 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. * * * * 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 * * * * Note: Caution should be used when defining the drive parameters.  parity on conout ani 7fh mov c,a jmp cotty endif ***************************************************************** * * * The folowing equates will define the Decision I mother * * board I/O or the Multi I/O environments if needed. * * * ***************************************************************** multio equ (contyp eq 2) or (lsttyp ge 2) ;Multi I/O board used? if multio ;Define Multi I/O environment mbase equ 48h ;Base address of Multi I/O or Decision I grpsel equ mbase+7 ;Group select port dll equ mbase ;Divisor (lsb) dlm equ mbase+1 ;Divisor (msb) ier equ mbase+1 ;Interupt enable register 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 rbr equ mbase ;Read data buffer thr equ mbase ;Tranmitter data buffer dlab equ 80h ;Divisor latch access bit thre equ 20h ;Status line THRE bit cts equ 10h ;Clear to send dsr equ 20h ;Data set readyrizontal tabs maxchrs equ 1024 ;Maximum number of printer characters to queue maxrgt equ 1584 ;Maximum carriage position dfrmln equ 110 ;Forms length times 10 autolf equ 0 ;Default to noIAuto line feed endif ***************************************************************** * * * contyp: 2 Multi I/O or Decision I console driver * * * ***************************************************************** if contyp eq 2 ***************************************************************** * * * 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 current divisor latch value will be checked. * * If the divisor seems to be ok then no action will be taken * * as far as the baud rate setting goes. If the divisor is not * * ok then the baud rate will be set from the DEFCON word * * which is found just below the regular Cbios * * Incorrect definations may damage the floppy disk drive. Morrow * * Designs takes no responsibility for damage that occures through * * the misuse of this macro. * * * ************************************************************************* if (maxdm ne 0) or (maxmf ne 0) ;DJDMA present? 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 inch drive parameters * * Use SA800 parameters: 77 tracks, 8 ms step, 8 ms settle * * * ************************************************************************* dconf 77, 8, 8 ;Drive 0 dconf 77, 8, 8 ;Drive 1 d dr equ 1 ;Line status DR 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 multi I/O ports addresses for group zero gzero equ 0 daisy0 equ mbase ;Daisy input ports daisy1 equ mbase+1 sensesw equ mbase+1 ;Sense switches if multr3 eq 0 ;Daisy output ports are different daisi0 equ mbase ; for Decision I and Multi I/O. daisi1 equ mbase+1 ;These two are the Decision I ports else daisi0 equ mbase+1 ; and these are the Multi I/O's. daisi1 equ mbase endif ; Define daisy 0 status input bits ribbon equ 01h ;End of ribbon paper equ 02h ;Paper out cover equ 04h ;Cover open pfrdy equ 08h ;Paper feed ready crrdy equ 10h ;Carriage ready pwrdy equ 20h ;Print wheel ready check equ 40h ;Printer check (error) ready equ 80h ;Printer ready ; Define daisy 0 status input bits for Diablo HyType II driver crstrd equ 1020h ;Carriage ready pfstrd equ 810h ;Paper feed ready pwsjump table. The * * standard divisor table is given below. * * * * Sense switch: 123 (0 = off, 1 = on) * * 000 = 110 * * 001 = 300 * * 010 = 1200 * * 011 = 2400 * * 100 = 4800 * * 101 = 9600 * * 110 = 19200 * * defcon = 9600 * * * * Note: If you are compiling with multr3 (a Multi I/O) then * * the switches will not be available so the baud rate * * will be taken from defcon. * * * ***************************************************************** ***************************************************************** * * * Due to its length, the tinit routine driver is below the * * cboot routine. * * * ***************************************************************** ***************************************************************** * * * Read a character from the serial port. * * * ***************************************************************** citty: call selcon ;Selecconf 77, 8, 8 ;Drive 2 dconf 77, 8, 8 ;Drive 3 ************************************************************************* * * * Define 5 1/4 inch drive parameters * * Use Tandon parameters: 40 tracks, 5 ms step, 15 ms settle * * * ************************************************************************* 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 ***************************************************************** * * * Console driver routines. * * * * Routine used depends on the value of contyp. Possible * * contyp values are listed as follows: * * * * 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 * * * ***************************************************************** if contyp ne 0 costrp: mov a,c ;Striptrd equ 2040h ;Print wheel ready ; Define daisy 0 output bits d9 equ 01h ;Data bit 9 d10 equ 02h ;Data bit 10 d11 equ 04h ;Data bit 11 d12 equ 08h ;Data bit 12 pfstb equ 10h ;Paper feed strobe crstb equ 20h ;Carriage strobe pwstb equ 40h ;Print wheel strobe rest equ 80h ;Printer restore (Ribbon lift on Multi I/O) ; Define clock select bits rlift equ 40h ;Ribbon lift pselect equ 80h ;Select (Not used by Diablo) ; Define Modem Control Register bits dtrenb equ 1 ;DTR enable rtsenb equ 2 ;RTS enable ; Define group select bits 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 denable equ 20h ;Driver enable on Multi I/O ; Define special constants for the HyTyp II driver cperi equ 10 ;Default to 10 characters per inch lperi equ 6 ;Default lines per inch hinc equ 120 ;Horizontal increments per inch vinc equ 48 ;Vertical increments per inch numtabs equ 160 ;Number of hot console conin1: in lsr ;Read status register ani dr ;Wait till character ready jz conin1 in rbr ;Read character ani 7fh ;Strip parity ret ***************************************************************** * * * Output a character to serial port. * * * ***************************************************************** cotty: call selcon ;Select console conout1:in lsr ;Read status ani thre ;Wait till transmitter buffer empty jz conout1 mov a,c ;Character is in (c) out thr ;Output to transmitter buffer ret ***************************************************************** * * * Return serial port status. Returns zero if character is not * * ready to be read. Else returns 255 if ready. * * * ***************************************************************** cstty: call selcon ;Select console in lsr ;Read status register ani dr rz ;No charactter ready mvi a,0ffh ;Character ready ret endif ;Multi I/O or D*********** if (contyp eq 2) or (lsttyp ge 2) ;Need group select routines? selg0: lda group ;Select group zero out grpsel ret selcon: lda group ;Select console group ori congrp out grpsel ret selrdr: lda group ;Select reader/punch group ori 5-lstgrp ;Use 'other' serial port out grpsel ret sellst: lda group ;Select printer group ori lstgrp out grpsel ret endif ***************************************************************** * * * 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 $) ;The rest of the page is used foe 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 points 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 $ gt bios+256 ;Test for code overlap 'Fatal error, pointer table placement.' endif org bios+256 ;This table is at a page boundry db high ($-1) ;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) ;DJDMA present? dw dmarap ;Drive parameter table pointer else dw 0 endif dw autost ;Auto command secision I ***************************************************************** * * * contyp: 3 2DB console driver * * * ***************************************************************** if contyp eq 3 cotty: jmp fdcout ;Console output citty: jmp fdcin ;Console input cstty: call fdtstat ;Console status mvi a,0ffh rz inr a ret endif ;2DB ***************************************************************** * * * contyp: 4 DJDMA console driver * * * ***************************************************************** if contyp eq 4 cotty: lxi h,dmchan mvi m,serout ;Command for serial output inx h mov m,c jmp docmd citty: 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 mvi a,7fh ;For masking out parity ana m ret cstty: lda serin+1 ;Pick up serial input status ora a rz ;If zero then no character ready mvi a,0ffr 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 ***************************************************************** * * * 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 $ *************************************************************tructure pointer dw 0 ;End of table marker ***************************************************************** * * * contyp: 1 Blank space for console driver * * * * Note: If the user plans to utilize this space then the * * one time code such as tinit sould be placed just below * * the cboot routine. This space (below cboot) is recyled * * for use as a disk buffer after cboot is done. * * * ***************************************************************** if contyp eq 1 tinit equ $ ;Make it easy to find this place cotty equ $ citty equ $ cstty equ $ ret ds 127 endif ;Blank space ***************************************************************** * * * LST: device driver routines. * * * * Routine used depends on the value of lsttyp. Possible * * lsttyp values are listed as follows: * * * * lsttyp is: 0 Nothing, used for patching to PROM's. * * 1 Provide for 128 bytes of patch space. * * 2 Multio serial, no proh ;Set character ready ret endif ************************************************************************* * * * contyp: 5 Switchboard as serial console * * * ************************************************************************* if contyp eq 5 swbase equ 0 ;Base of the SWITCHBOARD cstty: in swbase+2 ;Get the first ports status ani 4 ;Mask the data ready bits rz ;Return console not ready mvi a,0ffh tinit: ret ;NULL terminal initialization citty: in swbase+2 ;Get switchboard status ani 4 ;Test for data ready jz citty in swbase ;Get a character ani 7fh ;Strip off parity ret cotty: in swbase+2 ;Check status ani 8 ;Wait till output buffer empty jz cotty mov a,c ;Write a character out swbase ret endif ************************************************************************* * * * Multio/Wunderbuss group select routines * * * ************************************************************************** * * * At the first page boundry following the CBIOS we have a series of * * pointers that point to various internal tables. At the start of * * 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, thtocol. * * 3 Multio serial, Clear To Send protocol. * * 4 Multio serial, Data Set Ready protocol. * * 5 Multio serial, Xon/Xoff protocol. * * 7 Multio parallel, Diablo HyType II. * * * ***************************************************************** ***************************************************************** * * * lsttyp: 1 Blank space for printer driver * * * * Note: If the user plans to utilize this space then the * * one time code such as linit sould be placed just below * * the cboot routine. This space (belowe cboot) is recyled * * for use as a disk buffer after cboot is done. * * * ***************************************************************** if lsttyp eq 1 linit equ $ ;Make it easy to find this place list equ $ listst equ $ ret ds 127 endif ;Blank space ***************************************************************** * * * lsttyp: 2, 3, 4, or 5 Serial printer, multi protocol * * * *************aesc 5 forward print * * aesc 6 backward print * * aesc 8 clear tab stop * * aesc 9 set left margin * * aesc A ignored * * aesc B ignored * * aesc D negative half line feed * * aesc U half line feed * * aesc alf negative line feed * * aesc aht c absolute horizontal tab * * aesc avt c absolute vertical tab * * aesc ars c set vmi * * aesc aus c set hmi * * * ***************************************************************** list: lda group ;Set printer initialized flag ori denable sta group mov a,c ;Get the character to print ani 7fh ;Strip off parity rz cpi adel ;Ignore delete rz mov c,a ;Save character lda escflg lxi h,level0 ;Level zero characters ana a mov a,c ;Scan for char in A jz lookup ;Look up activity for this character lda escflg lxi h,level1 ;Single character escape sequences cpi aesc mov a,c ;Scan for char in A jz lookup ;Execute single level escape sequence lxi h,level2 ;Two charactettwo db ars dw settwo db aus dw settwo db 0 dw func1 level2: db aht dw abshtab ;Absolute horizontal tab db avt dw absvtab ;Absolute vertical tab db ars dw setvmi db aus dw sethmi db 0 dw func2 ***************************************************************** * * * The following routines execute escape sequences, etc. * * * ***************************************************************** settwo: doaesc: mov a,c ;Get the escape character sta escflg func0: ret doaetx: ret doalf: call lfvmi ;Get line feed vmi adjvp: xchg lhld dlvpos ;Get vertical motion displacement dad d shld dlvpos ret lfvmi: lda grhflg ana a lxi h,1 ;Only 1/48 if in graphics mode rnz lhld vmi ;Get vertical motion index ret neglf: call lfvmi ;Get line feed vmi call neghl call adjvp jmp func1 doasp: call sphmi ;Get space horizontal motion spdir: lda dirflg ;Forward or backwards ? ana a cnz neghl ;Negate HL adjhp: xchg ;Adjus**************************************************** if (lsttyp ge 2) and (lsttyp le 5) list: call listst ;Check printer status ora a jz list ;Loop if not ready mov a,c ;Print the character out thr ret listst: 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 mov b,a xskip: mov a,b sui xoff ;Check for Xoff char (control S) jnz xsdone ;Printer ready ret ;Printer not ready (return zero) xsdone: mvi a,0ffh ;Printer ready for data ret er escape sequence lda escflg ***************************************************************** * * * Lookup scans the table pointed at by HL looking for a match * * of the character in register A. * * * ***************************************************************** lookup: dcr m ;Test if end of table inr m jz gother ;Execute the default function cmp m ;Otherwise test for a match jz gother inx h ;Bump over character inx h ;Bump over function address inx h jmp lookup gother: inx h ;Bump over character mov a,m ;Get low byte of function address inx h mov h,m ;Get high byte of function address mov l,a ;Form Address of function pchl ;Execute it ***************************************************************** * * * Each of the following tables contains entries of the form: * * 1 byte character to match * * 2 bytes of address to execute * * terminated by a first byte of 0. * * * **********************************t Horizontal position lhld dlhpos ;Get current adjustment dad d ;Update it shld dlhpos ;And save ret sphmi: lda grhflg ;In graphics mode ? ana a lxi h,2 ;Only 1/60 if in graphics mode rnz lhld hmi ret doabs: call sphmi ;Space increment call neghl ;Negative to start with jmp spdir ;Adjust backwards doacr: xra a sta dirflg ;Forward printing sta grhflg ;No graphics mode lhld hpos ;Get current offset xchg lhld lmar ;Get left margin call hlmde shld dlhpos ;Don't move yet though mvi a,autolf ;In Auto line feed mode ? ana a jnz doalf ;Do line feed also ret dochar: mov l,c mvi h,0 call wheel ;Print the character in register C lda grhflg ana a lxi h,0 ;Don't move if in graphics mode jnz spdir lhld hmi jmp spdir clrall equ $ ;Clear all horizontal tabs lxi h,tabstp ;Beginning of tab stop array mvi d,tablen ;Size of tab array (bytes) notblp: mvi m,80h ;Reset tabs (reset to 0 later) kludge equ $-1 ;Used on first reset (warm endif ;Multi I/O serial driver ***************************************************************** * * * lsttyp 7: Diablo 1620 simulator for the Diablo Hytype II. * * * ***************************************************************** if lsttyp eq 7 ;Diablo HyTyp II ***************************************************************** * * * This routine does all of the character decoding, escape * * sequences forward, backward, etc. The list of escape * * sequences, and special characters recognized is: * * * * adel ignored * * anul ignored * * aack ignored (when received) * * abel ignored * * aff form feed * * aetx etx/ack handshake * * aht horizontal tab * * alf line feed * * asp space * * abs backspace * * acr carriage return * * aesc 0 ignored * * aesc 1 set tab stop at current print position * * aesc 2 clear all tab stops * * aesc 3 graphics mode on * * aesc 4 graphics mode off * * ******************************* level0: db aesc dw doaesc ;Beginning of an escape sequence db aff dw doaff ;Form feed db aetx dw doaetx db aht dw doaht ;horizontal tab db alf dw doalf ;Line feed db asp dw doasp ;Space db abs dw doabs ;Back space db acr dw doacr ;Carriage return db 0 dw dochar ;Any other character level1: db '1' dw sethtab ;Set horizontal tab db '2' dw clrall ;Clear all horizontal tabs db '3' dw setgrp ;Graphics mode db '4' dw clrgrp ;Clear graphics mode db '5' dw clrdir ;Forward printing db '6' dw setdir ;Backward printing db '8' dw clrhtab ;Clear horizontal tab db '9' dw setlmar ;Set left margin db '0' dw func1 ;No operation level 1 db 'A' dw func1 db 'B' dw func1 db 'a' dw func1 db 'b' dw func1 db 'D' dw neghlf ;Negative half line feed db 'U' dw poshlf ;Half line feed db alf dw neglf ;Negative line feed db aht dw settwo ;Two character escape sequence db avt dw sboot) inx h ;Next tab stop dcr d ;Update repeat count jnz notblp ;Continue zeroing func2 equ $ func1: xra a ;Clear escape sequence flag sta escflg ret setgrp: mvi a,1 ;Set graphics mode on sta grhflg jmp func1 clrgrp: xra a ;Turn graphics mode off sta grhflg jmp func1 clrdir: xra a ;Forward print mode sta dirflg jmp func1 setdir: mvi a,a ;Set backward printing mode sta dirflg jmp func1 setlmar:lhld hpos ;Get current position xchg lhld dlhpos ;Get offset dad d shld lmar jmp func1 setvmi: mov l,c ;Set the motion index mvi h,0 dcx h shld vmi jmp func2 sethmi: mov l,c mvi h,0 dcx h shld hmi jmp func2 poshlf: call hlfvmi ;Half line feed vmi call adjvp jmp func1 neghlf: call hlfvmi ;Negative half line feed call neghl call adjvp jmp func1 hlfvmi: lhld vmi ;Get vmi for full line feed divid2: mov a,h ;High byte ora a ;Clear the carry rar mov h,a mov a,l rar mov l,a ret abshtab:mov e,c ;Absol ;Get logical vertical position xchg lhld dlvpos dad d pop d push d ;Get copy of forms length call hldde ;HL mod DE xchg pop d xchg call hlmde xchg lhld dlvpos dad d shld dlvpos jmp papr ***************************************************************** * * * Neghl forms the twos complement of HL. * * * ***************************************************************** neghl: mov a,h cma mov h,a mov a,l cma mov l,a inx h ret ***************************************************************** * * * Hlmde subtracts DE from HL and returns. * * * ***************************************************************** hlmde: xchg call neghl xchg dad d ret ***************************************************************** * * * Hlcde compares HL with DE. On return the Z flag is set if * * they are equal, the Carry flag is set if HL is less than DE. * * * ********************************************** ;check if required motion is to the left mov a,h ana a mvi c,0 jp posh call neghl mvi c,d11 posh: xchg lxi h,0 shld dlhpos ;Reset the horizontal increment xchg mov a,l ani 1 jz nohhlf ;No half spaces mov a,c ori d12 mov c,a nohhlf: call divid2 mov a,h ani d9+d10 ora c mov h,a lxi d,crstrd jmp cmnd papr: lhld dlvpos ;Check for any paper motion mov a,h ora l rz ;No motion mov a,h ana a mvi c,0 jp posv call neghl mvi c,d11 posv: mov a,h ani d9+d10 ora c mov h,a push h ;Save paper motion lhld vpos xchg lhld dlvpos ;Get logical position dad d push h ;Save for now lxi h,dfrmln ;Get default form length lxi d,48 call hltde ;Multiply by 48 lxi d,10 call hldde ;Divide by 10 pop d xchg call hldde ;Compute HL mod DE xchg shld vpos ;Save new vertical position lxi h,0 shld dlvpos ;Reset vertical motion pop h lxi d,pfstrd ;Paper feed strobe jmp cmnd wheel: push h call carrg ;Position the carrute horizontal tab mvi d,0 dcx d ;Form 16 bit tab column call newdlh jmp func2 newdlh: lhld hmi call hltde ;Multiply by hmi xchg lhld hpos ;And subtract current horizontal position xchg call hlmde shld dlhpos ret absvtab:mov e,c ;Absolute vertical tab mvi d,0 dcx d lhld vmi call hltde ;Multiply by vmi xchg lhld vpos ;And subtract the current vertical position xchg call hlmde shld dlvpos jmp func2 sethtab:call tabcol ;Set horizontal tab ora m ;OR in tab stop mov m,a ; and save jmp func1 tabcol: lhld hpos ;Compute address of current character col xchg lhld dlhpos dad d ;Get logical position xchg lhld hmi ;And divide by hmi to get character column xchg call hldde mtabp: ;Make a tab pointer ;HL -> Tab column desired (1-160) ;HL <- address of tab stop ; A <- bit mask for tab stop lxi d,8 ;Number of stops per byte call hldde ;HL/DE -> HL, HL mod DE -> DE mov c,e ;Save inr c ;Make range (1-8) lxi d,tabstp ;******************* hlcde: mov a,h cmp d rnz mov a,l cmp e ret ***************************************************************** * * * Divide the number in HL by the number in DE. Return the * * quotient in HL and the remainder in DE. * * * ***************************************************************** hldde: mov a,d ;Start by negating DE and cma ; moving the left operand to BC mov b,a mov a,e cma mov c,a inx b mvi a,16 ;Repeat count in reg A lxi d,0 ;Initial remainder is zero div3: dcr a ;Test if done rm ;All done ? dad h ;Shift right operand to the left xchg push psw ;Save carry dad h ;Shift left operand to the left pop psw jnc div1 ;Does it fit ? inx h div1: push h dad b jnc div2 xchg inx h xthl pop h jmp div3 div2: pop h xchg jmp div3 ***************************************************************** * * * Multiply the contents of HL by the contents of DE. * * * ****************iage first call papr pop h lxi d,pwstrd cmnd: call selg0 ;Select group 0 cmnd0: in daisy0 ana d jz cmnd0 mov a,l ;Negate low data bits cma mov l,a mov a,h ani d9+d10+d11+d12 ;Mask in data bits only cma if multr3 ;Mask out ribbon lift bit on Multi I/O ani 0ffh-rest endif mov h,a mov a,l out daisi1 ;Output low bits mov a,h out daisi0 ;Output high bits xra e ;Slap strobe bits in out daisi0 mov a,h ;And drop strobes back down out daisi0 ret ***************************************************************** * * * New list device status routine. Returns 0ffh if the printer * * can except another character, otherwise it returns 0. * * * ***************************************************************** listst: lda group ;Check printer initialized flag ani denable rz ;0 = printer not initialized call selg0 ;Select group 0 lxi d,pwstrd in daisy0 ana d mvi a,0 rz cma ret **************************************Tab array dad d ;Make array pointer xra a stc mtab0: rar dcr c ;Bump bit counter jnz mtab0 ret clrhtab:call tabcol ;Clear horizontal tab cma ana m ;Mask out tab stop mov m,a jmp func1 doaht: lhld hpos ;Compute address of current character col xchg lhld dlhpos dad d ;Get logical position xchg lhld hmi ;And divide by hmi to get character column xchg call hldde tablop: lxi d,numtabs inx h ;Start with next position call hlcde ;Compare position with number of tabs jnc tofar ;Past last tab push h ;Save col pointer call mtabp ;Generate tab pointer ana m ;Check out tab stop pop h ;Restore col pointer jz tablop ;Loop if stop not set xchg jmp newdlh ;Set new col position and return tofar: lhld hpos ;Go all the way to the right xchg lxi h,maxrgt call hlmde shld dlhpos ret doaff: lxi h,dfrmln ;Multiply forms length by 48 lxi d,48 call hltde lxi d,10 call hldde ;And divide it by 10 push h ;Save this result lhld vpos ************************************************* hltde: mov c,l mov b,h lxi h,0 mult: mov a,b ora c rz mov a,b ora a rar mov b,a mov a,c rar mov c,a cc dadde xchg dad h xchg jmp mult dadde: dad d ret ***************************************************************** * * * The routines below actually interface to the printer, * * causing paper feed, carriage, and print wheel motion. * * * ***************************************************************** carrg: lhld dlhpos ;Check for any accumulated motion mov a,h ora l rz lhld hpos ;Check for too much motion xchg lhld dlhpos dad d mov a,h ana a jp lftok lhld hpos call neghl shld dlhpos lftok: lhld hpos xchg lhld dlhpos dad d lxi d,maxrgt call hlcde jc rgtok lhld hpos ;Otherwise move only to maxright xchg lxi h,maxrgt call hlmde shld dlhpos rgtok: lhld hpos ;Update the horizontal position xchg lhld dlhpos dad d shld hpos lhld dlhpos *************************** * * * Dynamic data locations used by the simulator. * * * ***************************************************************** hmi: dw 0 ;Horizontal motion index. Set by linit ; and escape sequences vmi: dw 0 ;Vertical motion index. Set by linit ; and escape sequences vpos: dw 0 ;Vertical position. Set by platen motion dlvpos: dw 0 ;Delta vpos. Set by platen motion hpos: dw 0 ;Horizontal position. Set by carriage motion dlhpos: dw 0 ;Delta hpos. Set by carriage motion lmar: dw 0 ;Left margin dirflg: db 0 ;Direction flag grhflg: db 0 ;Graphics mode flag escflg: db 0 ;Escape sequence in progress flag tabstp: ds numtabs/8+1 ;Tab stops bit array tablen equ numtabs/8+1 ;Length of tabs array endif ***************************************************************** * * * The following routines are used to make the reader and punch * * devices peform I/O through the console. The user may patch * * here for their particul 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 ;Halt computer db 0 jmp wboot ;In case user restarts the computer ***************************************************************** * * * 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 ***************************************************************** * * * Setdma saves the DMA address for the data transfer. * * * ***************************************************************** setdma: mov h,b ;Enter with DMA address in (bc) mov l,c shld cpmdma ;CP/M dma address ret ***************************************************************** * * * a l ; zero to indicate an error jz zret ;Yes, an error 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: push d ;Save DPH address mov h,c ;Drive in (h) mvi l,d$sel2 ;Select drive call jumper call gdph ;Quick select pop d mov e,m ;DPH -> (de) inx h mov d,m inx h mov c,m ;Sector size -> (c) xchg ;DPH -> (hl) jmp setd0 gdph: lda cpar devices. * * * ***************************************************************** punch: jmp cout reader: jmp cin ***************************************************************** * * * 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 h,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 ;PoHome is translated into a seek to track zero. * * * ***************************************************************** home: lda bufwrtn ;Test buffer dirty flag ora a jnz dohome ;Skip buffer disable if buffer dirty xra a ;Invalidate buffer on home call sta bufsec dohome: lxi b,0 ;Track to seek to ***************************************************************** * * * 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 ***************************************************************** * * * 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$stramdrv ;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 zret: lxi h,0 ;Seldrv error exit lda lastdrv ;Get last selected drive mov c,a lda cdisk ;Pick up user/drive ani 0f0h ;Save user number ora c ;Put together with old drive sta cdisk ret ***************************************************************** * * * DPH save area. 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... * * 3 - Bad map has been initilized (0 = Uninitilized) * * * ***************************************************************** dphtab: rept maxlog*4 db 0 endm ***************************************************************** * * * Getbad - Check if a device has a bad map. If the device has * * a bad sector map then append bad entinter 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 itself 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 ***************************************************************** * * * 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 mvin jmp jumper ;See device level sector translation routines ***************************************************************** * * * 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 orries to end of badmap * * table. * * * ***************************************************************** 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 overflow lda cpmdrv ;Put drive in table mov m,a inx h lxi b,8 call ently in the buffer. If no match is made, the * * buffer is flushed if necessary and the correct sector read * * from the disk. * * * ***************************************************************** redwrt: 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 side 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 ; of the physical sectors mov l,a 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 dtof the buffer out to the disk if * * it has ever been written into. * * * ***************************************************************** flush: mvi a,0 ;The 0 is modified to reflect if ; the buffer has been written into bufwrtn equ $-1 ora a ;Test if written into rz ;Not written, all done mvi a,d$write sta rwop+1 call prep ;Do the physical write sta error ;Set up the error flag ret ***************************************************************** * * * Prep prepares to read/write the disk. Retries are attempted. * * Upon entry, H&L must contain the read or write operation * * address. * * * ***************************************************************** 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 ;Tracmovbyt ;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 omes: db 0dh, 0ah, 'BAD MAP OVERFLOW!', 0dh, 0ah, 0 nobad: lxi h,0 ;Used by device drives to indicate no bad ret ; sector map badptr: dw badmap ;Pointer to next available bad map entry ***************************************************************** * * * 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 to 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 ;Savslop: 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 ***************************************************************** * * * 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 cpmsec ;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 reprek number -> (hl) mov a,h ;Test for track zero ora l push h ;Save track number mvi l,d$home cz jumpbuf pop b ;Restore track # 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 rwop: mvi l,0 ;Get operation address call jumpbuf pop b ;Restore the retry counter mvi a,0 ;No error exit status rnc ;Return no error dcr b ;Update the retry counter stc ;Assume retry count expired mvi a,0ffh ;Error return rz ;Return sad news 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 ***************************************************************** * * * Fill fills the buffer with a new sector from the disk. * * * ***************************************************************** fill: call flushe write command type sta writtyp mvi a,1 ;Set write command jmp rwent ***************************************************************** * * * 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 rwent: sta rdwr ;Save command type ***************************************************************** * * * Redwrt calculates the physical sector on the disk that * * contains the desired CP/M sector, then checks if it is the * * sector currsent 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 ;Beginning 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/ ; contain the DMA address cpmdma equ $-2 mvi a,0 ;The zero gets modified to contain ; a zero if a read, or a 1 if write rdwr equ $-1 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 ; DE = source mvi a,1 sta bufwrtn ;Set buffer written into flag mvi a,0 ;Check for directory write writtyp equ $-1 dcr a ;Test for a directory write mvi a,0 rnz ;No error exit ***************************************************************** * * * Flush writes the contents  ;Flush buffer first rc ;Check for error lxi d,cpmdrv ;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 jnz fnaloc ;Skip if not an allocated write lda unaloc ;Check unallocated write in progress flag ora a 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 jnz awritin ;Drive is different, clear unallocated mode ret ;Unallocated write, do nothing... fnaloc: dcr a jz awritin ;Do a directory write ;We are now doing an unallocatable. 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 map 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 cmBump text pointer 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 ***************************************************************** * * * The following code is for the Diskus Hard disk * * * ***************************************************************** if hdc3 ne 0 ;Want HDC3 or 4 controller included ? 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 ed 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 ret ; and we do nothing about the write awritin:xra a ;Clear unallocated writting mode sta unaloc else ;Do standard unallocated test sui 2 ;Test for an unallocated write rz endif fwritin:lda secsiz ;Check for 128 byte sectors dcr a rz ;No deblocking needed fread: mvi a,d$read sta rwop+1 call prep ;Read the physical sector the buffer sta error ;Set the error status ret ***************************************************************** * * * Jumpbuf, jumper are used to dispatch to a low level device * * subroutine. Jumper is called 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. * * * ************p 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 ***************************************************************** * * * Mover moves 128 bytes of data. Source pointer in DE, Dest * * pointer in HL. * * * ***************************************************************** mov128: lxi b,128 ;Length of transfer 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  ;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 rsect 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 ***************************************************** jumpbuf:lda bufdrv ;Dispatch with bufdrv for drive mov h,a 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 ;Logical in (a) pop b ;Restore saved registers pop d pchl ***************************************************************** * * * Check for alternate sectors in bad sector t ;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 ***************************************************************** * * * 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 ***************************************************************** * * * 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 ; ;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 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 e 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 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 sloop ;Keep going the required # of tracks jmp wsdone 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 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 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 ***************************************************************** * * * The following equates relate the Morrow Designs 2D/B * * controller. If the controller is non standard (0F800H) * * only the FDORIG equate need be changed. rrors stc ;Error flag ret hdtran: mov h,b ;Sector translation is handled via mov l,c ; physical sector header skewwing inx h ret 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 ana c ; previous stathdskomp ;Clear sdone bit on an HDCA4 ret 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 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 divsx: sui hdspt rc inr c jmp divsx endif 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 hdwrite:call * * * ***************************************************************** if maxfd ne 0 ;Include Discus 2D ? fdorig equ 0f800H ;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 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 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 hdhome: call hdptr ;Get track pointer mvi m,0 ;Set track 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 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 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 e fdram equ fdorig+400h ;Disk Jockey 2D RAM address dblsid equ 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 ***************************************************************** * * * Floppy disk warm boot loader * * * ***************************************************************** fdwarm: mov c,a call fdsel ;Select drive A  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 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 ;Restore 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 ou 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 fdsel2: sta fdlog mov c,a jmp fdsel fdlhome:mvi c,0 ;Select side 0 call fdside jmp fdhome ;Do actual home fdssec: push b ;Save sector number mov a,b ;Check side select bit rlc ;Move high bit to bit 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 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 c,l call fddma ;Set up the new DMA address lxi b,retries*100h+0;Maximum # of errors, track # wrmfret 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 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 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 ;Recal 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 ;Floppy drive status byte fdlsid: rept maxfd db 0ffh ;Double sided flag 0 = single, 1 = double endm endif if (maxfd ne 0) or (maxdm ne 0) ***************************************************************** * * * 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 ;d: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 wrmread xra a ;Clear error indicator ret wrmread:push d call fddma ;Set DMA address pop bibrate 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 ;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,Xlt for 512 byte sectors dw xlt124 ;Xlt for 1024 byte sectors ***************************************************************** * * * 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 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********************* * * * The following DPB defines a diskette as 1024 byte sectors, * * double density, and single sided. * * * ***************************************************************** 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 ***************************************************************** * * * The following DPB defines a diskette for 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 ***************************************************************** * * * The following DPB defines a diskette as 256 byte sectors, * * double densrt senabl equ 2ch ;Enable serial input trksiz equ 2dh ;Set number of tracks setlog equ 2eh ;Set logical drives readm equ 0a0h ;Read from controller memory writem equ 0a1h ;Write to controller memory dmfstp equ 3*341/10 ;Fast stepping rate constant is 3 ms * 34.1 dmfset equ 15*341/10 ;Fast settling rate constant is 15 ms * 34.1 n$dubl equ 80h ;Double density n$2side equ 40h ;2 sided drive serin equ 03eh ;Address of serial input data, (status - 1) ***************************************************************** * * * Device Specification Table for the Disk Jockey DMA floppy * * * ***************************************************************** if maxdm ne 0 dmdst: db maxdm ;Number of logical drives dw dmwarm ;Warm boot dw dmtran ;Sector translation dw dmldrv ;Select drive 1 dw dmselr ;Select drive 2 dw dmhome ;Home drive dw dmseek ;Seek to specified track dw dmssec ;Set sector dw dmdma ;Set DMA address dw dmread ;Read a sector dw ,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 ***************************************************************** * * * Each of the following tables describes a diskette with the * * specified characteristics. * * * ***************************************************************** ***************************************************************** * * * The following DPB defines a diskette for 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 ity, 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 ***************************************************************** * * * The following DPB defines a diskette as 512 byte sectors, * * double density, and double sided. * * * ***************************************************************** dpb512d:dw 120 ;CP/M sectors/track db 4 ;BSH db 15 ;BLM 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 ***************************************************************** * * * The following DPB defines a diskette as 1024 byte sectors, * * double density, and double sided. * * * ***************************************************************** ddmwrite ;Write a sector dw nobad ;No bad sector map dmtrck equ 22*128 ;Amount of code on track 0 dmwarm: call dmselr ;Select drive 0 lxi h,dmchan ;Set up branch mvi m,bracha inx h mvi m,(low dmwchn) ;Low address byte inx h mvi m,(high dmwchn) ;High address byte inx h mvi m,0 dmwbad: lxi h,dmwend-1 ;Pointer to end of command structure call docmd ;Read in tracks lda dmwst ;Get track read status ani 40h jz dmwbad ;Loop on 'terrible' errors like no disk lxi b,300h ;3/4 K bytes of sector 3 needs to be moved 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 dmwsec ;Sector load/status map db 0 dmwst: db 0 ;Track read status db dmsdma dw ccp+dmtrck ;DMA address for track 1 db 0 db rdtrck db  db 0 ;AL1 dw 16 ;CKS dw 2 ;OFF db 1 ;128 byte sectors ***************************************************************** * * * The following DPB defines a diskette for 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 ***************************************************************** * * * The following DPB defines a diskette as 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 ********************************************p1024d: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 ***************************************************************** * * * The following equates relate the Morrow Designs DJDMA * * controller. * * * ***************************************************************** if (maxdm ne 0) or (maxmf ne 0) dmchan equ 50h ;Default channel address dmkick equ 0efh ;Kick I/O port address rdsect equ 20h ;Read sector command wrsect equ 21h ;Write a sector command gstat equ 22h ;Get drive status dmsdma equ 23h ;Set DMA address intrqc equ 24h ;Set Interrupt request dmhaltc equ 25h ;Halt command bracha equ 26h ;Channel branch setcha equ 27h ;Set channel address setcrc equ 28h ;Set CRC retry count rdtrck equ 29h ;Read track command wrtrck equ 2ah ;Write track command serout equ 2bh ;Serial ouput through bit banger serial po1 ;Track 1 db 0 ;Side 0 db 0 ;Drive 0 dw dmwsec+26 ;Map is loaded right after track 0 status map db 0 db 0 ;Track read status db dmsdma dw buffer ;Sector 3 gets loaded in system buffer db 0 db rdsect db 1 ;Track 1 db 3 ;Side 0, sector 3 db 0 ;Drive 0 dmwend: db 0 ;Read status dw 0 ;Room for the halt dmwsec: 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 dw 0, 0ffffh, 0ffffh, 0ffffh ;First 2 sectors on track 2 dmselr: sta dmlog mvi b,0 ;8 inch logical drives start at zero jmp dmsel2 dmtran: inx b push d ;Save table address push b ;Save sector # call dmget lxi d,10 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 cary rar ;Divide by two sub c push psw ;Save adjusted sector jm dmside2 dmsidea:pop psw ;Discard adjusted sector pop b ;Restore sector requested pop d ;Restor address of xlt table dmside1:xchg ;hl <- &(trans dmfstp) lxi d,5 ;Skip over the reserved fields dad d mvi m,(low dmfset) ;Fast settling rate constant inx h mvi m,(high dmfset) call dmparm ;Set drive parameters for the SA850 ret endif ***************************************************************** * * * Drive specification table for DJDMA 5 1/4 inch drives * * * ***************************************************************** if maxmf ne 0 mfdst: db maxmf ;Number of logical drives dw mfwarm ;Warm boot dw mftran ;Sector translation dw mfldrv ;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 dmread ;Read a sector dw dmwrite ;Write a sector dw nobad ;No bad sector map mftrck equ 9*512 ;Amount of code on track 0 mfwarm: call mfsel2 ;Select drive 0 lxi h,dmchan ;Set up branch mvi m,bracha inx h mvi m,(low mfwchn) ;Low address byte inx h mvi m,(high mfwchn) ;Hof sector number equal 0 ret mfldrv: sta mflog call dminit ;Test for a controller jc zret lda mflog ;Get proper physical configuration byte mov c,a mvi b,0 lxi h,mfscon dad b mvi a,n$dubl mov m,a sta mfpcon 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 jc zret ;Test for error return lda buffer+5ch ;Get diskette configuration byte push psw ;Save configuration byte lxi h,1 shld cpmtrk ;Load track 1 sector 1 call fill ;This is to fix bug with DJDMA firmware on jc zret ; returning single density status on track 0 pop psw ora a jnz mfl9 ;Non zero mvi a,90h ;Double density default configuration call dmstat ;If zero then determine sector size ani 80h ;Check density bit jnz mfl9 ;Its double density mvi a,10h ;Single density default configuration byte mfl9: mov c,a ;Move configuration byte into (c) lxi h,mfs ;Addreslation table) dad b ;bc = offset into table mov l,m ;hl <- physical sector mvi h,0 ret dmside2:call dmstat ani 20h jz dmsidea 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 dmside1 mvi a,80h ;Side two bit ora h ; and sector mov h,a ret dmldrv: sta dmlog call dminit ;Test for a drive jc zret 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 ;Flush buffer and refill jc zret ;Test for error return call dmstat ;Get status on current drive 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 dmget pop d lxi b,2 ;Number of bytes to move call movbyt ;Move the address of XLT lxi d,8 ;Offset to DPB pointer dad d ;HL <- &DPH.DPB push igh address byte inx h mvi m,0 mfwfal: lxi h,mfwend-1 ;Pointer to end of command structure call docmd ;Read in tracks lda mfwst ;Check out drive status ani 40h ;Test for ok jz mfwfal ;Failed, loop 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 0 ;Drive 0 dw mfwsec ;Sector load/status map db 0 mfwst 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 0 ;Drive 0 dw mfwsec+10 ;Map is loaded right after track 0 status map db 0 mfwend: db 0 ;Track read status dw 0 ;Room for the halt mfwsec: dw 0ffh, 0, 0, 0, 0 ;Do not load boot loader dw 0, 0ffffh, 0ffffh, 0ffffh, 0ffffh ;first two sectors loaded mfssec: dcr c ;Minnie floppy sectors start at zero lda dblflg ;Get double sided flags ora a jz dmssec ;Nope, single sided mvi s of configuration table -> (hl) mfl2: 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 mfl3 inx h ;Skip onfiguration byte inx h ;Skip drive type inx h ;Skip DPB address inx h jmp mfl2 mfl3: inx h mov a,m ;Pick up drive type sta mfpcon mov e,a push h lda mflog ;Get proper physical configuration byte mov c,a mvi b,0 lxi h,mfscon dad b mov m,e pop h inx h mov a,m inx h mov h,m mov l,a ;DPB address -> (hl) push h ;Save DPB address call mfgdph ;Get DPH 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 push h call dmstat ;Get status pop h ani 80h ;Check density bit mvi c,3 ;512 byte sectors rnz mvi c,2 ;256 byte sectors ret mfgdph lda mflog lxi d,dphmf0 jmp retdph mfpcon: db 0 ;Physical configuration byte mflog: db 0 mfscon: db 0, 0, 0, 0 ;Saved physih call dmstat ani 20h ;Check double sided bit lxi d,dpb128s ;Base for single sided DPB's jz dmsok call sethigh ;Set controller to know about fast steping lxi d,dpb128d ;Base of double sided DPB's dmsok: xchg ;HL <- DBP base, DE <- &DPH.DPB pop d ;Restore DE (pointer into DPH) pop psw ;Offset to correct DPB ral ral mov c,a mvi b,0 dad b xchg ;Put DPB address in DPH mov m,e inx h mov m,d lxi h,15 dad d mov c,m dmget: lda dmlog lxi d,dphdm0 jmp retdph ; ; The current drive is double sided. Thus is it safe to set the ; stepping rate to 3 ms with 15 ms settling. ; sethigh:lhld dmlog ;Get the current drive number dad h ;Ten bytes per parameter table entry mov d,h mov e,l dad h dad h dad d lxi d,dparam+1 ;Parameter table address dad h ;Skip the track size byte mvi m,0ffh ;Force reparamitization of this drive inx h ;Offset to the Stepping rate constant mvi m,(low dmfstp) ;Fast stepping rate constant inx h mvi m,(highb,80h ;Set high bit for double sided select jmp dmssec dblflg: db 0 mfseek: xra a ;Clear double sided select sta dblflg lda mfpcon ani n$2side jz dmseek ;Only single sided mov a,c ;Move selected track in (a) sbi 35 ;Subtract by track by number of tracks jc dmseek ;Less than track 35 mov d,a ;Save adjusted track number mvi a,34 sub d ;Adjust to count tracks back out mov c,a ;Resave new track number mvi a,0ffh ;Set double sided flag sta dblflg jmp dmseek mfsel2: sta mflog mov c,a ;Get proper physical configuration byte mvi b,0 lxi h,mfscon dad b mov a,m sta mfpcon mov a,c ;Shhh, pretend that nothing happened mvi b,4 ;5 1/4 inch drives start at drive 4 jmp dmsel2 mftran: lda mfpcon ani n$dubl lxi h,mfxltd ;Point to double sided sector translation table jnz mftdubl ;Single density sector translation lxi h,mfxlts mftdubl:dad b ;Add offset sector number to table mov l,m ;Pick up sector number from table mvi h,0 ;MSB cal configuration bytes mfs: db 10h ;North Star CP/M 1.4 db 0 ;Single density, 35 tracks, single sided dw dpbmf0 ;1K groups db 90h ;North Star CP/M 1.4 db n$dubl ;Double density, 35 tracks, single sided dw dpbmf1 ;1K groups db 0b0h ;North Star CP/M 2.x db n$dubl ;Double density, 35 tracks, single sided dw dpbmf2 ;2K groups db 0f0h ;North Star CP/M 2.x db n$dubl+n$2side ;Double density, 35 tracks, double sided dw dpbmf3 ;2K groups db 0e5h ;North Star CP/M 1.4 db n$dubl ;Double density, 35 tracks, single sided dw dpbmf1 ;1K groups db 0a0h ;North Star CP/M 2.x (fake 40 track) db n$dubl ;Double density, 35 tracks, single sided dw dpbmf2 ;2K groups db 0d0h ;North Star CP/M 2.x (fake 40 track) db n$dubl+n$2side ;Double density, 35 tracks, double sided dw dpbmf3 ;2K groups db 0 ;End of configuration 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 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 constants 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 dmhome xra a mov c,a ;Put a zero into (c) for track zero dmseek mov a,c ;Enter with track in (c) sta lltrk ;Save for use later ret dmsec lda llss ;Load sector ani 80h ;Save side select bit stores ora c sta llss ret dmside: mov a,c ;Move side bit into (a) ani 1 rrc ;Move around to bit 7 mov c,a ;R 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 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 dmhaltc ;Controller halt db 0 ;Status ; ; Driver variables ; lltrk db 0 llss db 1 lldrv db 0 dmlog db 0 endif ***************************************************************** * * * The follwing equates are for the HDDMA hard disk controller * * * ***************************************************************** if maxmw ne 0 ;HDDMA controller present ? if st506 ;Specifications for a Seagate Technology 506 cyl equ 153 ;Number of cylinders heads equ 4 ;Number ,34,35,36 db 17,18,19,20 db 37,38,39,40 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 endif ***************************************************************** * * * Common routines for the DJDMA with 8 and 5 1/4 inch drives * * * ***************************************************************** dmsel2: mov c,a ;Move drive into (c) lxi h,dmchan mvi m,setlog ;Set logical drives inx h mov m,b ;Drive in (b) push b call docmd pop b jmp dmsel dmssec: push b ;Save sector number mov a,b rlc ani 1 mov c,a call dmside pop b jmp dmsec dmdma lxi h,dmchan ;Default channel address mvi m,dmsdma ;Set DMA address inx h mov m,c ;Low byte first inx h mov m,b ;High byte next docmd xra a inx h mov m,a docmd2 inx h mvi m,dmhaltc inx h mov m,a out dmkick tests ora m jz tests ret dminit: lxi h,dmchan ;See if controller will halt mvi m,dmhaltc inx h mvi mesave in (c) lda llss ani 7fh ;Mask out old side select bit jmp stores dmsel: mov a,c ;Move drive into (a) sta lldrv dmden: ret ;Double density only ; ; Return status in the (a) register in the form: ; ; 7 6 5 5 3 2 1 0 ; ^ ^ ^ ^ ^ ^ ^ ^ ; Density --------------+ | | | | | | | ; Side select -------------+ | | | | | | ; Double sided ---------------+ | | | | | ; 5 1/4 -------------------------+ | | | | ; Sector size MSB ------------------+ | | | ; Sector size LSB ---------------------+ | | ; Drive select MSB -----------------------+ | ; Drive select LSB --------------------------+ ; dmstat lxi h,dmchan mvi m,gstat ;Set up read status inx h lda lldrv ;Get last selected drive mov m,a ;Store drive in command inx h ;Skip over returned status inx h inx h call docmd ;Issue command lda llss ;Get side bit of last operation ani 80h rrc ;Move to bit 7 mov c,a lxi h,dmchan+1 ;Point to drive mov a,m ;Load dof 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 (0-25.5 milliseconds) endif if st412 ;Specifications for a Seagate ST412 cyl equ 306 heads equ 4 precomp equ 128 lowcurr equ 128 stepdly equ 0 steprcl equ 30 headdly equ 0 endif if cm5619 ;Specifications for an CMI 5619 cyl equ 306 heads equ 6 precomp equ 128 lowcurr equ 128 stepdly equ 2 steprcl equ 30 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 1 ;Write sector dmarhed equ 2 ;Find a sector dmawhed equ 3 ;Write headers (format a track) dmalcon equ 4 ;Load disk p,0 out dmkick ;Start controller lxi d,0 ;Set up timeout counter dminwt mov a,m 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 push h ;Set drive parameters call dmparm pop h dcx h ;Back to start of command mvi m,setcrc ;Disable monitor inx h mvi m,1 xra a jmp docmd2 ;Do command ; ; Set floppy drive parameters ; ; This routine reads the dparam table and if the a drive has not ; previously been calibrated then that drives track count, ; stepping rate, and head settling time are loaded. ; dmparm: mvi a,8 ;Eight drives lxi d,1340h ;Start with drive 0's table lxi h,dparam+1 ;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 calibratedrive ora c ani 4 ;Mask upper drive select bit for 5 1/4 rlc rlc ;Move to bit 4 ora m ;Put together with lower drive bits ora c mov c,a inx h mvi a,10h ;Double density bit ana m rlc ;20h rlc ;40h rlc ;80h for density bit ora c mov c,a inx h mvi a,3 ;Sector length mask ana m ;And in rlc ;Move to bits 2 & 3 rlc ora c mov c,a inx h mvi a,4 ;Mask for double sided bit ana m rlc ;8 rlc ;10 rlc ;20 ora c ret dmwrite mvi a,wrsect db 01 ;Ugh... dmread mvi a,rdsect lxi h,dmchan lxi d,lltrk-1 mvi b,4 cload mov m,a inx h inx d ldax d dcr b jnz cload dcx h call docmd lda dmchan+4 cpi 80h cmc ret ; ; Execute a DJDMA command, no command status is returned ; ; Entry: ; DE = offset to the halt status ; HL = pointer to the start of the command ; ; Returns: ; nothing ; dmdoit: mvi a,bracha ;Branch channel command sta dmchan shld dmchan+1 ;Load command vector xra a ;Clear extended address arameters 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 ;Home current selected drive ze of 1024 ret 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 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 h mvi m,0ffh lxi b,0 ;Seek to cylinder 0 call mwseek ;Recal slowly jmp mwreset ;Back to fast stepping mode 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 mwseek call mwptr ;Get track pointer mov e,m ;Get old track number inx h mov d,m dcx h mov m,c ;St mwread mvi a,dmaread ;Load disk read command 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,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 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 h 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 > 2 ;Test if drive is big enough for a bad spot map dw mwbad ;Return bad sector map info else dw nobad endif ***************************************************************** * * * The following are the lowest level drivers for the Morrow * * Designs Hard Disk DMA controller. * * * ***************************************************************** 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 ;Move 200h bytes call movbyt lxi h,ccp-200h ;Initial DMA address push h xra a push a ;Save ore 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 address 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 iexout ;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 space 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 retfirst 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 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 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 sif 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 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  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 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 dck hdtrks equ 243 ;Total data tracks endif if m20 ne 0 hdsectp equ 672 hdtrks equ 243 endif if m26 ne 0 hdsectp equ 1024 hdtrks equ 201 endif ldsk set 0 ;Use non-standard partitioning tracks set hdtrks/hdlog ;Number of tracks per partition dsm set hdsectp/8*tracks/4-1 ;Number of groups per partition off set 1 rept hdlog dpbgen hd,%ldsk,%hdsectp,5,31,1,%dsm,511,0ffh,0ffh,0,%off,3 off set off+tracks ldsk set ldsk+1 endm else ;Else use standard DPB's 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 ;DRM db 0ffh ;AL0 db 0ffh ;AL1st412 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 if mwpart ne 0 ;Generate DPB's for a HDDMA hard disk ldsk set 0 ;Use non-standard partitioning tracks set mwtrks/mwlog ;Number of tracks per partition dsm set mwsectp/8*tracks/4-1 ;Number of groups per partition off set 1 rept mwlog dpbgen mw,%ldsk,%mwsecpt,5,31,1,%dsm,1023,0ffh,0ffh,0,%off,4 off set off+tracks ldsk set ldsk+1 endm else ;Use standard partitioning off set 1 ;Initial system track offset trkoff set 8192/(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,mastat db 0 ;Controller status byte dmalnk dw dmachan ;Link address to next command channel db 0 ;extended address endif ***************************************************************** * * * 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 bufsec: dw 0 ;Sector that buffer belongs to alttrk: dw 0 ;Alternate track altsec: dw 0 ;Alterante sector lastdrv:db 0 ;Last selected drive ************************** 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 ;OFF db 3 ;SECSIZ endif endif5,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 endif buffer equ $ ***************************************************************** * * * Signon message output during cold boot. * * * ***************************************************************** 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 ; ; Print a message like: ; ; AB: DJDMA 8", CD: DJDMA 5 1/4", E: HDDMA M5 ; msdrv set 0 ;Start with drive A: msbump macro ndrives ;Print a drive name if dn gt 1 db ', *************************************** * * * DPB and DPH area. * * * ***************************************************************** if maxhd ne 0 dphdsk set 0 ;Generate DPH's for the hdc3 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 hdpart ne 0 ;Use non-standard partitioning ***************************************************************** * * * hdsectp is the number of 128 byte sectors per cylinder. * * * * hdtrks is the total number of data cylinders. Eg. it is * * the number of cyliders on the drive minus the number of * * cylinders that are used for the system. If the number of * * 'system tracks' is not one then the initial value of * * 'off' should be adjusted accordingly. * * * * hdtrks = tracks - 1 * * * ***************************************************************** if m10 ne 0 hdsectp equ 336 ;Sectors per tra endif ;End of HD DPH's and DPB's if maxmf ne 0 dpbgen mf, 0, 20, 3, 7, 0, 04fh, 63, 0c0h, 0, 16, 3, 2 dpbgen mf, 1, 40, 3, 7, 0, 0a4h, 63, 0c0h, 0, 16, 2, 3 dpbgen mf, 2, 40, 4, 15, 1, 051h, 63, 80h, 0, 16, 2, 3 dpbgen mf, 3, 40, 4, 15, 1, 0a9h, 63, 80h, 0, 16, 2, 3 dn set 0 rept maxmf dphgen mf,%dn,dpbmf,%dn dn set dn+1 endm endif if maxfd ne 0 dn set 0 rept maxfd dphgen fd,%dn,0,0 dn set dn+1 endm endif if maxdm ne 0 dn set 0 rept maxdm dphgen dm,%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 ' 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 < 10 db temp + '0' else db temp - 10 + 'A' endif endm dn set 1 ;Generate 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 'HDDMA' 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 ;Generale 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 valid ;Do rate check 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 ;Point to high byte of word mov d,m ;Get upper byte. (de) now has divisor jmp setit ;Set baud rate 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 ***************************************************************** * * * The following is a list of valid baud rates. The current * * baud rate is checked on cold boot. If it is not in the * * vtab tablecr in msr ;Clear MODEM Status Register in lsr ;Clear Line Status Register in rbr ;Clear reciever buffers in rbr ret endif ;Multi I/O, Decision I if contyp eq 3 ;2D/B console initialization tinit: call fdtstat ;Clean input buffer rnz ;All empty call fdcin jmp tinit endif ;2D/B console if contyp eq 4 tinit: call dminit ;See if controller present rc ;No controller, return lxi d,dmaci ;Console initialization sequence lxi h,dmchan lxi b,10 ;Command length call movbyt dcx h xra a ;Clear serial input status sta serin+1 jmp docmd2 ;Do stuff and return dmaci: db writem ;Zot monitor disable flag dw tinit ;Any non-zero byte will do db 0 dw 1 ;One byte dw 13f5h ;Magical place in monitor db senabl ;Enable serial input db 1 endif if (lsttyp ge 2) and (lsttyp le 5) ;Serial Multi I/O list drivers linit: call sellst ;Select printer group mvi a,dlab ;Access divisor latch out lcr lhld deflst ;Get te 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 'DJDMA 8"' endif if dn eq mforder ;Generate the DJDMA 5 1/4 message msbump maxmf db 'DJDMA 5 1/4"' endif d se dn+1 endm db acr,alf db 0 ;End of message ***************************************************************** * * * 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 mvi a,intioby sta iobyte lxi d,badmap ;Clear out bad map stax d lxi h,badmap+1 lxi b,9*badsiz ;32 map entries call movbyt mvi m,0ffh ;End marker if contyp ne 0 ;Do not call tinit for PROM's call tinit ;Initialize the terminal endif if lsttyp ne 0 ;Do  then the baud rate will be set from the defcon * * word found below the Cbios jump table. If the user * * happens to have a weird baud rate that is not in this * * table or is looking for a way to save space then entries * * can be added or deleted from the table. * * * ***************************************************************** vtab: dw 2304 ; 50 baud dw 1536 ; 75 dw 1047 ; 110 dw 857 ; 134.5 dw 768 ; 150 dw 384 ; 300 dw 192 ; 600 dw 96 ; 1,200 dw 64 ; 1,800 dw 58 ; 2,000 dw 48 ; 2,400 dw 32 ; 3,600 dw 24 ; 4,800 dw 16 ; 7,200 dw 12 ; 9,600 dw 6 ;19,200 svtab equ ($-vtab)/2 ;Length of the vtab table ***************************************************************** * * * Valid checks to see if the divisor latch is a reasonable * * value. If the value seems to be off then it will get the * * default baud rate from defcon and jump to setit. * * * ********************************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 ret endif if lsttyp eq 7 ;Diablo HyType II ***************************************************************** * * * Initialize Diablo HyType printer driver. * * * ***************************************************************** if multr3 ;Multi I/O initialization linit: lda group ;Get group byte ani 0ffh-(denable+restor) ;Clear driver enable + restore sta group ori denable+restor ;Enable drivers and pull restore down out grpsel mvi c,10 ;Hold restore line down for 50uS dloop: dcr c jnz dloop ani 0ffh-(denable+restor) ;Clear driver enable + restore out grpsel else ;Mother board initialization linit: call selg0 ;Select group 0 mvi a,pselect+rlift ;Set select line active, rliftnot call linit for PROM's call linit ;Initialize the list device endif lxi h,prompt ;Prep for sending signon message call message ;Send the prompt xra a ;Select disk A sta cpmdrv sta cdisk lxi h,bios+3 ;Patch cold boot to warm code shld bios+1 jmp gocpm ***************************************************************** * * * Console and list device initialization routines follow. * * * ***************************************************************** if contyp eq 2 ;Multi I/O, Decision I ***************************************************************** * * * Terminal initilization routine. This routine reads the sense * * switch on the WB-14 and sets the speed accordingly. * * * ***************************************************************** tinit: 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 conso********************************* valid: mvi a,dlab+wls0+wls1+stb out lcr ;Access divisor latch in dll ;Get lower divisor value mov e,a in dlm ;Get upper divisor value mov d,a mvi a,wls0+wls1+stb ;Turn divisor latch off out lcr lxi h,vtab ;Valid baud rate table mvi c,svtab ;Length of the baud rate table vloop: mov a,e cmp m ;Check low byte jnz vskip ;First byte is bad inx h mov a,d cmp m ;Check high byte jz done ;Baud rate is OK... Do cleanup dcx h vskip: inx h ;Skip to next entry inx h dcr c ;Bump entry counter jnz vloop lhld defcon ;Get default baud rate xchg setit: mvi a,dlab+wls1+wls0+stb ;Enable divisor access latch out lcr ;Set the baud rate in (de) mov a,d out dlm ;Set upper divisor mov a,e out dll ;Set lower divisor done: mvi a,wls1+wls0+stb ;Clear Divisor latch 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 m *active out clk mvi a,0ffh out daisi0 mvi a,0ffh-rest ;Strobe restore bit low out daisi0 mvi a,10 ;Wait about 50uS dloop: dcr a jnz dloop mvi a,0ffh ;Raise restore back up out daisi0 endif xra a out daisi1 ;Clear data buffers if multr3 ;Lift ribbon lda group ori denable out grpsel ;Re-enable the drivers mvi a,0ffh-rest ;Lift ribbon out daisi0 else mvi a,pselect ;Lift ribbon out clk endif lxi h,hinc/cperi shld hmi ;Save hmi = 120/(characters per inch) lxi h,vinc/lperi shld vmi ;Save vmi = 48/(lines per inch) lxi h,0 ;Other variables default to zero shld vpos shld dlvpos shld hpos shld dlhpos shld lmar call clrall ;Clear the TAB array xra a sta kludge ;Reset TAB clear byte sta dirflg sta grhflg ret endif db 0,0ffh,0 codelen equ ($-bios) ;Length of Cbios code if codelen gt 1000h ;Test for SYSGEN problems 'WARNING, system is too big for SYSGEN rev. 4.2' dbgtmp set codelen ;Cbio1 endm endif if maxmw ne 0 if mwpart ne 0 ;Use non-standard partitioning tracks set mwtrks/mwlog ;Number of tracks per partition dsm set mwsectp/8*tracks/4-1 ;Number of groups per partition alv set (dsm/8)+1 dn set 0 rept maxmw*mwlog ;Generate CKS and ALV tables alloc mw,%dn,%alv,0 dn set dn+1 endm else ;Use standard partitioning 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 endif if ($-1 lt bios) or ($ gt bios+biosln-1) ;Test for overflow 'WARNING, system overflow. BIOSLN must be at least' dbgtmp set ((high ($-bios))+1) * 100h ;BIOSLN! endif if debug dbgtmp set ((high ($-bios))+1) * 100h ;BIOSLN!=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# s code length ! endif if debug dbgtmp set codelen ;Cbios code length ! endif ds 512-($-buffer) ;Buffer for 512 byte sectors if (maxfd ne 0) or (maxdm ne 0) or (maxmw ne 0) ds 512 ;Additional space for 1k sector devices endif ***************************************************************** * * * 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) * * Sector number of alternate sector (2 bytes) * * * ***************************************************************** badmap: ds badsiz*9+1 ;32 entries + end marker dirbuf: ds 128 ;Directory buffer tempb: ds 16 ;A little temporary buffer ***************************************************************** * * * Allocation and checked directory table area * * * ************************************* endif end s per partition dsm set mwsectp/8*tracks/4-1 ;Number of groups per partition alv set (dsm/8)+1 dn set 0 rept maxmw*mwlog ;Generate CKS and ALV tables alloc mw,%dn,%alv,0 dn set dn+1 endm else ;Use standard partitioning 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 endif if ($-1 lt bios) or ($ gt bios+biosln-1) ;Test for overflow 'WARNING, system overflow. BIOSLN must be at least' dbgtmp set ((high ($-bios))+1) * 100h ;BIOSLN! endif if debug dbgtmp set ((high ($-bios))+1) * 100h ;BIOSLN!z8O!B N#N ¾SP.* |} !9":q!"28!"9:] !í 1**************************** if maxhd ne 0 if hdpart ne 0 ;Use non-standard partitioning tracks set hdtrks/hdlog ;Number of tracks per partition dsm set hdsectp/8*tracks/4-1 ;Number of groups per partition alv set (dsm/8)+1 dn set 0 rept maxhd*hdlog ;Generate CKS and ALV tables alloc hd,%dn,%alv,0 dn set dn+1 endm else ;Standard partitioning 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 endif if maxfd ne 0 dn set 0 rept maxfd alloc fd,%dn,75,64 dn set dn+1 endm endif if maxdm ne 0 dn set 0 rept maxdm alloc dm,%dn,75,64 dn set dn+1 endm endif if maxmf ne 0 dn set 0 rept maxmf alloc mf,%dn,22,16 dn set dn+͓ !" >- Ͷ 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  !  # 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  ë «   Ͷ ͐ =« 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_;***************************************************** ;* * ;* 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)*)þ))>+><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 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 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  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 vectrack? 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 eqte 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 ARu 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)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  > 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 ;; genera!THAT 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  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ͽ!e:d\::eH2 H҆ͽ:e2!:d2e:!2dû :!I¬!: :H2 ҮX:h2iҐ:!ʍ:!:!H:!H,!"! 6#~ F)ͷX:! X):i!h)9 e:!:h2jO>F L>!":i!jHҼ*"+M ~ ʼͲ!f6!h6!"! 6F!f6:h2k!iҠ:i2k:j2h:k!hҶ9 æ:h2j!!6:j2he:! >"Ͳ*"M ~2!O :! *+" ; 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 ;!9"1W͜Q>2!͢QG}DrYQ|͏}͏#> ex͏#r* _> e> e ҉0Ë7e}} :³ʳ7_<2!~ɯ2|\\FILE DUMP VERSION 1.4$ NO INPUT FILE PRESENT ON DISK$!Y , <    *$A!6 # T!w $r# *`: 0 *A*! ~ ʰxkb))))_y‘BK{ͅ*!66!"80*{#z+++ #CBIOS& ASMdefghijkCBIOS& ASM !lmnDDT COM&opqDEBLOCK ASMPrstuvDISKDEF LIB1wxyzDUMP ASM!{|}DUMP $$$!!6e*!M͛ /$^L:!@OL:! 2͑e:b:! L:h<2hb:! b:hO>!hw:! pX:! …!!6  LÊ!!6ûô:!ʛ͑:! ҩ OҸû:!R†!6G>!!!6 :2.t -? >!!6!6s, !6:xB!6OU2!SB!G6:҃!6:G҃*G& ~2!:G<2G_ Qқ=e  b:!-®! 6:!#¿͇;J:!:!!6Lv:!:Jv: *#"͎! 6:!B)! >w!"&*o"(R :!C:eR :!DKeX :!K\ͷX :!Lj^ :!Pš͎҇! 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/!:" ; 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*!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 title djdma/format.asm 01-29-82 .z80 channl equ 50h ;Start channel address index equ 10h ;Delta index status bit wproct equ 40h ;Write protected status bit dready equ 80h ;Drive ready status bit home equ 0a0h ;Internal home-disk routine address seek equ 0a3h ; seek-track sdrive equ 0a6h ; set-drive hsync equ 0a9h ; header-sync diskd equ 4001h ;Disk data port status equ 4003h ;Status port contrl equ 4007h ;Control port crlfs equ 0d0ah ;Carraige return / line feed sequence acr equ 0dh ;A carraige return character alf equ 0ah ;A line feed character aesc equ 1bh ;An escape character adel equ 7fh ;A delete character retries equ 3 ;Disk retries before giving up on verify bdos equ 5 ;Bdos entry address wcon equ 2 ;Write console function direct equ 6 ;Direct console I/O page 63 start: ld sp,ecode+30h ;Initialize the stack pointer ld hl,"0 " ;Initialize track number to 0 ld (ftrack+1),hl ld hl,qfmess ;Ask about type of format call getc jp z,ibms:7 e !p+q*DM  =? ) !p+q.*DMF -L *9"`!"b!h6!j6!|6.!=\ -x !e:dʥ *eM \R :xʥ @ *dM \, :x \͕ :x - V :e _ :f w : =e !e:d*eM =e : =e =͕ !]6:x>- !"!76!6!6!66*dM  *dM !6:8!*`*;DM \u 2xʻ>!xҨ- *`*;6:82*`"`:<2w!"`9`h*`*;~2*`#"`:*eM !b+!s{!f!6:!b*b*^DM =ͅ N- *b"b:<2)f!"b!q9bڀ*b*^:w*b#"b!q:6ڶZͅ ʱ- !66*6& :w:6<26!J6*b}:J<2Jm=? :x- : ;*dM .=\ -=ͨ ;: *eM =ͨ .M= -C!q:Y*M !q:a/>z!/H!q*MaҎ:_:!q:ҥ*My:!p+q!'"!6>**ͪ{2**ͪ"*! ͪ":!!*FM8 *FM   Oy2F :FY5>>:!02HO> /!";u*)))*) *H& "PҘ! 6+s#ré! 6"DM!>))덑o|g =±^#V) ^#V|g}o _{ozgi`N#Fogo&og_{_z#W H = LIBX$$$$$$$LIB$: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!Fqt ;Formatting IBM cp 1 jp z,nstart ;Formatting North Star jp 0 ;Return to CP/M ibmst: ld hl,1030h ;Initalize command addresss ld (dotcmd+1),hl ld hl,sdadvt ld (atcmd+1),hl ld hl,slcmd+1 ;Set 8 inch drive as 0-3 ld (hl),0 dec hl ld c,4 call lcmd ld hl,drmess ;Get drive number call getcc ld (single+1),a ;Store the drive number in code ld (drive),a ; and save in a safe place ld a,26 ;26 Sectors per track for single ld (nspt),a ld hl,26*128 ;Load number of bytes per track ld (trksiz),hl ld a,0e5h ;We format with e5's ld (verval),a ld hl,dnmess ;Get density call getcc ld (densty),a ;Save for later use jp z,side ;Skip sector size if single density ld hl,slmess ;Select sector length message call getcc ld d,0 ;Form offset into sector table ld e,a ld hl,tsize ;Get track size add hl,de ld h,(hl) ;Get high byte of size ld l,0 ld (trksiz),hl ;Save track size inc a ;Adjust for sector length code ld (dlcode-ddfmt+double)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 #,a ;Store in format code ld hl,sptabl add hl,de ld a,(hl) ;Fetch number of sectors ld (dlast-ddfmt+double),a ;Store in format code dec a ld (nspt),a ; and in the verify section ld a,20h ;Sector length code is 80,100, or 0 dcnst: add a,a dec e ;Decrement the sector type jp p,dcnst ;Test for cycle done ld (dsize-ddfmt+double),a ;Store 1/4 length in format code side: ld a,(drive) ;Get drive # add a,"0" ;Make ASCII decimal ld (wdriv8),a ;Save in wait message ld hl,wdmes8 ;Wait for a disk call putm ld hl,wdmess call getcc retryf: ld hl,sscmd+1 ;Test various drive parameters ld a,(drive) ;Load drive # to sense ld (hl),a dec hl ld c,7 ;Offset to status call lcmd ld hl,nrmess ;Not ready message cp 82h ;Test for not ready jp z,nready ;Skip if not ready ld a,(sscmd+4) ;fetch status port value ld b,a ;Save for a while ld hl,wpmess ;Write protected message and 40h ;Mask in write protected bit jp nz,nready ;Skip if write protected  start ;Stop the formatting page ; ; The following routine set up and execute the North Star formatter ; nstart: ld hl,1030h ld (nscmex+1),hl ld a,20h ld (data-nsfmt+nsform),a ld (cpdata-nsfmt+nsform),a ld (verval),a xor a ld (track-nsfmt+nsform),a ld a,10 ;Load number of sectors per track ld (nspt),a ld hl,10*512 ;Load number of bytes per track ld (trksiz),hl ld hl,slcmd+1 ;Set 5 1/4 inch drive as 0-3 ld (hl),4 dec hl ld c,4 call lcmd ld hl,drmess ;Get drive number call getcc ld (nsform+1),a ld (drive),a ld hl,ntmess ;Get number of tracks call getcc ld d,0 ld e,a ld hl,nstrak add hl,de ld a,(hl) ld (strack-nsfmt+nsform),a ld (ntrack),a push de ld hl,dnmess ;Get density call getcc pop de ld b,051h jp z,nstore push af rrca add a,e ld e,a pop af ld b,0d1h nstore: ld (den1-nsfmt+nsform),a ld a,b ld (den2-nsfmt+nsform),a push de ld hl,simess ;Get number of sides call getcc pop de ld (dflag-nsfmt+nsformrtcmd+2 ;Side ok, check for other side ld a,(hl) ;Get side flag ld (hl),0 ;Clear flag just in case ... or a ;Test flag jp nz,versid ;Verify other side dec hl ;Bump to track count inc (hl) ;Bump track number ld a,(ntrack) ;Test for end of disk cp (hl) jp nz,vertrk ;Verify next track ld hl,vdmess ;Verify done call putm jp start ;Restart verfat: ld hl,retryh ;Bump hard retry count dec (hl) jp nz,versid ld hl,vemess ;Verify error jp errpr vererr: ld hl,retrys ;Bump hard retry count dec (hl) jp nz,versid ld hl,vsmess ;Verify error errpr: call putm ;Tell user about it jp start ; and quit ; ; Execute controller command. ; hl -> Start of command sequence ; c -> Offset pointer to status byte of sequence ; a <- Status return (z flag set if = 40h) ; ; The command sequence must end with a halt. If any status ; is returned from the regular part of the command then this ; status must immediatly precede the halt. The value in the ; c regist ld a,b ;Restore full status port value and 4 ;Mask in 'sides' bit rrca ;Shift to bit 0 rrca ld (ddsbit-ddfmt+double),a ;Store in format code double density ld (sdsbit-sdfmt+single),a ;Store in format code single density rrca ;Zap around to bit 7 ld (nside),a ;And save side flag ld hl,ftmess ;Formatting ... message call putm ld a,1 ;Load track counter ld (ctrack),a ld hl,lsdcmd ;Load single density code command ld c,9 ;Offset to halt status call lcmd ;Load the code ld hl,dotcmd ;Format track 0 command ld c,5 ;Offset to status call lcmd ;Execute the command jp z,proced ;Zero => no error ld hl,nrmess ;Drive not ready message cp 82h ;Drive not ready error code jp z,nready ;Test for drive not ready ld hl,wpmess ;Well... the write tab fell off... nready: call getcc ;Send the message jp z,start ;Zero => start the program over jp retryf ;Go back and do the command over proced: ld hl,sdrdy ;Adjusted execution address of format ),a rrca ld (nside),a ;Set up side flag rlca jp z,nsdatc rlca rlca add a,e ld e,a nsdatc: push de ld hl,nsmess ;Ask about North Star vs CP/M format call getcc pop de jp z,nsload ld a,e and 80h ld a,10h jp z,nstord ld hl,nstype-80h add hl,de ld a,(hl) nstord: ld (cpdata-nsfmt+nsform),a ld a,0e5h ld (data-nsfmt+nsform),a ld (verval),a nsload: ld a,(drive) ;Get drive # add a,"0" ;Make ASCII decimal ld (wdriv5),a ;Save in wait message ld hl,wdmes5 ;Wait for a disk call putm ld hl,wdmess call getcc nsrtry: ld hl,nscmlm ld c,9 call lcmd ld hl,nscmex ld c,5 call lcmd jp z,nsproc ld hl,nrmess cp 82h jp z,$+6 ld hl,wpmess ;Tell about fault call getcc jp z,start jp nsrtry nsproc: ld hl,ftmess ;Formatting ... message call putm xor a ;Initialize track counter ld (ctrack),a ld hl,entry ld (nscmex+1),hl nscont: ld hl,ftrack ;Print track # call ptrack ld hl,nscmat ld c,5 call lcmd ld b,a ld a,(strack-nsfer added to hl should produce a pointer to the ; halt status. ; lcmd: ld a,26h ;Branch channel command ld (channl),a ld (channl+1),hl ;Channel address xor a ld (channl+3),a ;Extended address ld b,0 add hl,bc ;Offset to status byte ld (hl),a ;Clear halt status out (0efh),a ;Start controller waitc: or (hl) ;Wait for halt complete jp z,waitc dec hl ;Back up to command status dec hl ld a,(hl) ;Load status cp 40h ;Comper to Ok status ret ; ; Print a track #, do fancy backspacing, ect. ; ptrack: ld (ptrk),hl ;Save ASCII pointer ld a,(ctrack) ;Load current track push af ld hl,(ptrk) ;Place to deposite track # call decim3 ;Figure track # pop af inc a ;Bump to next track ld (ctrack),a ld bc,300h ;b = fore count, b = back count ld hl,(ptrk) ;Pointer to current track # ld de,otrack ;Pointer to old track # ex de,hl ;Set pointers the way we want them ptrkcp: ld a,(de) ;Get a digit cp (hl) ;Compare against old number jp nz,ptrkld a,(densty) or a ;Test for double density jp z,contue ;Make no adjustments for single density ld hl,lddcmd ;Load double density format command ld c,9 ;Offset to halt status call lcmd ;Load the code into controller ld hl,ddadvt ;Advance track execute address ld (atcmd+1),hl ;Update the command execute address ld hl,1030h ;Format execute address contue: ld (dotcmd+1),hl ;Update track format execute address ld hl,atcmd ;Advance track command ld c,5 ;Offset to status call lcmd ;Load the command and execute cp 77 ;Last track value (77 decimal) jp nz,fmtrck ;Zero => formatting done ld a,77 ;77 tracks on an 8 inch drive ld (ntrack),a jp verify ;Verify disk fmtrck: ld hl,ftrack ;Pointer to track # call ptrack ;Print and update track number ld hl,dotcmd ;Format a track command ld c,5 ;Offset to status call lcmd ;Load and execute the command jp z,contue+3 ;Loop back for more tracks ld hl,femess ;Drive has become not ready call putm jpmt+nsform) cp b jp z,verify ;Go verify disk ld hl,nscmex ld c,5 call lcmd jp z,nscont ld hl,femess ;Drive not ready call putm jp start page ; ; Verify the disk ; verify: ld hl,vtmess ;Send verifying ... message call putm ld hl,sacmd ;Set the DMA address ld c,5 ;Halt status offset call lcmd xor a ;Initialize track counters ld (ctrack),a ld (rtcmd+1),a ld a,(drive) ;Initialize the drive number ld (rtcmd+3),a vertrk: ld hl,vtrack ;Print track # call ptrack ld a,(nside) ld (rtcmd+2),a ;Load sides flag ld a,retries ;Initialize retry counters ld (retrys),a ;Soft error counter ld (retryh),a ;Hard error counter versid: ld hl,rtcmd ;Verify a side ld c,9 ;Status offset call lcmd ;Read a track jp nz,verfat ;Fatal drive error ld hl,sectab ;Lets check out sectors ld a,(nspt) ;Load number of sectors to check ld c,a ld a,40h ;'Ok' code verspt: cp (hl) jp nz,vererr ;Sector does not verify inc hl dec c jp nz,verspt ld hl,$dn ;Skip if done inc c ;Bump offset inc de ; current pointer inc hl ; old pointer dec b ; counter jp nz,ptrkcp ;Compare next digit ret ;Numbers were the same ptrkdn: push hl ;Save pointer to first dirty digit ptrklp: ld (hl),a ;Copy dirty string over inc de ld a,(de) inc hl dec b jp nz,ptrklp ld hl,bsmess ;Back space add hl,bc ;Offset neccesary amount call putm pop hl ;Retreive string pointer call putm ;And print ld c,6 ld e,0ffh call 5 ret ; ; Put 'a' in (hl) in ASCII decimal form with leading spaces ; decim3: ld c,"0" ;Initialize 'leader' flag ld d,100 ;Hundreds call decfig ld d,10 ;Tens call decfig decim1: ld c,0 ;Force leading 0 ld d,1 ;Ones jp decfig decfig: ld e,"0"-1 declop: inc e sub d jp nc,declop add a,d push af ld a,e cp c ;Handle leading space (sometimes) jp nz,decok ld e," " ;Load space jp decokk decok: ld c," " decokk: ld (hl),e ;Save digit inc hl ;Bump to negetc: push hl ld hl,crlf ;Print an initial CRLF call putm pop hl call putm ;Print prompt inc hl ;Bump to number of valid replies ld c,(hl) ld a,c ld (valid),a ;Save reply count ld (string),hl ;Save string pointer gtchk: push bc ;Save reply count push hl ;Save string pointer gtwait: ld c,direct ;Direct console I/O ld e,255 ;We want input! call bdos or a ;Test for no character typed jp z,gtwait ;Wait for a character pop hl pop bc cp 3 ;Check for control C jp z,0 ; exit to CP/M cp aesc ;Escape and delete get special coverage jp z,gtspec cp adel jp z,gtspec ld b,a ;Save user reply gtscan: inc hl ;Bump to reply string ld a,(hl) ;Load reply character or a ;Test for end of reply string jp m,gtflsh ;Not in this reply list, flush string cp b ;Compare to user reply jp nz,gtscan ;No match, continue scan gtdone: inc hl ;Look for reply value ld a,(hl) or a jp p,gtdone push af ;Save value inc hl ;Bump to respo0a0h db 0c0h db 0 db 0f0h db 0d0h db 0e0h tsize: db 26*256/100h ;Number of pages per track db 15*512/100h db 8*1024/100h sptabl: db 27 ;26 sectors per track (256 bytes) db 16 ;15 sectors per track (512 bytes) db 9 ;8 sectors per track (1024 bytes) page qfmess: dw crlfs db "Floppy disk format command for the Morrow Designs", acr, alf db "Disk Jockey DMA (DJDMA) floppy disk controller.", acr, alf dw crlfs db "Type an ESC or DEL, at any time, to return to the main menu." dw crlfs dw crlfs db "Select: (I) IBM 3740 compatable 8 inch format.", acr, alf db " (N) North Star compatable 5 1/4 inch format.", acr, alf db " back to CP/M.", acr, alf dw crlfs db "Select (I, N, or ): " db 0 db 3 db "i", "I", 80h db "IBM 3740 format" db 0 db "n", "N", 81h db "North Star format" db 0 db alf, acr, 82h db "Returning to CP/M" db 0 drmess: db "Select a drive ( 0, 1, 2, or 3 ): " db 0 db 4 db "0", acr, 80h db "Preparing to formxt position pop af ret ; ; Print a null terminated text to the terminal ; putm: ld a,(hl) ;Get current byte of message or a ;Test for end of message ret z ;Return at end of message push hl ;Save the character pointer call putc ;Output the character pop hl ;Recover the character pointer inc hl ;Advance the character pointer jp putm ;Go get the next character ; ; Print a character to the terminal ; putc: push af push bc push de push hl ld e,a ld c,wcon call bdos pop hl pop de pop bc pop af ret ; ; Call getc. Parse ESC and DEL codes. If these codes ; were typed then return to start. ; getcc: call getc ;Get code jp m,start ;Restart if ESC or DEL ret ;Return regular status ; ; This routine prints a prompt and then accepts an input character. ; This input character is compared to a 'reply list'. If the ; character is found then an associated 'reply string' is echoed ; and a value associated with that character is returned. ; ;nse message call putm ld hl,crlf ;Print a trailing CRLF call putm pop af ;Restore reply value and 7fh ;Clear parity bit ret gtflsh: inc hl ;Look for and of message (null) ld a,(hl) or a jp nz,gtflsh dec c ;Bump reply count jp nz,gtscan ;Continue scan ld a,(valid) ;Reinitialize reply count ld c,a ld hl,(string) ;Reinitialize string pointer jp gtchk ;User guessed wrong, let us try again gtspec: ld a,80h ;Special flag or a ;Zap flags ret page slcmd: db 02eh ;Set/get logical drive settings db 0 ;Logical to set db 0 ;Logical drives returned db 25h db 0 lddcmd: db 0a1h ;Write controller memory command dw double ;Main memory address pointer db 0 dw single-double ;Byte count dw 1030h ;Controller memory address pointer db 25h ;Controller halt command db 0 ;Halt command status byte lsdcmd: db 0a1h ;Write controller memory for single dw single db 0 dw nsform-single dw 1030h db 25h db 0 dotcmd: db 0a2h at drive 0" db 0 db "1", 81h db "Preparing to format drive 1" db 0 db "2", 82h db "Preparing to format drive 2" db 0 db "3", 83h db "Preparing to format drive 3" db 0 dnmess: db "Select: double density", acr, alf db " S single density", acr, alf db " " db 0 db 2 db "d", "D", acr, 81h db " Double density selected." db 0 db "s", "S", 80h db " Single density selected." db 0 ntmess: db "Select the number of tracks ( 0=35, 1=40, 2=80 ): " db 0 db 3 db "0", acr, 80h db "35 track drive" db 0 db "1", 81h db "40 track drive" db 0 db "2", 82h db "80 track drive" db 0 slmess: db "Select the sector length ( 0=256, 1=512, 2=1024 ): " db 0 db 3 db "0", 80h db "256 byte sectors" db 0 db "1", 81h db "512 byte sectors" db 0 db "2", acr, 82h db "1024 byte sectors" db 0 nsmess: db "Select: N North star or", acr, alf db " CP/M data compatibility.", acr, alf db " " db 0 db 2 db "n", "N", 80h db " North  The routine is called with a pointer to a string in hl and ; returns a value in (a) and (zero). The format for the string ; follows: ; ; db "initial prompt string" ; db 0 ;Null terminator ; db 2 ;Number of 'reply values' ; db "a", "A", acr ;A list of characters to be ; ; with the coresponding reply ; ; 'value.' ; db 83h ;The reply value. Parity must ; ; be set. ; db "Reply echo string for a, A, or acr." ; db 0 ;Null terminator ; db "d", "D" ;A list of characters to be ; ; with the coresponding reply ; ; 'value.' ; db 85h ;The reply value. Parity must ; ; be set. ; db "Reply echo string for d or D." ; db 0 ;Null terminator ; ; This structure will return a 3 if an 'a', 'A', or acr is typed ; and a 5 if a 'd' or 'D' is typed. The routine prints a CRLF ; before the initial prompt string and a CRLF after the reply ; string. If an ESC or DEL is typed then a code of 80h will be ; returned and the minus flag will be set. ; ;Execute controller routine command dw 1030h ;Format a track address db 0 ;Execute command status db 25h ;Halt command db 0 ;Status byte atcmd: db 0a2h dw sdadvt ;Advance the track value address db 0 db 25h db 0 sscmd: db 022h ;Sense drive status db 0 ;Drive # db 0 ;Drive characteristic byte db 0 ;Sector size byte db 0 ;Status port byte db 0 ;Completion status db 25h db 0 sacmd: db 023h ;Set DMA address dw buffer db 0 db 25h db 0 rtcmd: db 029h ;Read track command db 0 ;Track # db 0 ;Side # db 0 ;Drive # dw sectab ;Sactor table db 0 db 0 ;Status db 25h db 0 nscmlm: db 0a1h ;Load controller memory dw nsform db 0 dw ecode-nsform dw 1030h db 25h db 0 nscmex: db 0a2h ;Execute controller memory dw 1030h db 0 db 25h db 0 nscmat: db 0a2h ;Advance track command (internal) dw advtrk db 0 db 25h db 0 nstrak: db 35 ;Track count table db 40 db 80 nstype: db 90h db %Star data format." db 0 db "c", "C", acr, 81h db " CP/M data format." db 0 simess: db "Select: single sided or", acr, alf db " D double sided media.", acr, alf db " " db 0 db 2 db "s", "S", acr, 80h db " Single sided media selected." db 0 db "d", "D", 81h db " Double sided media selected." db 0 nrmess: db "Drive not ready - (R)estart program, or (C)ycle: " db 0 db 2 db "r", "R", 80h db "Restarting program" db 0 db "c", "C", acr, 81h db "Cycling" db 0 femess: dw crlfs db "Drive has become 'not ready' during formatting" db 0 wpmess: db "Write protected - (R)estart program, or (C)ycle: " db 0 db 2 db "r", "R", 80h db "Restarting program" db 0 db "c", "C", acr, 81h db "Cycling" db 0 wdmes5: dw crlfs, crlfs db "Insert a write enabled diskette in 5 1/4 inch drive " wdriv5: db "0." db 0 wdmes8: dw crlfs, crlfs db "Insert a write enabled diskette in 8 inch drive " wdriv8: db "0." db 0 wdmess: db "Close the drtrack call nz,seek ;Move the head(s) if needed ld hl,diskd ;Pointer to disk shift register ld de,contrl ;Pointer to control port pop af ;Recover the tack cp 2bh ;Compare with track 43 ld a,4 ;No write precompensation jr c,loadpc ;Carry => track is less than 43 ld a,14h ;Write precompensation bit set loadpc: ld (precmp),a ;Setup the write precompensation byte sbc a,a ;Push carry bit throughout accumulator or 0feh ;Low current bit now set and (iy+2) ;Merge with drive pattern or 2 ;Select side 0 ld (iy+2),a ;Restore drive pattern or 0ch ;Turn off step command ld (4005h),a ;Update the drive register ld b,50h ;Preamble length ddlbl1: ld a,(status) and index ;Look for index pulse jr nz,ddlbl1 ;Wait for no index pulse present ddlbl2: ld a,(status) and index jr z,ddlbl2 ;Wait for leading edge of new indes pulse ld a,90h ;Control byte - normal write/no crc ld (de),a ;Initialize control port ld a,0 precmp equ $-1 ;Write precompensation & controller start ill bytes djnz ddlbl9 ;Test for data field write done ld a,0a1h ;Crc control byte ld (de),a ;Change mode ld (hl),a ;Write the crc bytes ld (hl),a ld a,90h ;Turn off the crc generator ld (de),a ;Change mode ld a,(dsect) ;Get the sector number inc a cp 1bh ;Test for last sector +1 dlast equ $-1 ld (hl),4eh ;First byte of postamble jr nz,$+4 ;Zero => all sectors written ld a,1 ld (dsect),a ;Update the sector number ld b,35h ;Postamble length less one ddlbla: ld (hl),4eh djnz ddlbla ;Write the postamble jr nz,dmloop ld (hl),4eh ;First fill byte ld b,0 ;Double sided bit test ddsbit equ $-1 ld a,(dside) xor b ;Conditionally switch the side byte ld (dside),a ;Update the side byte ld (hl),4eh ;Second fill byte ld b,4fh ;Preamble length less one ex Af,Af' ;Save the double sided status dlblb: ld (hl),4eh ;Write a fill byte ld a,(status) and index ;Wait for the index pulse jr z,dlblb ex Af,Af' ;Recover the double sided status jr z,ddlblc ;Zeive door and then press " db 0 db 1 db alf, acr, 80h db 0 ftmess: dw crlfs db "Formatting track:" ftrack: db " 0" ;ASCII track number db 0 vtmess: dw crlfs db "Verifying track: " vtrack: db " 0" db 0 bsmess: db 8, 8, 8 ;Back terminal 3 spaces db 0 otrack: db " 0" ;Old ASCII track number db 0 vdmess: dw crlfs, crlfs db "Verify done." dw crlfs db 0 vemess: dw crlfs, crlfs db "Fatal verify error, probable bad diskette." dw crlfs db 0 vsmess: dw crlfs, crlfs db "Sector verify error" dw crlfs db 0 crlf: dw crlfs db 0 page drive: db 0 ;# of drive being formatted densty: db 0 ;Density flag for current drive nspt: db 0 ;Number of sectors per track trksiz: dw 0 ;Size of a track (bytes) verval: db 0 ;Byte to verify with nside: db 0 ;Number of sides flag ntrack: db 0 ;Number of tracks on current drive ctrack: db 0 ;Current track number ptrk: dw 0 ;Pointer to ASCII track # retryh: db 0 ;Retry counter, har ld (4006h),a ;Start the controller ddlbl3: ld (hl),4eh djnz ddlbl3 ;Write the preamble ld b,0ch ;Zero preamble length ddlbl4: ld (hl),0 djnz ddlbl4 ;Write the zero preamble ld a,80h ;Control byte for 16 bit write ld (de),a ;Change mode ld (hl),52h ;First half of c2 ld (hl),24h ;Second half of c2 ld (hl),52h ;Another c2 ld (hl),24h ld (hl),52h ;The third c2 ld a,90h ;Control byte 8 bit write ld (de),a ;Change mode ld (hl),24h ;Finish the sync bytes ld (hl),0fch ;Index mark ld b,32h ;Postamble length ddlbl5: ld (hl),4eh djnz ddlbl5 ;Write the postamble dmloop: ld b,0ch ;Zero preamble length ddlbl6: ld (hl),0 djnz ddlbl6 ;Write the preamble ld a,81h ;16 bit write mode w/crc ld (de),a ;Change mode ld (hl),44h ;First half of a1 ld (hl),89h ;Second half of a1 ld (hl),44h ;Second a1 ld (hl),89h ld (hl),44h ;Third a1 ld a,91h ;8 bit write mode w/crc ld (de),a ;Change mode ld (hl),89h ;Finish sync bytes ld (hl),0feh ;Sector header id byte ro => track write is done ld a,(iy+2) ;Drive pattern or 0ch ;Turn off the step command and 0fdh ;Change read/write heads ld (4005h),a ;Update the command register ld (hl),4eh ;First preamble byte jp ddlbl3 ;Format the other side ddlblc: ld (hl),4eh ;Trailing fill byte ld (hl),4eh ;Trailing fill byte ld (hl),4eh ;Trailing fill byte xor a ld (de),a ;Turn off the write gate ld a,6 ld (4006h),a ;Turn off the controller ld a,40h ;Status code ret ddadvt: ld a,(dtrck) ;Get the current track value inc a ;Increment ld (dtrck),a ;Restore the new value ret ;Return with current track value .dephase page ; ; IBM 8 inch double density formatter routine ; single equ $ .phase 1030h sdfmt: ld a,0 ;Second byte filled with proper drive number call sdrive ;Select the new drive ret nz ;Return if wrong value ld a,(iy+2) ;Get the drive pattern or 0fh ;Side 0 and no step command ld (4005h),a ;Update drive control register ld hl,0 ;Delay for the head load sdwaitd retrys: db 0 ;Retry counter, soft valid: db 0 ;Temp save for number of valid replies string: dw 0 ;Temp pointer to parse trees sectab: db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;Sector status table db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 page ; ; The following routines are the actual formatting routines. ; These routines are loaded into controller RAM at 1030h ; and executed as needed. Currently there are 3 routines: ; ; IBM 8 inch single density. ; IBM 8 inch double density. ; North Star 5 1/4 inch multi desity. ; ; ; IBM 8 inch single density formatter routine ; double equ $ .phase 1030h ddfmt: ld hl,status bit 7,(hl) ;Check that the drive is ready nrexit: ld a,82h ;Drive not ready error code ret z ;Error exit bit 6,(hl) ;Test for write protected ld a,90h ;Write protected error code ret nz ;Error exit ld (ix+0bh),0 ;Reset index counter ld a,(dtrck) ;Get the new track value cp (iy+1) ;Compare with current track push af ;Save the  ld (hl),0 ;Write the track number dtrck equ $-1 ld (hl),0 ;Write the side dside equ $-1 ld (hl),1 ;Write the sector number dsect equ $-1 ld (hl),1 ;Sector length code dlcode equ $-1 ld a,0a1h ;Mode to write crc bytes ld (de),a ;Change mode ld (hl),a ld (hl),a ;Write the crc bytes ld a,90h ;Reset crc generator ld (de),a ;Change mode ld b,16h ;4e postamble length ddlbl7: ld (hl),4eh djnz ddlbl7 ;Write the postamble ld b,0ch ;Data field preamble ddlbl8: ld (hl),0 djnz ddlbl8 ;Write the preamble ld a,81h ;16 bit write w/crc ld (de),a ;Change mode ld (hl),44h ;First half of a1 ld (hl),89h ;Second half of a1 ld (hl),44h ;Second a1 ld (hl),89h ld (hl),44h ;Third a1 ld a,91h ;8 bit write w/crc ld (de),a ;Change mode ld (hl),89h ;Finish the 3 sync bytes ld (hl),0fbh ;Data header id byte ld b,40h ;Sector length divided by four dsize equ $-1 ddlbl9: ld (hl),0e5h ;Empty sector data byte ld (hl),0e5h ld (hl),0e5h ld (hl),0e5h ;Write four f&: dec hl ld a,h or l jr nz,sdwait ld (ix+0bh),a ;Reset the index counter sdtrk0: call home ;Calibrate the head(s) bit 5,(hl) ;Test for track zero jr z,snrext sdrdy: ld hl,status bit 7,(hl) ;Test for the drive ready snrext: ld a,82h ;Drive not ready code ret z ;Error exit bit 6,(hl) ;Write protect bit ld a,90h ;Write protect error code ret nz ld (ix+0bh),0 ;Reset the index counter ld a,(strck) ;Get the new track cp (iy+1) ;Compare with current track call nz,seek ;Do track seek if necessary ld hl,diskd ;Controller data register ld de,contrl ;Control register ld b,28h ;Preamble length sdlbl1: ld a,(status) and index jr nz,sdlbl1 ;Wait for no index pulse sdlbl2: ld a,(status) and index jr z,sdlbl2 ;Wait for leading edge of new index pulse ld a,90h ;Clear the crc register & turn on write gate ld (de),a ;Change modes ld a,44h ;Single density & start bit ld (4006h),a ;Start the controller sdlbl3: ld (hl),0ffh djnz sdlbl3 ;Write the preamble ),0ffh djnz sdlbla ;Write the postamble jr nz,smloop ;Test for more sectors to format ld (hl),0ffh ;First fill byte ld b,0 ;Side bit sdsbit equ $-1 ld a,(sside) ;Get the current side xor b ;Conditionally switch side bits ld (sside),a ;Update the side byte ld (hl),0ffh ;Write second fill byte ld b,19h ;Preamble length less one ex Af,Af' ;Save the double sided status sdlblb: ld (hl),0ffh ;Write a fill byte ld a,(status) and index jr z,sdlblb ;Wait for the index hole ex Af,Af' ;Recover the double sided status jr z,sdlblc ;Zero => single sided ld a,(iy+2) ;Get the drive pattern or 0ch ;Turn off the step command and 0fdh ;Turn on head one ld (4005h),a ;Update drive control register ld (hl),0ffh ;Write first preamble byte jp sdlbl3 ;Go format the other side sdlblc: ld (hl),0ffh ;Trailing byte xor a ld (de),a ;Turn off write gate ld a,6 ld (4006h),a ;Turn off the controller ld a,40h ;Status code ret sdadvt: ld a,(strck) ;Get the current track incrker, stack follows ds 30h ;Room for the stack buffer equ $ ;Track read buffer end BOOT ASMBOOTMW ASM?BOOTMW COM CBIOS ASME !"#CBIOS& ASM$%&'()*+CBIOS& ASM,-./0123CBIOS& ASM456789:;CBIOS& ASM<=>?@ABCCBIOS& ASMDEFGHIJKCBIOS& ASMLMNOPQRSCBIOS& ASMTUVWXYZ[CBIOS& ASM\]^_`abcCBIOS& ASMdefghijkCBIOS& ASM !lmnDDT COM&opqDEBLOCK ASMPrstuvDISKDEF LIB1wxyzDUMP ASM!{|}DUMP COM~ED COM4FORMATDJ$$$FORMATDJ$$$FORMATDJ$$$ ld a,80h ;16 bit write mode ld (de),a ;Change modes ld b,0ch ;Zero preamble length sdlbl4: ld (hl),0aah ;Half a zero cell djnz sdlbl4 ;Write the zero preamble ld (hl),0f7h ;First half of fc ld a,90h ;8 bit write mode ld (de),a ;Change modes ld (hl),7ah ;Second half of fc ld b,1ah ;Postamble length sdlbl5: ld (hl),0ffh djnz sdlbl5 ;Write the postamble smloop: ld a,80h ;16 bit write mode ld (de),a ;Change modes ld b,0ch ;Sector header preamble length sdlbl6: ld (hl),0aah ;Half a zero cell djnz sdlbl6 ;Write the preamble ld a,81h ;Enable crc & 16 bit write ld (de),a ;Change modes ld (hl),0f5h ;First half of fe ld a,91h ;Enable crc & 8 bit write ld (de),a ;Change modes ld (hl),7eh ;Second half of fe ld (hl),0 ;Write the track strck equ $-1 lD (hl),0 ;Write the side byte sside equ $-1 ld (hl),1 ;Write the sector number ssect equ $-1 ld (hl),0 ;Write the sector length code ld a,0a1h ld (de),a ;Change modes ld (hl),a ld (hl),a ;Write a ;Advance track value ld (strck),a ;Update the track value ret ;Return with track value .dephase page ; ; North Star multi desity formatter routine ; nsform equ $ .phase 1030h nsfmt: ld a,0 call sdrive ret nz ld (ix+0bh),0 ld a,(iy+2) or 0eh ld (4004h),a call hsync nsexit: ld a,82h ret z track0: call home bit 5,(hl) jr z,nsexit entry: ld (ix+0bh),0 ld a,(track) cp (iy+1) call nz,seek ld a,(4003h) and 40h ld a,90h ret nz ld (ix+0ah),80h wsect0: call hsync jr z,nsexit xor a cp (ix+0ah) jr nz,wsect0 ld a,90h ld (contrl),a ld hl,diskd ld c,0 ld (ix+9),c ld b,11h ld a,0 den1 equ $-1 rra ld a,64h jr nc,cstart ld a,18h strack equ $-1 rra add a,5 cp (iy+1) sbc a,a and 10h or 24h ld b,20h cstart: ld (4006h),a zerow: ld (hl),0 ex (sp),hl ex (sp),hl djnz zerow ld a,(den1) or a jr z,lasts ld (hl),0fbh ex (sp),hl ex (sp),hl lasts: ld (hl),0fbh ld b,5ch ld e,20h data equ $-1 ld d,20h cpda the crc bytes ld a,90h ;Reset the crc ld (de),a ;Change modes ld b,0bh ;Sector header postamble length sdlbl7: ld (hl),0ffh djnz sdlbl7 ;Write the postamble ld a,80h ;16 bit write mode ld (de),a ;Change modes ld b,0ch ;Data field preamble length sdlbl8: ld (hl),0aah ;Half a zero cell djnz sdlbl8 ;Write the preamble ld a,81h ;Enable crc & 16 bit write ld (de),a ;Change modes ld (hl),0f5h ;First half of fb ld a,91h ;8 bit write ld (de),a ;Change modes ld (hl),6fh ;Second half of fb ld b,80h ;Sector data field length sdlbl9: ld (hl),0e5h djnz sdlbl9 ;Write the data field ld a,0a1h ld (de),a ;Change modes ld (hl),a ld (hl),a ;Write the crc bytes ld a,90h ;Reset the crc ld (de),a ;Change modes ld a,(ssect) ;Get the current sector inc a ;Advance cp 1bh ;Compare with 27 ld (hl),0ffh ;First postamble byte jr nz,$+4 ;Zero => all sectors written ld a,1 ld (ssect),a ;Update the sector ld b,1ah ;Postamble length less one sdlbla: ld (hlta equ $-1 xor a d1loop: ex (sp),hl ex (sp),hl ld (hl),e xor e rlca djnz d1loop ld b,51h den2 equ $-1 ex (sp),hl ex (sp),hl ld (hl),d xor d rlca ex Af,Af' ld a,e ld (cpdata),a ex Af,Af' ex (sp),hl ex (sp),hl ld (hl),e xor e rlca d2loop: ex (sp),hl ex (sp),hl ld (hl),e xor e rlca ex (sp),hl ex (sp),hl ld (hl),e xor e rlca djnz d2loop ex (sp),hl ex (sp),hl ld (hl),a ld a,(den1) or a ld b,11h jr z,$+4 ld b,20h iloop: ex (sp),hl ex (sp),hl ld (hl),e ld a,(status) and index jr z,iloop inc c ld a,0ah cp c jr nz,zerow ld c,0 ld a,(nsdsid) xor 0 dflag equ $-1 ld (nsdsid),a jr z,ftdone ld a,(iy+2) or 0eh and 0fdh ld (4004h),a jr zerow ftdone: ld (contrl),a ;Turn off write gate ld a,40h ret advtrk: ld a,(track) ;Get the current track inc a ;Advance track value ld (track),a ;Update the track value ret ;Return with track value track: 0 nsdsid: 0 .dephase ecode equ $ ;End of code ma'1e! 0"S !_͒I!0"!:"!6+!͋26 2 >2 ! " >2 !y͋2 ʆ!V͋_!Yf." <2 !\~2 =2 > ~2 : 02 ! p! ͋!": w+! :%G!E @x2 2 2 !? p>2 !  !! !E ͋Ú!P: ! !Y"!0"!M/>M2 ^!R !! p!0"D> 222 23> 2 !" !6+!͋2H2 !͋_!O~22 !y͋Qʨ_2x2!< ͋22 _!͋{>!~2>22 : 02 ! p! ͋!9 !C$! !E ͋!? p2 !O"D!R !IG:^!C4! p!V p!)2 20: 22!i : 21>2 2 !/ ! : O>@# ¡!1~6+4: y!u p! 5! ! 5! p>&2P"Q2S w++~@" : * D<2 * q ( #w#)!m pp0dW WW/Y{j l s#~|#p_͒! pp#Ny2 " ʨG#~#~#p! p#~ : O* æ>.%O6N:@((~ 2@6NÅ6N6N6N>2@>@:<2>ͦ~2@!+| w ͠n(!@~>v>6 :ģ!@@(:@ :@(>>D2@6> 66>6z6> 6>6>6~6666>ww> 6> 6>6>6o6>ww>:<6 >26 6:266:@((~ 2@6È6>2@>@:<2>ͦ6 ~2@ͩ>͠n(6 :ģ:@@>6 ͩ(دݾ >2@!@q >>d0>$ 2@6:(66\  sQr{2sssw:( s:@( > :2( ~2@2@>@:<2!!1/>29"96 1:91x1*9##ssw:( sdone. Fatal verify error, probable bad diskette. Sector verify error !@~>v>6 :ģ!@@+>8>2w 2@P:@ :@(>>2@6N 6>6R6$6R6$6R>6$626N 6>6D66D66D>666666>ww>6N 6>6D66D66D>66@6666>ww>:<6N >256N 6N:26Ne !!~#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#### 10%5 0%0%:%"%#e%) %G0%0%%#(P  Floppy disk format command for the Morrow Designs Disk Jockey DMA (DJDMA) floppy disk controller. Type an ESC or DEL, at any time, to return to the main menu. Select: (I) IBM 3740 compatable 8 inch format. (N) North Star compatable 5 1/4 inch format. back to CP/M. Select (I, N, or ): iIIBM 3740 formatnNNorth Star format Returning to CP/MSelect a drive ( 0, 1, 2, or 3 ): 0 Preparing to format drive 01Preparing to format drive 12Preparing to format drive 23Preparing to format drive 3Select: double density S single density dD Double density selected.sS Single density selected.Select the number of tracks ( 0=35, 1=40, 2=80 ): 0 35 track drive140 track drive280 track driveSelect the sector length ( 0=256, 1=512, 2=1024 ): 0256 byte sectors1512 byte sectors2 1024 byte sectorsSelect: N North star or CP/M data compatibility. *͓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~# ͪ !"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-W2.W>22W*e}23W*e ~24W*e ~25W*e!KM }26W>27W!,W"9W>2;Wͫy!9 >27Wͫy+!  :8WOGy?! áS̀S!!,W!22W*e}< nN North Star data format.cC CP/M data format.Select: single sided or D double sided media. sS Single sided media selected.dD Double sided media selected.Drive not ready - (R)estart program, or (C)ycle: rRRestarting programcC Cycling Drive has become 'not ready' during formattingWrite protected - (R)estart program, or (C)ycle: rRRestarting programcC Cycling Insert a write enabled diskette in 5 1/4 inch drive 0. Insert a write enabled diskette in 8 inch drive 0.Close the drive door and then press  Formatting track: 0 Verifying track: 0 0 Verify done. Fatal verify error, probable bad diskette. Sector verify error !@~>v>6 :ģ!@@+>8>2w 2@P:@ :@(>>2@6N 6>6R6$6R6$6R>6$626N 6>6D66D66D>666666>ww>6N 6>6D66D66D>66@6666>ww>:<6N >256N 6N:26N~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>2e2(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)))W N#F!~#fo)))W N#F!~#fo)))W N#F!](! 9!~w#~w!Q(ÇS̀S!!~#fo)))W ~#fo!~#fo)))W yOx#Gywx#w+~#!~#foMDÇS!!~#fo)))W ~#fo!~#fo)))W yOx#Gywx#w+~#= !~#foMDÇS!~#fo)))W ~#fo!~#fo)))W yOx#GÇS̀S!9!!~#fo)))W ~#~!!~#fo)))W ~#~!!~#fo)))W ~#~!!~#fo)))W ~#~!~#fo)))W !~#fo)))W ~~#fo"ti!!  #)áS!~#fo "pi!~#fo"ri!ri:pi:qi#)*pi#"pi!ri:pi:qi#)*ti !N#F*pi*ti~#fo͆S>H))!:piš):qi#=**ti !N#F*pi*ti ~#fo͆S=*:ri2ri:si2si!ri:pi:qi# **ti !N#F*ri*ti~#fo͆Sx)!ri:pi:qi#9)*ti *ri*pi*ti ~#fo͆S9)*pi!yOx#G!~#fo!piyOx#G}|**ti*pi !N#F(*ti!N#F*pi (**ti!N#F*pi (*ti*pi !N#F(áS̀S!!~#fo !(ÇS͋S!~#fo"ti!~#fo"pi*pi~>+*ti*ti#"ti*pi*pi#"pi +áS*ti~L+O+áS͋S!~#fo"ti!~#fo"pi!~#fo"ri*ti~nʈ+*ti~N¹+*ti#"ti*pi*riN#F*ri~w#~w~#fo}|*tiMDáS*piw#w*ti~0ڱ+*ti>9ڱ+*pi*ti~OG*pi~#foMD)) )  }|*ti#"ti+͋S!9!~#fo"ti*ti"ri*ri~B,*ri~%B,*ri#"ri,*ri "ti,!ri:ti:ui#{,*ri!tiyOx#G*ti!N#F!~#fo͆S*ri*ri#"ri~,áS!>w#w!6 *ri~-,!w#w!*ri#"ri*ri~*ri#"ri,*ri~+,!*ri#"ri*ri~*ri#"ri! !*riR+!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͋Si`"ri!w#w*ri~.6-! !*ri R+i`"ri*ri~aZ-*ri~hZ-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ri~# F!*pi* ͇HáS*ti ~OG! *pi* ! *pi! i`"ri!! *riMD!DtRáS!*pi* ͇HáSáS͋S!~#fo"ti*ti ~#fo"pi*ti~OGyF!*pi( N#F*tíGyFxGáS!~#{G*ti~OGy{G*ti ~OG! *pi! *ti~w{G*ti ~OG! *pi* ! *pi! i`"ri!! !ri~#jGáS*ti~w*ti~wFáS͋S!~#fo"ti*ti ~#fo"ri!N#F!2N"pi*ri ~OG:piG:qiG*ti~OGy hH*ti ~OG! *ti~OGyH*ri! xHáS*ti~w*ri :piw*ri! xaH!~#aH*ri! xaH*ti~wáS*ti~ w*ri !~#fo}og}áS͋S!~#fo"ti!~#fo"pi:pi2pi:qi2qiH*ti6*ti#"tiàHáS&}!!9͆S! 9~#foN#FxHO>G!9~#fo^#Vz*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 >#wUJ!9N#F###q#p+++q!9N#F#q#pV2.1: copyright (c) 1979 by Whitesmiths, Ltd.` (` (@(@(@(@(2(2((2((2(2(2(2(2(((~@(v@(n@(f(`(X@(U@(O@(I2(E2(>(8(2(U @rcXG1$ +@lUfD 4h + 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 #fo !~#fo !~#fo##yx#B !N#F!<! <͢!>w#w!!~#fo!~#fo   !~#fo##~#fo!~#fo !~#fo}o|g}!~#fo##~#fo!~#fo ~OGyOxG!~#fo}o|gy xf !~#fo##~#fo!~#fo !<! <͢f !N#F!~#fo##N#F!~#foN#Fͬ!yD x#v !N#F!;<! <͢v !~w#~wM !>w#w!!  # !!~#fo!yOx#G>>  !N#F!yOx#Gywx#w!!N#F!}|!~#fo}o|g} !~w#~w !~#fo##~#fo!~#fo !~#fo }o|g} !~#fo##~#fo!~#fo !~#fo  }o|gMD!N#F!!~#foN#Fͬ!yª x# !N#F!;<! <͢!!N#F!~#fo##~#fo!~#fo !~#fo##N#FA !~w#~wÁ !~#fo##~#fo!~#fo !~#fo MD!9!!N#F!}!~#ʻ !>w>#w!~#ʾ !~#ʾ ! ~#fo~OG!yOx#Gy !~#fo!  ! ~w#~wa !#~~w+~w!~w#~w!~w#~wv !9numbers. 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 skewi* â Memory may be corrupted. Error reading %s. Next Load address: %h. Invalid CBIOS format in %s. Invalid load address %s. Can not open %s. Odd number of arguments. Usage: install [-string] file1.prl address1 [ file2.prl address2 ...] Install Revision %i.%i !9!>w#w!>w#w* ! * ! !<!~#fo##~#fo~-!~#fo##~w#~w!>w>#w!~#fo##~#fo~!!N#F!~w#~w!~#fo##N#F!~#fo##~w#~w~!~#fo6á>2!~#~>!<͢>!~w#~w!~w#~w!~#fo}o|g}^!<͢! ywx#w!>w#w!!  #!~#fo!!!~#fo)!~#fo N#Fzywx#w+#~Z!~#fo)!~#fo N#F!<͢Z!ywx#w!>w#w!!  #!~#fo)!~#fo N#F!N#FH!~w#~w!~w#~w!~#fo##!~#fo)##!~#fo N#Fpywx#w+~#!~#fo##!~#fo~#fo  !~#fo##~#fo}o|g}!~#fo)##!~#fo N#F!<͢!~w#!>w>#w!!}|!~w#~wͩ!N#F!~w#~w6!!N#F!~w#~w~OGyOxGywx#w!># !>#J!~#fo~ J!~w#~w!~w#~w~ !!}|!~w#~w!!~#fo#}|!!  #!!~#fo~!~#fo!~#fo~!~#fo!~!~w#~w!~w#~w !>#!~#fo~ ʦͩ!~#fo!~#fo~!~w#~w!~w#~w!~w#~wJͩ!N#F!~w#~w6q !!~#~!!}|!~w#~w!>w#w!!  #V!~#fo~™ͩͩ!~#fo!~#fo#}|!~w#~w!~w#~wÙͩͩ!~#fo!~#fo#}|!~w#~w!N#F!N#F1!~w#~w;!9!!~#~!N#F!} ~ !!N#F!| }|!!~#fo$ ~#~!>#v!~#›!~#fo& !~!N#F!~y!~#fo!yOx#G!~#fo$ !~#~!~#foMD!!  #!N#F!N#F!~#fo& !!yOx#G ͤ!!  #!>w#n 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 skewi~w!~w#~wu!!~#fo##N#F! Hywx#w!:w:#w!*3  Ҟ!~#fo~OGyOxGyvx !~#fo##N#F!h<! <͢ !:w:#w!!~#fo~#fo }|!*3  !N#F!N#F1!~w#~w!~w#~w!~w#~wC!N#F!O<!9!!~#fo~!~#fo!~#fo~!~#fo!~!>w#w!~#fo~!~#fo~0!~#fo>9!!~#fo~OG!~#fo))))  }|!~#foMD!~#fo~A!~#fo>Z!~#fo~OG! MD#!~#fo~OGyax!~#fo~A^!~#fo>Z^!~#fo~OG! MDk!~#fo~OG>f>!!~#fo~A!~#fo>Z!~#fo~OG! MDø!~#fo~OG!~#fo))))  }|!~w#~wÂCan not write in location %h. Insufficient memory to read %s. Invalid PRL file format in %s. !9!!!~#foN#Fͬytxʓ!N#F!;<! <͢!~OGyOxGy­x!N#F!'<! <͢!!~#~!!~#~!~#fo##~#fo!~,w!>w>#wÛ!N#F!N#F!~#fo& !!yOx#G ͤ!!  #!!  #!>w#w!9!>w#w!|ywx#w!~#~!~#fo#~ !~#fo~ !~w#~wö!~w#~w!~Ʀw#~wÙ!~#fo~ !~#fo#~:y!~#fo!~#fo~aT!~#fo>zT!~#fo~OG! MDa!~#fo~OG! }!~w#~wÃ!~#fo6!!~#~!!~#fo#}|!!~#fo  !~#fo~ʫ!~#fo~.!~w#~w!!~#fo  ҧ!N#F!~w#~w6 !~#fo !~#fo 6~!~#fo! !~#fo" !~#fo# 6~ w!~#fo$ >w#w!N#F!~y—x/!~#fo#6 !N#F!~w#~w6 ç!N#F!~w#~w!~#fo~a!~#fo>z!~#fo~OG! MD!~#fo~OGyw!~w#~wç!~#foMD!9!!}|!!N#F!~w#~w~ ʖ!~%ʙ!~OG!~S!!N#F!~w#~w~ OG!ï!~#fo#~!-!~!~#fo!~#fo~#fo>o>g}| usOh)odi K i th to o CP/M I yo onl hav 48 o memor i .payou system yo wil firs hav t mov you CP/͠ downwar t mak room A thi writing th 1 inc har dis driver require approximatel 3.5 bytes (se FILE below) s yo shoul construc 44 CP/M an type INSTALL -C M26.prl B000 (B00 i 44 i hex. I yo don' kno ho t mov you CP/ downwar, se you syste manual Th require progra i usuall calle "MOVCPM". T instal th Dis Jocke a drive an i 44ˠ CP/ (wit a leas 48 o memory) type INSTALL dj.prl B000 djram.prl E400 Here "dj.prl contain th Dis Jocke 2 drivers B00 i th to o th 44ˠ CP/͠ (th driver requir 3.25K) "djram.prl i update controlle firmwar t b loade int th controlle RAM an E40 i th addres o th controlle RAM (I yo hav non-standar controller us th control le! !N#F!~w#~wN#FSS!!N#F!~w#~wN#FS!!N#F!~w#~wN#FS!N#F!~w#~wN#FͯS!~OG!~S!~#fo~!~#fo~ ! !~!N#F!~w#~w~OG!~ò!!  #B!N#F!N#F!N#F!!N#F!N#F}|  ډ!~#foA  !~ß!~#fo0 !~*#~##~#®~®+++~#fo!9N#F#^#V!xxGyO)MD!9q#po!9~o3||g}o'/<3)"MD!9q#poG! 9~#fo!9~o/< !9~o3|g}oa'!9N#F#q#p!9N#F#^#V"""O>/G!9N#F#^#V#~#foͻz w#û!9TT|xTDxTDLL|7xLTD(D|/g}/o#x/Gy/Ox/Gy/O>=))k# w#`` NAME INSTAL̠ - integrat ne devic driver int CP/M Revisio 1.3. SYNOPSIS INSTALL - string newbios address [ prlfile2 address2 ... ] DESCRIPTION INSTALL integrate ne devic driver int a existin CP/ 2. system "Newbios i skeleta CP/ BIO modul i .PR forma (se th PRL.DO file containin th ne drivers INSTALL firs load "newbios a th give addres (usuall th to o CP/M) the patche i int th existin BIO b exchangin th addresse o th 1 jum vector tha begi eac BIOS I additiona .PR file ar given the ar loade a th requeste addresse wit n patching Finally INSTAL̠ print (to o newbios (newbio buffe size i any a th "ne loa address" Additiona driver ca no b installe a thi address. Th flagge argumen (-string i copie t 80Ƞ an lef ther fo examinatio b th addres +40 hex.) T instalbot th 1 inc har dis an th Dis Jocke drives yo coul firs instal one the th othe o to o i (a th printe "ne loa address") Thi woul requir 6.75 o memor abov CP/M A bette alternative ther i combine drive packag tha require onl 5 o memory T us it configur 43 CP/ (assumin 48 o memory o us availabl memor minus 5K) an type INSTALL M26+dj.prl AC00 djram.prl E400 FILES The provided files are: INSTALL.COM Install program. INSTALL.DOC This document. PRL.DOC .PRL file format. M26.PR̠ 1 inc har dis drivers. Requir 3.5K defaul t drive N,O an P. DJ.PRL Disk Jockey drivers. require 3.25K, default to drives L and M. DJRAM.PRL Disk Jockey RAM-ware. Load at controller address +400 hex. .pa   newl installe "Newbios" o NUL̠ i n flagge argumen i present Th BIOӠ module provide her us thi a a initia driv specification i.e. - specifie tha th newl installe BIOӠ shoul respon t drive C. Th CP/ syste mus b standard it BIO mus begi wit th jum tabl a define i th "CP/ 2. Alteratio Guide" an i mus stor th addres o thi tabl a locatio i memory. "skeletal BIO modul begin wit th sam jum table bu ma leav som o th require function unimplemented Th corresponding jump vectors are left as jump-to-selfs. EXAMPLES T instal th 1 inc har dis (M26 a drive C D an i 48ˠ CP/ (assumin tha yo hav memor abov 48K) execute INSTALL -C M26.prl C000 Here M26.pr i th "skeleta BIOS (provide wit INSTALL containin th 1 inc har dis drivers an C00 (he fo 48- M26+DJ.PRL Combined 14 inch hard disk and Disk Jockey drivers; requires 5K. Defaults to drives L and M for the Disk Jockey, and N,O and P for the M26. M26+DJ.AS͠ Assemble sourc fo M26.PRL DJ.PRL and DJRAM.PRL. Requires the Digital Research MAC assembler or ASM, plus hand editing of the macros. DJRAM.ASM Assembler source. BUGS Addresse mus b specifie i 4-digi he (wit n leadin an n trailin H) INSTALL shoul als accep octa an X- notation. Whe th Dis Jocke driver ar firs accessed the locat th controlle b searchin memor fo certai patter i th controlle ROM Th searc i don carefully bu never theless migh clobbe someone' memory-mappe I/O. install.doc 8/26/80 bdg 6Y: !2 6=21 á:1 : r+s#r==_HL"4 " >6 ͪS* "6 =23 :1 =21 v=O* #" Y8  ͝҉* +"8 .!2 ʞR̀* "4 4 = ͝* #" çR*6 DM+R*8 DM+R*: DM+R*< M!? q=  ͝Kd*= ! ͸p!@ 6>!@ X*= }O!< *@ & w*= #"= !@ 4)!< 4\mad* }O!< :? wlR*4 DM+{R* DM+R 4 ͝*4 }¿= 4 ͝< N*4 #"4  å;*4 DM+: Y2A 0O> :A 0:A AO>&R̀:A A H.2B !2 w:B !D s+q*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 "= !  9!~w#~w3gV!~#fo~ʃ !~#fo~. ! ~@ #~ !~#fo~ !N#F!~w#~w!N#F!~w#~w~C !N#F!~w#~w6.!~#fo~, !N#F!~w#~w!N#F!~w#~w~Û !N#F!~w#~w!N#F!~w#~w~ !~#fo6! ~& #~ʃ nV!~#fo6nVgV!!N#F!~w#~w!N#F80yʎ !~#fo ~ ” !~#fo 6nVnV!~#fo ~ < !~w#~w< Error: gV! ! N#F!N#F!N#F!N#F!!FnVUsage: makeprl [-s hex-no] [-o output] hex-file1 [hex-file2]gV! !!FnVgV!~#fo~:y nV!~#fo ~0 !~#fo ~0ʣ nV!!N#F!!~#fo#(y x nV!!N#F!!~#fo###(y x nV!>w#w!!~#fo  #~ !!~#fo)! ~#fo !!~#fo) !~#fo (yu xʣ nV!~#fo#~0³ !~#fo##~0³ nV!~w#~w nVCan't rewind '%p'file '%p' not at correct start addressUnexpected las*0F!9N#F#^#V#~#fo"Xkb"Xi`"XOGposLoad size is %h hex bytes longOutput file is %p Addresses don't matchSizes don't matchUnexpected last line in %pCan't make room for headerCan't create '%p'prlhx1hx1hx0Bad option -%acprlMAKEPRL Version %i.%i gV!9!>w#w!>w#w!>w#w! >w#w!>w#w!>w#w!>w#w!~w#~w!~w#~w!N#F!N#F!!~#±@ !~#fo~#fo~-!!~#fo~#~!~w#~w+~#fo~OG!2[U!~#~ʽ!~#~ʽ@ ý!!!!~w#~w+~#foN#F(!~w#~w!~w#~w!~w#~wñ!!$!~w#~w+~#foN#F !>w#wF!~#fo~OG!; F!!!D!~#foN#F !~#~!!!4!~#foN#F 3!!!4!~#fo##N#F !~A#~ʄ!!~#fo~#fo~!~#fo~!~#fo~.!~#fo6\!"!Dywx#w! !4ywx#w!!!!$$ywx#w+~#~!$!; !!$!~#foN#Ft line in hex file '%p'File '%p' not in hex formatCan't read '%p'gV!9!!N#F9 yg x{ !N#F!4 ; !!!!!^ ywx#w+~¬ #~ !N#F! ; !~ #~ !N#F! ; !!  # !N#F! ; !!'X##N#F+++N#F!N#F̈́)xB!N#F! ; nVBad line in hex filegV!9!!N#F9 y€x‰nV!! N#F!N#F!N#F!^ ywx#w+~#~!H; !~#~nVnVCan't open '%p'gV!!!!N#F͐ywx#w+~.#~E!N#F!; nV!~#foMDnVCan't write out bitmapSeek error in wrheadCan't write headerCan't rewind filegV!9!>w#w!~#~!!~#fo 6!~w#~wö!!}|!N#F!~w#~w6!N#F!~w#~w!~#fo!yOx#GyOxGyw!N#F!~w#~w!~#fo!yOx#G!8Q}o|g}!N#F!~w#~w6!N#F!~w#~w! ~#fo}o|g}!N#F!~w#~w! N#F!8Q}o|g}!!@ 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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d`!!F`;K$!!P`~#~s$!P`NO*d`*d`#"d`6-!!~#fo!~#fo }|!>>#$!>w#w!!~#fo#! >+F+N=$!94! 9ywx N#F*d` *d`N#FzE*d` y.-x#N-! !G,!zE!Fg-*d` >w#w*d` :``w:`` t-:a`‹-*d` ~ˆ-#~,*``MDP*d` N#F*d` *d`N#FzE*d` y-x#-! !:,!zE!FP*d` >w#w*``MDPwrite error write error bad putl call O!~#fo"d`!~#fo"``!d`~#c.!!.!zE!FP!~#fo"b`!b`>#/!*d` *d` ~#fo }|!b`>#/*d` ~#~/!N#F!~w#~w*``*``#"``~:b`2b`:c`2c`*d` ~w#~wÛ.*d` ~/#~/*d` ~#/*d` ~#fo*d` ~ /*d` N#F*d` *d`N#FzE*d` yo/x#/! !-!zE!F/!b`>#n.!*d` *d`N#FzEy½/x/! !.!zE!Fn.*d` >w#wn.!~#foMDP*d` >w#w/10122+222 223O!N#FʹFi`"b`!b`~#[0P*b` ~#fo"d`!~#fo"``!>#0*b` ~0*b` ~OG! 0[U*``!yOx#GP!*b`VG!0[U!d`~#0P*d`! ~P1*d`* 6}*d`* ! ! !d`!yOx#GP can't write can't read O!9!t!}|!"``!*``*``#"``~!>#!>#*``> ,*``~,!>w#w!v/ywx#w!"b`!t:b`:c`#*b`~<!=!!*b` ͐y~!!!*b` !#!! 9!F~!>#CÔ!~w#~w*``#"``r!>#*``> *``~!tN#F!t~w#~w*``~A*``>Z*``~OG! MDä*``~OGyw!~w#~w*``#"``C!tN#F!t~w#~w6e!v!N#FP*b`#"b`ò*b`~>V!=!!*b` $y(x~!!*b` !!! 9!F~!N#F!~w#~w)!v :b`w:c`#w*b`~*b`#"b`~gV!N#F!~#ʫî!N#F͛9nVgV!N#F!\c,nVgV!!N#F!\!#.nVO!"d`*d`~#8*d`N#FL)*d`N#F!N#FzE*d`##"d`PO!~#fo"d`!~#fo"``!~#fo"b`*d`~nq*d`~N¢*d`#"d`*``*b`N#F*b`~w#~w~#fo}|*d`MDP*``>w#w*d`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d+dj.hex makeprl -o hd+dj.prl hd+dj.hx0 hd+dj.hx1 In the MAKEPRL line it is not required that you specify the output or add type extensions because the program uses defaults. The MAKEPRL line could be written: makeprl hd+dj hd+dj Thi for doe th sam a th firs bu i quicke t type. Th specificatio fo th - optio mus b fou digi he number. FILES MAKEPRL.COM MAKEPRL program MAKEPRL.DOC This document. makeprl.doc 3/17/81 ldk wit '.hx1 extension No yo ar read t us th MAKEPR program Thi i a exampl o typica wa t d th procedur describe above Th exampl assume tha th sourc i configure correctly. mac hd+dj ren hd+dj.hx0=hd+dj.hex mac hd+dj $+r ren hd+dj.hxTWͶTq#px#w#wTͶTq#p#w#wTͶT w #w #w #wTͶT w #w #w #wT~#gU#~#foy#{Ux#|U+++~#fo##[U!9!9!N#F!]WyaV!q#p! N#F!]WyU!N#FKV!yOx#GUyV+~w#~w!UO>G! ~#+~wU Vw yVU!MD!  #w)V!N#F!rV!MD ! ~#fo+ #wXVW!9!9N#F! ~Vi`+ >#w‹VæV+¦VšV[W! ~V# +~w³V!9~w#~wæV! ~Vi`+ #~wV!9~w#~wV Wi`7#~wVæV!9~"Wi`+#wW[W5Wi`>#w+W>w! !9z~w+~ w++~ wOW!!9N#F!9^#V! #~#~ yW! ~#~WҚW+©W WW>w+~w}Wi`>#w¼WJ!9N#F###q#p+++q!9N#F#q#pcopyright (c) 1979 by Whitesmiths, Ltd. NAME MAKEPRL - mak .PRL fil fro absolut he files SYNOPSIS MAKEPRL [- he number [- outpu file hex hex2 DESCRIPTION MAKEPR̠ i use t creat .PR̠ file suitabl fo loadin b th INSTAL progra (se INSTALL.DOC) Th for ma fo .PR file ca b foun i PRL.DOC Th - optio i use fo enterin th reserve buffe space (Th reserve buffe spac i entere a 16-bi numbe i addresse an o th header se PRL.DOC) Th - optio i th outpu fil specifier I n outpu fil i specified th nam fro hex i take wit .PR typ extensio added I th outpu fil doe no hav typ extension th defaul .PR i added Th nex tw argument mus b specified Th firs argumen i th he fil inpu wit a origi a 0 Th secon i th secon he fil inpu wit a origi a 10 hex I th he file d no hav typ extension '.hx0 an '.hx1 ar adde respectively. EXAMPLES T creat .PR fil o th har dis I/ drivers begi wit th assembl languag source Assembl i a ori gi an renam th he outpu (wit .'hx0 extension. The assembl i agai wit a origi o 10 hex (Con sul you assemble manua o ho t d this Wit som as semblers yo mus re-edi th sourc fil an chang th 'org statement) Afte yo hav assemble th sourc wit a origi o 10 hex renam i wit '.hx1 extension No yo ar read t us th MAKEPR program Thi i a exampl o typica wa t d th procedur describe above Th exampl assume tha th sourc i configure correctly. mac hd+dj ren hd+dj.hx0=hd+dj.hex mac hd+dj $+r ren hd+dj.hx1Ì]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 " Ð)͙(6Çz)uÇxdd!BdX* \FÇy2h :g g+Wx(zOxdz o! N#F* *(" " ͩ( *!:h og~#fox(2g 6" ;)!A͙(*ʹ(" " i*͙(*g' .EJ ]<=ʓ<"FO&i:* ,C(#r PQ͉:C)|)IoBI'UTC)}* k(͋9" d(~a{_&([OʭH¬#~[Eҗ:0ÞG7))))o~ +8  )))0O í)#~ց(7>OyC,;*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+ȸ#"* u )4} )H>2  N#fi-++<(aZz)}/o|/g" :g q7xz)z ,{ʨ+F•{o|P {o|<«{o|2¸{/o|/}//o|//}o|g,::e 2 ͋9:g " " ͬB!9(:g * ~)C,* C,Á2N 2g !9(!9.,:g G:N Od}!P O:* * C)>" : OBO/2 OÐ9~ #~#`J x 2b b + C,u W : u 2_H 2u 2_H 2H /<z)zu 2 2 C,u Y +{>2e]!"N#F#xʇ TFQBN#F#Cچ " 1~ > @ !b !BÑ ~ͥB# b 2 e] #~ , 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([])2! _!A!_.!!!/!: -!<-!> >2 { =! ! <~J!#~#X! k*l!~#>l!+!:G@ #T]~u!#y!~v!ʏ!y_¢!: >2 ÷![®!2 !: >2 !> XG{!~#_XG!!2 E0:?+͎ " o6 r6*n )1:l O " H*">&{:m ;"!;"#~ ̾(~#m":m A" ^".h"Dh"EA"A"{v"*j 5$Ҕ"T]C!E #G!* C¦"`i" "\]~"\]C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!T\!& äV~# xY\DM\ʓ\͹\! w!( V6 ʎ\zwø \ʓ\͹\! ~!ô\! ^#V! s#rDMͱ\ͫ\C" ͒#\>;S"]C ** C!X9}o|g~A[?;C E, E+ EC, E*,4EyE+ʅEC,ʅEyE+ !NC҂E͗EڂE*  C҂E"v " E"zB**v {_zWME}_|W2 " ċ9" P ^#V#* C ~#~#Eͦ(: E! ͦ(|%(ͷ()/F####N#F#^#Vi`: F* F1+:g  r+s^#V#3)ͷ(AF"i`Ü" * ~, ͨE*|ͥH~#N#FͬHW^#N#F{zد< #rF?P(o6ÙFr6ÙF)1FͨHH~#*x " >2g ( C"x ~ #FͨH͹( @ +B-G* * /O #CZG" # >G*v " !* !z *x CxGH!L " * " * * CʹG~###͚<²GH_ÕG* ^#Vz* G" ##^#V#" ÕG* C7H~###͚>>ͬ͹F* (H>>>ͥH<2g #~#fo(d ,»QZûQ Q͋9;*W_Wڬ Q¾Q"QG{,xQPXW1R!b Oz"yR QR RO{,yĊRW1R R{ +R,> +R+R1R1R͊RWQ"hV* *CMS~#hVSV:SS=S~,~#u SůSѯ*Qʦ   ! ~#fo" !"o]| G~,r CACS͋9;*O*o] "o]* Cڸ q#s#r9T7͋9;*ͥHF~O#^#VT*CT* CTY* * CUy2!^" :^^<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|gC(u C,C)d$Ix 'IH0Ix > {͹FGH* w#?IHIO>~XIxIx C,;*C,* C)ͥHW'ͫHG=O>x~#F#fh GN#^#VUJ LJ#7Jѯx<#4JIJC(͋9;*#^#V* CڍJ*CҍJͣF(C,u ~JͥHG!W'y~?@> @(KͿAzK68Kp22 ͿAoK!B!=:>\2UK'K@+iK~@K+@K@!B!b 2OAK:ʐK>\@2yKCD7 ;L K ´K(KKCD(KK0K@> @>bKK>#iKK6!B!b K KxL*|>L!b ("_yq#@ K2e > @ͿA,L KzK: Bw!a >2 ;2 " $L33oL " ** áL LL" *" ##^#V#~#fo"͆(ʵLA3à* "à!9~#L L~#foC L >2 ͋9dU>  U!Ux͹FFTC$C(u ~,KU*Qʠ "QC)}͹FʅU͙BlUA~Uw# ^UF* DWڬ qU6Qʦ ʠ !' ~U U#~¸U`i}WÙU>O #~(PY!' ůwͱW:!͞Zʻ =ʝ =UѯÚ <ʻ !% ^#Vr+s9Q6V PY,V!#V`i>yV!' ~UͱW)9V6Qʦ !&QV! ~+n6Qʦ ! ~*~Ee\DM'~U4N#V pʝVzw w+s#r#6#6DM:V!" s#r#6 W! {zVWw<W<ʻ !! {w:W}W!! ~!) ;WU;W~#>W*~ʖ\( ~hW+~#5O ~+~tWzWJW7>*T]% N#F+q#p###6 ’WͱW: ͞Z>ªW>w+w!(HW7?*' 6#67ͥH~ʲ #^#fk_XN#~:X++@bXy@bXbX #RX~.0X>X7X#X2 z bXbX> >X7X> WX7Xò W<ʣ ! w#…XCACSW:!<¾ ͥH~ʠ #N#F OXIXR  C,#u C,{ʦ _4(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" $#͘*~ ""͌#>?͌͘ =_.:;<>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OW! !ɿ'y2>22"2*"|O|g+Q|g}oC#|g"#!"#o#`:"=o&)))))))#!>”:#>2>=>>> 2ͳ2#͗2 .p* #|.p.p* #DM.p#.p.p>7>x½.p2"y2" "*P"`):R2b)T!""P2R"@2B*"!":"h">2"@*"@"چ""چ":"2"/O:"2":"2"!"6U~7zª"7:"_!"`i#|/g}/o#"|}"O?(?(Q?(?(#**(#**(p))();*(#**(#}+}+ W Morrow Designs 48K CP/M 2.2 E3 AB: DJDMA 8", CD: DJDMA 5 1/4", EF: HDDMA 122E>2'!' 6J$ !#2"2!"Ò͸b$!P +2?ìJ$,(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" $ýͣ"!#:d:E:"_**"z[{[!":"[=[*"":"2">2"ɯ2":6=>2ͳ2#:#g|;Oogy{#{_~#foy!':#O*#zº{º*#" #*#" #y#:##:##:##: ## # Þ w# xo&))))~#O .I~     %&'()*+, -. /0  12!"34#$!"#$1234%&'(5678 )*+,9:;<  -./0 12345678 !"#$%&'(9:;<=>?@)*+,-./0?4 < @+ 4 h@x1@W@ B! #  !P6#6#6!ͩ:@ʤ#!#)# )## 2 Ã͠ ~#fo~, n&D #/g2 ͸ڍ!"##"#2ڍD !&_͠D ʎͩ<O s#r!N: o#* )T]))P)6#6f#66#6r^! ?1 ^!P6#6#6!ͩ:@$@B B HH II$@DI ABI$"$H$H@$$I! H*  $H@@A I $D!!$I"BI"I"@$BIIH$$$$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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~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 ̈́ ͊ Ͳ  >ýͣ"!#:d:E:"_**"z[{[!":"[=[*"":"2">2"ɯ2":6=>2ͳ2#:#g|;Oogy{#{_~#foy!':#O*#zº{º*#" #*#" #y#:##:##:##: ## # Þ w# xo&))))~#O .I~     %&'()*+, -. /0  12!"34#$!"#$1234%&'(5678 )*+,9:;<  -./0 12345678 !"#$%&'(9:;<=>?@)*+,-./0?4 < @+ 4 h@x1@W@ B! #  !P6#6#6!ͩ:@ʤ#!#)# )## 2 Ã͠ ~#fo~, n&D #/g2 ͸ڍ!"##"#2ڍD !&_͠D ʎͩ<O s#r!N: o#* )T]))P)6#6f#66#6r^! ?1 ^!P6#6#6!ͩ:@Æ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#š" ͸ :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 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ͽ:ý(!2"y2" "*P"`):R2b)T!""P2R"@2B*"!":"h">2"@*"@"چ""چ":"2"/O:"2":"2"!"6U~7zª"7:"_!"`i#|/g}/o#"|}"O?(?(Q?(?(#**(#**(p))();*(#**(#}+}+ W Morrow Designs 48K CP/M 2.2 E3 AB: HDDMA (2)M5, CD: DJDMA 8", EF: DJDMA 5 1/4" 122E>2'!' 6P$ !#2"2!"Ò͸h$!P +2?ìP$,(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&)|+!<ͧ$@B B HH II$@DI ABI$"$H$H@$$I! H*  $H@@A I $D!!$I"BI"I"@$BIIH$$$$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$ (@A $ BDDADBI $ !"BH$H@$$@@ !D $ A$$HIHB@ HA $@ETHA$ B   @ $$EUUH(8Æ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:@#)%#)/ :FʛÛ2F:,@+ y#+ W>"O>2F+ 2-O!. ~2,yË:,!Oˆ!w n&2-ڍ:-O!. >w2,!" #+"#2 ڍ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":"2"/O:"2":"2"!"6U~7z²"7:"_!"`i#|/g}/o#"|}"O?(?(Q?(?)#**)'#**))))3*s*)# + +)# , ,)#a,a,)#a-a-   Morrow Designs 48K CP/M 2.2 E3 ABCD: HDDMA (2)M10, EF: DJDMA 8", GH: DJDMA 5 1/4" 122E>2'!' 6͋$ !#!2#2!"Ò$!P +2?ô$,"**#"͕  : 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 ̈́ ͊ Ͳ  >.xͫ#! #:l:M:#g**#zc{c!#:#c=c*"#:#2#>2#ɯ2#:>=>2ͻ2 #: #g|;Oogy҃#{_~#foy!': #O*+z{*#"#*#"#y#:##:##:##:### æw# xo&))))~#O !6Q     %&'()*+, -. /0  12!"34#$!"#$1234%&'(5678 )*+,9:;<  -./0 12345678 !"#$%&'(9:;<=>?@)*+,-./0?4 < @+ 4 h@x1@W@J ) +  ' !P6#6#6!ͱ:@ʬ#!#)# )## 2 Ëͨ ~#fo~4 n&L +/g2 ڍ!" ##"#2 ڍL !._ͨL ʖͱDO s#r!N: w#* )T]))P)6#6f#66#6zf) G9 'f!P6 #6#6!!ͱ9$@B B HH II$@DI ABI$"$H$H@$$I! H*  $H@@A I $D!!$I"BI"I"@$BIIH$$$$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$ (@A $ BDDADBI $ !"BH$H@$$@@ !D $ A$$HIHB@ HA $@ETHA$ B   @ $$EUUH(Æ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# @$ $HI$HB @DDD A" B @AI ! A $H$B $ !I"A"@DD!I  "I" $@ $$$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$ (@A $ BDDADBI $ !"BH$H@$$@@ !D $ A$$HIHB@ HA $@ETHA$ B   @ $$EUUH1!~# 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#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 ̈́ ͊ Ͳ  >.xͫ#! #:l:M:#g**#zc{c!#:#c=c*"#:#2#>2#ɯ2#:>=>2ͻ2 #: #g|;Oogy҃#{_~#foy!': #O*+z{*#"#*#"#y#:##:##:##:### æw# xo&))))~#O !6Q     %&'()*+, -. /0  12!"34#$!"#$1234%&'(5678 )*+,9:;<  -./0 12345678 !"#$%&'(9:;<=>?@)*+,-./0?4 < @+ 4 h@x1@W@J ) +  ' !P6#6#6!ͱ:@ʬ#!#)# )## 2 Ëͨ ~#fo~4 n&L +/g2 ڍ!" ##"#2 ڍL !._ͨL ʖͱDO s#r!N: w#* )T]))P)6#6f#66#6zf) G9 'f!P6 #6#6!!ͱ$@B B HH II$@DI ABI$"$H$H@$$I! H*  $H@@A I $D!!$I"BI"I"@$BIIH$$$$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$ (@A $ BDDADBI $ !"BH$H@$$@@ !D $ A$$HIHB@ HA $@ETHA$ B   @ $$EUUH2>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|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*#DM.x#.x.x>7>xy=" 2"y2" "*P"):R2)T!""P2R"@2B*"!":"p">2"@*""ڎ""ڎ":"2"/O:"2":"2"!"6U~7z²"7:"_!"`i#|/g}/o#"|}"O?(?(Q?(?)#**)'#**))))3*s*)# + +)# , ,)# - -)# . . Morrow Designs 48K CP/M 2.2 E3 ABCD: HDDMA (2)M16, EF: DJDMA 8", GH: DJDMA 5 1/4" 122E>2'!' 6͋$ !#!2#2!"Ò$!P +2?ô$,; Notes on CP/M Ver. 2.2 with Cbios rev.E.3. Ther ar severa feature o Morro Design versio o CP/ Versio 2.2 Cbio revisio E. wit whic user accustome t singl densit CP/ o inc drive ma no b familiar I addition som explanatio i require fo certai utilit com mand provide b Morro Designs Thes specia feature an utilitie ar discusse below. CBIOS Th CBIO supplie wit CP/ Versio 2. ha som uniqu feature whic allo user t easil us flopp diskette o differen densitie and/o secto sizes Th CBIO wil rea an writ diskette formatte i IB 374 singl densit forma an IB syste 3 doubl densit format Thi compatibilit wit IB diskette i onl i th formattin information no i th fil structure Thi mean tha th Dis Jocke 2D/ o Dis Jocke DM ca rea IB diskettes bu specia softwar i neede t rea IB files N chang i nec an BOO fo th har dis version not fo th flopp version. Assigning Density User familia wit th Lifeboat/Morro Design 2 CP/ Ver 1.4 wh ar accustome t usin th DENSITY.CO͠ program wil appreciat th abilit o th curren program t automaticall determin diskett density Ther i n nee t infor CP/ Versio 2. ahea o tim o th densit o diskette Jus inser th diskette th res i take car of Car mus b taken however whe removin o replacin diskett whic ha alread bee accesse b CP/M dis rese operatio shoul b don eithe b performin war boot o b makin BDO cal t rese th dis syste (se th CP/ interfac guide). A thes ne feature hav bee added th siz o th Cbio ha grow t th poin wher th versio fo th doubl densit controlle ca n longe fi o th firs tw track i formatte i singl density Thi mean tha yo ca oan ABOOT&.AS files. Man parameter o th Cbio 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 memor siz o th reconfigure CP/M Th followin lis o equate wer pulle ou o th Cbio 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 SAessar withi th CBIO t allo user t rea and/o writ an o th IB standar secto sizes Th CBIO als support singl an double-side drives User wit double-side drive mus us double-side diskette i orde t tak advantag o th built-i double-side features I single-side diskette ar use i double-side drive th single-side parameter o th CBIOӠ wil tak precedence Likewise i double-side diskett i inserte an th syste i warm-boote the th double-side feature wil b switche on Eg ms seek an extende storage Th CBIO require approximatel 5 o memory Th sourc fo th CBIO i i th fil CBIOS&.ASM an th sourc fo th COL boo loader i i th fil ABOOT&.ASM Th tw files BIOS.CO an CBIOS.COM ar example o dis an termina I/Ϡ routine supplie b Digita Research. MOVCPM Th MOVCPM.CO featur o CP/ ca b use t directl relocat th "col bnl boo u wit diskett tha ha bee formatte wit 102 byt doubl densit sectors. Formatting a Diskette - FORMT# Th comman fil FORMT#.CO wil format o initialize flopp diskett i an IB standar forma fo user wit Dis Jocke 2D/ flopp dis controller Typin A>FORMT#[RET] execute progra tha inquire th secto siz - 128 256 512 o 102 byte - t b formatted an th driv - A B C o - wher th initializatio wil tak place Th driv specifie reflect th flopp drive only nothin else Formattin driv format th firs flopp connecte t th Dis Jocke 2D Formattin diskett wil automaticall writ secto header fo th selecte secto size Agai not tha i you floppie hav bee adde t you syste vi th INSTAL program o i the ar drive C: D o above the th CP/ driv number hav nothin t d wit FORMT an tha4000 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-412 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&[RET] A>MAC ABOOT&[RET] 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 A>TYP ABOOT&.PRN[RET] watc fo th labe "OFFSET i th listing an recor it value. Enter A>TYP CBIOS&.PRN[RET] watc fo th labe "OFFSETC i th listing an recor it value. I th oot loader th CBIO an CP/M I modification ar don t an o th above th MOVCPM.CO progra wil relocat al bu th modifie portion correctly Follo th procedure o th nex pag i an o th abov section ar modified I relocate CP/ progra i create usin th command: A>movcpm xx (wher x i th syste siz o fo auto-sizing 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 functio o th origina an relocate CP/M's I i recommende tha th followin procedur b use instea ([RET mean pres th RETUR key): A>movcpm xx *[RET] A>sysgen[RET] cold boot the system. This will insure that the newly relocated CP/M is stable. Fo user wit th har dis systems th MOVCPM.CO͠ progra relocate th CBIO driv wil alway b th firs flopp dis drive. Formatting a Diskette - FORMATDJ Th comman fil FORMATDJ.CO format an initialize bot 1/ an inc diskette fo th DJDM flopp dis controller. Thi progra i menu-drive an i therefor sel explanatory Simply enter A>FORMATDJ[RET] and follow the instructions. Formatting the Hard Disk - 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 th har dis befor proceeding. 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 <BIOSLΠ equat wa modified the w mus modif th MOVCPM.CO͠ progra t creat CP/ syste tha matche th ne Cbios' length Th followin procedur wil perfor thi modification. Enter A>DD MOVCPM.COM[RET] -S103[RET] Locatio 10 contain th BIOSLΠ valu fo th MOVCP program. Enter 0103 15 xx[RET] 0104 43 .[RET] wher x i th firs tw digit o BIOSL an pres RETURN Fo instance fo BIOSL o 180, typ in 18[RET]. then enter -G0[RET] to exi DDT. Next enter A>SAV 5 MOVCPM.COM[RET] to sav th reconfigured MOVCP program, and A>MOVCP x *[RET] wher x i th MSIZ valu tha yo assemble th CBIOS&.AS fil with, then A>SAV 4 CPMxx.COM[RET] wit x a above. Again enter DDT, this time with the new CP/M system file: A>DD CPMxx.COM[REse t plac a "A o "B diskett int Driv A I othe words SINGLŠ turn Driv int logica dua driv system Th user however mus kee trac o whic diskett ha bee designate th "A diskett an whic th "B diskette A a example t cop fil fro driv t driv A giv th command: A>SINGLE S[RET] t begi operatio i singl mod (th "S argumen i fo Start) Th progra wil respon tha SINGL ha bee installed an retur t CP/M An operatio tha involve changin drive wil no resul i promp t plac th "A o "B diskett int Driv A I ou example th "B diskett woul b th on wit th fil whic w wis t cop ont th syste diskette One coul no type: A>PIP A:DEST.FILE=B:SOURCE.FILE[V] [RET] Dependin upo th lengt o th fil t b transferred fai numbe o request t plac th "A o "B diskett int Driv wil ap ou th formatting re- format th trac an the re-write th data Thi proces i repeate unti th whol diskett ha bee regenerated Th origina diskett i bot th sourc an destinatio diskette an mus therefor b writ enabled. Th fina resul shoul b singl densit diskett tha i readabl bot o th machin tha originall produce i a wel a o th Dis Jocke 2/B controller. Simpl typin REGEΠ wil invok thi program I ha enoug prompt t explai it use. 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 thT] The value of xx is as above. Enter -HEX[RET] then -R(value of OFFSETC)[RET] Us th OFFSET valu obtaine fro th secon ste i thi procedure B sur t omi th parenthesis Continu b entering -IBIOS&.HEX[RET] then -R(value of OFFSET)[RET] wit th OFFSE valu obtaine fro th firs ste i thi procedure. Finally enter -^C (control C) t retur t CP/M fro DD. Now enter A>SAV 4 CPMxx.COM[RET] wit x a above, and then A>SYSGEN[RET] SYSGEN returns Morrow Designs SYSGEN version 4.1 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). The return: Destination drive name (or to warm boot) Enterpea unti th cop i completed A entir syste dis coul als b backe u thi way Firs on woul forma th destinatio disk Next th command: A>PIP A:=B:*.*[RET] woul begi th copy Thi proces wil tak man man swap bu wil d th job Th numbe o diskett swap depend o th amoun o memor whic PI ha t use an o th amoun o dat t b transferred. I general an CP/ comman whic ca b use i regula mod ca b use whil i singl mode Ther ar tw exceptions however Th FORMT#.CO program becaus i make direc call t Dis Jocke 2D/ firmware wil no functio properl i singl mode an MOVCPM.CO͠ becaus o memor relocatio problems. T exi singl mode type: A>SINGLE E[RET] Thi wil retur th use t th standar CP/ syste (Th "E argumen i fo End) Typin SINGL E whe no i singl mod wil repor a erro an retur  MPZ8 manua fo th prope switc settings. t ha bee regenerated Th origina diskett i bot th sourc an destinatio diskette an mus therefor b writ enabled. Th fina resul shoul b singl densit diskett tha i readabl bot o th machin tha originall produce i a wel a o th Dis Jocke 2/B controller. Simpl typin REGEΠ wil invok thi program I ha enoug prompt t explai it use. 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 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. To complete this process, press the RETURN key twice: Destination on (drive):, type to warm boot) Function complete Destination drive name (or to warm boot) Rese th syste an d "col boot. Th syste heade displays your new system size now. SINGLE COMMAND Th progra SINGLE.CO i o interes mainl t thos user wh hav onl singl driv syste an D 2D/  controller It purpos i t allo thes user t cop CP/͠ file betwee diskettes User wit dua driv system ca perfor suc copie faste an mor convenientl simpl b usin PIP. SINGLŠ operate b interceptin CP/ call t dis driv selec routines Rathe tha selectin NE drive SINGL prompt th uwithou an chang bein made a wil typin SINGL S i alread i singl mode. REGEN Th REGEN.CO comman regenerate CP/ singl densit diskette whic hav bee formatte i suc wa tha i i incompatibl wit th norma operatio o th 179 controlle chi (IMSA diskette i particula hav thi problem) Thi progra wil b o interes t thos user wit th Morro Design Dis Jocke 2D/ Controlle only I i no intende fo us wit th Dis Jocke DM controller. Th REGEΠ progra i designe t b use wit diskette whic hav bee formatte incorrectl - no wit diskette tha hav bee partiall destroyed A exampl o diskett tha coul b use wit th REGE progra i on tha th Dis Jocke 1Ġ boar ca read bu th Dis Jocke 2D/ canno (th DJ1Ġ doe no utiliz th 179 controlle chip) Essentially th REGE progra read complet trac o dat an forma informatio int memory filter=(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.5$$$ 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  :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ͲÁ.!6> !ڇ*&' ~2 ʀ: y.*M!4Q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қ:=2á:2:Ҭ\>!ҿ:=2K:2K!:!:K\: \!p+q͈*!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  !6q  *& !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:ͯ !&6>NAME prl -- "page reelocatable" format DESCRIPTION Prl ("page relocatable") is a file format for relocatable object code defined in the Mpm users manual. It begins with a 256 byte header: header[0] Octal 375. Not documented by Mpm. header[1 to 2] Program size (low byte first). header[3] Not documented by Mpm. header[4 to 5] Size of any required buffer space (low byte first). header[6 to 255] Currently unused, reserved by Mpm. Next comes "program-size" bytes of binary object code assembled at address 0. Finally comes a "bit map", one bit for each byte of code, beginning with the most significant bit of the map's first byte. A 1 bit indicates that the corresponding byte of code should be relocated by adding to it the most significant byte of the load address. The usual way to make a prl file is to assemble the source code twice, once at 0 and once at 100 hex. Then build the map by comparinL!*p+q*)O2'!,p+q*+O2'O2'O!.p+q*-LRRLR\LR" O!/q*/& L!1p+q*0#L~*##N!ͽ͞"T!Vq*VMͳ!Xp+q!W* >Wr#MͲ!_p+q!`6>!`6*`&*^*`&Y />!`4 >*]& ~ O!]49!a6:a*]& ~2bO>z*bM >!b/~,H~:H~*H~.H~>H~<H~=H*]& 6!]4T!]4!cq*a&Y :cw!a4!gr+s+p+q!h6>fr*d*f!is*d́"dPY! "f>!h#~Haͫo!h6:i0O͐!mr+s+p+q*lTZs#r*lڶ*l+s#r*jN#F+q#pÌ!nq!"o"q}2uo&"s* s:n*sDM2u:uqos*s"s*o͊O !v6>!vQ*v&w 6`i+46)A*:'ʓ:'O!) ~2vʍ:vO!w 6,]!v6>!v*v&w ~һ*vM !v4˜8AO͐:͐ͱ*##N!ͽ"* N#F*͠")*)) *)) N#Fq#p*)) *)s#r*)#")!)6 J:)!)J!)6 :)<2)*)")҈q:tw͠ͱ!"))ҍ*)) ^#V")]͠.*)DM\ -°!\6:\ͣ:ͱ*}DM'ͫ*)%) N#F'ͫ*)!) N#F'k͐ͫ*)) N#FͫR͐/͐ *) ~IO͐NW͐ͫ8AO͐:͐ *) ~2)t(͐:)҃)͐*)#")Ã& \!"))\Ұ*)")]͠*)M! ^#V *) >*) 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#Wg the bytes one-for-one, setting the corresponding bit to the difference. If two bytes differ by more than 1, then some non-relocatable construct has been used. BUGS The load address must be on a page boundry (multiple of 256). prl.doc 8/5/80 gf ruct has been used. BUGS The load address must be on a page boundry (multiple of 256). to 5] Size of any required buffer space (low byte first). header[6 to 255] Currently unused, reserved by Mpm. Next comes "program-size" bytes of binary object code assembled at address 0. Finally comes a "bit map", one bit for each byte of code, beginning with the most significant bit of the map's first byte. A 1 bit indicates that the corresponding byte of code should be relocated by adding to it the most significant byte of the load address. The usual way to make a prl file is to assemble the source code twice, once at 0 and once at 100 hex. Then build the map by comparin>!H% - *DM ͱͷDM  ͱ* N#F 9ͱ * ^#V))DM Tͱ* ~ *} *M!+s#r#4 !s+p+q!6!66:!ڄ !6!6>!r *&**&Y i !6!4+4A :} :!4- >!699 2¨ :!4: :2!6+6>! :O!9 DMi ͱ:!O!Y DMi :2:2͠!4 F :® )!6>!ګ ͠:O!9 DMi 8ͱ!6> !ڤ Å :2k ä  ͐:!O!Y DMi w !4C F :¿ >F : F :=229:Y= ;>9*&Y DM =2 I>!6:=28 :2:2 :!!29:Y T >:Y,e \>Ì !p+q*~:ʉ *N͐*#"o :͐!p+q!'"!6> **{2*́"PY! ">!+~H !6:0O͐à k͐"))ҍ*)) ^#V")]͠.*)DM\ -°!\6:\ͣ:ͱ*}DM'ͫ*)%) N#F'ͫ*)!) N#F'k͐ͫ*)) N#FͫR͐/͐ *) ~IO͐NW͐ͫ8AO͐:͐ *) ~2)t(͐:)҃)͐*)#")Ã& \!"))\Ұ*)")]͠*)M! ^#V *) >*) 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#W3 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*(&͠Q" 8AO͐jͱͷDM͏ m  Z"l"!6>ʥ *}҆ *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>}|ͧ D, then type 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 D, then type returnPermanent error, Type return to ignoreFunction completeInvalid drive (Use A through PNo such fileSourc?ͤü<2:ʼ!":mM!">62)!:(=MpͿè1!Wͳ:] ʯ\!~_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 "!$""QCOPYRIGHT (C) 1978, DIGITAL RESEARCH   !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOP~# |o&)))))))a{__> ͞> Þͤ~͞#ó*nz:O!$'*!ͳD|A ^#V"n#2m+?~(?>2m>(2)>2(w ~#f>P2)>2(zpzw>2)pzͿ:mʝ:H2\ ! ">2!4:(PN>2:)!4$!^!*FNyͅ*DM2: !ͳ͐ Dͤü<2:ʼ!":mM!">62)!:(=MpͿè1!Wͳ:] ʯ\