简体   繁体   中英

How to alias registers in MIPS32 asm?

Is there a way to rename register in MIPS32 to make it easy to read ? Something like:

    #define $t0 $num_of_rows
    #define $t1 $num_of_cols
    ...

Thanks

If you're using a GNU toolchain then it would be:

#define num_of_rows $t0
#define num_of_cols $t1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM