How kernel know the difference between “int 0x80” and “int x”
问题 int 0x80 is a system call, it's also 128 in hexa. why kernel use int 0x80 as interrupt and when i declare int x he knows it's just an integer named x and vice versa ? 回答1: You appear to be confused about the difference between C and assembly language. Both are programming languages, (nowadays) both accept the 0xNNNN notation for writing numbers in hexadecimal, and there's usually some way to embed tiny snippets of assembly language in a C program, but they are different languages . The