view interps/cfunge/cfunge-src/tests/refc-invalid-deref.b98 @ 3968:e82654a7f372

<ais523\unfoog> addquote <kmc> Sgeo: oh yeah those animated characters were built into the operating system and there was an API for them
author HackBot
date Fri, 01 Nov 2013 03:30:15 +0000
parents 859f9b4339e6
children
line wrap: on
line source

v >0a"CFER oN" >:#,_@            ; This program tests invalid D in REFC ;
>#^"CFER"4(nv
v           <
>1. #v 0D  "DAB" >:#,_  @        ; Derefence 0 ;
     >a"DOOG">:#,_v
v                 <


>2. #v 01-D  "DAB" >:#,_  @      ; Derefence negative ;
     >a"DOOG">:#,_v
v                 <


>3. 45+ #v D  "DAB" >:#,_  @     ; Derefence postive ;
         >a"DOOG">:#,_v
v                     <


>4. #v nD  "DAB" >:#,_  @        ; Derefence on empty stack ;
     >a"DOOG">:#,_v
v                 <

a                                ; That's all ;
,
@