polmon: bp in clobber list works not
This commit is contained in:
@@ -54,12 +54,14 @@ uint8_t getc() {
|
|||||||
|
|
||||||
void putc(uint8_t c) {
|
void putc(uint8_t c) {
|
||||||
asm volatile (
|
asm volatile (
|
||||||
|
"push %%bp \n\t"
|
||||||
"movb %0, %%al \n\t"
|
"movb %0, %%al \n\t"
|
||||||
"movb $0x0e, %%ah \n\t"
|
"movb $0x0e, %%ah \n\t"
|
||||||
"movb $0, %%bh \n\t"
|
"movb $0, %%bh \n\t"
|
||||||
"int $0x10 \n\t"
|
"int $0x10 \n\t"
|
||||||
|
"pop %%bp \n\t"
|
||||||
:: "r" (c)
|
:: "r" (c)
|
||||||
: "ax", "bh", "cc", "bp"
|
: "ax", "bh", "cc"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user