mem_size in hex

This commit is contained in:
Val 2022-12-11 23:14:46 -06:00
parent eef5e32c5d
commit 3f09e719e3

View File

@ -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__