help requested for PIC18Fxx2 programming in ASM language

Status
Not open for further replies.

f117e

Newbie level 1
Joined
May 23, 2009
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,288
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!
 

Re: Can giup ve PIC18Fxx2

i think if you should translate your language to english..
 

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.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…