Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

8085 random no generation

Status
Not open for further replies.

Dinesh Jain

Newbie level 2
Newbie level 2
Joined
Jan 17, 2014
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
13
i need to build a mini project at my college and i need to do this on 8085.i decided to work on digital dice but i don't know how to generate the random no on seven segment display using 8085.could someone help me out to to solve the problem and provide me the code or the way to implement the random generation of no in 8085 as soon as possible.it would be really helpful for me.
 

You can employ the rand() function available at stdlib.h library, which performs a pseudo-random generation.
https://www.cplusplus.com/reference/cstdlib/rand/

Just remark on selection of the seed number, which must be aleatory, in order to ensure different results at each generation.



+++
 

thanks andre for your concern but 8085 does not support c. It only works with assembly language.
 

thanks andre for your concern but 8085 does not support c. It only works with assembly language.
You mean to say, you don't use a C-compiler for it. But they definitely exist.

A LFSR pseudo random generator can be easily setup in assembler. Sampling a fast counter based on a user keypress should usually give sufficient randomness for small numbers.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top