From 5dd679230e9dc0600b41b9b36fe0eee9dea48af7 Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Wed, 12 Jul 2017 07:28:22 -0700 Subject: [PATCH] more efficient comparison --- src/id/dos33.a | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/id/dos33.a b/src/id/dos33.a index ac78bd0..e043c19 100755 --- a/src/id/dos33.a +++ b/src/id/dos33.a @@ -29,7 +29,7 @@ IDDOS33 ; + lda #$00 ldx #$00 - ldy #$4A + ldy #$3F jsr compare ; if T00,S00,$00 == !byte $01 !byte $A5,$27 @@ -62,10 +62,6 @@ IDDOS33 !byte $6C,$3E,$00 !byte $EE,$FE,$08 !byte $EE,$FE,$08 - !byte WILDCARD,WILDCARD,WILDCARD - !byte WILDCARD,WILDCARD,WILDCARD - !byte WILDCARD,WILDCARD,WILDCARD - !byte $A6,$2B bcs .exit ; ; DOS 3.3 has JSR $FE89 / JSR $FE93 / JSR $FB2F @@ -75,19 +71,21 @@ IDDOS33 ; lda #$00 ldx #$3F - ldy #$09 + ldy #$0B jsr compare ; if T00,S00,$3F == !byte $20,$89,$FE !byte $20,$93,$FE !byte $20,$2F,$FB + !byte $A6,$2B bcc + lda #$00 ldx #$3F - ldy #$09 + ldy #$0B jsr compare ; if T00,S00,$3F == !byte $8D,$50,$C0 !byte $8D,$57,$C0 !byte $8D,$55,$C0 + !byte $A6,$2B + ;