Masters of basic, I need an info! NYYRIKKI, you there?

By thegeps

Paragon (1177)

thegeps's picture

03-02-2020, 20:53

I had ready a 256chars x line version of SeuTen for 10liner basic contest. This is a parallax scrolling version. But I have a big amount of setting time at the start of the program. My question is: is it possible to change the area affected by "print"? I mean: when, in screen1, doing vdp(2)=2, and so setting visible area from 2048 and on instead of 6144 and on, is there a way to use print directly in that area? Vpoke is sooooo slow...

Login or register to post comments

By Grauw

Ascended (10720)

Grauw's picture

03-02-2020, 21:06

Have you tried changing CRTCNT?

By Wlcracks

Hero (545)

Wlcracks's picture

03-02-2020, 21:30

using strings, mid$ and just locate and print?

By Pencioner

Scribe (1548)

Pencioner's picture

03-02-2020, 22:16

interesting idea. did you try to change the T32NAM system variable (probably you even don't have to do VDP(2) assignment then), print what you need, and then change T32NAM back? i think basic PRINT statement should use it to know which VRAM address is the beginning of printable screen area

By thegeps

Paragon (1177)

thegeps's picture

03-02-2020, 22:34

I will try but don't CRTCNT change only lines on screen? I think it will affect only the usable lines, probably to print where usually are displayed the function keys...

By thegeps

Paragon (1177)

thegeps's picture

03-02-2020, 22:37

Didn't try yet. I will try (tomorrow, I think) and then report the result here

By thegeps

Paragon (1177)

thegeps's picture

04-02-2020, 09:19

t32nam is a wrong way

By thegeps

Paragon (1177)

thegeps's picture

04-02-2020, 09:23

inspecting a japanese basic game I've discovered how to do it!

poke &hF923,vdp(2)*4

By Pencioner

Scribe (1548)

Pencioner's picture

04-02-2020, 09:35

ok so that was NAMBAS system variable. cool Wink

By zett

Hero (608)

zett's picture

04-02-2020, 10:02

thegeps wrote:

inspecting a japanese basic game I've discovered how to do it!

poke &hF923,vdp(2)*4

Can you explane what you do here, im not that good with basic

By thegeps

Paragon (1177)

thegeps's picture

04-02-2020, 10:26

setting msx to print in the selected nametable. with vdp(2)=x you can select the start address of actual nametable. Nametable address is x*1024 (decimal) or x* 800h. F923H is not mentioned elsewhere. I found in another thread this: F922H NAMBAS Base address of current pattern name table. So they are correlated. changing F923H value you say to the basic to do PRINT, LOCATE, CLS and other correlated statement in the selected nametable area