Hello: I have learned C-language,but not applied.And now I'm studing Keil c based on 89plc936.Before I also programed on AT89S51 with asm.So I have some trouble in learning MACRO of asm and C.eg: NAME HUNHUI ?PR?_a_func?HUNHUI SEGMENT CODE ?DT?_a_func?HUNHUI SEGMENT DATA OVERLAYABLE ?DT?HUNHUI SEGMENT DATA ; PUBLIC chai PUBLIC ?_a_func?BYTE PUBLIC _a_func
RSEG ?DT?_a_func?HUNHUI ?_a_func?BYTE: aa:DS 1 RSEG ?DT?HUNHUI chai:DS 1 RSEG ?PR? _a_func?HUNHUI _a_func: how assemblier to process it, and the same in the c?
Start here:
http://www.keil.com/support/man/docs/uv3/uv3_ex_hello.htm
It is a simple "Hello, world" example that takes you through opening a project, editing the source, building, running and debugging it.
There are further examples here:
http://www.keil.com/support/man/docs/uv3/uv3_examples.htm
and here:
http://www.keil.com/download/list/c51.htm
and some books to help you here:
http://www.keil.com/books/8051books.asp www.8052.com/books.phtml
The Association of C & C++ Users (ACCU) has an embedded book review section that you may find useful: www.accu.org/.../embedded_systems.htm