Lunar lander and UDG generally

Anything QL Software or Programming Related.
User avatar
Jbizzel
Chuggy Microdrive
Posts: 67
Joined: Mon Jun 19, 2023 9:56 pm
Contact:

Re: Lunar lander and UDG generally

Post by Jbizzel »

Damn it. It doesn't work.


__________________


And beyond it, the deep blue air, that shows
Nothing, and is nowhere, and is endless.

https://jbizzel.itch.io/
User avatar
tofro
Font of All Knowledge
Posts: 2702
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: Lunar lander and UDG generally

Post by tofro »

How does "doesn't work" look like?

What does (after the program has run)

Code: Select all

FOR i = 127 TO 127 + 15 : PRINT #1,CHR$(i) 
do?


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
User avatar
dilwyn
Mr QL
Posts: 2761
Joined: Wed Dec 01, 2010 10:39 pm

Re: Lunar lander and UDG generally

Post by dilwyn »

Derek_Stewart wrote: Sat Mar 16, 2024 2:06 pm Hi,

Have look at QL Today Vol13 issue 2,3,4 Dilwyn did an excellent article on the use of Fonts.
Article available here.
https://www.dilwyn.qlforum.co.uk/docs/a ... nfonts.zip


User avatar
Jbizzel
Chuggy Microdrive
Posts: 67
Joined: Mon Jun 19, 2023 9:56 pm
Contact:

Re: Lunar lander and UDG generally

Post by Jbizzel »

IMG_20240316_153746__01.jpg
tofro wrote: Sat Mar 16, 2024 2:31 pm How does "doesn't work" look like?

What does (after the program has run)

Code: Select all

FOR i = 127 TO 127 + 15 : PRINT #1,CHR$(i) 
do?
It prints the UDGs!!!!

Edit*

Ah, I need channel 3. I have UDG. Working!

Thanks, I'll have a read of the articles you listed.

It's always good to work through a practical example.

Thank you


__________________


And beyond it, the deep blue air, that shows
Nothing, and is nowhere, and is endless.

https://jbizzel.itch.io/
User avatar
dilwyn
Mr QL
Posts: 2761
Joined: Wed Dec 01, 2010 10:39 pm

Re: Lunar lander and UDG generally

Post by dilwyn »

I don't want to overcomplicate things, but I wrote an article on how the font data structures work (in broad terms) which might help to explain why PEEKing and POKEing font addresses is a bad idea. It's a bit technical but tries to explain things as it goes along. If it helps explains things, I might add it to the Fun With Fonts article on my website.
Attachments
Font Address POKEs.pdf
(159.15 KiB) Downloaded 17 times


Post Reply