home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.forth      Forth programmers eat a lot of Bratwurst      117,927 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 117,323 of 117,927   
   dxf to Anton Ertl   
   Re: ADDRESSABLE: value-flavoured words   
   13 May 25 15:29:35   
   
   From: dxforth@gmail.com   
      
   On 12/05/2025 5:40 pm, Anton Ertl wrote:   
   > ...   
   > : bar {: addressable: x -- y :}   
   >   5 addr x +! x ;   
   >   
   > As you can see, it's hard to give simple examples for the use of ADDR   
   > that are not contrived.   
      
   I use ADDR in assembler code to access VALUEs e.g.   
      
     addr silencemax ) ax cmp   
      
   Since ADDR also works on my DEFERs I was able to avoid DEFER@ etc.   
      
   Bottom line: I don't use ADDR much (it would indicate I should be   
   using VARIABLE not VALUE) but very handy when I need to.   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca