Search found 1381 matches

by Jubatian
Fri Jun 28, 2019 7:06 pm
Forum: Uzebox Derivatives & open source consoles
Topic: MicroDuo if ever (2 x ATmega1284 system)
Replies: 13
Views: 6855

Re: MicroDuo if ever (2 x ATmega1284 system)

Wow, quite some ideas there! How about a 9th color pin that forces the output to white? bst/bld could be used with that pin to add some kind of overlay for cheap, or quicker 1bpp output. I don't see too much point in doing that as I already have a 2.25 cycles / pixel 1bpp mode with arbitrary FG / BG...
by Jubatian
Tue Jun 25, 2019 6:22 pm
Forum: Uzebox Derivatives & open source consoles
Topic: MicroDuo if ever (2 x ATmega1284 system)
Replies: 13
Views: 6855

Re: MicroDuo if ever (2 x ATmega1284 system)

Can you really pump 16bits transfers on a 1284 tho? The extra bits can certainly be useful for other things such as sending interrupts or command/data protocol control flags but if it's synchronized burst transfers then only 8 wires are needed (or 8 resistors to be safe) ld r19, z+ out PORT, r19 (n...
by Jubatian
Mon Jun 24, 2019 7:09 pm
Forum: Games & Demos
Topic: Super Mario Land
Replies: 21
Views: 11371

Re: Super Mario Land

I had these lines in my Makefile: LDFLAGS += -Wl,--relax # Enables linker relaxations. LDFLAGS += --param inline-call-cost=2 # Can reduce flash usage Once they were commented out I got blue bars. I was on a quest some time ago to find extra flash wherever I could find it and these flags helped. I w...
by Jubatian
Sun Jun 23, 2019 9:30 am
Forum: Uzebox Derivatives & open source consoles
Topic: MicroDuo if ever (2 x ATmega1284 system)
Replies: 13
Views: 6855

Re: MicroDuo if ever (2 x ATmega1284 system)

Just a bit of progress report. No HW yet, I am still not quite there, but I hope I will eventually get all the stuff needed for it. At least in a month I will get a lot of things which I had remaining in Hungary, along them a few things which are useful for actual HW building. However there are two ...
by Jubatian
Sun Jun 23, 2019 8:51 am
Forum: Games & Demos
Topic: Super Mario Land
Replies: 21
Views: 11371

Re: Super Mario Land

uimgview_dragons loaded just fine. This is an SPIRAM video mode? That means this confirms that reading from SPIRAM works. Also, I'm guessing that a new image is loaded from SD for each slide. Yes, it is SPIRAM, I posted it since the copy from SD to SPI RAM uses the same mechanism (function calls an...
by Jubatian
Sat Jun 22, 2019 9:53 am
Forum: Games & Demos
Topic: Super Mario Land
Replies: 21
Views: 11371

Re: Super Mario Land

I've shown my read code before for the SD card. The same read code worked for two other games. So, perhaps I am not init-ing the sd correctly or adding the libraries in the wrong order or something. I'm running out of ideas. Just a cross-check: Does the Square Kernel's image viewer work? ( attachme...
by Jubatian
Wed Jun 19, 2019 10:21 pm
Forum: Games & Demos
Topic: Super Mario Land
Replies: 21
Views: 11371

Re: Super Mario Land

So, mode 52 has smaller rom tile sizes and ram tile sizes but the mode itself requires more flash? Yes. It is 2bpp (not 4bpp), just right for the GameBoy, which means ROM tiles and RAM usage is quarter of that of Mode 3. As you describe the problems, the latter seems also important as you can have ...
by Jubatian
Wed Jun 19, 2019 6:58 pm
Forum: Games & Demos
Topic: Super Mario Land
Replies: 21
Views: 11371

Re: Super Mario Land

I have around 600 tiles. Is that too many for mode 52? I didn't even consider that you were swapping tilesets. In that case Mode 52 is the clear winner. If you had only the typical one Mode 3 set, which is somewhere around 14K (224 ROM tiles), then the Mode 52 gain would be negligible (224 Mode 52 ...
by Jubatian
Tue Jun 18, 2019 7:05 pm
Forum: Games & Demos
Topic: Super Mario Land
Replies: 21
Views: 11371

Re: Super Mario Land

Huh, this looks neat! :) I was thinking about which video mode might be underneath, but it may not matter that much. The Gameboy would fit particularly well for Mode 52, however if you are primarily tile count constrained, it doesn't help. Here you certainly won't quite have any sprite drawing bottl...
by Jubatian
Sun Jun 09, 2019 9:43 am
Forum: Programming & Software
Topic: [solved] SPIF gets cleared if ANY interrupt happens?
Replies: 14
Views: 6773

Re: SPIF gets cleared if ANY interrupt happens?

SD_SendCommand(SDCARD_COMMAND_ACMD41_START_SD, (1 << 30)); No L suffix. headdesk I gotta work on remembering int constants are 16bits. Didn't the complier send a warning on this one? It seems quite trivial for it to notice. If you don't do it already, it could be a good idea to complile with all wa...