-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBreakpoints-Extended.b
More file actions
48 lines (40 loc) · 821 Bytes
/
Copy pathBreakpoints-Extended.b
File metadata and controls
48 lines (40 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
+++ +++
[>++++ ++++<-]
>+.[-]<[-]
*/
// +#[-]
/* If comments do not work, will print out a '1' or an '11' */
/* Does scratch memory work? */
+++ +++ >
+++ +++
{
++ > +<
}
>>[-]<<<
[>>>+<<<-]
>>>[
<<[<+>>+<-]
>[<+>-]
>-]
<[-]<[-]<.[-]
/* expected output:
0
expected output if scratch memory does not work:
5
*/
/*
/* Does return-to-0 operator work? */
/* Expected output:
0
Expected output if operator does not work:
1
*/
++++++[>++++++++<-]>[<+>>+<-]>[<+>-]<+^.
[-]>[-]<
/* Call Breakpoints-Extended.include.b */
/* First we check if the include grabs the right values from the calling file */
[-]+>++++++++++++++++++++++++++++++++++++++++++++++++<
@Breakpoints-Extended.include.b@
/* Check that the correct values were returned */
#[-]>#[-] /* Should print out a one then a two. */