- 💡 I’m an Electronics and Communication Engineering Student
- 🔐 I’m currently so much into Ai & Machine Learning
- 💻 I like IoT,Embeded Systems,Machine Learning and PCB Design
- 🏎️ I love to make projects which includes Hardware and Software
- 👨💻 Some of my electronics projects are available at [My Portfolio]
- 🎹 I do VFX work as my Hobby
-
Languages
-
Front-End Development
-
Cloud Hosting
-
Softwares Development Tools
-
Hardware Development Tools
-
Extras:
Note: Top languages is only a metric of the languages my public code consist of
Note: My Best Projects are still private repos , Contact me to know more about them.
section .data
array db 'D', 'C', 'B', 'A' ; Using ASCII characters as a stand-in for emojis
n equ 4 ; Number of elements in the array
section .bss
i resb 1 ; Loop counter variable
section .text
global _start
_start:
mov ecx, n ; Set up outer loop counter
outer_loop:
mov esi, 0 ; Reset index for inner loop
inner_loop:
; Load two adjacent characters
mov al, [array + esi] ; Load current element into AL
mov bl, [array + esi + 1] ; Load next element into BL
; Compare and swap if necessary
cmp al, bl
jle no_swap ; If already in order, skip swapping
; Swap the elements
mov [array + esi], bl ; Move BL to current position
mov [array + esi + 1], al ; Move AL to next position
no_swap:
inc esi ; Move to the next pair
cmp esi, n-1 ; Check if we reached the end of the array
jl inner_loop ; If not, continue inner loop
; Decrement outer loop counter
dec ecx
jnz outer_loop ; Repeat until sorted
; Exit program (Linux syscall)
mov eax, 60 ; Syscall number for exit
xor edi, edi ; Exit code 0
syscall