added propritary swi support, swi handler, trap handler written in c and a trap handler for write character