assemblyarmv6

ARMv6 Assembly language


Does anyone know how to start a comment (e.g. '#',';', '/', '/*') in ARMv6 Assembly Language?


Solution

  • should be ";" as per some example code i found on the wikipedia article:

        loop  CMP  Ri, Rj   ; set condition "NE" if (i != j),
                            ;               "GT" if (i > j),
                            ;            or "LT" if (i < j)
        SUBGT  Ri, Ri, Rj   ; if "GT" (greater than), i = i-j;
        SUBLT  Rj, Rj, Ri   ; if "LT" (less than), j = j-i;
        BNE  loop           ; if "NE" (not equal), then loop