assemblyx86hla

Add Statement in high level assembly HLA


Hi I just want to add to variable and I can't figure out how to do it.

static
input: uns8;
i:real32;
noOfItems: uns8;

I want noOfItems=numberOfItems + i;


Solution

  • I have solved it by first saving the value in the register and then adding it like

    mov( unitPrice, edx);
    add(edx , totalunitPrice );