[comp.lang.forth] Z80-source for *, /, /MOD and */

d89mb@efd.lth.se (Magnus Bodin) (05/13/91)

Anyone having a Z80-implementation of FORTH, willing to cut out 4
routines
for me:

    *     (16 bits * 8 bits giving either 16 (highest uninteresting),
                                          24 or 32 bits result)
    /     (16 / 8 giving 8 bits result)
  
    /MOD  (16 / 8 giving 2x8 bits result)

    */    (16 * 8 giving 32 bits intermediate result / 8 bits giving 16 bits)



or something near it (8080-code, mathematical or literature
references)

Thanks in advance...


-- 
Magnus Bodin               "Nec fasces, nec opes, 
Institute of Tychology,     sola artis sceptra perennant"
Box 5127, 220 05 Sweden     (Tycho Brahe, Stj{rneborg 1584)

jwoehr@isis.cs.du.edu (Jack J. Woehr) (05/15/91)

In article <1991May13.132136.1565@lth.se> d89mb@efd.lth.se (Magnus Bodin) writes:
>
>Anyone having a Z80-implementation of FORTH, willing to cut out 4
>routines
>for me:

	Magnus ... the math primitives you seek can be coded after reading
the popular book _The Z-80 Microcomputer Handbook_, William Barden, Jr.,
Howard Sams publisher, ISBN: 0-672-21500-4.

--
 # jax@well.{UUCP,sf.ca.us}  # #  Member, # # Chapter Coordinator,  #
 # isis.du.edu!koscej!jax    # # X3J14 TC # #  Forth Interest Group #
 # JAX on GEnie              # # for ANS  # #   P.O. Box 8231       #
 # SYSOP RCFB (303) 278-0364 # #  Forth   # #    San Jose CA 95155  #

tima@hls.com (05/16/91)

In article <1991May13.132136.1565@lth.se>, d89mb@efd.lth.se (Magnus Bodin) writes:
> 
> Anyone having a Z80-implementation of FORTH, willing to cut out 4
> routines
> for me:
> 
>     *     (16 bits * 8 bits giving either 16 (highest uninteresting),
>                                           24 or 32 bits result)
>     /     (16 / 8 giving 8 bits result)
>   
>     /MOD  (16 / 8 giving 2x8 bits result)
> 
>     */    (16 * 8 giving 32 bits intermediate result / 8 bits giving 16 bits)
> 
> 
> 
> or something near it (8080-code, mathematical or literature
> references)
> 
> Thanks in advance...
> 
> 
> -- 
> Magnus Bodin               "Nec fasces, nec opes, 
> Institute of Tychology,     sola artis sceptra perennant"
> Box 5127, 220 05 Sweden     (Tycho Brahe, Stj{rneborg 1584)

tima@hls.com (05/17/91)

In article <1991May13.132136.1565@lth.se>, d89mb@efd.lth.se (Magnus Bodin) writes:
> 
> Anyone having a Z80-implementation of FORTH, willing to cut out 4
> routines
> for me:
>     *     (16 bits * 8 bits giving either 16 (highest uninteresting),
>     /     (16 / 8 giving 8 bits result)
>     /MOD  (16 / 8 giving 2x8 bits result)
>     */    (16 * 8 giving 32 bits intermediate result / 8 bits giving 16 bits)
> 

There are also various mathematical routines in :

	Programming the Z80
	Rodney Zaks
	Sybex
	ISBN# 0-89588-013-x

	8080 8085 Software Design
	Titus,Titus,Larsen
	The Blacksburg Group
	ISBN# 0-672-21541-1

Good Luck