View Single Post
Old 06-20-2004, 09:26 PM   #7 (permalink)
Amaranthine
Registered User
 
Amaranthine's Avatar
 
Join Date: May 2004
Posts: 47
Amaranthine is on a distinguished road
sub reg,reg
is much faster than
mov reg,0
that is why I use that to set something to zero, also, 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)

Here is the output:
twelve dw "12" ; another var

mov ax,12 ; decimal value
ax 12: 0000000000001100

call Ascii ; procedure is above (grabs from digitTable)
Ascii ax: 0000000000001110

mov ah,'1' ; ax="12"
mov al,'2'
12 ax: 0011000100110010

mov ax,twelve ; the value of twelve, twelve="12" (a word made above)
twelve ax: 0011000100110010
Amaranthine is offline   Reply With Quote