'MPASM workings and an intro'
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
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
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,
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.
Eisermann, Phil [Ridg/CO]
|How does MPASM interpret the following
| ADDWF AD12H, 1
|Specifically the AD12H, which is both a valid hexadecimal number, and a
|Does it see if it's in the symbol table, and use the number if it's not? Or
As far as I recall, assemblers (in general) will interpret anything
a character as a string (which could of course be a reserved word, such as
assembly mnemonic). Thus, your example would be interpreted as an
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
the number as 0AD12H). Let me try it real quick.....
Ok, as suspected, AD12H is an identifier, and 0AD12H is a number
H:(440) 284-3787 (ix.netcom.com) mazer
O:(440) 329-4680 (ridgid.com) peiserma
|Jason Langenauer wrote:
> Does anyone know what happened to the GPASM project? Its seemed to have
As posted on the GnuPIC list:
Subject: [GNUPIC] gpasm web page
Date: Mon, 11 Oct 1999 08:13:53 -0700 (PDT)
From: Scott Dattalo <unix.sri.com> sdattalo
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
project pages, but I did not get the gpasm page. Oh well. So I created
new gpasm page:
If anyone wishes to add info to this page or change it any way then
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.
Dr. Imre Bartfai
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
On Sat, 16 Oct 1999, Jason Langenauer wrote:
More... (looser matching)
- Last day of these posts
- In 1999
, 2000 only
- New search...