in x86 Assembly Language i have been getting at least two additional characters in my display... what is wring with my code? I am new to this so can anyone lend a hand? .model small .stack 100h .data first db 6 dup("$") .code start: mov ax,@data mov ds,ax mov byte ptr first,04h lea dx,first mov ah,0Ah int 21h mov ah,09h mov dx,offset first int 21h mov ah,4ch int 21h end start
I never learned much assembly, but I can tell you that if you get extra then in general that means one of two things: You read past the memory involved in storing something and displayed garbage next to it. You iterated through something too many times and displayed extra copies. And the second can lead to the first.
okie
Join our real-time social learning platform and learn together with your friends!