Hi, I got another dumb question or two...
Building a ROM with Mode 1. Everywhere I look, I keep seeing "its up to the developer to decide where to put stuff", but I'm trying to set up VRAM in such a way where everything has their own space without having to overlap. Is that even possible?
Initially I was working with something like...
For whatever reason, mesen2 considers VRAM to be 64k, but a lot of other documentation also says its actually 32k words... and the math is driving me nuts.
So I go through and set up BG1 and BG2, base address and tilemap address look right. No matter what I do, I can't seem to get BG3 to use the right address range. Then there's the whole "abc regions must be xyz aligned", so I shuffled around the "4k" of empty space and I think this would be correct, if my understanding of whether the address space is actually 32k words or not.
Assuming I don't actually have as much space as I had originally hoped, would someone be able to recommend a VRAM memory map I can use? I guess I don't mind if BG1/2 CHR overlaps, but I would like to allocate as much memory as equally as possible.
Thanks for the help, I'll try not to make it a habit of asking stupid questions over and over again.

Building a ROM with Mode 1. Everywhere I look, I keep seeing "its up to the developer to decide where to put stuff", but I'm trying to set up VRAM in such a way where everything has their own space without having to overlap. Is that even possible?
Initially I was working with something like...
Code:
; bg1 - 4bpp - 8k chr - vram "0000-1fff" - 512 tiles ; bg2 - 4bpp - 8k chr - vram "2000-3fff" - 512 tiles ; tilemap1 - 8k - vram "4000-5fff" - 64x64 ; tilemap2 - 8k - vram "6000-7fff" - 64x64 ; bg3 - 2bpp - 4k chr - vram "8000-8fff" - 256 tiles ; tilemap3 - 8k - vram "9000-afff" - 32x32 ; "b000-bfff" intentionally left blank ; spr1 - 4bpp - 8k chr - vram "c000-dfff" ; spr2 - 4bpp - 8k chr - vram "e000-ffff"
So I go through and set up BG1 and BG2, base address and tilemap address look right. No matter what I do, I can't seem to get BG3 to use the right address range. Then there's the whole "abc regions must be xyz aligned", so I shuffled around the "4k" of empty space and I think this would be correct, if my understanding of whether the address space is actually 32k words or not.
Assuming I don't actually have as much space as I had originally hoped, would someone be able to recommend a VRAM memory map I can use? I guess I don't mind if BG1/2 CHR overlaps, but I would like to allocate as much memory as equally as possible.
Thanks for the help, I'll try not to make it a habit of asking stupid questions over and over again.
Statistics: Posted by bunder — Fri Jan 26, 2024 2:38 am — Replies 6 — Views 175