I am having difficulties executing a short __asm__() exercise:
Write assembly code to store char 'A' into bufone[0].
I would think it should look like this:
However, I keep getting Segmentation Fault errors. What am I missing?Code:#include <stdio.h> char* bufone; int main(int argc, char* argv[]) { __asm__("movl $0x41, bufone\n"); printf("\n%s\n", bufone[0]); return 0; }