Question

Write an assembly language program that will implement the following: If ( (AX >=BX) || (CX...

Write an assembly language program that will implement the following: If ( (AX >=BX) || (CX < DX) ) goto LoopA Else go to LoopB..

Homework Answers

Answer #1

1). ANSWER :

GIVENTHAT :

Write an assembly language program

CMP AX, BX               ; comapre Ax to BX
JGE LoopA               ; jump to LoopA if AX is greater than or equal to BX
CMP CX, DX               ; compare CX to BX
JL LoopA               ; jump to LoopA if CX is less than DX
LoopB:                   ; LoopB is reached when both conditions fails
LoopA:                    ; LoopA

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Write an assembly language program that will implement the following:       If ( (AX >=BX) AND (CX...
Write an assembly language program that will implement the following:       If ( (AX >=BX) AND (CX < DX) ) goto LoopA Else go to LoopB (Here I want you to write the whole assembly program that could run in CMD. THANK YOU
Prove that the following arguments are invalid. 1. (∃x) (Ax * ~Bx) 2. (∃x) (Ax *...
Prove that the following arguments are invalid. 1. (∃x) (Ax * ~Bx) 2. (∃x) (Ax * ~Cx) 3. (∃x) ( ~Bx * Dx) / (∃x) [Ax *(~Bx * Dx)]
9) Choose the correct Assembly Language code that will do the following: If dog is equal...
9) Choose the correct Assembly Language code that will do the following: If dog is equal to cat THEN go to LOOP_A ELSE go to LOOP_B if(dog == cat) goto LOOP_A else goto LOOP_B Question 9 options: cmp cat,dog jnz LOOP_A jmp LOOP_B mov AX,cat cmp AX,dog jz LOOP_A jmp LOOP_B mov AX,dog cmp AX,cat js LOOP_A jmp LOOP_B mov AX,cat cmp AX,dog js LOOP_A jmp LOOP_B
Write a program in Assembly language that calculates the maximum and minimum of 10 numbers stored...
Write a program in Assembly language that calculates the maximum and minimum of 10 numbers stored in memory and writes them to the memory locations. #using loop num: dw 56, 45, 36, 67, 76, 22, 89, 12, 29, 83 min: dw 0 max: dw 0 I wrote a codem but I got an error when I executed it [ORG 0x0100] jmp start num: dw 56, 45, 36, 67, 76, 22, 89, 12, 29, 83 min: dw 0 max: dw 0...
Write and test code in MIPS assembly language program to implement algorithms "The Non-Restoring Algorithm "of...
Write and test code in MIPS assembly language program to implement algorithms "The Non-Restoring Algorithm "of an 8-bit integer the user shoud insert the number then by the algo well find the square root
Write an assembly intel 8088 16 bit code,(The 8088 includes has four 16-bit data registers (AX,...
Write an assembly intel 8088 16 bit code,(The 8088 includes has four 16-bit data registers (AX, BX, CX and DX). BX can also be used as an address register for indirect addressing. The most/least significant byte of each register can also be addressed directly) using push, pop, and stack print the array 9,10,1,2,3,4,5,6,7,8 please show the output .
Implement the following pseudocode in a MIPS assembly program. if ($t1 < $t2) { $t6 =...
Implement the following pseudocode in a MIPS assembly program. if ($t1 < $t2) { $t6 = $t2 } else { $t6 = $t1 } $t6 = $t6 + 1
Given the components of the vectors, A, B, and C Ax = 5 Bx=4 Cx =10...
Given the components of the vectors, A, B, and C Ax = 5 Bx=4 Cx =10 Ay = -3 By=6 Cy =6 Az = 10 Bz=-2 Cz =0 Find (a) AiCiBx, (b) AiAyBi, (c) AiBiCj , and (d) AiBiCjAk
Implement the following C++ code in assembly language. Substitute calls to WriteString for the printf() function...
Implement the following C++ code in assembly language. Substitute calls to WriteString for the printf() function calls: double X; double Y; if(x<Y) printf("X is lower\n"); else printf("X is not lower\n");
Write an assembly language program that reverses all the bits of a 32-bit number. (Without using...
Write an assembly language program that reverses all the bits of a 32-bit number. (Without using RBIT instruction) Write an assembly language program that checks whether an unsigned number is perfect square or not.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT