[zxspectrum] Re: Re[2]: compito in classe

  • From: Enrico Maria Giordano <e.m.giordano@xxxxxxxxxxxxxxx>
  • To: zxspectrum@xxxxxxxxxxxxx
  • Date: Tue, 10 May 2016 11:34:07 +0200



Il 10/05/2016 08:51, Paolo Ferraris ha scritto:

Algoritmo inverso. Purtroppo richede divisione per 10.

LD C,-1
LOOP:
INC C
SUB 10
JR C,LOOP
ADD A,10
LD B,A
LD A,C
ADD A,A
ADD A,A
ADD A,A
ADD A,A
ADD A,B

Sicuramente migliorabile quel loop. Ma credo non ne valga la pena. Tanto più che a Mario non serve.

EMG

--
EMAG Software Homepage: http://www.emagsoftware.it
The EMG Music page: http://www.emagsoftware.it/emgmusic
The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum
The Best of Spectrum Games: http://www.emagsoftware.it/tbosg

Other related posts: