[Coco] Absolute Memory Location
Robert Gault
robert.gault at att.net
Mon Aug 17 13:28:31 EDT 2020
This has got to be a continuation of "Sharing a value with a called routine in Basic09". The
question was answered many messages ago by Wayne Campbell. So why is this still going on?
When you call a B09 routine you can pass a number or a string, have the routine use it, and/or
change it, and pass it back to the calling program if the called routine declares the passed
variable with a PARAM statement.
RUN ROUTINE(10) or RUN ROUTINE(n) or RUN ROUTINE(w$)
ROUTINE
PARAM NUMBER:INTEGER or PARAM NAME:STRING[length]
You don't need to store values in memory or have an Init file.
PARAM is defined and has a programming example "OS-9 Level II", cat # 26-3031, pg 11-108 - 11-111
Robert
More information about the Coco
mailing list