8051, was Re: Editor religious wars (was Re: Museums)

Geoffrey Reed geoffr at zipcon.net
Wed Jan 27 22:04:20 CST 2010


Does anyone know of a disassembler that will disassemble code for the family
of processors that the 8040 is in?


On 1/26/10 9:18 PM, "Chuck Guzis" <cclist at sydex.com> wrote:

> On 26 Jan 2010 at 19:57, Geoffrey Reed wrote:
> 
>> Dumb 8051ish related question....
>> 
>> 
>> Will 8040 code run on a '51?  I have yet to find a definitive yea or
>> nay :(
> 
> Do you mean are the codes binary-compatible?  No.  They bear a
> certain resemblance to each other in terms of programming model, but
> the opcodes themselves are different.
> 
> For example:
> 
> 04 on the 8048 is a jump
> 04 on the 8051 is INC A
> 
> Picking another at random
> 
> 97 on the 8048 is CLR C
> 97 on the 8051 is SUBB A, at R1
> 
> No, if you try to run unmodified 8048 code on an 8051 or vice-versa,
> you're going to crash and burn in short order.
> 
> --Chuck
> 
> 
> 
> 





More information about the cctalk mailing list