As i said before im writing a 6502 emulator based on the microarchitecture using pure c++. I have classes ALU,DU,ADDRBUS, EU, DATABUS /etc. What is good of this: breakpoints (and other things). The user can put a breakpoint even when one value of the ALU is about to/after be writed.
But still not sure what machine it will nee..
... sorry im a little enthusiast cos im learining a lot .
Well right to the point now:
I wanted to know if this heappen in this way:
i will use vars AddrBUS/DataBUS/PC.
this fragment is taken from 6502_cpu.txt
# address R/W description
--- ------- --- ------------------------------------------
1 PC R fetch opcode, increment PC
- AddrBUS = PC
- DataBUS = Read from AddrBUS
- Opcode = DataBUS
- Increment PC ***
2 .... (other cycles come here)
*** How does Increment PC? is it passed to the ALU? if it is a 16 bit value is there wrap around on pages.. i think not, its contigous.. but how does the cpu treat a case like "incrementing a 16 BIT register".
Thanks in advance.
But still not sure what machine it will nee..
... sorry im a little enthusiast cos im learining a lot .
Well right to the point now:
I wanted to know if this heappen in this way:
i will use vars AddrBUS/DataBUS/PC.
this fragment is taken from 6502_cpu.txt
Code:
# address R/W description
--- ------- --- ------------------------------------------
1 PC R fetch opcode, increment PC
- AddrBUS = PC
- DataBUS = Read from AddrBUS
- Opcode = DataBUS
- Increment PC ***
2 .... (other cycles come here)
*** How does Increment PC? is it passed to the ALU? if it is a 16 bit value is there wrap around on pages.. i think not, its contigous.. but how does the cpu treat a case like "incrementing a 16 BIT register".
Thanks in advance.