> >where it will execute the routine and
> > > return with a RET.
> >
> >Actually, an RST #38 (otherwise the PC will be lost).
>
> *sigh* we can't use RST's remember?!! And don't say we can remap it!! it's
> NOT practical.

We CAN use it. It is in the alternative ROM!!!
Just don't optimize the adresses #38-#3F...


> Besides, we can just store the PC after the 'switch'-opcode. Or what
about:
>          CALL    BLA
> BLA:    POP     HL
>          DEC     HL
>          DEC     HL
>          DEC     HL
>          RET
> A bit long, but it works :) (I think)

And where were you thinking to put it, eh? An RST (which jumps to a routine
like you described above) takes 1 (one!!!) byte. This takes... hell... too
much.

> >Go on with that until you have processed everything.
>
> But what about routines that only get called from user input? or
> interrupts? or user-generated interrupts?!

Well I know where the interrupts start, so that's not a problem. Just start
tracing from those locations.
And the thing about routines getting called from user input, those are
conditional jumps, which are simply followed in both directions.


> >Another possibility is hacking into the game by
> >hand.
> >
> >First thing: yes, possibly.
> >Second thing: no way!
>
> Heh, why not? It's easy to replace a JR 0FEh with a HALT! (okay, that
would
> be normal optimizing patches, not what we are talking about now)

Yup.


>                  Patriek

Easier by phone... :)


~Grauw


--
>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<
 email me: [EMAIL PROTECTED] or ICQ: 10196372
      visit my homepage at http://grauw.blehq.org/
>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<


****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED]
and put "unsubscribe msx [EMAIL PROTECTED]" (without the quotes) in
the body (not the subject) of the message.
Problems? contact [EMAIL PROTECTED]
More information on MSX can be found in the following places:
 The MSX faq: http://www.faq.msxnet.org/
 The MSX newsgroup: comp.sys.msx
 The MSX IRC channel: #MSX on Undernet
****

Reply via email to