MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / copyromdata

Function copyromdata

src/debug.cpp:5826–5850  ·  view source on GitHub ↗

read one byte from expansion autoconfig ROM

Source from the content-addressed store, hash-verified

5824
5825// read one byte from expansion autoconfig ROM
5826static 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
5852static void show_exec_lists (TCHAR *t)
5853{

Callers 1

show_exec_listsFunction · 0.85

Calls 1

get_byte_debugFunction · 0.70

Tested by

no test coverage detected