From 77007cfdb5f239309e1cc0515ab84950f1ab568d Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Sun, 2 Jun 2019 23:52:47 -0400 Subject: [PATCH] pt3: make negating code more efficient vmw: fix a L/H typo that was causing validation test fail --- pt3_player/pt3_lib.s | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pt3_player/pt3_lib.s b/pt3_player/pt3_lib.s index 420560ef..7d7a23c1 100644 --- a/pt3_player/pt3_lib.s +++ b/pt3_player/pt3_lib.s @@ -1529,17 +1529,15 @@ weird_version: ; a->tone_slide_step = -a->tone_slide_step; - lda note_a+NOTE_TONE_SLIDE_STEP_H,X - eor #$ff - sta note_a+NOTE_TONE_SLIDE_STEP_H,X lda note_a+NOTE_TONE_SLIDE_STEP_L,X eor #$ff clc adc #$1 sta note_a+NOTE_TONE_SLIDE_STEP_L,X - bcc skip_step_inc2 - inc note_a+NOTE_TONE_SLIDE_STEP_H,X -skip_step_inc2: + lda note_a+NOTE_TONE_SLIDE_STEP_H,X + eor #$ff + adc #$0 + sta note_a+NOTE_TONE_SLIDE_STEP_H,X no_need: