| ??? 11/16/03 05:10 Read: times |
#58784 - RE: Lookup Table Help Responding to: ???'s previous message |
Mike:
There are a number of ways to resolve this problem. The simplest one is to remove the RET instructions from the ends of the MODEx: routines and instead simply jump back to the DIPSWT_mode label. However......If you go back and look at the code I listed in this posting -> Look Back Here you should study it and see that the way that code was meant to work was to setup a main body part of your code to call the DIPSWT_FUNC as a subroutine call. Done this way the RET instructions on the ends of the function subroutines will actually return to the point where the subroutine was called. If all you want to do is to run the DIP switch code over and over then in the main part of your program you could add a bit of code that looks as follows:
MAIN:
....
.... <- perform any startup initialization
....
MAIN_LOOP:
LCALL DIPSWT_FUNC
JMP MAIN_LOOP
Michael Karas |
| Topic | Author | Date |
| Lookup Table Help | 01/01/70 00:00 | |
| RE: Lookup Table Help | 01/01/70 00:00 | |
| RE: Lookup Table Help | 01/01/70 00:00 | |
| RE: Lookup Table Help | 01/01/70 00:00 | |
| RE: Lookup Table Help | 01/01/70 00:00 | |
RE: Lookup Table Help | 01/01/70 00:00 |



