COMPUTER FUNDAMENTALS

INTRODUCTION TO COMPUTERS

COMPUTER ARCHITECTURE AND ORGANIZATION

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
GETC is equivalent to
A
TRAP 20
B
TRAP 21
C
TRAP 23
D
TRAP 25
Explanation: 

Detailed explanation-1: -Privilege mode The LC-3 specifies two levels of privilege, Supervisor mode (privileged) and User mode (unprivileged). Interrupt service routines execute in Supervisor mode. The privilege mode is specified by PSR[15]. PSR[15] = 0 indicates Supervisor mode; PSR[15] = 1 indicates User mode.

Detailed explanation-2: -An ordinary symbol is defined in: The name entry in a machine or assembler instruction of the assembler language. One of the operands of an EXTRN or WXTRN instruction.

Detailed explanation-3: -No, this would require the previous instruction to be both zero and positive at the same time. Numbers cannot do that.

There is 1 question to complete.