[A83] Re: rst disassembling


[Prev][Next][Index][Thread]

[A83] Re: rst disassembling




It isn't useless. TI put very small routines in there. The most common one is _ldHLind at 0033h.


> ----------------------------------------
> From: The one and only SUCKER ... <sucker_pvn@hotmail.com>
> Sent: Fri Aug 24 19:51:20 GMT+02:00 2001
> To: <assembly-83@lists.ticalc.org>
> Subject: [A83] rst disassembling
> 
> 
> 
> By disassembling from 00 to 60h I came up to this.
> But... with every rst they use jp instead of call, so the code
> afterwards in the same label isn't executed and is useless,
> isn't it????
> 
>    SUCKER
> 
> ;-----> RST Routines
> ; These are the routines associated with the instructions rst 00h to rst 38h
> ; rst	00h - Restart
> ; rst	08h - call _op1toop2
> ; rst	10h - call _findSym (non-program/list)
> ; rst	18h - call _pushop1
> ; rst	20h - call _hltoop1 (copy 9 bytes from (hl) to op1)
> ; rst	28h - call _fpmult
> ; rst	30h - call _fpadd
> ; rst	38h - call the standard interrupt routine
> 
> 
> rst 00h:
>      jp   0017Dh
>      rst  38h
>      rst  38h
>      rst  38h
>      rst  38h
>      rst  38h
> rst 08h:
>      jp   019E4h
>      bit  0, (iy+07h)
>      ret
> rst 10h:
>      jp   0224Ch
>      bit  4, (iy+02h)
>      ret
> rst 18h:
>      jp   029BEh
>      set  0, (iy+03h)
>      ret
> rst 20h:
>      jp   01AB6h
>      ld   a, (0913Ch)
>      or   a
>      ret
> rst 28h:
>      jp   009C2h
>      sub  a
>      ld   (0913Ch), a
>      ret
> rst 30h:
>      jp   008D5h
>      ld   a, (hl)
>      inc  hl
>      ld   h, (hl)
>      ld   l, a
>      ret
> rst 38h:
>      ex   af, af'
>      exx
>      in   a, (03h)
>      bit  2, a
>      jp   nz, 00B1h
>      rra
>      jr   c, Label2
>      rra
>      jr   c, Label3
>      jr   Label4
>      out  (03h), a
> 
> Label4:
>      ld   a, 0Bh
>      bit  0, (iy+16h)
>      jr   z, Label5
>      add  a, 04h
> 
> Label5:
>      out  (03h), a
>      ex   af, af'
>      exx
>      ei
>      reti
>      bit  1, (iy+03h)
>      (and so on...)
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> 
> 
> 

-----------------------------------------------------
Mail.be, Free WebMail and Virtual Office
http://www.mail.be