1
0
Fork 0
supSMS-MiscCode/src/macros.s

16 lines
281 B
ArmAsm
Raw Normal View History

2022-11-02 18:25:40 +09:00
.macro li32 reg val
lis \reg, \val@h
ori \reg, \reg, \val@l
.endm
.macro liDX reg val
.if -0x8000 <= \val && \val < 0x8000 || 0xffff8000 <= \val
li \reg, \val@l
.else
lis \reg, \val@h
.if \val&0xffff != 0
ori \reg, \reg, \val@l
.endif
.endif
.endm