This program displays the version of DOS running on your computer.
****************************************************************** ** Program: VERSION.Q ** ** Purpose: Display current version of DOS on the video screen. ** ****************************************************************** OPTION INCLUDE = 'REGS.INC' * Include contents of REGS.INC file MOVE LOVALUES TO WST1-4 * Init wst area bytes 1 to 4 to x'00's MOVE X'30' TO AH * Move x'30' to AH register INT86 X'21' * Get DOS major.minor version number MOVE AL TO WST1 * Move contents of AL reg to wst byte 1 MOVE AH TO WST3 * Move contents og AH reg to wst byte 3 DISPLAY 'DOS VERSION IS: ' NOSKIP * Display "DOS VERSION" on screen DISPLAY WST1-2-I NOSKIP * Display major version number DISPLAY '.' NOSKIP * Display "." DISPLAY WST3-4-I * Display minor version number