How do I handle errors in NASM assembly? For example I have this code to read user Input:
mov eax,3
mov ebx,0
mov ecx,Buffer
mov edx,BUFFERLENGTH
int 80H
If for some reason this system call cannot be executed, I'd like to have the program jump to a label that prints "An error has occured" or something like that. How do I do that?
Also, is it possible to get the name of the exception or error code?
Thanks