flat assembler
Message board for the users of flat assembler.

Index > Windows > Accessing BIOS - for real or just an emulation?

Author
Thread Post new topic Reply to topic
StrenoJr



Joined: 13 Mar 2014
Posts: 22
Location: Slovakia
StrenoJr
Hi, I have a theoretical question.
When I try to access BIOS on Windows XP with this
Code:
org 0x0100 
use16

mov ah, 1
int 0x16    
the program reacts only if it is focused (typing directly to the window).
This makes me think that I am not accessing the BIOS directly, only some layer of windows which passes the keystrokes to my window.
Is this really just an emulation? Could you send me some documents on this or say something more?
Is there any way to bypass Windows and control BIOS (probably a bad question)?
Thanks experts!
Post 09 Apr 2014, 20:11
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17665
Location: In your JS exploiting you and your system
revolution
Look up NTVDM.

Protected OSes like XP won't give you real mode access. If it did then it wouldn't be a protected OS.
Post 09 Apr 2014, 20:14
View user's profile Send private message Visit poster's website Reply with quote
badc0de02



Joined: 25 Nov 2013
Posts: 216
Location: %x
badc0de02
so the real mode idt accesses only the bios functions there had windows set the idt for protected mode.
so in protected mode cant use windows the bios functions more.

idt=interrupt descriptor table

so ntvdm cant use the bios functions
and emulates a virtual bios.

ntvdm=Virtual DOS Machine

http://en.wikipedia.org/wiki/Virtual_DOS_machine
Post 09 Apr 2014, 21:51
View user's profile Send private message Reply with quote
badc0de02



Joined: 25 Nov 2013
Posts: 216
Location: %x
badc0de02
if you want a way to access hardware somehow then write a driver for windows xp
Post 09 Apr 2014, 22:21
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.