Converting a byte in to Decimal ASCII help
Posted: 30 Oct 2025 14:57
Hi All,
I'm doing my first ever 68060 bit of coding on the Raven to create an app that works as a sound input mixer for the audio card.
So I'm having to brush off my very old 68000 coding skills. Last time I really did some was back in the 90s.
I need to convert a number stored in a byte of data into a bit of text that I can then use with the VDI command v_gtext to output it on to the screen. Values could be 0 - 255.
Could someone please share a 68060 friendly bit of code for doing the converting. I'm okay with setting the coordinates in the VDI command V_gtext, Ie using:
I'm doing my first ever 68060 bit of coding on the Raven to create an app that works as a sound input mixer for the audio card.
So I'm having to brush off my very old 68000 coding skills. Last time I really did some was back in the 90s.
I need to convert a number stored in a byte of data into a bit of text that I can then use with the VDI command v_gtext to output it on to the screen. Values could be 0 - 255.
Could someone please share a 68060 friendly bit of code for doing the converting. I'm okay with setting the coordinates in the VDI command V_gtext, Ie using:
Code: Select all
move.w #xpos,d0
move.w #ypos,d1
*insert ascii conversion stuff here
v_gtext d0,d1,inserted_text_data