mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-20 03:31:42 +00:00
66 lines
876 B
Plaintext
66 lines
876 B
Plaintext
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
|
||
LOAD /A2OSX.SRC/DRV/UTHERNET.DRV.S
|
||
ASM
|