I'm currently following Ben Eater's tutorial on 6502 Hello world programming and I'm facing an issue with the STA instruction
It seems that sometimes, the STA doesn't execute itself and I don't know why!
This is the kind of output I get:
Code: Select all
1111111111111100 00000000 fffc r 00 y
1111111111111101 10000000 fffd r 80 y
1000000000000000 10101001 8000 r a9 y
1000000000000001 11111111 8001 r ff y
1000000000000010 10001101 8002 r 8d y
1000000000000011 00000010 8003 r 02 y
1000000000000100 01100000 8004 r 60 y
1000000000000101 10101001 8005 r a9 y ; there should be a write here!
1000000000000110 10101010 8006 r aa y
1000000000000111 10001101 8007 r 8d y
1000000000001000 00000000 8008 r 00 y
1000000000001001 01100000 8009 r 60 y
0110000000000000 10101010 6000 w aa n ; here is a write
1000000000001010 10101001 800a r a9 y
1000000000001011 01010101 800b r 55 y
1000000000001100 10001101 800c r 8d y
1000000000001101 00000000 800d r 00 y
1000000000001110 01100000 800e r 60 y
0110000000000000 01010101 6000 w 55 n ; here is another write
1000000000001111 01001100 800f r 4c y ; jumping back
1000000000010000 00000101 8010 r 05 y
1000000000010001 10000000 8011 r 80 y
1000000000000101 10101001 8005 r a9 y
1000000000000110 10101010 8006 r aa y
1000000000000111 10001101 8007 r 8d y
1000000000001000 00000000 8008 r 00 y
1000000000001001 01100000 8009 r 60 y
0110000000000000 10101010 6000 w aa n ; here is another write
Any idea how I can debug this?
Edit: I'll add a picture of my setup, even though it's not very tidy
