mirror of
https://github.com/jtauber/applepy.git
synced 2025-01-01 05:30:41 +00:00
added zero_page_y_mode
This commit is contained in:
parent
3344005fe7
commit
28fcca6bde
@ -330,6 +330,9 @@ class CPU:
|
|||||||
def zero_page_x_mode(self):
|
def zero_page_x_mode(self):
|
||||||
return (self.zero_page_mode() + signed(self.x_index)) % 0x100
|
return (self.zero_page_mode() + signed(self.x_index)) % 0x100
|
||||||
|
|
||||||
|
def zero_page_y_mode(self):
|
||||||
|
return (self.zero_page_mode() + signed(self.y_index)) % 0x100
|
||||||
|
|
||||||
def indirect_mode(self):
|
def indirect_mode(self):
|
||||||
return self.memory.read_word(self.absolute_mode())
|
return self.memory.read_word(self.absolute_mode())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user