Logo 
Search:

Assembly Language Article

Submit Article
Comments on Write the following procedures : a. A procedure READ that lets the user enter a binary number and stores it in AX. b. A procedure RANDOM..............
Category: Assembly Language (General)    Author: Easy Tutor

The following method can be used to generate random number in
the range 1 to 32767.

Start with any number in this range.
Shift left once.
Replace bit 0 by XOR of bits 14 and 15.
Clear bit 15.

Write the following procedures :
a. A procedure READ that lets the user enter a binary number and stores it in AX.
b. A procedure RANDOM that recieves a number in AX and returns
a random number in AX.
c. A procedure WRITE that displays AX in binary.

Write a program that displays a '?', calls READ to read a) binary number, and calls RANDOM and WRITE to compute and display 100 random numbers. The numbers should be displayed four per line, with four blanks separating the numbers.


Usman Malik
Usman Malik from PakistanJan 02
THIS IS REALY WONDERFUL HELP FOR STUDENTS
I AM LOOKING FOR ASSEMBLY LANGUAGE PROGRAMS IN BOOK BY YTHA YU
THIS HELPS ME LOT .


Please enter your Comment
  • Comment should be atleast 15 Characters.
  • Please put code inside [Code] your code [/Code].