Page 1 of 1

Creating big REM statements

PostPosted: Fri Nov 20, 2009 4:04 pm
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

Re: Creating big REM statements

PostPosted: Fri Nov 20, 2009 4:56 pm
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

Re: Creating big REM statements

PostPosted: Fri Nov 20, 2009 5:21 pm
by Thunor
Thanks Gus

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

Cheers,
Thunor

Re: Creating big REM statements

PostPosted: Fri Nov 20, 2009 5:59 pm
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 ;-)

Re: Creating big REM statements

PostPosted: Fri Nov 20, 2009 8:16 pm
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 :)

Re: Creating big REM statements

PostPosted: Fri Nov 20, 2009 9:28 pm
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

Re: Creating big REM statements

PostPosted: Fri Nov 20, 2009 11:45 pm
by Thunor
That's excellent; just what I need.

Muchas gracias,
Thunor

Re: Creating big REM statements

PostPosted: Sat Nov 21, 2009 2:07 am
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.