I guess, there is a variable named "A", but now shown in your code here.
So in the second FOR LOOP, there should be "N = A Dig B".
But, even then, I did not understand what you meant by individual digits? individual digits of which variable? Can you be more specific and give example?
Also, I have some modifications and suggestions as below. I removed some parts to make it work faster and seem easier to understand.
Code:A VAR BYTE 'this was not listed! E VAR BYTE F VAR BYTE N VAR BYTE D VAR BYTE S VAR BYTE B VAR BYTE T VAR BYTE Loop1: '8 Digits To Display T & A For E = 0 To 3 Pause F 'display T =1234 Lookup T DIG E,[$41,$f3,$49,$61,$33,$25,$05,$f1,$01,$31], PORTB '0-9 Lookup E,[$ef,$df,$bf,$7f], PORTC 'set Digit Pause F PORTC = $ff Next E For B = 0 To 3 Pause F 'display A =5678 Lookup A DIG B,[$41,$f3,$49,$61,$33,$25,$05,$f1,$01,$31],PORTB Lookup B,[$f7,$fb,$fd,$fe],PORTC Pause F PORTC = $ff Next B Pause F Goto Loop1 ' Display Forever
Edit: 'Also, if you store these numbers in EEPROM, then you can just use the following.
' could work even faster, and use less code space.
'Example: READ T DIG E, PORTB
------------------------




Bookmarks