THE "DE-TRANSLATED" ASSEMBLY CODE

Working backwards from machine language, we lose the names of operands and thus can only refer to the actual addresses.

OBJECT PROGRAM:

 

Address
Machine Language
Meaning
00000
1101 000000010010
IN 18
00010
1101 000000010100
IN 20
00100
0000 000000010010
LOAD 18
00110
0111 000000010100
COMPARE 20
01000
1001 000000001110
JUMPGT 14
01010
1110 000000010010
OUT 18
01100
1000 000000000000
JUMP 00
01110
1111 000000010100
OUT 20
10000
1111 000000000000
HALT
10010
0000 000000000000
(X = 0)
10100
0000 000000000000
(Y = 0)


[Prev] [Next]


CS1104 Main Page
Last Updated 03/04/2000
©J.A.N. Lee, 2000