Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

indirect far jmp in NASM (Developers)

posted by RayeR Homepage, CZ, 10.05.2012, 14:07

>
> jmp far [blah]
> blah: dw 100h,0
>


But this will load pointer from current CS:place_of_constant and I need to load the pointer from different segment (0). I know it's possible to do it via stack and use retf but the code is longer than my current hack with farjmp opcode placed just before the pointer and jumping to address-1. Just wanted to check if there's better/more clean way.

---
DOS gives me freedom to unlimited HW access.

 

Complete thread:

Back to the forum
Board view  Mix view
22760 Postings in 2121 Threads, 402 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum