怎样从C代码生成可用的汇编代码?
用WAVE,反汇编看看:)079CH 27BB CALL 07BBH
079DH 3023 MOVLW23H
079EH 27A0 CALL 07A0H
079FH 2F98 GOTO 0798H
07A0H 0183 CLRF STATUS
07A1H 00AB MOVWF2BH
07A2H 01AD CLRF 2DH
07A3H 0AAD INCF 2DH, 1
07A4H 01AC CLRF 2CH
07A5H 3000 MOVLW00H
07A6H 008A MOVWFPCLATH
07A7H 082B MOVF 2BH, 0
07A8H 0084 MOVWFFSR
07A9H 1383 BCF STATUS, 7
07AAH 0800 MOVF 00H, 0
07ABH 2011 CALL 0011H
07ACH 0086 MOVWFPORTB
07ADH 0AAB INCF 2BH, 1
07AEH 082D MOVF 2DH, 0
07AFH 0087 MOVWFPORTC
07B0H 1003 BCF STATUS, C
07B1H 0DAD RLF 2DH, 1
07B2H 3064 MOVLW64H
07B3H 2767 CALL 0767H
07B4H 0187 CLRF PORTC
07B5H 0AAC INCF 2CH, 1
07B6H 3008 MOVLW08H
07B7H 022C SUBWF2CH, 0
07B8H 1803 BTFSCSTATUS, C
07B9H 0008 RETURN
07BAH 2FA5 GOTO 07A5H
07BBH 0183 CLRF STATUS
07BCH 01AB CLRF 2BH
07BDH 3010 MOVLW10H
07BEH 07A2 ADDWF22H, 1
07BFH 3027 MOVLW27H
07C0H 0222 SUBWF22H, 0
07C1H 3010 MOVLW10H
07C2H 1903 BTFSCSTATUS, Z
07C3H 0221 SUBWF21H, 0
07C4H 1C03 BTFSSSTATUS, C
07C5H 0008 RETURN
07C6H 30F0 MOVLWF0H
07C7H 07A1 ADDWF21H, 1
07C8H 1803 BTFSCSTATUS, C
07C9H 0AA2 INCF 22H, 1
07CAH 30D8 MOVLWD8H
07CBH 07A2 ADDWF22H, 1
07CCH 3064 MOVLW64H
07CDH 0AA0 INCF 20H, 1
07CEH 0220 SUBWF20H, 0
07CFH 1C03 BTFSSSTATUS, C
07D0H 0008 RETURN
07D1H 309C MOVLW9CH
07D2H 07A0 ADDWF20H, 1
07D3H 300A MOVLW0AH
07D4H 00AC MOVWF2CH
07D5H 3025 MOVLW25H
07D6H 277B CALL 077BH
07D7H 1C03 BTFSSSTATUS, C
07D8H 0008 RETURN
07D9H 3006 MOVLW06H
07DAH 00AC MOVWF2CH
07DBH 3024 MOVLW24H
07DCH 277B CALL 077BH
07DDH 1C03 BTFSSSTATUS, C
07DEH 0008 RETURN
页:
[1]