2016-10-18 06:26:24 +00:00
|
|
|
|
NEW
|
2017-12-22 21:24:30 +00:00
|
|
|
|
PREFIX /A2OSX.BUILD
|
|
|
|
|
AUTO 4,1
|
2016-03-20 22:12:57 +00:00
|
|
|
|
.LIST OFF
|
|
|
|
|
*--------------------------------------
|
2018-01-17 06:56:16 +00:00
|
|
|
|
DecodeMac ldy #0
|
2016-03-20 22:12:57 +00:00
|
|
|
|
ldx #0
|
2018-01-17 06:56:16 +00:00
|
|
|
|
|
2016-03-20 22:12:57 +00:00
|
|
|
|
.1 lda (ZPTmpPTR),y
|
2018-01-17 06:56:16 +00:00
|
|
|
|
beq .9
|
|
|
|
|
iny
|
|
|
|
|
|
2016-03-20 22:12:57 +00:00
|
|
|
|
jsr Asc2NibbleA
|
|
|
|
|
bcs .9
|
|
|
|
|
|
|
|
|
|
asl
|
|
|
|
|
asl
|
|
|
|
|
asl
|
|
|
|
|
asl
|
|
|
|
|
sta MAC,x
|
|
|
|
|
|
|
|
|
|
lda (ZPTmpPTR),y
|
2018-01-17 06:56:16 +00:00
|
|
|
|
beq .9
|
|
|
|
|
|
|
|
|
|
iny
|
|
|
|
|
|
2016-03-20 22:12:57 +00:00
|
|
|
|
jsr Asc2NibbleA
|
|
|
|
|
bcs .9
|
|
|
|
|
|
|
|
|
|
ora MAC,x
|
|
|
|
|
sta MAC,x
|
|
|
|
|
inx
|
2018-01-17 06:56:16 +00:00
|
|
|
|
cpx #6
|
2016-03-20 22:12:57 +00:00
|
|
|
|
bne .1
|
|
|
|
|
|
|
|
|
|
clc
|
|
|
|
|
rts
|
|
|
|
|
|
|
|
|
|
.9 sec
|
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
2018-01-17 06:56:16 +00:00
|
|
|
|
Asc2NibbleA cmp #'0'
|
2016-03-20 22:12:57 +00:00
|
|
|
|
bcc .9
|
2018-01-17 06:56:16 +00:00
|
|
|
|
cmp #'9'+1
|
2016-03-20 22:12:57 +00:00
|
|
|
|
bcs .1
|
|
|
|
|
and #$0F
|
2018-01-17 06:56:16 +00:00
|
|
|
|
* clc
|
2016-03-20 22:12:57 +00:00
|
|
|
|
rts
|
2018-01-17 06:56:16 +00:00
|
|
|
|
|
|
|
|
|
.1 cmp #'A'
|
2016-03-20 22:12:57 +00:00
|
|
|
|
bcc .9
|
2018-01-17 06:56:16 +00:00
|
|
|
|
cmp #'F'+1
|
|
|
|
|
bcs .99
|
|
|
|
|
|
2016-03-20 22:12:57 +00:00
|
|
|
|
sbc #$36
|
2018-01-19 07:14:38 +00:00
|
|
|
|
clc
|
2016-03-20 22:12:57 +00:00
|
|
|
|
rts
|
2018-01-17 06:56:16 +00:00
|
|
|
|
|
2016-03-20 22:12:57 +00:00
|
|
|
|
.9 sec
|
2018-01-17 06:56:16 +00:00
|
|
|
|
.99 rts
|
2016-03-20 22:12:57 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
MAN
|
2017-03-29 15:48:15 +00:00
|
|
|
|
SAVE /A2OSX.SRC/DRV/X.NET.DRV.S
|
2018-01-19 07:14:38 +00:00
|
|
|
|
LOAD /A2OSX.SRC/DRV/UTHERNET.DRV.S
|
|
|
|
|
ASM
|