From d8bee4ec499d40f12f609487852d03506a4a1f8d Mon Sep 17 00:00:00 2001 From: Rob Greene Date: Wed, 23 Sep 2015 22:12:32 -0500 Subject: [PATCH] Tweak to shorten code a bit. --- online.asm | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/online.asm b/online.asm index a0fd8c6..7c848d0 100644 --- a/online.asm +++ b/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!