mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2024-12-22 09:30:45 +00:00
doc; drop three pixel demo
This commit is contained in:
parent
e6b04c384e
commit
9c22c22a6f
@ -11,4 +11,11 @@
|
||||
* AbsoluteY: argument is an 16-bit address, incremented by Y with carry
|
||||
* Indirect: argument an address (A); the effective value is an address (B) stored at that address (A); used only by Jump
|
||||
* IndirectX: argument is an 8-bit address; find a value at this address incremented by the value X
|
||||
* IndirectY: argument is an 8-bit address; find a value at this address; increment the value by Y
|
||||
* IndirectY: argument is an 8-bit address; find a value at this address; increment the value by Y
|
||||
|
||||
## TODO
|
||||
|
||||
- assembly doc w/ define support
|
||||
- label region as assembly doc
|
||||
- postfix operations to accumulator values
|
||||
- loops
|
@ -39,16 +39,6 @@ object DslDemo extends App {
|
||||
A.add(0xc4)
|
||||
}
|
||||
|
||||
// first color example
|
||||
withAssemblyContext { implicit ctx =>
|
||||
val scr =
|
||||
IndexedAddressCollection[Color](0x0200, "screen")
|
||||
|
||||
scr.write(0, Color.White)
|
||||
scr.write(1, Color.Green)
|
||||
scr.write(2, Color.Orange)
|
||||
}
|
||||
|
||||
def withAssemblyContext(f: AssemblyContext => Unit): Unit = {
|
||||
val ctx: AssemblyContext =
|
||||
new AssemblyContext
|
||||
|
Loading…
Reference in New Issue
Block a user