Lines Matching refs:CX
559 xor cx,cx
560 not cx
565 not cx
566 dec cx
567 push cx
573 pop cx
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;
588 printf("vgabios call ah%02x al%02x bx%04x cx%04x dx%04x\n",GET_AH(),GET_AL(),BX,CX,DX);
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;
629 biosfn_get_cursor_pos(GET_BH(),&CX,&DX);
638 CX=0x00;
654 biosfn_write_char_attr(GET_AL(),GET_BH(),GET_BL(),CX);
657 biosfn_write_char_only(GET_AL(),GET_BH(),GET_BL(),CX);
660 biosfn_write_pixel(GET_BH(),GET_AL(),CX,DX);
663 biosfn_read_pixel(GET_BH(),CX,DX,&AX);
672 biosfn_perform_gray_scale_summing(BX,CX);
679 biosfn_load_text_user_pat(GET_AL(),ES,BP,CX,DX,GET_BL(),GET_BH());
697 biosfn_load_gfx_user_chars(ES,BP,CX,GET_BL(),GET_DL());
709 biosfn_get_font_info(GET_BH(),&ES,&BP,&CX,&DX);
739 biosfn_write_string(GET_AL(),GET_BH(),GET_BL(),CX,GET_DH(),GET_DL(),ES,BP);
749 biosfn_read_video_state_size(CX,&BX);
752 biosfn_save_video_state(CX
755 biosfn_restore_video_state(CX,ES,BX);
774 vbe_biosfn_return_mode_information(&AX,CX,ES,DI);
780 vbe_biosfn_save_restore_state(&AX, CX, DX, ES, &BX);
1740 push cx
1772 pop cx
1779 push cx
1801 pop cx
1808 static void biosfn_write_pixel (BH,AL,CX,DX) Bit8u BH;Bit8u AL;Bit16u CX;Bit16u DX;
1823 addr = CX/8+DX*read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS);
1824 mask = 0x80 >> (CX & 0x07);
1846 addr=(CX>>2)+(DX>>1)*80;
1850 addr=(CX>>3)+(DX>>1)*80;
1856 attr = (AL & 0x03) << ((3 - (CX & 0x03)) * 2);
1857 mask = 0x03 << ((3 - (CX & 0x03)) * 2);
1861 attr = (AL & 0x01) << (7 - (CX & 0x07));
1862 mask = 0x01 << (7 - (CX & 0x07));
1876 addr=CX+DX*(read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS)*8);
1887 static void biosfn_read_pixel (BH,CX,DX,AX) Bit8u BH;Bit16u CX;Bit16u DX;Bit16u *AX;
1903 addr = CX/8+DX*read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS);
1904 mask = 0x80 >> (CX & 0x07);
1914 addr=(CX>>2)+(DX>>1)*80;
1919 attr = (data >> ((3 - (CX & 0x03)) * 2)) & 0x03;
1923 attr = (data >> (7 - (CX & 0x07))) & 0x01;
1927 addr=CX+DX*(read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS)*8);
2186 push cx
2211 pop cx
2289 push cx
2322 pop cx
2355 push cx
2377 dec cx
2380 pop cx
2459 push cx
2481 dec cx
2484 pop cx
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;
2683 for(i=0;i<CX;i++)
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;
2843 write_word(ss,CX,(Bit16u)read_byte(BIOSMEM_SEG,BIOSMEM_CHAR_HEIGHT));
3171 static Bit16u biosfn_read_video_state_size2 (CX)
3172 Bit16u CX;
3176 if (CX & 1) {
3179 if (CX & 2) {
3182 if (CX & 4) {
3188 static void biosfn_read_video_state_size (CX, BX)
3189 Bit16u CX; Bit16u *BX;
3192 write_word(ss, BX, biosfn_read_video_state_size2(CX));
3195 static Bit16u biosfn_save_video_state (CX,ES,BX)
3196 Bit16u CX;Bit16u ES;Bit16u BX;
3201 if (CX & 1) {
3242 if (CX & 2) {
3265 if (CX & 4) {
3280 static Bit16u biosfn_restore_video_state (CX,ES,BX)
3281 Bit16u CX;Bit16u ES;Bit16u BX;
3285 if (CX & 1) {
3343 if (CX & 2) {
3366 if (CX & 4) {
3418 push cx
3422 mov cx, 10[bp] ; count
3423 cmp cx, #0x00
3437 pop cx
3456 push cx
3460 mov cx, 10[bp] ; count
3461 cmp cx, #0x00
3475 pop cx
3495 push cx
3501 mov cx, 12[bp] ; count
3502 cmp cx, #0x0000
3521 pop cx
3541 push cx
3547 mov cx, 12[bp] ; count
3548 cmp cx, #0x0000
3567 pop cx
3842 push cx
3846 xor cx, cx
3856 add cx, #0x8
3857 cmp cx, #0x200 ;; search bus #0 and #1
3873 pop cx
3878 ; in - cx: device/function
3883 mov ax, cx