+ Reply to Thread
Results 1 to 2 of 2

Thread: How would I compute the address of the next instruction fetch?

  1. #1
    Level 15 - A Legend dawid's Avatar
    Joined
    Feb 2012
    Posts
    1,729

    How would I compute the address of the next instruction fetch?

    I'm not 100% sure, but I found this little gem on wikipedia for x86 assembly languages:

    There are some special combinations of segment registers and general registers that point to important addresses:
    CS:IP (CS is Code Segment, IP is Instruction Pointer) points to the address where the processor will fetch the next byte of code.

    So the next fetch would be at 0x014C15FE.

  2. Sponsors
    Super ModeratorPeeje's Avatar
    Joined
    Nov 2011
    Posts
    164
    Videos
    139

  3. #2
    Level 16 - Colossus dombroski's Avatar
    Joined
    Jan 2012
    Posts
    2,284
    In a ?classic? 8086 program, how would I compute the address of the next instruction fetch if IP = 15FE and CS = 014C.

    Any help would be welcome, including any websites that will help me to figure out how to do this problem.

    Thanks in advance.

+ Reply to Thread

Posting Permissions

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