TheVisitor
IS-IT--Management
I can't get the right offset to the string!
When I disassemble my .COM file, the LEA line would read:
MOV DX,0000
Can somebody tell me what I am doing wrong?
------------------- MY CODE
ASSUME CS:CODE_SEG,DSATA_SEG
CODE_SEG SEGMENT
ORG 100h
MAIN PROC NEAR
MOV AH,09
LEA DX,USAGE_LINE
INT 21h
INT 20h
MAIN ENDP
CODE_SEG ENDS
DATA_SEG SEGMENT
USAGE_LINE DB 'VID.COM v0.0.0 [:IO:] 2002 ',0Dh,0Ah
DB 0Dh,0Ah
DB 'options: d DISPLAY INFO',0Dh,0Ah
DB ' s SCAN LINES (0..2)',0Dh,0Ah
DB ' v VIDEOMODE (0..255)',0Dh,0Ah
DB ' f FONT HEIGHT (8,14,16)',24h
DATA_SEG ENDS
END MAIN
When I disassemble my .COM file, the LEA line would read:
MOV DX,0000
Can somebody tell me what I am doing wrong?
------------------- MY CODE
ASSUME CS:CODE_SEG,DSATA_SEG
CODE_SEG SEGMENT
ORG 100h
MAIN PROC NEAR
MOV AH,09
LEA DX,USAGE_LINE
INT 21h
INT 20h
MAIN ENDP
CODE_SEG ENDS
DATA_SEG SEGMENT
USAGE_LINE DB 'VID.COM v0.0.0 [:IO:] 2002 ',0Dh,0Ah
DB 0Dh,0Ah
DB 'options: d DISPLAY INFO',0Dh,0Ah
DB ' s SCAN LINES (0..2)',0Dh,0Ah
DB ' v VIDEOMODE (0..255)',0Dh,0Ah
DB ' f FONT HEIGHT (8,14,16)',24h
DATA_SEG ENDS
END MAIN