mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2024-12-29 09:23:53 +00:00
Reorganized loose files in src into src/recomp folder
This commit is contained in:
parent
244d37e3c8
commit
f324253052
@ -85,23 +85,24 @@ set (SOURCES
|
||||
${CMAKE_SOURCE_DIR}/ultramodern/timer.cpp
|
||||
${CMAKE_SOURCE_DIR}/ultramodern/ultrainit.cpp
|
||||
|
||||
${CMAKE_SOURCE_DIR}/src/ai.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/cont.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/dp.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/eep.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/euc-jp.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/flash.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/math_routines.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/overlays.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/pak.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/pi.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/ultra_stubs.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/ultra_translation.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/print.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/recomp.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/rt64_layer.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/sp.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/vi.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/recomp/ai.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/recomp/cont.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/recomp/dp.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/recomp/eep.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/recomp/euc-jp.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/recomp/flash.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/recomp/math_routines.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/recomp/overlays.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/recomp/pak.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/recomp/pi.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/recomp/ultra_stubs.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/recomp/ultra_translation.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/recomp/print.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/recomp/recomp.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/recomp/rt64_layer.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/recomp/sp.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/recomp/vi.cpp
|
||||
|
||||
${CMAKE_SOURCE_DIR}/src/main/main.cpp
|
||||
|
||||
${CMAKE_SOURCE_DIR}/src/ui/ui_renderer.cpp
|
||||
|
@ -38,6 +38,11 @@ extern "C" void osCreatePiManager_recomp(uint8_t* rdram, recomp_context* ctx) {
|
||||
|
||||
void do_rom_read(uint8_t* rdram, gpr ram_address, uint32_t physical_addr, size_t num_bytes) {
|
||||
// TODO use word copies when possible
|
||||
|
||||
// TODO handle misaligned DMA
|
||||
assert((physical_addr & 0x1) == 0 && "Only PI DMA from aligned ROM addresses is currently supported");
|
||||
assert((ram_address & 0x7) == 0 && "Only PI DMA to aligned RDRAM addresses is currently supported");
|
||||
assert((num_bytes & 0x1) == 0 && "Only PI DMA with aligned sizes is currently supported");
|
||||
uint8_t* rom_addr = rom.get() + physical_addr - rom_base;
|
||||
for (size_t i = 0; i < num_bytes; i++) {
|
||||
MEM_B(i, ram_address) = *rom_addr;
|
Loading…
Reference in New Issue
Block a user