Browsing this Thread:
1 Anonymous Users
|
我如何"在自己的程式中"指定位址?
|
|
中級會員
Joined
: 2004/11/29 11:19 最後登入時間
: 2016/5/12 9:13
Group:
註冊會員
Level : 6 HP : 0 / 129 MP : 18 / 7544 EXP : 19
|
請問各位高手,c18中如果有使用到24bit * 24 bit 或 24 / 24 ...compiler都會幫我指定在它自己的地方(address) 我如何"在自己的程式中"指定它在xxxx位址呢? 謝謝!
如下,它放在157AE的地方。
--- C:\mcc18\src\TRADIT~1\math\fxd2424u.c ------------------------------------------------------ 1: /*** Unsigned Integer Division: 24-bit by 24-bit 2: *** 3: *** Optimized: Dec. 21, 2000 4: *** by: Daniel R. Madill, Quanser Consulting Inc. 5: *** for: Saved (for the worst case) at least 7*24 = 168 instruction cycles 6: *** over the code supplied with MCC18 v1.00.12 7: ***/ 8: 9: void FXD2424U (void/* ushlong aarg, ushlong barg */) 10: { 11: // use INDF1 for the counter... 12: 13: _asm 14: 15: // Clear the remainder 16: clrf REMB0, 0 157AE 6A38 CLRF 0x38, ACCESS
發表於: 2005/12/13 10:33
|
|
You can view topic.
你 不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.