Compare commits
2 Commits
62ec6f516e
...
d784136e2b
Author | SHA1 | Date | |
---|---|---|---|
d784136e2b | |||
27cf7b6a57 |
12
vm.rkt
12
vm.rkt
@ -165,11 +165,13 @@
|
|||||||
(lambda (m)
|
(lambda (m)
|
||||||
(let ([c (get-carry m)]
|
(let ([c (get-carry m)]
|
||||||
[z (get-zero m)])
|
[z (get-zero m)])
|
||||||
(case cc
|
(if (case cc
|
||||||
[(NZ) (if (not z) (set-pc addr m) m)]
|
[(NZ) (not z)]
|
||||||
[(Z) (if z (set-pc addr) m)]
|
[(Z) z]
|
||||||
[(NC) (if (not c) (set-pc addr) m)]
|
[(NC) (not c)]
|
||||||
[(C) (if c (set-pc addr) m)]))))
|
[(C) c])
|
||||||
|
(set-pc addr m)
|
||||||
|
m))))
|
||||||
|
|
||||||
(define (jp-uncond addr)
|
(define (jp-uncond addr)
|
||||||
(lambda (m)
|
(lambda (m)
|
||||||
|
Loading…
Reference in New Issue
Block a user