Categories
Assembly Language Programming

Print ABC in Diagonal – Assembly Language Code

[su_box title=”ABC In Diagonal” style=”bubbles” box_color=”#1d318d”]

; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt

org 100h

; add your code here

.data

.code

main proc

mov ax,0b800h
mov ds,ax

mov cx,25
mov [si],1441h
mov bx,[si]

mov si,158
abc:

mov [si],bx

add si,154
inc bl

loop abc

ret
main endp

[/su_box]

Output Screen:

Assembly Code toprint abc in diagoanl

Find More Assembly Codes Here!

Leave a Reply