CP/M User
2010-10-05 08:00:43 UTC
Appologies for the new post, I'm trying to find out if there's an
ASCII function (as my title suggests I'm using the latest Turbo Pascal
for CP/M!). Anyway, what this function specifically does is return
the ASCII number for a Character - so a capital "A" returns 65, "B"
returns 66 and so on. I guess if nothing like that exists I guess it
wouldn't be too difficult writing one, I guess it's a question of
making two arrays - one for the letters and the other with the ASCII
values and write a Function which returns a value to each letter. If
someone has already written something like this though or knows where
I can find a routine, I'd very much appreciate that.
ASCII function (as my title suggests I'm using the latest Turbo Pascal
for CP/M!). Anyway, what this function specifically does is return
the ASCII number for a Character - so a capital "A" returns 65, "B"
returns 66 and so on. I guess if nothing like that exists I guess it
wouldn't be too difficult writing one, I guess it's a question of
making two arrays - one for the letters and the other with the ASCII
values and write a Function which returns a value to each letter. If
someone has already written something like this though or knows where
I can find a routine, I'd very much appreciate that.