hi

nachi69

New Member
Anyone here for assembly programming ?

Hello

I am working on a firmware project that involves carrying out assembly language programming for a hitachi micro-controller H8/300H series.I would
really appreciate if anyone could suggest any ideas for the following problem.

The Problem : I need to carry out BCD division with the following
formula :

er3 = [ (er1/60,000) * ( er0 / r2L or r2H)]

where :

er3 is the output

er1 is the input count (Maximum Count) (Range 0 - 61,000)

er0 is an input with any of the following values 800/1600/4000/8000

r2L is the 1st range increment with values like 1,2,4,5,10

r2H is the 2nd range increment with value like 1,2,4,5,10

r2L is chosen if er1 Less than (<)30,000
r2H is chosen if er1 Greater than or equal to (>=) 30,000

Final Output (er3) = er2 + er1 (remainder from division)

Any takers ? Let me know...good luck trying !!!
 

nachi69

New Member
Please help me !!!

Hi,

I am trying to get this ASM Programming out of my way.Can anyone here help me..with atleast partial coding / Guidance.Appreciate it
 
Top