CPCWiki forum

General Category => Applications (CPC and CPC-related) => Topic started by: tubs74 on 20:31, 24 April 25

Title: Programming on a PC, to make CPC programs ...
Post by: tubs74 on 20:31, 24 April 25
Hi

I wondered if there is a programming system that I can use on the PC, to create CPC programmes?  I mess about with Boriels ZXBasic and the associated dev studio for the Spectrum (Basically a version of FreeBasic, that creates a spectrum tap file that can then be loaded onto a real spectrum), and I wondered if there was anything similar for the CPC?

(I'm aware of MPAGD, but thats not what I'm looking for)

Thanks.
Title: Re: Programming on a PC, to make CPC programs ...
Post by: McArti0 on 20:45, 24 April 25
CPC Telera ?
Title: Re: Programming on a PC, to make CPC programs ...
Post by: tubs74 on 20:51, 24 April 25
Quote from: McArti0 on 20:45, 24 April 25CPC Telera
Ah, yes sort of ... maybe not c/c++ though.
Title: Re: Programming on a PC, to make CPC programs ...
Post by: HAL6128 on 21:02, 24 April 25
Title: Re: Programming on a PC, to make CPC programs ...
Post by: eto on 21:25, 24 April 25
ugBasic 
Title: Re: Programming on a PC, to make CPC programs ...
Post by: tubs74 on 21:31, 24 April 25
Quote from: HAL6128 on 21:02, 24 April 25
  • Notepad++ & RASM (Assembler)
  • "CPCBasic" leads to assembled code

Assembler is too low level for me.

CPCBasic looked interesting, but windows is reporting that there is a virus in the archive ...
Title: Re: Programming on a PC, to make CPC programs ...
Post by: tubs74 on 21:40, 24 April 25
Quote from: eto on 21:25, 24 April 25ugBasic
Ah, yes completely forgot about ugBasic!  Good call.

I think I'd discounted it in the past, as the ZX spectrum version was quite restricted.
Title: Re: Programming on a PC, to make CPC programs ...
Post by: MiguelSky on 05:32, 25 April 25
What kind of games and which programming language do you want to use?

8bp features a good bunch of RSX to create games in BASIC:
https://8bitsdepoder.blogspot.com/?m=1

CPCtelera comes also with some routines to program in C (also for assembler, but I already read that you don't like it too much):
https://github.com/lronaldo/cpctelera
Title: Re: Programming on a PC, to make CPC programs ...
Post by: krusty_benediction on 07:47, 25 April 25
For assembly-based projects,
I have validated https://cpcsdk.github.io/rust.cpclib/bndbuild/ forum my last 3 demos.

It provides direct access to my assembler, image transfer tool, dsk manipulation tool, as well as major related public tools (by downloading & launching them automatically). Has been used by various people on linux or windows. Few work is expected for a mac version, but I cannot build it myself.

Basic files import/export is maybe not complete, i have only tested what i used. But it can be completed.

There is nothing related to C, but I may think about it.
Title: Re: Programming on a PC, to make CPC programs ...
Post by: HAL6128 on 08:27, 25 April 25
Quote from: krusty_benediction on 07:47, 25 April 25For assembly-based projects,
I have validated https://cpcsdk.github.io/rust.cpclib/bndbuild/ forum my last 3 demos.

It provides direct access to my assembler, image transfer tool, dsk manipulation tool, as well as major related public tools (by downloading & launching them automatically). Has been used by various people on linux or windows. Few work is expected for a mac version, but I cannot build it myself.

Basic files import/export is maybe not complete, i have only tested what i used. But it can be completed.

There is nothing related to C, but I may think about it.
Oh, nice tool chain! 
There's a program mentioned to manipulate header. Is it possible to add an own header to an ASCII / raw file (e.g. data file from a PC) with file length information added?
Title: Re: Programming on a PC, to make CPC programs ...
Post by: XeNoMoRPH on 08:44, 25 April 25
Another tool : https://xavisan.itch.io/mpagdgen2 [ Amstrad & Spectrum ]
Title: Re: Programming on a PC, to make CPC programs ...
Post by: krusty_benediction on 09:00, 25 April 25
@HAL6128 yep ;) I can fix/improve if needed. This is a rewrite of hideurMaker, not idea how it differs from the original

Usage: hideur [OPTIONS] <INPUT>

Arguments:
  <INPUT>
          Input file to manipulate

Options:
      --info


  -o, --output <OUTPUT>
          Output file to generate

  -u, --user <USER>
          User where to put the file

  -t, --type <TYPE>
          File type

          [possible values: 0, 1, 2, Basic, Protected, Binary, basic, protected, binary, BASIC, PROTECTED, BINARY]

  -x, --execution <EXEC>
          Execution address. Default to the load address if not specified.

  -l, --load <LOAD>
          Loading address.

  -h, --help


  -V, --version
          Print version

So blindly, when used from command line, i would say (I barely use it) :

bndbuild --direct -- hideur -o with_header.bin -l0x4000 -x0x4000 -tbinary without_header.asc
Title: Re: Programming on a PC, to make CPC programs ...
Post by: HAL6128 on 09:27, 25 April 25
Do you think it (hideur) can be modified to change the AMSDOS information (Bytes 64..66 = real length of a file)?
Title: Re: Programming on a PC, to make CPC programs ...
Post by: krusty_benediction on 09:33, 25 April 25
Sure fell free to add an issue here https://github.com/cpcsdk/rust.cpclib/issues to express your needs as detailed as possible.
I'm on holiday next week, I should be able to handle it
Title: Re: Programming on a PC, to make CPC programs ...
Post by: HAL6128 on 09:35, 25 April 25
Nice, thank!
Title: Re: Programming on a PC, to make CPC programs ...
Post by: zhulien on 12:58, 27 April 25
Is Turbo Rascal usable for CPC currently?
Title: Re: Programming on a PC, to make CPC programs ...
Post by: McArti0 on 06:24, 28 April 25
Turbo Pascal 3 makes a minimal COM file 9kB. I don't know if there's a way around this. @Nemo59 wrote various cool things in TP3. There is a channel on YT.
Title: Re: Programming on a PC, to make CPC programs ...
Post by: zhulien on 18:20, 09 May 25
I actually meant Turbo Rascal Syntax Error
https://lemonspawn.com/turbo-rascal-syntax-error-expected-but-begin/
Powered by SMFPacks Menu Editor Mod