adverb (locative adverb tattha) + 1st person singular nominative pronoun ahaṁ, combined in sandhi; surface form of the phrase 'tattha ahaṁ' (there I)
Analysis. tattha (locative adverb, 'there, in that place') + ahaṁ (1st singular nominative pronoun, 'I'); the final 'a' of tattha elides before the initial 'a' of ahaṁ, yielding tatthāhaṁ in sandhi.
Meanings from the Digital Pāḷi Dictionary; morphology and etymology by Claude.
Lite mode — plain HTML for e-readers and old browsers. Full version