mirror of
https://github.com/bobbimanners/emailler.git
synced 2025-01-01 06:29:23 +00:00
e54bb71bcc
- Tab chars were partially used with the unusual width of two blanks. I removed them altogether. - Line endings were inconsistent even iniside individual files. I normalized them. - I introduced a consistent coding style regarding comment indenting and blank line usage. - I removed trailing spaces. - I removed newlines following unnamed labels. - ...
66 lines
1.7 KiB
ArmAsm
66 lines
1.7 KiB
ArmAsm
; RR-Net driver
|
|
|
|
.export cs_init
|
|
|
|
.export cs_packet_page
|
|
.export cs_packet_data
|
|
.export cs_rxtx_data
|
|
.export cs_tx_cmd
|
|
.export cs_tx_len
|
|
.export eth_driver_name
|
|
.export eth_driver_io_base
|
|
|
|
IO_BASE = $de00
|
|
rr_ctl = IO_BASE+$01 ; address of 'control' port on Retro-Replay
|
|
cs_packet_page = IO_BASE+$02 ; address of 'packet page' port on RR-Net
|
|
cs_packet_data = IO_BASE+$04 ; address of 'packet data' port on RR-Net
|
|
cs_rxtx_data = IO_BASE+$08 ; address of 'recieve/transmit data' port on RR-Net
|
|
cs_tx_cmd = IO_BASE+$0c ; address of 'transmit command' port on RR-Net
|
|
cs_tx_len = IO_BASE+$0e ; address of 'transmission length' port on RR-Net
|
|
|
|
|
|
.code
|
|
|
|
; initialise Retro Replay so we can access the network adapter
|
|
; inputs: none
|
|
; outputs: none
|
|
cs_init:
|
|
lda rr_ctl
|
|
ora #1
|
|
sta rr_ctl
|
|
rts
|
|
|
|
|
|
.rodata
|
|
|
|
eth_driver_name:
|
|
.if IO_BASE=$de00
|
|
.byte "RR-NET",0
|
|
.else
|
|
.byte "64NIC+",0
|
|
.endif
|
|
|
|
eth_driver_io_base:
|
|
.word IO_BASE
|
|
|
|
|
|
|
|
; -- LICENSE FOR rr-net.s --
|
|
; The contents of this file are subject to the Mozilla Public License
|
|
; Version 1.1 (the "License"); you may not use this file except in
|
|
; compliance with the License. You may obtain a copy of the License at
|
|
; http://www.mozilla.org/MPL/
|
|
;
|
|
; Software distributed under the License is distributed on an "AS IS"
|
|
; basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
|
|
; License for the specific language governing rights and limitations
|
|
; under the License.
|
|
;
|
|
; The Original Code is ip65.
|
|
;
|
|
; The Initial Developer of the Original Code is Jonno Downes,
|
|
; jonno@jamtronix.com.
|
|
; Portions created by the Initial Developer are Copyright (C) 2009
|
|
; Jonno Downes. All Rights Reserved.
|
|
; -- LICENSE END --
|