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 07:20
Read: times


 
#99625 - sure
Responding to: ???'s previous message
hi,
Mike Collins said:

I've tried numerous ways to remove the 0x0000 from the first 31 entries, I think I should be able to subract it out.

Yes, I only think you meant not 31 but first 32 entries.

Since I'm using the value of the data entered shouldn't I be able to just subtract 32 from that and then the pointer into the table would just be 0 if the first character was a space, then so on.


Sure, you should do this way. Only some notes: check for input char is above 0x1F surely and do not forget clear C before substraction. Something like:
;
; A - original code
   CLR   C
   SUBB  A,#0x20
   JC    PRN_CHAR_END     ; code is below 0x20 so non-printable
; here process it with your modifyed tables

Regards,
Oleg

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