diff --git a/common/mem.h b/common/mem.h index 8899e35..37d6343 100644 --- a/common/mem.h +++ b/common/mem.h @@ -4,7 +4,7 @@ #include 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__