68000 Assembly Table

Benjamin -  
 Ly -
Hello. I am a first-year computer science student and I have to do an exercise: a function that returns the sum of the elements of an array.

I'm not asking you to do it for me, of course, but I'm actually struggling because I don't know how to handle an array in assembly language.

Before writing a function in C and then translating it into assembly, what would be simpler, using all global variables (like the loop counter i, the integer array...) or not?

Are there people who can help me?

Thank you
Configuration: Windows XP Internet Explorer 7.0

1 answer

  1. Ly
     
    No, we can't help you, you need to do it on your own, or ask JJS!!

    Declare the array globally :p
    ARRAY DS.L <ArraySize>
    0