assembly programming 8085

Status
Not open for further replies.

The final program is on post no. 17.
 
Doesn't anyone use pseudo code anymore to break a simple problem like this down and eventually substitute the pseudo statement with real mnemonics.

count=0

1. if count equal to 255 goto 3
2. if button up pressed then count=count+1

3. if count equal to zero goto 1
4. if button down pressed then count=count-1
5. goto 1

or something along these lines...Use a time delay to prevent switch debounce if required or another way to prevent the count up/down buttons being held
It's assembler so jmps/gotos are allowed.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…