This discussion is closed.
unregistered
Badges:
#1
Report 17 years ago
#1
hello y'all

we've got this assembler hmwk, could ya please help me out?

heres the question:

1.Write the sequence of key assembly language instructions, which corresponds to the following block of high level language code:

If N=10
Then N<1
Else N<N+1
EndIf

(NOTE:The "<" is just an arrow pointing to the left NOT a "less than" sign)

thanks, any help much appreciated!
0
salzy316
Badges: 0
#2
Report 17 years ago
#2
yeah ive just registered now, so i can have a proper username
0
EI_123
Badges: 0
Rep:
?
#3
Report 17 years ago
#3
If N=10
Then N<1
Else N<N+1
EndIf

That looks like Visual Basic code.

mov bx,N (obviously this is not exactly)
cmp bx,10
jz IF
ELSE:
;do else
IF:
;do if

Mayber that could help you.

Regards,
Mariano.
0
salzy316
Badges: 0
#4
Report 17 years ago
#4
thanks mate!!!!!!!!
0
EI_123
Badges: 0
Rep:
?
#5
Report 17 years ago
#5
You are welcome,

Nowadays I'm living and working as a C\C++ programmer in Spain.

What are you studying?

Regards,
Mariano.
0
salzy316
Badges: 0
#6
Report 17 years ago
#6
i'm studying A-Level Computing at college!
0
X
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

Following the government's announcement, do you think you will be awarded a fair grade this year?

Yes (535)
51.1%
No (512)
48.9%

Watched Threads

View All