From 023c87fc03567ff6854695bf93aef08ee34aa475 Mon Sep 17 00:00:00 2001 From: Oliver Schmidt Date: Wed, 8 May 2019 17:16:39 +0200 Subject: [PATCH] Added support for the C128. Those two drivers are used by Contiki for the C128 - and we want to keep the driver sources identical. --- drivers/cs8900a.s | 5 ++++- drivers/lan91c96.s | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/cs8900a.s b/drivers/cs8900a.s index a74e7d9..00335a4 100644 --- a/drivers/cs8900a.s +++ b/drivers/cs8900a.s @@ -44,6 +44,9 @@ mac: .byte $00, $0E, $3A ; OUI of Cirrus Logic .ifdef __C64__ .byte $64, $64, $64 .endif + .ifdef __C128__ + .byte $28, $28, $28 + .endif .ifdef __APPLE2__ .byte $A2, $A2, $A2 .endif @@ -97,7 +100,7 @@ rrnet: .byte $28, $CD, $4C ; OUI of Individual Computers ;--------------------------------------------------------------------- - .ifdef __C64__ + .if .defined (__C64__) .or .defined (__C128__) rxtxreg := $DE08 txcmd := $DE0C txlen := $DE0E diff --git a/drivers/lan91c96.s b/drivers/lan91c96.s index 7a9769c..d5b44dc 100644 --- a/drivers/lan91c96.s +++ b/drivers/lan91c96.s @@ -45,6 +45,9 @@ mac: .byte $00, $80, $0F ; OUI of Standard Microsystems .ifdef __C64__ .byte $64, $64, $64 .endif + .ifdef __C128__ + .byte $28, $28, $28 + .endif .ifdef __APPLE2__ .byte $A2, $A2, $A2 .endif @@ -80,7 +83,7 @@ len := ptr3 ; Frame length ;===================================================================== - .ifdef __C64__ + .if .defined (__C64__) .or .defined (__C128__) ethbsr := $DE0E ; Bank select register R/W (2B)