meowth08
Member
Hi,
I am beginning to learn assembly programming.
This is my first homework. Hopefully I will be able to get it.
I am tasked to create a routine (using 8085 instructions) of an 8 bit counter (00 to FF).
The counter works like this.
It has “count up” and “count down” buttons.
It starts in 00.
If I press “count up”, 00 becomes 01.
If I press “count up” again, 01 becomes 02.
If I press “count up” again, 02 becomes 03.
When I press “count down”, 03 becomes 02.
The increment/decrement is always 01.
Note:
When the count is 00 and “count down” is pressed, the 00 count remains.
Also, when the count is FF and “count up” is pressed, the FF count remains.
Please help me with the programming. Thank you in advance.
If you can give me the exact code, I believe it will be very helpful on my part.
I’ll just have to simulate it in the simulator that I downloaded and study how the step by step mnemonics work.
meowth08
I am beginning to learn assembly programming.
This is my first homework. Hopefully I will be able to get it.
I am tasked to create a routine (using 8085 instructions) of an 8 bit counter (00 to FF).
The counter works like this.
It has “count up” and “count down” buttons.
It starts in 00.
If I press “count up”, 00 becomes 01.
If I press “count up” again, 01 becomes 02.
If I press “count up” again, 02 becomes 03.
When I press “count down”, 03 becomes 02.
The increment/decrement is always 01.
Note:
When the count is 00 and “count down” is pressed, the 00 count remains.
Also, when the count is FF and “count up” is pressed, the FF count remains.
Please help me with the programming. Thank you in advance.
If you can give me the exact code, I believe it will be very helpful on my part.
I’ll just have to simulate it in the simulator that I downloaded and study how the step by step mnemonics work.
meowth08