When programming parts for TMA, there´re limits to make it portable to other platforms that run in real mode.
Outside platform-dependent stuff take care of these things: