ashish-mj / Object-Code-Generator

This project generates object code for given SIC or SIC/XE instruction. It is basically partial implementation pass 2.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Object-Code-Generator

Object Code is the output of an assembler after it processes source code. Both SIC and SIC/XE assembler basically uses two algorithms to generate the object code namely Pass 1(to define symbols) and Pass 2(to generate object code).The Object Code Generator is a partial implementation of Pass 2. User has to provide a single SIC or SIC/XE instruction for which the object code has to be generated. For SIC instruction the user has to provide three inputs i.e. Mnemonic opcode, operand, operand address and for the SIC/XE instruction the user has to providefive inputs i.e. Mnemonic opcode, operand, operand address, PC(next instruction address), base address. The Object Code generator will provide an User Interface to select the instruction type and enter the inputs.

About this repository

This repository contains the code for Object Code generator which has the capability to generate Object Code for SIC or SIC/XE instructions.

Requirements

Programming Language - Python 3.6
Modules - Tkinter ( You don’t need to worry about installation of the Tkinter module as it comes with Python default)

Screenshots

ogc

Main Window has 2 buttons to select the instruction type i.e. SIC button and SIC/XE button.

SIC_window

SIC Window has three input fields i.e. Mnemonic opcode , Operand, Operand Address and a text label to display the output. There are two buttons, Generate (generate opcode) and Clear (clear the input fields ).

SICXE_window

SIC/XE Window has five input fields i.e. Mnemonic opcode,Operand,Operand Address,PC Address, Base Address and a text label to display the output. There are two buttons,Generate(generate opcode) and Clear(clear the input fields ).

g5

SIC instruction result

s8

SIC/XE result.

About

This project generates object code for given SIC or SIC/XE instruction. It is basically partial implementation pass 2.


Languages

Language:Python 100.0%