9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Jacob Moody <moody@mail.posixcafe.org>
To: 9front@9front.org
Subject: Re: [9front] Re: [PATCH] game boy advance header target for 5l
Date: Thu, 2 Mar 2023 09:08:06 -0700	[thread overview]
Message-ID: <1440d7fc-4dfa-273c-874d-cd77f5b84a27@posixcafe.org> (raw)
In-Reply-To: <ZACFZd4UFKlUeVrP@alice>

On 3/2/23 04:15, Anthony Martin wrote:
> Jacob Moody <moody@mail.posixcafe.org> once said:
>> This makes 5l capable of spitting out valid .gba files.
>> With this I was able to get a basic rom working.
>>
>> To give this a try:
>> ; hget http://okturing.com/src/15122/body > sprite.c
>> ; 5c sprite.c
>> ; 5l -H8 -Emain sprite.5
>> ; games/gba 5.out
> 
> This should be a command that takes a 5.out and produces
> a gba image. See
> 
>   - aux/aout2uimage for the u-boot image format,
>   - aux/ms2 for the motorola s-record format,
>   - and xenbin for xen binary images
> 

So you end up needing to pass -T to the linker anyway?
I did it this way because -H8 is a bit more descriptive then just -T 0x08000000.
Perhaps I am missing something and there is a way of making
aout2gba work with any 5.out binary, without the need for
specific linker flags.

Or is the expectation that for those tools you do end up needing
an explicit -T as well? I dont know; those tools dont have manuals.
But it seems odd to me to have this as an external tool if it has assumptions
about specific linker flags.

> as examples. Putting the nintendo logo in the loader is
> a bit much for my taste. Not to mention the prospect of
> provoking ptyalism in the swamp creatures colloquially
> referred to as intellectual property lawyers.
> 

I know "look they're doing it too" is about as far as you
can get from sound legal advice, but this has seemingly
not been an issue for devkitpro which also ships with the
hex code as part of their 'gbafix' program. Surely getting
the only open source gba development kit taken off the web
would have happened by now if the logo was all it took.

Without the logo you can not build a rom that the bios will load.
If it can't be anywhere in the tree then we can do nothing and are wasting our time.

- moody

  reply	other threads:[~2023-03-02 16:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-02  6:56 [9front] " Jacob Moody
2023-03-02 11:15 ` [9front] " Anthony Martin
2023-03-02 16:08   ` Jacob Moody [this message]
2023-03-02 17:33     ` cinap_lenrek
2023-03-02 17:50       ` Jacob Moody
2023-03-03 20:59         ` cinap_lenrek
2023-03-03 21:18           ` Jacob Moody
2023-03-04 15:53             ` cinap_lenrek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1440d7fc-4dfa-273c-874d-cd77f5b84a27@posixcafe.org \
    --to=moody@mail.posixcafe.org \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).