Search found 815 matches

by Sour
Wed Jul 08, 2020 4:33 pm
Forum: NESdev
Topic: VBCC Optimizing C-compiler now supports NES
Replies: 34
Views: 1711

Re: VBCC Optimizing C-compiler now supports NES

In general, Mesen's labels have: -Bankswitching support - labels are defined as offsets from the first byte of a given type of memory, rather than a memory address. So basically the labels are defined based on the byte offsets in the ROM (same logic for save ram or work ram, etc.) -Don't support typ...
by Sour
Tue Jul 07, 2020 10:23 pm
Forum: NESdev
Topic: VBCC Optimizing C-compiler now supports NES
Replies: 34
Views: 1711

Re: VBCC Optimizing C-compiler now supports NES

The .mlb files aren't really a replacement for cc65/ca65's .dbg files - the .dbg files contain a lot more information which allow stuff like source level debugging, etc. The .mlb files are just meant to be labels, and nothing more. I don't think there's an actual specification for .dbg files (and it...
by Sour
Mon Jul 06, 2020 8:26 pm
Forum: NESdev
Topic: Mesen Debugger - Feedback/Feature Requests? (2018 edition)
Replies: 206
Views: 100144

Re: Mesen Debugger - Feedback/Feature Requests? (2018 edition)

If there's a way to totally mask away any named labels that start with '@' in the disassembly (i.e., just use plain-old-addresses for those) This is a bit tricky, since the labels are used by both the disassembly and the watch window (among other things), so removing the label for one, will also re...
by Sour
Sun Jul 05, 2020 1:39 pm
Forum: NESdev
Topic: Mesen Debugger - Feedback/Feature Requests? (2018 edition)
Replies: 206
Views: 100144

Re: Mesen Debugger - Feedback/Feature Requests? (2018 edition)

Given this limitation, would it be possible to at least add a comment field to the watch window? If that's the main functionality you are looking for (e.g being able to put it in the watch, vs having it display properly in the disassembly window), this is probably easier to fix. I can probably alte...
by Sour
Thu Jul 02, 2020 9:45 pm
Forum: NESemdev
Topic: Mesen - NES Emulator
Replies: 838
Views: 370123

Re: Mesen - NES Emulator

Is this recent? I haven't changed too much in the code in the past month or 2 that could affect this I think. Did you try building the 0.9.9 or 0.9.8 releases to see if it changes anything vs latest? Any call stack when it crashes? How often does it happen? It's entirely possible it's a real bug in ...
by Sour
Thu Jul 02, 2020 12:06 pm
Forum: NESdev
Topic: Need help! How to debug on real hardware?
Replies: 11
Views: 364

Re: Need help! How to debug on real hardware?

I tried randomizing some of the power on state for this mapper in Mesen, but nothing I've tried (including removing all save ram) appears to cause what you're describing. Your hack's PRG size is 128kb, is the chip on your board also 128kb? If you're flashing a 128kb rom on a 256kb/512kb chip (Namco ...
by Sour
Thu Jul 02, 2020 8:45 am
Forum: NESdev
Topic: Need help! How to debug on real hardware?
Replies: 11
Views: 364

Re: Need help! How to debug on real hardware?

Since you're testing on a flash cartridge, it's hard to know if the problem is the flash cart (e.g the FPGA implementation of mapper 19) or the actual hardware without actually testing on a namco 163 board. There are also a number of variants for this board/mapper, and historically some emulators us...
by Sour
Thu Jul 02, 2020 8:32 am
Forum: NESdev
Topic: Mesen Debugger - Feedback/Feature Requests? (2018 edition)
Replies: 206
Views: 100144

Re: Mesen Debugger - Feedback/Feature Requests? (2018 edition)

I think Tepples hint about just concatenating local labels top top-level ones might be the best starting point to get around the complexity. This isn't enough to make it work properly, unfortunately - even if you had 2 labels with unique names, e.g: "memcpy@tmpVar" and "clear@tmpVar", labels that p...
by Sour
Wed Jul 01, 2020 10:43 am
Forum: NESdev
Topic: No EQU Variable Substitution Data In List file / Label file. Advice? (ASM6F)
Replies: 6
Views: 225

Re: No EQU Variable Substitution Data In List file / Label file. Advice? (ASM6F)

Mesen doesn't support this - it can only add labels to memory addresses, but cannot replace constants with labels. e.g it will always display AND #$0F in your case. Supporting this properly would require having a separate type of labels for constants, which would also need to have a concept of scope...
by Sour
Tue Jun 30, 2020 1:55 pm
Forum: SNESdev
Topic: Mesen-S - SNES Emulator
Replies: 350
Views: 151957

Re: Mesen-S - SNES Emulator

The behavior when switching between SNES/GB and closing/reopening the emulator is still half broken. Getting this to play nicely with everything else isn't super simple partially due to the way all of this is implemented in the code. It's part of the list of things I want to fix before the next prop...
by Sour
Tue Jun 30, 2020 1:33 pm
Forum: NESdev
Topic: Mesen Debugger - Feedback/Feature Requests? (2018 edition)
Replies: 206
Views: 100144

Re: Mesen Debugger - Feedback/Feature Requests? (2018 edition)

But there's a few other things that have been annoying me lately in the otherwise-awesome debugger: I think 1) and 2) are probably the same issue here? As far as I can tell, labels that start with a @ work properly in the watch window. However, Mesen cannot properly deal with multiple labels pointi...
by Sour
Tue Jun 16, 2020 9:33 pm
Forum: SNESdev
Topic: Mesen-S - SNES Emulator
Replies: 350
Views: 151957

Re: Mesen-S - SNES Emulator

There is a way to pause the emulator and go foward frame by frame? This feature could be very useful when you develop :) . You can do this either by binding a key to the "Run single frame" shortcut (in Options->Preferences->Shortcuts), or via the debugger window by using the "Run one frame" option....
by Sour
Mon Jun 15, 2020 5:57 pm
Forum: SNESdev
Topic: Mesen-S - SNES Emulator
Replies: 350
Views: 151957

Re: Mesen-S - SNES Emulator

Ah, damn, my bad - I got the titles mixed up and was talking about Battle Grand Prix, not Circuit USA. As far as GB/GBC goes, I know of these issues atm: GB: Pinball Deluxe - freezes GB: Urusei Yatsura - flashing in maze GB: Renju Club - freezes GBC: Lego racer - freezes GBC: 3d pocket pool - graphi...
by Sour
Sat Jun 13, 2020 6:10 pm
Forum: SNESdev
Topic: Mesen-S - SNES Emulator
Replies: 350
Views: 151957

Re: Mesen-S - SNES Emulator

byuu captured the state of the RAM chips: Thanks for the info & links! We need both these effects documented, and the example games to show why they matter and aren't just pedantic perfectionism. This particular glitch is documented in anomie's docs, I think (at least, that's where the quoted comme...
by Sour
Wed Jun 10, 2020 3:24 pm
Forum: SNESdev
Topic: Mesen-S - SNES Emulator
Replies: 350
Views: 151957

Re: Mesen-S - SNES Emulator

Touge Densetsu (JPN): color corruption after selecting a bike. Thanks! This should be fixed now - hurray for 10+ year old release notes from snes9x: - The final HDMA Indirect Address load is only weird on the last channel of the scanline. Touge Densetsu Saisoku Battle problem solved. (anomie, byuu)...