Re: date Conversion Program in Assembly
- From: Dirk Wolfgang Glomp <freecrac@xxxxxxxxxx>
- Date: Wed, 31 Aug 2005 08:57:36 +0200
Ninad schrieb:
Can Anyon help me to write an Assembly Prograsm which does following
If an input string ‘15021999’ is entered Program will return date as ‘February, 15, 1999’ in the form of string; otherwise it will display the message ‘INPUT IS NOT A VALID DATE’
RBIL->inter61b.zip->Interrup.f
--------D-2109------------------------------- INT 21 - DOS 1+ - WRITE STRING TO STANDARD OUTPUT AH = 09h DS:DX -> '$'-terminated string Return: AL = 24h (the '$' terminating the string, despite official docs which state that nothing is returned) (at least DOS 2.1-7.0 and NWDOS) Notes: ^C/^Break are checked, and INT 23 is called if either pressed standard output is always the screen under DOS 1.x, but may be redirected under DOS 2+ under the FlashTek X-32 DOS extender, the pointer is in DS:EDX SeeAlso: AH=02h,AH=06h"OUTPUT" --------D-210A------------------------------- INT 21 - DOS 1+ - BUFFERED INPUT AH = 0Ah DS:DX -> buffer (see #01344) Return: buffer filled with user input Notes: ^C/^Break are checked, and INT 23 is called if either detected reads from standard input, which may be redirected under DOS 2+ if the maximum buffer size (see #01344) is set to 00h, this call returns immediately without reading any input SeeAlso: AH=0Ch,INT 2F/AX=4810h
Format of DOS input buffer: Offset Size Description (Table 01344) 00h BYTE maximum characters buffer can hold 01h BYTE (call) number of chars from last input which may be recalled (ret) number of characters actually read, excluding CR 02h N BYTEs actual characters read, including the final carriage return ----------------------------------------------------------------------------
Dirk
.
- Follow-Ups:
- Re: date Conversion Program in Assembly
- From: Guga
- Re: date Conversion Program in Assembly
- References:
- date Conversion Program in Assembly
- From: Ninad
- date Conversion Program in Assembly
- Prev by Date: date Conversion Program in Assembly
- Next by Date: Re: f0dder's Fabulous Wait States.
- Previous by thread: date Conversion Program in Assembly
- Next by thread: Re: date Conversion Program in Assembly
- Index(es):
Relevant Pages
|