Category : Assembly Language Source Code
Archive   : NORTASM.ZIP
Filename : TEST23.ASM

 
Output of file : TEST23.ASM contained in archive : NORTASM.ZIP
.MODEL SMALL

.STACK

.DATA
ENTER_PROMPT DB 'Enter decimal number: ',0
NUMBER_READ_PROMPT DB 'Number read: ',0

.CODE
EXTRN WRITE_HEX:PROC, WRITE_DECIMAL:PROC
EXTRN WRITE_STRING:PROC, SEND_CRLF:PROC
EXTRN READ_DECIMAL:PROC

TEST_READ_DECIMAL PROC
MOV AX,DGROUP
MOV DS,AX

LEA DX,ENTER_PROMPT
CALL WRITE_STRING
CALL READ_DECIMAL
JC ERROR
CALL SEND_CRLF
LEA DX,NUMBER_READ_PROMPT
CALL WRITE_STRING
MOV DX,AX
CALL WRITE_DECIMAL
ERROR: CALL SEND_CRLF

MOV AH,4Ch ;Return to DOS
INT 21h
TEST_READ_DECIMAL ENDP


END TEST_READ_DECIMAL


  3 Responses to “Category : Assembly Language Source Code
Archive   : NORTASM.ZIP
Filename : TEST23.ASM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/