Article View: comp.sys.amiga.tech
Article #372Re: Assembler Help
From: Randy G Jouett
Date: Thu, 06 Jul 1989 06:38
Date: Thu, 06 Jul 1989 06:38
35 lines
1221 bytes
1221 bytes
It is also important to note that moving data address register direct will not set the condition codes of that status register. That is: lea DosName(pc),a1 moveq #33,d0 ;The next instruction will not set the condition codes. move.l _AbsExecBase,a6 jsr _LVOOpenLibrary(a6) ;the following line won't set them either. move.l d0,a0 beq NoDos ;wud never be taken if d0 is NULL. Here is how the code should look: lea DosName(pc),a1 moveq #33,d0 move.l _AbsExecBase,a6 jsr _LVOOpenLibrary(a6) move.l d0,DBase(a4) ;base relative addressing via geta4(), ;_LinkerDB, etc. beq NoDos ;no dos around these parts. move.l d0,An ;if you want to put DosBase in an ;address register. Hope all this helps..................... -- Randy Jouett sun!portal!cup.portal.com!nop or nop@cup.portal.com
Technical Details
Message-ID:
<20172@cup.portal.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!cs.utexas.edu!uunet!portal!cup.portal.com!nopReferences:
<20123@cup.portal.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!cs.utexas.edu!uunet!portal!cup.portal.com!nop From: nop@cup.portal.com (Randy G Jouett) Newsgroups: comp.sys.amiga.tech Subject: Re: Assembler Help Message-ID: <20172@cup.portal.com> Date: 6 Jul 89 06:38:52 GMT References: <20123@cup.portal.com> Organization: The Portal System (TM) Lines: 35