The hell's a port command?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
CheeseBees
Posts: 22
Joined: Mon Nov 19, 2018 12:13 pm
Libera.chat IRC: WhatIsThis

The hell's a port command?

Post by CheeseBees »

So, being the clueless boi I am, I consulted Wikipedia for the basics of a framebuffer. It says there are three common ways of doing it, and the attached image is the list.
I know the first and last ones but what is a port command?
Attachments
sdf.png
- Mitchell Barnes the Confused Idiot
17 years old and programming assembly

“If you're going to tell me to give up then you're wasting time that you could be using to help someone else”

“Assembly is more readable and easy to use than c. Change my mind”
kzinti
Member
Member
Posts: 898
Joined: Mon Feb 02, 2015 7:11 pm

Re: The hell's a port command?

Post by kzinti »

It probably refers to the I/O port address space, which you can access with the OUT instruction on x86:

https://c9x.me/x86/html/file_module_x86_id_222.html
Octocontrabass
Member
Member
Posts: 5586
Joined: Mon Mar 25, 2013 7:01 pm

Re: The hell's a port command?

Post by Octocontrabass »

It refers to systems where the CPU can't directly address the frame buffer at all. Instead, you access it through one or more "ports" where you can write commands and data. For example, you might write a command to address a particular pixel, then write some data to set a new value for that pixel.

It has nothing to do with x86-specific things like the I/O address space or IN/OUT instructions.
Post Reply