2015-07-08 13:46:28 +00:00
|
|
|
.include "zeropage.inc"
|
|
|
|
|
2017-06-03 22:09:22 +00:00
|
|
|
.export drv_init
|
|
|
|
.exportzp drv_init_default = 3 ; Apple 2 default slot
|
2015-07-08 13:46:28 +00:00
|
|
|
|
|
|
|
.import eth_driver_io_base
|
|
|
|
|
|
|
|
|
|
|
|
.code
|
|
|
|
|
|
|
|
; set Apple 2 ethernet adaptor slot
|
|
|
|
; inputs:
|
|
|
|
; A: slot number (1-7)
|
|
|
|
; outputs:
|
|
|
|
; none
|
2017-06-03 22:09:22 +00:00
|
|
|
drv_init:
|
2015-07-08 13:46:28 +00:00
|
|
|
asl
|
|
|
|
asl
|
|
|
|
asl
|
|
|
|
asl
|
|
|
|
sta tmp1
|
|
|
|
|
|
|
|
lda eth_driver_io_base
|
|
|
|
and #%10001111
|
|
|
|
ora tmp1
|
|
|
|
sta eth_driver_io_base
|
|
|
|
rts
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-06-03 22:09:22 +00:00
|
|
|
; -- LICENSE FOR a2init.s --
|
2015-07-08 13:46:28 +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/
|
|
|
|
;
|
|
|
|
; 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 --
|