Lines Matching refs:BX
472 * BX = Desired Mode to set
478 void vbe_biosfn_set_mode(uint16_t STACK_BASED *AX, uint16_t BX, uint16_t ES, uint16_t DI)
490 using_lfb = ((BX & VBE_MODE_LINEAR_FRAME_BUFFER) == VBE_MODE_LINEAR_FRAME_BUFFER);
492 no_clear = ((BX & VBE_MODE_PRESERVE_DISPLAY_MEMORY) == VBE_MODE_PRESERVE_DISPLAY_MEMORY) ? VBE_DISPI_NOCLEARMEM : 0;
494 BX = (BX & 0x1ff);
497 if (BX < VBE_MODE_VESA_DEFINED)
504 mode = (BX & 0xff);
511 cur_info_ofs = mode_info_find_mode(BX, using_lfb);
523 printf("VBE found mode %x, setting:\n", BX);
527 cur_info = mode_info_find_mode(BX, using_lfb);
532 printf("VBE found mode %x, setting:\n", BX);
565 write_word(BIOSMEM_SEG,BIOSMEM_VBE_MODE,BX);
573 printf("VBE *NOT* found mode %x\n" , BX);
587 void vbe_biosfn_save_video_state(uint16_t ES, uint16_t BX)
593 write_word(ES, BX, enable);
594 BX += 2;
600 write_word(ES, BX, inw(VBE_DISPI_IOPORT_DATA));
601 BX += 2;
607 void vbe_biosfn_restore_video_state(uint16_t ES, uint16_t BX)
611 enable = read_word(ES, BX);
612 BX += 2;
619 outw(VBE_DISPI_IOPORT_DATA, read_word(ES, BX));
620 BX += 2;
622 outw(VBE_DISPI_IOPORT_DATA, read_word(ES, BX));
623 BX += 2;
625 outw(VBE_DISPI_IOPORT_DATA, read_word(ES, BX));
626 BX += 2;
632 outw(VBE_DISPI_IOPORT_DATA, read_word(ES, BX));
633 BX += 2;
646 * ES:BX = Pointer to buffer (if DL <> 00h)
649 * BX = Number of 64-byte blocks to hold the state buffer (if DL=00h)
653 uint16_t ES, uint16_t STACK_BASED *BX)
666 *BX = (val + 63) / 64;
669 val = *BX;
678 val = *BX;