PDA

View Full Version : keyboard buffer location


earl wanser
12-05-2009, 06:06 PM
Hi everybody :)

Could somebody clue me into a solution for my little project.I am not a pro
programmer. About 10 or so years ago I wrote a gwbasic and Q basic program which was a completely functional programmable menu driven system.

It was like a books table of contents where every item is entered into the program with dos commands and then when selected it would take you right there. Similar to the old IBM fixed disk organizer (FDO)
It worked great on the old 286's and 386's running dos.

Then I walked away from computers and forgot everything. No worry about
competition here! lol

I know that i'm a dying breed in that I'm still playing around in dos and
writing dos programs while everyone else uses visual this and visual that.

Anyway I would like to know if on the newer computers if the keyboard buffer Is still at &H417 because I'm having difficulty with my pgup and pgdn and directional keys functioning on these new computers.
I downgraded my os to windows me and the computers that I'm using now are fairly new.
When I wrote code to peek into &H417 seg 0 all I get is 0's and pressing keyboard keys shows no change. This location did work 10 years ago! What happened? lol

Wells thanks for reading my little sob story and maybe someday when I can
find a good C++ tutorial I will make the switch.






well I figured out part of my problem..I told you I forgot everything.I used

the location seg 0 &H417 to control the keyboard locks. I still need to

figure out the pgup and pgdn and directional control issue.

oracleguy
12-06-2009, 08:04 AM
What language are you using now for this program?

Oh and btw, you can write programs like you described in C or C++ without any difficulty. You don't have to have a GUI. I was just working on a console based C++ program in Visual Studio earlier in fact.

I downgraded my os to windows me and the computers that I'm using now are fairly new.

That is one hell of a downgrade, why did you do that?

earl wanser
12-06-2009, 01:24 PM
Thanks for responding

I have found that when I wrote this program 10 years ago I had to have
noticed then that I had a problem getting the pgup and pgdn and the
directional keys to function in qbasic. But the exact same code worked
perfectly in gwbasic. I can see that I compensated for this by writing the
code in qbasic and then finalizing the project in gwbasic.

I now am using my fully functional program for some new projects that I need to get done which has got me back into programming 10 years later.

I just finished writing an Audacity stereo crash recovery tool which I needed
being that my Power company flicks the power off and on when I'm using
Audacity. It never fails. ???

Being that I will only be writing code for my little projects, I am sticking
with what I already know or shall I say what I did know and forgot.

So in answer to your question is that I'm back into programming but only
temporarily using qbasic until I run out of projects. Most of my projects are
in windows XP and I will be reinstalling that os when done with windows me.

One such project will to create a multiboot computer with a dos partition for
dos programming applications. Programming dos applications in windows XP does not work.
Another project will be to modify the Ultimate boot cd by adding my favorite
old dos programs for computer problem troubleshooting.

Again thanks for your time.