projects
/
ScratchNES.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7abbc30
)
Push the right number of bits :P
author
Alyssa Rosenzweig
<alyssa@backtick.town>
Thu, 30 Jun 2016 18:43:01 +0000 (11:43 -0700)
committer
Alyssa Rosenzweig
<alyssa@backtick.town>
Thu, 30 Jun 2016 18:43:01 +0000 (11:43 -0700)
src/CPU/common.tosh
patch
|
blob
|
history
diff --git
a/src/CPU/common.tosh
b/src/CPU/common.tosh
index
fa75659
..
014bab0
100644
(file)
--- a/
src/CPU/common.tosh
+++ b/
src/CPU/common.tosh
@@
-40,7
+40,7
@@
set flagZ to < (item (join (letter 2 of M) "2")+1 of AND) = 2>
set flagC to < (item (join (letter 2 of M) "1")+1 of AND) = 1>
define interrupt: vector [vector]
-mapper write 256 + S (
PC - (PC mod 256)
)
+mapper write 256 + S (
((PC - (PC mod 256)))/256
)
set S to (S - 1) mod 256
mapper write 256 + S (PC mod 256)
set S to (S - 1) mod 256
This page took
0.022907 seconds
and
4
git commands to generate.