![]() |
Almost, but not quite there
Hi. I'm a newbie here :)
Anyways, I need help in this code in TASM or task assembler. The purpose is to make the LEDs (light emitting diodes) blink at an increasing manner. Here's the layout of the LEDs: 1 2 4 8 16 32 64 128 0 0 0 0 0 0 0 0 Basically, I already got the code for making all these LEDs blink at the same time for about 3 seconds, then off, then on, then off. My problem is how to make them blink in an increasing manner: from LED 1, then LED 2, then LEDS 1 and 2, then LED 4, then LEDs 4 and 1 (the manner is that the LEDs light up from 1 to 255 so that by 254, all but LED 1 will light up and by 255, all LEDs light up) here's the code for all LEDs lighting up all at once, then off, then on again, then off: H=hexa B=binary :
clrscr= main proc nearCould you guys help me crack the code for this one please? Thanks, God bless |
Nothing wrong with being a newbie, but you should read the forum's FAQ/rules and a "How to Post..." thread before posting. For one thing, it tells you to put your code in tags.
|
Code tags added.
|
It appears you haven't given us all the code but from a quick glance I would suggest you play with the binary values you are placing in the al register.
|
| All times are GMT -5. The time now is 11:20 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC