CSDb Discussions: Demarc C64 for Android /Case
Sat, 05 Dec 2026 09:40:17 +0100All working nicely so far. http://www.iancunningham.org.uk/demarc.png
Última actualización: 05.12.2026 10:42 · RSS ↗
All working nicely so far. http://www.iancunningham.org.uk/demarc.png
meatproxy detected. what a waste.
Thanks for reading it, breaks and all! Yeah, as the byline says, proof written with my buddy Claude. The length is a fair knock, but it's all part of the baking process, cuz I'm trying to make sure the questions a skeptic might ask are covered. I'll work out an argument in brief, probably along the lines of your outline, so people can get the gist of it without having to wade through the details unless they really like it. Your sketch is basically Lemma 5. 0-6 fits two abso stores, 1-7 an abso store before the fetches and an idx one after, no loads either way, so d011 only ever gets A, X, Y or A and X. Most of the rest is stuff your outline takes as given, spelled out because I was going for a fleshed out theorem. Overbaked?
Phew, that proof is massive! Strategic breaks needed for getting through the whole of it ;) But I guess some parts of it are "written" by AI... would at least explain why it's that large. Nontheless, respect for bringing this up! If I'd try to "prove" that it cannot be done, I'd try to do this by focussing on available raster cycles per line. We need to change $D018 and $D011 per line (more precisely: in most of the lines, in every 8th line, the VRam must not necessarily be set anew), and since there are only 3 registers and one SAX giving a 4th value, we need to be able to perform a register change within the remaining raster time. Now, with 7 active sprites, we can decide which one should be left out: choosing an inbetween-sprite doesn't make much sense, because the additional cycles won't become accesible. Choosing sprite 7 (to be left out!) leaves us with 8 cycles free. This allows for two STORE-commands, but a register change won't fit. Choosing sprite 0 will give us 5 cycles after the sprite DMA cycles and 3 cycles before the DMA-overtake cycles. This does not allow for any LOAD-instruction; choosing Ninja's approach by throwing in an undocumented RMW-instruction won't do either, since all of them start with 4 R-cycles, forcing the W-cycles to be moved after the sprite DMA - and not ON the DMA-overtake cycles as in Ninjas approach. So, the core argument is: we need (in at least one rasterline) a register change, but no matter which sprite will be left out, there are simply not enough raster cycles free to perform such a change. QED :D
Quoting CopyfaultThis being said, make me happy and prove me wrong ;) I can do the next best thing: a proof that you're right. Rather than keep trying to slap a seventh sprite under a proper FLI, I worked from the other direction and tried to prove that it can't be done: https://www.obliterator918.com/mosaicus/ntsc-seven-sprite-fli/n.. It's a draft, and I'd like it checked by people who have been looking at this longer than me. I've tried to be as rigorous as I can. The premises are listed, the timing they are based on was tested on a 6567R8 and an 8562. There are scripts and programs included. The bottom line, if it holds up: hires FLI with its own colors on every line and the bug on columns 0-2 can't have seven sprites under it on NTSC. It's a theorem, not a guess. The scope section lists what it doesn't cover (multicolor FLI, 6567R56A, etc). I know NTSC isn't that interesting to everyone here, but it's ingrained in my brain from youth, which is why I'm doing this. There's a second document. It counts how many distinct pictures each non-interlaced hires format can show. That's a count of possible pictures, not a measure of which one looks best: https://www.obliterator918.com/mosaicus/ntsc-seven-sprite-fli/h.. Of the formats I counted, as released, MUCSU-FLI-7 comes out on top. Most of that is Algo's layout. MUCSU-FLI-7 is MUCSU-FLI-SUPER with an option that only works on NTSC: the six sprites move one column right so the last column isn't bare, and a seventh sits under the bug columns at the cost of moving the bug one column right. That doesn't make it the best format. On paper, mixing sprite kinds (some hires, some multicolor) would raise the count for both formats, but neither variant is built. The four left columns have only four or five colors, in 4-pixel steps. But, it does give a pixel artist another option. That strip can be used like sprites in an open border, or painted one color so the border can be any color around a 288-pixel-wide picture. On PAL, Algo's MUCSU-FLI-SUPER is the GOAT. I know of nothing built that does more. The best I found on paper, in the capacity study, is about 6% above it, but I haven't built it and AFAIK nobody has.
Quoting Copyfault So, for me it still holds: with the extra cycles sitting at the spots where they are in NTSC, I think it is not possible to have proper FLI with 7 sprites over it. This being said, make me happy and prove me wrong ;) Thanks everyone for straightening me out on the "holy grail" aspect of "proper fli." I haven't let this go just yet. More in a bit. Hopefully at least 75% baked. And next time I will just post a link here for review and ask you guys to brutalize it rather than releasing anything. ;-) I thought I learned a lot about timing when I did Galactic Rasterbar Power's "debug borders" color switching timing. That's nothing compared to this exercise.
Hi. Hope I do not I overstep for telling you my thoughts, since I've only just been here for a couple of days now. Love doing translations and writing. I'm okayish with pixels. Desperately want to get better with music, but I may not have a talent for that. Now. About the AI. I feel that a good game or good tool is a good game or good tool, irrespective of how it is made. But I do see the same slob. Samey things. Lower quality. But variances in quality are normal. Someone's passion project will be ahead that same person's quick'n dirty job. Or ai job. You see it in the result. Human made always wins for me, even "crappy" ones can be endearing. I value them for the heartblood that's clearly in there. What I have put on the archive so far, is AI assisted, or vibe coded, but I had these in my head for ages. I hope they're okay. I did try to do this by myself. And I just wasn't able to. And perhaps too old to still learn properly. Getting help from others: too niche. Not enough interest to find a person who would help with the code. I feel a sense of shame for not having been able to do all of this, myself. I also feel a sense of accomplishment, because I did notice that people actually use the stuff. That's all I really hoped for. There is a nother, more personal reason, but I'll skip over that. All that negative responses to ai, the reasons why, I fully understand them. I hope that, if you go ahead and do something about the ai software, it works out well for everybody. A measured approach, maybe.
Updated, now with more options in long press menu etc
@cristopherjam : maybe it would be nice if you could add something about your approach to my little paper?
When i said "halfbaked" i had in mind what Copyfault said.
I'll add a long press option and wrap or truncate the info box... I guess it doesn't even fit in landscape?
Nice work finally cracking this one, Algorithm. I did some brute force searching for 16 rasterline loops back in October 2019 with about 500 lines of Rust (took about 60 seconds on CPU to find a shedload of solutions for the d011/d018 updates, each with a few spare cycles every 8 lines for sprite hammering), plus some hand planning for how to update the Y position of sprite 6, and while I managed to get 200 lines of "6 sprites over FLI" I never managed to find a memory layout that would would avoid reusing some of the sprite definitions in the lower part of the screen. I always planned to get back to it "one of these days" but maybe now I'll just downgrade that to "I really should write an article about how I managed to get as close as I did" :)
What Copyfault said.