home *** CD-ROM | disk | FTP | other *** search
- 066010303050000132002006006010000
- 11
- 2#1
- F0110000001
- 9[....◆....◆....◆....◆....◆....◆....◆....◆....◆....◆....◆....◆...]0110
- ÇPRINTTODISKaccessory
- Version1.0
-
- UsersGuideAndDescriptionOfItsOperation
-
- 1.WhatisPRTODISK.ACC?
-
- PRTODISK.ACCisashortaccessory,whichallowsyouto
- redirectprinting,practicallyfromallprograms,fromaprinter
- toadiskfile.Allotherfunctionsoftherunningprogramremain
- withoutanychange.Forexample,printercontrolcharactersare
- notchangedandthereforeispossibletousePRTODISKforany
- printer.
-
-
- 2.ForwhichpurposeisPRTODISKsuitable?
-
- Firstofallfortheownprintingtothefile.Thenitis
- veryeasytorealizeanytextorprintdocumentathomeandthe
- ownprintingisdonelaterelsewhere.Thismaybeadvantageous
- eitherincaseyouhavenoprinterorwhenyoudemandbetter
- qualityoftheprint(forexampleonalaserprinter,whichyou
- probablyhaven'tathome).
- TheothercaseinwhichyoucantakeadvantageofPRTODISK
- issuchsituationwhenyouwanttodosomechangesintheready
- printfilelaterandwithoutnecessitytoprintthisdocument
- again.Youcansimplymodifytheprintfilebyatexteditorand
- thenyoucanprintitdirectly.
- PRTODISKisalsotheonlyhelpincaseyourprinterisnot
- compatiblewithsomeworldstandard.Insuchcaseitisnot
- possibletousetheprintmodeofprofessionalprogramsbecause
- youhavenotthecorrespondingprinterdriver.Butwhenyouhave
- PRTODISKyouarelucky.Youmayprintafiletoadiskusingsome
- standarddriverandforprintingonyournon-standardprinteryou
- canuseasimpleprintprogramwhichprovidesexchangeofcontrol
- charactersforcodeswhichusesyourprinter.
-
- 3.HowtousePRTODISK?
-
- Itisveryeasy.Copytheaccessorytotherootdirectory
- ofyourbootdisk(thesamewaylikeeveryotheraccessory).
- Afterloadingtheprogramfromwhichyouwanttoprintand,of
- course,alsoyourdocument,requiredfontsetc.Justbefore
- printingyoucallPRTODISKfromtheaccessorymenuusingmouse
- andchooseOPEN.Afterenteringthefilenamestartprinting.
- ImmediatelyafterprintingisdoneyouagaincallPRTODISKand
- chooseCLOSE.Andsothewholeprintingtodiskisover.
-
- 4.Well.MustItakeespeciallycareaboutanything?
-
- Yes,itisverygoodtofindoutifyouhaveenoughfree
- spaceonthefloppydisktowhichyouwanttoprint.Thegraphic
- modeoutputsareusuallyverybigandfull-pagegraphicoutputs
- forlaserprintershasuptoonemegabyteandyoumustcalculate
- Çwiththisfact.
- Itisalsoveryimportanttoreducetominimumthetimein
- whichisactiveprintingtoafile(seebelow).Duringthe
- printingtothefile(i.e.printfileisopened)isnotpermitted
- tostartanyprogramorexitit(theaccessorydetectssuchcase
- andRESETisonlypossiblewaytocontinue).
- Payattentionthatduringprintingtoafileyourprinter
- mustbeswitched-off(orbetterdisconnected).Ifyoudon'twant
- todisconnectorswitch-offtheprinteritissuitabletoswitch
- ittotheOFF-LINEmode.
- NextImustnoteoneimportantfeaturesofPRTODISK.The
- majorityofprogramsforSTcomputersdoesnotusethesystem
- serviceforprintingoutputbutcontrolsdirectlyappropriate
- integratedcircuitstoobtainfasterprinting.Thereforeitis
- notsimple"tocatch"allwhattheprogramssendtothe
- printer becauseincorrectaccessusedinsomeprogramsdoesnot
- allowit.ThemethodsusedinPRTODISKarefromthispointof
- viewalsoincorrectaccordingtoSToperatingsystem.Therefore
- theauthordoesnotguaranteethefaultlessfunctionofthe
- accessoryPRTODISKwithallvariousprogramsandprinterdrivers.
- Authorrecommendstotestallonadisktowhichyoucopyall
- necessarybeforestartingtousePRTODISK.Authorisnot
- responsibleforeventualdamagesmadethroughunsuitableuseof
- theaccessoryPRTODISK.
-
-
- 5.HowdoesPRTODISKoperate?
-
- ThispartisintendedformoreadvancedSTuserswhoalready
- knowsomethingaboutitsoperatingsystemTOS.Afterinstalling
- tothememory,inboottime,PRTODISKdoesnotdoanythingelse
- thanitiswaitingtoitsactivationfromtheaccessorymenu.It
- doesnotchangeanysystemvectors,interruptionetc.Theother
- situationcomesinthetimewhenprintingtothefileis
- activated(i.e.aftertheprintfileisopened).Inthistime
- PRTODISKis"hanged"ontheoperatingsystemtocatchallwhat
- issenttoaprinter.Thistimeisalittlebitdangerousforthe
- correctfunctionofthecomputerincasethattherunningprogram
- hasaveryincorrectbehaviorbecausethesystemvectorsare
- overwritten.Thereforeyoushouldtrytominimizethisdangerous
- time.Thementioned"hanging"tothesystemisrealizedinthe
- followingthreelevels:
- 1.Thesystemlevel.ThisisdonebyredirectingofGEMDOS
- andBIOSvectors.InthismodePRTODISKcatchallwhatissent
- toaprinterbyTOS.ThismethodiscleanüÇfromthepointofview
- ofaprogrammerbutitisnotoftenusefulbecausethemajority
- ofSTprogramsdoesnotusethismode(seeabove).
-
- 2.Thehardwarelevel.Itprovidesprintingfromprograms
- whichcontroldirectlySThardware.ForPRTODISKauthorproposed
- severalmethodsforthedetectionofanirregularaccessto
- hardwareregistersbutnoneofthesemethodsisperfectandwell
- usefulinallcases.ThemethodusedinPRTODISKoperatesthe
- followingway:
- Ç -ifsomeprogramattemptstoswitchtheprocessorto
- theSUPERVISORmodethedesiredswitchingisnotrealized
- andtheprocessorwillstayintheUSERmode.
- -duringtheprogramaccesstothecomputerhardware
- theBUSERRORsignalwillbegenerated(processorisinUSER
- mode!)whichcausesthejumptoPRTODISK.Thereisprovided
- storingofimportantdataandthentheTRACEmodeis
- activatedandtheinstruction,whichisprovidingI/O
- operation,isemulatedintheSUPERVISORmode.Asthennext
- thestoringofthedatatotheprintfileisdone(ofcourse
- onlyinsuchcaseifthetracedinstructionhassomethingto
- dowiththeoutputtoaprinter).PRTODISKalsomusttake
- careaboutBUSYsignal.Theprogrammustthinkthatthe
- printerisREADYwhiletherealityisanother.
- -PRTODISKmustalsotakecareaboutalltriesof
- executingtheotherprivilegedinstructions.Thenext
- problemtodealwithissupervisorstackbecauseprocessor
- isintheUSERmodeandnormallyusestheuserstack.
- -FrompreviousinformationitisclearthatPRTODISK
- changetheBUSERROR,TRACEandPRIVILEGVIOLATIONvector.
-
- 3.Interruptlevel.Itisclearthatallprivileg
- instructionsandallinstructionswithaccesstohardware
- registersareemulatedbyPRTODISK.Thereforethetimetakenfor
- printingismuchlonger.SoauthorofPRTODISKinventedthethird
- methodofprintingtofile.Thismethodiseffectiveandcorrect
- fromtheTOS'spointofview.Unfortunatelythismethodusesa
- littlehardwaresupplementwhichispluggedintotheCENTRONICS
- port.Withmentionedsupplementitispossibletogenerate
- interrupt(viaMFP)eachtimethebyteissenttotheCENTRONICS
- port.Theinterrupthandlerprovidessafestoringofthatbyte.
- Mentionedmethodissoftwarecleanandthereisnodangerouspart
- likeinmethodusedsoftwareemulation.Butthisisnotuniversal
- becausethereisonecriticalpoint-interrupt.Whenprinter
- handlersetstheinterruptpriorityleveltoseven(whatsome
- programsdo)thentheincominginterruptcannotbeexecutedand
- PRTODISK,usingthismethod,isnotabletoprintanythingtoa
- file.
- Howeveritispossibletosaythatatleastoneofthe
- mentionedmethodsisusableforeachprogram.
- Authorknowsthatusedprincipleisnotquitecleanhowever
- itisonlypossibleprinciple.SuchsmallexcuseisthatPRTODISK
- putsbackallchangedvectorsandregistersinorderasifitwas
- noteverincomputer.
-
-
- 6.Isthereanypossibilityofconsultingmyproblems?
-
- Yes,itis.AuthorofPRTODISKisreadytohelptoall
- PRTODISKusers.Thereisnotsuchproblemthatcannotbesolved.
- Itisclearthatregisteredusershaverighttoobtainfree
- higherandhopefullybetterversions.Bythewayauthorsoon
- planstoreleasenewerversionofPRTODISKwithintegrated
- packer,whichsavesyourdiskspace,alongwithshortprinting
- ÇprogramsforSTandIBM PC.Thisprintingprogramtakespacked
- filefromPRTODISKandprintsittoaprinter.
-
- Anyquestiontoauthoraddressto:
- GeorgeLAMAC
- FIDONET2:420/14.0
- phone++42-2-842424
- address:JiriLamac
- Predborska8
- 18200Prague8
- Czechoslovakia
-
- Onthesameaddressthementionedhardwaresupplementis
- available.
-