logo

Crowdly

Programare în Limbaj de Asamblare, Sem. 2, 2024/2025

Looking for Programare în Limbaj de Asamblare, Sem. 2, 2024/2025 test answers and solutions? Browse our comprehensive collection of verified answers for Programare în Limbaj de Asamblare, Sem. 2, 2024/2025 at moodle.cs.utcluj.ro.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Dacă utilizăm etichete într-un macro fără să le declarăm locale și apelăm macro-ul într-un singur loc:

0%
0%
0%
View this question

Care este rolul etichetelor locale într-un macro?

View this question

Rescrieți printr-o singură instrucțiune codul de mai jos:

push dword 401234h

ret

View this question

Prin ce diferă un macro de o procedură?

View this question

Ce afișează codul de mai jos?

.data

    format DB "%d %x %s %d", 0

    text DB "text", 0

.code

start:

    mov ESI, 20

    mov EDI, 10

    push EDI

    push offset text

    push EDI

    push ESI

    push offset format

    call printf

    add ESP, 20

    ...

View this question

Codul în Assembly de mai jos corespunde următoarei linii scrise în C:

FILE *f = fopen("fisier.txt", "r")

Ce registru va corespunde variabilei f?

.data

    mode_read DB "r", 0

    file_name DB "fisier.txt", 0

.code

start:

    mov ESI, offset file_name

    push offset mode_read

    push ESI

    call fopen

    add ESP, 8

    ...

View this question

Ce convenție de apel se folosește pentru a apela funcția f1(x,y) în codul de mai jos?

mov EDX, y

mov ECX, x

call f1

View this question

Se efectueaza saltul din secventa de cod de mai jos?

mov ax, 3

shr ax, 1

jc et

inc ecx

et:

add ebx, ecx

View this question

Ce mod de adresare se folosește mai jos?

lea ECX,  [EDI*4]

 

View this question

Care din următoarele instrucțiuni este greșită?

View this question

Want instant access to all verified answers on moodle.cs.utcluj.ro?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!