Search found 39 matches

by LittleRain
Thu Oct 08, 2020 3:38 pm
Forum: SNESdev
Topic: CA65 Memory Map Config and Header for 32Mb ROM
Replies: 12
Views: 4658

Re: CA65 Memory Map Config and Header for 32Mb ROM

32 Mbit is 4 MByte. I believe the max for LoROM is 2 MByte (16 Mbit). That would be 64 banks of $8000 (32kB). Think about it conceptually. Banks $7e and $7f are the WRAM banks. Banks $70-7d are reserved for SRAM. So you couldn't have 128 ROM banks (0-$7f). Having these out of order might be a probl...
by LittleRain
Wed Oct 07, 2020 10:08 pm
Forum: SNESdev
Topic: CA65 Memory Map Config and Header for 32Mb ROM
Replies: 12
Views: 4658

CA65 Memory Map Config and Header for 32Mb ROM

Sorry about all this text, I put my main questions in block quotes. [/u][/b] Just wondering how I would go about creating a memory map for a 32Mb lorom. I know I'm not going to use the 32Mb of space, but am still wondering how this would be done. Would I really need to create 127 banks in the MEMOR...
by LittleRain
Mon Oct 05, 2020 3:57 pm
Forum: SNESdev
Topic: CA65 Bit-shift During Compilation Isn't Working Properly
Replies: 22
Views: 9489

Re: CA65 Bit-shift During Compilation Isn't Working Properly

Came across a problem with the compiler while playing with C style macros. I'm just trying to create some macros that will convert modern colour values into the SNES's BGR format. I have one that converts RGB8 to BGR, and another for RGB5. Now I'm trying to create a macro which converts a HEX value ...
by LittleRain
Wed Sep 30, 2020 8:45 pm
Forum: SNESdev
Topic: CA65 Bit-shift During Compilation Isn't Working Properly
Replies: 22
Views: 9489

Re: CA65 Bit-shift During Compilation Isn't Working Properly

Sprite and background tiles can't be anywhere in VRAM, but you can configure where they're found. Wait really? Perhaps a better way to phrase it is "they can't be everywhere " ? On the Genesis, with its 64KB of VRAM, each tile takes 32 bytes. 65536 bytes of RAM ÷ 32 bytes per tile = 2048 ...
by LittleRain
Wed Sep 23, 2020 8:02 pm
Forum: SNESdev
Topic: CA65 Bit-shift During Compilation Isn't Working Properly
Replies: 22
Views: 9489

Re: CA65 Bit-shift During Compilation Isn't Working Properly

Sprite and background tiles can't be anywhere in VRAM, but you can configure where they're found. Wait really? Now we're going to actually upload data to the Video RAM. Now, there's 2 things that need to go to VRAM, and that's the tile data itself, and the tile map, which says where specific tiles ...
by LittleRain
Wed Sep 23, 2020 7:50 pm
Forum: SNESdev
Topic: CA65 Bit-shift During Compilation Isn't Working Properly
Replies: 22
Views: 9489

Re: CA65 Bit-shift During Compilation Isn't Working Properly

On another note, does anyone know where I can find a map of VRAM/CGRAM/OAM? And can I store my tiles/sprites anywhere, or do they have to be in a certain location in VRAM? I'm just not sure where I should store the data in memory, and most tutorials seem to just do "lets put this here, and that...
by LittleRain
Tue Sep 22, 2020 1:55 pm
Forum: SNESdev
Topic: CA65 Bit-shift During Compilation Isn't Working Properly
Replies: 22
Views: 9489

Re: CA65 Bit-shift During Compilation Isn't Working Properly

The assembler seems to have been in 16-bit mode, but the debugger (CPU?) is in 8-bit mode. Also remember that e.g. telling the assembler to use .A16 does not automatically put the CPU in 16-bit accumulator mode. It's up to the programmer to ensure that mode you tell the assembler to use matches the...
by LittleRain
Mon Sep 21, 2020 8:28 pm
Forum: SNESdev
Topic: CA65 Bit-shift During Compilation Isn't Working Properly
Replies: 22
Views: 9489

