Re: beginner and 8051



noemail12000@xxxxxxxxx wrote:

Tim Wescott wrote:
Should you write your application in assembly language you will find
that you have to rewrite every line to port to another processor.

I'm going to study assembler.
I thought that's what " having same 8051 core" is all about. so, do
they all have different assembler instructions? and even if I create
small app which uses only 1 I/O port and timer - I'll not be able to
move it to another mcu without a lot of changes?


No they all have the same 'core' with variations in additional bits. The
other posters misunderstood, they did not realise the AT89S... is just
another 8051 MCU.

You keep going with assembler. It will give you an excellent grounding in
the nuts and bolts of embedded systems. IMHO it is essential to understand
this first before using any HLL.

Ian
.



Relevant Pages

  • Re: beginner and 8051
    ... that you have to rewrite every line to port to another processor. ... I'm going to study assembler. ... forgetting their fine line of 8051 compatible systems. ... Wescott Design Services ...
    (comp.arch.embedded)
  • Re: Need Some Syntax Clarification (NASM)
    ... This assigns a word comprised of 10 to the variable port. ... If I want to push 10 onto the stack, ... In Linux, Nasm assembles that without complaint, but ld warns that it's truncated. ... With an "assembler", *we* have to choose appropriate instructions, so the assembler has less need to know. ...
    (comp.lang.asm.x86)
  • Re: MacBook Pro - rejecting it
    ... though luckily Apple was able to port the entire OS this time. ... Because significant chunks of it were written in assembler and Pascal, ... All that Yellow Book work not completely wasted? ...
    (uk.comp.sys.mac)
  • Re: problems while mixing C with asm
    ... I'm newbie on the msp430 and I need to embed some asm in my C code. ... access of an io port can be done by declaring a pointer to the port, ... *port = idle | databit; ... directly to one line of register indirect assembler. ...
    (comp.arch.embedded)
  • Re: Between Assemblers
    ... > I realize it isn't hard, but suppose somebody would want to port a large ... > chunk of source from one Assembler to another without needing to loose ... Knowing this I can ... Brian ...
    (alt.lang.asm)