more array format adjustments to original ROM format
This commit is contained in:
1 parent
8abaa6f735
commit
2f8953c431
2 files changed
+5
-5
No files matched your search
@@ -174,12 +174,12 @@ array_create_store_loop:
|
|||||||
array_create_store_dims_done:
|
array_create_store_dims_done:
|
||||||
|
|
||||||
// Restore FOUR6, calculate number of bytes needed for storage
|
// Restore FOUR6, calculate number of bytes needed for storage
|
||||||
.break
|
|
||||||
pla
|
pla
|
||||||
sta FOUR6 // XXX do we need to store this value in FOUR6? is it still needed?
|
sta FOUR6 // XXX do we need to store this value in FOUR6? is it still needed?
|
||||||
|
|
||||||
sta __FAC1+3
|
sta __FAC1+3
|
||||||
stx __FAC1+4 // .X is 0 at this point
|
stx __FAC1+4 // .X is 0 at this point
|
||||||
|
|
||||||
jsr helper_array_create_mul
|
jsr helper_array_create_mul
|
||||||
|
|
||||||
// Check if there is enough free memory
|
// Check if there is enough free memory
|
||||||
@@ -212,7 +212,7 @@ array_create_store_dims_done:
|
|||||||
|
|
||||||
// Calculate and store offset to the next array
|
// Calculate and store offset to the next array
|
||||||
|
|
||||||
lda #$02
|
lda #$05
|
||||||
jsr helper_INDEX_up_A
|
jsr helper_INDEX_up_A
|
||||||
|
|
||||||
lda __FAC1+0
|
lda __FAC1+0
|
||||||
|
|||||||
@@ -54,9 +54,9 @@ helper_array_create_mul_error:
|
|||||||
helper_array_create_mul_success:
|
helper_array_create_mul_success:
|
||||||
|
|
||||||
lda INDEX+0
|
lda INDEX+0
|
||||||
sta __FAC1+0
|
|
||||||
lda INDEX+1
|
|
||||||
sta __FAC1+1
|
sta __FAC1+1
|
||||||
|
lda INDEX+1
|
||||||
|
sta __FAC1+2
|
||||||
|
|
||||||
plx_trash_a
|
plx_trash_a
|
||||||
rts
|
rts
|
||||||
|
|||||||
Reference in new issue
Block a user