CPCWiki forum

General Category => Programming => Topic started by: AugustoRuiz on 13:19, 29 July 13

Title: CPC programming on Linux
Post by: AugustoRuiz on 13:19, 29 July 13
Hi all guys!


Just wondering... Is there anybody out there developing for the CPC on linux? If so...


What emulator do you use? Does it have an integrated debugger (a la WinAPE)? What toolchain?


Cheers!
Title: Re: CPC programming on Linux
Post by: ralferoo on 13:36, 29 July 13
Quote from: AugustoRuiz on 13:19, 29 July 13
Just wondering... Is there anybody out there developing for the CPC on linux? If so...
What emulator do you use? Does it have an integrated debugger (a la WinAPE)? What toolchain?
WinCPC works fine with wine. Yeah, the debugger is very similar to WinAPE's, the only thing I miss is the cycle counter.

I tend to develop inside WinCPC itself as it's such a quick turnaroudn time, but then have a makefile step with uses perl to translate from WinCPC syntax to pasmo syntax.

You can grab the tools I use from: ralferoo/cpctools · GitHub (https://github.com/ralferoo/cpctools) or have a look at it in use in actual project: ralferoo/sugarlumps · GitHub (https://github.com/ralferoo/sugarlumps)
Title: Re: CPC programming on Linux
Post by: mahlemiut on 00:16, 30 July 13
In a pinch, you could run MESS, with Maxam and Protext ROMs loaded...  Arnold also has a native Linux version, but we're still waiting for a more recent one... ;)

I have been working (very) occasionally on a simple IDE to build CPC ASM applications, building the ASM using Pasmo, collecting any other files, and adding it all to a disk image.  It's very basic, but it does work (if a touch buggy :)).  It mostly been an exercise for me to learn Qt, and I'm only building on 64-bit Linux, but there is no reason it shouldn't build on other OSes.  One day, perhaps, I'll release the source for it.
Title: Re: CPC programming on Linux
Post by: duncan_bayne on 02:25, 30 July 13
I'm developing CPC software on Linux.  My toolchain is:
I'm using this to develop a simple Lisp dialect for the Amstrad called zlisp (https://github.com/duncan-bayne/zlisp).  Check out the source code for some concrete examples, and see this video of a demo of zlisp (https://vimeo.com/70784619) running under emulation through Wine.

If you have any questions, please post them to this thread or send me a PM (posting here preferred, so everyone can benefit).
Title: Re: CPC programming on Linux
Post by: SyX on 08:00, 30 July 13
My toolchain is:
And very soon the last 3 steps will be replaced for a MiniBooster and the CTC-AY NMI monitor  ;)
Title: Re: CPC programming on Linux
Post by: HAL6128 on 08:40, 30 July 13
Quote from: SyX on 08:00, 30 July 13

       
  • Audacity for sending the tests to the CPC

...how do you do this?
Title: Re: CPC programming on Linux
Post by: arnoldemu on 09:00, 30 July 13
Quote from: HAL 6128 on 08:40, 30 July 13

...how do you do this?
use playtzx to convert the cdt to a au.
Load into audacity.
Set volume to about 3/4.
Connect cpc to pc soundcard.

Press play on cpc and play on audacity :)
Title: Re: CPC programming on Linux
Post by: arnoldemu on 09:02, 30 July 13
Quote from: AugustoRuiz on 13:19, 29 July 13
Hi all guys!


Just wondering... Is there anybody out there developing for the CPC on linux? If so...
Yes.

I use:
* Ubuntu linux with xfce
* sdcc for c
* pasmo for assembler.
* cpcxfs for dsk management.
* my own tools to convert bmp to cpc image format
* audacity to transfer file to cpc
* my own wip of arnold which has a much better debugger in it (full display of hardware, breakpoints etc)
* gimp for editing images
Title: Re: CPC programming on Linux
Post by: AugustoRuiz on 10:20, 30 July 13
Thank you all!!! Plenty of choices!!!
Title: Re: CPC programming on Linux
Post by: ralferoo on 14:30, 30 July 13
Quote from: arnoldemu on 09:00, 30 July 13
use playtzx to convert the cdt to a au.
Load into audacity.
Set volume to about 3/4.
Connect cpc to pc soundcard.

Press play on cpc and play on audacity :)
Oh, I forgot, I do this too except I use aplay directly from the makefile. So, to test on a real CPC I just hit ctrl+enter twice and type "make run" in my command window...  8)
Title: Re: CPC programming on Linux
Post by: AugustoRuiz on 08:53, 01 August 13
Quote from: arnoldemu on 09:02, 30 July 13
* my own wip of arnold which has a much better debugger in it (full display of hardware, breakpoints etc)
Interesting... ;)
Powered by SMFPacks Menu Editor Mod