Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » SDCC
  • » [Sdcc-user] using sdcc to target zx spectrum [RSS Feed]

#1 Nov. 29, 2010 17:03:18

Luca M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Sdcc-user] using sdcc to target zx spectrum


Hi,

I would like to try to use sdcc to porth pforth
to zx spectrum.

Would anyone explain me how to compile a simple
hello world program using sdcc?

just to bootstrap.
:-)

For ex. with z88dk I can do
zcc +zxansi -lndos -lm -create-app -ohello.tap hello.c
to produce hello.tap (already in tape format)

thanks for any info.

MfG

Luca.



Sdcc-user mailing list
Sdcc-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/sdcc-user

Offline

#2 Dec. 8, 2010 15:08:34

Patrik P.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Sdcc-user] using sdcc to target zx spectrum


Hi Luca,

I've been using sdcc for my SpeccyBoot project. You can have a look athttp://speccyboot.sourceforge.net/build.html#softwareto see more, such as
how to download the source.

There are two tricks I've been using:
(1) use objcopy to create a binary file from sdcc's generated ihex file,
objcopy -I ihex -O binary ihex_file binary_file
(2) a custom tool for generating a .wav audio file (including a little BASIC
loader) from the binary

I'm considering making the wav generator tool a bit more generic than it is
-- it is currently rather specific to my project. For now, you can view it
as a starting point for generating .wav files yourself.

-- Patrik

2010/11/29 Luca Masini <lmas***@*eb.de>

> Hi,
>
> I would like to try to use sdcc to porth pforth
> to zx spectrum.
>
> Would anyone explain me how to compile a simple
> hello world program using sdcc?
>
> just to bootstrap.
> :-)
>
> For ex. with z88dk I can do
> zcc +zxansi -lndos -lm -create-app -ohello.tap hello.c
> to produce hello.tap (already in tape format)
>
> thanks for any info.
>
> MfG
>
> Luca.
>
>
>
>
> Sdcc-user mailing list
> Sdcc-u***@*ists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/sdcc-user>
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/sdcc-user

Offline

  • Root
  • » SDCC
  • » [Sdcc-user] using sdcc to target zx spectrum [RSS Feed]

Board footer

Moderator control

Enjoy the 23rd of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support