|
|
| version 1.13, 2004/03/04 17:36:05 | version 1.15, 2005/02/07 14:46:10 |
|---|---|
| Line 242 static void init_sft(SFTREC sft) { | Line 242 static void init_sft(SFTREC sft) { |
| else { | else { |
| sft->open_mode[0] &= 0x0f; | sft->open_mode[0] &= 0x0f; |
| } | } |
| sft->dev_info_word[0] = (BYTE)(0x40 | hostdrv.stat.drive_no); | sft->dev_info_word[0] = (UINT8)(0x40 | hostdrv.stat.drive_no); |
| sft->dev_info_word[1] = 0x80; | sft->dev_info_word[1] = 0x80; |
| STOREINTELDWORD(sft->dev_drvr_ptr, 0); | STOREINTELDWORD(sft->dev_drvr_ptr, 0); |
| STOREINTELDWORD(sft->file_pos, 0); | STOREINTELDWORD(sft->file_pos, 0); |
| Line 343 static BOOL read_data(UINT num, UINT32 p | Line 343 static BOOL read_data(UINT num, UINT32 p |
| HDRVFILE hdf; | HDRVFILE hdf; |
| FILEH fh; | FILEH fh; |
| BYTE work[1024]; | UINT8 work[1024]; |
| UINT r; | UINT r; |
| hdf = (HDRVFILE)listarray_getitem(hostdrv.fhdl, num); | hdf = (HDRVFILE)listarray_getitem(hostdrv.fhdl, num); |
| Line 370 static BOOL write_data(UINT num, UINT32 | Line 370 static BOOL write_data(UINT num, UINT32 |
| HDRVFILE hdf; | HDRVFILE hdf; |
| FILEH fh; | FILEH fh; |
| BYTE work[1024]; | UINT8 work[1024]; |
| UINT r; | UINT r; |
| hdf = (HDRVFILE)listarray_getitem(hostdrv.fhdl, num); | hdf = (HDRVFILE)listarray_getitem(hostdrv.fhdl, num); |
| Line 697 static void set_fileattr(INTRST intrst) | Line 697 static void set_fileattr(INTRST intrst) |
| fail(intrst, ERR_ACCESSDENIED); | fail(intrst, ERR_ACCESSDENIED); |
| return; | return; |
| } | } |
| attr = i286_memword_read(CPU_SS, CPU_BP + sizeof(IF4INTR)) & 0x37; | attr = MEML_READ16(CPU_SS, CPU_BP + sizeof(IF4INTR)) & 0x37; |
| // 成功したことにする... | // 成功したことにする... |
| succeed(intrst); | succeed(intrst); |
| Line 970 static void do_redir(INTRST intrst) { | Line 970 static void do_redir(INTRST intrst) { |
| if (pathishostdrv(intrst, &sc) != SUCCESS) { | if (pathishostdrv(intrst, &sc) != SUCCESS) { |
| return; | return; |
| } | } |
| mode = i286_memword_read(CPU_SS, CPU_BP + sizeof(IF4INTR)); | mode = MEML_READ16(CPU_SS, CPU_BP + sizeof(IF4INTR)); |
| TRACEOUT(("do_redir: %.4x", mode)); | TRACEOUT(("do_redir: %.4x", mode)); |
| switch(mode) { | switch(mode) { |
| case 0x5f02: | case 0x5f02: |
| Line 979 static void do_redir(INTRST intrst) { | Line 979 static void do_redir(INTRST intrst) { |
| fail(intrst, 0x12); | fail(intrst, 0x12); |
| return; | return; |
| } | } |
| i286_memword_write(CPU_DS, CPU_BX + 2, 4); | MEML_WRITE16(CPU_DS, CPU_BX + 2, 4); |
| i286_memword_write(CPU_DS, CPU_BX + 4, 1); | MEML_WRITE16(CPU_DS, CPU_BX + 4, 1); |
| tmp[0] = (char)('A' + hostdrv.stat.drive_no); | tmp[0] = (char)('A' + hostdrv.stat.drive_no); |
| tmp[1] = ':'; | tmp[1] = ':'; |
| tmp[2] = '\0'; | tmp[2] = '\0'; |
| Line 1294 void hostdrv_intr(const void *arg1, long | Line 1294 void hostdrv_intr(const void *arg1, long |
| TRACEOUT(("hostdrv: AL=%.2x", intrst.r.b.al)); | TRACEOUT(("hostdrv: AL=%.2x", intrst.r.b.al)); |
| if ((intrst.r.b.al >= sizeof(intr_func) / sizeof(HDINTRFN)) || | if ((intrst.r.b.al >= NELEMENTS(intr_func)) || |
| (intr_func[intrst.r.b.al] == NULL)) { | (intr_func[intrst.r.b.al] == NULL)) { |
| return; | return; |
| } | } |