Theoretische und technische Informatik - ganz praktisch - Letzte Fragen in ASS-AD https://info2.aifb.kit.edu/qa/index.php?qa=questions&qa_1=assembler&qa_2=ass-ad Powered by Question2Answer a) ADD R2 https://info2.aifb.kit.edu/qa/index.php?qa=5536&qa_1=a-add-r2 <p> Zu welchem Wert wird die R2 durch den Befehl "<strong>ADD R2</strong>" addiert?</p> ASS-AD https://info2.aifb.kit.edu/qa/index.php?qa=5536&qa_1=a-add-r2 Thu, 09 Feb 2017 09:42:35 +0000 Vereinfachung b) https://info2.aifb.kit.edu/qa/index.php?qa=5525&qa_1=vereinfachung-b Guten Abend,<br /> <br /> ist folgendes Assemblerprogramm mit weniger Speicherbedarf auch richtig?<br /> <br /> LOAD #0<br /> STORE R3<br /> LOAD R1<br /> LOOP JUMPNOTZERO END<br /> MODULO #10<br /> ADD R3<br /> STORE R3<br /> LOAD R1<br /> DEVIDE #10<br /> STORE R1<br /> JUMP LOOP<br /> END<br /> &nbsp;<br /> <br /> Vielen Grüße ASS-AD https://info2.aifb.kit.edu/qa/index.php?qa=5525&qa_1=vereinfachung-b Wed, 08 Feb 2017 18:00:50 +0000 Welchen Wert hat R1, wenn ich nicht speichere, aber trotzdem nochmal 1 subtrahiere? https://info2.aifb.kit.edu/qa/index.php?qa=4282&qa_1=welchen-wert-nicht-speichere-trotzdem-nochmal-subtrahiere <p> Hallo,</p> <p> wenn man in diesem Abschnitt des Assemblerprogramms ist, frage ich mich wie mit R1 verfahren wird:</p> <p> <span style="font-family: NimbusRomNo9L; font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LOAD R1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//R1 wird ins Akkumulatorregister geladen</span></p> <p> <span style="font-family: NimbusRomNo9L; font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; JUMPZERO END &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//angenommen R1 ungleich 0, dann geht es weiter</span></p> <p> <span style="font-family: NimbusRomNo9L; font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SUBTRACT #1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//ich subtrahiere 1, speichere aber noch nicht</span></p> <div class="page" title="Page 12"> <div class="layoutArea"> <div class="column"> <p> <span style="font-size: 10.000000pt; font-family: 'NimbusRomNo9L'">LOOP &nbsp; &nbsp; &nbsp;JUMPZERO END &nbsp; &nbsp; &nbsp; &nbsp; //ich überprüfe, ob das noch nicht gespeicherte R1-1 noch ungleich 0 ist. Annahme: es ist so, dann geht es weiter</span></p> <p> <span style="font-size: 10.000000pt; font-family: 'NimbusRomNo9L'">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SUBTRACT #1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //meine Frage: <strong>Von welchem Wert wird nun nochmal 1 subtrahiert?&nbsp;</strong>von dem noch nicht gespeicherten R1-1 oder von dem "reinen" R1?</span></p> <p> <span style="font-family: NimbusRomNo9L; font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; STORE R1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// das wirkt sich ja dann auch darauf aus, was gespeichert wird&nbsp;</span></p> </div> </div> </div> <p> &nbsp;</p> ASS-AD https://info2.aifb.kit.edu/qa/index.php?qa=4282&qa_1=welchen-wert-nicht-speichere-trotzdem-nochmal-subtrahiere Sat, 13 Feb 2016 17:23:59 +0000 Verständnis https://info2.aifb.kit.edu/qa/index.php?qa=4196&qa_1=verst%C3%A4ndnis Im Band 2 Kapitel 7 A83 kann ich leider nicht nachvollziehen, wie man die 1-Adress-Befehle hier lesen/ auffassen muss.<br /> <br /> &nbsp;<br /> <br /> Könnte mir da jemand behilflich sein ? :)<br /> <br /> &nbsp;<br /> <br /> &nbsp;<br /> <br /> Mfg ASS-AD https://info2.aifb.kit.edu/qa/index.php?qa=4196&qa_1=verst%C3%A4ndnis Thu, 11 Feb 2016 21:51:31 +0000 Ist Acc nach LOAD x leer? https://info2.aifb.kit.edu/qa/index.php?qa=1809&qa_1=ist-acc-nach-load-x-leer Hallo,<br /> <br /> wenn ich das Programm für n = 1 durchgehe, ist bei mir am Ende in R4 2 gespeichert, aber laut Lsg-vorschlag sollte es ja f(1) = 1 sein, verstehe ich folgenden Ausschnitt falsch?<br /> <br /> (ab Zeile 13:)<br /> LOAD R4 //der in R4 gespeicherte Wert (1 im ersten Durchlauf) wird ins Acc geladen<br /> STORE R2// 1 wird in R2 gespeichert<br /> //ist jetzt das Akkumulationsregister &quot;leer&quot; oder ist dort weiterhin die 1 gespeichert?<br /> <br /> ADD R2 //wird die 1 jetzt zu der schon gespeicherten 1 addiert?<br /> STORE R4 //und jetzt also der Wert 2 in R4 gespeichert?<br /> <br /> Danke schon mal ! :) ASS-AD https://info2.aifb.kit.edu/qa/index.php?qa=1809&qa_1=ist-acc-nach-load-x-leer Fri, 13 Feb 2015 23:14:30 +0000