flat assembler
Message board for the users of flat assembler.

Index > Windows > Windows console: Read/Write data (integer<->string con

Author
Thread Post new topic Reply to topic
majidkamali1370



Joined: 31 Oct 2010
Posts: 50
Location: Iran
majidkamali1370 01 Feb 2011, 00:01
Hi.
How can I read data (e.g. an integer) from keyboard in DOS environment?
And how can I echo something on screen?
I use windows.
Thanks Smile

EDIT by DOS386 : moved from DOS to Windows and fixed subject (as guessed the real problem behind this post)
Post 01 Feb 2011, 00:01
View user's profile Send private message Send e-mail Yahoo Messenger ICQ Number Reply with quote
b1528932



Joined: 21 May 2010
Posts: 287
b1528932 01 Feb 2011, 01:56
http://spike.scu.edu.au/~barry/interrupts.html


int 21h is all you will ever need for doe, other way of syscall simply doesnt exist.
Post 01 Feb 2011, 01:56
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1905
DOS386 02 Feb 2011, 03:50
Apparently you are searching for integer input and output conversion. There are some examples in this forum (maybe M$WCRT.DLL could do too ...). Input a string and convert it into an integer then. Convert integer into string and output the string. Check some console examples.
Post 02 Feb 2011, 03:50
View user's profile Send private message Reply with quote
b1528932



Joined: 21 May 2010
Posts: 287
b1528932 02 Feb 2011, 03:55
btw, does windows console support utf16 surrogates? ive tried without success. It also goes to utf8 (WriteConsoleA) beyond 3 bytes.
Post 02 Feb 2011, 03:55
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.