Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8133843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:46:54+00:00 2026-06-06T09:46:54+00:00

I know I succeed in writing my code to that address using int 13h

  • 0

I know I succeed in writing my code to that address using int 13h because I can see it at that memory location. What I can’t do is jump there.

I put 0x1000 (three zeros there) into es and 0x0000 into bx and I know that [es:bx] means the address calculated by (es * 0x10) + bx which does equal 0x10000 (four zeros there). But eip, the instruction pointer, never does go there.

I’ve tried jmp [es:bx], jmp 0x1000:0x0000, and a bunch of other permutations that NASM doesn’t even accept.

My boot loader as it currently is (which still isn’t working) is here. I booted it up in Qemu and did a memsave on the first 50 bytes at 0x10000, opened it up with tweak, and saw my “kernel” code there (simple . But EIP still refuses to be 0x10000, or reach it and then hang where I want it, is what I mean). Full images of the situation here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T09:46:57+00:00Added an answer on June 6, 2026 at 9:46 am

    A far jump can’t use use a memory location just for the segment. Here are several ways you can do it:

    1) simple hardcoded address for both segment and offset.

    jmp 0x1000:0
    

    2) indirect jump using a full address:

    entry dw 0x0000 ; offset
          dw 0x1000 ; segment
    
    jmp far dword ptr [entry] ; far jump (syntax might differ)
    

    3) a far return

    push SYSADDR ; segment
    push 0       ; offset
    retf         ; far return
    

    A common trick used in DOS time was patching the intruction:

      mov ax, SYSADDR
      mov word ptr [myjump+3], ax
    myjump:
      jmp 0x0000:0x0000
    

    or using a part of it as a variable:

    myjump:
      db 0xEA           ; far jmp opcode 
      dw 0x0000         ; offset part
      SYSADDR dw 0x1000 ; segment part
    

    Disclaimer: all of the aboves come from memory and I might have gotten some parts wrong (e.g. the order of segment/offset was very confusing).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that this line of code will make the cell text-wrap: $objPHPExcel->getActiveSheet()->getStyle('D1')->getAlignment()->setWrapText(true); 'D1'
I know that I can hijack a form by showing a login form in
Surprisingly the code bellow will not succeed. int? n1 = null; int? n2 =
Know if it's possible to access the iPhone compass in Safari using JavaScript? I
I know it is possible to create classes/objects in Perl using the bless function
I know that Java have its own garbage collection, but sometimes I want to
I know that immutable objects always have the same state, the state in which
Using Casting null doesn't compile as inspiration, and from Eric Lippert's comment: That demonstrates
I know that nhibernate doesnt support nested transactions. Let's say that I got something
I would like to know if there is any framework that supports sound analyze

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.