Hi all, next month I'll must learn assembly for school. We'll use
TASM.
Happily, before the course started I bought the book Mastering Turbo
Assembler, in which the author, Tom Swan, expains assembly language
using examples written in Ideal mode.
However I discovered that my teacher want that we use MASM syntax.
Now, is there a way to use my book anyway? Are there some documents
which point out the differences between the two syntaxes?
Thanks in advance,
negroup
|
|
0
|
|
|
|
Reply
|
spamtrap
|
7/26/2005 11:00:51 PM |
|
Negroup wrote:
> Hi all, next month I'll must learn assembly for school. We'll use
> TASM.
> Happily, before the course started I bought the book Mastering Turbo
> Assembler, in which the author, Tom Swan, expains assembly language
> using examples written in Ideal mode.
> However I discovered that my teacher want that we use MASM syntax.
>
> Now, is there a way to use my book anyway?
I'm not familiar with the book, but almost certainly so. The
"principles" - the machine code we want to produce - is the same, no
matter what syntax we use. You might have to do a little "mental
translation" to use a book in one syntax with an assembler "or "mode")
with a different syntax. This might be an added level of confusion that
you don't need, but it can almost certainly be done.
> Are there some documents
> which point out the differences between the two syntaxes?
Since Tasm will do both "Masm compatible" and "Ideal mode" syntax, I
would expect that the Tasm Manual itself would have this information.
Have you looked there?
Best,
Frank
|
|
0
|
|
|
|
Reply
|
Frank
|
7/27/2005 3:43:45 PM
|
|
Hello,
Negroup <spamtrap@crayne.org> wrote:
> Now, is there a way to use my book anyway? Are there some documents
> which point out the differences between the two syntaxes?
Yes, the TASM handbook(s).
Regards,
Spiro.
--
Spiro R. Trikaliotis http://cbm4win.sf.net/
http://www.trikaliotis.net/ http://www.viceteam.org/
|
|
0
|
|
|
|
Reply
|
Spiro
|
7/27/2005 6:33:16 PM
|
|
There are some TASM and MASM faqs at
http://www.faqs.org/faqs/assembly-language/x86/
"Negroup" <spamtrap@crayne.org> wrote in message
news:2fdabf19.0507261321.70a0be4d@posting.google.com...
> Hi all, next month I'll must learn assembly for school. We'll use
> TASM.
> Happily, before the course started I bought the book Mastering Turbo
> Assembler, in which the author, Tom Swan, expains assembly language
> using examples written in Ideal mode.
> However I discovered that my teacher want that we use MASM syntax.
>
> Now, is there a way to use my book anyway? Are there some documents
> which point out the differences between the two syntaxes?
>
> Thanks in advance,
> negroup
>
|
|
0
|
|
|
|
Reply
|
Maarten
|
7/27/2005 6:33:28 PM
|
|
Negroup wrote:
> Hi all, next month I'll must learn assembly for school. We'll use
> TASM.
> Happily, before the course started I bought the book Mastering Turbo
> Assembler, in which the author, Tom Swan, expains assembly language
> using examples written in Ideal mode.
> However I discovered that my teacher want that we use MASM syntax.
>
> Now, is there a way to use my book anyway? Are there some documents
> which point out the differences between the two syntaxes?
>
> Thanks in advance,
> negroup
For most of the work you'll be doing, ideal mode won't have much
impact. The place where ideal mode is syntactically incompatible with
standard Intel syntax is in the area of directives such as procedure
declarations. For normal machine instructions, ideal mode makes you
write code thusly:
mov eax, [memoryAdrs]
whereas MASM generally specifies:
mov eax, memoryAdrs
However, MASM *allows* the former version as well, so this shouldn't be
a problem as long as your instructor simply wants you to produce code
that compiles under MASM.
You can find the MASM manuals here:
http://webster.cs.ucr.edu/AsmTools/MASM/index.html
And the 16-bit edition of my Art of Assembly book appears here (also
using MASM syntax):
http://webster.cs.ucr.edu/AoA/index.html
I believe I would be more concerned about whether your instructor is
teaching 16-bit DOS assembly language (which is obsolete) versus 32-bit
x86 assembly (assuming, of course, that this is the case).
Cheers,
Randy Hyde
|
|
0
|
|
|
|
Reply
|
randyhyde
|
7/27/2005 6:33:32 PM
|
|
|
4 Replies
302 Views
(page loaded in 0.045 seconds)
Similiar Articles: Learning Ideal VS MASM syntax - comp.lang.asm.x86Hi all, next month I'll must learn assembly for school. We'll use TASM. Happily, before the course started I bought the book Mastering Turbo Assembler... AT&T to Intel Syntax Translation - comp.lang.asm.x86Learning Ideal VS MASM syntax - comp.lang.asm.x86 AT&T to Intel Syntax Translation - comp.lang.asm.x86 Learning Ideal VS MASM syntax - comp.lang.asm.x86 AT&T to Intel ... Masm Manuals - comp.lang.asm.x86Learning Ideal VS MASM syntax - comp.lang.asm.x86 Masm Manuals - comp.lang.asm.x86 Learning Ideal VS MASM syntax - comp.lang.asm.x86 NEED HELP : MASM INSTRUCTIONS - comp ... MASM to NASM conversion? - comp.lang.asm.x86Learning Ideal VS MASM syntax - comp.lang.asm.x86 MASM to NASM conversion? - comp.lang.asm.x86 Learning Ideal VS MASM syntax - comp.lang.asm.x86 MASM to NASM conversion ... Need manual for AT&T 732 - comp.dcom.telecom.techLearning Ideal VS MASM syntax - comp.lang.asm.x86 Need manual for AT&T 732 - comp.dcom.telecom.tech Learning Ideal VS MASM syntax - comp.lang.asm.x86 This might be an ... Which Assembler? - comp.lang.asm.x86Learning Ideal VS MASM syntax - comp.lang.asm.x86 Hi all, next month I'll must learn assembly for school. We'll use TASM. Happily, before the course started I bought the ... Best AWK book? - comp.unix.shellLearning Ideal VS MASM syntax - comp.lang.asm.x86 Best AWK book? - comp.unix.shell Learning Ideal VS MASM syntax - comp.lang.asm.x86 Happily, before the course started I ... Can anyone help me with assembly language? - comp.lang.asm.x86 ...Learning Ideal VS MASM syntax - comp.lang.asm.x86 Can anyone help me with assembly language? - comp.lang.asm.x86 ... Learning Ideal VS MASM syntax - comp.lang.asm.x86 Can ... Simple code encryption (xor) problem - comp.lang.asm.x86 ...I'm learning to code in masm and I wanted to write simple code encryption. ... treat the label like an instruction. > >Since you know some about Masm syntax ... Floating Point and printf() - comp.lang.asm.x86In current versions of MASM, dd is always an integer ... www.parashift.com/c++-faq-lite/ alt.comp.lang.learn.c ... has evolved... but the original code was >Nasm syntax ... Learning Ideal VS MASM syntax - comp.lang.asm.x86 | Computer GroupHi all, next month I'll must learn assembly for school. We'll use TASM. Happily, before the course started I bought the book Mastering Turbo Assembler... Learning Ideal VS MASM syntax - RhinocerusHi all, next month I'll must learn assembly for school. We'll use TASM. Happily, before the course started I bought the book Mastering Turbo Assembler, 7/28/2012 4:52:43 PM
|