Hiya all!
Here's a short file I developed completely on my own except for two routines: Byte2Ascii and Word2Ascii; these were (shamelessly ) taken from an example program by Sprinter Team's Alex Goryachev.
It's a pack of seven useful (I think) routines I use in my simple EXE proggies, all of them in UTILS.ASM. There is also a file called UTILS.TXT with their description, input and output values. Along is TEST.EXE and TEST.ASM. The command line should be:
TEST /addend=<number1> /augend=<number2>
Replace <number1> and <number2> with numbers (16 bit max.). The program will tell you the sum. But, as it uses my Ascii2Word routine, you can prefix the numbers with a base-char:
# for hexadecimal numbers,
@ for octal numbers,
% for binary numbers
The default (no base-char) means decimal.
As example, try:
TEST /Addend=#10 /AUGEND=%10
This sums decimal 16 (10 hexa) and decimal 2 (binary 10), giving decimal 18.
Hope someone (besides me) find these routines also useful, but please note: These routines are NOT optimized in any way, and I tested them most finding no bugs . If you find one or two, please let me know, apart from any improvements to be done.
Made and tested on the real Sprinter, not on Sprint (yet). Any volunteers?
Regards!
Marcelo.
----------------------------------
Speccy rules, its staff is Sprinter.
|