This is a WIP. Please notify me of any mistakes or possible improvements.
I have ignored any 64-bit differences due to Moore seeming to be a 32-bit system.
Registers
Basic Instructions
Data Instructions
Bitwise Instructions
Logic Instructions
| // include the library code: | |
| #include <LiquidCrystal.h> | |
| // initialize the library with the numbers of the interface pins | |
| LiquidCrystal lcd(12, 11, 5, 4, 3, 2); | |
| // make some custom characters: | |
| byte BlankTopLeft[8] = { | |
| 0b00000, |
| import java.math.BigInteger | |
| import java.util.* | |
| import kotlin.IllegalArgumentException | |
| sealed class Values(value: Any) { | |
| data class Boolean(val value: kotlin.Boolean): Values(value) { | |
| override fun toString() = value.toString() | |
| } | |
| data class Decimal(val value: BigInteger): Values(value) { | |
| override fun toString() = value.toString() |
| import android.content.res.Resources | |
| val Int.px: Pixels | |
| get() = Pixels(this.toFloat()) | |
| val Int.dp: DensityPixels | |
| get() = DensityPixels(this.toFloat()) | |
| /*inline*/ class Pixels(val value: Float) { |
| #include <iostream> | |
| #include <vector> | |
| #include <cmath> | |
| #include <random> | |
| #include <csetjmp> | |
| #include "mnist/mnist_reader.hpp" | |
| using namespace std; |
| #include <iostream> | |
| #include <vector> | |
| #include <random> | |
| typedef double T; | |
| class VectorWrongSizeException : public std::exception { | |
| const char* what() const noexcept override { | |
| return "Different vector sizes!"; | |
| } |
| #include <iostream> | |
| #include <vector> | |
| #include <random> | |
| enum Halfspace {N, P}; | |
| typedef double T; | |
| class VectorWrongSizeException : public std::exception { | |
| const char* what() const noexcept override { |
| #include <iostream> | |
| #include <vector> | |
| #include <random> | |
| enum Halfspace {N, P}; | |
| typedef double T; | |
| class VectorWrongSizeException : public std::exception { | |
| const char* what() const noexcept override { |
| #include <iostream> | |
| #include <vector> | |
| #include <random> | |
| enum Halfspace {N, P}; | |
| typedef double T; | |
| class VectorWrongSizeException : public std::exception { | |
| const char* what() const noexcept override { |
This is a WIP. Please notify me of any mistakes or possible improvements.
I have ignored any 64-bit differences due to Moore seeming to be a 32-bit system.
Registers
Basic Instructions
Data Instructions
Bitwise Instructions
Logic Instructions
| #include <iostream> | |
| #include <algorithm> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <map> | |
| #include <queue> | |
| using namespace std; | |
| struct TRIE { |