;============================================================================= ; dos1.asm ; Gets the version of MS-DOS ;(C)I don't take any responsibility for the use of this program ; Zedr0n -- connection closed ;============================================================================= ;============================================================================= ; .Com declaration ;============================================================================= .MODEL TINY ;============================================================================= ; Data definition/declaration ;============================================================================= .DATA ;----------------------------------------------------------------------------- ; Equals ;----------------------------------------------------------------------------- ;----------------------------------------------------------------------------- ; Constants ;----------------------------------------------------------------------------- MESS DB "Your version of MS-DOS is " MESS_OFF1 EQU $-MESS DB 30H ; DB '.' DB 30H ; DB '$' ;----------------------------------------------------------------------------- ; File variables ;----------------------------------------------------------------------------- ;----------------------------------------------------------------------------- ; Stack variables ;----------------------------------------------------------------------------- .CODE .386 ORG 100H ;============================================================================= ; Code segment ;============================================================================= START: ; MOV AH,30H ; INT 21H ; MOV BX,OFFSET MESS ADD BX,MESS_OFF1 ADD AX,3030H MOV [BX],AL ; MOV AH,09H ; MOV DX,OFFSET MESS ; INT 21H RET END START