Re: [hatari-devel] Natfeats doc?

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


On Tuesday, September 7th, 2021 at 11:02 PM, Eero Tamminen <oak@xxxxxxxxxxxxxxx> wrote:

> Is using stack (register) a problem in demos?

When developing the best trigger is one that touches as little as possible of CPU state, register contents etc, and where I end up at the next instruction in the debugger. For example, with the Xbios method I had to step through restoring of the stack every time. I sort of assume from your example below that I will step through RTS every time is using Natfeat?

> I think invoking e.g. debugger is just:
>
> pea nf_debugger_id
> bsr _nf_call
>
> Where nf_call is:
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> ; call native feature by its ID
>
> _nf_call:
> dc.w $7301
> rts

Where is the list of numbers/IDs? I searched for which 73xx would be "trigger debugger" but didn't find it.

regards,
Troed




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/