read one byte from expansion autoconfig ROM
| 5824 | |
| 5825 | // read one byte from expansion autoconfig ROM |
| 5826 | static void copyromdata(uae_u8 bustype, uaecptr rom, int offset, uae_u8 *out, int size) |
| 5827 | { |
| 5828 | switch (bustype & 0xc0) |
| 5829 | { |
| 5830 | case 0x00: // nibble |
| 5831 | while (size-- > 0) { |
| 5832 | *out++ = (get_byte_debug(rom + offset * 4 + 0) & 0xf0) | ((get_byte_debug(rom + offset * 4 + 2) & 0xf0) >> 4); |
| 5833 | offset++; |
| 5834 | } |
| 5835 | break; |
| 5836 | case 0x40: // byte |
| 5837 | while (size-- > 0) { |
| 5838 | *out++ = get_byte_debug(rom + offset * 2); |
| 5839 | offset++; |
| 5840 | } |
| 5841 | break; |
| 5842 | case 0x80: // word |
| 5843 | default: |
| 5844 | while (size-- > 0) { |
| 5845 | *out++ = get_byte_debug(rom + offset); |
| 5846 | offset++; |
| 5847 | } |
| 5848 | break; |
| 5849 | } |
| 5850 | } |
| 5851 | |
| 5852 | static void show_exec_lists (TCHAR *t) |
| 5853 | { |
no test coverage detected