# Konsultacje (zaliczenie listy ??), 31 marca 2023, g. 13.00 ###### tags: `SYK23` `ćwiczenia` `pwit` ## Deklaracje :::danger ::: | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | | ----------------------:| ----- | --- | --- | --- | --- | --- | --- | --- | | Natalia Zychowicz | | | | X | X | X | X | X | ## Zadanie 4 :::danger Autor: ::: ![](https://i.imgur.com/hJa6i71.png) ![](https://i.imgur.com/nJ7LTL5.png) ![](https://i.imgur.com/tD9cuJD.png) ## Zadanie 6 :::danger Autor: ::: ![](https://i.imgur.com/7eZ4QpF.png) ``` t1 = a * a t2 = b * b t3 = t1 * a (a * a * a) t1 = t1 * b (a * a * b) t1 = t1 * 4 t3 = t3 + t1 ( a * a * a + 4 * a * a * b) t1 = t2 * 4 (4 * b * b) t1 = t1 * a (4 * a * b * b) t3 = t3 + t1 ( a * a * a + 4 * a * a * b + 4 * a * b * b) t2 = t2 * b t3 = t3 + t2 ( a * a * a + 4 * a * a * b + 4 * a * b * b + b* b* b), t1,t2,t3 - temporary variables mem - tablica bajtów mem[0] = t1 mem[13] = mem[0] * b mem[13] = 4 * mem[13] mem[0] = t1 * a mem[26] = t2 mem[39] = t2 * b result = mem[26] * a result = result * 4 result = result + mem[0] result = result + mem[39] ``` ## Zadanie 8 :::danger Autor: ::: ![](https://i.imgur.com/Rm86Tnp.png) ![](https://i.imgur.com/ge6A4IT.png) ![](https://i.imgur.com/y6ULa8H.png)