News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

TASM to MASM conversion problem

Started by karlzorn, July 30, 2013, 11:45:24 PM

Previous topic - Next topic

karlzorn

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

jj2007

Karl,
why don't you use standard jumps?

jmp @F
jbe MyLabel
...

Much easier :t

japheth

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


jj2007

#3
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
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