Extra Blank Line in Listing

ID Number: Q11905

4.00

MS-DOS

buglist4.00 fixlist5.00

Problem:

MASM Version 4.00 places an extra blank line in the LST file between

the copyright message and the title line. Thus, the page length is

inconsistent with the page length specified by the PAGE command. The

actual page length is one line longer than the maximum specified by

the PAGE command.

To duplicate this problem, do the following:

1. The first two lines of the code below contain these commands:

PAGE 25,80

Title THIS IS A TEST

Assemble this file and generate an LST file.

2. Look at the LST file with the debugger and note the extra 0D0A

between the copyright line and the title line.

3. Look at the LST file with Edlin. The last line of Page 1 should

be line 25; instead, it is line 26. The first line of Page 2 should be

line 26; instead, it is line 27.

Note: MASM Version 3.00 does not insert this extra blank line; the

page length remains consistent with the page length specified by the

PAGE command.

The following is a short example code:

page 25,80

Title THIS IS A TEST

CSEG SEGMENT

CSEG ENDS

STACK SEGMENT

STACK ENDS

DATA SEGMENT

DATA ENDS

DATA SEGMENT

DB 2048 dup(0)

DATA ENDS

CSEG SEGMENT

ASSUME CS:CSEG,DS:DATA,ES:NOTHING,SS:STACK

START:

mov ax,data

mov ds,ax

MOV ah,4ch

INT 21h

CSEG ENDS

STACK SEGMENT STACK

DB 256 DUP(?)

STACK ENDS

END START

Response:

Microsoft confirmed this to be a problem on Version 4.00 of the Macro

Assembler. This problem was corrected under Version 5.00.