- This is an extension to my Computing Machinery from Scratch project, after building an advanced arithmetic machine (called Repeated Arithmetic Machine aka r_a_m) and in version4 (r_a_mv4) we succesfully implemented Machine-Code Programming by storing machine code instructions in the program memory.
- So next logical step was to go up the computing stack from machine code to language having instructions in an english like language, called Mnemonics, so after mapping all the machine codes to mnemonics we get -The Assembly Language.
- asmv0.1 -> Mapped Data control operations to assembly Language.
- asmv0.2 -> Mapped arithmetic, system and temporal Control to assembly Language.
- asmv0.3 -> Added Syntax Analysis, primitive semantic analysis and an instruction execution report.
🧾 Machine Code Output - Assembler v0.2
🕵️ Syntax Analysis - Assembler v0.3
🕵️ Semantic Analysis - Assembler v0.3
- Syntax Analysis of assembly program before being processed by assembler to save computational resources.
- Primitive semantic analysis to detect logical flaws in assembly program before converting to machine code.
- Advanced Semantic Analysis for the assembly language, enabling validation and structured interpretation of programs before translation to machine code.
- Mapping multiple sequences of low-level instructions into a single mnemonic, enabling higher-level abstractions and more complex machine functionality with fewer lines of assembly code -
MACROS
This project includes a built-in reference manual for the custom ASM language that can be queried directly from your terminal. View full manual: asm-manual
Linux / Mac:
curl -O https://raw.githubusercontent.com/KARAN-D05/Assembler/main/asm-manual/run-asm-manual.sh
chmod +x run-asm-manual.sh
./run-asm-manual.shWindows:
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/KARAN-D05/Assembler/main/asm-manual/run-asm-manual.ps1" -OutFile "run-asm-manual.ps1"
powershell -ExecutionPolicy Bypass -File run-asm-manual.ps1- To follow along it is advised to check out the underlying hardware upon which we are building the assembly language.
- Check out Computing Machinery from scratch
- Source code, HDL, and Logisim circuit files are licensed under the MIT License.
- Documentation, diagrams, images, and PDFs are licensed under Creative Commons Attribution 4.0 (CC BY 4.0).
