Fix a few formatting things

This commit is contained in:
Ry 2022-10-26 17:00:56 -07:00
parent 23478340d2
commit 3608796e88

View File

@ -521,7 +521,7 @@ static uint32_t vm_read_across(vm_t *vm, uint32_t address, int size) {
void vm_write_across(vm_t *vm, uint32_t address, int size, uint32_t value) {
// write the first page
int bytes = 0x1000 - (address&0xFFF);
int bytes = 0x1000 - (address & 0x00000FFF);
uint8_t *ptr = vm_findmemory(vm, address, bytes, true);
while (bytes) {
@ -534,7 +534,7 @@ void vm_write_across(vm_t *vm, uint32_t address, int size, uint32_t value) {
// write the second page
bytes = (address+size)&0xFFF;
bytes = (address + size) & 0x00000FFF;
address = (address + size) & 0xFFFFF000;
ptr = vm_findmemory(vm, address, bytes, true);