Rev 8436 | Rev 8452 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8436 | Rev 8446 | ||
---|---|---|---|
Line 483... | Line 483... | ||
483 | image.d=d; |
483 | image.d=d; |
484 | asm("int $0x40"::"a"(73),"b"(0),"c"(&image)); |
484 | asm("int $0x40"::"a"(73),"b"(0),"c"(&image)); |
Line 485... | Line 485... | ||
485 | 485 | ||
Line -... | Line 486... | ||
- | 486 | } |
|
- | 487 | ||
- | 488 | void kos_move_window(int posx, int posy, int sizex, int sizey) |
|
- | 489 | { |
|
- | 490 | __asm__ __volatile__( |
|
- | 491 | "int $0x40" |
|
- | 492 | ::"a"(67), |
|
- | 493 | "b"(posx), |
|
- | 494 | "c"(posy), |
|
- | 495 | "d"(sizex), |
|
- | 496 | "S"(sizey)); |
|
- | 497 | }; |
|
- | 498 | ||
- | 499 | void kos_text(int x, int y, int color, const char* text, int len) |
|
- | 500 | { |
|
- | 501 | asm volatile ("int $0x40"::"a"(4),"b"((x<<16) | y),"c"(color),"d"((unsigned long)text),"S"(len)); |
|
- | 502 | }; |
|
- | 503 | ||
- | 504 | void kos_screen_max(int* x, int* y) |
|
- | 505 | { |
|
- | 506 | unsigned long v; |
|
- | 507 | __asm__ __volatile__( |
|
- | 508 | "int $0x40" |
|
- | 509 | :"=a"(v) |
|
- | 510 | :"a"(14)); |
|
- | 511 | ||
- | 512 | if(x) *x = v >> 16; |
|
- | 513 | if(y) *y = v & 0xFFFF; |
|
- | 514 | }; |
|
- | 515 | ||
- | 516 | int kol_get_key() |
|
- | 517 | { |
|
- | 518 | unsigned short __ret; |
|
- | 519 | asm volatile("int $0x40":"=a"(__ret):"0"(2)); |