aboutsummaryrefslogtreecommitdiff
path: root/src/NOTES
diff options
context:
space:
mode:
Diffstat (limited to 'src/NOTES')
-rw-r--r--src/NOTES7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/NOTES b/src/NOTES
new file mode 100644
index 0000000..d155ab1
--- /dev/null
+++ b/src/NOTES
@@ -0,0 +1,7 @@
+The shl and shr instructions are often documented to take both a Vx and a
+Vy argument. It’s a bit unclear what the behaviour here is meant to be.
+The original CHIP-8 implementation shifted Vy by 1 and stored the result
+in Vx. Some GitHub projects shift the value in Vx by the value in Vy.
+Ahoy takes the approach of SCHIP where Vx is shifted by 1 and Vy is
+ignored. The Ahoy assembler does not recognize a second Vy argument to
+either instruction.