I would like to execute the following commands in MASM:
jmp far PTR 0:61Dh
jmp far ptr 2000h:0
jb short near ptr 106h
The first two are producing error A2206: missing operator in expression
and the third, error A2028: expression must be a code address.
If anyone could advise as to how to make these functions work in MASM I would appreciate it.
Thanks
Karl,
why don't you use standard jumps?
jmp @F
jbe MyLabel
...
Much easier :t
Quote from: jj2007 on July 31, 2013, 04:09:58 AM
why don't you use standard jumps?
Much easier :t
Yes ... or just don't code in Assembly ... then there are no jumps at all ... and programming will become a child's play.
Quote
jmp far PTR 0:61Dh
Masm syntax doesn't allow to code the segment part of a far address as a numeric constant. You have to use AT-segments:
AT0000 segment AT 0000
org 61dh
lbl1:
AT0000 ends
jmp far PTR lbl1
Quote from: japheth on July 31, 2013, 05:47:35 PM
Yes ... or just don't code in Assembly ... then there are no jumps at all ... and programming will become a child's play.
Genau :t
Aber ich fuerchte, das zornige Karlchen wird sich davon nicht abhalten lassen. Er weigert sich einfach, die Forumsregeln zu lesen :icon_mrgreen:
QuoteUnityuip (http://www.hackforums.net//showthread.php?tid=3657312)
Prestige: 0
Posts: 6
Joined: May 2013
Reputation: 0
I would like to execute the following commands in MASM:
jmp far PTR 0:61Dh
jmp far ptr 2000h:0
jb short near ptr 106h
Karlchen is also very active at Hack Forums / Hacks, Exploits, and Various Discussions / Decompiling, Reverse Engineering, Disassembly, and Debugging / [ASM] 16 Bit Code (http://www.hackforums.net/showthread.php?tid=3572470&pid=33579651#pid33579651)