On Sep 18, 9:36, Patrick Finnegan wrote:
> On Wed, 18 Sep 2002, Pete Turnbull wrote:
>
> > My example is a bit contrived; that's not really how I'd do it.
Instead,
> > I'd write a subroutine that wrote out a whole string, the string being
> > stored immediately after the JSR, and returning to the word after the
> > string. But that's another story.
>
> FYI, I was trying to use that as an example to try and learn MACRO-11
(fun
> stuff, eh?). I've made myself a subroutine version of the code also, I'm
> not yet trying for reusable or well-written code, just something I can
> quickly enter into ODT and see if what I did worked.
I didn't mean to denigrate your code :-) I guessed you might just be
learing about MACRO-11 and the PDP-11 instruction set. I learned by
writing short toggle-in programs, mostly hand-assembled, mostly to test
hardware, and some of them are much more embarrassing than your effort :-)
Yes, it is fun, and I offered the examples purely in the spirit of
contrasting two types of addressing modes, whose syntax isn't always
immediately obvious to a beginner.
Now you can write subroutines, have you tried a little fun with
co-routines?
--
Pete Peter Turnbull
Network Manager
University of York
Received on Wed Sep 18 2002 - 17:00:00 BST