Tuesday, March 22, 2005

Jack of all trades. Master of none.

Me? Oh, I do not consider myself as the jack.

Everything about computer excites me. Well, most of them. When I was about to get into a new thing, then I’ll get interested in other things. It’s like yang dikejar tak dapat yang dikendong berciciran. I have to make up some plan. Which one to go first, so on and so forth.

Last night, I was going through with the Intel Software Developer Manual for IA-32 (Intel Architecture 32) or widely known as x86 arch. Enough to say, browsing from pages to pages, I’m lost. It is not as simple as 8051 craft. I mean, we are talking about Pentium’s design and layout folks! Even with 386 will caused me a bunch of headache.

Luckily I found a book in which I suppose would accompany me well with the Intel’s manual. Professional Assembly Language (Programmer to Programmer) that’s the title. InsyaAllah, it’ll be my next project during the break. Hope this time, I can finish it and become the master of assembly. The machine lingua franca.


Image hosted by Photobucket.comI had an exam last Saturday. Microprocessor and Microcontroller. Basically it is all involved with the assembly language. I don’t know how to speak in the language of human heart but I know how to speak in assembly. Hehe, what a total nerd am I. It happened again, last minute of revision. I never learn did I? Thank you Allah, for the lesson as well as the gift. The questions shows up to be as similar as to the tutorial that I just did 2 hours before the test break in. Huh!

But the lesson is- your brain cells won’t cooperate with last minute of revision. It will jumble up all around, inside your brain spaces thus resulting in lacking of rationality. You can’t think well. You can’t think creative. You can’t think as a coder. You can’t think as a hacker. You'll think as a dumb.

One of the questions asks to send "I will Get A+ for DCS5325" serially in 4800 baud rate using timer 0 and appropriate mode. Guess what? I did it the stupid way. Written one by one sending the letter as well as clearing the Timer like this -:

MOV TMOD,#02H <-- timer 0 and mode 2
MOV TH1,#-6 <--- 4800 baud rate
MOV SCON,#50H
SETB TR0 <--- start the timer

MOV SBUF,#'I'
I: JNB TI,I
CLR TI

MOV SBUF,#' '
NO1: JNB TI,NO1
CLR TI

MOV SBUF,#'w'
W: JNB TI,W
CLR TI

MOV SBUF,#'i'
I: JNB TI,I
CLR TI

and so on...whereas I should make a sub function for SBUF,monitor and clear the timer. Because of that, I ended up wasting 2 pages of paper just to write down the code. Greenpeace must be mad at me if they read this. Hehehe. Not to mention my lecturer. So? Alhamdulillah. Harap-harap dah insaf. Jangan belajar pada minit-minit terakhir.

P/s moral of the story - don’t be over confident even if you think you can 'speak' well in that language. Kak Shim, do you remember assembly? Do you miss it? Tell we wut do u think pls.

1 comment:

Stridz said...

heheh...kire merdeka la nih :D