Re: [hatari-users] nm style symbols |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-users Archives
]
- To: hatari-users@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-users] nm style symbols
- From: Charles Curley <charlescurley@xxxxxxxxxxxxxxxxx>
- Date: Wed, 23 Dec 2020 12:38:34 -0700
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=charlescurley.com; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:To:From:Date:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=WgGN5TNpAv8R4DmkbTJtx4rqvJG2LMcBNk6oRWSGP7o=; b=a0LP24SaVSzR7sk3OxD5pGKWeF 3jqcJnx9QXwuA2lKDlKmcULM8zSga7TqG98otXfSriw9wMpCBdLAoLmh+G+hMVJ1K4ZATbxqh8ku9 yRMBFuhgQv0SKH04ydHXqKgLr+8UVITfYj4cLKPD3J8jTOIKqjFv81qVDhVpYRD9YBeOq+s3v3pRF Zhm4Zb+EPvpNLRnaJ4SkHbunueEkuAQDB6OgHyvlsqOCFX87t4TsyQvHjCKaK1oiHDcEZPNf7gF7i Smk/DeL+ZHJxATZHNrpS/akykaVD0eu578sJdVcLcB99ODtcaXEyAKgikhs0gTLjm9gkd3jQTaB5a pkkZDv6g==;
- Organization: occasionally
On Wed, 23 Dec 2020 12:43:23 +0200
Eero Tamminen <oak@xxxxxxxxxxxxxx> wrote:
> Hi,
>
> On 12/23/20 2:44 AM, Charles Curley wrote:
> > I would like to use an ASCII symbol table for a program I am
> > working on in Hatari. I am reading the manual, but it doesn't cover
> > everything. https://hatari.tuxfamily.org/doc/debugger.html
> >
> > Which characters are legal in symbol names? It appears Hatari does
> > not like semicolons or parentheses.
>
> No compiler or assembler accepts those in symbol
> names either.
Mine does, which is why the question came up.
https://github.com/charlescurley/realforth
>
> If I remember right, symbol names match pattern:
> [a-zA-Z0-9_.]+
It seems to accept [0-9], but trying to set a breakpoint on some of
them causes problems, so effectively those are also out.
Otherwise, that agrees with my experience.
I now have a shell script that substitutes two letter sequences for
unaccepted characters. Awkward, but it should work.
> >
> > The documentation mentions creating symbols by hand. How does one do
> > that, and how does one then preserve such symbols?
>
> You just write the file in some text editor
> and load that in debugger.
Ah. I was thinking there was a way to define symbols within the
debugger. This works.
Thanks, that helps.
I now have a lot of what I need to generate an ASCII symbol table at
compile time.
--
Does anybody read signatures any more?
https://charlescurley.com
https://charlescurley.com/blog/