Create a sequence of assembly language statements for the following HLL statements: if (y > z) { y = 4;
Posted: Sun May 15, 2022 1:24 pm
Create a sequence of assembly language statements for
the following HLL statements:
if (y > z)
{
y = 4;
}
z = 8;
You may use the following assumptions:
# Assumptions:
# the values 1, 2, 3, 4, 5, 6, 7, 8, 9 have
already been stored in registers 1, 2, 3, 4, 5, 6, 7, 8, 9,
respectively.
# registers A, B, C, D, and E are available for use as
needed.
#
# storage location 700 holds the current value of x
(previously stored there)
# storage location 800 holds the current value of y
(previously stored there)
# storage location 900 holds the current value of z
(previously stored there)
# End Assumptions
the following HLL statements:
if (y > z)
{
y = 4;
}
z = 8;
You may use the following assumptions:
# Assumptions:
# the values 1, 2, 3, 4, 5, 6, 7, 8, 9 have
already been stored in registers 1, 2, 3, 4, 5, 6, 7, 8, 9,
respectively.
# registers A, B, C, D, and E are available for use as
needed.
#
# storage location 700 holds the current value of x
(previously stored there)
# storage location 800 holds the current value of y
(previously stored there)
# storage location 900 holds the current value of z
(previously stored there)
# End Assumptions