mirror of
https://github.com/a2geek/basic-system-cmd.git
synced 2024-12-28 02:29:18 +00:00
Tweak to shorten code a bit.
This commit is contained in:
parent
83b1697802
commit
d8bee4ec49
11
online.asm
11
online.asm
@ -189,10 +189,9 @@ notOurCommand:
|
||||
; S5 D1 ERR=$57 (S7 D1)
|
||||
;
|
||||
online:
|
||||
stz sunitnum
|
||||
lda #>sd
|
||||
bit fbits+1
|
||||
beq @1 ; Bit was NOT set
|
||||
lda fbits+1
|
||||
and #>sd
|
||||
beq @1 ; Bit was NOT set; Acc = 0
|
||||
lda vdriv ; 1 or 2, use 2nd bit to toggle drive (then drive 1 has bit off, drive 2 has bit on)
|
||||
and #%00000010
|
||||
asl
|
||||
@ -202,8 +201,8 @@ online:
|
||||
asl
|
||||
asl
|
||||
asl
|
||||
sta sunitnum
|
||||
@1: stz sbufadr
|
||||
@1: sta sunitnum
|
||||
stz sbufadr
|
||||
lda #>buffer
|
||||
sta sbufadr+1
|
||||
; Note: if we have a specific unit, this is not zero terminated -- fake it!
|
||||
|
Loading…
Reference in New Issue
Block a user