EverDrive-64 v3: Difference between revisions

m
nits on USB Serial Communication
(describe USB Serial Communication)
m (nits on USB Serial Communication)
Line 357:
uintptr_t i;
 
/* flush D-cache (primary data hit writeback invalidate; 16 bytes per D-cache-line on N64) */
for(i = (uintptr_t)src & ~15; i < (uintptr_t)src + (uintptr_t)len; i += 16) {
__asm volatile("cache 0x15, %0" :: "m"(*(uint32_t*)i));
Line 381:
 
...
uint8_t __attribute((aligned(8))) buffer[512];
/* ... some modification to "buffer" */
rdram_to_host(buffer, 0x00400000 - 2048, 512); /* using last ROM area for communication */
Line 403:
uintptr_t i;
 
/* invalidate D-cache (primary data hit invalidate; 16 bytes per D-cache-line on N64) */
for(i = (uintptr_t)dst & ~15; i < (uintptr_t)dst + (uintptr_t)len; i += 16) {
__asm volatile("cache 0x11, %0" :: "m"(*(uint32_t*)i));
Line 435:
 
...
uint8_t __attribute((aligned(8))) buffer[512];
host_to_rdram(buffer, 0x00400000 - 2048, 512); /* using last ROM area for communication */
/* "buffer" is modified */
24

edits