عندي هاد الكود بطبع كلمة على الشاشة على السطر الخامس في وسطو تقريبا
- .model small,c
- .486
- .stack
- .data
- s1 db "ALI"
- .code
- print proc s:ptr word
- uses si,di,es,ds,cx
- locals
- mov cx,3
- mov si,offset s
- xor di,di
- xor bx,bx
- push 0b800h
- pop es
- mov di,(160*5)+80
- again: mov al,ds:[si]
- mov es:[di],al
- inc si
- inc di
- inc di
- loop again
- ret
- print endp
- .startup
- mov ah,0
- mov al,3
- int 10h
- call print,offset s1
- .exit
- end
بس حاولت اعدل عليه عشان يصير يغير موقع الطباعة يعني اذا اول مرة طبعها على وسط السطر الخامس بدي احطو في فور لوب عشان يطبعا اكثر من مرة كل مرة في موقع مختلف
وهاد الي جربتو انا
- .model small,c
- .486
- .stack
- .data
- s1 db "ALI"
- .code
- print proc s:ptr word
- uses si,di,es,ds,cx
- locals
- mov cx,3
- mov si,offset s
- xor di,di
- xor bx,bx
- push 0b800h
- pop es
- mov di,(160*5)+80
- again: mov al,ds:[si]
- mov es:[di],al
- inc si
- inc di
- inc di
- loop again
- mov si,offset s
- add di,100
- inc bx
- cmp bx,5
- jle again
- ret
- print endp
- .startup
- mov ah,0
- mov al,3
- int 10h
- call print,offset s1
- .exit
- end
بس ما زبط فيا ريت تساعدوني وبكون شاكر الكو