Re: CA65 Bit-shift During Compilation Isn't Working Properly

Pretty sure you're missing some #s. LDA num = load .A from address num; while LDA #num = load immediate value into .A. Ah ok that is it. I did have a # to start, but it was giving me errors. Must have been something else that I had fixed. Oh I remember, it was giving me 2 errors, one in main.s(wher...
by LittleRain
Mon Sep 21, 2020 1:58 am
Forum: SNESdev
Topic: CA65 Bit-shift During Compilation Isn't Working Properly
Replies: 22
Views: 9489

CA65 Bit-shift During Compilation Isn't Working Properly

I've created a macro which sets a DMA register by feeding the macro the base register, the channel and the value. It basically just changes the x in $43x0 and stores a value at the address. These are my first few days with assembly, other than a tutorial I spent an hour on a few months back, so I'm ...
by LittleRain
Thu Sep 17, 2020 10:12 pm
Forum: SNESdev
Topic: snescom demo wont compile on windows
Replies: 5
Views: 3862

Re: snescom demo wont compile on windows

Ok thanks guys, you all convinced me, I'll use ca65 for my project. I found out that SD2SNES uses snescom so I figured it was the current standard. Still though I want to get SD2SNES to compile, I have all the components to make one. The github for SD2SNES seems to be a pretty old version, but oh we...
by LittleRain
Wed Sep 16, 2020 10:11 pm
Forum: SNESdev
Topic: snescom demo wont compile on windows
Replies: 5
Views: 3862

snescom demo wont compile on windows

I'm trying to learn assembly on the snes, I followed a tutorial which gives a blank screen (SNES Assembly Adventure), and it uses the ca65 compiler. But I just found out about bisqwits snescom which uses xa65 and it seems to be the way to go. Problem is I cannot get anything to compile, I've tried t...
by LittleRain
Thu Jul 23, 2020 8:34 pm
Forum: Reproduction
Topic: (SNES)Help With Circuit for LoRom M27C322
Replies: 72
Views: 32493

Re: (SNES)Help With Circuit for LoRom M27C322

Here, if LoROM , I think you forgot to add bridge for pin 15 <-> pin 4 http://forums.nesdev.com/download/file.php?id=18191&mode=view Yes good eye, that wasn't actually a schematic I was using, I just whipped it up in 2 minutes on my current one for an example. And all so... Your "REGLED&qu...
by LittleRain
Fri Jul 17, 2020 3:33 pm
Forum: Reproduction
Topic: (SNES)Help With Circuit for LoRom M27C322
Replies: 72
Views: 32493

Re: (SNES)Help With Circuit for LoRom M27C322

Ahh forgot about that, so yeah basically region differences.
by LittleRain
Fri Jul 17, 2020 3:19 pm
Forum: Reproduction
Topic: (SNES)Help With Circuit for LoRom M27C322
Replies: 72
Views: 32493

Re: (SNES)Help With Circuit for LoRom M27C322

But I still dont understand for what for Switch ? Is it for when you choose to use game with SUPER CIC or NO , yes? I believe it is for pairing with the SuperCIC on the console. Not sure what pairing does exactly, I think it has something to do with region locking. Also, I posted another edit for a...
by LittleRain
Fri Jul 17, 2020 2:36 pm
Forum: Reproduction
Topic: (SNES)Help With Circuit for LoRom M27C322
Replies: 72
Views: 32493

Re: (SNES)Help With Circuit for LoRom M27C322

2- What is the transistor ? Is it 2N2222 ? 3- Why do you add switch with JUMPERS , what is those fonction ? Hey no problem at all man, lidnariq answered the other questions, but I'll answer the rest. 2- I am using the S8050, but any NPN will be fine, could also use an N-channel mosfet as well. 3- T...