Cursor and Serial Ports

One might think that today was a weekend day, so I might have been able to progress much today. But there is always a roadblock, this one was named college. Taking a formality-only viva, but keeping the students busy without any work, and making them write a 14 page hand written assignment, which will never ever be opened, is some form of punishments college provide.


So, enough about the day, what did I do today. Today was as uneventful as yesterday, but atleast I was able to progress a little more today, ( albeit at snail's pace ). 


Today, I learned about how via assembly 'out' instruction, we can send data on Serial ports of our computer. Here we are actually writing a near machine level code to directly interact with hardware. How cool is that!


So, improving the framebuffer printing I had created in the last post, today I used the Serial ports to send the command to serial port that is concerned with the position of "the blinking cursor" in the framebuffer.


We can now change the position of the cursor to wherever we want to print the text. And that's basically it for today. Tomorrow though, I will try to implement more of the serial port functionality to essentially create a logging mechanism.

Then I will refactor the code and make a generic print() function which also takes whether to send it to the Serial port ( Logging ), or print it to the framebuffer ( Screen )


- Hail Hydra

Comments

Popular posts from this blog

WebGL - Perspective

WebGL - Orthographic 3D