Init Board Assembly.asm - init_board address...

This preview shows page 1 - 2 out of 2 pages.

init_board: @ address of &p1_battlespace->r0 @ address of &p1_guess->r1 @ size->r2 mov r3,r2 mov r4,r2 oloop: @iloop iloop: @jloop ldr r5,r1 mov r7,r3 sub r7,r7,#1 mul r7,r7, 4 mul r7,r7,-1 ldr r6,[r5,r7] mov r7,r4 sub r7,r7,#1 mul r7,r7, 4 mul r7,r7,-1 str #0,[r6,r7] subs r4,r4,#1 bne iloop subs r3,r3,#1
Image of page 1

Subscribe to view the full document.

Image of page 2

Unformatted text preview: bne oloop mov r3,r2 mov r4,r2 oloop2: mov r4,r2 iloop2: ldr r5,[ro] mov r7,r3 sub r7,r7 1 mul r7,r7, #4 mul r7,r7,-1 ldr r6,[r5,r7] mov r7,r4 sub r7,r7, 1 mul r7,r7,#4 mul r7,r7, #4 mul r7,r7, -1 str #0,[r6,r7] subs r4,r4,1 bne iloop2 subs r3,r3 1 bne oloop2...
View Full Document

  • Fall '19

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes