I'm looking for a means to write a subroutine that fills an array with a value, as well as a way to parse/read data from an array.
I've been looking about various keywords from the standpoint of a C/C++ coder, but I'm not sure how the piece fits together:
- declare array in cblocks, which I am familiar with
- What is mpasm's approach to array[index] access?
- How do I raise the index?
- How can I get from one array place to the next?
- How do I create a while loop?
In assembly, is the recursive loop GOTO $-n the only way?
Question
AmeliaJames
Hi,
I'm looking for a means to write a subroutine that fills an array with a value, as well as a way to parse/read data from an array.
I've been looking about various keywords from the standpoint of a C/C++ coder, but I'm not sure how the piece fits together:
- declare array in cblocks, which I am familiar with
- What is mpasm's approach to array[index] access?
- How do I raise the index?
- How can I get from one array place to the next?
- How do I create a while loop?
In assembly, is the recursive loop GOTO $-n the only way?
Link to comment
https://www.neowin.net/forum/topic/1414437-pic16lf1618-mpasm-how-to-work-with-arrays/Share on other sites
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now