Lines Matching refs:DS
3816 int15_function(regs, ES, DS, FLAGS)
3818 Bit16u ES, DS, FLAGS;
4011 ;; GDT points to valid descriptor table, now load SS, DS, ES
4022 movsw ;; move CX words from DS:SI to ES:DI
4024 ;; make sure DS and ES limits are 64KB
4128 int15_function_mouse(regs, ES, DS, FLAGS)
4130 Bit16u ES, DS, FLAGS;
4471 int15_function32(regs, ES, DS, FLAGS)
4473 Bit16u ES, DS, FLAGS;
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;
5384 count=read_word(DS, SI+(Bit16u)&Int13Ext->count);
5385 segment=read_word(DS, SI+(Bit16u)&Int13Ext->segment);
5386 offset=read_word(DS, SI+(Bit16u)&Int13Ext->offset);
5389 lba_high=read_dword(DS, SI+(Bit16u)&Int13Ext->lba2);
5396 lba_low=read_dword(DS, SI+(Bit16u)&Int13Ext->lba1);
5414 write_word(DS, SI+(Bit16u)&Int13Ext->count, count);
5436 size=read_word(DS,SI+(Bit16u)&Int13DPT->size);
5453 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x1a);
5456 write_word(DS, SI+(Bit16u)&Int13DPT->infos, 0x00); // geometry is invalid
5457 write_dword(DS, SI+(Bit16u)&Int13DPT->cylinders, 0x3fff);
5461 write_word(DS, SI+(Bit16u)&Int13DPT->infos, 0x02); // geometry is valid
5462 write_dword(DS, SI+(Bit16u)&Int13DPT->cylinders, (Bit32u)npc);
5464 write_dword(DS, SI+(Bit16u)&Int13DPT->heads, (Bit32u)nph);
5465 write_dword(DS, SI+(Bit16u)&Int13DPT->spt, (Bit32u)npspt);
5466 write_dword(DS, SI+(Bit16u)&Int13DPT->sector_count1, lba_low);
5467 write_dword(DS, SI+(Bit16u)&Int13DPT->sector_count2, lba_high);
5468 write_word(DS, SI+(Bit16u)&Int13DPT->blksize, blksize);
5476 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x1e);
5478 write_word(DS, SI+(Bit16u)&Int13DPT->dpte_segment, ebda_seg);
5479 write_word(DS, SI+(Bit16u)&Int13DPT->dpte_offset, &EbdaData->ata.dpte);
5525 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x42);
5526 write_word(DS, SI+(Bit16u)&Int13DPT->key, 0xbedd);
5527 write_byte(DS, SI+(Bit16u)&Int13DPT->dpi_length, 0x24);
5528 write_byte(DS, SI+(Bit16u)&Int13DPT->reserved1, 0);
5529 write_word(DS, SI+(Bit16u)&Int13DPT->reserved2, 0);
5532 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[0], 'I');
5533 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[1], 'S');
5534 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[2], 'A');
5535 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[3], 0);
5540 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[0], 'A');
5541 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[1], 'T');
5542 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[2], 'A');
5543 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[3], 0);
5546 write_word(DS, SI+(Bit16u)&Int13DPT->iface_path[0], iobase1);
5547 write_word(DS, SI+(Bit16u)&Int13DPT->iface_path[2], 0);
5548 write_dword(DS, SI+(Bit16u)&Int13DPT->iface_path[4], 0L);
5553 write_byte(DS, SI+(Bit16u)&Int13DPT->device_path[0], device%2);
5554 write_byte(DS, SI+(Bit16u)&Int13DPT->device_path[1], 0);
5555 write_word(DS, SI+(Bit16u)&Int13DPT->device_path[2], 0);
5556 write_dword(DS, SI+(Bit16u)&Int13DPT->device_path[4], 0L);
5559 for (i=30; i<64; i++) checksum+=read_byte(DS, SI + i);
5561 write_byte(DS, SI+(Bit16u)&Int13DPT->checksum, checksum);
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;
5697 count=read_word(DS, SI+(Bit16u)&Int13Ext->count);
5698 segment=read_word(DS, SI+(Bit16u)&Int13Ext->segment);
5699 offset=read_word(DS, SI+(Bit16u)&Int13Ext->offset);
5702 lba=read_dword(DS, SI+(Bit16u)&Int13Ext->lba2);
5709 lba=read_dword(DS, SI+(Bit16u)&Int13Ext->lba1);
5726 write_word(DS, SI+(Bit16u)&Int13Ext->count, count);
5801 size = read_word(DS,SI+(Bit16u)&Int13Ext->size);
5813 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x1a);
5814 …write_word(DS, SI+(Bit16u)&Int13DPT->infos, 0x74); // removable, media change, lockable, max values
5815 write_dword(DS, SI+(Bit16u)&Int13DPT->cylinders, 0xffffffff);
5816 write_dword(DS, SI+(Bit16u)&Int13DPT->heads, 0xffffffff);
5817 write_dword(DS, SI+(Bit16u)&Int13DPT->spt, 0xffffffff);
5818 write_dword(DS, SI+(Bit16u)&Int13DPT->sector_count1, 0xffffffff); // FIXME should be Bit64
5819 write_dword(DS, SI+(Bit16u)&Int13DPT->sector_count2, 0xffffffff);
5820 write_word(DS, SI+(Bit16u)&Int13DPT->blksize, blksize);
5828 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x1e);
5830 write_word(DS, SI+(Bit16u)&Int13DPT->dpte_segment, ebda_seg);
5831 write_word(DS, SI+(Bit16u)&Int13DPT->dpte_offset, &EbdaData->ata.dpte);
5873 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x42);
5874 write_word(DS, SI+(Bit16u)&Int13DPT->key, 0xbedd);
5875 write_byte(DS, SI+(Bit16u)&Int13DPT->dpi_length, 0x24);
5876 write_byte(DS, SI+(Bit16u)&Int13DPT->reserved1, 0);
5877 write_word(DS, SI+(Bit16u)&Int13DPT->reserved2, 0);
5880 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[0], 'I');
5881 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[1], 'S');
5882 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[2], 'A');
5883 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[3], 0);
5888 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[0], 'A');
5889 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[1], 'T');
5890 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[2], 'A');
5891 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[3], 0);
5894 write_word(DS, SI+(Bit16u)&Int13DPT->iface_path[0], iobase1);
5895 write_word(DS, SI+(Bit16u)&Int13DPT->iface_path[2], 0);
5896 write_dword(DS, SI+(Bit16u)&Int13DPT->iface_path[4], 0L);
5901 write_byte(DS, SI+(Bit16u)&Int13DPT->device_path[0], device%2);
5902 write_byte(DS, SI+(Bit16u)&Int13DPT->device_path[1], 0);
5903 write_word(DS, SI+(Bit16u)&Int13DPT->device_path[2], 0);
5904 write_dword(DS, SI+(Bit16u)&Int13DPT->device_path[4], 0L);
5907 for (i=30; i<64; i++) checksum+=read_byte(DS, SI + i);
5909 write_byte(DS, SI+(Bit16u)&Int13DPT->checksum, checksum);
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;
5995 write_byte(DS,SI+0x00,0x13);
5996 write_byte(DS,SI+0x01,read_byte(ebda_seg,&EbdaData->cdemu.media));
5997 write_byte(DS,SI+0x02,read_byte(ebda_seg,&EbdaData->cdemu.emulated_drive));
5998 write_byte(DS,SI+0x03,read_byte(ebda_seg,&EbdaData->cdemu.controller_index));
5999 write_dword(DS,SI+0x04,read_dword(ebda_seg,&EbdaData->cdemu.ilba));
6000 write_word(DS,SI+0x08,read_word(ebda_seg,&EbdaData->cdemu.device_spec));
6001 write_word(DS,SI+0x0a,read_word(ebda_seg,&EbdaData->cdemu.buffer_segment));
6002 write_word(DS,SI+0x0c,read_word(ebda_seg,&EbdaData->cdemu.load_segment));
6003 write_word(DS,SI+0x0e,read_word(ebda_seg,&EbdaData->cdemu.sector_count));
6004 write_byte(DS,SI+0x10,read_byte(ebda_seg,&EbdaData->cdemu.vdevice.cylinders));
6005 write_byte(DS,SI+0x11,read_byte(ebda_seg,&EbdaData->cdemu.vdevice.spt));
6006 write_byte(DS,SI+0x12,read_byte(ebda_seg,&EbdaData->cdemu.vdevice.heads));
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;
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;
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;
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;
8421 push ds ;; save DS
8443 pop ds ;; restore DS
8573 ;; DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS
9185 ;; assuming DS=0000
10223 xor bx, bx ;; Restore DS back to 0000:
10315 xor ax, ax ;; Restore DS back to 0000: