6502-opcodes/TODO.md

13 lines
1011 B
Markdown
Raw Normal View History

2022-09-12 01:51:44 +00:00
- create classes for read/write, read-only (volatile), and write-only memory locations
- zero page and absolute
- but how do we encode it? subclassing?
2022-11-14 19:28:17 +00:00
- writing a value does two things
1. establishes a fungible "init" phase (where we can take advantage of accumulator sharing)
2. allows read-leases for some known scope
2022-11-14 22:43:06 +00:00
- shared initialization can happen with constants but can also be shared with read side effects
- is the spec for reading from a register descriable as data? e.g. are these two requests semantically equal vs independent side-effects
2022-11-14 19:28:17 +00:00
- but what then is a write lease and how is it finite?
2022-11-15 18:03:18 +00:00
- every register must offer up read or write leases that other instructions can use and emit AsmN programs of
- a method that offers up a lease maybe has a return type completely inherited from its body (doesn't know N shape, other than that the register should participate somewhere)
- maybe the AXY registers don't offer up leases and are always consumed in predictable, prepackaged ways