A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4751

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

Untitled - mcpaste

Untitled

Von MC_J, 10 Jahre vorher, geschrieben in ARM Assembler, aufgerufen 1'607 mal.
URL https://mcpaste.de/view/2d29fc00 Einbetten
Paste herunterladen oder Rohtext anzeigen
  1. // Loesung Aufgabe 3 und 4 von Termin4 Rechnerarchitektur SS2013
  2. // Name:        Matrikelnummer:
  3. // Name:        Matrikelnummer:
  4. // Datum:
  5.         .file "aufgabe3.S"
  6.         .text           @ legt eine Textsection fuer PrgrammCode + Konstanten an
  7.         .align 2        @ sorgt dafuer, dass nachfolgende Anweisungen auf einer durch 4 teilbaren Adresse liegen       
  8.                         @ unteren 2 Bit sind 0
  9.         .global main    @ nimmt das Symbol main in die globale Sysmboltabelle auf
  10.         .type main,function
  11. main:
  12.         stmfd sp!, {r4, r5, lr} @ Ruecksprungadresse und Register sichern
  13. kopieren:
  14. @ hier Ihr Programm zum Kopieren einer Byte-Tabelle (je 8Bit) in eine Word-Tabelle (je 32Bit) einfuegen
  15.         .copy:  LDR     r1, TAB1
  16.                 LDR     r2, TAB2
  17.                
  18.                 LDRB    r3, [r1], #1
  19.                 STR     r3, [r2], #4
  20.                  
  21.         .loop:  LDRB    r0, [r1], #1
  22.                 TST     r0, #0x80
  23.                 BEQ     .store 
  24.                 MVN     r10, #0xFF
  25.                 ORR     r0, r0, r10
  26.         .store: STR     r0, [r2], #4
  27.                 SUBS    r3, r3, #1
  28.                 BNE     .loop  
  29.  
  30.  
  31.  
  32.  
  33.        
  34. sortieren:
  35. @ hier Ihr Programm um die vorzeichenrichtige Zahlen in Liste2 zu sortieren
  36.  
  37.         LDR     r4, TAB2
  38.         LDR     r5, [r4]
  39.         ADD     r6, r4, r5, LSL #2
  40.         MOV     r7, r6
  41.         SUB     r7, r7, #4
  42. .1:     LDR     r8, [r6]
  43.         LDR     r9, [r7]
  44.         CMP     r8, r9
  45.         BMI     .nicht
  46.         STR     r8, [r7]
  47.         MOV     r8, r9
  48. .nicht: SUB     r7, r7, #4
  49.         CMP     r7, r5
  50.         BNE     .1
  51.         ADD     r5, r5, #4
  52.         CMP     r5, r6
  53.         bne     .1
  54.  
  55.  
  56. fertig:
  57.         ldmfd sp!, {r4, r5, pc} @ Ruecksprungadresse und Register
  58.  
  59. TAB1: .word Liste1
  60.  
  61. TAB2: .word Liste2 @ Beispiel um an Adressen aus anderen Segmenten zu kommen
  62.  
  63. .Lfe1:
  64.         .size main,.Lfe1-main
  65.  
  66. // .data-Section fuer initialisierte Daten
  67.         .data
  68. // Erster Wert der Tabelle steht fuer die Anzahl (max. 64) der Werte der Tabelle
  69. Liste1: .byte (Liste1Ende-Liste1), -9, 8, -7, 6, -5, 4, -3, 2, -1, 0, 127, 128
  70. Liste1Ende:
  71.  
  72. // .comm-Section fuer nicht initialisierte Daten
  73.         .comm Liste2, ((Liste1Ende-Liste1)*4)   @ Speicherbereich mit der Groesse*4 von Liste1 reservieren
  74.  
  75. // End of File
  76.  
  77.  

Antwort auf "Untitled"

Hier kannst Du auf den Paste von oben antworten

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876