عند hw مو عارفة احلوه رجاء ساعدوني اذا في مجال الحل قبل 5/
5/2
\Read two one-digit positive decimal numbers from the user and subtract the first from
the second. Output the answer as a decimal number and as an 8-bit binary number.
2-
Write an assembly code to read three numbers named X, Y and Z, from the user. Your
program should find the smallest number and stores it in a fourth variable W
.
3- Rewrite the following C-code in assembly language:
int x, y;
cout<<"enter the value of x";
cin>> x;
cout<<"enter the value of y";
cin>>y;
while (x != y){
if (x > y)
x = x - y ;
else
y = y - x ;
}
cout<<"the value of x = "<<x;
4-
Write an assembly language program that reads exactly 10 characters from the user
and stores them in an array. Your program sorts the ten characters into ascending
order by ASCII code and then prints the list of sorted characters on the next line.
5- Write an assembly language program that perform following functionality when
executed:
· Make a new file at a folder named “myfolder”.
· Open file when we press key “O”
· Close file when we press key “C”
· And file is deleted when we press “D”