IP65

IP65 is a TCP/IP stack for 6502 based computers.

Status

Services TCP DHCP/DNS/TFTP Echo
Transport UDP ICMP
Network IP
Addressing ARP
Ethernet driver CS8900A
Ethernet interface RR-Net / TFE Uthernet
Host computer C64/C128 Apple ][
Green: Working Yellow: Partial Red: Unimplemented

Download

Latest release (sourceforge.net)

ip65-2009-01-22.zip (paradroid.net)

History

  2009-03-08	Added DHCP, DNS, TFTP + moved to sourceforge
  2009-01-22	Added copymem fix from Jonno Downes. Added MPL license.
  2008-09-27	Added timeout fix for ineth_tx from David Schmidt.
  2006-09-20	Fixed checksum calculation for odd packet sizes.
  2006-02-22	Added fix for sending of packets larger than 256 bytes
		from Ewen Wannop and Glenn Jones.

Sample UDP listener source

gangedport      = 60064

        jsr ip65_init
        lda #<gotpacket
        ldx #>gotpacket
        sta udp_callback
        stx udp_callback + 1
        lda #<gangedport
        ldx #>gangedport
        jsr udp_add_listener

main:
        jsr ip65_process
        jmp main

gotpacket:
        sei
        lda $01
        pha
        lda udp_inp
        sta $01

        lda udp_inp + 1
        ldx udp_inp + 2
        sta zp_data
        stx zp_data + 2
        ldy udp_inp + 3
copy:
        lda udp_inp + 3,y
        sta (zp_data),y
        dey
        bne copy

        pla
        sta $01
        cli
        rts

Links

A Standard for C64 TCP/IP Configuration

License

This project is released under the Mozilla Public License Version 1.1. For details, please visit http://www.mozilla.org/MPL/.