[Solved] convert 16-bit c++ inline __asm to 32-bit and remove far pointer [closed]

This an ancient DOS Protected Mode Interface system call to set a protected mode interrupt vector. See eg http://www.delorie.com/djgpp/doc/dpmi/api/310205.html. The compiler was probably DJGPP. Porting this to a different OS and/or runtime system will require a redesign from scratch to reimplement whatever functionality the interrupt handlers provided under DPMI. Good luck to you with that. … Read more

[Solved] Jumping back 1000 lines

In x86 you don’t need a cascading sequence of jumps, since jmp can jump over the whole segment. Just a conditional jump like jne has a limited range. So you can change an errorneous conditional jump to a combination of an unconditional near jump and a conditional short jump: As an example, change .MODEL small … Read more