CVBasic compiler v0.6.0

Programming the 6502 microprocessor and its relatives in assembly and other languages.
Post Reply
User avatar
nanochess
Posts: 16
Joined: 09 Jan 2017
Location: Mexico, Mexico
Contact:

CVBasic compiler v0.6.0

Post by nanochess »

Hi all.

I created this BASIC compiler originally for Z80 machines, however, I was intrigued by the fact that there are consoles with TMS9918 video processors, but 6502 processor!

In this case I decided to target the Vtech Creativision (also known as Dick Smith's Wizzard).

Of course, re-coding a whole Z80 compiler to support 6502 was pretty an achievement! Also rewriting the whole library. :D

CVBasic v0.6.0 is pretty complete, and all the example programs should compile just fine for Creativision. (just use the --creativision switch)

There are several examples and minigames included.

The Creativision Emulator is available from https://sourceforge.net/projects/creativisionemulator/

I've enlisted the help of some people to test in real hardware, but in the meanwhile, enjoy it! 8)

P.S: The full manual for the compiler is included, there is also my book Programming Games for Colecovision that fully applies to the Creativision port.

P.S.2: The source code for the compiler is available at https://github.com/nanochess/cvbasic
Attachments
camelot_knights_cvbasic.zip
Camelot Knights game (use camelot2.bas)
(65.9 KiB) Downloaded 71 times
cvbasic_v0.6.0.zip
CVBasic v0.6.0 compiler
(494.56 KiB) Downloaded 79 times
Author, IOCCC+JS1K winner, Princess Quest in Evercade Intellivision, MSX/Atari/CV/Intellivision/SMS game dev, Knight of boot sector games, IntyBASIC/CVBasic creator.
User avatar
BigEd
Posts: 11463
Joined: 11 Dec 2008
Location: England
Contact:

Re: CVBasic compiler v0.6.0

Post by BigEd »

Looks interesting! (I experienced mild disorientation that gasm80 now also supports 6502 but that's fine!)
User avatar
nanochess
Posts: 16
Joined: 09 Jan 2017
Location: Mexico, Mexico
Contact:

Re: CVBasic compiler v0.6.0

Post by nanochess »

BigEd wrote:
Looks interesting! (I experienced mild disorientation that gasm80 now also supports 6502 but that's fine!)
I'm glad you like it.

I needed a certain set of assembler features to support CVBasic, so it was easier to make gasm80 to support 6502. An option could be making gasm02 :D but the 6502 instruction set is pretty small so it fits perfectly in gasm80.

I see there are several homebrew computers based on 6502 and using TMS9918, it shouldn't be too difficult for users to make adaptations in the source code of CVBasic.
Author, IOCCC+JS1K winner, Princess Quest in Evercade Intellivision, MSX/Atari/CV/Intellivision/SMS game dev, Knight of boot sector games, IntyBASIC/CVBasic creator.
Post Reply