indec - take in a number between 0 and 65535 The reason its limited to 65535 is because with 16 bits the maximum no. you can store is: 1111 1111 1111 1111 (binary) 65535 (decimal) When we use indec to take in a number it will be stored in ax. The reason its being stored in ax is because that is where the procedure "indec" will put it. In other words indec has been written to put the number keyed in by the user into ax. If you look at the procedure indec.asm you will see a lot of code there. ------------------------------------------------------- For the moment all we need to do is call the procedure indec and it will take in a number (0 - 65535) and store it in ax. ------------------------------------------------------- An example ---------- .code extrn indec: proc call indec mov ax,4C00h int 21h end ----------------------------------- To get it to run - call it 2014.asm ----------------------------------- tasm 2014-4 tasm indec tlink 2014-4 indec (2014-4.exe is now created) ----------------------------------- Debug it ----------------------------------- td 2014-4