1.2.4 Types of Programming Language Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

what mnemonic is the same as the instruction add?

A

ADD

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what mnemonic is the same as the instruction subtract?

A

SUB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what mnemonic is the same as the instruction store?

A

STA

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what mnemonic is the same as the instruction load?

A

LDA

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what mnemonic is the same as the instruction input?

A

INP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what mnemonic is the same as the instruction output?

A

OUT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what mnemonic is the same as the instruction halt?

A

HLT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what mnemonic is the same as the instruction data?

A

DAT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what mnemonic is the same as the instruction branch if zero?

A

BRZ

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what mnemonic is the same as the instruction branch if positive?

A

BRP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what mnemonic is the same as the instruction branch if negative?

A

BRA

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Name 4 different methods of addressing memory?

A

Immediate addressing
Direct addressing
Indirect addressing
Indexed addressing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Describe immediate addressing?

A

The operand is the actual value upon which the instruction is to be performed, represented in binary,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Describe direct addressing?

A

The operand gives the address which holds the value upon which the instruction is to be performed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Describe indirect addressing?

A

The operand gives the address of a register which holds another address, where the data is located.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Describe indexed addressing?

A

An index register is used, which stores a certain value. The address of the operand is determined by adding the operand to the index register.