ImageCraft compiler and memset function, paging problem

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

After I switched from HiTech to ImageCraft compiler I found functional errors in the program, which previously worked fine. A closer investigation showed, that a line:

   

 memset (displayLine, ' ', DISPLAY_SIZE);

   

had no effect. However if, before the call to memset, I load the MVW_PP register with displayLine's page number, the code works as expected.

   

Is it a bug in the memset function (caused by overlooking the fact that the new compiler handles paging differently), or should I just change something in the code or settings ?

   

TIA for help.

0 Likes
2 Replies