Hi you all

I use a calculation in my program (with decimal numbers) but the value that is calculated is offcourse decimal and bigger than 8bits.

Is there a easy way to convert this in hex and split it into two 8 bit registers.

for example:

.equ Time=300/0.05

so time is 6000 dec

I use the attiny24 and do the programming in assembly.

Can anyone give me an idea how to do this?

Thanks,

Patrick