CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 10:36:05 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=53fae5ee1c7937d60fd632e518195062e2554499bf69e6deac26c0977b1e8b00a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22XJ6Fx9Hw3U9ralJfNEktk3mhfzlbsKwx%22%3B%7D; HttpOnly; Path=/
cf-ray: 98cdb6e508863e92-BLR
org 100hjmp startmess1 db 'Even elements in default order: $ - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- org 100h
- jmp start
- mess1 db 'Even elements in default order: $'
- mess2 db 'Odd elements in reverse order: $'
- strClose db 'Press any key to exit$'
- nextLine db '', 13, 10, '$'
- spaceLine db ' ', '$'
- array db 9, 2, 7, 63, 55, 8, 6, 3, 10, 4, 21, 30, 45, 99, 50, 111
- size = $ - array ; ðàçìåð ìàññèâà
- start:
- mov ah, 9
- mov dx, mess1
- int 21h
- mov si, array ; SI = óêàçàòåëü íà ìàññèâ
- mov cx, size ; CX = äëèíà ìàññèâà/öèêëà
- xor ax, ax ; î÷èùàåì ÀÕ (ñþäà áóäåì ÷èòàòü)
- xor bx, bx ; î÷èùàåì ÂÕ (çäåñü áóäåò ñóììà)
- mov bp, 0
- cycle1:
- lodsb ; áåð¸ì â AL î÷åðåäíîé áàéò èç SI
- test ax, 1
- jz isEven
- push ax
- inc bp
- loop cycle1
- prep:
- mov ah, $09
- mov dx, nextLine
- int 21h
- mov ah, $09
- mov dx, mess2
- int 21h
- mov cx, bp
- cycle2:
- pop ax
- mov bx, 10 ; ñèñòåìà ñ÷èñëåíèÿ 10-òè÷íàÿ
- call hex2asc ; çîâ¸ì ôóíêöèþ âûâîäà ÷èñåë íà ýêðàí!
- mov ah, $09
- mov dx, spaceLine
- int 21h
- xor ax, ax
- loop cycle2
- jmp exit
- isEven:
- mov bx, 10 ; ñèñòåìà ñ÷èñëåíèÿ 10-òè÷íàÿ
- call hex2asc ; çîâ¸ì ôóíêöèþ âûâîäà ÷èñåë íà ýêðàí!
- mov ah, $09
- mov dx, spaceLine
- int 21h
- xor ax, ax
- loop cycle1 ; ìîòàåì öèêë ÑÕ-ðàç
- jmp prep
- exit:
- mov ah, $09
- mov dx, nextLine
- int 21h
- mov ah, $09
- mov dx, strClose
- int 21h
- mov ah, $08
- int 21h
- ret ; íà âûõîä!
- hex2asc: ; Ôóíêöèÿ ïåðåâîäèò ÷èñëà â ñèìâîëû
- pusha ; Âõîä: ÀÕ = ÷èñëî, BX = ñèñòåìà ñ÷èñëåíèÿ
- xor cx, cx ; Âûõîä: íà ýêðàíå
- isDiv:
- xor dx, dx
- div bx
- push dx
- inc cx
- or ax, ax
- jnz isDiv
- isOut:
- pop ax
- cmp al, 9
- jle noHex
- add al, 7
- noHex:
- add al, 30h
- int 29h
- loop isOut
- popa
- ret
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐✅ Jack's Profit Method ✅ NEVER SEEN BEF...
JavaScript | 6 sec ago | 0.24 KB
-
⭐✅ Online Marketplace Exploit ✅ NEVER SEEN BE...
JavaScript | 16 sec ago | 0.24 KB
-
⭐✅ Trading Profit Method ✅ NEVER SEEN BEFORE...
JavaScript | 24 sec ago | 0.24 KB
-
⭐ Instant BTC Profit Method ✅ NEVER SEEN BEFO...
JavaScript | 33 sec ago | 0.24 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ 5
JavaScript | 38 sec ago | 0.24 KB
-
⭐✅ MAKE $2000 INSTANTLY ✅ NEVER SEEN BEFORE ⭐...
JavaScript | 43 sec ago | 0.24 KB
-
⭐✅ MAKE $2500 IN 15 MIN⭐⭐⭐ 4
JavaScript | 45 sec ago | 0.24 KB
-
⭐ Free Crypto Method ✅ NEVER SEEN BEFORE ⭐⭐⭐
JavaScript | 52 sec ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand