Fix a few formatting things
This commit is contained in:
parent
23478340d2
commit
3608796e88
|
@ -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) {
|
void vm_write_across(vm_t *vm, uint32_t address, int size, uint32_t value) {
|
||||||
// write the first page
|
// write the first page
|
||||||
|
|
||||||
int bytes = 0x1000 - (address&0xFFF);
|
int bytes = 0x1000 - (address & 0x00000FFF);
|
||||||
uint8_t *ptr = vm_findmemory(vm, address, bytes, true);
|
uint8_t *ptr = vm_findmemory(vm, address, bytes, true);
|
||||||
|
|
||||||
while (bytes) {
|
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
|
// write the second page
|
||||||
|
|
||||||
bytes = (address+size)&0xFFF;
|
bytes = (address + size) & 0x00000FFF;
|
||||||
address = (address + size) & 0xFFFFF000;
|
address = (address + size) & 0xFFFFF000;
|
||||||
|
|
||||||
ptr = vm_findmemory(vm, address, bytes, true);
|
ptr = vm_findmemory(vm, address, bytes, true);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user