Lines Matching refs:CX
291 push cx
295 mov cx, 10[bp] ; count
296 test cx, cx
310 pop cx
331 push cx
337 mov cx, 12[bp] ; count
338 test cx, cx
357 pop cx
378 push cx
384 mov cx, 12[bp] ; count
385 test cx, cx
404 pop cx
558 mov cx,di
574 mov cx,di
785 Bit16u bx, dx, cx, ax;
802 Bit16u bx, filler5, dx, filler6, cx, filler7, ax, filler8;
995 #define SET_CL(val8) CX = ((CX & 0xff00) | (val8))
999 #define SET_CH(val8) CX = ((CX & 0x00ff) | ((val8) << 8))
1004 #define GET_CL() ( CX & 0x00ff )
1008 #define GET_CH() ( CX >> 8 )
2931 mov cx, _ata_cmd_data_in.blksize + 2[bp]
2952 insw ;; CX words transfered from port(DX) to ES:[DI]
2957 insd ;; CX dwords transfered from port(DX) to ES:[DI]
3082 mov cx, _ata_cmd_data_out.blksize + 2[bp]
3104 outsw ;; CX words transfered from port(DX) to ES:[SI]
3110 outsd ;; CX dwords transfered from port(DX) to ES:[SI]
3231 mov cx, _ata_cmd_packet.cmdlen + 2[bp]
3238 outsw ;; CX words transfered from port(DX) to ES:[SI]
3336 mov cx, _ata_cmd_packet.lbefore + 2[bp]
3356 mov cx, _ata_cmd_packet.lcount + 2[bp]
3369 insw ;; CX words transfered tp port(DX) to ES:[DI]
3374 insd ;; CX dwords transfered to port(DX) to ES:[DI]
3377 mov cx, _ata_cmd_packet.lafter + 2[bp]
3825 Bit16u CX,DX;
3891 write_word( 0x40, 0x9E, regs.u.r16.cx ); // High word, delay.
3981 CX = regs.u.r16.cx;
3984 // Get CX (word count) from stack.
3987 mov cx, _int15_function.CX [bx]
4022 movsw ;; move CX words from DS:SI to ES:DI
4477 Bit16u CX,DX;
4484 // Wait for CX:DX microseconds. currently using the
4487 CX = regs.u.r16.cx;
4496 mov ax, _int15_function32.CX [bx]
4640 if(regs.u.r16.cx > 0x3c00)
4642 regs.u.r16.cx = 0x3c00;
4650 regs.u.r16.ax = regs.u.r16.cx;
4669 int16_function(DI, SI, BP, SP, BX, DX, CX, AX, FLAGS)
4670 Bit16u DI, SI, BP, SP, BX, DX, CX, AX, FLAGS;
4675 BX_DEBUG_INT16("int16: AX=%04x BX=%04x CX=%04x DX=%04x \n", AX, BX, CX, DX);
4945 int09_function(DI, SI, BP, SP, BX, DX, CX, AX)
4946 Bit16u DI, SI, BP, SP, BX, DX, CX, AX;
5212 int13_harddisk(EHAX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS)
5213 Bit16u EHAX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
5223 BX_DEBUG_INT13_HD("int13_harddisk: AX=%04x BX=%04x CX=%04x DX=%04x ES=%04x\n", AX, BX, CX, DX, ES);
5365 CX = lba_low >> 16;
5375 CX=0x0007; // ext disk access and edd, removable supported
5621 int13_cdrom(EHBX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS)
5622 Bit16u EHBX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
5630 BX_DEBUG_INT13_CD("int13_cdrom: AX=%04x BX=%04x CX=%04x DX=%04x ES=%04x\n", AX, BX, CX, DX, ES);
5689 CX=0x0007; // ext disk access, removable and edd
5975 int13_eltorito(DS, ES, DI, SI, BP, SP, BX, DX, CX, AX, IP, CS, FLAGS)
5976 Bit16u DS, ES, DI, SI, BP, SP, BX, DX, CX, AX, IP, CS, FLAGS;
5980 BX_DEBUG_INT13_ET("int13_eltorito: AX=%04x BX=%04x CX=%04x DX=%04x ES=%04x\n", AX, BX, CX, DX, ES);
6045 int13_cdemu(DS, ES, DI, SI, BP, SP, BX, DX, CX, AX, IP, CS, FLAGS)
6046 Bit16u DS, ES, DI, SI, BP, SP, BX, DX, CX, AX, IP, CS, FLAGS;
6056 BX_DEBUG_INT13_ET("int13_cdemu: AX=%04x BX=%04x CX=%04x DX=%04x ES=%04x\n", AX, BX, CX, DX, ES);
6302 int13_harddisk(EHAX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS)
6303 Bit16u EHAX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
6322 BX_DEBUG_INT13_HD("int13 harddisk: AX=%04x BX=%04x CX=%04x DX=%04x ES=%04x\n", AX, BX, CX, DX, ES);
6476 mov cx, #0x0100 ;; counter (256 words = 512b)
6480 insw ;; CX words transfered from port(DX) to ES:[DI]
6616 mov cx, #0x0100 ;; counter (256 words = 512b)
6621 outsw ;; CX words tranfered from ES:[SI] to port(DX)
6792 ;; BIOS wants which is cx:dx.
6793 ;; and then into CX:DX on the stack
6794 mov _int13_harddisk.CX + 2 [bp], dx
7147 int13_diskette_function(DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS)
7148 Bit16u DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
7157 BX_DEBUG_INT13_FL("int13_diskette: AX=%04x BX=%04x CX=%04x DX=%04x ES=%04x\n", AX, BX, CX, DX, ES);
7685 CX = 0;
7714 CX = 0;
7719 CX = 0x2709; // 40 tracks, 9 sectors
7724 CX = 0x4f0f; // 80 tracks, 15 sectors
7729 CX = 0x4f09; // 80 tracks, 9 sectors
7734 CX = 0x4f12; // 80 tracks, 18 sectors
7739 CX = 0x4f24; // 80 tracks, 36 sectors
7744 CX = 0x2708; // 40 tracks, 8 sectors
7749 CX = 0x2709; // 40 tracks, 9 sectors
7754 CX = 0x2708; // 40 tracks, 8 sectors
7844 int13_diskette_function(DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS)
7845 Bit16u DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
8059 push cx
8078 pop cx
8164 BX_DEBUG_INT1A("int1a: AX=%04x BX=%04x CX=%04x DX=%04x DS=%04x\n", regs.u.r16.ax, regs.u.r16.bx, regs.u.r16.cx, regs.u.r16.dx, ds);
8175 regs.u.r16.cx = BiosData->ticks_high;
8190 BiosData->ticks_high = regs.u.r16.cx;
8345 BX_INFO("PCI device %04x:%04x not found at index %d\n", regs.u.r16.dx, regs.u.r16.cx, regs.u.r16.si);
8428 pop cx ;; remove make_far_call from stack
8495 push cx
8511 pop cx
8530 pop cx
8535 push cx
8544 pop cx
8553 push cx
8573 ;; DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS
9315 mov cx, #0
9323 mov cx, dx
9384 mov cx, ax
9416 mov ax, cx
9495 mov cx, #0
9507 mov cx, dx
9523 mov dx, cx
9546 mov dx, cx
9572 mov cx, ax
9604 mov ax, cx
9629 push cx
9637 mov cx, [di+2]
9640 mov di, cx
9641 mov cx, #pci_routing_table_structure_end - pci_routing_table_structure_start
9646 pop cx
9841 mov cx, ax
9845 cmp ax, cx
9848 mov cx, ax
9851 add ax, cx ;; calculate next free i/o base
9880 push cx
9893 pop cx
9927 mov cx, ax
10167 push cx
10170 xor cx, cx
10172 shl cx, #1
10178 pop cx
10207 mov ds, cx
10228 push cx ;; Push seg
10243 pop cx ;; Pop seg value (restore CX)
10248 mov ds, cx ;; ROM base
10262 push cx ;; Push seg
10276 pop cx ;; Pop seg value (restore CX)
10293 mov 6[bx], cx ;; Build a far pointer from the segment...
10297 mov 0xA[bx], cx ;; Build a far pointer from the segment...
10310 add cx, ax
10312 cmp cx, ax
10446 mov cx, #0x0080 ;; 128 words
10456 mov cx, #0x0100 ;; counter (256 interrupts)
10612 mov cx, #0xc000 ;; init vga bios
10658 mov cx, #0xc800 ;; init option roms