News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

An easy question

Started by bogdanul2003, May 30, 2008, 12:37:39 PM

Previous topic - Next topic

bogdanul2003

I have a system using 386EX processor and it loads a program at address 0000:0800H and then it gets executed. To write the program that will get loaded I use MASM611. For a correct execution of the program do I have to write ORG 0800H at the beginning of my code? In the program I overwrite the interrupt vector with one of my procedures using offset directive. In order to make the offset directive to return the correct address of my procedure I have to use ORG 0800H ?

10x

PBrennick

For one thing, interrupt vectors should be treated in such a way that you need to make sure that you do not just trash the vector by overwriting its address. Your handler needs to do what it needs to do and then pass execution along the original chain.

Paul
The GeneSys Project is available from:
The Repository or My crappy website

MichaelW

Regarding the questions about using ORG 800h, with so little information it's hard to know, but assuming that you want the easiest solution I think the correct answers are probably yes and yes.
eschew obfuscation