Modify interrupt register, and add big-endian handling.
Also add more debug message...