Hi!
I compile this code:
This should print one 'a' on the screen. But instead of that it segfault. Why?Code:#include <stdio.h> typedef unsigned int word; typedef unsigned char byte; static byte ch; int main() { ch = 'a'; // izpise crko 'a' na zaslon. asm(".intel_syntax noprefix mov ah, 0xA mov al, [ch] mov bh, 0x0 mov bl, 0x0 mov cx, 0x01 int 10"); return(0); }