Home  Site Map  Instruction Index 

Basic Teletype Display Code


The default TTY Teletype font and operation displays light grey characters on the display on a black background.
You must set AX, BX and CX before calling INT 0x10.

  • Set AH=E0 this is the display command for TTY mode.
  • Set AL= the character to be displayed. All 256 characters can be used.
  • Set BX=0x0007 the default colour.
  • Set CX=0x0001 to the number of characters to display.

You can ignore the PUSH and POP stack commands if you do not mind your registers changing.


Display a Character


Display a String


Display a Number


Display a New Line


Display a HEX Number

The \\0 in the data string represents a NULL (zero) end of string. The data string will need to be modified for use with your own compiler.


Display a Press Key Message

The \\0 in the data string represents a NULL (zero) end of string. The data string will need to be modified for use with your own compiler.