cpprisc16  March 16, 2017
 All Namespaces Files Functions Variables Typedefs Macros
Namespaces | Functions
cppis2.cpp File Reference

Additional Instructions Set 2 IS[2]. More...

#include "cppis2.hpp"
#include "cppis1.hpp"
Include dependency graph for cppis2.cpp:

Go to the source code of this file.

Namespaces

 cpprisc16
 

Functions

bool cpprisc16::is2_add (unsigned int result, unsigned int a, unsigned int b)
 R[result] <– R[a] + R[b]. More...
 
void cpprisc16::is2_mul (unsigned int result, unsigned int a, unsigned int b)
 R[result - 1]:R[result] <– R[a]*R[b]. More...
 
void cpprisc16::is2_nor (unsigned int result, unsigned int a, unsigned int b)
 R[result] <– R[a] NOR R[b] (== ~(a | b)) More...
 
bool cpprisc16::is2_sha (unsigned int result, unsigned int a, unsigned int b)
 (SHift Arithmetic) R[result] <– (R[a] << R[b]) or (R[a] >> -R[b]) More...
 
bool cpprisc16::is2_shl (unsigned int result, unsigned int a, unsigned int b)
 (SHift Logic) R[result] <– (R[a] << R[b]) or (R[a] >> -R[b]) More...
 
void cpprisc16::is2_shifti (unsigned int result, unsigned int a, immed_t immed7)
 (Shift Immediate) R[result] <– (R[a] << immed5) or (R[a] >> -immed5) More...
 
bool cpprisc16::is2_sub (unsigned int result, unsigned int a, unsigned int b)
 R[result] <– R[a] - R[b]. More...
 
void cpprisc16::is2_xor (unsigned int result, unsigned int a, unsigned int b)
 R[result] <– R[a] XOR R[b] (== ~(a ^ b)) More...
 

Detailed Description

Additional Instructions Set 2 IS[2].

(March 14, 2017) Piece of cpprisc16. https://bitbucket.org/OPiMedia/cpprisc16

GPLv3 — Copyright (C) 2017 Olivier Pirson http://www.opimedia.be/

Definition in file cppis2.cpp.