Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bits 16
- org 0x7c00
- ; You can do a indirect jump to a FAR PTR specified as a memory operand
- ; like this:
- jmp far [farptr]
- ; or this (note pushing an immediate can only be done on 80186+)
- ; on an 8086 you can MOV a value to a register and then push the register
- ; push 0x0000 ; Push a segment
- ; push 0x7ea5 ; Push an offset
- ; retf ; FAR Return
- ; ... other code and data
- farptr:
- dw 0x7ea5 ; FAR PTR offset
- dw 0x0000 ; FAR PTR segment
- ; or
- ; dd 0x00007ea5
- times 510-($-$$) db 0x00
- dw 0xaa55
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement