added inline assembler functions & update hardware cursor