News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

CPC programming on Linux

Started by AugustoRuiz, 13:19, 29 July 13

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

AugustoRuiz

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!

ralferoo

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 or have a look at it in use in actual project: ralferoo/sugarlumps · GitHub

mahlemiut

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.
- Barry Rodewald

duncan_bayne

#3
I'm developing CPC software on Linux.  My toolchain is:

       
  • Linux Mint (64-bit)
  • Emacs
  • GNU Make
  • SDCC
  • Octoate's cpc-sdcc-rom template
  • Wine
  • WinCPC
  • GitHub
I'm using this to develop a simple Lisp dialect for the Amstrad called zlisp.  Check out the source code for some concrete examples, and see this video of a 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).

SyX

My toolchain is:

       
  • Kate + z80 colouring syntax
  • VASM + VLINK
  • Mercurial + Waf + Make + ...
  • A lot of python scripts for a lot of tasks (convert gfxs, make dsks, ...)
  • Caprice for fast tests (99% of the time)
  • Old Wine + WinApe for debugging
  • Audacity for sending the tests to the CPC
And very soon the last 3 steps will be replaced for a MiniBooster and the CTC-AY NMI monitor  ;)

HAL6128

Quote from: SyX on 08:00, 30 July 13

       
  • Audacity for sending the tests to the CPC

...how do you do this?

arnoldemu

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 :)
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

arnoldemu

#7
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
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

AugustoRuiz

Thank you all!!! Plenty of choices!!!

ralferoo

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)

AugustoRuiz

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