Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
499B

  1. Addressed devices
  2. The adev unit provides a simple but powerful abstraction over
  3. C@ and C!: A@ and A!. These work the same way as C@ and C! (but
  4. for performance reasons, aren't used in core words), but are
  5. indirect calls.
  6. Upon initialization, the default to C@ and C!, but can be set
  7. to any word through A@* and A!*.
  8. On top of that, it provides a few core-like words such as
  9. AMOVE.
  10. Let's demonstrate its use through a toy example:
  11. (cont.)