CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 23:37:30 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=f1d9db3d3d1ba56436c848152b0b80326dea9165717847c4b8f9e89fcfb13c07a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22F86IfSPlZU3iln-1_Vl8VZpdi-BWndS5%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d22f8afe82f473-BLR
lab6_2ass - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- const int ARR_SIZE = 3;
- int arr[ARR_SIZE];
- int res_c = 0;
- int res_asm = 1;
- cout << "This program finds mul of positive elements in array of size 3" << endl;
- for (int i = 0; i < ARR_SIZE; i++) {
- printf("Input element %d: ", i + 1);
- cin >> arr[i];
- }
- for (int i = 0; i < ARR_SIZE; i++) {
- if (arr[i] < 0)
- res_c ++;
- }
- __asm {
- lea esi, arr
- mov ecx, ARR_SIZE
- xor eax, eax
- mov eax, 0h
- next_ :
- mov ebx, [esi]
- cmp ebx, 0
- jge skip_
- add eax, 1
- skip_ :
- add esi, 4
- loop next_
- mov res_asm, eax
- }
- printf("Result in c++: %d\nResult in asm: %d\n", res_c, res_asm);
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ W
JavaScript | 1 sec ago | 0.25 KB
-
📌 ChangeNOW Exploit
JavaScript | 3 sec ago | 0.24 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ W
JavaScript | 10 sec ago | 0.25 KB
-
⭐⭐⭐GMAIL Logs (2FA disabled)⭐⭐
Java | 10 sec ago | 0.10 KB
-
📌 Instant BTC Profit Method ✅ Working
JavaScript | 15 sec ago | 0.24 KB
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ X
JavaScript | 18 sec ago | 0.25 KB
-
⭐⭐⭐Exploit 500$ in 15 Minutes⭐⭐
Java | 23 sec ago | 0.10 KB
-
📝 MAKE $2500 IN 15 MIN ✅ Working
JavaScript | 25 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