Before I go to the basement and start crying ...
First I want to describe, what I want to do:
- read the value of address $1000 in bank 4 ($041000) into register A
How I want to do it:
- use the kernel routine $FF74 (LDA_FAR):
Quote from c65manualupdated.txtDisplay More
14. $FF74 LDA_FAR ;LDA (.X),Y from bank .Z
.X = pointer to base page pointer
.Y = index
.Z = bank (0-FF)
Memory: setup indirect vector
Registers: .A = data
Memory: DMA_LIST updated
Flags: status valid
LDA_FAR enables applications to read data from any other bank. It
builds a DMA_LIST to fetch one byte, executes the DMA, and reads the
byte. It's a ROM routine.
- with this code:
But I never get the value of address $041000 into register A.
In $FB/$FC the $1000 is stored correct.
Anyone any idea what's wrong?