bmarcot / vega

vega -- The Unix-like Operating System for micro-controllers (ARM Cortex-M4)
6 stars 1 forks source link

movl macro is suspicious #15

Closed bmarcot closed 7 years ago

bmarcot commented 7 years ago

https://github.com/bmarcot/vega/blob/devel/pseudo.S#L14

This line is suspicious. Can we do .if \imm32 & 0xffff0000 instead?

Add a unit test.

bmarcot commented 7 years ago

Also, use that syntax :lower16: from:

http://lxr.free-electrons.com/source/arch/arm/mach-tegra/sleep.h#L87