https://github.com/aarya-gupta/co_project
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (6.1%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: Aarya-Gupta
- Language: Python
- Default Branch: main
- Size: 70.3 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Assembler Simulator
We programmed an assembler, which takes input from the text file (containing assembly language) and generates an output text file(stdout). The program reads a text file whose line can be of 3 types(as mentioned in the question). All the variables are defined at the top.
First, it checks instructions (whether they are as per the supported syntax(as mentioned in the instructions & reports if any error is found. The assembler can handle all supported instructions, Labels, and Variables. code for checking errors separately, including typos in instruction name or register name, ) Use of undefined variables ) Use of undefined labels ) Illegal use of FLAGS register ) Illegal Immediate values (more than 7 bits) ) Misuse of labels as variables or vice-versa ) Variables not declared at the beginning ) Missing hlt instruction ) hlt not being used as the last instruction
The assembler is capable of printing these errors. If the code is error-free, then it generates a corresponding binary. (defined different functions to convert the instruction outputes in binary.)
The functions defined are as follows : add sub movv mov mul div rs ls XOR OR AND NOT cmp jmp jlt jgt je addf hlt load st. All the above mentioned functions have their obvious meanings and take obvious arguments as their parameters. The whole code comprises extensive use of file handling, functions, dictionaries, conditional and iterative loops.
Owner
- Login: Aarya-Gupta
- Kind: user
- Repositories: 1
- Profile: https://github.com/Aarya-Gupta