home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sun4nl!wtrlnd!nextjk!fidonet!p15.f202.n281.z2.fidonet
- From: Vincent_Partington@p15.f202.n281.z2.fidonet
- Newsgroups: comp.sys.atari.st.tech
- Subject: Re: Using PC-relative addressing with TSRs
- Message-ID: <2b62425e@p15.f202.n281.z2.fidonet>
- Date: Sun, 24 Jan 93 08:14:30 +0100
- Reply-To: p15.f202.n281.z2.fidonet!Vincent_Partington@nextjk.wlink.nl
- Distribution: world
- X-FSC-PID: LED 1.00
- Lines: 21
-
- In a message of <Sat 23 Jan 93 05:47>, Conan Ford (2:281/202.0) writes:
-
- CF> I was writing a TSR and couldn't figure out exactly why it was
- CF> bombing. Is it okay to use the PC in a VBL?
-
- Of course. PC-relative addressing ALWAYS works, but if those BVL routines
- are just started from within a normal program that gets relocated, not from
- the bootsector or something, you don't HAVE to use PC-relative addressing.
-
- But you cannot use any system calls from within the VBL and you should save
- all registers that you use before your routine and restore them afterwards.
-
- Ta!
- Vincent
-
- FidoNet : 2:281/202.15
- NeST : 90:500/202.15
- Usenet : vincent@nextjk.wlink.nl
-
- --- MARSmail v1.20/4D
- * Origin: For full duplex transfers, use Jekyll (2:281/202.15)
-