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.
This repository contains the code for Object Code generator which has the capability to generate Object Code for SIC or SIC/XE instructions.
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)
Main Window has 2 buttons to select the instruction type i.e. SIC button and SIC/XE button.
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 ).
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 ).
SIC instruction result
SIC/XE result.