I have a problem with my study
- From: spamtrap@xxxxxxxxxx
- Date: 19 Oct 2006 08:07:58 -0700
I read a program,but some of my program confuse me
what are these "push ds
sub ax,ax
push ax " and "move ah,2" do?
prognam segment
main proc far
assume cs rognam
start:
push ds
sub ax,ax
push ax
mov ch,4
rotate: mov cl,4
rol bx,cl
mov al,bl
and al,0fh
add al,30h
cmp al,3ah
jl printit
add al,7h
printit:
mov dl,al
mov ah,2
int 21h
dec ch
jnz rotate
ret
main endp
prognam ends
.
- Follow-Ups:
- Re: I have a problem with my study
- From: Frank Kotler
- Re: I have a problem with my study
- From: Dan
- Re: I have a problem with my study
- From: Dirk Wolfgang Glomp
- Re: I have a problem with my study
- Prev by Date: how can I see the result of the program?
- Next by Date: Re: I have a problem with my study
- Previous by thread: how can I see the result of the program?
- Next by thread: Re: I have a problem with my study
- Index(es):
Relevant Pages
|