Skip to content

Ofek-Carpassi/Assembler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔧 Assembler

Project Grade: UNKNOWN

Welcome to the Assembler repository, the culmination of our efforts in the "Systems Programming Laboratory" (20465) course at the Israel Open University. Crafted with precision in C, this repository houses a sophisticated assembler tailored for a specific assembly language, aimed at emulating the functionality of common system programs.

📚 Table of Contents

🏗️ Project Structure

The project boasts a meticulously organized structure, with each component residing in its designated C and header files. This modular approach champions code readability and adherence to strict coding standards. The assembler operates seamlessly through three fundamental stages:

  1. Pre-Assembler:
    Sequentially processes the source file, adeptly identifying and cataloging macro definitions. Subsequent macro calls are deftly substituted with these definitions, enhancing program coherence.

  2. First Pass:
    Executes a comprehensive scan, diligently identifying labels and constants. Additionally, this pass seamlessly translates all translatable components into binary format, laying the groundwork for the second pass.

  3. Second Pass:
    Focuses on resolving components that remained unresolved in the first pass, culminating in their translation into binary format, ensuring the assembly process's completion.

🚀 Getting Started

Prerequisites

Before diving into the realm of assembly, ensure your arsenal includes:

  • GCC compiler
  • Ubuntu system (Windows compatibility anticipated)

Installation

  1. Clone the Assembler repository: git clone https://github.com/Ofek-Carpassi/Assembler.git
  2. Navigate to the assembler's directory: cd Assembler
  3. Compile the program using the makefile: i makefile

💻 Usage

Execute the compiled program using the command: ./assembler file1 file2 ... fileN% Marvel as it effortlessly generates machine code from the provided assembly files.

Testing

Explore the world of assembly with confidence, armed with several provided assembly language input files. These files not only demonstrate various operations and data types but also serve as a practical test for the assembler's robust error handling.

Documentation

Embark on a journey of understanding with comprehensive documentation accompanying each function in the source code. Dive into the details of the program's functionality through clear header comments, explaining their purpose and usage. Detailed code comments further enhance your understanding, ensuring a smooth exploration.

Contributions

In the context of this project, contributions are like cherished treasures—while not actively solicited, they are warmly welcomed and greatly valued.

Written by

Crafted with dedication by Ofek Carpassi and Natanel Sorokin. All rights reserved.

This project is licensed under the MIT License - see the LICENSE file for details.

About

A comprehensive assembler for a specific assembly language, written in C. The purpose is to simulate the operation of common system programs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages