emailler/drivers/vic20-rr-net.s

60 lines
1.7 KiB
ArmAsm
Raw Normal View History

; RR-Net driver, as seen on a VIC-20 (i.e. using a Masquerade adapter)
2013-12-13 21:24:03 +00:00
.export cs_init
2013-12-13 21:24:03 +00:00
.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
2013-12-13 21:24:03 +00:00
rr_ctl = $9801 ; address of 'control' port on Retro-Replay
cs_packet_page = $9802 ; address of 'packet page' port on RR-Net
cs_packet_data = $9804 ; address of 'packet data' port on RR-Net
cs_rxtx_data = $9808 ; address of 'recieve/transmit data' port on RR-Net
cs_tx_cmd = $980c ; address of 'transmit command' port on RR-Net
cs_tx_len = $980e ; address of 'transmission length' port on RR-Net
2013-12-13 21:24:03 +00:00
.code
; initialise Retro Replay so we can access the network adapter
; inputs: none
; outputs: none
2013-12-13 21:24:03 +00:00
cs_init:
lda rr_ctl
ora #1
sta rr_ctl
rts
2013-12-13 21:24:03 +00:00
.rodata
2013-12-13 21:24:03 +00:00
eth_driver_name:
.asciiz "VIC20 RR-NET"
2013-12-13 21:24:03 +00:00
eth_driver_io_base:
.word rr_ctl-1
2013-12-13 21:24:03 +00:00
; -- LICENSE FOR vic20-rr-net.s --
2013-12-13 21:24:03 +00:00
; 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/
;
2013-12-13 21:24:03 +00:00
; 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.
;
2013-12-13 21:24:03 +00:00
; The Original Code is ip65.
;
2013-12-13 21:24:03 +00:00
; 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.
2013-12-13 21:24:03 +00:00
; -- LICENSE END --