From 823e0e8cda87e1aa6af01b1b2560239d0841596c Mon Sep 17 00:00:00 2001 From: Andrew Alderwick Date: Sun, 28 Mar 2021 12:09:41 +0100 Subject: [PATCH] Written manual tests for LITr and LIT2r. --- projects/tests/opcodes.usm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/tests/opcodes.usm b/projects/tests/opcodes.usm index 5759d90..d68b579 100644 --- a/projects/tests/opcodes.usm +++ b/projects/tests/opcodes.usm @@ -24,6 +24,8 @@ ADD FAIL [ add-needs-two 00 ] #01 ADD FAIL [ add-needs-two 00 ] #01 #02 ADD #03 EQU PASS? [ add-result 00 ] + LITr [ fe ] STHr #fe EQU PASS? [ litr 00 ] + LIT2r [ fe dc ] STH2r #fedc EQU2 PASS? [ lit2r 00 ] #01 #02 ADD #ff EQU PASS? [ this-test-fails 00 ] ,finish JMP2