diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2014-11-28 16:16:30 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2014-11-28 16:16:30 -0800 |
commit | d9dfd8a31a97150d8974933ad22671b8591fc4bc (patch) | |
tree | 8758e410518c6e1ab492087f876a2ed887fd7ad4 /mu.arc.t | |
parent | 73cff60f2547f006c64bbf75ec359d392c1de866 (diff) | |
download | mu-d9dfd8a31a97150d8974933ad22671b8591fc4bc.tar.gz |
357
Diffstat (limited to 'mu.arc.t')
-rw-r--r-- | mu.arc.t | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mu.arc.t b/mu.arc.t index c7c4a6c1..c677413d 100644 --- a/mu.arc.t +++ b/mu.arc.t @@ -721,6 +721,16 @@ (prn "F - 'addr' works with indirectly-addressed 'deref'")) (= routine* make-routine!foo) +(if (~is 4 (addr '(4 integer))) + (prn "F - directly addressed operands are their own address inside routines")) +(if (~is 4 (addr '(4 integer-address))) + (prn "F - directly addressed operands are their own address inside routines - 2")) +(if (~is 4 (addr '(4 literal))) + (prn "F - 'addr' doesn't understand literals inside routines")) +(= memory*.4 23) +(if (~is 23 (addr '(4 integer-address deref))) + (prn "F - 'addr' works with indirectly-addressed 'deref' inside routines")) + (= rep.routine*!call-stack.0!default-scope 10) (= memory*.10 5) ; bounds check for default-scope (if (~is 14 (addr '(4 integer))) |