1. allcircuit

    Thread Starter Active Member

    Jan 7, 2009
    dd is declared as a 32 bit register
    Code ( (Unknown Language)):
    1. LONG           dd
    And the part which i concern is:

    Code ( (Unknown Language)):
    1. calc_Ah:
    2.     add1632    Amps,AmpSum    ; AmpSum = accumulated Amps
    3.     mov32    AmpSum,dd
    4.     movi16    3600*3,aa    ; 3 reads per second, 3600 seconds per hour
    5.     call    Div32        ; AmpHours = AmpSum  / (reads per hour)
    6. store_Ah:
    7.     mov16    dd+2,AmpHours
    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]