The text of a manual · part 26 of 28
PEN*KEY 6400 Computer Programmer's Reference Guide: Appendix A: Sample Configuration Files
Pages 209 to 216 of 234, from PEN*KEY 6400 Computer Programmer's Reference Guide
The original document is the PDF (1.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec 6400
Page 209
Appendix A
Sample Configuration Files "
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
This section contains sample configuration files that may be used on the PEN*KEY â 6400 Computer. Topic Summary Topic
Page
Sample AUTOEXEC.BAT file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Sample CONFIG.SYS file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Sample KEYREMAP.ASM file . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A-1 A-3 A-4
Sample AUTOEXEC.BAT The following code represents a typical example of an AUTOEXEC.BAT file. " NOTE:
With limited space between page margins, the “for %%i in (...) do if not exist ... goto PC” text has been split in this listing, which places part of the text on the next line, making the “for %%i in (...) do” statement appear to be incomplete. For a more true example, refer to the actual file in the Tool Kit. @echo off Echo PEN*KEY 6400 FLASH Bios elancfg /V1 /R1 /T2 /D4 /L25 /H1 for %%i in (net.cfg cdsvc1a.exe lsl.com r12pcm.com 64scn7b.exe wtppkt.exe cfglit.dat) DO if not exist %%i goto PC if exist 6418bios.exe goto GOT18BIOS if not exist 6400bios.exe goto PC if not exist fwp640h0.exe goto PC goto GOTEMUL :GOT18BIOS if not exist fwp640h4.exe goto PC
PEN*KEYâ 6400 Programmer’s Reference Guide
A-1
Page 210
APPENDIX A
"
Sample Configuration Files
:GOTEMUL delay ”Press 0 for C>” /500 if not errorlevel 1 goto PC misctsr –A –K –L –T –P0 if exist 6418bios.exe 6418bios if exist 6400bios.exe 6400bios 64scn7b cdsvc1a lsl r12pcm wtppkt if exist fwp640h4.exe fwp640h4 if exist fwp640h0.exe fwp640h0 goto EXIT :PC misctsr –A –K –L –T –P1 dosgas :EXIT
A-2
PEN*KEYâ 6400 Programmer’s Reference Guide
Page 211
APPENDIX A
"
Sample Configuration Files
Sample CONFIG.SYS The following code represents a typical example of a CONFIG.SYS file. break=on buffers=30 files=128 lastdrive=f stacks=9,256 device=c:\delay.exe device=c:\himem.sys /machine:2 dos=high device=c:\elanump.sys /X=C000,D000, D400, E400, E800, EC00 dos=umb devicehigh=c:\elanapm.exe devicehigh=c:\nordospm.exe devicehigh=c:\clock.exe devicehigh=c:\64apmoem.exe shell=c:\command.com c:\ /e:512 /p
At a minimum, the following statements should be included: shell=c:\command.com c:\ /p device=c:\elanapm.exe device=c:\nordospm.exe devicehigh=c:\64apmoem.exe
PEN*KEYâ 6400 Programmer’s Reference Guide
A-3
Page 212
APPENDIX A
"
Sample Configuration Files
Sample KEYREMAP.ASM The following code represents a typical example of a key remapping file that could be modified, using keys that you want remapped. After you create your own, or modify the sample code below, to suit your remapping needs, then you would create an object file, using TASM, the Borland Turbo assembler, and convert it to an executable, using TLINK, the Borland Turbo linker. If you are more familiar with another product, it may only require minor changes to the source code, to be compatible with your assembler program. The example below was created for the Borland assembler program. Page 70,132 TITLE KBSV ;########################################################## ;-----------------------------------------------------------; Copyright (c) 1997 NORAND International UK ; ; Program KEYREMAP.ASM ; ; Jörgen Westman 1997-02-27 ; ; Translates US 6400 keys to Swedish Keys ; ; Example of how to translate keys on the 6400 keyboard ; to country specific keys ; This example is doing a US to Swedish translation ; ; | --> å ; { --> ä ; } --> ö ; \ --> Å ; [ --> Ä ; [ --> Ö ; ; Compile with TASM (Borland Turbo Assembler) ; Link with TLINK (Borland Turbo Linker) ; Example: ; tasm kbsv /la ; tlink kbsv /t ; ;########################################################## .MODEL Small .CODE assume cs:_TEXT,ds:_TEXT org 100h A-4
PEN*KEYâ 6400 Programmer’s Reference Guide
Page 213
APPENDIX A
"
Sample Configuration Files start: intchk temp extkb jvec jmp db dw db dw dw begin 0 0 00h 0 0
; Marker for recognition if installed ; Temporary storage ; ’OR’ed with read mode for extended funcs ; Vector to original interrupt for wedging ; into
; Keyboard translate table of scan code plus character, ; followed by the new character ktrans: dw db dw db dw db dw db dw db dw db dw
2b7ch 86h 1a7bh 84h 1b7dh 94h 2b5ch 8fh 1a5bh 8eh 1b5dh 99h 0
; | –> å inter: push push push cmp jg mov and cmp jg mov add mov mov or push bp bx dx ah,11h quit bl,ah bl,0fh bl,1h quit bp,sp bp,0ah dx,[bp] bh,ah ah,cs:extkb dx
; Save base ; and bx registers ; ; Read of keyboard ; If not a read, jump to keyboard routine ;
pushf pop mov cmp dx [bp],dx al,0e0h
; Get the new flags ; and put them back on the stack ; The grey keys don’t have the prefix 0,n ; instead they have 0eh,n jne cmp je inter2 ah,0 inter2 call
; { –> ä ; } –> ö ; \ –> Å ; [ –> Ä ; ] –> Ö ; end marker
; Read of keyboard or status ? ; If not a read, jump to keyboard routine ; Get stack pointer
; Get calling function’s flag register ; Save the current mode ; Use extended keyboard version ; Push new flags which aren’t affected ; AKA pushf DWORD PTR cs:jvec ; Call keyboard routine as if it was ; an int
; Alt[224] gives 0eh,0 ; pass this back unchanged PEN*KEYâ 6400 Programmer’s Reference Guide
A-5
Page 214
APPENDIX A
"
Sample Configuration Files and or jnz mov bh,010h bh,bh inter2 al,0
; If we were called as extended read ; then pass this back unchanged ; Otherwise pass back as 0,n inter2: mov bx,offset ktrans
; The address of the translate table inter3: cmp jne mov jmp cs:[bx],ax inter4 al,cs:byte ptr[bx+2] inter5
; Compare scan code against table ; If not the same then loop ; Alter the key code ; and exit inter4: add cmp jne bx,3 cs:word ptr[bx],0 inter3
; Increment pointer to table for next ; If this is the last entry, then exit inter5: pop pop pop iret quit: pop pop pop jmp dx bx bp
; Exit from the read and ; and restore all registers dx bx bp DWORD PTR cs:[jvec]
; Go to original read routine and ; do not return back to here ; Restore base ; and bx registers ; Jump to original interrupt
;All code beyond this point is not preserved after exit ; and remains resident begin: push mov int push pop mov cmp jne pop ret
A-6 ds ax,3516h 21h es ds di,offset intchk byte ptr [di],2 intset ds
PEN*KEYâ 6400 Programmer’s Reference Guide
; Preserve data segment ; Interrupt address for read key routine ; interrogate
; Position of KBSV marker ; Is interrupt already present ; If not install it ; Restore data segment ; and return to DOS
Page 215
APPENDIX A intset: pop mov mov mov mov int mov mov shr shr shr shr inc int end ds jvec,bx jvec+2,es dx,offset inter ax,2516h 21h ax,3100h dx,offset begin dx,1 dx,1 dx,1 dx,1 dx 21h start
"
Sample Configuration Files
; Restore data segment ; Preserve old interrupt ; vector ; Install new interrupt ; vector ; Code for exit and remain resident ; Length of interrupt routine ; Convert to ; number ; of ; segments ; Segments+1 ; Exit and remain resident
PEN*KEYâ 6400 Programmer’s Reference Guide
A-7
Page 216
APPENDIX A
A-8
"
Sample Configuration Files
PEN*KEYâ 6400 Programmer’s Reference Guide