I recently started an old project for TI99, TI-L.E.M. a conversion of the original game developed by Philsan for ATARI VCS.
Recently I managed to develop a pseudo-random lunar soil generation system and an algorithm that identifies the ideal moon landing point.
I also managed to compress the intro image, but I noticed that in this case I can't use the access to the VDP registers to turn off the video signal during the construction of the graphic and turn it back on at the end of it.
The form in which the system normally works is this:
REM DRAW MAP(S)
1420 CALL CLEAR
1423 CALL LOAD(14864,128)
1425 CALL LINK("SCREEN",-1391)
1430 RESTORE 900
1440 READ W,H,SC::CALL SCREEN(SC)::CALL CLEAR
1450 FOR Y=1 TO H
1460 FOR X=1 TO W
1470 READ CP::CALL VCHAR(Y,X,CP)
1480 NEXT X
1490 NEXT Y
1495 CALL LINK("SCREEN",-1327)
1500 CALL KEY(0,K,S)::IF S=0 THEN 1500
While in this form it does not work:
50 CALL LINK("SCRN2")
70 CALL LOAD(14864,128)
80 CALL LINK("SCREEN",-1391)
100 restore 30000
110 read a$ :: if a$="" then 2600 :: call link("CWRITE",a$) :: goto 110
120 CALL LINK("SCREEN",-1327)
Ok master friends, someone can help me?