Search found 108 matches

by pcmantinker
Fri Nov 11, 2011 1:33 pm
Forum: SNESdev
Topic: GD SF7 Floppy Disk Errors
Replies: 15
Views: 6919

This thread is really old! Haha over two years old in fact. I would recommend just seeing if you can get some cheap floppy drives from eBay or something and also, make sure that you're using the external power supply with your SF7. Another thing to try is getting an old laptop with a floppy drive bu...
by pcmantinker
Fri May 13, 2011 7:29 am
Forum: SNESdev
Topic: New SNES C Compiler
Replies: 3
Views: 4490

Thanks for the pointers. I have finally finished my semester classes and finals so I should have some more time to work on the compiler. For the lexical analyzer, I'm using Flex and Bison with the ANSI C grammars specified here: http://www.quut.com/c/ANSI-C-grammar-y.html and http://www.quut.com/c/A...
by pcmantinker
Tue May 10, 2011 3:39 pm
Forum: SNESdev
Topic: New SNES C Compiler
Replies: 3
Views: 4490

New SNES C Compiler

Hi all, It's been a while since I've been to the forum, but I've finished my compiler construction class and really enjoyed building the compiler this semester. I'm thinking about building a C compiler for the SNES from scratch. I know that I could use GCC as a base for the compiler, but the source ...
by pcmantinker
Mon Jan 24, 2011 1:27 pm
Forum: General Stuff
Topic: MIPS assembly class and compilers class this semester
Replies: 4
Views: 2467

Yeah, I took a look at tcc-816. It looks like it could use some work. The Google Code page even says that it's buggy and kinda hacked together. :lol: I'll see how I feel about compilers once I finish this semester's class and I may see what I can do for a SNES C compiler. I may even see about a C++ ...
by pcmantinker
Mon Jan 24, 2011 12:25 am
Forum: General Stuff
Topic: MIPS assembly class and compilers class this semester
Replies: 4
Views: 2467

I'm attending Louisiana State University. So far, my classwork hasn't been too exciting since I was mainly finishing all my prereqs for my upper level classes. Now that I'm in my upper level classes, I'm pretty interested in what we'll be doing this semester. Last semester, one of my prereqs for com...
by pcmantinker
Sun Jan 23, 2011 11:50 pm
Forum: General Stuff
Topic: MIPS assembly class and compilers class this semester
Replies: 4
Views: 2467

MIPS assembly class and compilers class this semester

So, I've finally started my MIPS assembly class and compilers class this semester. It should be an interesting semester. Since I'm a computer science major, we won't be going into as much details about the hardware as computer engineers/electrical engineers. I'm looking forward to learning about MIP...
by pcmantinker
Thu Apr 01, 2010 10:22 pm
Forum: SNESdev
Topic: make_sram for SNES PowerPak
Replies: 18
Views: 13541

I found another tool called CartSNS that seems to read header information and display it to the console. However, the tool is 16bit and won't run on 64bit operating systems. I tested the program on my old Thinkpad which runs Win98 and it displays nice output. I doubt that it looks up games from a da...
by pcmantinker
Wed Mar 31, 2010 10:56 pm
Forum: SNESdev
Topic: make_sram for SNES PowerPak
Replies: 18
Views: 13541

I'm not sure if NSRT's source code is freely available, but I know that it will tell you helpful header information for SNES ROMs. However, I don't know if the header is actually read or if it just identifies the ROM and pulls the information from a database. If NSRT reads the header and gets the in...
by pcmantinker
Wed Mar 31, 2010 10:48 pm
Forum: SNESdev
Topic: SNES PowerPak
Replies: 605
Views: 231996

If you're able to test your PowerPak with the various different compact flash cards you have on another SNES, I would recommend that for ruling out the PowerPak as being faulty. I thought that my PowerPak didn't work when I first got it. I just had to be patient and wait for a fix in the firmware. S...
by pcmantinker
Tue Mar 30, 2010 5:49 pm
Forum: SNESdev
Topic: SNES PowerPak
Replies: 605
Views: 231996

Heya, I bought the SNES powerpak a few weeks ago with the 2gb Dane-Elec CF card that comes with it. Sadly, I cant get any of the games to work for more than a few minutes. The cartridge boots fine, seems to copy the selected game without too much trouble. But depending on the game, it either just f...
by pcmantinker
Mon Mar 22, 2010 9:39 pm
Forum: SNESdev
Topic: 16-bit stereo 32 kHz streaming success
Replies: 38
Views: 24565

It's truly amazing to hear such great quality music come from the SNES. Would it be possible to play a song longer than one minute? I realize the rom size would be significantly larger, but it could be done on the PowerPak provided it is less than 128Mbits. I realize 16MB is a lot of data for one so...
by pcmantinker
Sun Mar 07, 2010 6:41 pm
Forum: SNESdev
Topic: SNES Math Routines
Replies: 9
Views: 7297

Quote: PrintString "\nDivision with remainder: 16/4=" lda #16 sta $4204 ; low lda #16 sta $4205 ; high lda #4 sta $4206 That is 4112/4, or 1028. Thanks for pointing out the error in my code. I've modified the code so that it divides decimal 128 by decimal 32. It waits 16 cpu cycles before...
by pcmantinker
Fri Mar 05, 2010 11:25 am
Forum: SNESdev
Topic: SNES Math Routines
Replies: 9
Views: 7297

Shouldn't it be (assuming A is 8-bit): lda #<dividend sta $4204 ; low lda #>dividend sta $4205 ; high lda #divisor sta $4206 ; insert code to wait 16 cycles lda $4214 ; low part of quotient ; do whatever lda $4216 ; low part of remainder ; do whatever Can you explain what the high and low of the di...
by pcmantinker
Thu Mar 04, 2010 11:18 pm
Forum: SNESdev
Topic: SNES Math Routines
Replies: 9
Views: 7297

I read that it takes 16 cpu cycles to complete a division operation. I also confirmed that it takes 8 cpu cycles to complete a multiplication operation. I'll need to figure out how to print 16bit integers as my current code only prints 8bit integers.
by pcmantinker
Thu Mar 04, 2010 9:21 pm
Forum: SNESdev
Topic: SNES Math Routines
Replies: 9
Views: 7297

SNES Math Routines

I've been reading about how to do various math routines with 65816 assembly. I've figured out how to add, subtract, and multiply 8bit integers, but division is still stumping me. I'd also like to learn how to work with 16bit integers, but am not sure the best way to approach that. For multiplying in...