carson myers -5 Unverified User

I wrote a quick program into the memory using debug in an ms-dos prompt.
It should output the alphabet in uppercase, and then in lowercase, like so

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz

instead, it writes it in uppercase and then in lowercase again and again and again until I ctrl+c the program to make it stop.
I'm trying to make my coding a bit more dynamic rather than just writing everything out sequentially, I guess I'm taking the wrong measures
here's the code (unassembled from memory.....basically 100% the same as what I wrote to begin with)

-u 100 11a
139C:0100 B402          MOV     AH,02
139C:0102 B241          MOV     DL,41
139C:0104 B11A          MOV     CL,1A
139C:0106 B001          MOV     AL,01
139C:0108 CD21          INT     21
139C:010A FEC2          INC     DL
139C:010C E2FA          LOOP    0108
139C:010E 3C00          CMP     AL,00
139C:0110 7408          JZ      011A
139C:0112 B000          MOV     AL,00
139C:0114 B261          MOV     DL,61
139C:0116 B11A          MOV     CL,1A
139C:0118 EBEE          JMP     0108
139C:011A CD20          INT     20

I dun git it

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.