News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

Boriel's ZX-Basic Compiler

Started by nitrofurano, 15:10, 31 October 13

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nitrofurano

hi everyone!

Probably most of you are aware of Boriel's ZX-Basic Compiler, and how easy and efficient it is for creating stuff for ZX-Spectrum.

Since around 1 year ago, i were starting to "patch" this cross-compiler for creating stuff for MSX, Mattel-Aquarius, MC-1000 (a brazilian GEM-1000/Charlemagne clone, it's like a TRS-ColorComputer with Z80 instead of 6809), Philips-VG5000, etc. ( retrocoding )


So, i imagine that creating stuff for Amstrad-CPC would be as simple as possible as well? the problem is i don't know where or how to start, like snippets in assembly that i could try to compile and patch from Boriel's ZX-Basic Compiler, how memory, i/o ports and bios address calls are arranged for being accessed from the custom libraries, how to create snapshots or tape images from a cross-compiler (or documentation about), etc.

Any feedback about this would be excellent, because i imagine that such awesome cross-compiler like Boriel's ZX-Basic Compiler is probably really missing for Amstrad! ;)

Thanks and cheers!

AMSDOS

Never heard of the program

You may want to check this site out, followed by this site, I'm not sure what you're running it on, PC I presume, this page has a outline of the Amstrad Memory Map and you'll probably want to have a look at the Firmware Guide, apart from that, that's about all I know.  ;D
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Sykobee (Briggsy)

I think it's a PC based BASIC compiler for ZX BASIC that generates ZX binaries?  Ah yes, Python.
boriel.com » The ZX Basic Compiler
It also enhances the language somewhat with more primitive types.


The CPC equivalent would be a PC based Locomotive BASIC compiler, I guess.  Something like Laser Basic on the CPC, but quicker and supporting more of the language.


But at some point, why bother with BASIC at all, and its limitations? I guess that it's kinda old-school to use it?

AMSDOS

Quote from: Sykobee (Briggsy) on 18:31, 04 November 13
I think it's a PC based BASIC compiler for ZX BASIC that generates ZX binaries?  Ah yes, Python.
boriel.com » The ZX Basic Compiler
It also enhances the language somewhat with more primitive types.


The CPC equivalent would be a PC based Locomotive BASIC compiler, I guess.  Something like Laser Basic on the CPC, but quicker and supporting more of the language.


But at some point, why bother with BASIC at all, and its limitations? I guess that it's kinda old-school to use it?

I was interpreting the original poster as looking to making it possible for their cross-compiler to reproduce ZX BASIC code compatible for our system, presumably as Assembly, though I suppose it could include another compilable language?

I'd call it an equivalent of our CPC BASIC 3, even though it's not 100% Compatible with Locomotive BASIC.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

AMSDOS

Quote from: Sykobee (Briggsy) on 18:31, 04 November 13

But at some point, why bother with BASIC at all, and its limitations? I guess that it's kinda old-school to use it?

The problem I see there is magazines refused to publish programs which would reveal BASICs limitations.

Ok BASIC may not be the most readable language, perhaps on par with C if written well or look like Dog's Droppings if not, though by defining some routine which shows process I think can aid in writing something to assembly. Theoretically Pseudocode maybe more suited, though a routine still has to be written to some computer language, which just sounds like double-handling.  :P
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Gryzor

Quotemagazines refused to publish programs which would reveal BASICs limitations.

What does that mean?

TotO

I have read: "Boring ZX-Basic Compiler".  ???
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

AMSDOS

Quote from: Gryzor on 19:41, 17 December 13
What does that mean?

I simply meant the magazines I used to get tend to use good examples of BASIC programs, not that that's a bad thing, I'm just saying that if they had some article explaining the process of something using BASIC, it could be improved using Compiled.

I don't know, maybe a bad idea.  ;D

* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Powered by SMFPacks Menu Editor Mod