OSDN Git Service
(root)
/
motonesfpga
/
motonesfpga.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0ec68a
)
scrolling working...
author
astoria-d
<astoria-d@mail.goo.ne.jp>
Sat, 14 Sep 2013 02:01:08 +0000
(11:01 +0900)
committer
astoria-d
<astoria-d@mail.goo.ne.jp>
Sat, 14 Sep 2013 02:01:08 +0000
(11:01 +0900)
simulation/ppu/render.vhd
patch
|
blob
|
history
diff --git
a/simulation/ppu/render.vhd
b/simulation/ppu/render.vhd
index
31a3f43
..
57aa031
100644
(file)
--- a/
simulation/ppu/render.vhd
+++ b/
simulation/ppu/render.vhd
@@
-404,11
+404,11
@@
begin
--take scroll position into account
scrl_x <= cur_x + ppu_scroll_x
when cur_x + ppu_scroll_x <= "101010100" else
- cur_x + ppu_scroll_x + "
110101101";
+ cur_x + ppu_scroll_x + "
010101011"; -- << +511-340 = 171.
scrl_y <= cur_y + ppu_scroll_y
when cur_y + ppu_scroll_y <= "100000101" else
- cur_y + ppu_scroll_y + "
111111100";
+ cur_y + ppu_scroll_y + "
011111010"; -- << +511-261 = 251.
---x pos is 8 cycle ahead of current pos.
next_x <= scrl_x + "000010000"