a journal
blog*spot
-->

thefootprints

a chengsiong publication





archives . affiliates .

TOP OF THE DAY

31 July 2006

after d.goh maths lesson, its time for some programming lesson.


#include #pragma romdata // to store score sheet in ROM to convert to RAM space
#include
//Musical notes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16,17 18
char sc_note[30]={25,29,30,32,33,34,35,36,38,40,42,44,45,46,47,50,52,50};
//Musical notes 1 2 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18
int sc_time[30]={4,4,4,3,3,3,3,1,2,2, 2, 2, 2, 2, 2, 2, 2};
//char sc_note[30]={10,20,30,40,50,60,70,80};//int sc_time[30]={1,1,1,1,1,1,1,1};
#pragma codeint t,d,i,k,x,j=0;int time; char note;//tuning;

void main()
{
ADCON1=0x0F;// Set Port A, B & E as digital I/O
TRISA=0b11100000;//bit 0 - 8 of Port A as output(RA0 - RA5 for Port A)
//tuning = 1;
TRISB=0b11000000;
TRISC=0b11111111;
TRISE=0b00000000;
TRISD=0b00000000;
PORTE=1;
if (PORTCbits.RC6==0)
{
PORTB=0b11111111;
PORTAbits.RA0=1;
PORTAbits.RA1=1;
Delay10KTCYx(20);
PORTB=0b11000000;
PORTAbits.RA0=0;
PORTAbits.RA1=0;
Delay10KTCYx(20);

for (i=0; i<30;>
{
for (t=0; t<250; note="sc_note[i];
// called out the note above time=sc_time[i]*1100;
//change factor to adjust tempo d=0;//
d character start

while (d
{
for (k=0; k
PORTAbits.RA2=~PORTAbits.RA2; // toggles sound port RA2
}
}
}

if (PORTCbits.RC6==1)
{
PORTB=0b11000000;
PORTAbits.RA0=0;
PORTAbits.RA1=0;
PORTAbits.RA2=1;
}
Delay10KTCYx(10);
if(PORTCbits.RC4==0)
while(!PORTCbits.RC4)
{
PORTD=0b1000000; //0-9
Delay10KTCYx(50);
PORTD=0b1111001; //1
Delay10KTCYx(50);
PORTD=0b0100100;//2
Delay10KTCYx(50);
PORTD=0b0110000;//3
Delay10KTCYx(50);
PORTD=0b0011001;//4
Delay10KTCYx(50);
PORTD=0b0010010;//5
Delay10KTCYx(50);
PORTD=0b0000010;//6
Delay10KTCYx(50);
PORTD=0b1111000;//7
Delay10KTCYx(50);
PORTD=0b0000000;//8
Delay10KTCYx(50);
PORTD=0b0010000;//9
Delay10KTCYx(50);
for(j=0;j<6;j++) i="0;i<125;i++)" porte="2;" portd="0b01111001;" porte="1;" portd="0b1000000;" i="0;i<125;i++)">
{
PORTE=2;
PORTD=0b01111001;
Delay1KTCYx(2);
PORTE=1;
PORTD=0b01111001;
Delay1KTCYx(2);
}
break;
case 2:for(i=0;i<125;i++)>
{
PORTE=2;
PORTD=0b01111001;
Delay1KTCYx(2);
PORTE=1;
PORTD=0b0100100;
Delay1KTCYx(2);
}
break;
case 3:for(i=0;i<125;i++)>
{
PORTE=2;
PORTD=0b01111001;
Delay1KTCYx(2);
PORTE=1;
PORTD=0b0110000;
Delay1KTCYx(2);
}
break;
case 4:for(i=0;i<125;i++)>
{
PORTE=2;
PORTD=0b01111001;
Delay1KTCYx(2);
PORTE=1;
PORTD=0b0011001;
Delay1KTCYx(2);
}
break;
case 5:for(i=0;i<125;i++)>
{
PORTE=2;
PORTD=0b01111001;
Delay1KTCYx(2);
PORTE=1;
PORTD=0b0010010;
Delay1KTCYx(2);
}
break;
Delay10KTCYx(10);
}
}
}
if (PORTCbits.RC7==1)
{
PORTD=0b1000000;
}
}

don ask me what's all this. 'cause i also half bucket water. then that teacher keep gl me. make me dl only.

27 July 2006

very excited about the work just now. this is the first time since so long that i felt the urge to blog lol

went to work just now. guess where? MEDIACROP! although its just normal tele-surveryor, the prospect of meeting celebrities along the hallway of mediacrop excites me!! hahaha i feel like a small kid in a new, huge candy stall. hahaha then perfect 10 and yes933 studio is just beside my workplace on the same level lol so maybe one day i will get to see jolin/jay/lihong/insert-a-singer promoting there. hee hee hee.

but guess i first saw. CHEN JIAN BING. hahaha *knocked you into cold. that comedian. but he friendly, smile big big to me. lol

but saw emilee kang after a short while. she was just stepping out of the lift. i saw her i stunned. she smiled, i smiled back. hasty moment though. forgot about my camera in my bag. she's pretty! should have taken a photo with her.

judging from her smile, i thought she must have progressed into the next round. little did i expect that she was eliminated. what a waste! all chio bus getting eliminated. eliminate some guys! or else wait final between 2 guys again....

ok. 2 i met. not very impressive. i must see more next time. go there camp with everything ready. camera? checked. marker? checked. autograph book? checked. wahahaha jian yi ge sha yi ge.

23 July 2006

i don know how can you not talk about it, when you had just bloody mentioned it.

21 July 2006

another week had passed...

blogging is such a chore, practically nothing memorable worth mentioning here. driving, towning, catching up. HOMING.

almost knock down a kid just now. he dashed out just like that. other than that everything is fine, getting more and more experienced already. can take narrow road with third gear now. cant wait for 10th of november man. but still long way to go.

Fourth gear? X

U-turn? X

Parking? X

Parallel Parking? X


just being fed with a yellow and nua-ish banana. i hate bananasss.

17 July 2006

long long ago, when my sister went to malaysia, she brought back THESE!

Photobucket - Video and Image Hosting

PINK CB

Photobucket - Video and Image Hosting

BROWN CB

Photobucket - Video and Image Hosting

WHITE CB

omg! its the CB's range of products. got japanese words somemore.hahaha

when i saw this , i went "cheeeeee!......... "

sister : "chee wad? chee wad?"

"chee...chee... chee bi-pia! (chicken biscuit!) i like!"

*rolls eyes*

hahaha maybe the owner not hokkien lang, or donnoe what's abbreviation. hahaha what if the biscuit turn bad and smelly??

me and you know the answer....

12 July 2006

and so, the 2006 World Cup has ended. italy won and in the process broke many hearts. some shone, while others did not perform up to their level, like our gaucho. we were all waiting for him to dazzle our otherwise dull world cup. but he din, instead it was the likes of lahm and grosso who will definitely attract the eyes of big clubs. especially grosso, he is definitely too big for palermo now.

punting wise, not many surprise sprung though. some burnt their pocket during brazil vs croatia and italy-usa match. hahaha does kelong really exist in the beautiful game?

4 years later, the world will turn to south africa, by then i should have completed my ns. dont know whether i am looking forward to it or not.

hahaha above is just my view la. in case i forget this world cup. i totally forgotten what happened during 2002's so in case i forget again. just a short note.

but one funny fact though. that time 2002, i bought 3 jerseys, france's argentina's and england's. all three crashed out. this time round, i bought 1 only, and its brazil's. THEY STUMBLED OUT TOO! hahahah so people, tell me which team you hate, or better still, buy me the jersey of the country/club you and give it to me. i garuntee they lose, because 3 years ago i bought manu's too. and until now they have not win the bloody premier league! and in my wardrobe theres also milan's and valencia's. success have deluded them since.......

hahaha i think i will receive alot of chelsea's one.

Photobucket - Video and Image Hosting

saw the news, what bomb found behind dgoh house. leftover(s) from wwII. then my dad told me that my great granduncle in china, died when he found a bomb and knocked the hell out of it and exploded it along the way. he was trying to extract the useless pieces of bronze inside the bomb. he killed 3 others as well. *shruggs

10 July 2006

went to sentosa ytd with pek ong and chan. was really grateful that i asked them along. pictures!



hahaha 1 more hour to world cup final! hopefully italy will win and show it to the world that there is no kelong in the the beautiful game!

and may singapore win it at 2022!