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
|
|
|
|