[zxspectrum] Re: ZX Coding competition

  • From: Roberto Montaruli <rmontaruli@xxxxxxxxx>
  • To: zxspectrum@xxxxxxxxxxxxx
  • Date: Thu, 23 Oct 2003 03:29:05 -0700 (PDT)

--- Stefano <flydream@xxxxxxxx> wrote:
> Per quanto riguarda la conversione di un numero in virgola mobile in intero
> bastano solo queste 2 istruzioni?
> 
>       ; convert floating point number into an integer
>       ; input - floating point number in DEHL
>       ; output - integer, in A
>       ld a,42
>       ret
> 
>       ; they never said it had to be the *same* integer... ;-)
> 

In questo caso 

        LD A, R
        RET

e' ancora piu' compatta  :-)


=====
//
//   In a world without walls and fences
//     you would not need windows and gates. 
//                               (Confucio)
==
P'n'P: http://cnn.com/TECH/computing/9804/20/gates.comdex/index.html


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

Other related posts: