Re: Print BX to output
Car wrote:
I have to do some basic arithmetic in ASM
Using TASM & DOS
First, convert the value in BX to a (decimal, hex, or binary) string.
Second, write this string to the standard output.
You can write it one character at a time:
http://www.ctyme.com/intr/rb-2554.htm
Or the whole thing at once:
http://www.ctyme.com/intr/rb-2562.htm
Nathan.
.
Relevant Pages
- Re: date Conversion Program in Assembly
... AH = 09h DS:DX -> '$'-terminated string ... state that nothing is returned) (at least DOS 2.1-7.0 and NWDOS) ... standard output is always the screen under DOS 1.x, but may be redirected under DOS 2+ under the FlashTek X-32 DOS extender, the pointer is in DS:EDX ... AH = 0Ah DS:DX -> buffer Return: buffer filled with user input ... (alt.lang.asm) - Re: OT Humor - "You might be an mainframer if... :-) V3.8"
... >> You know that the head of string is not an HR position ... >> You know that SPOOL is an acronym (Simultaneous Peripheral Operations ... For DOS, no, not that DOS, the other ... >> You can create a tape backup of something and know you can read it back ... (comp.lang.cobol) - Re: question about catching TCLs output
... We have a debugger which is made of TCL and C languge, ... integrate has nothing to do with Eclipse, they(our IDE group members) use ... input and get its output to the display(I think this is standard output). ... BUT the result string built up with "Tcl_AppendElement" can't be caught. ... (comp.lang.tcl) - Hex editor display - can this be more pythonic?
... I'm building a hex line editor as a first real Python programming exercise. ... I had considered using the .translatemethod of strings, however this would require a larger translation table than my printable string. ... Where printing chars are shown in parenthesis, characters with Python escape sequences will be shown as their escapes in parens., while non-printing chars with no escapes will be shown with nothing in parens. ... (comp.lang.python) - Re: compilation problem
... want this utility to print decimal for hex numbers entered. ... IF the third argument passed is a string specifying a decimal number ... TERMINATE with an EXIT_SUCCESS returncode ... (comp.lang.c) |
|