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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/07/05 13:44
Read: times


 
#86745 - NON ASCII MESSAGGE in C51, ?
Hi,

For ASCII message we can use
char code msg[12] = "Hello World"; in C51

but for non ASCII, in A51

msg_sgn:
mov dptr,#msg
nxt:
clr a
movc a,@a+dptr
jz msg_end
mov sbuf,a
jnb ti,$
clr ti
inc dptr
sjmp nxt
msg_end:
ret

msg:
db 01h,01h,7ch,0feh,92h,0a2h,0feh,07h,01h,02h
db ....
db ....
many more
db ... 0h ; msg stop

How write the code in C51.
Thank you very much
Kurnia Brahmana


List of 7 messages in thread
TopicAuthorDate
NON ASCII MESSAGGE in C51, ?            01/01/70 00:00      
   elementary, my dear Watson            01/01/70 00:00      
      I 'm migrating from A51 to C51            01/01/70 00:00      
         Books            01/01/70 00:00      
            Array C51, non ASCII            01/01/70 00:00      
               Books - 8051; 'C'            01/01/70 00:00      
                  Andy, suggestion solved the Array            01/01/70 00:00      

Back to Subject List