Flash Magic Forum

Archive => Old Topics => Topic started by: Edward Mak on April 09, 2003, 08:26:46 PM

Title: Assembly Language with P89LPC932
Post by: Edward Mak on April 09, 2003, 08:26:46 PM
Hi, floks

1) I don't have very large applications to deal with, so can I stick with Assembly programming with this MCU, old timer assember like the Metalink ASM51. Provided I can manage the 932 header file.

2) Does the Asm51 produce the same 8051 source code which is good for the PLC932?

I just can't afford thousand bulks for a C compiler just for hobby purposes.


Please advice.

Title: Re: Assembly Language with P89LPC932
Post by: PASCUAL LOPEZ on April 10, 2003, 04:46:01 AM
DEAR E.MAK,

YOU CAN USE THE METALINK, TO GENERATE AN HEX FILE. THE ONLY THING, IS THAT YOU MUST HAVE A HEADER FILE LIKE FOR EXAMPLE: "$MOD932". IF YOU ARE INTERESTED, I MADE ONE. SEND ME AN EMAIL AT: support@electronicdd.com

PASCUAL
Title: Re: Assembly Language with P89LPC932
Post by: Roland on April 10, 2003, 05:25:25 AM
Hi, Edward
just a place to look for...
it's the home of the free available sdcc C compiler
The Compiler produces optimized 8051 and Z80 code

http://sdcc.sourceforge.net/

another good starting point is here:
http://www.pjrc.com/tech/8051/#as31_assembler

I am using the asm31 assembler from Ken Stauffer.
For new 8051 derivates, like the lpc... you have to
build up your own equates for the additional registers,
that's all..

Roland

Title: Re: Assembly Language with P89LPC932
Post by: Edward Mak on April 10, 2003, 05:27:45 PM
Thanks for the inputs from Pascula Lopez & Roland.