A2osX/DRV/X.NET.DRV.S.txt
2018-01-17 06:56:16 +00:00

64 lines
836 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

NEW
PREFIX /A2OSX.BUILD
AUTO 4,1
.LIST OFF
*--------------------------------------
DecodeMac ldy #0
ldx #0
.1 lda (ZPTmpPTR),y
beq .9
iny
jsr Asc2NibbleA
bcs .9
asl
asl
asl
asl
sta MAC,x
lda (ZPTmpPTR),y
beq .9
iny
jsr Asc2NibbleA
bcs .9
ora MAC,x
sta MAC,x
inx
cpx #6
bne .1
clc
rts
.9 sec
rts
*--------------------------------------
Asc2NibbleA cmp #'0'
bcc .9
cmp #'9'+1
bcs .1
and #$0F
* clc
rts
.1 cmp #'A'
bcc .9
cmp #'F'+1
bcs .99
sbc #$36
* clc
rts
.9 sec
.99 rts
*--------------------------------------
MAN
SAVE /A2OSX.SRC/DRV/X.NET.DRV.S