Skip to content

Rahulkumar003/Assembler-simulatior

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

The given code is a Python program that converts assembly code instructions into binary code. Here is a brief summary of its functionality:

1. The code defines dictionaries for opcodes, instruction types, and registers.
2. It initializes variables, labels, and error lists.
3. There are several helper functions for converting decimal to binary, handling different types of encoding, and generating binary code.
4. The code reads assembly code from standard input and stores it in a 2D list.
5. It processes the assembly code line by line, identifies variables and labels, and generates corresponding binary code.
6. The generated binary code is stored in a list.
7. Finally, the code checks for errors such as missing instructions or incorrect operands, and outputs either the binary code or the list of errors.

Overall, the code performs assembly code to binary code conversion with error checking.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published