ARM Assembler MACRO? RRS feed

  • Question

  • Does anybody know what the equivalent ARM assembly macro of this is?

    #define ALIGN_UP(addr, size)                (((addr)+((size)-1))&(~((size)-1)))

    I want to be able to do this in my .s ARM assembler file:

    MY_VAR   EQU     ALIGN_UP(6377, 0x2000)

    AlignExpr is not supported by the MS ARM assembler, so it needs to be done using MACRO/MEND I guess...

    Any help would be greatly appreciated!

    Good luck,

    Michel Verhagen, eMVP
    Check out my blog:

    Microsoft Embedded Partner
    Consultancy, training and development services.

    Thursday, May 10, 2012 12:18 AM