M1 Flashcards

1
Q

is made up of an optional leading sign, one or more digits, and an optional suffix character indicating the number base

A

Integer Constants (or Integer Literal)

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

an optional suffix character inficating the number base

A

radix

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

is a command embedded in the source code that is recognized and acted upon by the assembler.

A

Directives

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

do not execute at runtime

A

directives

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

can define variables, macros, and procedures

A

directives

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

can assign names to memory segments

A

directives

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

one important function of assembler directives is to define program

A

selections or segments

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

identifies the area of the program containing variables

A

.data directive

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

identifies the area of the program containing executable instructions

A

.code directive

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

identifies the area of the program holding the runtime stack, setting its size

A

.stack 100

stack directive

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

is the statement that becomes executable when a program is assembled

A

instructions

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

labels are

A

optional

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

instruction mnemonic is

A

required

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

operand(s) is/are

A

usually required

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

comments are

A

optional

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

what is the basic syntax

A

[label:] mnemonic [operand][;comment]

17
Q

is an identifier that acts as a place marker for instructions and data

A

label

18
Q

a label placed just before an instruction implies the

A

instrcution’s address

19
Q

a label placed just before a variable implies the

A

variable’s address

20
Q

identifies the location of variable, providing a convenient way to reference the variable encoded

A

data labels

21
Q

assignes a numeric address to each label

A

assembler

22
Q

area of a program where intructions are located and must end with a colon (:) characher

A

code labels

23
Q

these are used as target of junming and looping instructions

A

code labels

24
Q

is a short word that identifies ans intruction

A

instruction mnemonic

25
Q

instruction mnemonic that moves(assigns) one value to another

A

mov

26
Q

instruction mnemonic that adds two values

A

add

27
Q

instruction mnemonic that subracts one value from another

A

sub

28
Q

instruction mnemonic that multiplies two values

A

mul

29
Q

instruction mnemonic that jumps to new location

A

jmp

30
Q

instruction mnemonic that calls a procedure

A

call

31
Q

assembly language instruction can have between X operands

A

0-3

32
Q

operands in the assembly language can be a

A

register, memory operand, constant expression, or input-output port

33
Q

is an important way of writers of a program to communicate information about the program’s design to person reading the source code

A

comments

34
Q

comments can be specified in two ways

A

single-line
mov eux, 5; move the value of 5 to eax

block comments
COMMENT !
this is a comment
this is also a comment
!