# HG changeset patch # User boisy # Date 1025926295 0 # Node ID e42a6ba46d18ee8be177eb7729bb3ac3b0650fda # Parent 307e956c5124b20f56642916ded51f448f91a628 Initial import of tuneport.asm diff -r 307e956c5124 -r e42a6ba46d18 level1/cmds/makefile --- a/level1/cmds/makefile Sat Jul 06 02:57:08 2002 +0000 +++ b/level1/cmds/makefile Sat Jul 06 03:31:35 2002 +0000 @@ -3,7 +3,7 @@ DEPENDS = ./Makefile CMDS = asm attr backup binex build copy date del deldir dir display dump echo exbin free grfo ident iniz link list \ - load login makdir mdir mfree printerr procs pwd pxd rename save setime shell sleep tee unlink verify + load login makdir mdir mfree printerr procs pwd pxd rename save setime shell sleep tee tuneport unlink verify ALLOBJS = $(CMDS) all: $(ALLOBJS) diff -r 307e956c5124 -r e42a6ba46d18 level1/cmds/tuneport.asm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/level1/cmds/tuneport.asm Sat Jul 06 03:31:35 2002 +0000 @@ -0,0 +1,456 @@ +******************************************************************** +* TunePort - Tune Printer Port +* +* $Id$ +* +* Ed. Comments Who YY/MM/DD +* ------------------------------------------------------------------ +* 7 Original Tandy/Microware version BGP 02/04/06 + + nam TunePort + ttl Tune Printer Port + +* Disassembled 02/07/05 21:58:02 by Disasm v1.6 (C) 1988 by RML + + ifp1 + use os9defs + use scfdefs + endc + +tylg set Prgrm+Objct +atrv set ReEnt+rev +rev set $01 + + mod eom,name,tylg,atrv,start,size +u0000 rmb 1 +u0001 rmb 1 +u0002 rmb 1 +u0003 rmb 2 +u0005 rmb 2 +u0007 rmb 2 +u0009 rmb 1 +u000A rmb 1 +u000B rmb 2 +u000D rmb 2 +u000F rmb 2 +u0011 rmb 1 +u0012 rmb 1 +u0013 rmb 3 +size equ . + +name fcs /TunePort/ + fcb $03 + +AdjPmpt fcb C$CR + fcb C$LF + fcc " TO ADJUST YOUR PORT ENTER A" + fcb C$CR + fcb C$LF + fcc "NEW VALUE FOR THE LOOP DELAY" + fcb C$CR + fcb C$LF + fcc "AFTER THE PROMPT AND CURRENT" + fcb C$CR + fcb C$LF + fcc "VALUE ARE GIVEN. HIT [ENTER]" + fcb C$CR + fcb C$LF + fcc "TO END." + fcb C$CR + fcb C$LF +PmptLen equ *-AdjPmpt + +DoneMsg fcb C$LF + fcb C$CR + fcb $20 + fcc "YOUR PORT IS NOW ADJUSTED FOR" + fcb C$CR + fcb C$LF + fcc "THE CURRENT BAUD RATE AND THE" + fcb C$CR + fcb C$LF + fcc "CRC OF THE MODULE HAS BEEN UP-" + fcb C$CR + fcb C$LF + fcc "DATED. TO MAKE THE CHANGE" + fcb C$CR + fcb C$LF + fcc "PERMANENT IN THE BOOT USE THE" + fcb C$CR + fcb C$LF + fcc "COBBLER OR OS9GEN UTILITIES" + fcb C$CR + fcb C$LF + fcc "OR THE -S OPTION OF TUNEPORT" + fcb C$CR + fcc "AT SYSTEM STARTUP" + fcb C$CR +DoneLen equ *-DoneMsg + +HelpMsg fcc "USE:TUNEPORT

[-OPT]" + fcb C$CR + fcb C$LF + fcc " ADJUST BAUD RATE DELAY ON" + fcb C$CR + fcb C$LF + fcc " SERIAL PORTS." + fcb C$CR + fcb C$LF + fcc "Opt: -S=VALUE TO SET LOOP DELAY" + fcb C$CR + fcb C$LF + fcc " FOR CURRENT BAUD VALUE" + fcb C$CR +HelpLen equ *-HelpMsg + +ErrMsg fcc "TUNEPORT: CURRENT BAUD RATE" + fcb C$CR + fcb C$LF + fcc "IS OUT OF RANGE" + fcb C$CR +ErrLen equ *-ErrMsg +L0241 fcb C$BELL + +TestNow fcb C$CR + fcc "NOW TESTING ....." +TestLen equ *-TestNow + +NewVMsg fcb C$CR + fcc "NEW VALUE = " +NewVLen equ *-NewVMsg + +CurVMsg fcb C$LF + fcb C$CR + fcb C$LF + fcc "CURRENT VALUE = " +CurVLen equ *-CurVMsg + +TestMsg fcc " This is a test line for the TunePort utility" + fcb C$CR +TMsgLen equ *-TestMsg + +start stu AdjPmpt,pcr + ldy #PmptLen + os9 I$Write + lbcs L03D7 +L0345 ldd DoneMsg,pcr + ldy #DoneLen + os9 I$Write + bcs L03E6 + lbsr L045E +L03D7 ldu ErrMsg,pcr + ldy #ErrLen + os9 I$Write + bcs L03E6 + clrb + bra L03E6 +L03FB lda #$02 + leax >HelpMsg,pcr + ldy #HelpLen + os9 I$Write + bcs L03E6 + clrb + bra L03E6 +L040D lda #$01 + leax >TestNow,pcr + ldy #TestLen + os9 I$Write + bcs L03E6 + lda TestMsg,pcr + ldy #TMsgLen + os9 I$WritLn + bcs L03E6 + ldx #$000A + os9 F$Sleep + rts +L0432 bsr L045E + lda #$01 + leax >NewVMsg,pcr + ldy #NewVLen + os9 I$Write + bcs L03E6 + rts +L0444 pshs y,x,b,a + lda #$02 + leax >L0241,pcr + ldy #$0001 + os9 I$Write + puls pc,y,x,b,a +L0455 ldb ,x+ + cmpb #C$SPAC + beq L0455 + leax -$01,x + rts +L045E pshs y,x,b,a + lda #$01 + leax >CurVMsg,pcr + ldy #CurVLen + os9 I$Write + lbcs L03E6 + ldx L04D0,pcr + leax