Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 1.31 KB

README.md

File metadata and controls

49 lines (30 loc) · 1.31 KB

Instruction-Set-Architecture

Info:

* Developed an I.S.A using two pass assembler which performs 
  Basic Arithmetic and Logical Operations

* I.S.A which understand user inputs(assembly language codes (32 bits)) 
  and gives desired outputs

Two pass assembler Implementation with Instruction Set Architecture

Pass 1 : 	* Read Assembly Language Instructions from Console and create the symbol table, 
		  mnemonic op-code table and operand fields;  
		  then convert the whole instructions into Machine Level code.
		
		* Determine the storage required for each Assembly Language statement 
		  and Update the location counter.
		
		
Pass 2 :	Extract the Instructions from Machine Code File, using translation of op-code 
		and symbolic operands specified by I.S.A;
		then generate value defined by different instructions.

Instructions:

• Run "part1.c", giving Assembly Language Instructions From Console

• then Run "part2.c", and get the desired results.

Sample Program

1.  gcc part1.c
    MOVI $15 R01     // Move value 15 to register R01
    MOVI $25 R02    // Move value 25 to register R01
    ADD R02 R01     // Add value R02 = R02 + R01 and store in register R02
    PRINT R02       // Print R02
    HLT             // End of Program
    
2.  gcc part2.c    // Outputs 40