Creating big REM statements

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
Post Reply
User avatar
Thunor
Posts: 42
Joined: Sun Oct 11, 2009 11:37 am
Location: Anglia
Contact:

Creating big REM statements

Post by Thunor »

Hello

Is there a way to create big REM statements on the ZX81 without doing it manually or using cross compilation to create .p files. I have thought about using a technique of simulating key presses by hacking an emulator source, or maybe it's possible to do this within the ZX81.

Regards,
Thunor
User avatar
gus
Posts: 177
Joined: Fri May 16, 2008 10:18 pm
Location: Buenos Aires. Argentina
Contact:

Re: Creating big REM statements

Post by gus »

Hi Thunor

There are a lot of ways to do what you need, here are two:


1) You can create REM lines with any number of chars using the BASIC Tools that are included in the VB81_XUR Emulator.

2) But if you prefer do it directly on the Sinclair you can use a little program like the one I attaching on this post. The program will ask(*) you the number of bytes that you need on the REM line, the will change the line 16 in order to make it as big as you need. Then you can delete the other all the lines and change eventually the line number of the REM line.

(*) "NUMERO DE BYTES A INSERTAR?" means "NUMBER OF BYTES TO INSERT" :)
Gus
User avatar
Thunor
Posts: 42
Joined: Sun Oct 11, 2009 11:37 am
Location: Anglia
Contact:

Re: Creating big REM statements

Post by Thunor »

Thanks Gus

I would like to achieve this on the ZX81 but I can't see your attachment.

Cheers,
Thunor
User avatar
kmurta
Posts: 305
Joined: Tue Sep 01, 2009 5:04 am
Location: Belo Horizonte - BR
Contact:

Re: Creating big REM statements

Post by kmurta »

The TK85, a brazilian clone, has this feature and you can try it on EightyOne emulator.

For example, to create a REM line with 480 dots type:

1 REM ..

POKE 16514,224
POKE 16515,1

RAND USR 8192

LIST

This will create a REM line number 2 with 480 dots ;-)
1 x ZX81, 2 x TK85 , 1 TK82C, 1 TK95, 1 x Alphacom 32 printer, 1 x ZXpand
ZeXtender board, Joy81 - Programmable Joystick Controller, Turbo Sound 81
http://zx81.eu5.org
https://toddysoftware.itch.io/
User avatar
Thunor
Posts: 42
Joined: Sun Oct 11, 2009 11:37 am
Location: Anglia
Contact:

Re: Creating big REM statements

Post by Thunor »

Hi kmurta

I am assuming that you are attempting to POKE the length of the first BASIC line which then would be 16511 and 12.

8192 or 2000h on a ZX81 looks to me like the start of the ROM mirrored.

That doesn't work for me. Thanks anyway :)
User avatar
gus
Posts: 177
Joined: Fri May 16, 2008 10:18 pm
Location: Buenos Aires. Argentina
Contact:

Re: Creating big REM statements

Post by gus »

Thunor wrote:Thanks Gus

I would like to achieve this on the ZX81 but I can't see your attachment.
And you are right !!! because I forgot to do the attachment :) :)

Anyway here is it

cheers,
Gus
Attachments
rem.rar
REM line creator :)
(412 Bytes) Downloaded 282 times
User avatar
Thunor
Posts: 42
Joined: Sun Oct 11, 2009 11:37 am
Location: Anglia
Contact:

Re: Creating big REM statements

Post by Thunor »

That's excellent; just what I need.

Muchas gracias,
Thunor
User avatar
kmurta
Posts: 305
Joined: Tue Sep 01, 2009 5:04 am
Location: Belo Horizonte - BR
Contact:

Re: Creating big REM statements

Post by kmurta »

I am assuming that you are attempting to POKE the length of the first BASIC line which then would be 16511 and 12.

8192 or 2000h on a ZX81 looks to me like the start of the ROM mirrored.
This trick is for TK85 only that has a extended 2Kb ROM at 8192 and is emulated by EO.

The length of line to be created will be poked at address 16514/15 and the routine will create a second REM line with that length.

Only for you information.
1 x ZX81, 2 x TK85 , 1 TK82C, 1 TK95, 1 x Alphacom 32 printer, 1 x ZXpand
ZeXtender board, Joy81 - Programmable Joystick Controller, Turbo Sound 81
http://zx81.eu5.org
https://toddysoftware.itch.io/
Post Reply