Your example only works on x86 assembler, and INT21h calls the MS-DOS API (roughly equivalent to stdio.h, but only if there's a DOS running somewhere): DOS INT 21h - DOS Function Codes. That wouldn't work on an N900.