0

Hi guys. I've been working on some assembly programs for school and I'm having a couple of minor issues that are putting my progress to a halt.

My first question: how does one perform something similar to a scanf function in assembly? I just need to scan a single character from the keyboard. It would also be helpful if I knew where it was stored. I've looked in my text under keyboard interrupts but after trying most of the ones that appeared they might be what I was using, I've had no luck.

Many thanks in advance.

3
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by mytime19
0

well brother look and read for INT 21H with data moving to DX(for output or printf) and AL(for input or scanf) to use scanf and printf as you use in C.. Strings are handled in different way that a simple integer here in assembly. I would recommend you to read this ebook : IBM PC ASSEMBLY LANGUAGE PROGRAMMING.
HAVE A NICE DAY !! (mytime19)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.