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

Fibo - mcpaste

Fibo

Von MC_J, 10 Jahre vorher, geschrieben in ARM Assembler, aufgerufen 1'693 mal.
URL https://mcpaste.de/view/7ea45fdc Einbetten
Paste herunterladen oder Rohtext anzeigen
  1. @ Name:         Matrikelnummer:
  2. @ Name:         Matrikelnummer:
  3. @ Datum:
  4.  
  5.         .file   "fibo.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.                                 @ d.h. die unteren 2 Bit sind 0
  9.         .global fiborec         @ nimmt das Symbol fiborec in die globale Sysmboltabelle auf
  10.         .type   fiborec,function
  11. fiborec:
  12.         @  Code für fiborec
  13.                 @STMFD  SP,{r4-r10,fp,sp}       @Register 4-10 sowie fp und sp sichern
  14.                
  15.                 CMP             r0, #1
  16.                 MOVLE   r1, r0
  17.                 MOVLE   PC, LR  @ return
  18.                 STMFD   sp, {LR}
  19.                 SUB             r0, r0, #2
  20.                 BL              fiborec
  21.                 STMFD   sp, {LR}
  22.                 ADD             r0, r0, #1
  23.                 BL              fiborec
  24.                 LDMFD   sp,{r2}
  25.                 ADD             r1,r1,r2
  26.                 ADD             r0,r0,#1
  27.                 LDMFD   sp,{PC}
  28.                
  29.                
  30.  
  31.  
  32.                 @LDMFDEQ        SP,{r4-r10,fp,sp}       @Register vom Stack wiederherstellen.
  33.                
  34.                
  35.                
  36. .Lfe1:
  37.         .size   fiborec,.Lfe1-fiborec
  38.        
  39.         .global fiboiter        @ nimmt das Symbol fiboiter in die globale Sysmboltabelle auf
  40.         .type   fiboiter,function      
  41. fiboiter:
  42.         @  Code für fiboiter
  43.                 MOV             r1, #0
  44.                 MOV             r2, #1
  45.                 MOV             r3, #0
  46.                 SUB             r0, #1
  47. .fibo:                                                          @Iterative Berechnung
  48.                 CMP             r0, #0
  49.                 MOVEQ   r0, r3
  50.                 BEQ             .return
  51.                 ADD             r3, r2, r1
  52.                 MOV             r1, r2
  53.                 MOV             r2, r3
  54.                 SUB             r0, #1
  55.                 B               .fibo
  56.                
  57.  
  58.                
  59. .return:
  60.                 MOVEQ   PC, LR                          @Programm verlassen.
  61.  
  62. .Lfe2:
  63.         .size   fiboiter,.Lfe2-fiboiter
  64.  
  65.         .global fiboreccache    @ nimmt das Symbol fiboreccache in die globale Sysmboltabelle auf
  66.         .type   fiboreccache,function
  67. fiboreccache:
  68.         @  Code für fiboreccache
  69.  
  70.  
  71. .Lfe3:
  72.         .size   fiboreccache,.Lfe3-fiboreccache
  73.  
  74.         .global fiboitercache   @ nimmt das Symbol fiboitercache in die globale Sysmboltabelle auf
  75.         .type   fiboitercache,function
  76. fiboitercache:
  77.         @  Code für fiboitercache
  78.  
  79.  
  80. .Lfe3:
  81.         .size   fiboitercache,.Lfe3-fiboitercache
  82.        
  83. .data  
  84.                         .align  2      
  85. fiboliste:      .space 100*4, 0
  86.                
  87. .end                    @ End of File
  88.  

Antwort auf "Fibo"

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