V9990 LMMM in P2 mode

بواسطة Bogogil

Master (135)

صورة Bogogil

14-10-2011, 20:49

Hi,

I am going on with my project and implement a text mode. Therefore I use a font at $00000 as pattern generator table. Now I want to scroll the pattern name table at $7c000 one line up. So no softscrolling is needed. I wanted to go with the LMMM command, but it seems, it's doing the operation on the pattern generator table instead of the name table.
Can anyone give me a hint to set up R#32 to R#47?

Thanks and regards
Bogo

Login أوregister لوضع تعليقاتك

بواسطة Bogogil

Master (135)

صورة Bogogil

15-10-2011, 11:23

Hello,

I am trying with these register settings:
R#32=$01 (1st pixel of x-coord sourcei, low)
R#33=$00 (1st pixel of x-coord source, high)
R#34=$09 (9th pixel (row) of y-coord source, low)
R#35=$00 (9th pixel (row) of y-coord source, high)
R#36=$01 (1st pixel of x-coord dest, low)
R#37=$00 (1st pixel of x-coord dest, high)
R#38=$01 (1st pixel (row) of y-coord dest, low)
R#39=$00 (1st pixel (row) of y-coord dest, high)
R#40=$00 (image space in P2 in x-coord is 512pixel ($0200), low)
R#41=$02 (image space in P2 in x-coord is 512pixel ($0200), high)
R#42=$D4 (image space in P2 in y-coord is 212pixel ($00D4), low)
R#43=$00 (image space in P2 in y-coord is 212pixel ($00D4), high)
R#44=$00 (DIY=0, DIX=0)
R#45=$0c (LOP: WC=SC)
R#46=$ff (write mask)
R#47=$ff (write mask)
R#52=$40 (LMMM)

What it does is it scrolls the fontbitmap upwards. So every "1" on screen becomes a "q" and every "+" becomes a "k", so the move is done on the pattern generator table.
But I want to scroll the charakters on screen 8 lines upwards. Therefore the pointers in the pattern name table have to be moved. How is this done?

Bogo

بواسطة Bogogil

Master (135)

صورة Bogogil

15-10-2011, 17:27

Update: At the moment I work around with setting R#0-R#5 and use the cpu to scroll the name table. But what about VDP commands?

بواسطة PingPong

Prophet (4093)

صورة PingPong

15-10-2011, 21:09

Update: At the moment I work around with setting R#0-R#5 and use the cpu to scroll the name table. But what about VDP commands?

vdp commands are best suited for graphics movement. i had the same problem time ago, look at this http://www.msx.org/forumtopic11425.html

بواسطة Bogogil

Master (135)

صورة Bogogil

15-10-2011, 22:28

PingPong, I found you old thread and I am wondering, HOW LMMM should work in pattern mode. Every setup I tried worked out at the tiles bitmap direct. Well I found out, that it is very suitable and fast to use BMLL when to move the name table. BUT it took me nearly the whole day to find out, that one has to multiply name table addresses with two. So doing, the BMLL from $f8200 to $f8000 is the way I wanted.

www.bilder-space.de/show_img.php?img=bee595-1318710496.jpg&size=thumb