News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

jump dword

Started by lelejau, July 20, 2011, 06:14:46 AM

Previous topic - Next topic

lelejau

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"..  :(
Learning assembly :)

lelejau

never mind, got it...


XX DWORD 0054d170h
call XX

:U
Learning assembly :)

bomz


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]