Results 1 to 3 of 3
Hi,
I have a question regarding finding the address of the next instruction and making an intersegment jump to it.
Binary FILE 1 (loaded at 0x1000:0x0000)
_____________
1. first instruction
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-13-2009 #1Just Joined!
- Join Date
- Jan 2009
- Posts
- 12
intersegment jump
Hi,
I have a question regarding finding the address of the next instruction and making an intersegment jump to it.
Binary FILE 1 (loaded at 0x1000:0x0000)
_____________
1. first instruction
.
.
100. load a binary FILE 2 from floppy disk to 0x0500:0x0 and pass control to it
101. remaining instructions
.
.
200
_____________________________
Binary file 1 and file2 are in two different segments.
After the file2, which is loaded from the floppy, is executed, how can I pass the control back to file1 to execute the remaining instructions?
As of now, I am doing a 'blunt' jump in file 2 by manually finding the address of the instruction at line 101 of file1. However, this isn't flexible as I have to change the jump address in file2 everytime I add more instructions to file 1. As adding more instructions to file1 would transpose the address of the instructions following the line 100.
Could anyone enlighten me with a generic way.
I am just wondering how a scheduler retains the control back from the process after the process exits or its time slot expires.
Thanks in advance.
- 04-13-2009 #2
Are you running a intel/AMD chip? 32 - 64 bit ?
Make mine Arch Linux
- 04-14-2009 #3Just Joined!
- Join Date
- Jan 2009
- Posts
- 12
Hi,
I am using AMD Athlon 64 bit processor.
But I am operating in real mode.
So I guess it would just be a faster version of 8086 processor.
Thank you.


Reply With Quote
