AminetAminet
Search:
80232 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/asm/AnyStrToLong.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Fix, Two routines ASCII<->Long. Dec/hex/bin.
Author:tadek at student.uci.agh.edu.pl (Tadek Knapik)
Uploader:tadek student uci agh edu pl (Tadek Knapik)
Type:dev/asm
Replaces:dev/asm/AnyStrToLong
Architecture:m68k-amigaos
Date:1996-11-05
Download:http://aminet.net/dev/asm/AnyStrToLong.lha - View contents
Readme:http://aminet.net/dev/asm/AnyStrToLong.readme
Downloads:714
	Here you have two routines for converting string<->long.
The first one is similar to dos.library/StrToLong(), but it can handle
hexadecimal and binary strings as well (prefixes '$', '0x' and '%'). The
second one converts given longword to a string - you can select between
decimal, signed decimal (minus when bit 31/15/7 is set), hexadecimal and
binary.
	AnyStrToLong remains the same as for the first relase.
	AnyLongToStr - fixed bad handling of 10, 100, 1000 etc. (was
'bhi' instead if 'bpl', sorry!!!), optimized dividing by ten routine for
68000 (thanks to Simon N Goodwin for this!), added handling of signed
words and bytes.

	Tadek Knapik (tadek at student.uci.agh.edu.pl)


=========================== Archive contents =========================


Listing of archive 'AnyStrToLong.lha':
Original  Packed Ratio    Date     Time    Name
-------- ------- ----- --------- --------  -------------
    5143    1983 61.4% 03-Nov-96 23:11:08  AnyStrToLong/AnyLongToStr.asm
    4805    1735 63.8% 16-Oct-96 18:16:06  AnyStrToLong/AnyStrToLong.asm
    4359    2048 53.0% 03-Nov-96 23:07:58  AnyStrToLong/AnyStrToLong.doc
     894     497 44.4% 03-Nov-96 23:12:20  AnyStrToLong/AnyStrToLong.readme
-------- ------- ----- --------- --------
   15201    6263 58.7% 03-Nov-96 23:16:48   4 files

Operation successful.


Contents of dev/asm/AnyStrToLong.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 1983    5143  38.6% -lh5- 0f05 Nov  3  1996 AnyStrToLong/AnyLongToStr.asm
[generic]                 1735    4805  36.1% -lh5- 76b1 Oct 16  1996 AnyStrToLong/AnyStrToLong.asm
[generic]                 2048    4359  47.0% -lh5- 2d7f Nov  3  1996 AnyStrToLong/AnyStrToLong.doc
[generic]                  497     894  55.6% -lh5- e472 Nov  3  1996 AnyStrToLong/AnyStrToLong.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         4 files    6263   15201  41.2%            Nov  5  1996

Aminet © 1992-2012 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>