All mock tests are FREE till 31 December — register to save your progress
Unit 2 · Computer System Architecture Paper 2 CS · December 2019

The following program is stored in the basic computer: 010 CLA; 011 ADD 016; 012 BUN 014; 013 HLT; 014 AND 017; 015 BUN 013; 016 C1A5; 017 93C6. Give the accumulator contents (hex) after execution.

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. 8184

Explanation

AC = 0, then + C1A5 = C1A5. Jump to 014: AND with 93C6 gives C1A5 & 93C6 = 8184. Jump to 013 and halt.

More Computer System Architecture questions