I'm wondering whether the listing file which u could get when u complie a program is important or not. I'm talking about DOS assembly and not win32.(i wonder whether u still get a listing file with masm32) My tutorial told me the content which i would expect in find in my listing file but i onli found 4 lines which are: Start Stop Length Name Class 00000H 00201H 00202H STACKSEG STACK 00210H 00211H 00002H MORESTUFF HOHUM 00220H 00741H 00522H DATASTUFF DATA 00750H 02058H 01909H CODESTUFF CODE Program entry point at 0075:0002 When i should expect: ; segs.asm ; - - - - - - - - - - - - - 0000 STACKSEG SEGMENT STACK 'STACK' 0000 4444 variable4 dw 4444h 0002 0100[ dw 100h dup (?) ???? ] 0202 STACKSEG ENDS ; - - - - - - - - - - - - - 0000 MORESTUFF SEGMENT PUBLIC 'HOHUM' 0000 2222 variable2 dw 2222h 0002 MORESTUFF ENDS ; - - - - - - - - - - - - - 0000 DATASTUFF SEGMENT PUBLIC 'DATA' 0000 1111 variable1 dw 1111h 0002 DATASTUFF ENDS ; - - - - - - - - - - - - - 0000 CODESTUFF SEGMENT PUBLIC 'CODE' EXTRN print_num:NEAR , get_num:NEAR ASSUME cs:CODESTUFF,ds:DATASTUFF ASSUME es:MORESTUFF,ss:STACKSEG 0000 3333 variable3 dw 3333h 0002 main proc far 0002 1E start: push ds 0003 2B C0 sub ax,ax 0005 50 push ax 0006 B8 ---- R mov ax, DATASTUFF 0009 8E D8 mov ds,ax 000B B8 ---- R mov ax, MORESTUFF 000E 8E C0 mov es,ax 0010 8B 0E 0000 R mov cx, variable1 0014 89 0E 0000 R mov variable1, cx 0018 CB ret 0019 main endp 0019 CODESTUFF ENDS ; - - - - - - - - - - - - END start N a m e Length Align Combine Class CODESTUFF . . . . . . 0019 PARA PUBLIC 'CODE' DATASTUFF . . . . . . .0002 PARA PUBLIC 'DATA' MORESTUFF . . . . . . 0002 PARA PUBLIC 'HOHUM' STACKSEG . . . . . . . 0202 PARA STACK 'STACK' Symbols: N a m e Type Value Attr GET_NUM . . . . . L NEAR 0000 CODESTUFF External MAIN . . . . . . . . F PROC 0002 CODESTUFF Length = 0017 PRINT_NUM . . . . L NEAR 0000 CODESTUFF External START . . . . . . . . L NEAR 0002 CODESTUFF VARIABLE1 . . . . . . L WORD 0000 DATASTUFF VARIABLE2 . . . . . . L WORD 0000 MORESTUFF VARIABLE3 . . . . . . L WORD 0000 CODESTUFF VARIABLE4 . . . . . . L WORD 0000 STACKSEG @CPU . . . . . . . . . . . . . . TEXT 0101h @FILENAME . . . . . . . . . . . TEXT segs @VERSION . . . . . . . . . . . . TEXT 510 54 Source Lines 54 Total Lines 21 Symbols 48006 + 428261 Bytes symbol space free 0 Warning Errors 0 Severe Errors So, if it's impt, then how do i get this expected listing?
Posted on 2001-06-20 10:15:00 by JCL

 it's not important. it's only for debugging purpose as far as i
 know it. masm allow you to generate *.lst as well, look under it's
 command. starting with /S

correction: it's /Fl This message was edited by disease_2000, on 6/20/2001 3:41:54 PM
Posted on 2001-06-20 13:37:00 by disease_2000
Very well! Then i should not be bothered too much abt not getting the correct listing.
Posted on 2001-06-20 16:43:00 by JCL