Bartc
7/9/2008 6:28:00 PM
"Jrdman" <ahmed.bou23@gmail.com> wrote in message
news:52203b89-968d-4a8b-be23-20f1288f5c6a@m45g2000hsb.googlegroups.com...
>i wrote this code
> int main(void){
> asm("movb $0x00,%ah \n"
> "movb $0x0d,%al \n"
> "int $0x10");
> return 0;
> }
> to disappair the cursor but when it excutes the program craches with
> the message "the memory can not be writen" what's wrong with this
> code?
This is not a C issue.
Looks like some code that runs under DOS, so even less on-topic. (However
those parameters to INT don't look right; you may want to double check the
0x10, 0x0D, 0x00, and which registers you put those in.)
Might be more familiar to the guys in comp.lang.asm.x86
--
Bartc