Re: 89C51ED2





MooseFET wrote:

Eeyore wrote:
MooseFET wrote:

Is it written in ASM or C?

I think he said it was all written in asssembler <yuk>.

On an 8051, asm is really the way to go. The OP was making comments
about DPTR so I suspected asm but vagueness of his descriptions
sounded like a C programmer who doesn't really know what is going on
under the hood. Many C compilers overlay variables on the 8051 if he
is doing interrupts in C code he may be running a routine in the
interrupt code that overlays one of his variables.

I still use PL/M 51. So easy to use. You can treat it as highish level language and
set a register directly in the next line.

I can't even begin to imagine coding some of the fairly complex (for microcontrollers)
stuff that we did with 8051s in asm. The mind boggles. Never mind code maintenance.

Graham

.



Relevant Pages

  • Re: 89C51ED2
    ... I think he said it was all written in asssembler. ... asm is really the way to go. ... Many C compilers overlay variables on the 8051 if he ... interrupt code that overlays one of his variables. ...
    (sci.electronics.design)
  • Re: 89C51ED2
    ... interrupt code that overlays one of his variables. ... stuff that we did with 8051s in asm. ... Never mind code maintenance. ... I don't mind checking the asm output of PL/M to see how it's done it though. ...
    (sci.electronics.design)
  • Re: 89C51ED2
    ... about DPTR so I suspected asm but vagueness of his descriptions ... Many C compilers overlay variables on the 8051 if he ... interrupt code that overlays one of his variables. ... Never mind code maintenance. ...
    (sci.electronics.design)
  • Re: 89C51ED2
    ... "Gordon S. Hlavenka" wrote: ... The mind boggles. ... Never mind code maintenance. ... If your ASM code isn't maintainable, ...
    (sci.electronics.design)
  • Re: 89C51ED2
    ... Never mind code maintenance. ... If your ASM code isn't maintainable, ... PL/M produces FAST and TIGHT code btw. ...
    (sci.electronics.design)