abstract class GB::PPU
- GB::PPU
- Reference
- Object
Direct Known Subclasses
Defined in:
crab/gb/ppu.crConstant Summary
-
DMG_COLORS =
Slice[27615_u16, 15039_u16, 13757_u16, 11503_u16]
-
HEIGHT =
144
-
WIDTH =
160
Constructors
Instance Method Summary
-
#[](index : Int) : UInt8
read from ppu memory
-
#[]=(index : Int, value : UInt8) : Nil
write to ppu memory
- #bg_display? : Bool
- #bg_tile_map : UInt8
- #bg_window_tile_data : UInt8
- #coincidence_flag : Bool
- #coincidence_flag=(on : Bool) : Nil
- #coincidence_interrupt_enabled : Bool
-
#copy_hdma_block(block_number : Int) : Nil
Copy 16-byte block from hdma_src to hdma_dst, then decrement value in hdma5
- #frame : Bool
- #frame=(frame : Bool)
- #framebuffer : Slice(UInt16)
-
#handle_stat_interrupt : Nil
handle stat interrupts stat interrupts are only requested on the rising edge
- #hblank_interrupt_enabled : Bool
- #lcd_enabled? : Bool
- #mode_flag : UInt8
- #mode_flag=(mode : UInt8)
- #oam_interrupt_enabled : Bool
- #palette_from_enumerable(palette_array : Enumerable(UInt8)) : UInt8
- #skip_boot : Nil
- #sprite_enabled? : Bool
- #sprite_height
- #start_hdma(value : UInt8) : Nil
- #step_hdma : Nil
- #update_palette(palette : Indexable(UInt8), val : UInt8) : Nil
- #vblank_interrupt_enabled : Bool
- #window_enabled? : Bool
- #window_tile_map : UInt8
- #write_png : Nil
Constructor Detail
Instance Method Detail
def copy_hdma_block(block_number : Int) : Nil
#
Copy 16-byte block from hdma_src to hdma_dst, then decrement value in hdma5
def handle_stat_interrupt : Nil
#
handle stat interrupts stat interrupts are only requested on the rising edge