The assignment is:
"Consider the following pseudo-code and write the corresponding assembly code for it.
Note: There is more credit for a shorter code.
and I've write the code:Code:if (al>bl) AND (bl>cl){ CX=1 }
Now please do it more shorter if possible, I'll much thankful to you.Code:[org 0x0100] mov al, 7 mov bl, 3 mov cl, 5 cmp al, bl ja L1 jmp done L1: cmp bl, cl jb done mov cx, 1 done: mov 0x4c00 int 0x21
Mood.




Reply With Quote