A simple implementation of assembler for hack machine language in C++ Github: https://github.com/LevyHsu/Hack-Assembler See : http://www.nand2tetris.org/06.php Compile: g++ -g -std=c++11 -Wall -pedantic -o main.out *.cpp run: ./main.out test.asm will generate test.hack (with same name) Debug with extra info: ./main.out test.asm -v All the white spaces and comments are ignored (content after // in… Read more Hack machine Assembler
Category: C++
RV64I Instruction Set Simulator
RISC-V (pronounced “risk-five”) is an open, free ISA enabling a new era of processor innovation through open standard collaboration. Born in academia and research, RISC-V ISA delivers a new level of free, extensible software and hardware freedom on architecture, paving the way for the next 50 years of computing design and innovation. Github: … Read more RV64I Instruction Set Simulator
Karatsuba Multiplication in C++
Code for ADSA Assignment1 Don’t copy it, or I can ensure you that you’ll get caught. Change some variable names ,swap order of some codes won’t help. I wrote two version just hope these will inspire your own coding. This program is designed for digits longer than what uint128_t can handle. (In this case, 100… Read more Karatsuba Multiplication in C++