Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Assembly language Loop (Debug.com)  (Read 11998 times)

0 Members and 1 Guest are viewing this topic.

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: Assembly language Loop (Debug.com)
« Reply #15 on: September 16, 2014, 10:30:22 PM »
You could use cx, requjiires more push and pop.
Register dh has the char the user input. The current version sets the error code to this value. This count be used as a counter instead.
You must assume  int 21 alters any registers. So you must save the register with a push and later pop. The program already saves the dx register pair.
See if you can modify the program to use dl as a counter. Or use cx if you wish.