Changeset 48059 in vbox
- Timestamp:
- Aug 26, 2013 11:26:56 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevFdc.cpp
r47711 r48059 1199 1199 fdctrl->fifo[5] = cur_drv->sect; 1200 1200 fdctrl->fifo[6] = FD_SECTOR_SC; 1201 FLOPPY_DPRINTF("ST0:%02x ST1:%02x ST2:%02x C:%02x H:%02x R:%02x N:%02x\n", 1202 fdctrl->fifo[0], fdctrl->fifo[1], fdctrl->fifo[2], fdctrl->fifo[3], 1203 fdctrl->fifo[4], fdctrl->fifo[5], fdctrl->fifo[6]); 1204 1201 1205 fdctrl->data_dir = FD_DIR_READ; 1202 1206 if (!(fdctrl->msr & FD_MSR_NONDMA)) { … … 1227 1231 GET_CUR_DRV(fdctrl), kh, kt, ks, 1228 1232 fd_sector_calc(kh, kt, ks, cur_drv->last_sect, NUM_SIDES(cur_drv))); 1233 FLOPPY_DPRINTF("CMD:%02x SEL:%02x C:%02x H:%02x R:%02x N:%02x EOT:%02x GPL:%02x DTL:%02x\n", 1234 fdctrl->fifo[0], fdctrl->fifo[1], fdctrl->fifo[2], 1235 fdctrl->fifo[3], fdctrl->fifo[4], fdctrl->fifo[5], 1236 fdctrl->fifo[6], fdctrl->fifo[7], fdctrl->fifo[8]); 1229 1237 switch (fd_seek(cur_drv, kh, kt, ks, fdctrl->config & FD_CONFIG_EIS)) { 1230 1238 case 2: … … 1802 1810 fdrive_t *cur_drv = get_cur_drv(fdctrl); 1803 1811 1812 FLOPPY_DPRINTF("CMD:%02x SEL:%02x\n", fdctrl->fifo[0], fdctrl->fifo[1]); 1813 1804 1814 /* XXX: should set main status register to busy */ 1805 1815 cur_drv->head = (fdctrl->fifo[1] >> 2) & 1; … … 1815 1825 { 1816 1826 fdrive_t *cur_drv; 1827 uint8_t ns, dp; 1828 int did_seek = 0; 1817 1829 1818 1830 SET_CUR_DRV(fdctrl, fdctrl->fifo[1] & FD_DOR_SELMASK); 1819 1831 cur_drv = get_cur_drv(fdctrl); 1832 ns = fdctrl->fifo[3]; 1833 dp = fdctrl->fifo[5]; 1834 1835 FLOPPY_DPRINTF("Format track %d at %d, %d sectors, filler %02x\n", 1836 cur_drv->track, GET_CUR_DRV(fdctrl), ns, dp); 1837 FLOPPY_DPRINTF("CMD:%02x SEL:%02x N:%02x SC:%02x GPL:%02x D:%02x\n", 1838 fdctrl->fifo[0], fdctrl->fifo[1], fdctrl->fifo[2], 1839 fdctrl->fifo[3], fdctrl->fifo[4], fdctrl->fifo[5]); 1840 1820 1841 fdctrl->data_state |= FD_STATE_FORMAT; 1821 1842 if (fdctrl->fifo[0] & 0x80) … … 1890 1911 fdrive_t *cur_drv = get_cur_drv(fdctrl); 1891 1912 1913 FLOPPY_DPRINTF("CMD:%02x\n", fdctrl->fifo[0]); 1892 1914 if(fdctrl->reset_sensei > 0) { 1893 1915 fdctrl->fifo[0] = … … 1907 1929 fdctrl->fifo[1] = cur_drv->track; 1908 1930 fdctrl_set_fifo(fdctrl, 2, 0); 1931 FLOPPY_DPRINTF("ST0:%02x PCN:%02x\n", fdctrl->fifo[0], fdctrl->fifo[1]); 1909 1932 fdctrl->status0 = FD_SR0_RDYCHG; 1910 1933 } … … 1913 1936 { 1914 1937 fdrive_t *cur_drv; 1938 1939 FLOPPY_DPRINTF("CMD:%02x SEL:%02x NCN:%02x\n", fdctrl->fifo[0], 1940 fdctrl->fifo[1], fdctrl->fifo[2]); 1915 1941 1916 1942 SET_CUR_DRV(fdctrl, fdctrl->fifo[1] & FD_DOR_SELMASK);
Note:
See TracChangeset
for help on using the changeset viewer.