Re: Printing from MASM (and other droll questions)



On Dec 27, 12:12 am, Herbert Kleebauer <k...@xxxxxxxxx> wrote:


Don't use the message box for output but start your program in
a cmd shell (DOS box) and write to stdout. MASM hides much to
much. Here a simple program to dump register, stack and memory
content as a DOS and Windows program where you can see every byte
in the binary explicitly defined in the assembler source code.
As you can see yourself, it's much better to start assembly
programming in DOS: you will learn the same, but it's much
easier to start with.

; DOS version:
OS=0 ; 0: DOS 1: WINDOwS 2: LINUX
....

Whoa there, my brain is full. Thank you for your detailed response but
I am a bit overwhelmed. Tonight I will see I can figure out where to
start asking questions about all you have given me.

gtb
.



Relevant Pages

  • Re: File I/O using NASM in 32-bit mode
    ... easily done as a Win32 console application as it is a DOS application. ... int21 version for writing a charater to stdout ... An assembly program is a sequence of CPU instructions. ... the same knowledge about assembly programming independent from the ...
    (alt.lang.asm)
  • Re: Assembler recommendation?
    ... >>I'm trying to learn device driver programming, the target being a PCjr. ... >>is out of the running because it doesn't run in pure DOS.) ... > MASM 6.00 appears to be a DOS exe. ...
    (comp.lang.asm.x86)
  • Re: Problems posting to CLAX...
    ... Doesn't work with dosemu, in any case. ... solution is to write to a "real file", not stdout, but I was trying to ... DOS, and the Windows API changed the nature of the game. ... redirection, piping, and stuff? ...
    (alt.lang.asm)
  • Re: C++
    ... There are embedded systems that use DOS and others that don't even use ... Can anyone suggest a an appropriate compiler? ... I did BIOS and we mixed C and MASM / TASM. ... development really done with otherwise obsolete tools? ...
    (comp.lang.asm.x86)
  • Re: get tclapp-wrapped app to display output in DOS console?
    ... If I run this program from a cygwin bash shell, the output appears as expected and all is well. ... I recently discovered, however, that the same executable run with the same command line from a DOS shell doesn't display any output in the DOS window. ... The program appears to run in the background and I have no idea where stdout is going. ...
    (comp.lang.tcl)