Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    intersegment jump


    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

    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.

  2. #2
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Canada, Prince Edward Island
    Are you running a intel/AMD chip? 32 - 64 bit ?
    Make mine Arch Linux

  3. #3

    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.

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts