hitlar
September 6th, 2008, 07:26
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
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