🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #4279

Re: Self Modifying Code!

#4279
From: Jhary a Conel
Date: Mon, 09 Jul 1990 01:33
22 lines
1298 bytes
brett@smosjc.UUCP (Brett Coon) writes:

>Is there an acceptable means to write self-modifying code on the Amiga?

>Assuming for the sake of argument that I have a good reason to do such
>a thing (and there's a good chance I don't), can I do it without risking
>future compatibility?  My current plan is to select one of a few possible
>versions of the code at the beginning, and then patch the code to use the
>appropriate version.  It would be done once, during initialization, so 

>-brett


	Maybe I am off the track on this, but have you thought about using
the DOS loadseg() command. I am not sure how to use it (never have myself)
but if you have the different versions of the code in seperate code segments
then you could select which one you want and then use loadseg() to bring it 
into memory and there would be no need for any self modifying anything.

Just a suggestion.

Jhary
Technical Details
Message-ID: <18013@ultima.cs.uts.oz>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!munnari.oz.au!metro!cluster!ultima!vilkas
References: <293@smosjc.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!munnari.oz.au!metro!cluster!ultima!vilkas
From: vilkas@ultima.cs.uts.oz (Jhary a Conel)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Self Modifying Code!
Keywords: help, danger, cache, no flames
Message-ID: <18013@ultima.cs.uts.oz>
Date: 9 Jul 90 01:33:55 GMT
References: <293@smosjc.UUCP>
Organization: Comp Sci, NSWIT, Australia
Lines: 22