Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example overwrites program memory #37

Closed
inindev opened this issue Aug 14, 2018 · 1 comment
Closed

Example overwrites program memory #37

inindev opened this issue Aug 14, 2018 · 1 comment

Comments

@inindev
Copy link

inindev commented Aug 14, 2018

In the Indexed indirect example you overwrite program memory with STY $0605. Also, you setup $01 $02 with #$0605 but then do not use it. I think the example needs a tweak.

###Indexed indirect: ($c0,X)###

This one’s kinda weird. It’s like a cross between zero page,X and indirect. Basically, you take the zero page address, add the value of the X register to it, then use that to look up a two-byte address. For example:

LDX #$01
LDA #$05
STA $01
LDA #$06
STA $02
LDY #$0a
STY $0605
LDA ($00,X)

https://skilldrick.github.io/easy6502/#addressing

Also, github apparently changed their markdown engine and your headers now need a space between the ### and the text to render properly.

###Indexed indirect: ($c0,X)###
###Indexed indirect: ($c0,X)###

### Indexed indirect: ($c0,X) ###

Indexed indirect: ($c0,X)

@BigEd BigEd closed this as completed in e26ef47 Aug 16, 2018
@BigEd
Copy link
Collaborator

BigEd commented Aug 16, 2018

Thanks - I've made minimal tweaks to address both points.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants