Skip to content

Commit 2464656

Browse files
committed
send chunk addresses to emulator
1 parent b18135c commit 2464656

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

software/player/src/segavideo_player.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ static void prepNextChunk(const ChunkInfo* currentChunk,
184184
currentChunk->end, regionMask, regionSize);
185185
parseChunk(chunkStart, nextChunk);
186186
kprintf("Next chunk: %p => %p\n", nextChunk->start, nextChunk->end);
187+
# define KINETOSCOPE_PORT_HACK0 ((volatile uint16_t*)0xA13014) // HACK
188+
# define KINETOSCOPE_PORT_HACK1 ((volatile uint16_t*)0xA13016) // HACK
189+
*KINETOSCOPE_PORT_HACK0 = (((uint32_t)chunkStart) & 0xffff0000) >> 16;
190+
*KINETOSCOPE_PORT_HACK1 = (((uint32_t)chunkStart) & 0xffff);
187191
}
188192
}
189193

0 commit comments

Comments
 (0)