From 2f8953c431ffd47fe7735a5f8d43c447129dc877 Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Mon, 27 Jul 2020 21:56:43 +0200 Subject: [PATCH] more array format adjustments to original ROM format --- src/basic/engine_variables/array_create.s | 6 +++--- src/basic/engine_variables/helper_array_create_mul.s | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/basic/engine_variables/array_create.s b/src/basic/engine_variables/array_create.s index d40c1148..bf867cc2 100644 --- a/src/basic/engine_variables/array_create.s +++ b/src/basic/engine_variables/array_create.s @@ -174,12 +174,12 @@ array_create_store_loop: array_create_store_dims_done: // Restore FOUR6, calculate number of bytes needed for storage -.break + pla sta FOUR6 // XXX do we need to store this value in FOUR6? is it still needed? + sta __FAC1+3 stx __FAC1+4 // .X is 0 at this point - jsr helper_array_create_mul // Check if there is enough free memory @@ -212,7 +212,7 @@ array_create_store_dims_done: // Calculate and store offset to the next array - lda #$02 + lda #$05 jsr helper_INDEX_up_A lda __FAC1+0 diff --git a/src/basic/engine_variables/helper_array_create_mul.s b/src/basic/engine_variables/helper_array_create_mul.s index 56512725..fca065b5 100644 --- a/src/basic/engine_variables/helper_array_create_mul.s +++ b/src/basic/engine_variables/helper_array_create_mul.s @@ -54,9 +54,9 @@ helper_array_create_mul_error: helper_array_create_mul_success: lda INDEX+0 - sta __FAC1+0 - lda INDEX+1 sta __FAC1+1 + lda INDEX+1 + sta __FAC1+2 plx_trash_a rts