I’m working with emu8086, in a source code I’ve found this line at the top:
include 'emu8086.inc'
and this line in the end:
DEFINE_SCAN_NUM
I know that scan num is a part of emu8086.inc, and I opened up the inc file with an editor but still can’t figure out what does exactly scan_function do?
It reads a number between -32767 and 32767 and returns it into CX, using BIOS functions for keyboard input and display of the number.
(Actually, it will accept the
-sign at any position, not only at the start).