[LabIT] Previa 3 INF-245

Ingrid Hyltander ingrid.hyltander at sansano.usm.cl
Wed Nov 14 10:53:58 -03 2018


Estimada@,

También tengo un pregunta sobre pregunta 3.2. Estoy pensando correcto? (LX
son las líneas en el código fuera de la especificación de entrada / salida)

----------------------------------------------------------------------------------

Input 1 R7[0], R6[0], R5[0], R4[0], R3[0], R2[0], R1[0], R0[0]

Input 2 F2[0], F1[0], F0[0]

1 ROUND
----------------------------------------------------------------------------------

L1 X7[0], X6[0], X5[0], X4[0], X3[0], X2[0], X1[0], X0[0]

L2 S=0

L3 P2[0], P1[0], P0[0]

L4 J2[], J1[], J0[]

L5 J2[0], J1[0], J0[0]  (=P2[0], P1[0], P0[0] + F2[0], F1[0], F0[0]) % 8)

L6 N7[0], N6[0], N5[0], N4[0], N3[0], N2[0], N1[0], N0[0]

L7 if(S=0) {

L8   X7[0], X6[0], X5[0], X4[0], X3[0], X2[0], X1[0], X0[0]

L9   S=1

}

L10 X0[1] (=NOT X0[0])

L11 P2[0], P1[0], P0[1] (=(P2[0], P1[0], P0[0] +[0][0][1]) % 8)

2 ROUND

----------------------------------------------------------------------------------

L5 J2[0], J1[0], J0[1] (= P2[0], P1[0], P0[1] + F2[0], F1[0], F0[0]) % 8)

L6 N7[0], N6[0], N5[0], N4[0], N3[0], N2[0], N1[0], N0[1]

L7 S=1 → nothing happens inside the if

L10 X1[1] (= NOT X1[0])

L11 P2[0], P1[1], P0[0] (= (P2[0], P1[0], P0[1] + [0][0][1]) %8)

3 ROUND

----------------------------------------------------------------------------------

etc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.inf.utfsm.cl/pipermail/labit/attachments/20181114/a2e488bf/attachment.html>


More information about the LabIT mailing list