Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi A - F > Fondamenti di architettura e programmazione > programmino
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
vanbasten09
Dsy Devaster

User info:
Registered: Sep 2002
Posts: 1137 (0.14 al dì)
Location:
Corso: comunicazione digitale
Anno: 3
Time Online: 6 Days, 18:43:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
programmino

calcola i fattoriale in assembly:


soluzione del prof:
INCR r1
Load r2 , a
loop: Jzero r2, fine
mult r1, r2
decr r2
jump loop
fine: store r1 , b



mia soluzione:

load r1, a
load r2, a
loop: jzero r1, fine
decr r2
mul r1,r2
jump loop
fine: store r1, b


sono giusti tutti e due o nel mio c'è un errore di fondo?:?

__________________
www.salvoldi.it/forum

24-10-2005 20:27
Click Here to See the Profile for vanbasten09 Click Here to See the Blog of vanbasten09 Click here to Send vanbasten09 a Private Message Find more posts by vanbasten09 Add vanbasten09 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
vanbasten09
Dsy Devaster

User info:
Registered: Sep 2002
Posts: 1137 (0.14 al dì)
Location:
Corso: comunicazione digitale
Anno: 3
Time Online: 6 Days, 18:43:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

seconda domanda..
nel I compitino nn c'è java giusto?

__________________
www.salvoldi.it/forum

24-10-2005 20:30
Click Here to See the Profile for vanbasten09 Click Here to See the Blog of vanbasten09 Click here to Send vanbasten09 a Private Message Find more posts by vanbasten09 Add vanbasten09 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lerio
.amico.

User info:
Registered: Aug 2005
Posts: 24 (0.00 al dì)
Location: Milano Hinterland
Corso: -
Anno: -
Time Online: 5:53:43 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ciao,

il tuo programmino contiene un errore (di distrazione presumo)

----------------------------------------

load r1, a
load r2, a
> loop: jzero r1, fine < il controllo va fatto su R2
loop: JZERO R2, fine <- così è corretto
decr r2
mul r1,r2
jump loop
fine: store r1, b

----------------------------------------

Per il resto il programma è valido al pari di quello del prof. (Salvo smentite ovviamente! :) )

__________________
_La vita è una tempesta ma prenderla ingulo è un lampo_

25-10-2005 20:15
Click Here to See the Profile for lerio Click here to Send lerio a Private Message Find more posts by lerio Add lerio to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
vanbasten09
Dsy Devaster

User info:
Registered: Sep 2002
Posts: 1137 (0.14 al dì)
Location:
Corso: comunicazione digitale
Anno: 3
Time Online: 6 Days, 18:43:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

si sono un pollo grazie:D

__________________
www.salvoldi.it/forum

26-10-2005 12:48
Click Here to See the Profile for vanbasten09 Click Here to See the Blog of vanbasten09 Click here to Send vanbasten09 a Private Message Find more posts by vanbasten09 Add vanbasten09 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Manuel333
.consigliere.

User info:
Registered: Sep 2005
Posts: 121 (0.02 al dì)
Location: Vigevano
Corso: Comunicazione Digitale
Anno: LOL
Time Online: 18:56:21 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Non ci sarà java cmq

26-10-2005 21:07
Click Here to See the Profile for Manuel333 Click here to Send Manuel333 a Private Message Visit Manuel333's homepage! Find more posts by Manuel333 Add Manuel333 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 13:19.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.038 seconds (74.12% PHP - 25.88% MySQL) con 28 query.