mirror of
https://git.soft.fish/val/MicroCorruption.git
synced 2024-11-22 12:15:59 +00:00
mem_size in hex
This commit is contained in:
parent
eef5e32c5d
commit
3f09e719e3
@ -4,7 +4,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
void * mem;
|
||||
const int mem_size = 65536;
|
||||
const int mem_size = 0x10000;
|
||||
|
||||
void mem_create() __attribute__ ((constructor));
|
||||
void mem_destroy() __attribute__ ((destructor));
|
||||
@ -18,7 +18,7 @@ void mem_destroy() {
|
||||
}
|
||||
|
||||
void * mem_get(short addr) {
|
||||
return mem+(addr%mem_size);
|
||||
return mem + (addr % mem_size);
|
||||
}
|
||||
|
||||
#endif // __uC_MEM_H__
|
||||
|
Loading…
Reference in New Issue
Block a user