[A89] Re: file routines
[Prev][Next][Index][Thread]
[A89] Re: file routines
The problem is the very first line: move.l #200,a2
see, you are moving an interger into a2, not reading from memory at
adress 200.
so get rid of that "#" character.
-Samuel Stearley
Quoting TJ <comfortably_numb_@hotmail.com>:
>
> i found the source to it and i tried to modify it but i got an
> address
> error, heres the code that i used, i know its my mistake because i
> tried
> your program and it worked right. so hopefully you can tell me
> what i did
> wrong
>
> move.l #200,a2
> move.l a7,a6
> clr.w -(a7) ;copy flags are 0
> move.l #59,-(a7) ;length to copy into the clipboard
> lea sprite(pc),a3 ;address to copy from
> pea 1(a3)
> move.l 772(a2),a0 ;get replace clipboard call
> jsr (a0)
> move.l a6,a7
>
> >
> > I wrote a program a while back called "copy to the clipboard" it
> lets
> > users pass a string argument to to it and the text is copied to
> the
> > clipboard. It's at ticalc in the misc section. source is
> included.
> >
> >
> > -Samuel
> >
> >
> >
>
>
Follow-Ups:
References: