Use inline assembly to read special registers.
Replaced tabs with spaces.