Plan 9 from Bell Labs’s /usr/web/sources/contrib/fgb/root/sys/src/cmd/4th/lib/ncoding.4th

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


\ 4tH library - NCODING - Copyright 2004 J.L. Bezemer
\ You can redistribute this file and/or modify it under
\ the terms of the GNU General Public License

[UNDEFINED] N! [IF]
255 constant 8bit
/cell constant /nell
/nell constant nell

: nells nell * ;
: nell+ nell + ;
: nell- nell - ;
: nell-bounds dup nell+ ;
: n! nell-bounds swap do dup 8bit and i c! 8 rshift loop drop ;
: n@ 0 swap char- nell-bounds do 8 lshift i c@ or -1 +loop ;

[DEFINED] 4TH# [IF]
hide 8bit
hide nell-bounds
[THEN]
[THEN] 

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.