BRK
authorAlyssa Rosenzweig <alyssa@backtick.town>
Thu, 23 Jun 2016 02:42:48 +0000 (19:42 -0700)
committerAlyssa Rosenzweig <alyssa@backtick.town>
Thu, 23 Jun 2016 02:42:48 +0000 (19:42 -0700)
src/CPU/instructions/BRK [new file with mode: 0644]

diff --git a/src/CPU/instructions/BRK b/src/CPU/instructions/BRK
new file mode 100644 (file)
index 0000000..d8d3fd7
--- /dev/null
@@ -0,0 +1,7 @@
+set flagI to 1
+mapper write (256 + S) (PC + 2)
+set S to (S - 1) mod 256
+compute SR
+mapper write (256 + S) SR
+set S to (S - 1) mod 256
+interrupt
This page took 0.021267 seconds and 4 git commands to generate.