dd is declared as a 32 bit register
And the part which i concern is:
Verify whether my statement correct as I just learned some simple assembly language. AmpHours store a value and load to dd+2 at the last statement, so if I need the value of AmpHours, i will need to call dd+2 out izzit? Then i convert the binary stream of AmpHours using Print_Char from the included lcd.asm. Am i able to view the binaries exactly in decimal form? I am using HD44780 compatible LCD driver.
[lcd included file here]
Rich (BB code):
LONG dd
Rich (BB code):
calc_Ah:
add1632 Amps,AmpSum ; AmpSum = accumulated Amps
mov32 AmpSum,dd
movi16 3600*3,aa ; 3 reads per second, 3600 seconds per hour
call Div32 ; AmpHours = AmpSum / (reads per hour)
store_Ah:
mov16 dd+2,AmpHours
[lcd included file here]