Lines Matching refs:DS

3934 int15_function(regs, ES, DS, FLAGS)
3936 Bit16u ES, DS, FLAGS;
4129 ;; GDT points to valid descriptor table, now load SS, DS, ES
4140 movsw ;; move CX words from DS:SI to ES:DI
4142 ;; make sure DS and ES limits are 64KB
4246 int15_function_mouse(regs, ES, DS, FLAGS)
4248 Bit16u ES, DS, FLAGS;
4586 int15_function32(regs, ES, DS, FLAGS)
4588 Bit16u ES, DS, FLAGS;
5425 int13_harddisk(EHAX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS)
5426 Bit16u EHAX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
5597 count=read_word(DS, SI+(Bit16u)&Int13Ext->count);
5598 segment=read_word(DS, SI+(Bit16u)&Int13Ext->segment);
5599 offset=read_word(DS, SI+(Bit16u)&Int13Ext->offset);
5602 lba_high=read_dword(DS, SI+(Bit16u)&Int13Ext->lba2);
5609 lba_low=read_dword(DS, SI+(Bit16u)&Int13Ext->lba1);
5627 write_word(DS, SI+(Bit16u)&Int13Ext->count, count);
5649 size=read_word(DS,SI+(Bit16u)&Int13DPT->size);
5666 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x1a);
5669 write_word(DS, SI+(Bit16u)&Int13DPT->infos, 0x00); // geometry is invalid
5670 write_dword(DS, SI+(Bit16u)&Int13DPT->cylinders, 0x3fff);
5674 write_word(DS, SI+(Bit16u)&Int13DPT->infos, 0x02); // geometry is valid
5675 write_dword(DS, SI+(Bit16u)&Int13DPT->cylinders, (Bit32u)npc);
5677 write_dword(DS, SI+(Bit16u)&Int13DPT->heads, (Bit32u)nph);
5678 write_dword(DS, SI+(Bit16u)&Int13DPT->spt, (Bit32u)npspt);
5679 write_dword(DS, SI+(Bit16u)&Int13DPT->sector_count1, lba_low);
5680 write_dword(DS, SI+(Bit16u)&Int13DPT->sector_count2, lba_high);
5681 write_word(DS, SI+(Bit16u)&Int13DPT->blksize, blksize);
5689 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x1e);
5691 write_word(DS, SI+(Bit16u)&Int13DPT->dpte_segment, ebda_seg);
5692 write_word(DS, SI+(Bit16u)&Int13DPT->dpte_offset, &EbdaData->ata.dpte);
5738 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x42);
5739 write_word(DS, SI+(Bit16u)&Int13DPT->key, 0xbedd);
5740 write_byte(DS, SI+(Bit16u)&Int13DPT->dpi_length, 0x24);
5741 write_byte(DS, SI+(Bit16u)&Int13DPT->reserved1, 0);
5742 write_word(DS, SI+(Bit16u)&Int13DPT->reserved2, 0);
5745 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[0], 'I');
5746 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[1], 'S');
5747 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[2], 'A');
5748 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[3], 0);
5753 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[0], 'A');
5754 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[1], 'T');
5755 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[2], 'A');
5756 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[3], 0);
5759 write_word(DS, SI+(Bit16u)&Int13DPT->iface_path[0], iobase1);
5760 write_word(DS, SI+(Bit16u)&Int13DPT->iface_path[2], 0);
5761 write_dword(DS, SI+(Bit16u)&Int13DPT->iface_path[4], 0L);
5766 write_byte(DS, SI+(Bit16u)&Int13DPT->device_path[0], device%2);
5767 write_byte(DS, SI+(Bit16u)&Int13DPT->device_path[1], 0);
5768 write_word(DS, SI+(Bit16u)&Int13DPT->device_path[2], 0);
5769 write_dword(DS, SI+(Bit16u)&Int13DPT->device_path[4], 0L);
5772 for (i=30; i<64; i++) checksum+=read_byte(DS, SI + i);
5774 write_byte(DS, SI+(Bit16u)&Int13DPT->checksum, checksum);
5834 int13_cdrom(EHBX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS)
5835 Bit16u EHBX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
5910 count=read_word(DS, SI+(Bit16u)&Int13Ext->count);
5911 segment=read_word(DS, SI+(Bit16u)&Int13Ext->segment);
5912 offset=read_word(DS, SI+(Bit16u)&Int13Ext->offset);
5915 lba=read_dword(DS, SI+(Bit16u)&Int13Ext->lba2);
5922 lba=read_dword(DS, SI+(Bit16u)&Int13Ext->lba1);
5939 write_word(DS, SI+(Bit16u)&Int13Ext->count, count);
6014 size = read_word(DS,SI+(Bit16u)&Int13Ext->size);
6026 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x1a);
6027 …write_word(DS, SI+(Bit16u)&Int13DPT->infos, 0x74); // removable, media change, lockable, max values
6028 write_dword(DS, SI+(Bit16u)&Int13DPT->cylinders, 0xffffffff);
6029 write_dword(DS, SI+(Bit16u)&Int13DPT->heads, 0xffffffff);
6030 write_dword(DS, SI+(Bit16u)&Int13DPT->spt, 0xffffffff);
6031 write_dword(DS, SI+(Bit16u)&Int13DPT->sector_count1, 0xffffffff); // FIXME should be Bit64
6032 write_dword(DS, SI+(Bit16u)&Int13DPT->sector_count2, 0xffffffff);
6033 write_word(DS, SI+(Bit16u)&Int13DPT->blksize, blksize);
6041 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x1e);
6043 write_word(DS, SI+(Bit16u)&Int13DPT->dpte_segment, ebda_seg);
6044 write_word(DS, SI+(Bit16u)&Int13DPT->dpte_offset, &EbdaData->ata.dpte);
6086 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x42);
6087 write_word(DS, SI+(Bit16u)&Int13DPT->key, 0xbedd);
6088 write_byte(DS, SI+(Bit16u)&Int13DPT->dpi_length, 0x24);
6089 write_byte(DS, SI+(Bit16u)&Int13DPT->reserved1, 0);
6090 write_word(DS, SI+(Bit16u)&Int13DPT->reserved2, 0);
6093 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[0], 'I');
6094 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[1], 'S');
6095 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[2], 'A');
6096 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[3], 0);
6101 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[0], 'A');
6102 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[1], 'T');
6103 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[2], 'A');
6104 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[3], 0);
6107 write_word(DS, SI+(Bit16u)&Int13DPT->iface_path[0], iobase1);
6108 write_word(DS, SI+(Bit16u)&Int13DPT->iface_path[2], 0);
6109 write_dword(DS, SI+(Bit16u)&Int13DPT->iface_path[4], 0L);
6114 write_byte(DS, SI+(Bit16u)&Int13DPT->device_path[0], device%2);
6115 write_byte(DS, SI+(Bit16u)&Int13DPT->device_path[1], 0);
6116 write_word(DS, SI+(Bit16u)&Int13DPT->device_path[2], 0);
6117 write_dword(DS, SI+(Bit16u)&Int13DPT->device_path[4], 0L);
6120 for (i=30; i<64; i++) checksum+=read_byte(DS, SI + i);
6122 write_byte(DS, SI+(Bit16u)&Int13DPT->checksum, checksum);
6188 int13_eltorito(DS, ES, DI, SI, BP, SP, BX, DX, CX, AX, IP, CS, FLAGS)
6189 Bit16u DS, ES, DI, SI, BP, SP, BX, DX, CX, AX, IP, CS, FLAGS;
6208 write_byte(DS,SI+0x00,0x13);
6209 write_byte(DS,SI+0x01,read_byte(ebda_seg,&EbdaData->cdemu.media));
6210 write_byte(DS,SI+0x02,read_byte(ebda_seg,&EbdaData->cdemu.emulated_drive));
6211 write_byte(DS,SI+0x03,read_byte(ebda_seg,&EbdaData->cdemu.controller_index));
6212 write_dword(DS,SI+0x04,read_dword(ebda_seg,&EbdaData->cdemu.ilba));
6213 write_word(DS,SI+0x08,read_word(ebda_seg,&EbdaData->cdemu.device_spec));
6214 write_word(DS,SI+0x0a,read_word(ebda_seg,&EbdaData->cdemu.buffer_segment));
6215 write_word(DS,SI+0x0c,read_word(ebda_seg,&EbdaData->cdemu.load_segment));
6216 write_word(DS,SI+0x0e,read_word(ebda_seg,&EbdaData->cdemu.sector_count));
6217 write_byte(DS,SI+0x10,read_byte(ebda_seg,&EbdaData->cdemu.vdevice.cylinders));
6218 write_byte(DS,SI+0x11,read_byte(ebda_seg,&EbdaData->cdemu.vdevice.spt));
6219 write_byte(DS,SI+0x12,read_byte(ebda_seg,&EbdaData->cdemu.vdevice.heads));
6258 int13_cdemu(DS, ES, DI, SI, BP, SP, BX, DX, CX, AX, IP, CS, FLAGS)
6259 Bit16u DS, ES, DI, SI, BP, SP, BX, DX, CX, AX, IP, CS, FLAGS;
6515 int13_harddisk(EHAX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS)
6516 Bit16u EHAX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
7360 int13_diskette_function(DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS)
7361 Bit16u DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
8057 int13_diskette_function(DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS)
8058 Bit16u DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
8653 push ds ;; save DS
8675 pop ds ;; restore DS
8805 ;; DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS
9417 ;; assuming DS=0000
10555 mov ax, ds ;; Increment the DS since rom size larger than an segment
10569 xor bx, bx ;; Restore DS back to 0000:
10652 xor ax, ax ;; Restore DS back to 0000: