Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Zadanie 6: Napisz kod w asemblerze odpowiadający poniższemu fragmentowi kodu w C.
- // (wyjscie = wejscie * 20)
- unsigned char a = 0x02;
- unsigned char wynik;
- _asm {
- Mov al, a
- Mov bl, a
- Shl al, 5
- Shl bl, 2
- Sub al, bl
- Shl bl, 1
- Sub al, bl
- Mov wynik, al
- }
- printf("%d * 20 = %d", a, wynik);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement