class

GB::PPU

Inherits Reference < Object

Constants

DMG_COLORS = Slice[27615_u16, 15039_u16, 13757_u16, 11503_u16]
HEIGHT = 144
WIDTH = 160

Constructors

new(gb : GB)
Source

Instance methods

[](index : Int) : UInt8

read from ppu memory

Source
[]=(index : Int, value : UInt8) : Nil

write to ppu memory

Source
bg_display?
Source
bg_tile_map
Source
bg_window_tile_data
Source
coincidence_flag
Source
coincidence_flag=(on : Bool) : Nil
Source
coincidence_interrupt_enabled
Source
copy_hdma_block(block_number : Int) : Nil

Copy 16-byte block from hdma_src to hdma_dst, then decrement value in hdma5

Source
frame
Source
frame=(frame : Bool)
Source
framebuffer
Source
handle_stat_interrupt

handle stat interrupts stat interrupts are only requested on the rising edge

Source
hblank_interrupt_enabled
Source
lcd_enabled?
Source
mode_flag
Source
mode_flag=(mode : UInt8)
Source
oam_interrupt_enabled
Source
palette_from_enumerable(palette_array : Enumerable(UInt8)) : UInt8
Source
skip_boot
Source
sprite_enabled?
Source
sprite_height
Source
start_hdma(value : UInt8) : Nil
Source
step_hdma
Source
update_palette(palette : Indexable(UInt8), val : UInt8) : Nil
Source
vblank_interrupt_enabled
Source
window_enabled?
Source
window_tile_map
Source
write_png
Source