assigning value to array element works now

This commit is contained in:
FeralChild64 committed 2020-08-01 15:20:31 +02:00
1 parent 64e1898539
commit b047c456b1
1 file changed
+7 -3
+7 -3
View File
@@ -27,7 +27,7 @@ assign_variable:
lda FOUR6 lda FOUR6
pha pha
// Retruieve all the coordinates // Retrieve all the coordinates
ldx #$00 ldx #$00
!: !:
@@ -103,7 +103,7 @@ assign_variable_common_1:
bpl assign_variable_not_array_2 bpl assign_variable_not_array_2
// Preserve FAC1 values which might get overwritten // Yes, this is an array - preserve FAC1 values which might get overwritten
ldx #$04 ldx #$04
!: !:
@@ -112,7 +112,11 @@ assign_variable_common_1:
dex dex
bpl !- bpl !-
// Yes, this is an array - fetch the number of dimensions // Get array address
jsr find_array
// Fetch the number of dimensions
pla pla
sta __FAC1+0 sta __FAC1+0