Lines Matching defs:DX
243 mov dx,#PANIC_PORT
245 out dx,ax
247 mov dx,#0x80
249 out dx,al
431 mov dx, [bx]
433 ;; dx = return value (word)
593 xor dx,dx
785 Bit16u bx, dx, cx, ax;
802 Bit16u bx, filler5, dx, filler6, cx, filler7, ax, filler8;
996 #define SET_DL(val8) DX = ((DX & 0xff00) | (val8))
1000 #define SET_DH(val8) DX = ((DX & 0x00ff) | ((val8) << 8))
1005 #define GET_DL() ( DX & 0x00ff )
1009 #define GET_DH() ( DX >> 8 )
1133 push dx
1134 mov dx, 4[bp]
1135 in al, dx
1136 pop dx
1151 push dx
1152 mov dx, 4[bp]
1153 in ax, dx
1154 pop dx
1171 push dx
1172 mov dx, 4[bp]
1174 out dx, al
1175 pop dx
1193 push dx
1194 mov dx, 4[bp]
1196 out dx, ax
1197 pop dx
2944 mov dx, _ata_cmd_data_in.iobase1 + 2[bp] ;; ATA data read port
2952 insw ;; CX words transfered from port(DX) to ES:[DI]
2957 insd ;; CX dwords transfered from port(DX) to ES:[DI]
3095 mov dx, _ata_cmd_data_out.iobase1 + 2[bp] ;; ATA data write port
3104 outsw ;; CX words transfered from port(DX) to ES:[SI]
3110 outsd ;; CX dwords transfered from port(DX) to ES:[SI]
3234 mov dx, _ata_cmd_packet.iobase1 + 2[bp] ;; ATA data write port
3238 outsw ;; CX words transfered from port(DX) to ES:[SI]
3334 mov dx, _ata_cmd_packet.iobase1 + 2[bp] ;; ATA data read port
3344 in ax, dx
3351 in eax, dx
3369 insw ;; CX words transfered tp port(DX) to ES:[DI]
3374 insd ;; CX dwords transfered to port(DX) to ES:[DI]
3385 in ax, dx
3392 in eax, dx
3752 addr = read_word(0x0040, (regs.u.r16.dx << 1));
3753 timeout = read_byte(0x0040, 0x007C + regs.u.r16.dx);
3754 if ((regs.u.r16.dx < 4) && (addr > 0)) {
3825 Bit16u CX,DX;
3890 write_word( 0x40, 0x9C, regs.u.r16.dx ); // Low word, delay
4477 Bit16u CX,DX;
4484 // Wait for CX:DX microseconds. currently using the
4488 DX = regs.u.r16.dx;
4499 mov ax, _int15_function32.DX [bx]
4611 default: /* AX=E820, DX=534D4150, BX unrecognized */
4619 // if DX != 0x534D4150)
4651 regs.u.r16.bx = regs.u.r16.dx;
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);
5366 DX = lba_low & 0xffff;
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);
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);
6277 mov dx,#0x1f3
6278 out dx,al
6279 mov dx,#0x1f4
6281 out dx,al
6283 mov dx,#0x1f5
6284 out dx,al
6292 mov dx,#0x01f6
6293 out dx,al
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);
6477 mov dx, #0x01f0 ;; AT data read port
6480 insw ;; CX words transfered from port(DX) to ES:[DI]
6617 mov dx, #0x01f0 ;; AT data read port
6621 outsw ;; CX words tranfered from ES:[SI] to port(DX)
6790 mul ax, bx ;; dx:ax = (cylinders -1) * (heads * sectors)
6791 ;; now we need to move the 32bit result dx:ax to what the
6792 ;; BIOS wants which is cx:dx.
6793 ;; and then into CX:DX on the stack
6794 mov _int13_harddisk.CX + 2 [bp], dx
6795 mov _int13_harddisk.DX + 2 [bp], ax
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);
7686 DX = 0;
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;
7943 addr = read_word(0x0040, (regs.u.r16.dx << 1) + 8);
7944 if ((regs.u.r8.ah < 3) && (regs.u.r16.dx < 3) && (addr > 0)) {
7945 timeout = read_byte(0x0040, 0x0078 + regs.u.r16.dx) << 8;
8060 push dx
8077 pop dx
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);
8176 regs.u.r16.dx = BiosData->ticks_low;
8191 BiosData->ticks_low = regs.u.r16.dx;
8342 BX_INFO("bad PCI vendor ID %04x\n", regs.u.r16.dx);
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);
8347 BX_INFO("no PCI device with class code 0x%02x%04x found at index %d\n", regs.u.r8.cl, regs.u.r16.dx, regs.u.r16.si);
8496 push dx
8505 pop dx
8506 push dx
8510 pop dx
8529 pop dx
8536 push dx
8543 pop dx
8554 push dx
8559 push dx ;; push eltorito value of dx instead of sp
8573 ;; DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS
8766 mov dx, #0x03f6
8767 out dx, al
9280 mov dx, #0x0cf8
9281 out dx, eax
9282 mov dx, #0x0cfc
9283 in eax, dx
9323 mov cx, dx
9328 mov dx, #0x0cfc
9329 in eax, dx
9348 mov dx, #0x0cfc
9349 in eax, dx
9367 mov dx, di
9368 and dx, #0x03
9369 add dx, #0x0cfc
9370 in al, dx
9379 mov dx, di
9380 and dx, #0x02
9381 add dx, #0x0cfc
9382 in ax, dx
9391 mov dx, #0x0cfc
9392 in eax, dx
9401 mov dx, di
9402 and dx, #0x03
9403 add dx, #0x0cfc
9405 out dx, al
9413 mov dx, di
9414 and dx, #0x02
9415 add dx, #0x0cfc
9417 out dx, ax
9425 mov dx, #0x0cfc
9427 out dx, eax
9460 mov dx, #0x0cf8
9461 out dx, eax
9469 push dx
9471 mov dx, #0x0cf8
9472 out dx, eax
9473 mov dx, #0x0cfc
9474 in eax, dx
9483 pop dx
9489 pop dx
9507 mov cx, dx
9512 mov dx, #0x0cfc
9513 in eax, dx
9523 mov dx, cx
9534 mov dx, #0x0cfc
9535 in eax, dx
9546 mov dx, cx
9554 push dx
9555 mov dx, di
9556 and dx, #0x03
9557 add dx, #0x0cfc
9558 in al, dx
9559 pop dx
9566 push dx
9567 mov dx, di
9568 and dx, #0x02
9569 add dx, #0x0cfc
9570 in ax, dx
9571 pop dx
9578 push dx
9579 mov dx, #0x0cfc
9580 in eax, dx
9581 pop dx
9588 push dx
9589 mov dx, di
9590 and dx, #0x03
9591 add dx, #0x0cfc
9593 out dx, al
9594 pop dx
9600 push dx
9601 mov dx, di
9602 and dx, #0x02
9603 add dx, #0x0cfc
9605 out dx, ax
9606 pop dx
9612 push dx
9613 mov dx, #0x0cfc
9615 out dx, eax
9616 pop dx
9673 push dx
9680 mov dx, #0x0cf8
9681 out dx, eax
9682 pop dx
9790 mov dx, #0x0cf8
9791 out dx, eax
9808 mov dx, #0x0cfc
9809 in ax, dx
9814 mov dx, #0x0cfc
9815 in al, dx
9817 out dx, al
9821 mov dx, #0x0cfc
9822 in eax, dx
9827 out dx, eax
9828 in eax, dx
9834 out dx, eax
9843 out dx, ax
9844 in ax, dx
9850 out dx, ax
9865 mov dx, #0x0cfc
9866 in al, dx
9868 out dx, al
9881 mov dx, #0x04d0
9884 inc dx
9890 in al, dx
9892 out dx, al
9902 mov dx, #0x04d0 ;; reset ELCR1 + ELCR2
9904 out dx, al
9905 inc dx
9906 out dx, al
9912 mov dx, #0x0cfc
9913 in ax, dx
9919 mov dx, #0x0cfc
9921 out dx, ax ;; reset PIRQ route control
9922 add dx, #2
9923 out dx, ax
9940 mov dx, #0x0cfc
9941 in ax, dx
9950 mov dx, #0x0cfd
9951 in al, dx
9964 mov dx, #0x0cfc
9967 in al, dx
9972 out dx, al
9982 mov dx, #0x0cfc
9983 out dx, al
10114 ; parallel port detection: base address in DX, index in BX, timeout in CL
10116 push dx
10117 add dx, #2
10118 in al, dx
10120 out dx, al
10121 pop dx
10123 out dx, al
10124 in al, dx
10129 mov [bx+0x408], dx ; Parallel I/O address
10136 ; serial port detection: base address in DX, index in BX, timeout in CL
10138 push dx
10139 inc dx
10141 out dx, al
10142 in al, dx
10145 inc dx
10146 in al, dx
10149 dec dx
10151 out dx, al
10152 pop dx
10155 mov [bx+0x400], dx ; Serial I/O address
10161 pop dx
10458 mov dx, #0xF000
10463 mov [bx], dx
10564 mov dx, #0x378 ; Parallel I/O address, port 1
10566 mov dx, #0x278 ; Parallel I/O address, port 2
10579 mov dx, #0x03f8 ; Serial I/O address, port 1
10581 mov dx, #0x02f8 ; Serial I/O address, port 2
10583 mov dx, #0x03e8 ; Serial I/O address, port 3
10585 mov dx, #0x02e8 ; Serial I/O address, port 4
10942 push dx
10943 mov dx, #0x03f4
10944 in al, dx
10948 mov dx, #0x03f5
10950 out dx, al
10952 mov dx, #0x03f4
10953 in al, dx
10958 mov dx, #0x03f5
10959 in al, dx
10960 mov dx, #0x03f4
10961 in al, dx
10974 pop dx
11206 push dx
11207 mov dx,#0x03f2
11208 in al,dx
11210 out dx,al
11211 pop dx