scsh-0.6/ps-compiler/prescheme/test/memory.scm

9 lines
232 B
Scheme
Raw Permalink Normal View History

1999-09-14 08:45:02 -04:00
; Copyright (c) 1994 by Richard Kelsey. See file COPYING.
(define (test x i)
(let ((m (allocate-memory 10)))
(unsigned-byte-set! (+ m i) x)
(word-set! (+ m i) (+ 1 (word-ref (+ m i))))
(unsigned-byte-ref (+ m i))))