Search found 412 matches

by sdm
Mon Mar 25, 2024 7:53 am
Forum: SNESdev
Topic: Super NES Programming - Loading SPC700 programs
Replies: 1
Views: 301

Super NES Programming - Loading SPC700 programs

I would like to load an SPC file using the code from this site: https://en.wikibooks.org/wiki/Super_NES_Programming/Loading_SPC700_programs The compiled code (WLA-65816) does not work, black screen and nothing else. Anyone know where the problem is? ; SNES SPC700 Tutorial code ; (originally by Joe L...
by sdm
Fri Mar 22, 2024 4:22 am
Forum: Other Retro Dev
Topic: How many color on some retro console
Replies: 11
Views: 1049

Re: How many color on some retro console

I would like to clarify the information about displaying the maximum number of colors on the Gameboy Color screen. From what I've read everywhere, it's 56 colors without using any special tricks. Going deeper into the topic, something doesn't seem right - GBC has 8x 2-bit palettes for the background...
by sdm
Mon Mar 18, 2024 1:48 am
Forum: SNESdev
Topic: snes assembly - beginnings, a few questions (wla-65816)
Replies: 104
Views: 8530

Re: snes assembly - beginnings, a few questions (wla-65816)

I'm trying to understand how to add SNESGSS to the WLA-DX code. By reading the Readme file: Export and use When all music and sound effects created, the project can be exported (File>Export) for further use in a SNES program. The editor exports a number of files: spc700.bin - contains compiled SPC70...
by sdm
Sat Mar 09, 2024 9:34 am
Forum: SNESdev
Topic: snes assembly - beginnings, a few questions (wla-65816)
Replies: 104
Views: 8530

Re: snes assembly - beginnings, a few questions (wla-65816)

Thanks. For now, everything seems OK. I've sorted out a lot of things in my head and it's not as bad as I thought - you have to be very careful when writing something for this CPU. I finally managed to rewrite my multiplatform project (only for learning different systems, it's not a game) to SNES. T...
by sdm
Mon Mar 04, 2024 6:29 am
Forum: SNESdev
Topic: snes assembly - beginnings, a few questions (wla-65816)
Replies: 104
Views: 8530

Re: snes assembly - beginnings, a few questions (wla-65816)

Yes, I had it corrected.
Now everything works OK. Both 16-Bit Indexing mode (+ ASL) and in 8-Bit mode with divided LO/HI Table reading. Thanks.

And I already know that using e.g. LDA.W does not have to have anything to do with the ACCU 16 operating mode. I got it wrong.
by sdm
Mon Mar 04, 2024 6:20 am
Forum: SNESdev
Topic: snes assembly - beginnings, a few questions (wla-65816)
Replies: 104
Views: 8530

Re: snes assembly - beginnings, a few questions (wla-65816)

I understand that using LDA.W and e.g. LDA.L in the case of WRAM is important because it is divided into several Banks and setting SEP/REP + Directives e.g. .ACCU/.INDEX 8/16 is not enough and you need to use additional .W/.L ? In the case of addressing within one Bank (Registers, Direct Page), just...
by sdm
Mon Mar 04, 2024 5:49 am
Forum: SNESdev
Topic: snes assembly - beginnings, a few questions (wla-65816)
Replies: 104
Views: 8530

Re: snes assembly - beginnings, a few questions (wla-65816)

yeah set X to 16 bits and you have a 64K table Separate is the LDA TABLE_LOW,x ; Get LOW. STA JUMPER+0 LDA TABLE_HIGH,x ; Get HIGH. STA JUMPER+1 JMP (JUMPER) .BYTE <LoadLEV000,<LoadLEV001,<LoadLEV002,<LoadLEV003,<LoadLEV004,<LoadLEV005,<LoadLEV006,<LoadLEV007 .BYTE <LoadLEV008,<LoadLEV009,<LoadLEV0...
by sdm
Mon Mar 04, 2024 3:50 am
Forum: SNESdev
Topic: snes assembly - beginnings, a few questions (wla-65816)
Replies: 104
Views: 8530

Re: snes assembly - beginnings, a few questions (wla-65816)

Really :/. I forgot to multiply the Index... Only then will there be a problem with the number of LEVxxx above 128 (But you can use X as 16-Bit and there will be no problem?) How to read the LOW/HIGH Byte Table separately in WLA? As in the example of the NESASM code? - I can't find it and I'm readin...
by sdm
Mon Mar 04, 2024 2:42 am
Forum: SNESdev
Topic: snes assembly - beginnings, a few questions (wla-65816)
Replies: 104
Views: 8530

Re: snes assembly - beginnings, a few questions (wla-65816)

I'm having trouble rewriting the NES code (NESASM) to its SNES equivalent. The idea is to read the address of the function from the table, save it to a variable and make a jump to execute the appropriate function (with index). The table and functions are in the same bank, so for now I'm focusing on ...
by sdm
Wed Feb 28, 2024 4:16 am
Forum: SNESdev
Topic: snes assembly - beginnings, a few questions (wla-65816)
Replies: 104
Views: 8530

Re: snes assembly - beginnings, a few questions (wla-65816)

The SNES has similar limitations when writing to VRAM, I know that to change something in the background you have to do it during VBLANK. The question is whether any interference with the PPU, such as writing to registers, changing the palette, also has similar limitations as the NES - I have to cre...
by sdm
Tue Feb 27, 2024 2:26 pm
Forum: SNESdev
Topic: snes assembly - beginnings, a few questions (wla-65816)
Replies: 104
Views: 8530

Re: snes assembly - beginnings, a few questions (wla-65816)

This is one of the examples I often see on various SNES asm tutorials and there is often no description of why it was used. There are a lot of things that "ARE" but are not clearly explained "WHY" :) I have another example - a macro copying data to VRAM: What do PHB/PHP "sec...
by sdm
Tue Feb 27, 2024 12:34 pm
Forum: SNESdev
Topic: snes assembly - beginnings, a few questions (wla-65816)
Replies: 104
Views: 8530

