The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: asm_coder on May 05, 2010, 09:04:18 AM

Title: Reading/Writing strings
Post by: asm_coder on May 05, 2010, 09:04:18 AM
Hello again,

I want to ask is it possible if I can read and write strings of char,using by dealing directly with hardware in 32 bit protected mode,as I m reading some book of asm which I can read data using interrupt(int instruction),as that would produce page fault
in 32 bit and also I would like to dig deeper to know the information of how this is done,and my book doesn't mention anything about it.
I have also did some googling I have found reading/writing using INT instruction as well,I am not asking for how to do this I just want to know what some information about it/or maybe some reading material would be great.

asm_coder.
Title: Re: Reading/Writing strings
Post by: hutch-- on May 05, 2010, 09:08:46 AM
coder,

In normal user mode access in win32 (ring3) you can neither access the BIOS or use interrupts and if you try you get GP faults from trying it. Most of the data you need from the BIOS can be picked out of the registry but for normal security reasons in a protected mode OS you cannot normally access the BIOS settings.