返回卡包市场

Chapter 14 - Assembly Language

暂无描述。系统推荐的高质量记忆内容,适合每天坚持背诵学习。

卡片总数: 18内容版本: v4公开卡包更新时间: 8/1/2026

卡片预览 (18 张)

#1
正面 (问题)

What is a mnemonic

背面 (解答)

A mnemonic is a letter representation of machine code

#2
正面 (问题)

What is a numeric code? Describe 1xx

背面 (解答)

A numeric code consists of 3 characters. ADD’s numeric code is 1xx. The first character is an OP code (which defines the function of mnemonic) and the xx is the operand which describes the memory address/value the OP code functions upon.

#3
正面 (问题)

Instruction: Add

背面 (解答)

Mnemonic: ADD Adds the contents of the memory address to the accumulator

#4
正面 (问题)

Instruction: Subtract

背面 (解答)

Mnemonic: SUB Subtracts the contents of the memory address from the accumulator

#5
正面 (问题)

Instruction: Store

背面 (解答)

Mnemonic: STA Stores the value in the accumulator in the memory address given

#6
正面 (问题)

Instruction: Load

背面 (解答)

Mnemonic: LDA Load the accumulator with the contents of the memory address given.

#7
正面 (问题)

Instruction: Branch (always) (uncondictional)

背面 (解答)

Mnemonic: BRA Branch - always uses the address given as the address of the next instruction (by changing PC).

#8
正面 (问题)

Instruction: Branch if zero

背面 (解答)

Mnemonic: BRZ Branch to the address given if the accumulator is zero

#9
正面 (问题)

Instruction: Branch If Positive

背面 (解答)

Mnemonic: BRP Branch to the address given if the accumulator is zero or positive

#10
正面 (问题)

Instruction: Input

背面 (解答)

Mnemonic: INP Input into the accumulator

#11
正面 (问题)

Instruction: Output

背面 (解答)

Mnemonic: OUT Output contents of the accumulator

#12
正面 (问题)

Instruction: Halt

背面 (解答)

Mnemonic: HLT Stops the execution of the program

#13
正面 (问题)

Instruction: Data

背面 (解答)

Mnemonic: DAT Used to indicate a location that contains data.

#14
正面 (问题)

Which LMC instructions allow you to change the Program Counter (PC)

背面 (解答)

Branch (unconditional) - BRA, Branch if zero (conditional) - BRZ, Branch if positive (conditional) - BRP.

#15
正面 (问题)

Addressing mode (overview)

背面 (解答)

The last 2 digits within the operation code (OP code)

#16
正面 (问题)

Addressing mode (detail)

背面 (解答)

intermediate addressing: the operand is the actual value upon which the instruction is to be performed upon direct addressing: the operand holds the memory address location of the value to be operated upon (only mode available in LMC) indirect addressing: the operand is the location (typically a register) which holds the address we want - a larger range of accessible locations indexed addressing: the address of the operand is obtained by adding the contents of a general register (index register) to a constant value. Included in istruction code and used to access arrays with successive order

#17
正面 (问题)

General use of LMC

背面 (解答)

When you write something in LMC, the specific line you write it on means that it gets stored within that memory address location in RAM.

#18
正面 (问题)

Explain the buses and registers when the line SUB ONE is executed (exam question).

背面 (解答)