]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - avr/main.c
loadcpm3(): set environment variable 'cpm3_scb' with base of scb (physical address)
[z180-stamp.git] / avr / main.c
index 7796a36bf4d0245c5c6894eec3011d46cb5b8be5..423b48a7806e8a11ad7f528fdf99152af3c8f83b 100644 (file)
@@ -31,7 +31,7 @@ uint8_t mcusr __attribute__ ((section (".noinit")));
 __attribute__ ((naked)) __attribute__ ((section (".init3")))
 void preset_ram (void)
 {
-       for (uint8_t *p = RAMSTART; p <= (uint8_t *) RAMEND; p++)
+       for (uint8_t *p = (uint8_t *) RAMSTART; p <= (uint8_t *) RAMEND; p++)
                *p = 0xdd;
 
 }