Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!rutgers!cbmvax!darren From: darren@cbmvax.commodore.com (Darren Greenwald) Newsgroups: comp.sys.amiga.programmer Subject: Re: Short Hello World Message-ID: <21806@cbmvax.commodore.com> Date: 22 May 91 19:10:21 GMT References: <1991May21.030058.9972@cinnet.com> <1991May22.132222.29285@cs.umu.se> Reply-To: darren@cbmvax.commodore.com (Darren Greenwald) Organization: Commodore, West Chester, PA Lines: 29 In article <1991May22.132222.29285@cs.umu.se> dvljrt@cs.umu.se (Joakim Rosqvist) writes: >In article <1991May21.030058.9972@cinnet.com> kilian@cinnet.com (Kilian Jacob) writes: >> >>Subject: Re: Short Hello World >> >>OldOpenLibrary: >> moveq.l #0,d0 ; any version number -- this takes up two bytes >>OpenLibrary: >> ... ; just continue using the new OpenLibrary code >> rts >> >>-- / >Unfortunately, they are not as smart as you. They use: > >OldOpenLibrary: > moveq.l #0,d0 > jsr OpenLibrary(a6) > rts > >6 bytes more than necessary! > > >/$DR.HEX$ > What about ramlib which SetFunctions the OpenLibrary() vector so that libraries can be opened off of disk (after dos is up, and running)? It would require far more code to SetFunction both vectors than it does to have OldOpenLibrary() jump through the OpenLibrary() vector.