The snapshot function performs a full copy of the RAM state, which is already properly aligned.
Your doubt is quite pertinent, and it could be a real case scenario, but the real reason behind why this isn't fully working is because we also have to save the state of Kernel Object Managers (event flags, semaphores, mutexes).
These are all handled inside the emulator and never written to memory, so I'm currently trying to figure out a way to save all this into a file without consuming a massive ammount of space.
The RAM snapshot alone is already about 20MB wide and we still need to add the state of the CPU registers and the state of the Kernel Object Managers.
Your doubt is quite pertinent, and it could be a real case scenario, but the real reason behind why this isn't fully working is because we also have to save the state of Kernel Object Managers (event flags, semaphores, mutexes).
These are all handled inside the emulator and never written to memory, so I'm currently trying to figure out a way to save all this into a file without consuming a massive ammount of space.
The RAM snapshot alone is already about 20MB wide and we still need to add the state of the CPU registers and the state of the Kernel Object Managers.
