ZX80 sub string

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
Post Reply
Shaun_B
Posts: 471
Joined: Wed Apr 22, 2009 10:22 am

ZX80 sub string

Post by Shaun_B »

Hi guys,

I hear about a TL$ function on the ZX80 for string manipulation. Could anyone show me how this works please? Or do I need an upgraded ROM image to access it? (Currently emulating 4K ROM in EightyOne)

Many thanks,

Shaun.

Shaun_B
Posts: 471
Joined: Wed Apr 22, 2009 10:22 am

Re: ZX80 sub string

Post by Shaun_B »

Actually I worked it out:

Code: Select all

1 LET A$="HELLO MAGAZINE"
2 PRINT TL$(A$)
I just need an easy way to shuffle the string now.

Regards,

Shaun.

User avatar
siggi
Posts: 913
Joined: Thu May 08, 2008 9:30 am
Location: Dauernheim, Germany
Contact:

Re: ZX80 sub string

Post by siggi »

My ZX81 web-server: online since 2007
http://zx81-siggi.endoftheinternet.org/index.html

Shaun_B
Posts: 471
Joined: Wed Apr 22, 2009 10:22 am

Re: ZX80 sub string

Post by Shaun_B »

Hi,

Thanks for the really useful link.

I made a sort of scrolly text example in ZX80 BASIC - press enter on each static screen update to see the scrolly text one character at a time.

Enjoy!

Regards,

Shaun.
Attachments
ZX80 Scrolly Text in BASIC
ZX80 Scrolly Text in BASIC
zx80-basic-scroll.png (9.66 KiB) Viewed 1633 times

Post Reply