FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
LDA, STO, ADD are examples of what?
A
Registers in the CPU.
B
Random letters thrown together to impress people.
C
High level language code.
D
Commands from assembly code.
Explanation: 

Detailed explanation-1: -LDA (short for “LoaD Accumulator") is the mnemonic for a machine language instruction which retrieves a copy from the specified RAM or I/O address, and stores it in the accumulator.

Detailed explanation-2: -The instructions LDA and STA move data between memory and A . The instruction MOV either moves data between registers, or between a register and a memory location specified by HL . LDA and STA are used when the address can be resolved at assembly/link time.

Detailed explanation-3: -The add instruction adds together its two operands, storing the result in its first operand. Note, whereas both operands may be registers, at most one operand may be a memory location. The inc instruction increments the contents of its operand by one. The dec instruction decrements the contents of its operand by one.

Detailed explanation-4: -An opcode is a single instruction that can be executed by the CPU. In machine language it is a binary or hexadecimal value such as ‘B6’ loaded into the instruction register. In assembly language mnemonic form an opcode is a command such as MOV or ADD or JMP.

There is 1 question to complete.