Lines Matching refs:ireg
41 com32sys_t ireg, oreg; in bios_get_cursor() local
43 memset(&ireg, 0, sizeof(ireg)); in bios_get_cursor()
45 ireg.eax.b[1] = 0x03; in bios_get_cursor()
46 ireg.ebx.b[1] = BIOS_PAGE; in bios_get_cursor()
47 __intcall(0x10, &ireg, &oreg); in bios_get_cursor()
55 static com32sys_t ireg; in bios_erase() local
56 memset(&ireg, 0, sizeof(ireg)); in bios_erase()
58 ireg.eax.w[0] = 0x0600; /* Clear window */ in bios_erase()
59 ireg.ebx.b[1] = attribute; in bios_erase()
60 ireg.ecx.b[0] = x0; in bios_erase()
61 ireg.ecx.b[1] = y0; in bios_erase()
62 ireg.edx.b[0] = x1; in bios_erase()
63 ireg.edx.b[1] = y1; in bios_erase()
64 __intcall(0x10, &ireg, NULL); in bios_erase()
69 static com32sys_t ireg; in bios_showcursor() local
72 memset(&ireg, 0, sizeof(ireg)); in bios_showcursor()
74 ireg.eax.b[1] = 0x01; in bios_showcursor()
75 ireg.ecx.w[0] = cursor; in bios_showcursor()
76 __intcall(0x10, &ireg, NULL); in bios_showcursor()
83 static com32sys_t ireg; in bios_set_cursor() local
85 memset(&ireg, 0, sizeof(ireg)); in bios_set_cursor()
90 ireg.eax.b[1] = 0x02; in bios_set_cursor()
91 ireg.ebx.b[1] = page; in bios_set_cursor()
92 ireg.edx.b[1] = y; in bios_set_cursor()
93 ireg.edx.b[0] = x; in bios_set_cursor()
94 __intcall(0x10, &ireg, NULL); in bios_set_cursor()
100 static com32sys_t ireg; in bios_write_char() local
102 memset(&ireg, 0, sizeof(ireg)); in bios_write_char()
104 ireg.eax.b[1] = 0x09; in bios_write_char()
105 ireg.eax.b[0] = ch; in bios_write_char()
106 ireg.ebx.b[1] = BIOS_PAGE; in bios_write_char()
107 ireg.ebx.b[0] = attribute; in bios_write_char()
108 ireg.ecx.w[0] = 1; in bios_write_char()
109 __intcall(0x10, &ireg, NULL); in bios_write_char()
114 static com32sys_t ireg; in bios_scroll_up() local
116 memset(&ireg, 0, sizeof(ireg)); in bios_scroll_up()
118 ireg.eax.w[0] = 0x0601; in bios_scroll_up()
119 ireg.ebx.b[1] = attribute; in bios_scroll_up()
120 ireg.ecx.w[0] = 0; in bios_scroll_up()
121 ireg.edx.b[1] = rows; in bios_scroll_up()
122 ireg.edx.b[0] = cols; in bios_scroll_up()
123 __intcall(0x10, &ireg, NULL); /* Scroll */ in bios_scroll_up()
128 static com32sys_t ireg; in bios_beep() local
130 memset(&ireg, 0, sizeof(ireg)); in bios_beep()
132 ireg.eax.w[0] = 0x0e07; in bios_beep()
133 ireg.ebx.b[1] = BIOS_PAGE; in bios_beep()
134 __intcall(0x10, &ireg, NULL); in bios_beep()
388 static com32sys_t ireg; in set_window_pos() local
395 memset(&ireg, 0, sizeof ireg); in set_window_pos()
396 ireg.eax.w[0] = 0x4F05; in set_window_pos()
397 ireg.ebx.b[0] = wi->win_num; in set_window_pos()
398 ireg.edx.w[0] = win_pos >> wi->win_gshift; in set_window_pos()
400 __intcall(0x10, &ireg, NULL); in set_window_pos()
460 com32sys_t ireg, oreg; in check_escapes() local
462 memset(&ireg, 0, sizeof ireg); in check_escapes()
463 ireg.eax.b[1] = 0x02; /* Check keyboard flags */ in check_escapes()
464 __intcall(0x16, &ireg, &oreg); in check_escapes()
478 __intcall(0x12, &ireg, &oreg); in check_escapes()
523 static com32sys_t ireg; in bios_scan_memory() local
552 memset(&ireg, 0, sizeof ireg); in bios_scan_memory()
553 ireg.eax.l = 0xe820; in bios_scan_memory()
554 ireg.edx.l = 0x534d4150; in bios_scan_memory()
555 ireg.ebx.l = 0; in bios_scan_memory()
556 ireg.ecx.l = sizeof(*e820buf); in bios_scan_memory()
557 ireg.es = SEG(e820buf); in bios_scan_memory()
558 ireg.edi.w[0] = OFFS(e820buf); in bios_scan_memory()
561 __intcall(0x15, &ireg, &oreg); in bios_scan_memory()
597 ireg.ebx.l = oreg.ebx.l; in bios_scan_memory()
606 memset(&ireg, 0, sizeof ireg); in bios_scan_memory()
607 ireg.eax.w[0] = 0xe801; in bios_scan_memory()
608 __intcall(0x15, &ireg, &oreg); in bios_scan_memory()
626 memset(&ireg, 0, sizeof ireg); in bios_scan_memory()
627 ireg.eax.w[0] = 0x8800; in bios_scan_memory()
628 __intcall(0x15, &ireg, &oreg); in bios_scan_memory()