mirror of
https://github.com/mattrberry/crab.git
synced 2025-01-30 20:34:45 +01:00
mode 0 hfip / vflip, 100% done with tonc brin_demo
This commit is contained in:
parent
7086673a78
commit
e7849616ab
1 changed files with 2 additions and 3 deletions
|
@ -123,7 +123,6 @@ class PPU
|
||||||
row = @vcount
|
row = @vcount
|
||||||
effective_row = (row + @bg0vofs.value) % (th << 3)
|
effective_row = (row + @bg0vofs.value) % (th << 3)
|
||||||
ty = effective_row >> 3
|
ty = effective_row >> 3
|
||||||
y = effective_row & 7
|
|
||||||
240.times do |col|
|
240.times do |col|
|
||||||
effective_col = (col + @bg0hofs.value) % (tw << 3)
|
effective_col = (col + @bg0hofs.value) % (tw << 3)
|
||||||
tx = effective_col >> 3
|
tx = effective_col >> 3
|
||||||
|
@ -134,8 +133,8 @@ class PPU
|
||||||
|
|
||||||
tile_id = bits(screen_entry, 0..9)
|
tile_id = bits(screen_entry, 0..9)
|
||||||
palette_bank = bits(screen_entry, 12..15)
|
palette_bank = bits(screen_entry, 12..15)
|
||||||
hflip = bit?(screen_entry, 11)
|
y = (effective_row & 7) ^ (7 * (screen_entry >> 11 & 1))
|
||||||
vflip = bit?(screen_entry, 10)
|
x = (effective_col & 7) ^ (7 * (screen_entry >> 10 & 1))
|
||||||
|
|
||||||
if @bg0cnt.color_mode # 8bpp
|
if @bg0cnt.color_mode # 8bpp
|
||||||
abort "todo 8bpp"
|
abort "todo 8bpp"
|
||||||
|
|
Loading…
Add table
Reference in a new issue