Exploring the visualization of 6502 opcodes
Go to file
2024-07-07 20:48:48 -04:00
.github/workflows name steps 2024-07-07 20:48:48 -04:00
data
firepower-core/src assert individualy 2024-04-11 09:52:20 -04:00
firepower-cpu/src/main/scala/com/htmlism/firepower/cpu
firepower-demo/src/main/scala/com/htmlism/firepower/demo scalafix 2024-03-04 09:47:50 -05:00
nescant/src
project sbt-scoverage 2.1.0 2024-07-06 21:09:33 -04:00
src move assert to return 2024-04-11 09:52:20 -04:00
.gitignore
.scalafix.conf scalafix 2024-03-04 09:47:50 -05:00
.scalafmt.conf scalafmt 3.8.2 2024-06-21 11:07:12 -04:00
build.sbt mark unit explicitly 2024-04-11 09:52:20 -04:00
Jenkinsfile
LICENSE
README.md
TODO.md register allocation 2024-01-16 19:26:46 -05:00

firepower

Addressing modes

  • Immediate: a value literal
  • ZeroPage: argument is an 8-bit address to the zero page
  • ZeroPageX: argument is an 8-bit address to the zero page, incremented by X without carry
  • ZeroPageY: argument is an 8-bit address to the zero page, incremented by Y without carry
  • Absolute: argument is an 16-bit address
  • AbsoluteX: argument is an 16-bit address, incremented by X with carry
  • 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

TODO - Nescant

  • mappings, enums, and bitfields are enums

TODO

  1. operand support should be derived from enum support
  • postfix operations to accumulator values
  • maybe implement define registry
  • register locking (i.e. disallow X writes during indexed traversal that uses X)
  • compiler optimization
    • when writing multiple, 16-bit address literals to memory, they may share the same high byte. if all writes are done by bouncing off the accumulator, you can save instructions by using the accumulator for the high byte once and writing multiple times
  • articulate AST as different from ASM stream
  • register locking (transactions) via phantom types

Mutation tracking

  • If the injected scope is local to the caller (and not reused), then it is also local to the called method, and can be rendered as a local val declaration

Elsewhere

Colophon

firepower can be abbreviated as fp, just like functional programming. And it is a reference to one of Mario's abilities in Super Mario Bros, an NES classic.