mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2025-01-03 08:31:26 +00:00
doc; drop three pixel demo
This commit is contained in:
parent
e6b04c384e
commit
9c22c22a6f
@ -12,3 +12,10 @@
|
|||||||
* Indirect: argument an address (A); the effective value is an address (B) stored at that address (A); used only by Jump
|
* 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
|
* 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)
|
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 = {
|
def withAssemblyContext(f: AssemblyContext => Unit): Unit = {
|
||||||
val ctx: AssemblyContext =
|
val ctx: AssemblyContext =
|
||||||
new AssemblyContext
|
new AssemblyContext
|
||||||
|
Loading…
Reference in New Issue
Block a user