
Matthew K. answered 06/29/22
B.A. in Computer Science, Swarthmore College
It would be helpful if we knew which assembly language you are using! There are many different assembly languages with many different use cases, abilities, and instruction sets. For a good number of the most popular assembly languages for learning (like IA32, LC, and others) single instructions looks like:
instr src, dest
or
instr label
Where each source and destination is either a CPU register or a literal integer value, and a label tells the processor which region in the assembly program to go to next. It can be helpful to find or build a reference sheet for the assembly language you are using, since these languages are relatively strict as to what each instruction keyword means and what each register is used for. If a reference sheet has been provided for you by your instructor, use it when you can!! If not, consult notes or other allowed resources to build your own reference sheet.
One thing to remember about assembly, is that you can store addresses in registers, allowing you to work with all the memory space in the compter, rather than just the relatively small number of registers available to you. Think about how you could use that to your advantage when building an array. It can also be useful to write out how this program would work in a higher-level language like C, C++, python, java, javascript, or other languages before you begin writing it in assembly, as the higher-level language will likely be easier to read (and even test) if you are unsure of whether your approach is correct.