News:
Home
Help
Search
Login
Register
August 13, 2026, 02:37:43 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Host Engineering Forum
»
General Category
»
Do-more CPUs and Do-more Designer Software
»
STRPRINT ASCII control characters
« previous
next »
Print
Pages: [
1
]
Author
Topic: STRPRINT ASCII control characters (Read 5942 times)
Bolt
Hero Member
Posts: 598
STRPRINT ASCII control characters
«
on:
November 17, 2022, 10:10:19 AM »
Is there a way to format the STRPRINT to print in "Quoted" view like the DataView option? I'd like to dump a serial stream to FILELOG, but would like the ASCII characters printed as "$0D$0Aabcdefg" for example.
Logged
franji1
Bit Weenie
Host Moderator
Hero Member
Posts: 3843
Re: STRPRINT ASCII control characters
«
Reply #1 on:
November 17, 2022, 11:01:04 AM »
Sorry, no.
There are text editors that support displaying "binary" data in addition to ASCII form.
You could write a subroutine to do it and dump it to a UNSIGNED BYTE, then do a write that back to a different STRING using STRPUTB
Logged
There are only 10 kinds of people in this world: those who know binary, and those who don't
Print
Pages: [
1
]
« previous
next »
Host Engineering Forum
»
General Category
»
Do-more CPUs and Do-more Designer Software
»
STRPRINT ASCII control characters