Re: date Conversion Program in Assembly



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

.



Relevant Pages

  • Re: OT Humor - "You might be an mainframer if... :-) V3.8"
    ... >> You know that the head of string is not an HR position ... >> You know that SPOOL is an acronym (Simultaneous Peripheral Operations ... For DOS, no, not that DOS, the other ... >> You can create a tape backup of something and know you can read it back ...
    (comp.lang.cobol)
  • Re: Cannot explain why the date is changed to 1792.
    ... DOS specific stuff which makes it very ... There's no such struct in C thought if you supply the definition, ... For instance this won't read a string dd-mm-yyyy because for example ... admonition and helpful advice to the OP. ...
    (comp.lang.c)
  • Re: Is there a way to create a program in excel to compare files?
    ... Speaking of DOS 1.x. ... text output file named FC.TXT will be created with the results of the ... Your command line may have a limit on the number of characters ... Dim sFile1 As String ...
    (microsoft.public.excel.programming)
  • Re: Cannot explain why the date is changed to 1792.
    ... DOS specific stuff which makes it very ... very hard to diagnose. ... There's no such struct in C thought if you supply the definition, ... For instance this won't read a string dd-mm-yyyy because for example ...
    (comp.lang.c)
  • RE: Finding short file names?
    ... But I need to use its DOS path\name to tell a DOS ... the file properties box used to give me the DOS path. ... > I guess I could give the file an 8-char name and put it in the root directory. ... >> /V Displays all lines NOT containing the specified string. ...
    (microsoft.public.windowsxp.general)