Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Translate 8051 assembly to AVR assembly

Translate 8051 assembly to AVR assembly

2004-10-19 by kevinshin1

Hi there,

Is there any reference guide to translate 8051 asm code to AVR asm 
code? or let me know usefule infomation.

Best regards,
Kevin Shin

Re: Translate 8051 assembly to AVR assembly

2004-10-19 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "kevinshin1" <tech@y...> wrote:
> Is there any reference guide to translate 8051 asm code to AVR asm 
> code?

The architectures and instruction sets are quite a bit different.  I 
suspect that you're going to have to first understand what the 8051 
code is doing and then implement the same logic in AVR code.

Re: [AVR-Chat] Translate 8051 assembly to AVR assembly

2004-10-19 by James Wagner

8051 is enough different from AVR that a 1:1 translation
makes little sense. For example, an 8051 MOV immediate
becomes an LDI in AVR.

Jim


On Tue, 19 Oct 2004 06:46:13 -0000
 "kevinshin1" <tech@yklogic.co.kr> wrote:
> 
> 
> 
> 
> 
> 
> Hi there,
> 
> Is there any reference guide to translate 8051 asm code
> to AVR asm 
> code? or let me know usefule infomation.
> 
> Best regards,
> Kevin Shin
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Sponsor
> 
> 
>   ADVERTISEMENT 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> To visit your group on the web, go
> to:http://groups.yahoo.com/group/AVR-Chat/&nbsp;
> To unsubscribe from this group, send an email
> to:AVR-Chat-unsubscribe@yahoogroups.com&nbsp;
> Your use of Yahoo! Groups is subject to the Yahoo! Terms
> of Service.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

---------------------------------------------------------------
The Think Different Store
http://www.thinkdifferentstore.com/
For All Your Mac Gear
---------------------------------------------------------------

Re: [AVR-Chat] Re: Translate 8051 assembly to AVR assembly

2004-10-19 by Zack Widup

I used SPASM, an 8051-like assembler for PIC's, but when I looked at the 
code generated and the redundancy in some cases, I stuck with Microchip 
MPASM assembler to write programs. Mine always came out quite a bit 
shorter.

I haven't tried any program that uses 8051-like assembler for the AVR's as 
I've just gotten started with the AVR's. There may be something out there 
that will convert 8051-like code to AVR code.  

I've figured if you're going to use assembler, you might as well use the 
language the manufacturer recommends for the device.

Zack
Show quoted textHide quoted text
On Tue, 19 Oct 2004, Don Kinzer wrote:

> 
> --- In AVR-Chat@yahoogroups.com, "kevinshin1" <tech@y...> wrote:
> > Is there any reference guide to translate 8051 asm code to AVR asm
> > code?
> 
> The architectures and instruction sets are quite a bit different.  I
> suspect that you're going to have to first understand what the 8051
> code is doing and then implement the same logic in AVR code.
>

Re: [AVR-Chat] Translate 8051 assembly to AVR assembly

2004-10-20 by Kiran Mysore Ramaprasad

8051 is a CISC Processor and AVR is a RISC processor.
 
kiran

James Wagner <jim_d_wagner@applelinks.net> wrote:
8051 is enough different from AVR that a 1:1 translation
makes little sense. For example, an 8051 MOV immediate
becomes an LDI in AVR.

Jim


On Tue, 19 Oct 2004 06:46:13 -0000
"kevinshin1" <tech@yklogic.co.kr> wrote:
> 
> 
> 
> 
> 
> 
> Hi there,
> 
> Is there any reference guide to translate 8051 asm code
> to AVR asm 
> code? or let me know usefule infomation.
> 
> Best regards,
> Kevin Shin
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Sponsor
> 
> 
>   ADVERTISEMENT 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> To visit your group on the web, go
> to:http://groups.yahoo.com/group/AVR-Chat/�
> To unsubscribe from this group, send an email
> to:AVR-Chat-unsubscribe@yahoogroups.com�
> Your use of Yahoo! Groups is subject to the Yahoo! Terms
> of Service.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

---------------------------------------------------------------
The Think Different Store
http://www.thinkdifferentstore.com/
For All Your Mac Gear
---------------------------------------------------------------

Yahoo! Groups SponsorADVERTISEMENT


---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/AVR-Chat/
  
   To unsubscribe from this group, send an email to:
AVR-Chat-unsubscribe@yahoogroups.com
  
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



Kiran M.R.
#75, K.R.Road, 
Basavanagudi,
Bangalore � 560 004.
INDIA.
Phone: +91-80-6600176; Mobile: +91-98441-72907
Mailto: kiran_mr@yahoo.com
		
---------------------------------
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.