Re: 有沒有組合語言的範例程式?
|
||||
---|---|---|---|---|
資深會員
|
原來要加個#
瞭解了 謝囉
發表於: 2006/8/21 13:59
|
|||
木亟缶夬金戔
彳艮缶夬金戔 走召缶夬金戔 |
||||
|
Re: 有沒有組合語言的範例程式?
|
||||
---|---|---|---|---|
中級會員
|
mov #15, W0
mov #0b00001111, W0 mov #0x000F, W0 以上3种寫法,都是把數值15放進W0。請參閲“MPLAB ASM30, MPLAB LINK30 AND UTILITIES USER’S GUIDE”Section 3.4.4 Operands。
發表於: 2006/8/21 13:22
|
|||
|
Re: 有沒有組合語言的範例程式?
|
||||
---|---|---|---|---|
中級會員
|
在dsPICDEMv1.1範例程式裏有組合語言的範例。
另外別忘了讀兩個相當有幫助的文件: 1)MPLAB ASM30, MPLAB LINK30 and Utilities User's Guide 2)dsPIC30F/33F Programmer's Reference Manual
發表於: 2006/8/19 3:31
|
|||
|
有沒有組合語言的範例程式?
|
||||
---|---|---|---|---|
資深會員
|
剛剛要開始試用dsPIC30f4011
去美國網站找dsPIC應用筆記 全部範例程式都是C語言... 請問一下有沒有組合語言的範例程式? PIC的組合語言檔頭
LIST P=18F452 , R=DEC
要改成dsPIC的話要怎麼寫? 找到了... 原來dsPIC的組合語言檔名要.s不是.asm 不過我看到的都不必類似pic那樣用list指定型號?! 而且虛擬指令end equ global...等等前面都要加個.才能使用?!
發表於: 2006/8/18 14:10
|
|||
木亟缶夬金戔
彳艮缶夬金戔 走召缶夬金戔 |
||||
|