Thanks a lot friend, i was kinda close... that was my last try before your help
*= $600
LDY #4 ; load Y index with array size
loop
LDA MTAB,X ; load accumulator with value of the array in index X
ADC TEMP ; sum the value in temp variable with accumulator value
;STA TEMP
INX ; increment ...
Search found 4 matches
- Mon Apr 02, 2018 8:10 pm
- Forum: Newbies
- Topic: Declaring array in assembly 6502 arquitecture
- Replies: 13
- Views: 5947
- Mon Apr 02, 2018 6:29 pm
- Forum: Newbies
- Topic: Declaring array in assembly 6502 arquitecture
- Replies: 13
- Views: 5947
Re: Declaring array in assembly 6502 arquitecture
Hello all, thanks for the welcomes.
I try to change the location of my data and my code, i hope it was right now.
I already working with array, looping through the entire array, but now i need to sum the elements of that array and display the value of the sum, i appreciate all the help, thanks a ...
I try to change the location of my data and my code, i hope it was right now.
I already working with array, looping through the entire array, but now i need to sum the elements of that array and display the value of the sum, i appreciate all the help, thanks a ...
- Sun Apr 01, 2018 11:05 pm
- Forum: Newbies
- Topic: Declaring array in assembly 6502 arquitecture
- Replies: 13
- Views: 5947
Re: Declaring array in assembly 6502 arquitecture
Im using 6502 emulator to assemble and debug but even when a change the numbers (the exact way it shows on example directive)i still get the same error
*= $600
NUMBERS .dw $1234
*= $600
NUMBERS .dw $1234
- Sun Apr 01, 2018 9:39 pm
- Forum: Newbies
- Topic: Declaring array in assembly 6502 arquitecture
- Replies: 13
- Views: 5947
Declaring array in assembly 6502 arquitecture
im starting on assembly programing and trying a few exercices, im stuck on declaring an array of integers so i can later sum that array, im using 6502 emulator and getting the "Illegal byte code encountered" error. I have tryed several ways to create the array, the last of them was this:
*= $600 ...
*= $600 ...