0% found this document useful (0 votes)
31 views

Object Code Generation SIC

The document describes an object code generation for a simple program. It includes the program code in hexadecimal format, with instructions to load the value 5 into memory location 000F and store it in memory location 000C. The object code generated for each instruction is shown in binary format with the opcode and displacement values.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Object Code Generation SIC

The document describes an object code generation for a simple program. It includes the program code in hexadecimal format, with instructions to load the value 5 into memory location 000F and store it in memory location 000C. The object code generated for each instruction is shown in binary format with the opcode and displacement values.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 6

OBJECT CODE GENERATION SIC

PROGRAM
MRS. SARASWATI R. BHUSANUR
0000 000F
0003 000C
0006 0012
0009 0013

000C
000F 000101  5 IN BINARY

0012 5A  ‘Z’ ACSII VALUE


90 , 90 IN HEXA IS 5A
0013
LDA (00) FIVE (000F)
OPCODE DISPLACEMENT
X
000000000000000000001111

0 0 0 0 0 F
STA (0C) ALPHA (000C)
OPCODE DISPLACEMENT
X
000010100000000000001010

0 C 0 0 0 C

You might also like