A2osX/DRV/X.NET.DRV.S.txt

66 lines
876 B
Plaintext
Raw Normal View History

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
*--------------------------------------
DecodeMac ldy #0
2016-03-20 22:12:57 +00:00
ldx #0
2016-03-20 22:12:57 +00:00
.1 lda (ZPTmpPTR),y
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
beq .9
iny
2016-03-20 22:12:57 +00:00
jsr Asc2NibbleA
bcs .9
ora MAC,x
sta MAC,x
inx
cpx #6
2016-03-20 22:12:57 +00:00
bne .1
clc
rts
.9 sec
rts
*--------------------------------------
Asc2NibbleA cmp #'0'
2016-03-20 22:12:57 +00:00
bcc .9
cmp #'9'+1
2016-03-20 22:12:57 +00:00
bcs .1
and #$0F
* clc
2016-03-20 22:12:57 +00:00
rts
.1 cmp #'A'
2016-03-20 22:12:57 +00:00
bcc .9
cmp #'F'+1
bcs .99
2016-03-20 22:12:57 +00:00
sbc #$36
clc
2016-03-20 22:12:57 +00:00
rts
2016-03-20 22:12:57 +00:00
.9 sec
.99 rts
2016-03-20 22:12:57 +00:00
*--------------------------------------
MAN
SAVE /A2OSX.SRC/DRV/X.NET.DRV.S
LOAD /A2OSX.SRC/DRV/UTHERNET.DRV.S
ASM