News:

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

Tools to convert to IDEAL mode?

Started by BogdanOntanu, January 24, 2006, 09:52:24 PM

Previous topic - Next topic

BogdanOntanu

Hi all,

Anybody is aware of any tool that could automatically convert TASM/MASM "normal" syntax into IDEAL mode syntax?

Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro

MusicalMike

Could someone tell me what Ideal mode is?

Vortex

QuoteTASM, Inpise's Borland Turbo Assembler, supports an alternative to MASM
emulation.  This is known as Ideal mode and provides several advantages
over MASM.  The key (questionable) disadvantage, of course, is that MASM
style assemblers cannot assemble Ideal mode programs.

http://www.faqs.org/faqs/assembly-language/x86/borland/section-3.html

MusicalMike

The syntax specifications in that text vaguely remind me of the syntax for an assembler I like to use in linux (masm is not available for linux) called FASM. <scratches head> ::)

Vortex

Mike,

Did you try using Masm with help of an emulator on the Linux platform?

MusicalMike

I am sort of new to linux, and am still trying to get solid with the basics, but when i asked my brother (who is well versed in linux and other unix derivitaves) he said that most emulators don't work that well. What would be really nice is if POASM was implimented for linux, but I don't believe it is. Anyway, if you know of an emulator that you know works, feel free to post a link, and I will check it out. (Must be free AND fully functional)

Vortex

Mike,

If I remember well, the emulator was wine and Agner Fog mentioned in one his papers how to use wine with Masm.

Vortex


BogdanOntanu

However my original question was not related to moving into Linus and using natively FASM or MASM into an emulator.

I have huge projects like SolarOS or HostileEncounter or Sol_ASM and i was thinking to make my own assembler compatible with IDEAL mode and use LZASM until i finish my  own assembler.

Unfortunately chnaging huge projects from MASM/TASM style into IDEAL mode style syntax is a lot of work...
and i was wondering IF i can find some kind of tools to automate the process...a little

So basically it would also be nice to convert back from IDEAL to MASM or TASM mode :D
Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro

dsouza123

Olly dbg is able to switch the assembly syntax in realtime
between three different formats MASM, Ideal, HLA.

Some Olly dbg code is available at the site with the debugger.
http://www.ollydbg.de/

zooba

After having a quick play with Olly, it seems the only difference is in how memory pointers are expressed:

MASM:
mov eax, DWORD PTR [abc]
Ideal:
mov eax, [DWORD abc]

This modification can be done with a simple find/replace (assuming you've been consistent with it in the first place). Try looking for a multiple file find/replace tool (I use Windows Grep). :U

u

I'm not sure, but could MASM listing help?
ml.exe /Fl[file] Generate listing
Please use a smaller graphic in your signature.

BogdanOntanu

Yes i was aware tha some parts of it could be done by am extensive search and replace.
Bu i am concerned with issues more like:

String_Len PROC
ARG @@string_ptr:dword
...
ENDP

Keywords like PROC or MACRO or STRUC that are supposet to be the first one on a line in IDEAL mode.
So I would need a tool that will reverse <whatever_name> PROC --> PROC <whatever_name>

Well, it sould not be hard to code, or i can use a Perl script  ;)
I was just fishing for an easy prefabricated solution ... shame on me :D


Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro