kvisc/INSTRS

27 lines
352 B
Plaintext

# The OS/K Team licenses this file to you under the MIT license.
# See the LICENSE file in the project root for more information.
ADD r ri
%0 = %0 + %1
SUB r ri
%0 = %0 + %1
MUL ri
RDX = hi(%0 * %1)
RAX = lo(%0 * %1)
DIV ri
RDX = RAX % %0
RAX = RAX / %0
INC r
%0 = %0 + 1
DEC r
%0 = %0 - 1
MOV ri ri
%0 = %1