Article View: comp.sys.amiga.tech
Article #13031Re: Use of SuperState() call
From: Mark Huth
Date: Tue, 06 Jun 1989 23:36
Date: Tue, 06 Jun 1989 23:36
14 lines
1192 bytes
1192 bytes
In article <8906010307.AA11892@jade.berkeley.edu> 451061@UOTTAWA.BITNET (Valentin Pepelea) writes: > >The SuperState() & UserState() combo does not work. Use Supervisor() instead: > Thanks to Dave and Valentin for replies. Specifically, the UserState call does not work. It dummies up a stack frame by using the same code that SuperState uses. However, SuperState, in the instance in question, would return with an RTE, UserState returns by poping the SR and then doing an RTS - leaving the dummied format/vector word on the stack for the next rts to stumble over. Nice Job. 8-) Actually, both routines are needlessly complex. I stepped through them with the ROM-wack this weekend. Mark Huth
Technical Details
Message-ID:
<11022@behemoth.phx.mcd.mot.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!purdue!ames!pacbell!att!mcdchg!behemoth!mphReferences:
<8906010307.AA11892@jade.berkeley.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!purdue!ames!pacbell!att!mcdchg!behemoth!mph From: mph@behemoth.phx.mcd.mot.com (Mark Huth) Newsgroups: comp.sys.amiga.tech Subject: Re: Use of SuperState() call Message-ID: <11022@behemoth.phx.mcd.mot.com> Date: 6 Jun 89 23:36:55 GMT References: <8906010307.AA11892@jade.berkeley.edu> Reply-To: mph@behemoth.UUCP (Mark Huth) Organization: Motorola Microcomputer Division, Tempe, Az. Lines: 14