Author Topic: SDCC runtime library for NC100  (Read 1704 times)

0 Members and 1 Guest are viewing this topic.

Offline Nilquader

  • CPC664
  • ***
  • Posts: 81
  • Country: de
  • (void**)NULL
  • Liked: 53
  • Likes Given: 4
SDCC runtime library for NC100
« on: 20:36, 22 September 11 »
My current project for the NC100 is a C runtime library. It allows you to write your NC100 programs using the SDCC compiler. The current version only supports SRAM card programs (The ones that you start by pressing Function-X in the main screen). The makefile generates card images to be used with the nc100em Emulator or a real NC100.


The library contains the basic C I/O function (like putc, printf etc.) and C functions for most of the NC100 firmware calls. The rest of the firmware calls will follow as soon as I have time to write the missing wrapper functions.



If you want to have a look at this project, go to https://github.com/Nilquader/ncsdcc
(I have tested this on Mac and Linux, but it should work on windows with some modifications to the makefile. Emulator and debugging support is not available on Windows. I strongly recommend using Linux for NC100 development.)
--
Nilquader of SPRING
http://www.nilquader.net/

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.483
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3092
  • Likes Given: 5694
Re: SDCC runtime library for NC100
« Reply #1 on: 20:58, 22 September 11 »
Egad, Brain! I had completely forgotten about nc100em!!! Gonna have some fun tonight... :)

Hey, really nice to see some action on the NC front... thanks!

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1978
  • Likes Given: 4650
Re: SDCC runtime library for NC100
« Reply #2 on: 04:27, 23 September 11 »
Great work! Thank's for the link!
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Stefano

  • Guest
Re: SDCC runtime library for NC100
« Reply #3 on: 11:46, 23 January 14 »
For those who may be interested,
 
I cross-compiled the Linux emulator to windows.
http://www.ncus.org.uk/utils.htm#nc100em
 
Stefano Bodrato

Offline robcfg

  • Supporter
  • 6128 Plus
  • *
  • Posts: 2.282
  • Country: se
  • 8-Bit Technomancer
    • index.php?action=treasury
  • Liked: 1017
  • Likes Given: 2391
Re: SDCC runtime library for NC100
« Reply #4 on: 20:01, 25 January 14 »
This is awesome!


The NC has had less love even than the PCW and it's great to see some development going on.


Thank you very much!

Offline remax

  • 6128 Plus
  • ******
  • Posts: 1.096
  • Country: fr
  • Liked: 401
  • Likes Given: 436
Re: SDCC runtime library for NC100
« Reply #5 on: 23:34, 02 February 14 »
For those who may be interested,
 
I cross-compiled the Linux emulator to windows.
http://www.ncus.org.uk/utils.htm#nc100em
 
Stefano Bodrato

Great news!

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.483
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3092
  • Likes Given: 5694
Re: SDCC runtime library for NC100
« Reply #6 on: 11:02, 03 February 14 »
Something tells me I should be getting my NC out soon?