Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#229 Ctrl-Break bios support patch

open
nobody
None
5
2012-09-07
2010-05-11
Nikolay Nikolov
No

Patch makes the dosbox bios recognize the proper scancode sequence for Ctrl-Break and handle it the way real BIOSes handle it: by clearing the keyboard buffer, calling int 1Bh and adding a 0 word to the kbd buffer. Also requires this patch in order to work:

https://sourceforge.net/tracker/?func=detail&aid=2998931&group_id=52551&atid=467234

These 2 patches should make Ctrl-Break work inside a variety of DOS IDEs. I've tested it successfully with Turbo Pascal 7.0, 5.5, 3.02, 1.00 and Turbo C 2.01.

Discussion

  • updated patch to also set the ctrl-break flag at 40h:71h and added non-enhanced keyboard support for pause and ctrl-break (Pause is Ctrl-NumLock on non-enhanced keyboards; Break is Ctrl-ScrollLock)

     
  • another update (dosbox-bios-ctrlbreak-v3.patch): replaced CALLBACK_RunRealInt(0x1B) with a proper return callback, that calls int 1b