nspire-z80
nspire-z80 copied to clipboard
Program doesn't work
Rom works fine on wabbitemu (it's a ti 84 se rom), but I open it on this emulator and this happens:
I can exit pressing esc, but that's about it.
I'm using a ti nspire cx ii cas with ndless 5.3

pinging @Vogtinator just in case
Yeah, this looks like it's the usual HW-W-like LCD format mismatch. The issue with the CX II LCD in particular is that there's extra HW which performs rotation, so when writing to the existing framebuffer it's like a 320x240 one, but when changing to a different location it's actually 240x320... That unfortunately needs specific code to handle the is_cx2 case here.
Is this project maintained?
No (read the author profile bio...), a fork would be needed to update the code to use the latest SDK stuff
There is already an is_hww clause in the lcd code that seems to rotate the framebuffer. How would an is-cx2 differ from this, and what would need to be done to implement it?
There is already an
is_hwwclause in the lcd code that seems to rotate the framebuffer. How would anis-cx2differ from this, and what would need to be done to implement it?
IIRC it's almost the same. It might have to do an X/Y flip in addition to the 240x320 conversion, but I'm not entirely sure.
You could try
if(is_hww) {
return x * 240 + y;
} else if(is_cx2) {
return (319-x) * 240 + 239 - y;
} else {
return y * 320 + x;
}