Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Zadanie 4: Napisz kod w asemblerze odpowiadający poniższemu fragmentowi kodu w C.
- // (If(wejscie == 0x32) wyjscie =0; else wyjscie = 1
- unsigned char a = 0x32;
- unsigned char b = 0x0;
- __asm {
- mov al, a;
- mov bl, 0x0;
- add al, 0xCE;
- jz skok
- add bl, 0x1;
- skok:
- mov b, bl;
- };
- printf("a = 0x%02X, b = %d", a, b);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement