Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DEF SEG = 0
#1
When I call that, what happens when let's say I call
Peek(1024)? Where


Am I peeking at DATA + 1024?

thanks!!!
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#2
It's just segment 0. So you are peeking at 0000:0400. (Which happens to be the start of the BIOS Data Area.)
Reply
#3
So I could read the BIOS by peeking? Yeeehaaaa!!!!

Do you have some info on what is inside the bios that I could read?
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#4
What the hell are you doing now? :lol:
Reply
#5
Well, the actual BIOS code is in segments F000-FFFF, but here's the info you can access from the BDA: http://www.phatcode.net/res/236/files/ht..._area.html
Reply
#6
Quote:What the hell are you doing now? :lol:

Oldskool crap. :*(

But I get pais for this. :*) hehehehehehe
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#7
You should note that much of the BIOS data area is provided for backwards compatibility. Most new BIOS code and most emulator code simply updates the BIOS data area, but does actually use it the way earlier code did, so some tricks like poking character into the type ahead buffer don't work the way you might hope.
Reply
#8
While it's true that many entries in the BDA are no longer relevant, I have yet to see a BIOS or emulator that ignores the keyboard buffer in the BDA. This would break a ton of existing programs. Even NTVDM supports poking keystrokes to the buffer.
Reply
#9
Have you tried it recently? You can read the buffer, but in my last experiment with NTVDM, anything I poked into the buffer (along with adjusting the head and tail) had no effect on BIOS keyboard services. If you have an example that works, I'd like to see it.
Reply
#10
http://forum.qbasicnews.com/viewtopic.php?t=8632#98103
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)