delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/29/20:40:31

Date: Wed, 29 Oct 1997 17:38:42 -0800 (PST)
Message-Id: <199710300138.RAA10760@adit.ap.net>
Mime-Version: 1.0
To: "J.A. Bijsterbosch" <bijster AT worldonline DOT nl>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Syntax differences between TASM and NASM

At 06:08  10/29/1997 GMT, J.A. Bijsterbosch wrote:
>Hello All,
>
>After some years in C/C++ programming and a quote in mind of Michael
>Abrash that "the best optimiser is between the ears" <g>, I found it time
>to start learning a little bit assembler as well.
>I found a nice book that starts from zero knowledge by Peter Norton & John
>Socha about this subject, but it uses MASM and/or TASM as assembler.
>Because I don't want to spend money immediately, I thought of using NASM,
>however some derictives used in the book are not recognised by this last
>one.
>I have been digging through nasm.doc to see if there where replacements for
>these, and found some solutions with which the revised code compiles
>alright, but
>since I'm a total newbie in assembler and it's terminology still, It would
>be nice if someone could tell whether the two following code snippets
>evolve
>to the same result and functionality.
[snipped]
>        ADD     DL,"0"              		; Yes, convert to a digit
You might want to check that this quoting is correct. I haven't used NASM
lately, but I think that double-quotes might indicate a string, not a
character constant like you want.
>Finally before someone calls out: "Use JAS", and to stay a little bit on
>topic. ;-)
>I tried to compile this assembler that seems to use these TASM directives,
>but, while linking, Make reported a missing library -lfl
>Since I have all the required files for DJGPP C and C++ as stated in
>readme.1st, I don't know which packet this lib belongs to. Anyone?
It's part of flex, a lexical analyzer. I forget the name of the package, but
either it's obvious or you can read the 00_INDEX file on Simtelnet.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019