Docsity

Assembly Chapter 4 | CS - Software Engineering, Quizzes of Software Engineering

Toggle sidebar
bg1
TERM 1
What does intmul
do?
DEFINITION 1
multiply two valuesit does not mulitply 8-bit operands
TERM 2
What does bound
do?
DEFINITION 2
it checks a 16/32 bit to see if it is between 2 values. If it is
outside the range, an exception is raised, and it
aborts.bound(register 16/32, lower number to check, upper
number)bound(register 16/32, mem16/32[2/4]
TERM 3
what does the into statement
do?
DEFINITION 3
checks to see if the overflow flag is set. Usually ran after
arithmetic operation. if the overflow flag is set, an intoInstr
exception is thrown.into();
TERM 4
what does the const decloration
do?
DEFINITION 4
lets you declare identifiers whose values is constant
throughout compilation and runtime.
TERM 5
what does the val section
do?
DEFINITION 5
lets you declare symbolic constants whose values can
change at compile time, but whose values are constant at
runtime.(the same name can have a different value at
several points in the source code, but the value of val
symbol at a given point cannot change while it is running.)
pf2

Partial preview of the text

Download Assembly Chapter 4 | CS - Software Engineering and more Quizzes Software Engineering in PDF only on Docsity!

TERM 1

What does intmul

do?

DEFINITION 1 multiply two valuesit does not mulitply 8-bit operands TERM 2

What does bound

do?

DEFINITION 2 it checks a 16/32 bit to see if it is between 2 values. If it is outside the range, an exception is raised, and it aborts.bound(register 16/32, lower number to check, upper number)bound(register 16/32, mem16/32[2/4] TERM 3

what does the into statement

do?

DEFINITION 3 checks to see if the overflow flag is set. Usually ran after arithmetic operation. if the overflow flag is set, an intoInstr exception is thrown.into(); TERM 4

what does the const decloration

do?

DEFINITION 4 lets you declare identifiers whose values is constant throughout compilation and runtime. TERM 5

what does the val section

do?

DEFINITION 5 lets you declare symbolic constants whose values can change at compile time, but whose values are constant at runtime.(the same name can have a different value at several points in the source code, but the value of val symbol at a given point cannot change while it is running.)

TERM 6

How do you use a single quotes while inside a

string constant?

DEFINITION 6 You use two quotes!"He wrote a ""Hello World"" program" TERM 7

How can you specify character constants?

DEFINITION 7 #integer_constant#13 / #$d / #% TERM 8

which is legal: mov("STRING",al);

mov("TEXT", al);

DEFINITION 8 mov(text, al) is legalyou cannot move a string literal constant into the AL register TERM 9

What does enum

do?

DEFINITION 9 lets you associate a list of names with a new type