Searching \ for 'MPASM workings and an intro' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/language/index.htm?key=asm
Search entire site for: 'MPASM workings and an intro'.

Truncated match.
PICList Thread
'MPASM workings and an intro'
1999\10\15@103537 by Jason Langenauer

flavicon
picon face
Greeting's Y'all,

How does MPASM interpret the following

       ADDWF AD12H, 1

Specifically the AD12H, which is both a valid hexadecimal number, and a symbol?
Does it see if it's in the symbol table, and use the number if it's not? Or
something else?

The reason I ask is that I'm writing a PIC assembler for Linux, and am trying
to emulate MPASM behaviour as much as possible. I've just finished the parser,
and am now about to code the symbol table and expression evaluator.

Does anyone know what happened to the GPASM project? Its seemed to have
disappeared.

Finally, since this is my first posting to the list, I'l tell a little about
myself. As the .sig suggests, I am studying aerospace engineering, and play
around with PICs when I find the time. My main interest lies in
rocketry/aerospace applications, and no doubt a few of you will recognize my
name from the arocket list, where I lurk.

Thanks a lot,

--
Jason Langenauer
Mechanical and Space Enginnering, The University of Queensland
--
Lady Astor: If you were my husband, I'd poison you drink.
Winston Churchill : If I was your husband, I'd drink it.

1999\10\15@132323 by Eisermann, Phil [Ridg/CO]

flavicon
face
|How does MPASM interpret the following

|        ADDWF AD12H, 1

|Specifically the AD12H, which is both a valid hexadecimal number, and a
symbol?
|Does it see if it's in the symbol table, and use the number if it's not? Or
|something else?


       As far as I recall, assemblers (in general) will interpret anything
starting with
a character as a string (which could of course be a reserved word, such as
an
assembly mnemonic). Thus, your example would be interpreted as an
identifier.
It is generally required to precede a hexadecimal number with an identifier,

specifically to avoid this ambiguity. This can be 0x, H, or even a zero
(e.g. write
the number as 0AD12H). Let me try it real quick.....

       Ok, as suspected, AD12H is an identifier, and 0AD12H is a number
(out of
range, btw).


Phil Eisermann
H:(440) 284-3787 (spam_OUTmazerTakeThisOuTspamix.netcom.com)
O:(440) 329-4680 (.....peisermaKILLspamspam@spam@ridgid.com)

1999\10\15@142109 by Mike Werner

picon face
Jason Langenauer wrote:
<snip>
> Does anyone know what happened to the GPASM project? Its seemed to have
> disappeared.

As posted on the GnuPIC list:

Subject: [GNUPIC] gpasm web page
Date: Mon, 11 Oct 1999 08:13:53 -0700 (PDT)
From: Scott Dattalo <sdattalospamKILLspamunix.sri.com>
Reply-To: .....gnupicKILLspamspam.....cichlid.com
To: EraseMEgnupicspam_OUTspamTakeThisOuTcichlid.com

As many of you probably know, James Bowman's (the original author of
gpasm) web pages at SGI have been 404'd. I had managed to wget the
gnupic
project pages, but I did not get the gpasm page. Oh well. So I created
a
new gpasm page:

http://www.interstice.com/~sdattalo/gnupic/gpasm.html

If anyone wishes to add info to this page or change it any way then
let me
know.

Regards,
Scott
------------------------------

Another page worth looking into is http://huizen.dds.nl/~gnupic/
Quite a bit of Linux based stuff there.
--
Mike Werner  KA8YSD           |  "Where do you want to go today?"
ICQ# 12934898                 |  "As far from Redmond as possible!"
'91 GS500E                    |
Morgantown WV                 |  Only dead fish go with the flow.

1999\10\16@055424 by Dr. Imre Bartfai

flavicon
face
Hi,

from MPAMS's point of view, AD12H is not a valid hexadecimal number. Only
either h'AD12' or 0xAD12 would be...

Another assemblers (e. g. CVASM) think differently:

AD12H is a symbol. To make it to a hex number, prepend a zero, as 0AD12h

Regards,

Imre


On Sat, 16 Oct 1999, Jason Langenauer wrote:

{Quote hidden}

More... (looser matching)
- Last day of these posts
- In 1999 , 2000 only
- Today
- New search...