Re: snes assembly - beginnings, a few questions (wla-65816)

While looking through various SNES sources, I noticed "PHA PHX PHY PLA PLX PLY PHB PHD PHK PHP PLB PLD PLP" at the beginning and end of various soubroutine. I don't really understand when you need to pay attention to use it. For example, the VRAM clearing function - what causes PHA/PHX/PHP...
by sdm
Tue Feb 27, 2024 5:54 am
Forum: SNESdev
Topic: snes assembly - beginnings, a few questions (wla-65816)
Replies: 104
Views: 8530

Re: snes assembly - beginnings, a few questions (wla-65816)

After a break in learning SNES assembly language, my mind is even more confused :) So I apologize for repeating old questions. I would like to make sure how the NMI-VBLANK interrupt protects the processor's operating mode and resumes its interrupted state after RTI execution? Sample VBLANK code - or...
by sdm
Mon Feb 26, 2024 2:12 pm
Forum: SNESdev
Topic: snes assembly - beginnings, a few questions (wla-65816)
Replies: 104
Views: 8530

Re: snes assembly - beginnings, a few questions (wla-65816)

I'm trying to copy one of my source code from MC68K to 65816 and I'm wondering whether in the first phase, to make it easier, I should replace all JSR/RTS with JSL/RTL, and only in the later phase, when everything works, optimize and change where long jumps can be changed to JSR /RTS. I understand t...
by sdm
Mon Feb 26, 2024 10:59 am
Forum: SNESdev
Topic: snes assembly - beginnings, a few questions (wla-65816)
Replies: 104
Views: 8530

Re: snes assembly - beginnings, a few questions (wla-65816)

I see that I have to be very careful when using JSR/RTS and JSL/RTL, especially with extensive code that has a lot of branching jumps using different banks (jumps within a bank and to other banks). I noticed that when performing incorrectly mixed jumps and returns, the code executes correctly or inc...