libsrc/atari/getdefdev.s: small optimization and fix a typo
This commit is contained in:
parent
d8ad89c4b4
commit
d52d986aca
1 changed files with 2 additions and 3 deletions
|
@ -81,7 +81,7 @@ finish: lda #<__defdev
|
||||||
ldx #>__defdev
|
ldx #>__defdev
|
||||||
rts
|
rts
|
||||||
|
|
||||||
; On AtariDOS or MyDOS, use the DUNIT variable to setuo the default
|
; On AtariDOS or MyDOS, use the DUNIT variable to setup the default
|
||||||
; device. The default device will then be the one the program was
|
; device. The default device will then be the one the program was
|
||||||
; loaded from.
|
; loaded from.
|
||||||
|
|
||||||
|
@ -89,8 +89,7 @@ use_DUNIT:
|
||||||
lda DUNIT
|
lda DUNIT
|
||||||
clc
|
clc
|
||||||
adc #'0'
|
adc #'0'
|
||||||
sta __defdev + 1
|
bne done ; jump always
|
||||||
bne finish ; jump always
|
|
||||||
|
|
||||||
; XDOS default device retrieval
|
; XDOS default device retrieval
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue