GATE Computer ScienceHardGATE CS (PYQ pattern)
A processor compares A = 0xF0 with B = 0x10 using an 8-bit subtraction A − B and sets flags like a normal ALU. Which statement describes the branch outcomes correctly?
- A. Unsigned 'higher' is true, and signed 'less than' is false
- B. Unsigned 'higher' is false, and signed 'less than' is true
- C. Unsigned 'higher' is true (A > B), and signed 'less than' is true (A < B)
- D. Unsigned 'higher' is false, and signed 'less than' is false
Correct answer: C. Unsigned 'higher' is true (A > B), and signed 'less than' is true (A < B)
As unsigned, 240 > 16; as signed, 0xF0 = −16 < 16. The subtraction gives 0xE0; unsigned condition 'higher' tests the borrow/carry and Z, signed 'less' tests N ⊕ V (N = 1, V = 0), whichever carry convention is used.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- Which statements about 8-bit number representations are correct? I. In one's complement, 0xFE + 0x02 with end-around carry gives 0x01. II…
- A 64 KB, 4-way set-associative write-back cache uses 64-byte blocks and 40-bit physical addresses. Each line also stores one valid bit…
- A disk has 4 platters. Both surfaces of every platter hold data except the top surface of the top platter and the bottom surface of the…
- A control store holds 1024 microinstructions. In horizontal form each word has one bit for each of 60 control signals, a 10-bit…
- A 5-stage pipeline has forwarding from EX/MEM and MEM/WB to the ALU inputs and also from MEM/WB to the data input of a store in MEM. The…
- A process has three segments of 102,400 B (code), 61,440 B (data) and 20,780 B (stack). Each segment is allocated separately in whole…