Skip to content

Commit

Permalink
libsrc/atari/getdefdev.s: small optimization and fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
groessler committed Sep 14, 2018
1 parent d8ad89c commit d52d986
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libsrc/atari/getdefdev.s
Expand Up @@ -81,16 +81,15 @@ finish: lda #<__defdev
ldx #>__defdev
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
; loaded from.

use_DUNIT:
lda DUNIT
clc
adc #'0'
sta __defdev + 1
bne finish ; jump always
bne done ; jump always

; XDOS default device retrieval

Expand Down

0 comments on commit d52d986

Please sign in to comment.