| 842 | } |
| 843 | |
| 844 | void KMemory::writeq(U32 address, U64 value) { |
| 845 | #if !defined(UNALIGNED_MEMORY) |
| 846 | if ((address & 0xFFF) < 0xFF9) { |
| 847 | int index = address >> 12; |
| 848 | MMU& mmu = data->mmu[index]; |
| 849 | if (mmu.canWriteRam) { |
| 850 | *(U64*)(&(ramPageGet((RamPage)mmu.ramIndex)[address & 0xFFF])) = value; |
| 851 | return; |
| 852 | } |
| 853 | } |
| 854 | #endif |
| 855 | writed(address, (U32)value); writed(address + 4, (U32)(value >> 32)); |
| 856 | } |
| 857 | |
| 858 | void KMemory::writed(U32 address, U32 value) { |
| 859 | if ((address & 0xFFF) < 0xFFD) { |