News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

Hello CPC Wiki !

Started by rewk, 22:39, 21 July 21

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rewk


Hello all,

Like a lot of people here, I grew up with a CPC in the late 80's. And I got interested in retro gaming and emulation for quite a while now. However, during all this time, I never really developed on CPC. Except when I was 12 years old using the exceptional Locomotive Basic, of course. :)

As I recently purchased a C4CPC and repaired my old GX-4000 (a broken joystick port needed to be replaced), I thought about adding some games to http://www.cpcwiki.eu/index.php/Converted_GX4000_Software. It was a really interesting to get Roland Ahoy working ! I found it fun to really use Z80 assembly. I will really look further into coding on GX4000, using its capabilities.

My background is C++ / Python with a bit of Rust development. I wonder if it would be possible to generate Z80 CPC specific assembly in Rust...

Anyways, hello everyone !



SkulleateR

Nice Story .... Welcome and have fun here 8)

ajcasado

Hi!,
Welcome to the forum, have fun!

About:
Quote from: rewk on 22:39, 21 July 21My background is C++ / Python with a bit of Rust development. I wonder if it would be possible to generate Z80 CPC specific assembly in Rust...
There is a project in progress to make the Z80 a target for llvm, it is referenced here: https://www.cpcwiki.eu/forum/programming/porting-smalltalkjoynimj-on-cpc/msg204696/#msg204696
It seems to be in a very alfa state, but may be wotrth to give it a try using this guide:
https://rustc-dev-guide.rust-lang.org/backend/updating-llvm.html

CPC 664

Empiezas a envejecer cuando dejas de aprender.
You start to get old when you stop learning.

Targhan

Welcome! Where are you in France?

As for Rust, you might join force with @krusty_benediction, who is a Rust advocate :).
Targhan/Arkos

Arkos Tracker 2.0.1 now released! - Follow the news on Twitter!
Disark - A cross-platform Z80 disassembler/source converter
FDC Tool 1.1 - Read Amsdos files without the system

Imperial Mahjong
Orion Prime

krusty_benediction

Quote from: Targhan on 10:17, 22 July 21
Welcome! Where are you in France?

As for Rust, you might join force with @krusty_benediction, who is a Rust advocate :) .
Welcome
Indeed, here is my rust toolbox https://github.com/cpcsdk/rust.cpclib that served me for https://www.pouet.net/prod.php?which=88554There is an assembler that can be used from the command line or programmatically from rust.I am currently doing a huge refactoring of the assembler to track the position of each instruction in the source code and generate localized error messages (it is not yet pushed it still does not compile)

Gryzor

Welcome and indeed, have fun!

rewk


Quote from: ajcasado on 09:30, 22 July 21 Hi!, Welcome to the forum, have fun! 

:)
Quote from: Targhan on 10:17, 22 July 21 Welcome! Where are you in France? As for Rust, you might join force with @krusty_benediction, who is a Rust advocate :).


I live near Troyes. Which will be updated in my profile, indeed. :)

Quote from: krusty_benediction on 10:42, 22 July 21
Welcome
Indeed, here is my rust toolbox https://github.com/cpcsdk/rust.cpclib that served me for https://www.pouet.net/prod.php?which=88554There is an assembler that can be used from the command line or programmatically from rust.I am currently doing a huge refactoring of the assembler to track the position of each instruction in the source code and generate localized error messages (it is not yet pushed it still does not compile)

I will definitively check that out. The Z80 is not a good target for a compiler, but it would be nice to have a set of low level assembly functions to be called using a higher level language.

Thank y'all for your welcoming !



krusty_benediction

My bad; Iwrongly translated your message.No I have no stuff that compiles rust in z80 (I was was talking of an assembler for z80 written in rust).
However, @m_dr_m made some test to compile rust in z80 and it was not successfull at all

m_dr_m

I wouldn't say unsuccessful. Actually I find it quite promising.
More details in the link shared above.

Powered by SMFPacks Menu Editor Mod