Hi,
I'm trying to port some piece of C code to linux/unix.
This code contains statement in assembler.
1. How can I compile it under linux with gcc or gas ?
2. Will this be portable ?
example:
static void clear_screen(void)
{
_asm
{
mov ax,40h
mov es,ax
mov ax,0600h
mov bx,0700h
mov cx,0
mov dl, es:byte ptr[4ah]
dec dl
mov dh, es:byte ptr[84h]
or dh,dh
jnz k1
mov dh,24
k1:
int 10h
mov dx,0
mov ax,0200h
mov bx,0
int 10h
}
}
TIA
--
Meir