How to Create a Triangle in Assembly Language: Step-by-Step Guide! 🖥️ || Assembly Language Program

Опубликовано: 04 Июль 2026
на канале: Coding & Computer Basics
525
7

Welcome to our channel! In this video, we'll show you how to create a triangle using assembly language. 🏆 Whether you're a beginner or an experienced programmer, you'll find this tutorial engaging and informative. Dive into the world of low-level programming and master the art of creating shapes in assembly language.

Don't forget to like, comment, and subscribe for more programming tutorials!

🔧 What You'll Learn:
Basic structure of an assembly program
How to manipulate data and control structures
Drawing a triangle step-by-step

💡 Helpful Tips:
Understand the logic behind drawing shapes
Experiment with different sizes and angles

📢 Stay Connected:
Subscribe for more videos!
Leave a comment with your thoughts or questions!

here is the code bellow

;title triangle
.model small
.stack 100h
.data
.code
main proc
mov ax,@data
mov ds,ax
mov dh,10
mov dl,39
mov ah,2
int 10h
push dx
mov dl,'.'
mov ah,2
int 21h
mov cx,5
abc:pop dx
inc dh
dec dl
mov ah,2
int 10h
push dx
mov dl,'/'
mov ah,2
int 21h
loop abc
mov cx,5
mov dh,11
mov dl,40
mov ah,2
int 10h
tree:mov ah,2
int 10h
push dx
mov dl,'\'
mov ah,2
int 21h
pop dx
inc dh
inc dl
loop tree
mov cx,9
mov dh,15
mov dl,35
mov al,2
int 10h
mov dl,'_'
last:int 21h
loop last
mov ah,4ch
int 21h
main endp
end main