mirror of
https://github.com/Gehstock/Mist_FPGA.git
synced 2026-01-30 13:26:19 +00:00
IremM62: sprite/tilemap position adjust
This commit is contained in:
@@ -149,7 +149,7 @@ begin
|
||||
end if;
|
||||
|
||||
if video_ctl.stb = '1' then
|
||||
x := unsigned(reg_i.x) + 256 - 64 + PACE_VIDEO_PIPELINE_DELAY;
|
||||
x := unsigned(reg_i.x) + 256 - 64 + PACE_VIDEO_PIPELINE_DELAY + 1;
|
||||
if hwsel /= HW_KIDNIKI then x:=x-8; end if;
|
||||
if hires = '0' then x := x - 64; end if;
|
||||
|
||||
|
||||
@@ -61,7 +61,8 @@ begin
|
||||
ctl_o.tile_a(ctl_o.tile_a'left downto 15) <= (others => '0');
|
||||
|
||||
-- tilemap scroll
|
||||
x <= std_logic_vector(unsigned(video_ctl.x) - 256 + 128 + 8) when unsigned(y) < 6*8 and HWSEL = HW_KUNGFUM else
|
||||
x <= std_logic_vector(unsigned(video_ctl.x) - 256 + 128 + 8) when unsigned(y) < 6*8 and hwsel = HW_KUNGFUM else
|
||||
std_logic_vector(unsigned(video_ctl.x) - 256 + unsigned(hscroll(8 downto 0)) + 64 + 10) when hwsel = HW_LDRUN4 else
|
||||
std_logic_vector(unsigned(video_ctl.x) - 256 + unsigned(hscroll(8 downto 0)) + 64 + 8) when hires = '1' else
|
||||
std_logic_vector(unsigned(video_ctl.x) - 256 + unsigned(hscroll(8 downto 0)) + 128 + 8);
|
||||
y <= std_logic_vector(unsigned(video_ctl.y) - 256 + unsigned(vscroll(8 downto 0)) + 128) when hwsel = HW_SPELUNKR or hwsel = HW_SPELUNK2 else
|
||||
|
||||
Reference in New Issue
Block a user