Search found 370 matches

by nicklausw
Sun Apr 23, 2017 8:37 am
Forum: SNESdev
Topic: asm6 + 65816 = asm16
Replies: 19
Views: 6056

Re: asm6 + 65816 = asm16

There should be a way to cast a value to direct-page, absolute, or absolute long. Yeah, that would be a good addition...I'm thinking ending the opcodes with ".b",".w" or ".l"? ca65's way might be easier, just depends on how the colon would be handled by asm16. Please don't try to guess that the use...
by nicklausw
Sat Apr 22, 2017 7:44 pm
Forum: SNESdev
Topic: asm6 + 65816 = asm16
Replies: 19
Views: 6056

Re: asm6 + 65816 = asm16

You can't track D in general Perhaps not with ca65, but "linkerlessness" makes a different story. If you mean what I think you do, anyway. On its final pass at the latest, asm16 absolutely knows every value that it reads in, assuming that the code has no errors such as a label typo. And so if you s...
by nicklausw
Sat Apr 22, 2017 5:53 pm
Forum: SNESdev
Topic: asm6 + 65816 = asm16
Replies: 19
Views: 6056

Re: asm6 + 65816 = asm16

The first "real release" is up. Gonna quote the changelog on this one. asm16 1.7 4/22/17 * added 65816 instruction set. * added 24-bit addressing support. * added automatic register size handling * on by default, off with NOSMART, back on with SMART * manual handling done with A8,A16,I8,I16 * XY8,X...
by nicklausw
Fri Apr 21, 2017 9:08 am
Forum: SNESdev
Topic: asm6 + 65816 = asm16
Replies: 19
Views: 6056

Re: asm6 + 65816 = asm16

PEI. I'm assuming you also included PEA and PER ? (Not that I use them.) Yep, the gang's all here. Except WDM (opcode 0x42). If you want that, I recommend a macro but due to asm6's internal design, I need at least one byte that isn't an opcode (but rather can be used to mean "stop looking for addre...
by nicklausw
Thu Apr 20, 2017 4:51 pm
Forum: SNESdev
Topic: asm6 + 65816 = asm16
Replies: 19
Views: 6056

Re: asm6 + 65816 = asm16

Update, cleaned up the repository, added a makefile and an example program that uses a lot of stuff borrowed from tepples. If I clean up the sloppy parts (so everything that was my code), it might end up being a good starting place for some new snes devs. Also added some opcode aliases from here. I'...
by nicklausw
Wed Apr 19, 2017 12:37 pm
Forum: SNESdev
Topic: asm6 + 65816 = asm16
Replies: 19
Views: 6056

Re: asm6 + 65816 = asm16

Thanks! I feel dumb now. :oops:
by nicklausw
Wed Apr 19, 2017 4:43 am
Forum: SNESdev
Topic: asm6 + 65816 = asm16
Replies: 19
Views: 6056

Re: asm6 + 65816 = asm16

I'm just glad to see you're still around. We can't afford any more losses to the SNES community. :lol: Yep, I'm alive. thefox's tile tool thing gave me some hope so I'm back! Binary would be helpful. And example code of a functional SNES template. (Insert misunderstanding here) As for a full templa...
by nicklausw
Tue Apr 18, 2017 8:17 pm
Forum: SNESdev
Topic: asm6 + 65816 = asm16
Replies: 19
Views: 6056

asm6 + 65816 = asm16

I seem to have a lot of fun doing random stuff with asm6. Well today I decided to try turning it into an assembler for the snes. Current features: automatic register size detection (possibly not for all opcodes), 24-bit addressing, basic support for all opcodes except for pei, mvn and mvp afaik. Wit...
by nicklausw
Mon Apr 17, 2017 4:33 pm
Forum: NESdev
Topic: How to put in cartridge without losing save?
Replies: 11
Views: 2980

Re: How to put in cartridge without losing save?

Wasn't there an old trick about holding the reset button when you turn the power off, to keep the save data from deleting or something? Maybe hitting the cartridge has nothing to do with it.
by nicklausw
Mon Apr 17, 2017 2:12 pm
Forum: NESdev
Topic: iNES 2.0 Games
Replies: 28
Views: 9287

Re: iNES 2.0 Games

NovaSquirrel wrote:the FME-7 big PRG RAM test
This header was replicated with:

Code: Select all

.inesprg 2
.ineschr 1
.inesmap $45
.nes2prgram 9
Seems about right.
by nicklausw
Sat Apr 15, 2017 3:19 pm
Forum: NESdev
Topic: iNES 2.0 Games
Replies: 28
Views: 9287

Re: iNES 2.0 Games

The MMC3 big CHR RAM test I was able to replicate that header with: .inesprg 4 .inesmap 4 .nes2chrram 9 So unless that's incorrect, looks like this is going somewhere. With regard to NES 2.0 mappers, there seems to be something of a difference between the assignments made by Kevin Horton and assign...
by nicklausw
Sat Apr 15, 2017 8:46 am
Forum: NESdev
Topic: iNES 2.0 Games
Replies: 28
Views: 9287

iNES 2.0 Games

Are there any homebrew games (or even basic examples) out there that require use of the iNES 2.0 header? I've looked and have come up blank. It's kinda hard to try to implement 2.0 directives into an assembler when I can't find anything to test it with. (I'm willing to convert custom header insertio...
by nicklausw
Thu Apr 13, 2017 6:49 pm
Forum: NESdev
Topic: Troubles when planning to make a FDS template with CA65
Replies: 19
Views: 10815

Re: Troubles when planning to make a FDS template with CA65

I might as well just upload my disaster here for anyone who wants to see. Running the fds gives a disk error. The code is very sloppy in that it uses previously made and bloated cfg files, gross looking code (not an insult to original creator but I haven't been going for cleanliness), and pretty sur...
by nicklausw
Thu Apr 13, 2017 6:13 pm
Forum: NESdev
Topic: Troubles when planning to make a FDS template with CA65
Replies: 19
Views: 10815

Re: Troubles when planning to make a FDS template with CA65

I did try to make an old fds asm6 example compatible with ca65. It's...alright, I guess. A big problem is that the way I did things, files use a config called file.cfg and the final fds uses fds.cfg. For files, I'm just blindly assuming they'll all be size=$4000, and for the final fds I got lazy and...
by nicklausw
Thu Apr 13, 2017 1:50 pm
Forum: NESdev
Topic: Troubles when planning to make a FDS template with CA65
Replies: 19
Views: 10815

Re: Troubles when planning to make a FDS template with CA65

I took a look at an asm6 fds example, and I don't think that ca65 is really the right tool for the job. You could use segments for the different files on the disk, but then you'd be modifying the cfg file constantly. Especially since the files don't seem to have a set size, and I don't think ld65 wi...