<- previous    index    next ->

Lecture 13 Review

Go over lectures 1 through 12.
Go over your project 1 solution

Sample exam will be handed out in class.

Almost all questions will be from web pages.

Closed book. Closed notes. No internet or cell phones.

Multiple choice, true-false, one number  questions.

You will not be asked to do any programming on exam.

There will be code, asking if it will assemble and
asking if it will work correctly.

First grading on project 2, this weekend
proj2 math_64.asm

z is a C array, [z] holds the address of the array in .asm file
with  C index m in r8  store a just computed value in z[m]
       mov   rcx, [z]
       mov   r8, [m]
       fstp  qword [rcx+8*r8]


convert "C" code to assembly language

   for(m=0; m<n; m++)
   {
       z[m] = 0.0;
       // stuff in loop 
   }

       mov r8,0   ; m=0
form:
       fld  qword [zero]
       fstp qword [rcx+8*r8] ; zero z[m]
         ; stuff in loop

       inc r8     ; m++
       cmp r8,[n]
       jl  form   ; m<n


    <- previous    index    next ->

Other links

Go to top