Click to See Complete Forum and Search --> : how will find exact offset address by jump method


hitlar
September 6th, 2008, 08:44 AM
how will find exact offset address by jump method
in this jmp intseg:go method initseg place right value while go place wrong value.
how will find exact address with go label offset



BOOTSEG equ 0x07c0
INITSEG equ 0x9000

start:
mov ax, BOOTSEG
mov ds, ax
mov ax, INITSEG
mov es, ax

mov cx, 256
mov si, 0x100
sub si, si
sub di, di
rep
movsw

jmp INITSEG:go

go: mov ax, cs
mov ds, ax

hitlar
September 6th, 2008, 08:46 AM
above code written for nasm