~manxi-david/pyeffect/pyeffect

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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
.section .data
Byte0:
	.byte	0
Byte1:
	.byte	0
Byte2:
	.byte	0
Byte3:
	.byte	0
Byte4:
	.byte	0
Byte5:
	.byte	0
Byte6:
	.byte	0
Byte7:
	.byte	0
Byte8:
	.byte	4
Byte9:
	.byte	0
Byte10:
	.byte	0
Byte11:
	.byte	0
Byte12:
	.byte	0
Byte13:
	.byte	0
Byte14:
	.byte	0
Byte15:
	.byte	0
.section .text
.globl _start
_start:
#Begin of program:
	#	x=0
	#	y=4
	#	if x==5:
	cmpq	$5,	Byte0
	jne if1_0
	#		y=45
	movq	$45,	Byte8
	#		y=0
	movq	$0,	Byte8
	jmp return0
	if1_0:
	return0:
	#	if x==0:
	cmpq	$0,	Byte0
	jne if1_1
	#		if y==4:
	cmpq	$4,	Byte8
	jne if1_2
	#			y=1
	movq	$1,	Byte8
	#			y=100
	movq	$100,	Byte8
	#			x=123
	movq	$123,	Byte0
	jmp return2
	if1_2:
	return2:
	jmp return1
	if1_1:
	return1:
	#	exit(y)
	movq	$60,	%rax
	movq	Byte8,	%rdi
	syscall
#End of program