NOT Problem
#3
Kernelpanic
I don't know what you expect, here's the output from the C equivalent
Code: (Select All)
1
-31
2
-41
3
-16
4
-16
5
-61


Code: (Select All)
#include <stdio.h>
#include <stdint.h>


int main(void) {
    int16_t a=10, b=20, c=40, d=15;
    printf("%s\n","1");
    printf("%d\n",(~a)&(~b));
    printf("%s\n","2");
    printf("%d\n", ~c);
    printf("%s\n","3");
    printf("%d\n",(~a)&(~d));
    printf("%s\n","4");
    printf("%d\n",~d);
    printf("%s\n","5");
    printf("%d\n",(~b)&(~c));
    return 0;
}
Reply


Messages In This Thread
NOT Problem - by Kernelpanic - 11-16-2022, 09:52 PM
RE: NOT Problem - by mnrvovrfc - 11-16-2022, 10:25 PM
RE: NOT Problem - by Jack - 11-16-2022, 10:56 PM
RE: NOT Problem - by RhoSigma - 11-16-2022, 11:06 PM
RE: NOT Problem - by SMcNeill - 11-16-2022, 11:39 PM
RE: NOT Problem - by CharlieJV - 11-16-2022, 11:58 PM
RE: NOT Problem - by bplus - 11-16-2022, 11:36 PM
RE: NOT Problem - by Jack - 11-16-2022, 11:41 PM
RE: NOT Problem - by bplus - 11-16-2022, 11:43 PM
RE: NOT Problem - by Kernelpanic - 11-17-2022, 09:41 PM



Users browsing this thread: 3 Guest(s)