View Single Post
Old 06-20-2004, 10:00 PM   #8 (permalink)
npa
Code Monkey
 
Join Date: Jul 2003
Location: canada
Posts: 82
npa is on a distinguished road
Quote:
I want ds to be zero and you can't do this:
mov ds,0 or this sub ds,ds
so I need to set bx to zero then move it to ds to make ds zero. (sorry if I misunderstood what you were saying, I'm not quite sure if that was what you meant)
i see, i didn't realise that

Code:
sub reg,reg
is much faster than
mov reg,0
yes, i wasn't suggesting mov reg, 0 I was suggesting xor reg, reg which is faster then sub reg, reg

im a bit confused about your input in quotes, to my mind
this would be the ascii value of 1, not "One" is that what
you want ?

i.e. your table doesn't have an element at the ascii value
of '1'

but you're right, your code doesn't seem to work if
it gets back '1110' for an input of '12'.

hmm.

---
however, i just looked back quickly, and why are you
setting ds to 0 ?
__________________
direct entry file specification.
npa is offline   Reply With Quote