improve code for apu & pad regs, merge these two regs buffers into one bufffer.