🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Help wanted on SetFunction in Multi-Forth

#11247
From: Mike Krell
Date: Mon, 30 Jan 1989 13:53
17 lines
1361 bytes
     I'm trying to write a simple program in Multi-Forth to replace the 
annoying flash generated by DisplayBeep with an audio bell instead.  My
idea is to use SetFunction to replace the DisplayBeep jump vector in the
Intuition library with one to my own code. 
     SetFunction requires the absolute address of the replacement routine.
How do I get this address?  Even if I use the FROM.HEAP word to request heap
space for my routine, how do I tell Multi-Forth to compile my Forth code
at the address returned by FROM.HEAP?  Will this approach even work, or 
should I be thinking along different lines?
     Thanks in advance for any help.    

Mike Krell                               "I may be accused of being confused,
krell@xanth.cs.odu.edu                    but I'm average weight for my height.
                                          My philosophy, like color TV, 
 "I can't believe my life                 is all there in black and white."
  is happening to me." --  P. Norton                M. Python
Technical Details
Message-ID: <7450@xanth.cs.odu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!xanth!krell

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!xanth!krell
From: krell@xanth.cs.odu.edu (Mike Krell)
Newsgroups: comp.sys.amiga.tech
Subject: Help wanted on SetFunction in Multi-Forth
Message-ID: <7450@xanth.cs.odu.edu>
Date: 30 Jan 89 13:53:27 GMT
Organization: Old Dominion University, Norfolk Va.
Lines: 17