-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsevereJumpCase.txt
83 lines (73 loc) · 1.86 KB
/
severeJumpCase.txt
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
73
74
75
76
77
78
79
80
81
82
83
#this is a comment
#all numbers are in hexadecimal
#the reset signal is raised before this code is executed and the flags and the registers are set to zeros.
.ORG 0 #this is the interrupt code
AND R3,R4
ADD R1,R4
OUT R4
.ORG 20 #this is the instructions code
IN R1 #add 00000004 in R1
IN R2 #add 00000020 in R2
IN R3 #FFFFFFFF
IN R4 #FFFFF320
MOV R3,R5 #R5= FFFFFFFF , flags no change
ADD R1,R2 #R2= 24
NOT R3
JN R2
OUT R1
OUT R2
OUT R3
OUT R4
IN R5 #IN = AABD
OUT R5
INC R2
JMP R2
ADD R0, R0
ADD R0, R0
---------------------------------------------
#this is a comment
#all numbers are in hexadecimal
#the reset signal is raised before this code is executed and the flags and the registers are set to zeros.
.ORG 0 #this is the interrupt code
AND R3,R4
ADD R1,R4
OUT R4
.ORG 20 #this is the instructions code
IN R1 #add 0000000D in R1
IN R2 #add 00000020 in R2
IN R3 #FFFFFFFF
IN R4 #FFFFF320
MOV R3,R5 #R5= FFFFFFFF , flags no change
ADD R1,R2 #R2= 24
NOT R3
PUSH R2
ADD R0,R0
POP R3
CALL R2
ADD R0,R0
ADD R0,R0
NOT R3
ADD R1,R0
NOT R3
OUT R1
RET v
-----------------------------------------
#this is a comment
#all numbers are in hexadecimal
#the reset signal is raised before this code is executed and the flags and the registers are set to zeros.
.ORG 0 #this is the interrupt code
AND R3,R4
ADD R1,R4
OUT R4
.ORG 20 #this is the instructions code
IN R1 #add 00000005 in R1
IN R2 #add 00000005 in R2
IN R3 #FFFFFFFF
IN R4 #FFFFF320
MOV R3,R5 #R5= FFFFFFFF , flags no change
SUB R1,R2 #R2= 0
NOT R3
LDM R3,5
ADD R6,R0
ADD R0,R0
-------------------------------------------