Well, my original problem ended up being my fault all along. I was hard coding a variable to memory location $FFAA (really $1FAA for the 6507), which is a ROM location. I did this to test the ability to access ROM memory from 16 bit pointers.
I eventually got the pointers to work in a real program ...
Search found 19 matches
- Fri Mar 16, 2007 2:16 pm
- Forum: Programming
- Topic: Newbie question: accessing a 16-bit memory address
- Replies: 55
- Views: 36382
- Tue Mar 13, 2007 5:28 pm
- Forum: Programming
- Topic: Newbie question: accessing a 16-bit memory address
- Replies: 55
- Views: 36382
- Tue Mar 13, 2007 1:23 pm
- Forum: Programming
- Topic: Newbie question: accessing a 16-bit memory address
- Replies: 55
- Views: 36382
Thanks for catching that error in the loop. I'll use bpl instead.
The thing is, I'm writing an atari game, so I need to have those directives, as far as I know. The PF1 is a register defined in vcs.h. Well, I guess I could just pull the info from that header file and dump it in with the rest of the ...
The thing is, I'm writing an atari game, so I need to have those directives, as far as I know. The PF1 is a register defined in vcs.h. Well, I guess I could just pull the info from that header file and dump it in with the rest of the ...
- Mon Mar 12, 2007 11:31 pm
- Forum: Programming
- Topic: Newbie question: accessing a 16-bit memory address
- Replies: 55
- Views: 36382
Oh no...
OK, I am really confused now.
I wrote another test program using the same indirect addressing mode, and it WORKS on Stella and Z26! The original example only works on PCAE.
Also - I could have sworn that the code:
ldy #7
.drawLine
lda (PF1_pointer),Y
sta PF1
sta WSYNC
dey
bne .drawLine
only ...
I wrote another test program using the same indirect addressing mode, and it WORKS on Stella and Z26! The original example only works on PCAE.
Also - I could have sworn that the code:
ldy #7
.drawLine
lda (PF1_pointer),Y
sta PF1
sta WSYNC
dey
bne .drawLine
only ...
- Mon Mar 12, 2007 9:18 pm
- Forum: Programming
- Topic: Newbie question: accessing a 16-bit memory address
- Replies: 55
- Views: 36382
- Mon Mar 12, 2007 6:31 pm
- Forum: Programming
- Topic: Newbie question: accessing a 16-bit memory address
- Replies: 55
- Views: 36382
- Mon Mar 12, 2007 2:04 pm
- Forum: Programming
- Topic: Newbie question: accessing a 16-bit memory address
- Replies: 55
- Views: 36382
- Tue Mar 06, 2007 7:41 pm
- Forum: Programming
- Topic: Newbie question: accessing a 16-bit memory address
- Replies: 55
- Views: 36382
- Tue Mar 06, 2007 7:25 pm
- Forum: Programming
- Topic: Newbie question: accessing a 16-bit memory address
- Replies: 55
- Views: 36382
- Tue Mar 06, 2007 3:02 pm
- Forum: Programming
- Topic: Newbie question: accessing a 16-bit memory address
- Replies: 55
- Views: 36382
- Tue Mar 06, 2007 1:07 am
- Forum: Programming
- Topic: Newbie question: accessing a 16-bit memory address
- Replies: 55
- Views: 36382
- Tue Mar 06, 2007 1:07 am
- Forum: Programming
- Topic: Newbie question: accessing a 16-bit memory address
- Replies: 55
- Views: 36382
- Mon Mar 05, 2007 11:56 pm
- Forum: Programming
- Topic: Newbie question: accessing a 16-bit memory address
- Replies: 55
- Views: 36382
- Mon Mar 05, 2007 8:23 pm
- Forum: Programming
- Topic: Newbie question: accessing a 16-bit memory address
- Replies: 55
- Views: 36382
BitWise,
I'm not sure I understand you. In my example, PF1_pointer is a 2 byte pointer to some location past zero page memory, say $FFAA.
The first byte contains the low byte of the address #$AA and the second byte contains the high byte of the address #$FF.
I need to use the pointer to somehow load ...
I'm not sure I understand you. In my example, PF1_pointer is a 2 byte pointer to some location past zero page memory, say $FFAA.
The first byte contains the low byte of the address #$AA and the second byte contains the high byte of the address #$FF.
I need to use the pointer to somehow load ...
- Mon Mar 05, 2007 3:18 pm
- Forum: Programming
- Topic: Newbie question: accessing a 16-bit memory address
- Replies: 55
- Views: 36382
SET_POINTER works, but...
OK, I changed the address to $0AAA.
I did some tests and it looks like both the low and high bytes are getting set,
but LDA (PF1_pointer),#0 only goes to the low byte $0A and
LDA (PF1_pointer+1),#0 only goes to the high byte $AA.
So I still cant get the data from $0AAA...
I did some tests and it looks like both the low and high bytes are getting set,
but LDA (PF1_pointer),#0 only goes to the low byte $0A and
LDA (PF1_pointer+1),#0 only goes to the high byte $AA.
So I still cant get the data from $0AAA...