home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
assemblr
/
library
/
sampler0
/
pfk.asm
< prev
next >
Wrap
Assembly Source File
|
1979-12-31
|
7KB
|
136 lines
PAGE ,132
TITLE PF keys redefinition program
NAME PFKEYS
;
;Author : Rick Mallinak
;
;Date : Version 1.0 March, 1982
; 1.1 April, 1982
; 2.0 May, 1983
; 2.1 May, 1983 - JAC * 40 Keys
; 2.3 Nov, 1983 - Hard disk /Subdirectory support
;
PFK SEGMENT PUBLIC 'CODE'
ASSUME CS:PFK,DS:PFK,ES:PFK,SS:PFK
ORG 5CH
FCB DB 1 DUP (?) ;Default FCB (contains command arg)
ORG 100H ;PF keys redefinition program
MAINPGM PROC NEAR
MOV SI,OFFSET FCB ;Point to FCB in Program Segment Prefix
CLD
CMP BYTE PTR [SI+1],'H' ;Check for 'help' request
JNE SETPFK
MOV DX,OFFSET HELP ;Point to 'help' screen
MOV AH,9 ;Set Register AH to DOS Print String Function
INT 21H ;DOS Function Call
RET
SETPFK: MOV DX,OFFSET KEYS ;Point Register DX to Key definition
MOV AH,9 ;Set Register AH to DOS Print String Function
INT 21H ;DOS Function Call
RET
MAINPGM ENDP
HELP DB 40 DUP(205)
DB 203
DB 38 DUP(205)
DB 0DH,0AH
DB 'F-01 : Copy next character ',186
DB ' F-21 : CLS Ctrl F-01',0DH,0AH
DB 'F-02 : Copy all char. up to spec. char. ',186
DB ' F-22 : BEEP Ctrl F-02',0DH,0AH
DB 'F-03 : Copy all remaining characters ',186
DB ' F-23 : PM Ctrl F-03',0DH,0AH
DB 'F-04 : Skip over all char to spec. char ',186
DB ' F-24 : BDS MX BASICA Ctrl F-04',0DH,0AH
DB 'F-05 : Accept line for cont. editing ',186
DB ' F-25 : MODE LPT1: 80,6 Ctrl F-05',0DH,0AH
DB 'F-06 : CTRL-Z (eof) ',186
DB ' F-26 : MODE LPT1: 132,6 Ctrl F-06',0DH,0AH
DB 'F-07 : SD E: ',186
DB ' F-27 : TREE /F>prn Ctrl F-07',0DH,0AH
DB 'F-08 : SPFPC D:\ ',186
DB ' F-28 : PATH Ctrl F-08',0DH,0AH
DB 'F-09 : spfpc D:\ ',186
DB ' F-29 : COPY A:*.* B:*.* Ctrl F-09',0DH,0AH
DB 'F-10 : PM__ ',186
DB ' F-30 : COPY B:*.* A:*.* Ctrl F-10',0DH,0AH
DB 40 DUP(196)
DB 215
DB 38 DUP(196)
DB 0DH,0AH
DB 'F-11 : PARK Shift F-01 ',186
DB ' F-31 : CD \UT Alt F-01',0DH,0AH
DB 'F-12 : FULIST /Q/SN/M678 Shift F-02 ',186
DB ' F-32 : CD \TP Alt F-02',0DH,0AH
DB 'F-13 : VERIFY ON Shift F-03 ',186
DB ' F-33 : CD \WP Alt F-03',0DH,0AH
DB 'F-14 : VERIFY OFF Shift F-04 ',186
DB ' F-34 : CD \ Alt F-04',0DH,0AH
DB 'F-15 : CD \asm Shift F-05 ',186
DB ' F-35 : E: Alt F-05',0DH,0AH
DB 'F-16 : CD \bas Shift F-06 ',186
DB ' F-36 : F: Alt F-06',0DH,0AH
DB 'F-17 : CD \UTEXE Shift F-07 ',186
DB ' F-37 : C: Alt F-07',0DH,0AH
DB 'F-18 : CD \UTCOM Shift F-08 ',186
DB ' F-38 : D: Alt F-08',0DH,0AH
DB 'F-19 : CD \db Shift F-09 ',186
DB ' F-39 : A: Alt F-09',0DH,0AH
DB 'F-20 : CD \rbbs Shift F-10 ',186
DB ' F-40 : B: Alt F-10',0DH,0AH
DB 40 DUP(205)
DB 202
DB 38 DUP(205)
DB 0DH,0AH
DB '$'
KEYS db 27,'[0;131;"copy con: lpt1:";13;12;13;26;13p' ;page
; Shift keys
DB 27,'[0;84;"PARK";13p' ;Shift-PF-01
DB 27,'[0;85;"FULIST /Q/SN/M678";13p' ;Shift-PF-02
DB 27,'[0;86;"VERIFY ON";13p' ;Shift-PF-03
DB 27,'[0;87;"VERIFY OFF";13p' ;Shift-PF-04
DB 27,'[0;88;"CD \asm ";13p' ;Shift-PF-05
DB 27,'[0;89;"CD \bas ";13p' ;Shift-PF-06
DB 27,'[0;90;"CD \UTEXE";13p' ;Shift-PF-07
DB 27,'[0;91;"CD \UTCOM";13p' ;Shift-PF-08
DB 27,'[0;92;"CD \db ";13p' ;Shift-PF-09
DB 27,'[0;93;"CD \rbbs ";13p' ;Shift-PF-10
; CTRL keys
DB 27,'[0;94;"CLS";13p' ;Ctrl-PF-01
DB 27,'[0;95;"BEEP";13p' ;Ctrl-PF-02
DB 27,'[0;96;"PM ";32p' ;Ctrl-PF-03
DB 27,'[0;97;"BDS MX BASICA ";13p' ;Ctrl-PF-04
DB 27,'[0;98;"MODE LPT1: 80,6";13p' ;Ctrl-PF-05
DB 27,'[0;99;"MODE LPT1: 132,6";13p' ;Ctrl-PF-06
DB 27,'[0;100;"TREE /F>PRN";13p' ;Ctrl-PF-07
DB 27,'[0;101;"PATH ";13p' ;Ctrl-PF-08
DB 27,'[0;102;"COPY A:*.* B:*.";42p' ;Ctrl-PF-09
DB 27,'[0;103;"COPY B:*.* A:*.";42p' ;Ctrl-PF-10
; ALT keys
DB 27,'[0;104;"CD \UT";13p' ;Alt-PF-01
DB 27,'[0;105;"CD \TP";13p' ;Alt-PF-02
DB 27,'[0;106;"CD \WP";13p' ;Alt-PF-03
DB 27,'[0;107;"CD \";13p' ;Alt-PF-04
DB 27,'[0;108;"E:";13p' ;Alt-PF-05
DB 27,'[0;109;"F:";13p' ;Alt-PF-06
DB 27,'[0;110;"C:";13p' ;Alt-PF-07
DB 27,'[0;111;"D:";13p' ;Alt-PF-08
DB 27,'[0;112;"A:";13p' ;Alt-PF-09
DB 27,'[0;113;"B:";13p' ;Alt-PF-10
; MAIN keys
; DB 27,'[0;104;"CD \UT";13p' ; * -PF-01
; DB 27,'[0;105;"CD \TP";13p' ; * -PF-02
; DB 27,'[0;106;"CD \WP";13p' ; * -PF-03
; DB 27,'[0;107;"CD \";13p' ; * -PF-04
; DB 27,'[0;108;"E:";13p' ; * -PF-05
; DB 27,'[0;109;"F:";13p' ; * -PF-06
; >>>> KEYS 1 - 6 LEFT UNDISTURBED <<<<< ;
;
DB 27,'[0;65;"SD E:";13p' ; * -PF-07
DB 27,'[0;66;"SPFPC D:\ ";13p' ; * -PF-08
DB 27,'[0;67;"SPFPC D:\ ";13p' ; * -PF-09
DB 27,'[0;68;"PM ";20p' ; * -PF-10
DB '$'
KEYLEN EQU $-KEYS
PFK ENDS
END MAINPGM