Reading a string in TASM x86 assembly

Posted by I_S_W on Stack Overflow See other posts from Stack Overflow or by I_S_W
Published on 2010-04-11T14:33:44Z Indexed on 2010/04/11 14:43 UTC
Read the original article Hit count: 368

Filed under:

hi all , i am trying to read a string from user in TASM assembly , i know i need a buffer to hold the input , max. length and actual length , but i seem to forgot how exactly we declare a buffer

my attempt was smth like this

Buffer db 80 ;max length
       db ?  ;actual length
       db 80 dup(0);i think here is my problem but can't remember the right format

Thanks in advance

© Stack Overflow or respective owner

Related posts about assembly