Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

LemuelPogi

  • 2 years ago

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

  • This Question is Closed
  1. e.mccormick
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

  2. LemuelPogi
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    okie

  3. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy