Skip to content

Commit e275982

Browse files
authored
More logical instruction mnemonics (#50)
* Update zvm_opcodes.lua Missing ) * Alternative logical instruction names (Easier to tell if it's logical or bitwise)
1 parent ab6d244 commit e275982

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/wire/cpulib.lua

+4
Original file line numberDiff line numberDiff line change
@@ -1096,8 +1096,11 @@ CPU(048, "STEF", 0, 4.00, R0, "", "", "Enable ext
10961096
CPU(049, "CLEF", 0, 4.00, R0, "", "", "Disable extended mode")
10971097
---- Dec 5 --------------------------------------------------------------------------------------------------------------------------------------
10981098
CPU(050, "AND", 2, 1.00, 0, "X", "Y", "Logical AND between X and Y")
1099+
CPU(050, "LAND", 2, 1.00, 0, "X", "Y", "Logical AND between X and Y")
10991100
CPU(051, "OR", 2, 1.00, 0, "X", "Y", "Logical OR between X and Y")
1101+
CPU(051, "LOR", 2, 1.00, 0, "X", "Y", "Logical OR between X and Y")
11001102
CPU(052, "XOR", 2, 1.00, 0, "X", "Y", "Logical XOR between X and Y")
1103+
CPU(052, "LXOR", 2, 1.00, 0, "X", "Y", "Logical XOR between X and Y")
11011104
CPU(053, "FSIN", 2, 1.00, TR, "X", "Y", "Write sine of X to Y")
11021105
CPU(054, "FCOS", 2, 1.00, TR, "X", "Y", "Write cosine of X to Y")
11031106
CPU(055, "FTAN", 2, 1.00, TR, "X", "Y", "Write tangent of X to Y")
@@ -1173,6 +1176,7 @@ CPU(106, "JNGR", 1, 3.00, CB, "INT", "", "Relative j
11731176
CPU(107, "JER", 1, 3.00, CB, "INT", "", "Relative jump INT bytes forward if result is equal")
11741177
CPU(107, "JZR", 1, 3.00, CB, "INT", "", "Relative jump INT bytes forward if result is zero")
11751178
CPU(108, "LNEG", 1, 3.00, W1, "X", "", "Logically negate X")
1179+
CPU(108, "LNOT", 1, 3.00, W1, "X", "", "Logically negate X")
11761180
CPU(109, "RESERVED", 1, 0.00, R0, "", "", "")
11771181
---- Dec 11 -------------------------------------------------------------------------------------------------------------------------------------
11781182
CPU(110, "NMIRET", 0, 2.00, R0+OL, "", "", "EXTRET")

0 commit comments

Comments
 (0)