Compare commits
No commits in common. "d784136e2b60e2f670529f124134db96a059488d" and "62ec6f516e922cd224fd5744b53b9d3256237c89" have entirely different histories.
d784136e2b
...
62ec6f516e
12
vm.rkt
12
vm.rkt
@ -165,13 +165,11 @@
|
||||
(lambda (m)
|
||||
(let ([c (get-carry m)]
|
||||
[z (get-zero m)])
|
||||
(if (case cc
|
||||
[(NZ) (not z)]
|
||||
[(Z) z]
|
||||
[(NC) (not c)]
|
||||
[(C) c])
|
||||
(set-pc addr m)
|
||||
m))))
|
||||
(case cc
|
||||
[(NZ) (if (not z) (set-pc addr m) m)]
|
||||
[(Z) (if z (set-pc addr) m)]
|
||||
[(NC) (if (not c) (set-pc addr) m)]
|
||||
[(C) (if c (set-pc addr) m)]))))
|
||||
|
||||
(define (jp-uncond addr)
|
||||
(lambda (m)
|
||||
|
Loading…
Reference in New Issue
Block a user