accumulator # immediate data ?

hello ,
What I need to know  if I want to load the immediate value  into the accumulator

accumulator # immediate data
accumulator is  8 bit, assume  address of accumulator is  11 10 01 01
temporary register is  8 bit  that hold Immediate data 00 00 00 11
Instruction register

example
LD A, # 00 00 00 11

this is 2 byte instruction
first  byte is 11 10 01 01
second byte is 00 00 00 11

lets assume that first byte is opcode , store into instruction register  This is the first instruction fetch cycle.
fetch , decode , and execute
how to decode and execute the first byte instruction

iceng2 years ago

Accumulators have a designation code and a load immediate is a code based on the ML for that function with an 8 bit immediate value.

You may want to study micro language.

iceng2 years ago

You are missing some key knowledge about processors....

They, all the processors you know of, excepting neural networks, are clocked ( made to step advance ) for an orderly sequence of data flow.

Once you understand clocked memory and data signals, then you will begin to"understand how to make common data bus."

Some older processors used the same bus for both the data and for memory clocked address.

Other processors use a separate clocked memory data bus and address bus.

A lot of these concepts are discussed by Markus

http://wandel.ca/homepage/mc68008/

Good reading....

vead (author) 2 years ago

hello,

I made three diagram. I don't understand how to make common data bus
first diagram show the CPU register and Memory
In second diagram ,cpu register read data from memory

load data.jpgwrite data from memory.jpgread data from memory.jpg