8086 assembly language program to display inverted half pyramid Edit

Murugan Andezuthu Dharmaratnam | 11 February 2021 | 182

Please find below 8086 assembly language code to display an inverted half pyramid pattern using * character. The expected output is

**********
*********
********
*******
******
*****
****
***
**
*

8086 Sample Code to display a half pyramid

org 100h
.model small

.data
space1 dw 6

.code
main proc
    mov cx,10
    outer1:
        push cx
        s:
            mov dl,'*'
            mov ah,02
            int 21h
        loop s
        mov dl,0Ah
        mov ah,02
        int 21h
        mov dl,0Dh
        mov ah,02
        int 21h
        pop cx
    loop outer1:
    ret
end main
endp

Output