2 ms·
John Draper once asked a friend of mine if he wanted to go into the back of a van and execute an 1802 instruction. Can you guess which one? http://en.wikipedia
by DonHopkins 12y ago
John Draper once asked a friend of mine if he wanted to go into the back of a van and execute an 1802 instruction. Can you guess which one?
http://en.wikipedia.org/wiki/RCA_1802#Addressing_modes http://en.wikipedia.org/wiki/RCA_1802#Addressing_modes
Because of the 16-bit address bus, and the 8-bit data bus, the sixteen general purpose registers are 16 bits wide, but the accumulator (the so-called data register, or D-register) is only 8 bits wide. The accumulator, therefore, tends to be a bottleneck. Transferring the contents of one register to another involves four instructions (one Get and one Put on the HI byte of the register, and a similar pair for the LO byte: GHI R1; PHI R2; GLO R1; PLO R2). Similarly, loading a new constant into a register (such as a new address for a subroutine jump, or the address of a data variable) also involves four instructions (two load immediate, LDI, instructions, one for each half of the constant, each one followed by a Put instruction to the register, PHI and PLO).