OFFCTRLCASMMPOFFCTRLCBASPOFFCTRLCCOM  POFFCTRLCDOC <P FREMEM EQU 8H OFFSET EQU 7 ORG 100H LHLD 1 MVI A,OFFSET ADD L MOV L,A XCHG LDAX D STA FREMEM+1 INX D LDAX D STA FREMEM+2 MVI A,0CDH STA FREMEM MVI A,0FEH STA FREMEM+3 MVI A,3H STA FREMEM+4 MVI A,0C2H STA FREMEM+5 MVI A,11H STA FREMEM+6 SUB A STA FREMEM+7 MVI A,97H STA FREMEM+8 MVI A,0C9H STA FREMEM+9 LHLD 1 MVI A,OFFSET ADD L MOV L,A LXI D,FREMEM MOV A,E MOV M,A INX H MOV A,D MOV M,A JMP 0 END 10 REM OFFCTRLC.BAS 20 REM JANUARY 1988 30 REM DISABLES "CONTROL C BREAK" 40 REM TO Enable after running 50 REM this routine POKE 11,201 100 ASSEMBLY = &H80 200 X = &HB 300 DATA &HFE,&H03,&HC2,&H11,&H00 310 DATA &H97,&HC9,&HFF 400 READ A 500 IF A = &HFF GOTO 900 600 POKE X,A 700 X=X+1 800 GOTO 400 900 POKE &H8,&HCD 1000 X=&H80 1100 DATA &H2A,&H01,&H00,&H3E,&H07 1110 DATA &H85,&H6F,&HEB,&H1A,&H32 1200 DATA &H09,&H00,&H13,&H1A,&H32 1210 DATA &H0A,&H00,&H2A,&H01,&H00 1300 DATA &H3E,&H07,&H85,&H6F,&H3E 1310 DATA &H08,&H77,&H23,&H3E,&H00 1320 DATA &H77,&HC9,&HFF 1400 READ A 1500 IF A = &HFF GOTO 1900 1600 POKE X,A 1700 X=X+1 1800 GOTO 1400 1900 CALL ASSEMBLY 2000 END *>o2 2 >2>2 >2 >2 >22>2>2*>o{w#zwOFFCTRLC.DOC JANUARY 1988 By Phil Pflager FOR: CPM/80 Written for Osborne1 but sould run on any computer using CPM/80. PURPOSE: Disables "control C" break. Used with programs which stop or lose data when ^C is hit accidentally. USE: OFFCTRLC.COM Run before loading Basic or the program you intend to use. OFFCTRLC.BAS Load Basic and run the routine. Control C will be disabled until you reset the computer or run the following routine: 10 POKE 11,201 20 END Offctrl.bas will not work with versions of Basic that relocate the bios jump table. DISADVANTAGES: Not possible to reset drives to change disks. However if you are running a program that logs onto another dirve by bitself this is not a problem. If you manage to get into an endless loop in a basic program it will be necessary to reset the computer to stop it.