The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: lelejau on July 20, 2011, 06:14:46 AM

Title: jump dword
Post by: lelejau on July 20, 2011, 06:14:46 AM
How can I do this:

JMP DWORD PTR DS:[offset]


in this offset I'd have the real offset that I want to jump to, like:

1234 in the offset it'd be 3412.... you know what I mean? but masm keeps telling me error "invalid instruction operands"..  :(
Title: Re: jump dword
Post by: lelejau on July 20, 2011, 06:20:34 AM
never mind, got it...


XX DWORD 0054d170h
call XX

:U
Title: Re: jump dword
Post by: bomz on July 20, 2011, 06:58:22 AM
(http://smiles.kolobok.us/light_skin/tender.gif)
call need stack
Tasm resident program. Mouse Driver
QuoteInt_10h_proc:
       pushf

       cmp ah, 0
       jne Video_mode_not_change   
       mov cs:[Video_mode], al
       mov cs:[Mouse_Status], 2h
Video_mode_not_change:
       cmp ah, 05h
       jne Active_Page_Not_Change
       mov cs:[Active_Page], al
Active_Page_Not_Change:
       popf
      jmp dword ptr cs:[Int_10h_vect]