Positioning Texts

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.
Locked
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Positioning Texts

Post by Nathan »

Hello,
I'm trying to develop my ARM OS, but I need to know how could I position text on the screen. The only information that I hate at the time, is the address that I got from the Integrator/CP Reference Manual, that is 0x16000030, but I don1t know what to do with the value. Someone could help me with this?

Best Regards,
Nathan Paulino Campos
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Re: Positioning Texts

Post by Brynet-Inc »

Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Positioning Texts

Post by Combuster »

It's a serial port, not a display. There is no position.

Find out what's interpreting the data coming out, and seek out the reference for that.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: Positioning Texts

Post by Nathan »

Combuster wrote:It's a serial port, not a display. There is no position.

Find out what's interpreting the data coming out, and seek out the reference for that.
I haven't found anything like that in the reference. :(
Gigasoft
Member
Member
Posts: 856
Joined: Sat Nov 21, 2009 5:11 pm

Re: Positioning Texts

Post by Gigasoft »

Just look at the board. What is connected to the port? Is it the display? If so, are there any markings on it that tell what kind of display it is?
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: Positioning Texts

Post by Nathan »

I don't have the board, I just emulate it using Qemu. :(
User avatar
inx
Member
Member
Posts: 142
Joined: Wed Mar 05, 2008 12:52 am

Re: Positioning Texts

Post by inx »

Nathan wrote:I don't have the board, I just emulate it using Qemu.
Check the QEMU docs (although the documentation seems to be awful for non-x86 system emulation..) or the source (this will have the answer)

EDIT: From reading the QEMU documentation and looking through hw/integrator.c in the qemu source tree because I really didn't have anything better
to do at the moment, it looks like there's a PL110 LCD controller at address 0xC0000000. You can find the offsets from looking through hw/pl110.c, or
ARM has the PL110 datasheet on their infocenter. Research is a good idea.
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: Positioning Texts

Post by Nathan »

I will take a look at that. ;)
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: Positioning Texts

Post by Nathan »

I've understood it, but still don't know what syntax should I use to make work. Someone can help me?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Positioning Texts

Post by Combuster »

Nathan wrote:Someone can help me?
No. Ask a smart question first. You just failed about all the rules on those.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
JackScott
Member
Member
Posts: 1032
Joined: Thu Dec 21, 2006 3:03 am
Location: Hobart, Australia
Mastodon: https://aus.social/@jackscottau
GitHub: https://github.com/JackScottAU
Contact:

Re: Positioning Texts

Post by JackScott »

Try the syntax you think should work, and see what errors you get. If you have honestly no idea where to even start with the syntax, go back to step 1 and learn C.
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: Positioning Texts

Post by Nathan »

I don't even know what syntax to use, because I don't have the necessary information to think on it.
User avatar
JackScott
Member
Member
Posts: 1032
Joined: Thu Dec 21, 2006 3:03 am
Location: Hobart, Australia
Mastodon: https://aus.social/@jackscottau
GitHub: https://github.com/JackScottAU
Contact:

Re: Positioning Texts

Post by JackScott »

Then either learn C, or GTFO. It's your choice.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Positioning Texts

Post by Combuster »

"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Locked