• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/41

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

41 Cards in this Set

  • Front
  • Back
Identify valid suffix characters used in integer constants.
h, q, o, d, b, r, t, y.
Is A5h a valid hexadecimal constant?
No a leading zero is required. (0A5h)
Does the multiplication operator (*) have higher precedance than the division operator (/) in integer expressions?
No (they have the same precedence)
Write a constant experession that divides 10 by 3 and returns the integer remainder.
10 MOD 3
Show an example of a valid real number constant with an exponent.
+3.4E-02
Must string constants be enclosed in single quotes?
No they can also be enclosed in double quotes.
Reserved words can be instruction mnemonics, attributes, operators, predefined symbols, and _______
directives (.code, .data, .stack)
What is the maximum length of an identifier?
247 characters
T/F. An identifier cannot begin with a numeric digit.
True
T/F. Asssembly language identifiers are (by default) case sensitive.
True
T/F. Assembler directives execute at runtime.
False
T/F. Assembler directives can be written in any combination of upper and lowercase letters.
True
Name the four basic parts of an assembly language instruction.
Label, mnemonic ,operand(s), comment.
T/F. MOV is an example of an instruction mnemonic.
True
T/F. A code label is followed by a colon(:), but a data label does not have a colon.
True
Show an example of a block comment.
Comment !
This is a comment
This is also a comment
!
Why would it not be a good idea to use numberic addresses when writing instructions that access variable?
Because the addresses coded in the instructions would have to be updated whenever new variables were inserted before existing ones.
Create an uninitialized data declartion for a 16-bit signed integer.
var1 SWORD ?
Create an uninitialized data declartion for a 16-bit signed integer.
var1 SWORD ?
Create an uninitialized data declaration for an 8-bit unsigned integer.
var2 BYTE ?
Create an uninitialized data declaration for an 8-bit signed integer.
var3 SBYTE ?
Create an uninitialized data declaration for an 8-bit unsigned integer.
var2 BYTE ?
Create an uninitialized data declaration for a 64-bit integer.
var4 QWORD ?
Create an uninitialized data declaration for an 8-bit signed integer.
var3 SBYTE ?
Which data type can hold a 32-bit signed integer?
SDWORD
Create an uninitialized data declaration for a 64-bit integer.
var4 QWORD ?
Declare a 32-bit signed integer variable and initialize it with the smallest possible negative decimal value.
var5 SDWORD -2147483648
Which data type can hold a 32-bit signed integer?
SDWORD
Declare an unsigned 16-bit integer variable named wArray that uses three initializers.
wArray WORD 10,20,30
Declare a 32-bit signed integer variable and initialize it with the smallest possible negative decimal value.
var5 SDWORD -2147483648
Declare a string variable containing the name of your favorite color. Initialize it as a null-terminated string.
myColor BYTE "blue", 0
Declare an unsigned 16-bit integer variable named wArray that uses three initializers.
wArray WORD 10,20,30
Declare an uninitialized array of 50 unsigned doublewords named dArray.
dArray DWORD 50 DUP(?)
Declare a string variable containing the name of your favorite color. Initialize it as a null-terminated string.
myColor BYTE "blue", 0
Declare a string variable containing the word "TEST" repeated 500 times.
myTestString BYTE 500 DUP("Test")
Declare an uninitialized array of 50 unsigned doublewords named dArray.
dArray DWORD 50 DUP(?)
Declare a string variable containing the word "TEST" repeated 500 times.
myTestString BYTE 500 DUP("Test")
Declare an array of 20 unsigned bytes name bArray and initialize all elements to zero.
bArray BYTE 20 DUP(0)
Show the order of inidividual bytes in memory (lowest to highest) for the follow double word variable:
val1 DWORD 87654321h
21h, 43h, 65h, 87h
Write a statement that causes the assembler to calculate the number of bytes in the following array, and assign the value to a symbolic constant named ArraySize:
myArray WORD 20 DUP(?)
ArraySize = ($ - myArray)
Show how to calculate the number of elements in the following array, and assign the value to a symbolic constant named ArraySize:
myArray DWORD 30 DUP(?)
ArraySize = ($ - myArray) / 4
4 because of type DWORD (4 bytes)