https://github.com/dinuxbg/sc114-sdcc-hello
SDCC C Example For SC114 Z80 Motherboard Kit
https://github.com/dinuxbg/sc114-sdcc-hello
rc2014 sc114 sdcc z80
Last synced: 21 days ago
JSON representation
SDCC C Example For SC114 Z80 Motherboard Kit
- Host: GitHub
- URL: https://github.com/dinuxbg/sc114-sdcc-hello
- Owner: dinuxbg
- License: gpl-2.0
- Created: 2020-09-21T19:55:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-01T19:43:28.000Z (over 4 years ago)
- Last Synced: 2025-12-26T11:11:48.121Z (6 months ago)
- Topics: rc2014, sc114, sdcc, z80
- Language: Assembly
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# SDCC C Example For SC114 Z80 Motherboard Kit
## Introduction
This is a simple [SDCC](http://sdcc.sourceforge.net/) example for SC114 and possibly others RC2014-like computers running the [Small Computer Monitor ROM](https://smallcomputercentral.wordpress.com/small-computer-monitor/).
The example is loaded into RAM so no ROM burning is required. SCMON is used to load our program.
Helpful C wrappers are provided for some of the SCMON API entry points (e.g. printing to console).
## Purpose
Z88DK is not packaged in Debian, and I could not find any other working examples for plain SDCC on RC2014-like single board computers.
## Building And Running
I have validated with SDCC version 4.1.0 using the following hardware configuration:
* [SC114 Z80 Motherboard Kit for RC2014](https://smallcomputercentral.wordpress.com/sc114-documentation/)
* [SC129 Digital I/O Module Kit for RC2014](https://smallcomputercentral.wordpress.com/sc129-digital-i-o-rc2014/)
* [SC104 Z80 SIO/2 Module Kit for RC2014](https://smallcomputercentral.wordpress.com/sc114-documentation/)
To build:
make
To run, simply send hex and SCMON will recognize and load it. Then issue "g 8000" to jump to the loaded address. Provided your FTDI cable is enumerated at /dev/ttyUSB0, there is a helpful target:
make run