Fill.asm - illegal memory address 24704

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Fill.asm - illegal memory address 24704

OppaErich
This post was updated on .
Hi,

I thought that would be easy...

The screen is 256 by 512 pixels, right ?

One word is 16bit or pixels so 512 / 16 = 32, right still ?

But I get an illegal memory address 24704 error when my row counter hits 192. I did expect an one-off but not that much.

Regards,
Stephan

Edit: I made just one loop from SCREEN to KBD-1 now. This works but I'm still wondering why row and column loops were off that much.
Reply | Threaded
Open this post in threaded view
|

Re: Fill.asm - illegal memory address 24704

cadet1620
Administrator
Right.  Highest Screen address = 16384 + 256*32 - 1 = 24575 = KBD-1.

You are off by 128. I am not seeing an obvious way to do that...