Write an assembly language program that will take an integerand find the largest
ID: 3610216 • Letter: W
Question
Write an assembly language program that will take an integerand find the largest prime number that will divide into it with noremainder. The result will be an integer. Must use Subroutines.Program starts at address x3000. Input must come from keybaord.Output must go to screen. Please include comments at each lineexplaining what is happening and why it was done this way. Write an assembly language program that will take an integerand find the largest prime number that will divide into it with noremainder. The result will be an integer. Must use Subroutines.Program starts at address x3000. Input must come from keybaord.Output must go to screen. Please include comments at each lineexplaining what is happening and why it was done this way.Explanation / Answer
Write a program inassembly language that calculates the sum of first five odd numbers(1, 3, 5, 7, 9) and stores the result in AX register.You can do it with the help of loop (initialize AX register withvalue 0 and BX with value 1, and then on each iteration of loop addBX into AX and add value 2 in BX).
You are NOT allowed to define the data (like num1: dw 1, 3, 5, 7,9)
[org 0x100]
mov ax, 0;
mov bx, 1;
mov cx, 4;
add ax, bx;
start: add bx, 2;
add ax, bx;
sub cx, 1;
cmp cx, 0;
jne start;
mov ax, 0x4c00;
int 0x21 please rate as lifesavor.regards
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.