TEXT   22
KERNEL
Guest on 17th March 2023 01:12:21 PM


  1. KERNEL
  2. Added PERFORM ( addr -- )
  3. : perform       \ addr --
  4. EXECUTE contents of addr if non-zero.
  5.  
  6. Forced initialisation of SYSPAD in startup and callback entry
  7. code.
  8.  
  9. Optimised more USER variables.
  10.  
  11. Added:
  12. : data-file     \ -- size ; DATA-FILE <filename>
  13. Loads a file to memory at *\fo{HERE} and *\fo{ALLOT}s memory.
  14. The size of the file is returned. This is a good way to load
  15. data directly into the dictionary at compile time. It avoids
  16. having to convert binary data into streams of digits and commas.
  17. For example, DocGen keeps a CSS file in the dictionary:
  18. CREATE BootstrapAddr    \ --
  19.   data-file bootstrap.min.css     \ load the file
  20. constant /Bootstrap               \ keep the length

Raw Paste

Login or Register to edit or fork this paste. It's free.