A emulator uses lots of system memory for everything. Sometimes, the system might be overloaded, and we get a memory error when trying to allocate memory for the emu. Take a look at this code:
long *myArr;
..... inside some function ......
myArr = new long[64*1024*1024]; //allocate 64MB of RAM...
That's it, I don't have any idea how do I use standard windows api with c++ to put an icon of my application on windows tray (beside the hour display). How can I do that?
can someone explain me how exactly a cache works (not necessary n64 cache, it can be an athlon/pentium cache), what is a cache page, a cache page fault and when it happens, etc?
n64 memory map
All that virtual memory map mapped by r4300i (provided by anarko docs) must be on the n64 4mb memory (8mb if we use expanser pack)? How the physical mapping works? I mean, when i get an address translated by tlb, i can't use anarko docs anymore because this address is now...
I'm here for a very old issue: optimization. The idea is to put here every trick you have for optimizing for fast code (c level or assembler level; processor blended code or not). I'm sure it'll be a long discussion... my best c level tricks (i think everyone knows them) are:
1) totally unroll...
I was reading that r4300i rev 0.3 pdf to make the tlb emulation... when I was doing that funtion that compares vpn to translate virt-phis address, I got two questions that are poorly explained there:
when comparing the vpn's, how can I compare a 19-bit number (vpn2 on tlb) with a number that...
Hello everybody, Im new here and Im doing a new n64 emulator that runs fully on interpreter mode (I know it's slow). Im planning to emulate every little thing on n64, including a fully tottally emulated main processor (r4300i); when doing that funtion that calls the opcodes I'm planning to use a...