Implement SIC Assembler by React Js



Background :
SIC computer architecture, which has five registers, each 24 bits long, and has both numeric and character representation:
Accumulator (A): The accumulator register that is used for arithmetic and logical operations. When an arithmetic or logical operation is performed, the result is stored in the accumulator.
Index (X): The index register that is used for indexing operations. It is often used to hold the base address of an array or table so that offsets can be added to it to access specific elements.
Linkage (L): The linkage register that is used to store the return address when calling subroutines.
Program Counter (PC): The program counter that holds the memory address of the next instruction to be executed. During program execution, the PC is incremented to point to the next instruction.
Status Word (SW): Contains various information, such as carry or overflow flags; known as the status word register.
And the formula for translating SIC instruction code to machine language:

Abstract :
In this project, I used Javascript to implement the assembly program for the SIC computer architecture. Two Pass and Three Data structures: