6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Apr 27, 2024 5:31 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: indexed zero page X
PostPosted: Sat Aug 02, 2008 1:47 pm 
Offline

Joined: Fri Jul 18, 2008 11:01 am
Posts: 8
Hi there,
i have written a function to simulate zero page index addressing mode, the trouble is i am not sure if my function increments the program counter the correct amount - currently it increments by 2, but when i tested the function on michaels 6502 simulator it incremented by 3 - i am not sure which one is right, mine or his :?, if someone can shed some light into this i would really appreciate it

many thanks


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Aug 02, 2008 5:02 pm 
Offline

Joined: Sat Jan 04, 2003 10:03 pm
Posts: 1706
Code:
LDA zp,X
LDA (zp,X)


Both of these are 2-byte opcodes.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: