0
Light Poster
Write program in Assembly language which accepts two decimal digits from
its user, prints a new line on the display
screen, and if the first digit is larger than the second, displays the
average of the two digits (to the
nearest whole number) and otherwise displays the square root of the
product of the two digits (to
the nearest whole number). Then the program should return to DOS control.
Thus, if the user types
93
then the program displays
6
and if the user types
39
then the program displays
5
Hint: Think of easier way for square root calculation
0
Light Poster
i have just checke this site. I found it very useful.
great job,buddy!!!!
0
Go4Expert Founder
Quote:
Originally Posted by dreams
i have just checke this site. I found it very useful.
great job,buddy!!!!
Thanks for the comment.
0
Newbie Member
difference between addition of 8-bit numbers and 16-bit numbers
0
Newbie Member
salam
sir i need a exponential series program in assembly language.
i m looking forward for ur replay because i need it urgently i have to submitted on firday.
0
Newbie Member
Now i am learning assembly language programming.Would you mind providing me the details about this programming that how to write this?
0
Newbie Member
When we declare a variable like

var dw 92F3h its OK, but if we write it like
var dw B2F3, it gives an overflow error. Now to overcome this, we need to give a 0 before it.

var dw 0B2F3h. Now this works.

My question is why in certain cases we have to give the 0 ?
0
Newbie Member
39.A block starts at 0C20H and ends where 4 consecutive 00H are followed by FFH. Write a program to estimate the size of the block and store the count in BCD in COUNT.
0
Newbie Member
Write a program to fill 6410 locations with nos. as shown below: 1st 4 locations with 0FH
2nd 4 locations with 0EH
3rd 4 locations with 0DH
last 4 locations with 00H
and repeat the same till all locations are fully filled.
0
Newbie Member
58. Two blocks of bytes exist in 0C20H and 0C40H. When the interrupt 6. 5 key is pressed, for each pressing the larger of 1st bytes of each block is to be written in location 0C60H. Each block consists of 10 bytes and hence after 10 interrupts a new block shall exist in OC60H with larger bytes of the two blocks. Disable the interrupt after the new block formation.