It is currently Mon Dec 11, 2017 12:49 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: asm6 + ines = asm6n
PostPosted: Sun May 08, 2016 8:28 pm 
Offline
User avatar

Joined: Thu Jan 03, 2008 1:48 pm
Posts: 544
The potential for NSF(2) and FDS headers could be interesting as well.


Top
 Profile  
 
 Post subject: Re: asm6 + ines = asm6n
PostPosted: Mon May 09, 2016 5:59 am 
Offline
User avatar

Joined: Sat Jan 03, 2015 5:58 pm
Posts: 368
Location: ...
B00daW wrote:
The potential for NSF(2) and FDS headers could be interesting as well.

"FDS", 0x1A, a byte for disk sides and a bunch of zeroes to make it even? Sounds simple enough.

The NSF header is a lot more complicated, though; I think I'll do iNES 2 first.


Top
 Profile  
 
 Post subject: Re: asm6 + ines = asm6n
PostPosted: Mon May 09, 2016 6:40 am 
Offline
User avatar

Joined: Sat Jan 03, 2015 5:58 pm
Posts: 368
Location: ...
koitsu wrote:
There should be defaults for each of the respective pseudo-ops as well (the default values should be documented), so that you could literally have a program that just says .inesprg 1 (with no other .inesXXX directives) and gets you a .NES ROM.

This is already true; the directives default to 0. The readme now says so.

The code does warn if INESINS is used before all 4 other iNES directives, though, to prevent confusion as to when to use the directive. Should I take out the warning?


Top
 Profile  
 
 Post subject: Re: asm6 + ines = asm6n
PostPosted: Mon May 09, 2016 8:22 am 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19322
Location: NE Indiana, USA (NTSC)
If anything, the warning should depend on the value of inesmap. For mappers commonly used with CHR RAM, it should not warn for a missing ineschr except in verbose mode, in which case it may warn "assuming CHR RAM". And for mappers that control mirroring, it should not warn for a missing inesmir. My ca65 macro pack uses default values (horizontal mirroring, no WRAM, and no CHR ROM) if not specified, and it guesses CHR RAM size as 0 or 8K based on whether or not there's CHR ROM.


Top
 Profile  
 
 Post subject: Re: asm6 + ines = asm6n
PostPosted: Mon May 09, 2016 12:03 pm 
Offline
User avatar

Joined: Sat Jan 03, 2015 5:58 pm
Posts: 368
Location: ...
tepples wrote:
If anything, the warning should depend on the value of inesmap. For mappers commonly used with CHR RAM, it should not warn for a missing ineschr except in verbose mode, in which case it may warn "assuming CHR RAM". And for mappers that control mirroring, it should not warn for a missing inesmir. My ca65 macro pack uses default values (horizontal mirroring, no WRAM, and no CHR ROM) if not specified, and it guesses CHR RAM size as 0 or 8K based on whether or not there's CHR ROM.

I like the "Assuming CHR RAM" idea, but asm6 lacks a verbose mode, it just has a quiet mode. I dunno about having the program go:
Code:
pass 1..
pass 2..
assuming chr ram.
pineight.nes written (however many bytes).


I don't think it'll bother anyone (I usually have asm6 on quiet mode anyway, since it doesn't conform to the output of other tools in my makefile).

Can someone give an example of a game where a discrepancy requires the use of iNES 2? I need a good way to test and make sure I'm implementing it right.


Top
 Profile  
 
 Post subject: Re: asm6 + ines = asm6n
PostPosted: Sat Apr 08, 2017 7:26 pm 
Offline
User avatar

Joined: Sat Jan 03, 2015 5:58 pm
Posts: 368
Location: ...
Just throwing this out there, asm6n's functionality has been added to freem's fork of asm6. The main difference is that it doesn't require INESINS or a flag to the command line. Turns out the assembler works differently than I initially thought a few months back.

asm6n isn't updated with this improved functionality simply because I want to encourage people to use the fork that already has plenty of NES-specific features, now including header directives.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group