abstract class PPU

Direct Known Subclasses

Defined in:

cryboy/ppu.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(gb : Motherboard) #

[View source]

Instance Method Detail

def [](index : Int) : UInt8 #

read from ppu memory


[View source]
def []=(index : Int, value : UInt8) : Nil #

write to ppu memory


[View source]
def bg_display? : Bool #

[View source]
def bg_tile_map : UInt8 #

[View source]
def bg_window_tile_data : UInt8 #

[View source]
def coincidence_flag : Bool #

[View source]
def coincidence_flag=(on : Bool) : Nil #

[View source]
def coincidence_interrupt_enabled : Bool #

[View source]
def copy_hdma_block(block_number : Int) : Nil #

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


[View source]
def handle_stat_interrupt : Nil #

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


[View source]
def hblank_interrupt_enabled : Bool #

[View source]
def lcd_enabled? : Bool #

[View source]
def mode_flag : UInt8 #

[View source]
def mode_flag=(mode : UInt8) #

[View source]
def oam_interrupt_enabled : Bool #

[View source]
def palette_from_array(palette_array : Array(UInt8)) : UInt8 #

[View source]
def palette_to_array(palette : UInt8) : Array(UInt8) #

[View source]
def skip_boot : Nil #

[View source]
def sprite_enabled? : Bool #

[View source]
def sprite_height #

[View source]
def start_hdma(value : UInt8) : Nil #

[View source]
def step_hdma : Nil #

[View source]
def vblank_interrupt_enabled : Bool #

[View source]
def window_enabled? : Bool #

[View source]
def window_tile_map : UInt8 #

[View source]
def write_png : Nil #

[View source]