tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] help with asm function


From: Carlos Montiers
Subject: [Tinycc-devel] help with asm function
Date: Tue, 11 Feb 2014 14:03:31 -0300

Hello. I want learn assembly, and I playing with 16 bit.
 
I have this little .com file that print the letter Z:
 
 
org 100h
mov al, 'Z'
int 29h
ret
 
But I want use that instruction from a c program with tiny c:
And I have this, but not works:
 
#include <stdlib.h>
int main()
{
 __asm__ (
  "movl $90,%al\n\t"
  "int $0x29"
 );
 
 return 0;
}
 
what is wrong ?
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]