Does anyone know how to load the straight contents of a file straight into a
memory position, starting at an arbitrary address. Looking for a
macro/app/anything .. cheers.
I want to load a program i assembled elsewhere and test it.
cheers,
gerard
Loading the contents of a file into a memory is simple (FSRead).
However, loading a file is not the same as loading a program. There are
many other things involved in loading a program. Probably the simplest
thing to do is to load the file into an existing program and then run it
from inside the other program. All you have to do is write a simple
program to load your file and run it, and you solved the problem of all
the complicated stuff that running a program involves.
hth
meeroh
--
To get random signatures put text files into a folder called "Random Signatures" into your Preferences folder.
I do have access to ResEdit, would it involve adding another CODE resource?
"meeroh" <mac...@meeroh.org> wrote in message
news:macdev-F98714....@senator-bedfellow.mit.edu...> In article
>On this particular machine i neither have access to a compiler nor
>assembler. Actually i'd rather bypass the OS completely and start in the
>debugger. I am not particularly used to native os calls (i am guess that's
>what FSRead is), but am interested in this inlining code into existing
>programs. How exactly do you do that?
>
>I do have access to ResEdit, would it involve adding another CODE resource?
Get a compiler and learn how to create simple applications. Then
understand how they work and how they are loaded. Then try to do
something different.
It is not just a matter of adding a CODE resource. I am guessing that
you are not familiar with the way that code resources and applications
work on Mac OS, therefore I think you should familiarize with that
before you try to change it.
You are also not telling us exactly what you are doing. The solution
depends on the problem, and you are not giving us the problem, you are
giving us a solution and asking how to implement it. There are probably
half a dozen ways to do what you ask, and the most appropriate one
depends on what you are really trying to do.
hth
meeroh
--
The contents of text files in a folder called "Random Signatures" in your Preferences folder are used as random signatures.
In article <OTlM6.2337$nj6.5...@news20.bellglobal.com>,
Hypocritic <ger...@gerardbaron.com> wrote:
>On this particular machine i neither have access to a compiler nor
>assembler.
CALL -151 gets you into the Monitor; on the IIGS/IIc/IIc+/enhanced IIe, IIRC
"!" gets you into the mini-assembler.
>I do have access to ResEdit, would it involve adding another CODE resource?
ResEdit? That's a Mac thing, not an Apple II thing. Time to trim your
newsgroup list so that comp.sys.apple2.programmer isn't included.
_/_
/ v \
(IIGS( Scott Alfter (remove Voyager's hull number for email address)
\_^_/ http://salfter.dyndns.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7ArAXVgTKos01OwkRAl7WAKDf8ZSfFZ/hy+gCcWW7JHcaajHUjACfeVth
Yv4+UEpO3/WzfsPkBTQ36Ic=
=+5Ur
-----END PGP SIGNATURE-----