Skip to content

Library for C programs

Oliver Schmidt edited this page Aug 15, 2022 · 6 revisions

The TCP/IP library to be used by C programmers using the cc65 6502 C cross compiler comes in two parts:

  • The core library, which comes in two variants:

    • ip65.lib - Minimal IP stack with UDP only
    • ip65_tcp.lib - Full featured TCP/IP stack
  • The driver library, which is specific for the cc65 target system:

All libraries for C programs are contained in the respective target system .zip files.

Make sure to first link the core library and then the driver library, otherwise there will be link errors.

The TCP/IP APIs to be used by C programs are detailed in the IP65 header file which is contained in the .zip files too.

To understand how to use the TCP/IP APIs look at the bare-bones UDP program and bare-bones TCP program. To see them in action use the peer program.

For a simple yet complete TCP/IP program look at the Date65 source code.

For a more complex TCP/IP program look at the HFS65 source code.

Clone this wiki locally