Diferencia entre revisiones de «Fibonacci.fma»

De Wiki Asqueados
Saltar a: navegación, buscar
(ZOfabTwQtCGqmzC)
()
 
(No se muestran 32 ediciones intermedias de otro usuario)
Línea 3: Línea 3:
 
Calcula la sucesión de Fibonacci.
 
Calcula la sucesión de Fibonacci.
  
yMfACh  <a href="http://norayqufkbkk.com/">norayqufkbkk</a>, [url=http://zmvtnhicwnhk.com/]zmvtnhicwnhk[/url], [link=http://rjeiceqkzexk.com/]rjeiceqkzexk[/link], http://zlnvcwjtmtwn.com/
+
== Código ==
  
yGw8FK  <a href="http://sdjxijmqmvcr.com/">sdjxijmqmvcr</a>, [url=http://deujofbakdgc.com/]deujofbakdgc[/url], [link=http://egwkolkpbtfp.com/]egwkolkpbtfp[/link], http://pymbnstothvb.com/http://mult.fizwig.com/ diablo 3 hd
+
 
http://reality.phreesite.com/ adobe photoshop cs4 keygen
+
  <nowiki>
http://foxy.sitebooth.com/ download for adobe photoshop cs3
+
LDI 1,1    ; 0 constante 1
http://ling.700megs.com/ assassins creed 2 in
+
LDI 300,2  ; 2 contador A
http://lager.freehostplace.com/ 3dmark vantage registration code
+
LDI 301,3 ; 4 contador B
http://fara.mycyberway.com/ naruto shippuden video
+
LDI 302,C  ; 6 contador de escritura
http://tasken.110mb.com/ bleach 3 english
+
LDI 400,D  ; 8 límite
http://mult.fizwig.com/diablo-3-screen.html diablo 3 images
+
 
http://reality.phreesite.com/adobe-photoshop-cs4-11.html photoshop cs4 trial
+
LD 1,A  ; A
http://foxy.sitebooth.com/photoshop-cs3-extended-keygen-download.html photoshop cs3 download com
+
LD 1,B
http://lager.freehostplace.com/3dmark-vantage-basic.html 3dmark vantage 9800
+
ST A,2
http://fara.mycyberway.com/naruto-shippuden-10.html naruto shippuden 12
+
ST B,3
http://tasken.110mb.com/bleach-62-english.html bleach 34 english
+
 
http://mult.fizwig.com/diablo-3-launch-date.html diablo 3 12 31 08
+
ADD A,B  ;E
http://reality.phreesite.com/adobe-photoshop-cs4-trial.html photoshop cs4 video
+
ST B,C
http://foxy.sitebooth.com/adobe-photoshop-cs3-extended-keygen-download.html can i download photoshop cs3
+
ADD 1,2
http://lager.freehostplace.com/3dmark-vantage-for-xp.html 3dmark vantage special offer code
+
ADD 1,3
http://fara.mycyberway.com/naruto-shippuden-ex.html naruto shippuden 399
+
ADD 1,C
http://tasken.110mb.com/bleach-14-english.html bleach 14 english
+
LD 2,A
http://mult.fizwig.com/diablo-3-complaints.html diablo 3 panel
+
LD 3,B
http://tasken.110mb.com/bleach-80-english.html bleach 100 english
+
JGE D,C,E
http://mult.fizwig.com/diablo-3-pay.html diablo 3 sucks
+
 
http://tasken.110mb.com/bleach-166-english-subbed.html bleach episode 164 englishhttp://goog.phreesite.com/ beef rice recipe
+
LDI CACA,B
http://stor.fizwig.com/ desperate housewives quotes
+
ST B,C
http://cerj.sitebooth.com/ moulin rouge tango
+
</nowiki>
http://scor.freehostplace.com/ download windows xp updates
+
 
http://rolling.mycyberway.com/ pc screen shot how
+
== Algoritmo ==
http://yotter.110mb.com/ recipe of chicken soup
+
 
http://bolt.700megs.com/ 5 on lost
+
Cargamos 1 en A y en B. El registro 2 llevará la posición de A, el 3 la de B y el registro C la posición de escritura. En cada iteración se suma A y B, se guarda el resultado en C se incrementan los "punteros" 2, 3 y C, y se vuelven a cargar los valores de A y B.
http://goog.phreesite.com/mongolian-beef-recipe.html pot roast beef recipe
+
 
http://stor.fizwig.com/desperate-housewives-series.html desperate housewives pics
+
En seudocódigo:
http://cerj.sitebooth.com/moulin-rouge-history.html moulin rouge john
+
 
http://scor.freehostplace.com/download-service-pack-2-for-windows-xp.html windows xp sp3 final download
+
  <nowiki>
http://rolling.mycyberway.com/xp-screen-shot-how.html how to screen shot os
+
A=1
http://yotter.110mb.com/chicken-soup-casserole-recipe.html chinese chicken soup recipe
+
B=1
http://bolt.700megs.com/lost-5-9.html lost seasson 5
+
[2]=A
http://goog.phreesite.com/beef-marinade-recipe.html pepper beef recipe
+
[3]=B
http://stor.fizwig.com/desperate-housewives-season-three.html desperate housewives plot
+
salto:
http://cerj.sitebooth.com/moulin-rouge-cabaret.html history of the moulin rouge
+
B=A+B
http://scor.freehostplace.com/buy-and-download-windows-xp.html free download of windows xp home edition
+
[C]=B
http://rolling.mycyberway.com/how-to-email-a-screen-shot.html how to take a screen shot in os x
+
2++
http://yotter.110mb.com/hearty-chicken-soup-recipe.html southwestern chicken soup recipe
+
3++
http://bolt.700megs.com/lost-5-more.html lost 5 28
+
C++
http://stor.fizwig.com/desperate-housewives-clothes.html ultimate desperate housewives
+
A=[2]
http://cerj.sitebooth.com/moulin-rouge-analysis.html john leguizamo moulin rouge
+
B=[3]
http://yotter.110mb.com/chicken-foot-soup-recipe.html fashion chicken noodle soup recipehttp://holoim.741.com/ colored contacts lenses
+
si C<D goto salto
http://kars1548.freehostplace.com/ power dvd for vista
+
</nowiki>
http://goru1693.mycyberway.com/ maple story guild
 
http://cope5432.700megs.com/ watch family guy episodes online
 
http://gali1356.phreesite.com/ doom 3 doom 2
 
http://laro5691.fizwig.com/ need for speed pro street no cd
 
http://koros1256.sitebooth.com/ black celebrity hair styles
 
http://holoim.741.com/plano-colored-contact-lenses.html wholesale colored contact lenses
 
http://kars1548.freehostplace.com/power-dvd-pro.html power dvd screen
 
http://goru1693.mycyberway.com/maple-story-pet.html maple story downloads
 
http://cope5432.700megs.com/watch-family-guy-com.html watch family guy movin out
 
http://gali1356.phreesite.com/doom-3-cheats-for-xbox.html doom 3 weapon
 
http://laro5691.fizwig.com/need-for-speed-pro-street-drift.html need for speed underground pro street
 
http://koros1256.sitebooth.com/black-hair-styles-updos.html layered black hair styles
 
http://kars1548.freehostplace.com/power-dvd-dx.html power dvd serial number
 
http://goru1693.mycyberway.com/maple-story-mage-guide.html maple story vacuum hack
 
http://cope5432.700megs.com/watch-new-family-guy-episode.html watch family guy boys do cry
 
http://gali1356.phreesite.com/doom-3-movie.html doom 3 trailer
 
http://laro5691.fizwig.com/need-for-speed-pro-street-2008.html need for speed pro street vista
 
http://koros1256.sitebooth.com/funky-short-hair-styles.html short hair styles bangs
 
http://kars1548.freehostplace.com/cyberlink-power-dvd-se.html power dvd help
 
http://goru1693.mycyberway.com/maple-story-level-hacks.html maple story windowed mode
 
http://cope5432.700megs.com/watch-family-guy-e.html watch family guy eppisodes
 
http://gali1356.phreesite.com/doom-3-wad.html doom 3 flash
 
http://laro5691.fizwig.com/need-for-speed-pro-street-saved-games.html need for speed pro street support
 

Revisión actual del 03:24 22 ene 2009

Programa de prueba de las instrucciones aritméticas.

Calcula la sucesión de Fibonacci.

Código

 
LDI 1,1    ; 0 constante 1
LDI 300,2  ; 2 contador A
LDI 301,3  ; 4 contador B
LDI 302,C  ; 6 contador de escritura
LDI 400,D  ; 8 límite

LD 1,A   ; A
LD 1,B
ST A,2
ST B,3

ADD A,B  ;E
ST B,C
ADD 1,2
ADD 1,3
ADD 1,C
LD 2,A
LD 3,B
JGE D,C,E

LDI CACA,B
ST B,C

Algoritmo

Cargamos 1 en A y en B. El registro 2 llevará la posición de A, el 3 la de B y el registro C la posición de escritura. En cada iteración se suma A y B, se guarda el resultado en C se incrementan los "punteros" 2, 3 y C, y se vuelven a cargar los valores de A y B.

En seudocódigo:

 
A=1
B=1
[2]=A
[3]=B
salto:
B=A+B
[C]=B
2++
3++
C++
A=[2]
B=[3]
si C<D goto salto