To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / 1619
1618  |  1620
Subject: 
h8/300 16-bit multiply
Newsgroups: 
lugnet.robotics.rcx
Date: 
Wed, 27 Feb 2002 06:02:50 GMT
Viewed: 
2666 times
  
I'm trying to implement a 16bit multiply that leaves a 32bit result
on the H8/300.  The RCX ROM includes 16x16=16 and 32x32=32
multiplication routines, but not the intermediate step.  Any hints
or pointers?

(it should be straightforward, but my eyes keep watering when I'm
trying to work out the register juggling)

--
Darin Johnson
    Gravity is a harsh mistress -- The Tick



Message has 1 Reply:
  RE: h8/300 16-bit multiply
 
(...) The easiest thing is to cast your 16 bit values to 32 bits and use the built-in 32x32 multiply... Here's the code from pbForth that does it. (It's written in a pseudo- assebler, but you can probably figure it out...) #---...--- # UM* UM* ( u1 (...) (23 years ago, 4-Mar-02, to lugnet.robotics.rcx)

4 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR