Object Code Generation For SICxe
Object Code Generation For SICxe
Þ 0030 – 0003= 2D
17202D
Length of the program -1073
0110 1001 0010 02D 0110 1001 0010 0000 0010 1101
69202D
Length of the program -1073
=> 4 B 1 0 1 0 3 6
Length of the program -1073
Þ 032026
Length of the program -1073
5. COMP #0 FORMAT 3
OPCODE (6 BITS) n i x b p e Disp (12 bits)
0010 10 0 1 0 0 0 0 000
Þ 2 9 0 000
Length of the program -1073
Þ 332007
Length of the program -1073
=> 4 B 1 0 1 0 5 B
Length of the program -1073
8. J CLOOP FORMAT 3
OPCODE (6 BITS) n i x b p e Disp (12 bits)
0011 11 1 1 0 0 1 0 FEC
Þ 3F2FEC
Length of the program -1073
Þ 032010
Length of the program -1073
Þ 0F200D
Length of the program -1073
11. LDA #3
OPCODE (6 BITS) n i x b p e Disp (12 bits)
0000 00 0 1 0 0 0 0 003
Þ 010003
Length of the program -1073
Þ 0F200D
Length of the program -1073
Þ 4B10105B
Length of the program -1073
Þ 3E2003
Length of the program -1073
Þ 75101000
Length of the program -1073
Þ E32017
Length of the program -1073
Þ 332FFA
Length of the program -1073
Þ DB2011
Length of the program -1073
Þ 332008
Length of the program -1073
Þ Disp = BUFFER– (PC) = 0036 – 1051= FFFF EFE5 LARGE MEMEORY SIZE
BUFFER=DISP+(B)
=>DISP= BUFFER- (B)=0036 - 0033 = 003
base-relative: 0~4095
pc-relative: -2048~2047
Length of the program -1073
Þ 3B2FEA
Length of the program -1073
=> Disp = LENGTH– (PC) = 0033 – 1059 = FFFF EFDA PC RELATIVE CANNOT
ACCOMMODATE THE MEMEORY
base-relative: 0~4095
pc-relative: -2048~2047
Length of the program -1073
OBJECT CODE = F1
Length of the program -1073
VALUE OF LENGTH=DISP+(B)
Þ 774000
Length of the program -1073
Þ E3200F
Length of the program -1073
Þ 332FEC
Length of the program -1073
53C003
Length of the program -1073
Þ DF2006
Length of the program -1073
Þ 3B2FEF
Length of the program -1073
OBJECT CODE = 05