class FifoPPU

Defined in:

cryboy/fifo_ppu.cr

Constant Summary

FETCHER_ORDER = [FetchStage::SLEEP, FetchStage::GET_TILE, FetchStage::SLEEP, FetchStage::GET_TILE_DATA_LOW, FetchStage::SLEEP, FetchStage::GET_TILE_DATA_HIGH, FetchStage::PUSH_PIXEL]

Instance Method Summary

Instance methods inherited from class PPU

[](index : Int) : UInt8 [], []=(index : Int, value : UInt8) : Nil []=, bg_display? : Bool bg_display?, bg_tile_map : UInt8 bg_tile_map, bg_window_tile_data : UInt8 bg_window_tile_data, coincidence_flag : Bool coincidence_flag, coincidence_flag=(on : Bool) : Nil coincidence_flag=, coincidence_interrupt_enabled : Bool coincidence_interrupt_enabled, copy_hdma_block(block_number : Int) : Nil copy_hdma_block, handle_stat_interrupt : Nil handle_stat_interrupt, hblank_interrupt_enabled : Bool hblank_interrupt_enabled, lcd_enabled? : Bool lcd_enabled?, mode_flag : UInt8 mode_flag, mode_flag=(mode : UInt8) mode_flag=, oam_interrupt_enabled : Bool oam_interrupt_enabled, palette_from_array(palette_array : Array(UInt8)) : UInt8 palette_from_array, palette_to_array(palette : UInt8) : Array(UInt8) palette_to_array, skip_boot : Nil skip_boot, sprite_enabled? : Bool sprite_enabled?, sprite_height sprite_height, start_hdma(value : UInt8) : Nil start_hdma, step_hdma : Nil step_hdma, vblank_interrupt_enabled : Bool vblank_interrupt_enabled, window_enabled? : Bool window_enabled?, window_tile_map : UInt8 window_tile_map, write_png : Nil write_png

Constructor methods inherited from class PPU

new(gb : Motherboard) new

Instance Method Detail

def get_sprites : Array(Sprite) #

get first 10 sprites on scanline, ordered


[View source]
def reset_bg_fifo(fetching_window : Bool) : Nil #

[View source]
def reset_sprite_fifo : Nil #

[View source]
def sample_smooth_scrolling #

[View source]
def sprite_wins?(bg_pixel : Pixel, sprite_pixel : Pixel) : Bool #

[View source]
def tick(cycles : Int) : Nil #

tick ppu forward by specified number of cycles


[View source]
def tick_bg_fetcher : Nil #

[View source]
def tick_shifter : Nil #

[View source]
def tick_sprite_fetcher : Nil #

[View source]