Lines Matching refs:ES
283 push es
291 pop es
391 push es
402 pop es
557 mov es,ax
583 static void int10_debugmsg(DI, SI, BP, SP, BX, DX, CX, AX, DS, ES, FLAGS)
584 Bit16u DI, SI, BP, SP, BX, DX, CX, AX, ES, DS, FLAGS;
596 static void int10_func(DI, SI, BP, SP, BX, DX, CX, AX, DS, ES, FLAGS)
597 Bit16u DI, SI, BP, SP, BX, DX, CX, AX, ES, DS, FLAGS;
679 biosfn_load_text_user_pat(GET_AL(),ES,BP,CX,DX,GET_BL(),GET_BH());
694 biosfn_load_gfx_8_8_chars(ES,BP);
697 biosfn_load_gfx_user_chars(ES,BP,CX,GET_BL(),GET_DL());
709 biosfn_get_font_info(GET_BH(),&ES,&BP,&CX,&DX);
725 biosfn_switch_video_interface(GET_AL(),ES,DX);
739 biosfn_write_string(GET_AL(),GET_BH(),GET_BL(),CX,GET_DH(),GET_DL(),ES,BP);
742 biosfn_read_state_info(BX,ES,DI);
752 ES,BX);
755 biosfn_restore_video_state(CX,ES,BX);
771 vbe_biosfn_return_controller_information(&AX,ES,DI);
774 vbe_biosfn_return_mode_information(&AX,CX,ES,DI);
777 vbe_biosfn_set_mode(&AX,BX,ES,DI);
780 vbe_biosfn_save_restore_state(&AX, CX, DX, ES, &BX);
2196 seg es
2205 seg es
2301 seg es
2314 seg es
2365 seg es
2369 seg es
2373 seg es
2470 seg es
2474 seg es
2478 seg es
2677 static void biosfn_load_text_user_pat (AL,ES,BP,CX,DX,BL,BH) Bit8u AL;Bit16u ES;Bit16u BP;Bit16u CX;Bit16u DX;Bit8u BL;Bit8u BH;
2687 memcpyb(0xA000, dest, ES, src, BH);
2768 static void biosfn_load_gfx_8_8_chars (ES,BP) Bit16u ES;Bit16u BP;
2774 static void biosfn_load_gfx_user_chars (ES,BP,CX,BL,DL) Bit16u ES;Bit16u BP;Bit16u CX;Bit8u BL;Bit8u DL;
2799 static void biosfn_get_font_info (BH,ES,BP,CX,DX)
2800 Bit8u BH;Bit16u *ES;Bit16u *BP;Bit16u *CX;Bit16u *DX;
2805 write_word(ss,ES,read_word(0x00,0x1f*4));
2809 write_word(ss,ES,read_word(0x00,0x43*4));
2813 write_word(ss,ES,0xC000);
2817 write_word(ss,ES,0xC000);
2821 write_word(ss,ES,0xC000);
2825 write_word(ss,ES,0xC000);
2829 write_word(ss,ES,0xC000);
2833 write_word(ss,ES,0xC000);
3042 static void biosfn_switch_video_interface (AL,ES,DX) Bit8u AL;Bit16u ES;Bit16u DX;
3144 static void biosfn_read_state_info (BX,ES,DI)
3145 Bit16u BX;Bit16u ES;Bit16u DI;
3148 write_word(ES,DI+0x00,&static_functionality);
3149 write_word(ES,DI+0x02,0xC000);
3152 memcpyb(ES,DI+0x04,BIOSMEM_SEG,0x49,30);
3153 memcpyb(ES,DI+0x22,BIOSMEM_SEG,0x84,3);
3155 write_byte(ES,DI+0x25,read_byte(BIOSMEM_SEG,BIOSMEM_DCC_INDEX));
3156 write_byte(ES,DI+0x26,0);
3157 write_byte(ES,DI+0x27,16);
3158 write_byte(ES,DI+0x28,0);
3159 write_byte(ES,DI+0x29,8);
3160 write_byte(ES,DI+0x2a,2);
3161 write_byte(ES,DI+0x2b,0);
3162 write_byte(ES,DI+0x2c,0);
3163 write_byte(ES,DI+0x31,3);
3164 write_byte(ES,DI+0x32,0);
3166 memsetb(ES,DI+0x33,0,13);
3195 static Bit16u biosfn_save_video_state (CX,ES,BX)
3196 Bit16u CX;Bit16u ES;Bit16u BX;
3202 write_byte(ES, BX, inb(VGAREG_SEQU_ADDRESS)); BX++;
3203 write_byte(ES, BX, inb(crtc_addr)); BX++;
3204 write_byte(ES, BX, inb(VGAREG_GRDC_ADDRESS)); BX++;
3207 write_byte(ES, BX, ar_index); BX++;
3208 write_byte(ES, BX, inb(VGAREG_READ_FEATURE_CTL)); BX++;
3212 write_byte(ES, BX, inb(VGAREG_SEQU_DATA)); BX++;
3215 write_byte(ES, BX, inb(VGAREG_SEQU_DATA)); BX++;
3219 write_byte(ES, BX, inb(crtc_addr+1)); BX++;
3225 write_byte(ES, BX, inb(VGAREG_ACTL_READ_DATA)); BX++;
3231 write_byte(ES, BX, inb(VGAREG_GRDC_DATA)); BX++;
3234 write_word(ES, BX, crtc_addr); BX+= 2;
3237 write_byte(ES, BX, 0); BX++;
3238 write_byte(ES, BX, 0); BX++;
3239 write_byte(ES, BX, 0); BX++;
3240 write_byte(ES, BX, 0); BX++;
3243 write_byte(ES, BX, read_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_MODE)); BX++;
3244 write_word(ES, BX, read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS)); BX += 2;
3245 write_word(ES, BX, read_word(BIOSMEM_SEG,BIOSMEM_PAGE_SIZE)); BX += 2;
3246 write_word(ES, BX, read_word(BIOSMEM_SEG,BIOSMEM_CRTC_ADDRESS)); BX += 2;
3247 write_byte(ES, BX, read_byte(BIOSMEM_SEG,BIOSMEM_NB_ROWS)); BX++;
3248 write_word(ES, BX, read_word(BIOSMEM_SEG,BIOSMEM_CHAR_HEIGHT)); BX += 2;
3249 write_byte(ES, BX, read_byte(BIOSMEM_SEG,BIOSMEM_VIDEO_CTL)); BX++;
3250 write_byte(ES, BX, read_byte(BIOSMEM_SEG,BIOSMEM_SWITCHES)); BX++;
3251 write_byte(ES, BX, read_byte(BIOSMEM_SEG,BIOSMEM_MODESET_CTL)); BX++;
3252 write_word(ES, BX, read_word(BIOSMEM_SEG,BIOSMEM_CURSOR_TYPE)); BX += 2;
3254 write_word(ES, BX, read_word(BIOSMEM_SEG, BIOSMEM_CURSOR_POS+2*i));
3257 write_word(ES, BX, read_word(BIOSMEM_SEG,BIOSMEM_CURRENT_START)); BX += 2;
3258 write_byte(ES, BX, read_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_PAGE)); BX++;
3260 write_word(ES, BX, read_word(0, 0x1f * 4)); BX += 2;
3261 write_word(ES, BX, read_word(0, 0x1f * 4 + 2)); BX += 2;
3262 write_word(ES, BX, read_word(0, 0x43 * 4)); BX += 2;
3263 write_word(ES, BX, read_word(0, 0x43 * 4 + 2)); BX += 2;
3267 write_byte(ES, BX, inb(VGAREG_DAC_STATE)); BX++; /* read/write mode dac */
3268 write_byte(ES, BX, inb(VGAREG_DAC_WRITE_ADDRESS)); BX++; /* pix address */
3269 write_byte(ES, BX, inb(VGAREG_PEL_MASK)); BX++;
3273 write_byte(ES, BX, inb(VGAREG_DAC_DATA)); BX++;
3275 write_byte(ES, BX, 0); BX++; /* color select register */
3280 static Bit16u biosfn_restore_video_state (CX,ES,BX)
3281 Bit16u CX;Bit16u ES;Bit16u BX;
3289 crtc_addr = read_word(ES, BX + 0x40);
3295 outb(VGAREG_SEQU_DATA, read_byte(ES, BX)); BX++;
3298 outb(VGAREG_SEQU_DATA, read_byte(ES, BX)); BX++;
3306 outb(crtc_addr+1, read_byte(ES, BX));
3318 outb(crtc_addr+1, read_byte(ES, BX - 0x18 + 0x11));
3321 ar_index = read_byte(ES, addr1 + 0x03);
3325 outb(VGAREG_ACTL_WRITE_DATA, read_byte(ES, BX)); BX++;
3332 outb(VGAREG_GRDC_DATA, read_byte(ES, BX)); BX++;
3337 outb(VGAREG_SEQU_ADDRESS, read_byte(ES, addr1)); addr1++;
3338 outb(crtc_addr, read_byte(ES, addr1)); addr1++;
3339 outb(VGAREG_GRDC_ADDRESS, read_byte(ES, addr1)); addr1++;
3341 outb(crtc_addr - 0x4 + 0xa, read_byte(ES, addr1)); addr1++;
3344 write_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_MODE, read_byte(ES, BX)); BX++;
3345 write_word(BIOSMEM_SEG,BIOSMEM_NB_COLS, read_word(ES, BX)); BX += 2;
3346 write_word(BIOSMEM_SEG,BIOSMEM_PAGE_SIZE, read_word(ES, BX)); BX += 2;
3347 write_word(BIOSMEM_SEG,BIOSMEM_CRTC_ADDRESS, read_word(ES, BX)); BX += 2;
3348 write_byte(BIOSMEM_SEG,BIOSMEM_NB_ROWS, read_byte(ES, BX)); BX++;
3349 write_word(BIOSMEM_SEG,BIOSMEM_CHAR_HEIGHT, read_word(ES, BX)); BX += 2;
3350 write_byte(BIOSMEM_SEG,BIOSMEM_VIDEO_CTL, read_byte(ES, BX)); BX++;
3351 write_byte(BIOSMEM_SEG,BIOSMEM_SWITCHES, read_byte(ES, BX)); BX++;
3352 write_byte(BIOSMEM_SEG,BIOSMEM_MODESET_CTL, read_byte(ES, BX)); BX++;
3353 write_word(BIOSMEM_SEG,BIOSMEM_CURSOR_TYPE, read_word(ES, BX)); BX += 2;
3355 write_word(BIOSMEM_SEG, BIOSMEM_CURSOR_POS+2*i, read_word(ES, BX));
3358 write_word(BIOSMEM_SEG,BIOSMEM_CURRENT_START, read_word(ES, BX)); BX += 2;
3359 write_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_PAGE, read_byte(ES, BX)); BX++;
3361 write_word(0, 0x1f * 4, read_word(ES, BX)); BX += 2;
3362 write_word(0, 0x1f * 4 + 2, read_word(ES, BX)); BX += 2;
3363 write_word(0, 0x43 * 4, read_word(ES, BX)); BX += 2;
3364 write_word(0, 0x43 * 4 + 2, read_word(ES, BX)); BX += 2;
3368 v = read_byte(ES, BX); BX++;
3369 outb(VGAREG_PEL_MASK, read_byte(ES, BX)); BX++;
3373 outb(VGAREG_DAC_DATA, read_byte(ES, BX)); BX++;
3419 push es
3426 mov es, ax
3436 pop es
3457 push es
3464 mov es, ax
3474 pop es
3496 push es
3505 mov es, ax
3520 pop es
3542 push es
3551 mov es, ax
3566 pop es