This combines my iso9660 parsing code, with all of the prior gdrom packet interface / command code. The example, on real Dreamcast hardware, displays the first 2048 bytes [1] of every file in the root directory on the serial console. [1] or the size of the file, whichever is smaller
437 B
437 B
| 1 | address | size | name | r/w | description |
|---|---|---|---|---|---|
| 2 | 0018 | 1 | alternate_status | R | |
| 3 | 0018 | 1 | device_control | W | |
| 4 | 0080 | 2 | data | RW | |
| 5 | 0084 | 1 | error | R | |
| 6 | 0084 | 1 | features | W | |
| 7 | 0088 | 1 | interrupt_reason | R | |
| 8 | 0088 | 1 | sector_count | W | |
| 9 | 008C | 1 | sector_number | R | |
| 10 | 0090 | 1 | byte_count_low | RW | |
| 11 | 0094 | 1 | byte_count_high | RW | |
| 12 | 0098 | 1 | drive_select | RW | |
| 13 | 009C | 1 | status | R | |
| 14 | 009C | 1 | command | W |