Make Me a Syscall
I was working on a assembly language project for my computer science class one night, and was having a devil of a time debugging it. The program was supposed to read data from a file using system calls (syscalls) (and then do some more stuff) but for some reason, my program refused to read data from file. I spent over an hour tracing through my code, trying to find the probably obvious bug. My code around the "bug" looked a little like this:
...
move $a0,$s0
move $a1,$s1
li $v0,14
...
I realize its a little hard to understand out of context, but what happened was that I set up all the registers properly but never actually made a syscall!
College Killed the High School Star
I was fairly smart and successful in high school. Albeit, I wasn't the best in my class, but I was within spitting range. When I was sixteen, I had a really nice internship that payed much more then minimum wage, and when I was seventeen, I had another really nice internship that payed slightly less but offered full medical coverage. I was the president of the Robotics team, vice-president of the Academic Decathlon team, a section leader in the jazz band, and was in so many clubs that I often had to chose between which meeting I would attend.
Now I go to a university that is recognized world wide for its academic excellence, and I'm pretty sure I've gotten dumber. Living up to my blog's name, I'm failing like I never have before.
In high school the lowest grade that I ever received was a B+, but in my past year of college I have managed to get two Cs. My grasp on Ampere's Law is rather tenuous, and my understanding of multivariable vector calculus weaker still. During the school year, I stopped attending church regularly and fell away from God. Unlike in high school, the only group that I'm still active in is marching band. This summer, I was not able to secure a high paying internship so I'll be settling for a minimum wage job and the few bucks I get for managing the marching band website.
Daily Log – 25 June 2008
I'm going to try something new starting today. Every day I'm going write a brief post on anything noteworthy that happened that day, just for the heck of it.
It is currently 4:40pm.
- woke up after sleeping about six hours, for some reason I can't seem to sleep very long anymore, i always wake up at 7am
- flipped through various books, including Ursula K. Le Guin's The Fisherman of the Inland Sea
- worked on the band website and on my new blog design
- found out that I got an "I" (Incomplete) in my computer science, no idea how this could be possible and have e-mailed the professor
- watched some stupid Chinese soap opera with my sister
- planning on going swimming later, and then maybe washing the car