Board logo

标题: keil c6.20c ?±????????±à??·?·¨ [打印本页]

作者: zona    时间: 2004-8-12 15:52     标题: keil c6.20c ?±????????±à??·?·¨

keil c6.20c ?±????????±à??·?·¨

--------------------------------------------------------------------------------

//<asm.h>
#ifdef ASM
unsigned long shiftR1(register unsigned long);
#else
extern unsigned long shiftR1(register unsigned long);
#endif
//end of asm.h
//<asm.c>
#define ASM
#include <asm.h>
#include <reg52.h>
#pragma OT(4,speed)
unsigned long shiftR1(register unsigned long x)
{
#pragma asm
clr c
mov a,r4
rrc a
mov r4,a

mov a,r5
rrc a
mov r5,a

mov a,r6
rrc a
mov r6,a

mov a,r7
rrc a
mov r7,a

#pragma endasm
return(x);
}
//end of asm.c
????????????????±à?????¤????????
????±ê???ò???????????????ü?????°option for file &#39asm.c&#39?±,
?????????°properties?±?????°Generate Assembler SRC File?±?°Assemble SRC File?±
?????è???????????°???±???°Link Public Only?±???°???±????????±à????????
????·?·¨??????c???ú??????????????#pragma asm??#pragma endasm??????±à??????
????×??????????±???????????±??????????????????????±????ú?ú????±à?ú?????ù??????
?????ì????????.lst???????????????????·????????±??ó??#pragma OT(x,speed)???¨
??????±??¨??????????0-9????







欢迎光临 我要委托设计网论坛 (http://51odm.com/fourms/) Powered by Discuz! 5.5.0