I tried others ways :
- 2 MB mode (1chip switch) => same error message
- tried to use mapper.com (to allocate different memory place => same error message
I don't have any tool to check free RAM ... If you've got one, i'm interested.
is a bug in a page detection routine, when all page numers @ mapper are available with RAM, so if your routine is looking for a fail or a repeated page on some page number, in way to know UNTIL which page is RAM available, that method just fail because it never finds one.
other thing, is as the page register is 8bit, if you hasn't care, it will overflow and shows zero value for indicating 256 pages availables.
A good routine uses 16bits pagecount register. And that way is easily adaptable for dealing with 16bits mappers.