CPCWiki forum

General Category => General Discussion - Introductions => Topic started by: rewk on 00:39, 22 July 21

Title: Hello CPC Wiki !
Post by: rewk on 00:39, 22 July 21

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 !


Title: Re: Hello CPC Wiki !
Post by: SkulleateR on 01:00, 22 July 21
Nice Story .... Welcome and have fun here 8)
Title: Re: Hello CPC Wiki !
Post by: ajcasado on 11:30, 22 July 21
Hi!,
Welcome to the forum, have fun!

About:
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...
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

Title: Re: Hello CPC Wiki !
Post by: Targhan on 12:17, 22 July 21
Welcome! Where are you in France?

As for Rust, you might join force with @krusty_benediction (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1579), who is a Rust advocate :).
Title: Re: Hello CPC Wiki !
Post by: krusty_benediction on 12:42, 22 July 21
Welcome! Where are you in France?

As for Rust, you might join force with @krusty_benediction (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1579), 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)
Title: Re: Hello CPC Wiki !
Post by: Gryzor on 12:50, 22 July 21
Welcome and indeed, have fun!
Title: Re: Hello CPC Wiki !
Post by: rewk on 14:10, 22 July 21

Hi!, Welcome to the forum, have fun! 

 :)
Welcome! Where are you in France? As for Rust, you might join force with @krusty_benediction (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1579), who is a Rust advocate :).


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


Welcome
Indeed, here is my rust toolbox https://github.com/cpcsdk/rust.cpclib (https://github.com/cpcsdk/rust.cpclib) that served me for https://www.pouet.net/prod.php?which=88554There (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 !


Title: Re: Hello CPC Wiki !
Post by: krusty_benediction on 14:22, 22 July 21
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 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=3015) made some test to compile rust in z80 and it was not successfull at all
Title: Re: Hello CPC Wiki !
Post by: m_dr_m on 18:57, 22 July 21
I wouldn't say unsuccessful. Actually I find it quite promising.
More details in the link shared above.