Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/18/05 19:46
Read: times


 
#99664 - bit table
Responding to: ???'s previous message
Hi Peter.

Actually what I've got is a table of labels, now! Does that make sense?
.dw asc32,asc33,asc44 ... asc127

Which using ".dw" gives me 2 byte values

;
; Ascii bit definitions for LED
;
; space
asc32:
.db 11111111b
.db 11111111b
.db 11111111b
.db 11111111b
.db 11111111b
.db 11111111b
.db 11111111b

; Exclamation
asc33:
.db 01111111b
.db 01111111b
.db 01111111b
.db 01111111b
.db 11111111b
.db 11111111b
.db 01111111b

; Double quote
asc34:
.db 10101111b
.db 10101111b
.db 10101111b
.db 11111111b
.db 11111111b
.db 11111111b
.db 11111111b

blah
blah
blah

; small z
asc127:
.db whatever
.db whatever
.db whatever
.db whatever
.db whatever
.db whatever
.db whatever

I don't really need to get all 256 possible values from the byte coming in.
But the code is basic enough that it will allow me to do that if I want. I've already added some different LED configurations assigned to ascii code 128 129 130 and 131.
And it worked ok.



List of 14 messages in thread
TopicAuthorDate
Code optimization suggestion?            01/01/70 00:00      
   Table            01/01/70 00:00      
      Table?            01/01/70 00:00      
         Another table ...            01/01/70 00:00      
   CJNE            01/01/70 00:00      
      Everybody is saying to use a table            01/01/70 00:00      
         My confsion            01/01/70 00:00      
   two tables            01/01/70 00:00      
      Tables            01/01/70 00:00      
         sure            01/01/70 00:00      
            gurus don't subtract constants            01/01/70 00:00      
   16 bit table            01/01/70 00:00      
      bit table            01/01/70 00:00      
   Table indexing            01/01/70 00:00      

Back to Subject List