MSX-BASIC editor for Windows released

Pagina 3/6
1 | 2 | | 4 | 5 | 6

Van N.I

Master (177)

afbeelding van N.I

10-08-2016, 15:54

I have released Tabmegx ver 1.03.

- New features
Support for ccZ80++
Export ROM file(ccz80 or ccZ80++)

- ccZ80++
Tabmegx generates the binary code or the MSX ROM file from the following source and runs it in MSX emulator.

include bios.ccz80++
include Random.ccz80++

class MainClass{
 static short spptn[]={#48,#F8,#A8,#F9,#61,#7F,#7F,#55};
 static void main(){
  short x,y;
  bios.color(15,0,0);
  bios.ldirvm(&spptn,#3800,8);
  *#f3e0=*#f3e0&#fc; // set sprite size
  bios.setsatblad(#1b00);
  bios.screen(1);
  x=128;y=80;
  //-- main loop
  while(1){
   bios.vpoke(6144,65);
   bios.print(3,0,"-- Test --");
   x+=Random.Next()%3-1;
   y+=Random.Next()%3-1;
   bios.putsprite(0,x,y-1,7,0);
  }
 }  
}

- Demo of generating the MSX ROM file
https://youtu.be/knK4sSxPDXI

- Download
http://ni.x0.com/msx/tabmegx/

Have fun! :D

Van ericb59

Paragon (1102)

afbeelding van ericb59

10-08-2016, 17:24

I need time to test this tool !
It looks great !

Van N.I

Master (177)

afbeelding van N.I

17-09-2016, 02:38

I have released Tabmegx ver 1.05.

- New features
Graphic editor
Classes for ccZ80++

Graphic editor is the tool for making graphics for SCREEN 5 or 8.
The images are converted into the sources of BASIC or ccZ80. And, it supports compression.

Classes for ccZ80++ is the functions for the management of MSX. If you know MSX-BASIC, it may be easy to use.
It includes the following classes.

  • bios: the basic functions with BIOS
  • bitbuster: the functions for decompressing with bitbuster
  • chr: the functions for the management of the characters
  • graphic: the functions for the management of the graphics in SCREEN 5~8
  • sprite: the functions for the management of the sprites
  • timer: the functions for using the timer interrupt with VSYNC

- Sample

include bios.ccz80++
include Random.ccz80++
include graphic.ccz80++
include timer.ccz80++

class MainClass{
 static short gradata[]={
#11,#11,#11,#11,#11,#11,#11,#11,#11,#22,#22,#21,#11,#11,#11,#23,#12,#22,#22,#22,#22,#22,#22,#23,#12,#22,#22,#22,#22,#22,#22,#23,#12,#22,#22,#22,#22,#22,#22,#23,#12,#22,#22,#22,#22,#22,#22,#23,#12,#22,#22,#22,#22,#22,#22,#23,#12,#22,#22,#22,#22,#22,#22,#23,#12,#22,#22,#22,#22,#22,#22,#23,#12,#22,#22,#22,#22,#22,#22,#23,#12,#22,#22,#22,#22,#22,#22,#23,#12,#22,#22,#22,#22,#22,#22,#23,#12,#22,#22,#22,#22,#22,#22,#23,#12,#22,#22,#22,#22,#22,#22,#32,#12,#22,#22,#22,#22,#22,#23,#23,#13,#33,#33,#33,#33,#33,#33,#33,
#00,#00,#77,#00,#07,#70,#00,#00,#00,#00,#78,#80,#07,#80,#00,#00,#00,#00,#78,#87,#78,#88,#00,#00,#00,#00,#78,#88,#88,#88,#00,#00,#00,#00,#86,#88,#68,#99,#00,#00,#00,#00,#88,#68,#88,#89,#00,#00,#00,#00,#98,#88,#89,#99,#00,#00,#00,#00,#09,#89,#99,#C0,#00,#00,#00,#00,#0A,#AB,#BC,#C8,#00,#00,#00,#00,#89,#77,#88,#88,#80,#00,#00,#08,#97,#88,#88,#99,#88,#00,#00,#08,#98,#88,#88,#99,#88,#00,#00,#09,#98,#89,#88,#89,#88,#00,#00,#07,#78,#97,#78,#89,#99,#00,#00,#78,#79,#78,#88,#99,#00,#00,#00,#89,#99,#99,#99,#90,#00,#00};
 static short colors[]={0,0,0, 6,2,5, 4,1,4, 2,0,3, 3,5,7, 2,3,6, 1,1,5, 7,7,5, 6,6,3, 5,5,1, 3,7,4, 2,6,2, 1,5,0, 7,5,3, 5,5,5, 7,7,7};

 static void main(){
 int i;
 bios.screen(5);
 bios.color(15,0,0);
 graphic.setpage(1,0);
 for(i=0;i<16;i++)graphic.color(i,colors[i*3],colors[i*3+1],colors[i*3+2]);
 for(i=0;i<2;i++){
  graphic.put(i*16,0,16,16,&gradata+i*16*16/2);}
 graphic.setpage(0,1);
 graphic.cls();
 timer.start(&loop());
 while(1);
 }
 
 static void loop(){
  graphic.copy((Random.Next()%16)*16,(Random.Next()%13)*16,16,16, (Random.Next()%2)*16,0,graphic.SRCIMP);
  }
}

- Demo of new features
https://youtu.be/JS5pt-H1fRs

- Download
http://ni.x0.com/msx/tabmegx/

Have fun!

Van ericb59

Paragon (1102)

afbeelding van ericb59

17-09-2016, 08:13

Wow ! Your tool seems to become more and more powerfull !
With libraries it 's more easy to use C language. Thank you for this tool ! Really !

I have some requests...
Will you add librairies to load/save Files ?
I'm working on games, and can perhaps switch to your tool, but i need to load file from MSX devices.
Also, screen12 capabilities must be nice too !

Van N.I

Master (177)

afbeelding van N.I

20-09-2016, 10:27

ericb59 wrote:

Will you add librairies to load/save Files ?
I'm working on games, and can perhaps switch to your tool, but i need to load file from MSX devices.
Also, screen12 capabilities must be nice too !

Thank you. I will consider adding libraries to manage files Smile
This libraries does not work in MSX-DOS for now. Do you make games for MSX-DOS?

Van ericb59

Paragon (1102)

afbeelding van ericb59

20-09-2016, 10:45

N.I wrote:

Do you make games for MSX-DOS?

No, not for MSX-DOS

Van N.I

Master (177)

afbeelding van N.I

08-10-2016, 01:58

I have released Tabmegx ver 1.06.

- New features
Support 2 layers sprites(with color or'ing)
Updated classes for ccZ80++
Added a sample game for MSX2

- Example for new functions for ccZ80++

include bios.ccz80++
include file.ccz80++
include graphic.ccz80++

class MainClass{
 static void main(){
  //loads variables from the file
  static short buf[8];
  file.load("TEST.BIN",&buf,8);

  //draws a line
  bios.screen(5);
  graphic.line(0,0,255,211, 2);

  //saves the picture to the file
  graphic.save("GRA.PIC",0,0,32,32);

  //loads the VRAM from the file(Same as BLOAD"...",S in MSX-BASIC)
  graphic.bload("TEST.SC5");

  //writes the value to vdp
  graphic.vdp(1,graphic.vdp(1)&191);

  //executes MSX-BASIC statement
  bios.basic("SCREEN1:SPRITE$(0)=\x22123\x22:PRINT1+2");

  while(bios.strig(0)==0);
 }
}

- Sample game for MSX2

This is the action puzzle game using the futures of MSX2.

- Download
http://ni.x0.com/msx/tabmegx/
(The ROM file of the sample game is here.)

Have fun!

Van ~mk~

Champion (328)

afbeelding van ~mk~

08-10-2016, 23:37

Very nice N.I!
Not only you share your games but also the tools you've made, thank you!
I tried the rom file with execrom / odo and the game fails to load.
Works fine when emulating real cartridge with openMSX, though... could it be because size is 24k ?

Van N.I

Master (177)

afbeelding van N.I

09-10-2016, 07:43

~mk~ wrote:

I tried the rom file with execrom / odo and the game fails to load.
Works fine when emulating real cartridge with openMSX, though... could it be because size is 24k ?

Thank you for letting me know.
I can't load the rom file of 24k with execrom certainly, too. Because I use loadrom, I didn't notice it.
I will fix the game to 32k Smile

Van slowerisbetter

Master (194)

afbeelding van slowerisbetter

09-10-2016, 15:19

Seems to work fine under Wine too Smile

Pagina 3/6
1 | 2 | | 4 | 5 | 6