Lightweight physics engine written in x8086 assembly code