From 245f186fb45da6eb54e23dc6025ffb011693a4cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Rivi=C3=A8re?= Date: Mon, 22 Oct 2012 19:26:47 +0000 Subject: [PATCH] Fixed lower memory initialization. --- BaS_GNU/sources/BaS.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/BaS_GNU/sources/BaS.c b/BaS_GNU/sources/BaS.c index 2c5dc4f..faba804 100644 --- a/BaS_GNU/sources/BaS.c +++ b/BaS_GNU/sources/BaS.c @@ -127,11 +127,11 @@ void BaS(void) /* * memory setup */ - for (adr = (uint32_t *) 0x400L; adr < (uint32_t *) 0x800L; adr += 32) { - *adr = 0x0L; - *adr = 0x0L; - *adr = 0x0L; - *adr = 0x0L; + for (adr = (uint32_t *) 0x400L; adr < (uint32_t *) 0x800L; ) { + *adr++ = 0x0L; + *adr++ = 0x0L; + *adr++ = 0x0L; + *adr++ = 0x0L; } * (uint8_t *) 0xffff8007 = 0x48; /* FIXME: what's that ? */