nesdev.com
http://forums.nesdev.com/

Tool to compile Family Basic program to .NES file
http://forums.nesdev.com/viewtopic.php?f=2&t=10156
Page 1 of 4

Author:  lbarasc [ Sun Jun 09, 2013 1:24 am ]
Post subject:  Tool to compile Family Basic program to .NES file

Hi,

I discover a tool to compile Family Basic program to .NES file : STTONES

So you can easily develop small game on NES with BASIC language and compile it !

How it works ? STTONES convert VirtuaNES savestates of Family Basic to .NES ROM file.

Tutorial :

1 - Run Family Basic V3 rom on VirtuaNES

2 - Type your program on Family Basic, don't run program before convert it with STTONES

3 - Save state with VirtuaNES, it creates .st0 file on VirtuaNES state folder)

4 - exit VirtuaNES

5 - drag and drop your .st0 file to STTONES.EXE it creates .NES file !

6 - Run your .NES rom file on emulator or

download the STTONES1000.zip on skydrive :

https://skydrive.live.com/redir?resid=6 ... 06dB-h0IPg

Step by step operations (Japanese but screenshots) :

http://messatu.wordpress.com/2013/02/24 ... %E3%81%99/

I hope it we help us to easily develop on Famicom.

Author:  Pokun [ Sun Jun 09, 2013 8:21 am ]
Post subject:  Re: Tool to compile Family Basic program to .NES file

It works! Thank you this is great! :D

However, I loaded a program from tape but I couldn't get it to work in SSTONES. I hope I can convert my other FB programs stored in other formats. It's still great that there's a way to do it though. :)

Now I'm curious if the generated NES-files work on real hardware. Anyone with a flash cart can check (I don't have one) , since the state files that comes with SSTONES contains five sample games ready to be converted.

Author:  slobu [ Mon Jun 10, 2013 12:50 pm ]
Post subject:  Re: Tool to compile Family Basic program to .NES file

THIS IS AMAZING!!!!! Finally, BASIC enthusiasts can make games on the good 'ol NES ^_^

The limitation of not being able to RUN your program seems harsh. How would you debug your BASIC without running it?

Author:  zzo38 [ Mon Jun 10, 2013 5:02 pm ]
Post subject:  Re: Tool to compile Family Basic program to .NES file

Does it mean you cannot run the program at all or does it mean that the program has to be not running at the time the save state is created?

Author:  B00daW [ Mon Jun 10, 2013 6:31 pm ]
Post subject:  Re: Tool to compile Family Basic program to .NES file

Can you please attach it in your post?

Author:  Pokun [ Tue Jun 11, 2013 3:36 am ]
Post subject:  Re: Tool to compile Family Basic program to .NES file

OK loading a game from tape works now, not sure what I did wrong before. Also running the game before or even while you make the save state doesn't seem to matter, so debuging shouldn't be a problem. I'm not sure if it matters but I typed CLS and then CLEAR before I made the save state and it worked.

Virtuanes' VTP-tape files and Nestopia's TP-tape files are the same, just a different extension. It's usefull to know since Nestopia can use code in the clip-board as a macro.

Author:  slobu [ Tue Jun 11, 2013 6:53 am ]
Post subject:  Re: Tool to compile Family Basic program to .NES file

The _README.TXT says something about

Base : MMC3
Mapper : 1
PRG-ROM : 32k
CHR-ROM : 32k

Does that mean if one wants to make an actual cart I'd have to find a donor cart with MMC3 chip and the same PRG/CHR specs?

Author:  tokumaru [ Tue Jun 11, 2013 7:20 am ]
Post subject:  Re: Tool to compile Family Basic program to .NES file

slobu wrote:
Does that mean if one wants to make an actual cart I'd have to find a donor cart with MMC3 chip and the same PRG/CHR specs?

You can use smaller ROMs than those in the donor cart.

Author:  thefox [ Tue Jun 11, 2013 8:13 am ]
Post subject:  Re: Tool to compile Family Basic program to .NES file

slobu wrote:
The _README.TXT says something about

Base : MMC3
Mapper : 1
PRG-ROM : 32k
CHR-ROM : 32k

Does that mean if one wants to make an actual cart I'd have to find a donor cart with MMC3 chip and the same PRG/CHR specs?

Dunno what that info is about, because the converted example games use/need MMC1 with 32KB PRG, 8KB CHR and 8KB WRAM.

