Re: A89: 'memory violation'


[Prev][Next][Index][Thread]

Re: A89: 'memory violation'




>MEMORY VIOLATION

Trying to write to a section of memory - most likely the ROM - that you're
not allowed to write to.

>LINE 1111 EMULATOR

This shouldn't occur when programming the 89, a sure sign that you're
writing to a memory area you shouldn'r be.  Same goes for 'Illegal
Instruction'

>ADRESS ERROR

The poorly-spelled warning when you try to write to an odd-number address
(see the past 2 or 3 day's posts).

Sounds to me like you're trying to write to a buffer (or allocation, or
whatever, from tios::heapalloc) that either no longer exists or was never
initialized.  If you're using greyscale, make sure that you called the
greyscale on routine before and didn't write to the grey area after turning
it off.

Try to isolate the exact area of code where the error occurs -- use
userlib::idel_loop to insert pauses waiting for a keypress here and there.
The buggy section of code is trying to store data somewhere in the ROM that
it shouldn't be, either by writing to it directly or writing to a bad
buffer.