keil c51 有问有答(caoqing)(国外英文资料).docVIP

  • 13
  • 0
  • 约9.45千字
  • 约 18页
  • 2017-06-05 发布于河南
  • 举报

keil c51 有问有答(caoqing)(国外英文资料).doc

keil c51 有问有答(caoqing)(国外英文资料)

keil c51 有问有答(caoqing) [reposting] keil c51 has a question (caoqing) What does a # pragma asm mean? # pragma asm MOV P1, R7 The NOP The NOP MOV P1, # 0 # pragma endasm Its actually a switch thats embedded in the C51 An algorithm program for hex to BCD HEX_BCD: CLR a. MOV 30 h, A 31 h MOV, a. MOV 32 h, A MOV R2, # 15 H_B0: MOV A, R1 RLC a. MOV R1, a. A, MOV R0 RLC a. MOV R0, a. MOV. A, 32 h RLC a. ACALL BCD_ADJ MOV 32 h, A MOV. A, 31 h RLC a. ACALL BCD_ADJ 31 h MOV, a. MOV. A, 30 h RLC a. ACALL BCD_ADJ MOV 30 h, A DJNZ R2, H_B0 A, MOV R0 RLC a. MOV. A, 32 h RLC a. MOV 32 h, A MOV. A, 31 h RLC a

文档评论(0)

1亿VIP精品文档

相关文档