| Author |
Message |
f117e
Joined: 23 May 2009 Posts: 1
|
29 Oct 2009 12:45 Can giup ve PIC18Fxx2 |
|
|
|
|
Toi chi moi hoc ve PIC18FXX2 nen chua co kinh nghiem nhieu ve hop ngu. Xin vui long giup toi doan code nay, vi toi dang can gap:
Viet PIC18 cho doan ma sau.
i = 1
j = 0
k = -1
while (i > j) {
i = i + a – 2 * j;
if (j >= k) {
i = i + 2;
k = k – b + 2 * j;
}
j++;
}
Su dung gia tri a va b 0x08 , 0x0f.Tim gia tri cuoi cung cua i, j, va k cho nhung cap a va b co quan he a > b, a < b, va a = b.
Xin cam on truoc!
|
|
| Back to top |
|
 |
erio
Joined: 26 Feb 2008 Posts: 40 Location: Indonesia
|
29 Oct 2009 23:57 Re: Can giup ve PIC18Fxx2 |
|
|
|
|
| i think if you should translate your language to english..
|
|
| Back to top |
|
 |
Google AdSense

|
29 Oct 2009 23:57 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
meishun
Joined: 30 Jul 2007 Posts: 9
|
30 Oct 2009 14:13 Can giup ve PIC18Fxx2 |
|
|
|
|
Very glad to see Vietnamese language here ^^
But f117e should use English in this forum.
I would like to translate his message:
"I have just learned about the PIC18Fxx2. So that, I have no much experience in ASM programming. Please help me this code, I need the good result at once"
"Write the ASM code for this program
i = 1
j = 0
k = -1
while (i > j) {
i = i + a – 2 * j;
if (j >= k) {
i = i + 2;
k = k – b + 2 * j;
}
j++;
}
with a = 0x08, b = 0x0f. find out the last value of i,j,k and a,b that sastify a>b, a<b, a=b respectively.
Thank you = Xin cam on
meishun: My English is not good = Tieng Anh cua toi khong gioi.
|
|
| Back to top |
|
 |