2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
12 #undef __restore_flags
16 #define __save_flags(x) __asm__ __volatile__("pushfl ; popl %0":"=g" (x): /* no input */)
17 #define __restore_flags(x) __asm__ __volatile__("pushl %0 ; popfl": /* no output */ :"g" (x):"memory", "cc")
18 #define __cli() __asm__ __volatile__("cli": : :"memory")
19 #define __sti() __asm__ __volatile__("sti": : :"memory")
29 static struct scr
*view
= (struct scr
*)0xb8000;
39 if (!dead
) for (i
=0; i
<80*25; i
++)
47 __restore_flags(flags
);
56 if (chr
== 3) /* die / CTRL-C / "signal" */
87 for (i
=0; i
<80*24; i
++)
88 view
[i
].sign
= view
[i
+80].sign
;
89 for (i
=80*24; i
<80*25; i
++)
93 __restore_flags(flags
);
96 void scr_RawPutChars(char *chr
, int lim
)
100 for (i
=0; i
<lim
; i
++)