New demo uploaded: Chonky Text in 6502 Assembly

All aspects of programming on the Commander X16.
gavinhaslehurst
Posts: 47
Joined: Thu Jan 07, 2021 11:37 am

New demo uploaded: Chonky Text in 6502 Assembly

Post by gavinhaslehurst »




Chonky Text in 6502 Assembly




View File






A little demo of rendering giant text in assembly. It takes the data from the Lower/Upper character set in ROM and renders it in a large, "LCD-style" font. You can use .asciiz in CC65 for letters, or use a zero-terminated array of bytes to reference the character codes, as below (thanks to https://www.commanderx16.com/forum/index.php?/profile/5-jimmydansbo/ for the character set reference). 

 

charset.png






 
User avatar
desertfish
Posts: 1097
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

New demo uploaded: Chonky Text in 6502 Assembly

Post by desertfish »


Make a chonky text scroller ?

gavinhaslehurst
Posts: 47
Joined: Thu Jan 07, 2021 11:37 am

New demo uploaded: Chonky Text in 6502 Assembly

Post by gavinhaslehurst »



7 minutes ago, desertfish said:




Make a chonky text scroller ?



You literally read my mind!  This is the next step!  

VincentF
Posts: 75
Joined: Mon Jun 29, 2020 8:22 pm

New demo uploaded: Chonky Text in 6502 Assembly

Post by VincentF »


It would be funny to see a chonky text adventure ?

SlithyMatt
Posts: 913
Joined: Tue Apr 28, 2020 2:45 am

New demo uploaded: Chonky Text in 6502 Assembly

Post by SlithyMatt »


I think it would be great for pinball, but I tried using a different color and it hanged:

image.png.046b5c3cd85e3cd24ea619f78544b9c6.png

It runs fine as long as you keep the default colors.

P.S. - this is inconsistent. It hangs at different times, or sometimes not at all. So, maybe not related to the color.

gavinhaslehurst
Posts: 47
Joined: Thu Jan 07, 2021 11:37 am

New demo uploaded: Chonky Text in 6502 Assembly

Post by gavinhaslehurst »



19 minutes ago, SlithyMatt said:




I think it would be great for pinball, but I tried using a different color and it hanged:



image.png.046b5c3cd85e3cd24ea619f78544b9c6.png



It runs fine as long as you keep the default colors.



P.S. - this is inconsistent. It hangs at different times, or sometimes not at all. So, maybe not related to the color.



I noticed this Matt. I think there's a problem with my code somewhere. I'll take a look at some point.  If you spot it, let me know!  (You are an assembly legend) 

gavinhaslehurst
Posts: 47
Joined: Thu Jan 07, 2021 11:37 am

New demo uploaded: Chonky Text in 6502 Assembly

Post by gavinhaslehurst »



Just now, gavinhaslehurst said:




I noticed this Matt. I think there's a problem with my code somewhere. I'll take a look at some point.  If you spot it, let me know!  (You are an assembly legend) 



Ps I suspect it'll work better if I write direct to vera instead of using CHROUT. And it'll be faster... just need to rewatch your tutorial ?

SlithyMatt
Posts: 913
Joined: Tue Apr 28, 2020 2:45 am

New demo uploaded: Chonky Text in 6502 Assembly

Post by SlithyMatt »


Do you have a GitHub? It would make it easier for folks to review, use, contribute, etc.

gavinhaslehurst
Posts: 47
Joined: Thu Jan 07, 2021 11:37 am

New demo uploaded: Chonky Text in 6502 Assembly

Post by gavinhaslehurst »



4 minutes ago, SlithyMatt said:




Do you have a GitHub? It would make it easier for folks to review, use, contribute, etc.



This did not occur to me!  I'll look into this.  It's been a long time since I've really done any proper coding. This lock down fascination got out of hand! 

SlithyMatt
Posts: 913
Joined: Tue Apr 28, 2020 2:45 am

New demo uploaded: Chonky Text in 6502 Assembly

Post by SlithyMatt »


Unless you are hosting a serious, multi-contributor project, free accounts give you everything you need.

Post Reply