Drawing to my screen should not be so hard

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.
User avatar
eryjus
Member
Member
Posts: 286
Joined: Fri Oct 21, 2011 9:47 pm
Libera.chat IRC: eryjus
Location: Tustin, CA USA

Re: Drawing to my screen should not be so hard

Post by eryjus »

CheeseBees wrote:Anyone have a basic PCIe enumeration script in c?
Octocontrabass wrote:https://wiki.osdev.org/PCI
From another thread: viewtopic.php?p=287106#p287106

Perhaps your mouse scroll wheel is broken, so let me help you out: https://wiki.osdev.org/PCI#Enumerating_PCI_Buses.

But, you are going to find that this community will not do the work for you: https://wiki.osdev.org/Beginner_Mistake ... his_is_NOT. Remember, you are starting something that is more of a research project than a coding project.
Adam

The name is fitting: Century Hobby OS -- At this rate, it's gonna take me that long!
Read about my mistakes and missteps with this iteration: Journal

"Sometimes things just don't make sense until you figure them out." -- Phil Stahlheber
CheeseBees
Posts: 22
Joined: Mon Nov 19, 2018 12:13 pm
Libera.chat IRC: WhatIsThis

Re: Drawing to my screen should not be so hard

Post by CheeseBees »

fair enough.
- 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”
CheeseBees
Posts: 22
Joined: Mon Nov 19, 2018 12:13 pm
Libera.chat IRC: WhatIsThis

Re: Drawing to my screen should not be so hard

Post by CheeseBees »

eryjus wrote:
CheeseBees wrote:Anyone have a basic PCIe enumeration script in c?
Octocontrabass wrote:https://wiki.osdev.org/PCI
From another thread: viewtopic.php?p=287106#p287106

Perhaps your mouse scroll wheel is broken, so let me help you out: https://wiki.osdev.org/PCI#Enumerating_PCI_Buses.

But, you are going to find that this community will not do the work for you: https://wiki.osdev.org/Beginner_Mistake ... his_is_NOT. Remember, you are starting something that is more of a research project than a coding project.
Thank you very much. Believe it or not, my trackpad is broken.
- 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”
User avatar
Schol-R-LEA
Member
Member
Posts: 1925
Joined: Fri Oct 27, 2006 9:42 am
Location: Athens, GA, USA

Re: Drawing to my screen should not be so hard

Post by Schol-R-LEA »

iansjack wrote:
Basically im using mingw w64 and nasm on windows 8.1
OK, somehow I missed that. Sorry.
Rev. First Speaker Schol-R-LEA;2 LCF ELF JAM POEE KoR KCO PPWMTF
Ordo OS Project
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.
bigboyav
Posts: 10
Joined: Sat Dec 29, 2018 3:09 am

Re: Drawing to my screen should not be so hard

Post by bigboyav »

You won't be able to to access video memory through your operating system. If you write a program to access video memory and try to run it in Windows, Linux, etc. you get a seg fault because the OS won't let you access that portion of memory.

https://wiki.osdev.org/Printing_To_Screen

Check out the above, I recommend putting your binary executable onto a usb (can use Rufus on Windows, or DD on Linux) and booting from your USB. If your program works you will see the desired results on your screen.
Post Reply