A
Ani
Why is it advised to used XOR operator to clear the register contents?
Why is load reg,0 not preferred.
Why is load reg,0 not preferred.
Why is it advised to used XOR operator to clear the register contents?
Why is load reg,0 not preferred.
Ani said:Why is it advised to used XOR operator to clear the register contents?
Why is load reg,0 not preferred.
The 8051 has a better way than either method, at least for the Acc register.
The CLR A instruction executes faster than any other method of clearing the
Acc and uses the least amount of code memory possible.
There are many variants of the 8051
(instruction set compatible) that don't
require 12 oscillator clocks for a machine cycle.
For example, the obsolete
80251. What is a "normal" CPU anyway?
krw said:Von Neuman architecture is one of the measures of "normal". By
*ANY* measure the 8051 ain't normal. It ain't even normal for a
Harvard architecture processor. The instruction set is a mess.
It's *SLOW*. There are some interesting peripherals built into the
variants, but it is no way "normal" I've used it many times, and
it's an interesting product, but the ISA is a mess.
Wasn't the 8051 the PIC (programmable interrupt controller) inside the PC?
Ani said:Why is it advised to used XOR operator to clear the register contents?
Why is load reg,0 not preferred.
No. That'd be the venerable 8251...
The 8251 is/was the USART. The PC's PIC was an 8259. The keyboard
controller was an 8048 derivative, the predecessor of the 8051.
daytripper said:duh, yes, you're correct of course.
They all start in the 8xxx range (including the processor, the 8088),
were they all Intel parts back then?
Yousuf Khan
daytripper said:Yup. All full set were all in the same catalog, and Intel produced a soft
cover book detailing their internals, functions, sample code fragments to
twiddle them, and schematic implementations to hook them up...
Ani said:Why is it advised to used XOR operator to clear the register contents?
Why is load reg,0 not preferred.
So if you're saying that the 8051 was almost a general-purpose
processor, then what sort of things was it used in?
They all start in the 8xxx range (including the processor, the 8088),
were they all Intel parts back then?
With Keil programming environment, you can use C to program 8051 very
conveniently.
Many embedded applications fit very well to 64K.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.