Stack Faults

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
srg

Re:Stack Faults

Post by srg »

I've come up with a snag

In order to get the code to work, I made the base address of the code segment 0x10000

This works but is not what I want, obvousely.

Anyway My Jump Code is:

Jmp 0x0008:ToHere
ToHere:

How do I add the extra 0x10000 to ToHere:?

I tried Jmp 0x0008:ToHere + 0x10000, but there was no difference! It just jumped to ToHere:

Thanks
srg

Re:Stack Faults

Post by srg »

Problem fixed is a perfectly adequate solution, my program moved it's self to segment 0, after moving the IVT to 0x2000. then jump to it ans alls fine!

Thanks for your help in helping the guide me to my solution.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Stack Faults

Post by Pype.Clicker »

srg wrote: It also doesn't work on the EXE file, which is a DOS EXE.

Or does it only work with .obj files (as the name would suggest :-[ )
objdump will only work with 32 bits objects files (usually called .o), not with pure "MS-DOS" executables. I dunno about WIN32 executable.
Post Reply