我的BANK怎麼了?
|
||||
---|---|---|---|---|
新會員
|
各位先進們討教了: 以下是我程式我再編譯後出現這樣的一段訊息: "Message[302] D:\PIC PROGRAM\L-RMOVE.ASM 11 : Register in operand not in bank 0. Ensure that bank bits are correct. " 但是我的BANK並沒有切錯啊 !!傷腦筋!! ; 2005 08/05 LED 左右移 測試ok LIST P=16C622 include "P16C622.inc" COUNTER EQU 20H ORG 0X00 MAIN CLRF PORTB BSF STATUS,RP0 ;置第1檔頁 CLRF TRISB ;設PORTB 為輸出 BCF STATUS,RP0 ;置第0檔頁 MOVLW b'00000111' MOVWF CMCON ; 設porta為數位輸入 BSF PORTB,0 ;輸出第0位元"1" BCF STATUS,C ;設定轉入為"0" ;========================================= initial CALL scan LL2 CALL DELAY RLF PORTB,F DECFSZ COUNTER ,F GOTO LL2 CALL scan RRR CALL DELAY RRF PORTB,F DECFSZ COUNTER,F GOTO RRR GOTO initial ;=============================== scan MOVLW 03H MOVWF COUNTER RETURN ;=============================== DELAY MOVLW 0xFF MOVWF 22H CLRF 23H DEL2 DECFSZ 23H,F GOTO DEL2 DECFSZ 22H,F GOTO DEL2 RETURN END
發表於: 2005/8/23 23:57
|
|||
|