Move data table and function from HDISP.ASM to TCOMMON.ASM, will port some function to C later.

Signed-off-by: Khral Steelforge <garuda2550@gmail.com>