Mercurial > hg > Members > kono > nitros9-code
view level1/cmds/deiniz.asm @ 2811:611715587834 lwtools-port
Updated rules.mak and level1/coco1/bootfiles/makefile
Updated the rules.mak file to remove the format entire image related
to drivewire server disk images.
Updated level1/coco1/bootfiles/makefile to create 3 new bootfile images.
These images are stripped down to just the common files needed
for vovdg games on os9 level 1. These bootfiles are for becker, dw,
and arduino. Also corrected a duplicated dd descriptor when building
some bootfiles that had both floppy_40d, floppy_80d, RBDW, RBBECKER,
and RBARDUINO. Removed the dd descriptor from each of these sections
and made it where the dd descriptor for the specific section was added
in the main bootfile list.
author | David Ladd <drencor-xeen@users.sf.net> |
---|---|
date | Mon, 11 Feb 2013 20:16:24 -0600 |
parents | 84ea83668304 |
children |
line wrap: on
line source
******************************************************************** * DeIniz - Denitialize a device * * $Id$ * * Edt/Rev YYYY/MM/DD Modified by * Comment * ------------------------------------------------------------------ * 3 ????/??/?? * From Tandy OS-9 Level Two VR 02.00.01. * * 4 2003/01/13 Boisy G. Pitre * Tightened code, changed behavior slightly. nam DeIniz ttl Deinitialize a device * Disassembled 98/09/10 22:56:37 by Disasm v1.6 (C) 1988 by RML ifp1 use defsfile endc linebsiz equ 80 tylg set Prgrm+Objct atrv set ReEnt+rev rev set $00 edition set 4 mod eom,name,tylg,atrv,start,size org 0 rbuffer rmb linebsiz+1 stack rmb 64 size equ . name fcs /DeIniz/ fcb edition start lda ,x get command line char cmpa #C$CR CR? beq ReadnDnz branch if so DenizDev lda ,x+ cmpa #C$CR beq ExitOk cmpa #C$SPAC beq DenizDev cmpa #PDELIM pathlist? beq DetachIt leax -1,x else back up X DetachIt clra os9 I$Attach attach to the device at X bcs Exit branch if error os9 I$Detach now detatch from the device at U bcs Exit branch if error os9 I$Detach and detatch again from the device at U bcs Exit branch if error bra DenizDev ReadnDnz clra from stdin leax rbuffer,u point to read buffer ldy #linebsiz get linebsiz bytes os9 I$ReadLn read it! bcc DenizDev branch if error cmpb #E$EOF end of file? bne Exit branch if not ExitOk clrb Exit os9 F$Exit emod eom equ * end