From: hackbard Date: Tue, 22 Apr 2003 09:33:16 +0000 (+0000) Subject: asm homework X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=e4ce964325dd67bd7e9e9afb56433b733499651b;p=info3%2Fasm.git asm homework --- e4ce964325dd67bd7e9e9afb56433b733499651b diff --git a/loesung1.s b/loesung1.s new file mode 100644 index 0000000..c9a7608 --- /dev/null +++ b/loesung1.s @@ -0,0 +1,20 @@ +; blatt 1 + +; aufgabe 1 +; a) +addi r1,r0,1 +addi r2,r0,15 +add r3,r1,r2 + +; b) +addi r4,r0,0x200 +addi r5,r0,64 +sw (r4),r5 +lw r6,(r4) ; dabei stehts ja schon in r5 +add r7,r6,r6 +addi r8,r0,0x220 +sw (r8),r7 + +; aufgabe 2 +; a) +