On a sidenote, the example games are surprisingly good, too.

Author:  Pokun [ Tue Jun 11, 2013 9:40 am ]
Post subject:  Re: Tool to compile Family Basic program to .NES file

The readme says the generated NES-files will have those listed specs though. Maybe a mistake.

It also says that you can use V2 (or V1 I guess if you have that) as long as you don't use parts of the memory that's not the same in V3, or otherwise mess with the CALL command or such in a way that's incompatible with V3.
The instructions is basically the same as on the homepage. None of them mentions that you can't run your program before making the stand-alone. Nothing else interesting in there.

thefox wrote:
On a sidenote, the example games are surprisingly good, too.

Yeah they are really well made! I had no idea you could make such bosses in Family Basic.

Author:  nitrofurano [ Wed Sep 10, 2014 9:30 am ]
Post subject:  Re: Tool to compile Family Basic program to .NES file

lbarasc wrote:
download the STTONES1000.zip on skydrive :
https://skydrive.live.com/redir?resid=6 ... 06dB-h0IPg


it looks like a broken link (from microsoft, i'm not surprised at all...)

is there any other mirror link of it, like from googledrive, dropbox, etc.?

Author:  slobu [ Wed Sep 10, 2014 11:09 am ]
Post subject:  Re: Tool to compile Family Basic program to .NES file

nitrofurano wrote:
lbarasc wrote:
download the STTONES1000.zip on skydrive :
https://skydrive.live.com/redir?resid=6 ... 06dB-h0IPg


it looks like a broken link (from microsoft, i'm not surprised at all...)

is there any other mirror link of it, like from googledrive, dropbox, etc.?


All the rest of the links off of Google seem to be dead too. I kind of lost interest after many on hear noted that the results cannot be distributed as your own game legally. If I find a download I'll see if I can save it for you. Any chance you'll try to make a ZX Basic port for NES? :)

Author:  tepples [ Wed Sep 10, 2014 11:41 am ]
Post subject:  Re: Tool to compile Family Basic program to .NES file

I plan to write a BASIC interpreter for NES as soon as someone figures out how to use an MCU to adapt the PS/2 keyboard's wire protocol to the 7-pin port of the NES. Otherwise, I'd be looking at $100 for a keyboard plus more for an ENIO board.

Author:  nitrofurano [ Wed Sep 10, 2014 12:11 pm ]
Post subject:  Re: Tool to compile Family Basic program to .NES file

slobu wrote:
nitrofurano wrote:
lbarasc wrote:
download the STTONES1000.zip on skydrive :
https://skydrive.live.com/redir?resid=6 ... 06dB-h0IPg


it looks like a broken link (from microsoft, i'm not surprised at all...)

is there any other mirror link of it, like from googledrive, dropbox, etc.?


All the rest of the links off of Google seem to be dead too. I kind of lost interest after many on hear noted that the results cannot be distributed as your own game legally. If I find a download I'll see if I can save it for you.

thanks! this would allow me to try a kind of tokenizer for .nes files, as useful as zmakebas or zxtext2p


Quote:
Any chance you'll try to make a ZX Basic port for NES? :)


i'm dreaming on it!!!!! - i actually talked with Boriel about this - and that is the toughest part, the actual ZX Basic is all structured on Z80, and would be great if someone could help recoding that Z80 part into 6502, so we could not only target NES, as we could Apple-I/II, Atari Lynx, some Atari 8bit hardware, PC-Engine, C64, etc.

for now, i'm in that part on how can i learn 6502 assembly from what i humbly think i know from Z80, and perhaps being able to do similar things one day - the good thing is the ZX Basic allows inline-assembly, and we can create custom libraries quite easily (via #include) - the actual source of ZX Basic is plenty of routines for calculation that i have no idea how it would look like in 6502 assembly, and for example, i'm struggling to find ready 6502 examples of code that i use all the time, like for 16bit calculations, or ldir-like stuff

so, what we really need is help from people that could help converting ZX Basic to compile to 6502 from what we have there for Z80 - i think it is not that impossible to do, but it is really something far beyond my humble knowledge and skills... :S

Author:  slobu [ Wed Sep 10, 2014 1:13 pm ]
Post subject:  Re: Tool to compile Family Basic program to .NES file

There is already a language called Atalan that targets both the 6502 and Z80
http://atalan.kutululu.org/

Maybe you can use that to contrast and compare.

Page 1 of 4 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/