AVRCICzz assembly issues

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
AVRCICzz assembly issues
by on (#148936)
Hey guys, i'm trying to reassemble the .asm file Krikzz included with his awesome AVRCICzz. I'm trying to region-lock it into NTSC mode, but when I try to compile it, it fails with 278 errors. Thinking i may have done something wrong, i tried compiling his original...and that ALSO failed with the same errors.

I'm using AVRstudio 5.

Any ideas? or is there a way to hard-wire it for NTSC without changing the code?
Re: AVRCICzz assembly issues
by on (#148945)
Given that your avatar is a character from a franchise adapted to a PAL-only NES game, what are you trying to make NTSC-only? Is it a game that won't work on a PAL NES, either due to the different CPU:PPU ratio (3.2 vs. 3 on NTSC) or due to 50 Hz being "cheating"?

Let's work on this from top to bottom, as fixes to a problem near the top of a source code file can often fix other problems near the bottom. So please post the first three errors.
Re: AVRCICzz assembly issues
by on (#148984)
It's not exactly what you're asking for, but I have found that you can make it start in NTSC mode by default. Put one into NTSC mode, dump it's EEPROM, then when you write the blank chips, you can also program it's EEPROM for NTSC mode. I haven't programmed a lot of them yet, but AFAIK, that should work. Then it will only go in the other region modes when it encounters a different lockout chip.
Re: AVRCICzz assembly issues
by on (#148985)
For whatever it's worth, it assembles mostly-cleanly with avra (warns about "not supporting pragma")
Re: AVRCICzz assembly issues
by on (#149015)
tepples wrote:
Given that your avatar is a character from a franchise adapted to a PAL-only NES game, what are you trying to make NTSC-only? Is it a game that won't work on a PAL NES, either due to the different CPU:PPU ratio (3.2 vs. 3 on NTSC) or due to 50 Hz being "cheating"?

I don't see the connection here, and, according to his profile, he lives in Canada.
Re: AVRCICzz assembly issues
by on (#149017)
Quote:
I don't see the connection here

Getafix (called Panoramix or Magigamix in some translations) is a character from the Astérix comic books, and Astérix by Infogrames uses so much vblank time that it doesn't run correctly on NTSC consoles even with a disabled CIC.

But for this project, what's the advantage of locking your project to the NTSC region?
Re: AVRCICzz assembly issues
by on (#149035)
ok maybe this program is just too picky, as every line was showing an error... I'll try the one you used lidnariq.

As for the name, it has nothing to do with my project, or where I live (Also, I chose this username for my love of the comics, NOT the games :P). I simply wanted to see how to do it, as if I was replacing an actual NES cart CIC I don't want to have to reset the system a dozen times to get it to lock to NTSC.

And Memblers that's a good suggestion as well, which I might try just for the heck of it!
Re: AVRCICzz assembly issues
by on (#149036)
getafixx wrote:
ok maybe this program is just too picky, as every line was showing an error...
... Was it doing something daft like trying to compile it as C instead of as assembly? 'Cuz that's awfully weird.
Re: AVRCICzz assembly issues
by on (#149077)
lidnariq wrote:
getafixx wrote:
ok maybe this program is just too picky, as every line was showing an error...
... Was it doing something daft like trying to compile it as C instead of as assembly? 'Cuz that's awfully weird.


No, and that's whats weird. I double and triple checked the settings to compile in asm...but no go. I'm going to try avra as you suggested and see if that works better, just haven't found the time yet.
Re: AVRCICzz assembly issues
by on (#149103)
Just to be slightly pedantic, you don't compile assembly. Compiling is the process of translating a higher-level language into assembly.
Re: AVRCICzz assembly issues
by on (#149107)
qwertymodo wrote:
Just to be slightly pedantic, you don't compile assembly.

To continue picking that nit, bump this topic.