Skip to content

Instantly share code, notes, and snippets.

Display

  • PPU has 3x cycle speed compare to CPU
  • PPU can render upto 64 sprite
  • Sprite could be 8x16 or 8x8
  • Color is specified by 2 bit in the pattern table, and 2 bit in the attribute table

Instruction set

  • Instruction set is based on addressing mode
  • The opcode is a 4 byte number
@hieuk09
hieuk09 / users.rb
Created November 28, 2020 07:07
ROM auto_struct does not respect struct configuration
require 'rom'
require 'rom-repository'
rom = ROM.container(:sql, 'sqlite::memory') do |conf|
conf.default.create_table(:users) do
primary_key :id
column :name, String, null: false
end
class Users < ROM::Relation[:sql]