Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

keyb: new! memory scheme, easy TEST (Developers)

posted by Ninho E-mail, 22.05.2011, 19:10
(edited by Ninho on 22.05.2011, 20:45)

CM, All : I'm uploading a new test keyboard driver including completely revised memory management - putting an end to the (relative) memory waste when loaded low. Had to redesign from scratch since I can't lay my hands on old code of mine. Not a bad thing per se, and with the help of some aspirin...

For the TESTING COMFORT of non-French users, I made KBZERO.EXE a dummy which will NOT mess with your existing keyboard translations but otherwise behaves like the real thing and importantly will allow you, valued Testers, check memory management under the most varied circumstances...

Download : <http://www.rootshell.be/~ninho/KBTEST15.ZIP> 11,361 bytes

Test package includes :

1- ready made KBFR and KBZERO executables, v. 1.5

Use : {lh} (KBFR | KBZERO) {/F /U}

/F : suppresses int 2F resident hook, sparing 32 bytes (and prevents unloading)
/U : unload if possible

Upper memory is no more used automatically, instead loadhigh is permitted.

2- source assemblies KBINST2.ASM KBRES2.ASM KBFR.INC

Most new and hopefully interesting stuff in the KBINST2 module, installation part. I've left a lot of "int 3"s if you want to fast-forward in a debugger.

Additional notes for the valiant who would "make" from sources :

- if building the "dummy", set ?KBZERO = TRUE in "include" file,
otherwise (to build the French kb) : ?KBZERO= FALSE

- assemble with MASM (I used 6.15) : ml -c kbinst2.asm ^ ml -c kbres2.asm

Under true DOS, must provide your DPMI server (Japh's e.g. as: DPMILD32 masm -c ....)

- link, using your favored OMF linker (I used tlink.exe).
The important is to present the objects in the following order, imperative! (opposite to the order required for linking previous versions!)
tlink KBINST2+KBRES2, my_keyb.exe

- optional bit of hokus-pokus to adjust and shrink the header of the resulting EXE (left out for lack of room in the margins of this article).

Cheers, have Fun !

---
Ninho

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 241 users online (0 registered, 241 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum