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.

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:
heheh...kire merdeka la nih :D
Post a Comment