From 550c52410c56b1129c3d7d55542f94e81210bfde Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Thu, 21 Jul 2022 14:00:52 -0700 Subject: [PATCH] fix reset ordering in Vindicator demo --- res/DEMO/VINDICATOR | Bin 165 -> 155 bytes src/demo/vindicator.a | 29 ++++++++++------------------- 2 files changed, 10 insertions(+), 19 deletions(-) diff --git a/res/DEMO/VINDICATOR b/res/DEMO/VINDICATOR index 9e397b8391e2d98ed63fca2075ad46f2c79f4cf2..daa4aedcd53cd10650831a90acfa4a5f01d0f4c5 100755 GIT binary patch delta 58 zcmZ3=IGa&Lr}+R7DQv&Lh@ma4Ep+AL1I?=h<}hcG6zW<07eKdO#lD@ diff --git a/src/demo/vindicator.a b/src/demo/vindicator.a index c3ba0b692..bbcf8224f 100644 --- a/src/demo/vindicator.a +++ b/src/demo/vindicator.a @@ -11,24 +11,13 @@ +READ_RAM2_WRITE_RAM2 jsr EnableAccelerator -;+LOAD_FILE_KEEP_DIR - ldx #0 ; read to main memory - stx ldrhi - stx ldrlo - +LDADDR title - jsr iLoadFileDirect - - ldx #13-1 ; we also need to copy the length byte -- lda newpath,x - sta $BFD0,x - dex - bpl - + +LOAD_FILE_KEEP_DIR vindicator, vindicator_dir_e-vindicator_dir_b + +NEW_RESET_VECTOR $BFF0 lda #$60 sta $1867 jsr $180F ; decompress - +NEW_RESET_VECTOR $BFF0 lda #$4C sta $56D9 sta $4902 ; set exits @@ -54,13 +43,15 @@ jmp $4000 -newpath - !byte 12 +vindicator + !byte vindicator_e-vindicator_b +vindicator_b +vindicator_dir_b !text "X/VINDICATOR" - -title !byte x_e-x_b -x_b !text "X/VINDICATOR/VINDICATOR" -x_e +vindicator_dir_e + !text "/" + !text "VINDICATOR" +vindicator_e !if * > $3F0 { !error "code is too large, ends at ", *