Reverse characters

Basic and Machine Language

Moderator: Moderators

Post Reply
User avatar
Mayhem
High Bidder
Posts: 3027
Joined: Mon May 24, 2004 7:03 am
Website: http://www.mayhem64.co.uk
Location: London

Reverse characters

Post by Mayhem »

I'm going through some listings to check if they are needed in GB20 and I've come across one listing with what appears to be reverse N and H characters in it (it shows the actual control characters, so reverse heart is clear screen of course). Any idea how I generate those?
Lie with passion and be forever damned...
User avatar
Mike
Herr VC
Posts: 4841
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Post by Mike »

I also presume these are shown inside a string. These are CTRL-N (switch to lower case), and CTRL-H (disable SHIFT-CBM), but CTRL doesn't work here. In that case, proceed as follows:

- enter a quote (SHIFT + 2) - this exits quote mode,
- delete that quote (DEL),
- reverse mode on (CTRL + RVS ON),
- type in the alphabetic key of the control character (here N, or H),
- reverse mode off (CTRL + RVS OFF),
- enter a quote (SHIFT + 2) to reenter quote mode,
- delete that quote - and continue with rest of string.

when you press the RETURN key, the reverse characters are correctly recognised as control chars. This also works with all the "standard" control chars, like {LEFT}, {YEL}, etc. ...

Greetings,

Michael
User avatar
Mayhem
High Bidder
Posts: 3027
Joined: Mon May 24, 2004 7:03 am
Website: http://www.mayhem64.co.uk
Location: London

Post by Mayhem »

Cheers for that. The program listing is lacking lower case mode activation (it's still in upper case) and there's no CHR$ used either, so I was figuring one of them must be to put it in lower case mode. I'll have a go and try to correct this little oversight :)
Lie with passion and be forever damned...
Post Reply