git @ Cat's Eye Technologies SixtyPical / 8df16d7
Another passing test which is a little surprising. Chris Pressey 3 years ago
1 changed file(s) with 15 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
19871987 | }
19881988 ? UnmeaningfulOutputError: x
19891989
1990 A value which is not output from the routine, is preserved by the
1991 routine; and can appear in a `save` exactly because a `save` preserves it.
1992
1993 | routine main
1994 | inputs a
1995 | outputs a
1996 | trashes z, n
1997 | {
1998 | save x {
1999 | ld a, 0
2000 | ld x, 1
2001 | }
2002 | }
2003 = ok
2004
19902005 ### copy ###
19912006
19922007 Can't `copy` from a memory location that isn't initialized.