Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1) The following program is a list of instructions for the Basic Computer in hex

ID: 3550677 • Letter: 1

Question

1) The following program is a list of instructions for the Basic Computer in hexadecimal code.  The computer executes the instructions starting from address 100.

Show the Symbolic instructions with the AC values in the sequence that they are executed.

Note:

1)      The complement of a hexadecimal character is computed such that the hexadecimal character plus its complement = 15; i.e. the complement of 0 is F and of A is 5 .

2)      Do not include instructions that are not executed

2) List the locations and hexadecimal code of the Assembly Language program below. The locations should be in hexadecimal starting with 100 and ending with 10B.

3) List and briefly define four different kinds of assembly language statements.

The following program is a list of instructions for the Basic Computer in hexadecimal code. The computer executes the instructions starting from address 100. Show the Symbolic instructions with the AC values in the sequence that they are executed. The complement of a hexadecimal character is computed such that the hexadecimal character plus its complement = 15; i.e. the complement of 0 is F and of A is 5 . Do not include instructions that are not executed List the locations and hexadecimal code of the Assembly Language program below. The locations should be in hexadecimal starting with 100 and ending with 10B. List and briefly define four different kinds of assembly language statements.

Explanation / Answer

The table filled in the sequence of execution is as follows:


2)

The Hexadecimal instruction of the give assembly is as follows:


3)

a) CLA - this is an assebly instruction to tell the processor to clear the contents of the Accumulator. Hence Accumulator is loaded with 0x0000.

b) INC - This assembly instruction Increments the contents in the accummulator by 1 and loads the carry(if any) to E.

c) BUN m - This instruction tells the processor to branch unconditionally to the location specified by m.

d) HLT - This instruction is for the processor to HALT the excution of all the instructions.


Hope this helps. Please feel free to contact if any further info is needed.

Location Symbolic instruction comment AC 100 7800 - CLA Clear the accumulator, AC = 0 0 101 2109 - LDA 109 Load the AC with value at 109 8000 102 4107 - BUN 107 Brach to 107 8000 107 7020 - INC Increment AC 8001 108 4103 - BUN 103 Brach to 103 8001 103 7008 - SNA Skip if AC is negative and AC is negative and skips the next instruction 8001 105 7200 - CMA Compliment AC 7FFE 106 7001 - HLT Halt the program 7FFE