Re: 初學者請教組譯問題
|
||||
---|---|---|---|---|
版主
|
Microchip的組合語言有兩種語法;
1. 獨立式語法,單獨一個程式組成,用 ORG 定程式執行位址,用 equ 或 cblock 定 RAM的位址。 你用 ORG 定 RAM 位址當然會產生錯誤。 2. 可重新定位語法,這種寫法比較難,不適合初學著使用。
P=16F54
發表於: 2005/4/12 17:10
|
|||
|
初學者請教組譯問題
|
||||
---|---|---|---|---|
新會員
|
下列程式使用RES會出現
Error - section '.org_2' can not fit the absolute section. Section '.org_2' start=0x00000000, length=0x00000070 原程式如下: P=16F54 #INCLUDE <P16F5X.INC> SPK_PORT EQU 06H ORG 08H DEL1 RES 1 DEL2 RES 1 PITCH RES 1 INDEX RES 1 COUNT RES 1 COUNT2 RES 1 ORG 1FFH EQUET: GOTO START ORG 0X000 START: MOVLW 0X02 OPTION MOVLW 0 TRIS SPK_PORT 但是將RES改用EQU就沒問題....Why? 另,組譯時出現下列訊息是什麼? Message[305] E:\MY DOCUMENTS\PICEX\4-8_SPK.ASM 28 : Using default destination of 1 (file).
發表於: 2005/4/12 14:56
|
|||
|