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

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

Re: AFUGABE3 - mcpaste

Re: AFUGABE3

Von HUMPALUM!!!!!, 10 Jahre vorher, geschrieben in ARM Assembler, aufgerufen 2'292 mal. Dieser Paste ist eine Antwort auf AFUGABE3 von HUMPALUM!!!!! - zurück
URL https://mcpaste.de/view/03efd400/diff Einbetten
Unterschiede zwischen AFUGABE3 und Re: AFUGABE3
// Loesung Aufgabe 3 und 4 von Termin4 Rechnerarchitektur SS2013
// Name:         Matrikelnummer:
// Name:         Matrikelnummer:
// Datum:
        .file "aufgabe3.S"
        .text                 @ legt eine Textsection fuer PrgrammCode + Konstanten an
        .align 2         @ sorgt dafuer, dass nachfolgende Anweisungen auf einer durch 4 teilbaren Adresse liegen        
                        @ unteren 2 Bit sind 0
        .global main         @ nimmt das Symbol main in die globale Sysmboltabelle auf
        .type main,function
main:
        stmfd sp!, {r4, r5, lr} @ Ruecksprungadresse und Register sichern
kopieren:
@ hier Ihr Programm zum Kopieren einer Byte-Tabelle (je 8Bit) in eine Word-Tabelle (je 32Bit) einfuegen
 .copy:        LDR r1, TAB1
         LDR r2, TAB2
        
        LDRB r3,[r1],#1
        STR r3,[r2],#4        
 .loop:        LDRB r0,[r1],#1
        MOV r4,r0
        MOVS r0,r0,LSL#25
        BCC  .pos
        MVN r9,#0xFF
        ORR r0,r0,r9
        ADD r0,r0,r4
        B .fert
                
 .pos:        MOV r0,r4
 .fert:        STR r0,[r2],#4
        SUBS r3,r3,#1
        BNE .loop

vorzeichen:
@ hier Ihr Programm um die 8Bit-Zahlen auf vorzeichenrichtige 32Bit-Zahlen zu wandeln

                
        
sortieren:
@ hier Ihr Programm um die vorzeichenrichtige Zahlen in Liste2 zu sortieren
.bblsrt: LDR r4,TAB2
        LDR r5,[r4]
        sub r4,r4,#4        
        ADD r6,r4,r5,LSL#2
.2:        MOV r7,r6
        SUB r7,r7,#4
        LDR r8,[r6]
.1:        LDR r9,[r7]
        CMP r8,r9
        BMI .nicht
        STR R8,[R7]
        MOV R8,R9
.nicht: SUB r7,r7,#4
        CMP R7,R4
        bne .1
        ADD R4,R4,#4
        CMP R4,R6
        bne .2
        
fertig:
        ldmfd sp!, {r4, r5, pc} @ Ruecksprungadresse und Register

TAB2: .word Liste2 @ Beispiel um an Adressen aus anderen Segmenten zu kommen
TAB1: .word Liste1
.Lfe1:
        .size main,.Lfe1-main

// .data-Section fuer initialisierte Daten
        .data
// Erster Wert der Tabelle steht fuer die Anzahl (max. 64) der Werte der Tabelle
Liste1: .byte (Liste1Ende-Liste1), -9, 8, -7, 6, -5, 4, -3, 2, -1, 0, 127, 128
Liste1Ende:

// .comm-Section fuer nicht initialisierte Daten
        .comm Liste2, ((Liste1Ende-Liste1)*4)         @ Speicherbereich mit der Groesse*4 von Liste1 reservieren

// End of File

Antwort auf "Re: AFUGABE3"

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