trunk/src/mess/drivers/pc9801.c
r24764 | r24765 | |
316 | 316 | |
317 | 317 | ==== |
318 | 318 | |
319 | | Documentation notes (for unemulated stuff, provided by ): |
| 319 | Documentation notes (for unemulated stuff, courtesy of T. Kodaka and T. Kono): |
320 | 320 | |
321 | 321 | IDE: |
322 | 322 | (r/w) |
r24764 | r24765 | |
340 | 340 | 0x074C |BYTE| W |Digital Output Register |03F6h |
341 | 341 | 0x074E |BYTE| R |Digital Input Register |03F7h |
342 | 342 | |
| 343 | Video F/F (i/o 0x68): |
| 344 | KAC mode (video ff = 5) is basically how the kanji ROM could be accessed, 1=thru the CG window ports, 0=thru the kanji |
| 345 | window RAM at 0xa4***. |
| 346 | My guess is that the system locks up or doesn't have any data if the wrong port is being accessed. |
| 347 | |
| 348 | Ext Video F/F (i/o 0x6a): |
| 349 | 0000 011x enables EGC |
| 350 | 0000 111x enables PC-98GS |
| 351 | 0010 000x enables multicolor (a.k.a. 256 colors mode) |
| 352 | 0010 001x enables 65'536 colors |
| 353 | 0010 010x 64k color palette related (?) |
| 354 | 0010 011x full screen reverse (?) |
| 355 | 0010 100x text and gfxs synthesis (?) |
| 356 | 0010 101x 256 color palette registers fast write (?) |
| 357 | 0010 110x 256 color overscan (?) |
| 358 | 0100 000x (0) CRT (1) Plasma/LCD |
| 359 | 0100 001x text and gfxs right shifted one dot (undocumented behaviour) |
| 360 | 0100 010x hi-res mode in PC-9821 |
| 361 | 0110 000x EEGC mode |
| 362 | 0110 001x VRAM config (0) plain (1) packed |
| 363 | 0110 011x AGDC mode |
| 364 | 0110 100x 480 lines |
| 365 | 0110 110x VRAM bitmap orientation (0) MSB left-to-right LSB (1) LSB left-to-right MSB |
| 366 | 1000 001x CHR GDC clock (0) 2,5 MHz (1) 5 MHz |
| 367 | 1000 010x BMP GDC clock |
| 368 | 1000 111x related to GFX accelerator cards (like Vision864) |
| 369 | 1100 010x chart GDC operating mode (?) |
| 370 | (everything else is undocumented / unknown) |
| 371 | |
343 | 372 | ****************************************************************************************************/ |
344 | 373 | |
345 | 374 | #include "emu.h" |
r24764 | r24765 | |
2262 | 2291 | /* TODO: is mapping correct? */ |
2263 | 2292 | READ16_MEMBER(pc9801_state::pc9801rs_ide_io_1_r) |
2264 | 2293 | { |
2265 | | |
2266 | 2294 | return m_ide->read_cs0(space, offset >> 1, offset & 1 ? 0xff00 : 0x00ff) >> 8; |
2267 | 2295 | } |
2268 | 2296 | |