Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
31
Task/Arrays/Computer-zero-Assembly/arrays-1.0asm
Normal file
31
Task/Arrays/Computer-zero-Assembly/arrays-1.0asm
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
load: LDA ary
|
||||
ADD sum
|
||||
STA sum
|
||||
|
||||
LDA load
|
||||
ADD one
|
||||
STA load
|
||||
|
||||
SUB end
|
||||
BRZ done
|
||||
|
||||
JMP load
|
||||
|
||||
done: LDA sum
|
||||
STP
|
||||
|
||||
one: 1
|
||||
end: LDA ary+10
|
||||
|
||||
sum: 0
|
||||
|
||||
ary: 1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
30
Task/Arrays/Computer-zero-Assembly/arrays-2.0asm
Normal file
30
Task/Arrays/Computer-zero-Assembly/arrays-2.0asm
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
load: LDA ary
|
||||
BRZ done
|
||||
|
||||
ADD sum
|
||||
STA sum
|
||||
|
||||
LDA load
|
||||
ADD one
|
||||
STA load
|
||||
|
||||
JMP load
|
||||
|
||||
done: LDA sum
|
||||
STP
|
||||
|
||||
one: 1
|
||||
|
||||
sum: 0
|
||||
|
||||
ary: 1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
0
|
||||
Loading…
Add table
Add a link
Reference in a new issue