Keil Logo Arm Logo

Discussion Forum

db in a51, what is in c51?

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Kurnia Brahmana
Posted
7-Feb-2005 12:32 GMT
Toolset
C51
New! db in a51, what is in c51?
msg_st:
mov dptr,#msg
mov R0,#30h
msg_nxt:
clr a
movc a,@a+dptr
jz msg_end
mov @R0,a
inc dptr
inc R0
sjmp msg_nxt
msg_end:
ret

msg:
db 01h,01h,7ch,0feh,92h,0a2h,0feh,07ch,01,10h
db .......
many more
db .......0h ;msg stop
Read-Only
Author
Andrew Neil
Posted
7-Feb-2005 15:13 GMT
Toolset
C51
New! RE: db in a51, what is in c51?
The 'C' programming language allows you to initialise variables when you define them...
Read-Only
Author
Keil Reinhard
Posted
8-Feb-2005 06:25 GMT
Toolset
C51
New! RE: db in a51, what is in c51?
So this translates into DB statements:

char code msg[] = "My Text";

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.