hexsha
stringlengths
40
40
size
int64
6
1.05M
ext
stringclasses
3 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
232
max_stars_repo_name
stringlengths
7
106
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
7
max_stars_count
int64
1
33.5k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
232
max_issues_repo_name
stringlengths
7
106
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
7
max_issues_count
int64
1
37.5k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
232
max_forks_repo_name
stringlengths
7
106
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
7
max_forks_count
int64
1
12.6k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
6
1.05M
avg_line_length
float64
1.16
19.7k
max_line_length
int64
2
938k
alphanum_fraction
float64
0
1
5e1cadce26fe104067ac46c7e444e3dc4a065ac4
726
asm
Assembly
programs/oeis/066/A066872.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/066/A066872.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/066/A066872.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A066872: p^2 + 1 as p runs through the primes. ; 5,10,26,50,122,170,290,362,530,842,962,1370,1682,1850,2210,2810,3482,3722,4490,5042,5330,6242,6890,7922,9410,10202,10610,11450,11882,12770,16130,17162,18770,19322,22202,22802,24650,26570,27890,29930,32042,32762,36482,37250,38810,39602,44522,49730,51530,52442,54290,57122,58082,63002,66050,69170,72362,73442,76730,78962,80090,85850,94250,96722,97970,100490,109562,113570,120410,121802,124610,128882,134690,139130,143642,146690,151322,157610,160802,167282,175562,177242,185762,187490,192722,196250,201602,208850,212522,214370,218090,229442,237170,241082,249002,253010,259082,271442,273530,292682 seq $0,6005 ; The odd prime numbers together with 1. pow $0,2 max $0,4 add $0,1
90.75
595
0.800275
977c68f7bae778da5f1daf3866abb479d1bfc57b
772
asm
Assembly
oeis/048/A048576.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/048/A048576.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/048/A048576.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A048576: Pisot sequence L(2,7). ; Submitted by Christian Krause ; 2,7,25,90,324,1167,4204,15145,54561,196561,708130,2551107,9190611,33110070,119282248,429725902,1548129365,5577286637,20092717660,72385969961,260777498389,939476306012,3384554783333,12193187851654,43927145371633,158251814371812,570117555786882,2053903954950826,7399388798578916,26657017948945898,96034500318039358,345973629495950167,1246403656083965459,4490290419425336499,16176708045073866229,58278164379632237873,209952756394938532912,756375228819631006880,2724915340934010397194 mov $4,2 lpb $4 sub $4,1 add $0,$4 sub $0,1 mov $1,2 mov $2,4 lpb $0 sub $0,1 add $3,$2 div $3,$2 mov $2,$1 mul $1,3 add $1,$3 mul $3,$1 sub $3,$4 lpe div $4,2 lpe mov $0,$1
30.88
482
0.757772
7a7c37f76ebbc6e067b270626ef959c3b2788a1e
268
asm
Assembly
tp/libs/asmlib/libad64.asm
pg83/zm
ef9027bd9ee260118fdf80e8b53361da1b7892f3
[ "MIT" ]
null
null
null
tp/libs/asmlib/libad64.asm
pg83/zm
ef9027bd9ee260118fdf80e8b53361da1b7892f3
[ "MIT" ]
null
null
null
tp/libs/asmlib/libad64.asm
pg83/zm
ef9027bd9ee260118fdf80e8b53361da1b7892f3
[ "MIT" ]
null
null
null
%include "defs.asm" ; ----------------------------- LIBAD64.ASM --------------------------- ; DLL entry function for LIBAD64.DLL default rel global DllEntry: function SECTION .text align=16 DllEntry: mov eax, 1 ret ;DllMain endp
16.75
72
0.492537
4bfb7e33f7d57271f0792eeeafb38b42316bce72
22,081
asm
Assembly
kernel/set.asm
pixie-grasper/operating-system
5a48872f67ef6cdcfbd454e73c6a9c3be7f1eea2
[ "MIT" ]
1
2016-05-14T11:00:13.000Z
2016-05-14T11:00:13.000Z
kernel/set.asm
pixie-grasper/operating-system
5a48872f67ef6cdcfbd454e73c6a9c3be7f1eea2
[ "MIT" ]
null
null
null
kernel/set.asm
pixie-grasper/operating-system
5a48872f67ef6cdcfbd454e73c6a9c3be7f1eea2
[ "MIT" ]
1
2021-09-08T10:16:46.000Z
2021-09-08T10:16:46.000Z
%ifndef SET_ASM_ %define SET_ASM_ ; structure ; set = {root-node | nil, reserved} ; node = {value, left | nil, right | nil}, extra-field = balance: 8 bits ; balance = -2 .. 2 (includes internal-state-value) set: .new: call objects.new.raw mov byte [rax + object.class], object.set id_from_addr a ret .dispose.raw: pushs a id_from_addr a call .clear pops a ret ; in: a = set id .clear: pushs a, d addr_from_id d, a ldaddr a, [rdx + object.content] testaddr a jz .clear.1 mov rdx, rax call .clear.2 .clear.1: pops a, d ret .clear.2: ldid a, [rdx + object.internal.content] call objects.unref mov rax, rdx ldaddr d, [rax + object.internal.content + word.size] testaddr d jz .clear.3 push rax call .clear.2 pop rax .clear.3: ldaddr d, [rax + object.internal.content + word.size * 2] testaddr d jz .clear.4 push rax call .clear.2 pop rax .clear.4: call objects.dispose.raw ret ; in: a = set id .clear.move: pushs a, d addr_from_id d, a ldaddr a, [rdx + object.content] testaddr a jz .clear.move.1 call .clear.move.2 .clear.move.1: pops a, d ret .clear.move.2: mov rdx, rax ldaddr a, [rdx + object.internal.content + word.size] testaddr a jz .clear.move.3 push rdx call .clear.move.2 pop rdx .clear.move.3: ldaddr a, [rdx + object.internal.content + word.size * 2] testaddr a jz .clear.move.4 push rdx call .clear.move.2 pop rdx .clear.move.4: mov rax, rdx call objects.dispose.raw ret ; @const ; in: a = set id ; in: d = value id ; out: a = false if not found, true if found .find: pushs d, si, di addr_from_id si, a clear_before_ld a ldaddr a, [rsi + object.content] testaddr a jz .find.4 movid di, d .find.1: mov rsi, rax ldid a, [rsi + object.internal.content] movid d, di call objects.lt testid a jz .find.2 ; [si:o.i.c] < value clear_before_ld a ldaddr a, [rsi + object.internal.content + word.size * 2] testaddr a jz .find.4 jmp .find.1 .find.2: movid a, di ldid d, [rsi + object.internal.content] call objects.lt testid a jz .find.3 ; [si:o.i.c] > value clear_before_ld a ldaddr a, [rsi + object.internal.content + word.size] testaddr a jz .find.4 jmp .find.1 .find.3: ldt a jmp .find.5 .find.4: ldnil a .find.5: pops d, si, di ret ; in: a = set id ; in: d = value id .insert: pushs a, c, d, si, di, bp addr_from_id c, a ldaddr si, [rcx + object.content] testaddr si jnz .insert.1 call objects.new.chunk stid [rax + object.internal.content], d id_from_addr a stid [rcx + object.content], a movid a, d call objects.ref jmp .insert.6 .insert.1: call stack.new movid bp, a movid di, d .insert.2: ; c: address of the set ; si: address of the current node ; di: value id ; bp: stack id indicates path ldid a, [rsi + object.internal.content] movid d, di call objects.lt testid a jz .insert.3 ; [si:o.i.c.] < value ; push node, true movid a, bp mov rdx, rsi id_from_addr d call stack.push.move ldt d call stack.push.move ldaddr a, [rsi + object.internal.content + word.size * 2] testaddr a mov rsi, rax ; then, if node->right != nil, continue node <- node->right jnz .insert.2 ; if node->right == nil, node->right <- new and balance call objects.new.chunk stid [rax + object.internal.content], di id_from_addr a stid [rsi + object.internal.content + word.size * 2], a jmp .insert.4 .insert.3: movid a, di ldid d, [rsi + object.internal.content] call objects.lt testid a ; if it found in the set, break and end without balance jz .insert.5 ; [si:o.i.c.] > value ; push node, false movid a, bp mov rdx, rsi id_from_addr d call stack.push.move xor edx, edx call stack.push.move ldaddr a, [rsi + object.internal.content + word.size] testaddr a mov rsi, rax ; then, if node->left != nil, continue node <- node->left jnz .insert.2 call objects.new.chunk stid [rax + object.internal.content], di id_from_addr a stid [rsi + object.internal.content + word.size], a .insert.4: ldid a, [rcx + object.content] movid d, bp call .insert.balance stid [rcx + object.content], a movid a, di call objects.ref .insert.5: movid a, bp call stack.clear.move call objects.unref .insert.6: pops a, c, d, si, di, bp ret ; in: a = set id ; in: d = value id .insert.move: pushs a, c, d, si, di, bp addr_from_id c, a ldaddr si, [rcx + object.content] testaddr si jnz .insert.move.1 call objects.new.chunk stid [rax + object.internal.content], d id_from_addr a stid [rcx + object.content], a jmp .insert.move.6 .insert.move.1: call stack.new movid bp, a movid di, d .insert.move.2: ; c: address of the set ; si: address of the current node ; di: value id ; bp: stack id indicates path ldid a, [rsi + object.internal.content] movid d, di call objects.lt testid a jz .insert.move.3 ; [si:o.i.c.] < value ; push node, true movid a, bp mov rdx, rsi id_from_addr d call stack.push.move ldt d call stack.push.move ldaddr a, [rsi + object.internal.content + word.size * 2] testaddr a mov rsi, rax ; then, if node->right != nil, continue node <- node->right jnz .insert.move.2 ; if node->right == nil, node->right <- new and balance call objects.new.chunk stid [rax + object.internal.content], di id_from_addr a stid [rsi + object.internal.content + word.size * 2], a jmp .insert.move.4 .insert.move.3: movid a, di ldid d, [rsi + object.internal.content] call objects.lt testid a ; if it found in the set, break and end without balance jz .insert.move.5 ; [si:o.i.c.] > value ; push node, false movid a, bp mov rdx, rsi id_from_addr d call stack.push.move xor edx, edx call stack.push.move ldaddr a, [rsi + object.internal.content + word.size] testaddr a mov rsi, rax ; then, if node->left != nil, continue node <- node->left jnz .insert.move.2 call objects.new.chunk stid [rax + object.internal.content], di id_from_addr a stid [rsi + object.internal.content + word.size], a .insert.move.4: ldid a, [rcx + object.content] movid d, bp call .insert.balance stid [rcx + object.content], a .insert.move.5: movid a, bp call stack.clear.move call objects.unref .insert.move.6: pops a, c, d, si, di, bp ret ; in: a: root node id ; in: d: stack id indicates path ; out: a: root node id .insert.balance: pushs b, c, d, si, di ; b: address of the pnode ; c: stack id ; si: address of the new-node ; di: root node id movid di, a ; while path.len > 0 movid a, d call stack.empty test rax, rax jnz .insert.balance.8 movid c, d ldnil si .insert.balance.1: ; pnode, dir <- path.pop() movid a, c call stack.pop.move movid d, a movid a, c call stack.pop.move addr_from_id b, a ; if dir == LEFT: pnode.balance++ else: pnode.balance-- ; note: dir == 0(LEFT) or dir == 1(RIGHT). add edx, edx dec edx sub [rbx + object.internal.padding], dl ; if pnode.balance == 0: return root mov dl, [rbx + object.internal.padding] test dl, dl jz .insert.balance.8 ; if pnode.balance > 1: cmp dl, 1 jng .insert.balance.3 ; if pnode.left.balance < 0: ldaddr d, [rbx + object.internal.content + word.size] cmp byte [rdx + object.internal.padding], 0 jnl .insert.balance.2 ; pnode.left <- rotate.left pnode.left mov rax, rdx call .rotate.left id_from_addr a stid [rbx + object.internal.content + word.size], a ; new-node <- rotate.right pnode mov rax, rbx call .rotate.right mov rsi, rax ; balance.update new-node call .balance.update jmp .insert.balance.6 ; else: .insert.balance.2: ; new-node <- rotate.right pnode mov rax, rbx call .rotate.right mov rsi, rax ; new-node.balance <- 0 ; pnode.balance <- 0 mov byte [rax + object.internal.padding], 0 mov byte [rbx + object.internal.padding], 0 ; break jmp .insert.balance.6 ; elif pnode.balance < -1: .insert.balance.3: cmp dl, -1 jnl .insert.balance.5 ; if pnode.right.balance > 0: ldaddr d, [rbx + object.internal.content + word.size * 2] cmp byte [rdx + object.internal.padding], 0 jng .insert.balance.4 ; pnode.right <- rotate.right pnode.right mov rax, rdx call .rotate.right id_from_addr a stid [rbx + object.internal.content + word.size * 2], a ; new-node <- rotate.left pnode mov rax, rbx call .rotate.left mov rsi, rax ; balance.update new-node call .balance.update jmp .insert.balance.6 ; else: .insert.balance.4: ; new-node <- rotate.left pnode mov rax, rbx call .rotate.left mov rsi, rax ; new-node.balance <- 0 ; pnode.balance <- 0 mov byte [rax + object.internal.padding], 0 mov byte [rbx + object.internal.padding], 0 ; break jmp .insert.balance.6 .insert.balance.5: ; wend movid a, c call stack.empty testid a jz .insert.balance.1 .insert.balance.6: ; if path.len > 0: movid a, c call stack.empty testid a jnz .insert.balance.7 ; gnode, gdir <- path.pop() movid a, c call stack.pop.move clear_before_ld d movid d, a movid a, c call stack.pop.move addr_from_id b, a ; if gdir == LEFT: gnode.left <- new-node else: gnode.right <- new-node id_from_addr si stid [rbx + object.internal.content + word.size + rdx * word.size], si jmp .insert.balance.8 .insert.balance.7: ; elif new-node is not nil: return new-node id_from_addr si jz .insert.balance.8 movid di, si .insert.balance.8: movid a, di pops b, c, d, si, di ret ; in: a = set id ; in: d = value id .remove: pushs a, b, c, d, si, di, bp addr_from_id c, a ; if root-node == nil: do nothing ldaddr si, [rcx + object.content] testaddr si jz .remove.12 call stack.new movid bp, a movid di, d ; c: address of the set ; si: address of the current node ; di: value id ; bp: stack id indicates path .remove.1: ; while node != nil: ldid a, [rsi + object.internal.content] movid d, di call objects.lt testid a jz .remove.2 ; [si:o.i.c.] < value ; push node, true movid a, bp mov rdx, rsi id_from_addr d call stack.push.move ldt d call stack.push.move ; node <- node.right ldaddr si, [rsi + object.internal.content + word.size * 2], a jmp .remove.3 .remove.2: movid a, di ldid d, [rsi + object.internal.content] call objects.lt testid a jz .remove.4 ; [si:o.i.c] > value ; push node, false movid a, bp mov rdx, rsi id_from_addr d call stack.push.move ldnil d call stack.push.move ; node <- node.left ldaddr si, [rsi + object.internal.content + word.size], a .remove.3: ; wend ; test rsi, rsi ; test not needed; the shl sets/clears flags.z jnz .remove.1 jmp .remove.11 ; if not found: dispose stack and return. .remove.4: ; [si:o.i.c] == value ldid a, [rsi + object.internal.content] call objects.unref ; if it has childlen: ldid a, [rsi + object.internal.content + word.size] testid a jz .remove.7 ldid a, [rsi + object.internal.content + word.size * 2] testid a jz .remove.7 ; find node.right.left.left.left. ... .left that is not nil ; push node, true movid a, bp mov rdx, rsi id_from_addr d call stack.push.move ldt d call stack.push.move ; that <- node.right ldaddr b, [rsi + object.internal.content + word.size * 2] .remove.5: ; while that.left != nil: ldid a, [rbx + object.internal.content + word.size] testid a jz .remove.6 ; push that, false movid a, bp mov rdx, rbx id_from_addr d call stack.push.move ldnil d call stack.push.move ; that <- that.left ldaddr b, [rbx + object.internal.content + word.size], a jmp .remove.5 .remove.6: ; node.value <- that.value ldid d, [rbx + object.internal.content] stid [rsi + object.internal.content], d ; node <- that mov rsi, rbx .remove.7: ; if path.len != 0: pnode <- path.top().node else: pnode <- nil ldnil b movid a, bp call stack.empty testid a jnz .remove.8 movid a, bp mov rdx, 1 call stack.nth addr_from_id b, a .remove.8: ; now, (node.left && node.right) == nil ; if node.left == nil: node <- node.right else: node <- node.left ldid d, [rsi + object.internal.content + word.size] testid d jnz .remove.9 ldid d, [rsi + object.internal.content + word.size * 2] .remove.9: mov rax, rsi call objects.dispose.raw ; if root-node removed, root-node <- node test rbx, rbx jnz .remove.10 stid [rcx + object.content], d jmp .remove.11 .remove.10: ; if dir == LEFT: pnode.left <- node else: pnode.right <- node movid a, bp call stack.top ; it's safe; if stack is empty, ebx == nil clear_before_ld di movid di, a stid [rbx + object.internal.content + word.size + rdi * word.size], d ldid a, [rcx + object.content] movid d, bp call .remove.balance stid [rcx + object.content], a .remove.11: movid a, bp call stack.clear.move call objects.unref .remove.12: pops a, b, c, d, si, di, bp ret ; in: a = set id ; in: d = value id .remove.move: pushs a, b, c, d, si, di, bp addr_from_id c, a ; if root-node == nil: do nothing ldaddr si, [rcx + object.content] testaddr si jz .remove.move.12 call stack.new movid bp, a movid di, d ; c: address of the set ; si: address of the current node ; di: value id ; bp: stack id indicates path .remove.move.1: ; while node != nil: ldid a, [rsi + object.internal.content] movid d, di call objects.lt testid a jz .remove.move.2 ; [si:o.i.c.] < value ; push node, true movid a, bp mov rdx, rsi id_from_addr d call stack.push.move ldt d call stack.push.move ; node <- node.right ldaddr si, [rsi + object.internal.content + word.size], a jmp .remove.move.3 .remove.move.2: movid a, di ldid d, [rsi + object.internal.content] call objects.lt testid a jz .remove.move.4 ; [si:o.i.c] > value ; push node, false movid a, bp mov rdx, rsi id_from_addr d call stack.push.move ldnil d call stack.push.move ; node <- node.left ldaddr si, [rsi + object.internal.content + word.size], a .remove.move.3: ; wend ; test rsi, rsi ; test not needed; the shl sets/clears flags.z jnz .remove.move.1 jmp .remove.move.11 ; if not found: dispose stack and return. .remove.move.4: ; [si:o.i.c] == value ; if it has childlen: ldid a, [rsi + object.internal.content + word.size] testid a jz .remove.move.7 ldid a, [rsi + object.internal.content + word.size * 2] testid a jz .remove.move.7 ; find node.right.left.left.left. ... .left that is not nil ; push node, true movid a, bp mov rdx, rsi id_from_addr d call stack.push.move ldt d call stack.push.move ; that <- node.right ldaddr b, [rsi + object.internal.content + word.size * 2] .remove.move.5: ; while that.left != nil: ldid a, [rbx + object.internal.content + word.size] testid a jz .remove.move.6 ; push that, false movid a, bp mov rdx, rbx id_from_addr d call stack.push.move ldnil d call stack.push.move ; that <- that.left ldaddr b, [rbx + object.internal.content + word.size], a jmp .remove.move.5 .remove.move.6: ; node.value <- that.value ldid d, [rbx + object.internal.content] stid [rsi + object.internal.content], d ; node <- that mov rsi, rbx .remove.move.7: ; if path.len != 0: pnode <- path.top().node else: pnode <- nil ldnil b movid a, bp call stack.empty testid a jnz .remove.move.8 movid a, bp ldt d call stack.nth addr_from_id b, a .remove.move.8: ; now, (node.left && node.right) == nil ; if node.left == nil: node <- node.right else: node <- node.left ldid d, [rsi + object.internal.content + word.size] testid d jnz .remove.move.9 ldid d, [rsi + object.internal.content + word.size * 2] .remove.move.9: mov rax, rsi call objects.dispose.raw ; if root-node removed, root-node <- node test rbx, rbx jnz .remove.move.10 stid [rcx + object.content], d jmp .remove.move.11 .remove.move.10: ; if dir == LEFT: pnode.left <- node else: pnode.right <- node movid a, bp call stack.top ; it's safe; if stack is empty, ebx == nil clear_before_ld di movid di, a stid [rbx + object.internal.content + word.size + rdi * word.size], d ldid a, [rcx + object.content] movid d, bp call .remove.balance stid [rcx + object.content], a .remove.move.11: movid a, bp call stack.clear.move call objects.unref .remove.move.12: pops a, b, c, d, si, di, bp ret ; in: a: root node id ; in: d: stack id indicates path ; out: a: root node id .remove.balance: pushs b, c, si, di ; b: address of the pnode ; c: stack id ; si: address of the new-node ; di: root node id movid di, a movid c, d ; while path.len > 0 .remove.balance.1: movid a, c call stack.empty testid a jnz .remove.balance.10 ; new-node <- nil ldnil si ; pnode, dir <- path.pop() movid a, c call stack.pop.move movid d, a movid a, c call stack.pop.move addr_from_id b, a ; if dir == LEFT: pnode.balance-- else: pnode.balance++ add edx, edx dec edx add [rbx + object.internal.padding], dl ; if pnode.balance > 1: mov dl, [rbx + object.internal.padding] cmp dl, 1 jng .remove.balance.4 ; if pnode.left.balance < 0: ldaddr d, [rbx + object.internal.content + word.size] cmp byte [rdx + object.internal.padding], 0 jnl .remove.balance.2 ; pnode.left <- rotate.left pnode.left mov rax, rdx call .rotate.left id_from_addr a stid [rbx + object.internal.content + word.size], a ; new-node <- rotate.right pnode mov rax, rbx call .rotate.right mov rsi, rax ; balance.update new-node call .balance.update jmp .remove.balance.8 .remove.balance.2: ; new-node <- rotate.right pnode mov rax, rbx call .rotate.right mov rsi, rax ; if new-node.balance == 0: new-node.balance <- -1; pnode.balance <- 1 cmp byte [rax + object.internal.padding], 0 jne .remove.balance.3 mov byte [rax + object.internal.padding], -1 mov byte [rbx + object.internal.padding], 1 jmp .remove.balance.8 .remove.balance.3: ; else: new-node.balance <- 0; pnode.balance <- 0 mov byte [rax + object.internal.padding], 0 mov byte [rbx + object.internal.padding], 0 jmp .remove.balance.8 .remove.balance.4: ; elif pnode.balance < -1: cmp dl, -1 jnl .remove.balance.7 ; if pnode.right.balance > 0: ldaddr d, [rbx + object.internal.content + word.size * 2] cmp byte [rdx + object.internal.padding], 0 jng .remove.balance.5 ; pnode.right <- rotate.right pnode.right mov rax, rdx call .rotate.right id_from_addr a stid [rbx + object.internal.content + word.size * 2], a ; new-node <- rotate.left pnode mov rax, rbx call .rotate.left mov rsi, rax ; balance.update new-node call .balance.update jmp .remove.balance.8 .remove.balance.5: ; new-node <- rotate.left pnode mov rax, rbx call .rotate.left mov rsi, rax ; if new-node.balance == 0: new-node.balance <- 1; pnode.balance <- -1 cmp byte [rax + object.internal.padding], 0 jne .remove.balance.6 mov byte [rax + object.internal.padding], 1 mov byte [rbx + object.internal.padding], -1 jmp .remove.balance.8 .remove.balance.6: ; else: new-node.balance <- 0; pnode.balance <- 0 mov byte [rax + object.internal.padding], 0 mov byte [rbx + object.internal.padding], 0 jmp .remove.balance.8 .remove.balance.7: ; elif pnode.balance != 0: break cmp dl, 0 jne .remove.balance.10 .remove.balance.8: ; if new-node != nil: test rsi, rsi jz .remove.balance.1 ; if path.len == 0: return new-node movid a, c call stack.empty testid a jz .remove.balance.9 id_from_addr si movid di, si jmp .remove.balance.10 .remove.balance.9: ; gnode, gdir <- path.top() movid a, c mov rdx, 1 call stack.nth addr_from_id b, a movid a, c call stack.top ; if gdir == LEFT: gnode.left <- new-node else: gnode.right <- new-node clear_before_ld d movid d, a mov rax, rsi id_from_addr a stid [rbx + object.internal.content + word.size + rdx * word.size], a ; if new-node.balance != 0: break cmp byte [rsi + object.internal.padding], 0 je .remove.balance.1 .remove.balance.10: movid a, di pops b, c, si, di ret ; in/out: a = address of the node .rotate.right: pushs c, d ; lnode <- node.left ldaddr d, [rax + object.internal.content + word.size] ; node.left <- lnode.right ldid c, [rdx + object.internal.content + word.size * 2] stid [rax + object.internal.content + word.size], c ; lnode.right <- node id_from_addr a stid [rdx + object.internal.content + word.size * 2], a ; return lnode mov rax, rdx pops c, d ret ; in/out: a = address of the node .rotate.left: pushs c, d ; rnode <- node.right ldaddr d, [rax + object.internal.content + word.size * 2] ; node.right <- rnode.left ldid c, [rdx + object.internal.content + word.size] stid [rax + object.internal.content + word.size * 2], c ; rnode.left <- node id_from_addr a stid [rdx + object.internal.content + word.size], a ; return rnode mov rax, rdx pops c, d ret ; in: a = address of the node .balance.update: pushs d cmp byte [rax + object.internal.padding], 1 jne .balance.update.1 ldaddr d, [rax + object.internal.content + word.size * 2] mov byte [rdx + object.internal.padding], -1 ldaddr d, [rax + object.internal.content + word.size] mov byte [rdx + object.internal.padding], 0 jmp .balance.update.3 .balance.update.1: cmp byte [rax + object.internal.padding], -1 jne .balance.update.2 ldaddr d, [rax + object.internal.content + word.size * 2] mov byte [rdx + object.internal.padding], 0 ldaddr d, [rax + object.internal.content + word.size] mov byte [rdx + object.internal.padding], 1 jmp .balance.update.3 .balance.update.2: ldaddr d, [rax + object.internal.content + word.size * 2] mov byte [rdx + object.internal.padding], 0 ldaddr d, [rax + object.internal.content + word.size] mov byte [rdx + object.internal.padding], 0 .balance.update.3: mov byte [rax + object.internal.padding], 0 pops d ret %endif ; SET_ASM_
24.105895
76
0.650559
d5b65073f7b3762f99205664937890411ac81a25
1,900
asm
Assembly
test_programs/debug_tools.asm
mfkiwl/QNICE-FPGA-hyperRAM
aabc8291ac1e0c4666c51f84acddf599d7521e53
[ "BSD-3-Clause" ]
53
2016-04-12T07:22:49.000Z
2022-03-25T09:24:48.000Z
test_programs/debug_tools.asm
mfkiwl/QNICE-FPGA-hyperRAM
aabc8291ac1e0c4666c51f84acddf599d7521e53
[ "BSD-3-Clause" ]
196
2020-06-05T04:59:50.000Z
2021-03-13T21:27:11.000Z
test_programs/debug_tools.asm
mfkiwl/QNICE-FPGA-hyperRAM
aabc8291ac1e0c4666c51f84acddf599d7521e53
[ "BSD-3-Clause" ]
15
2017-07-31T11:26:56.000Z
2022-02-22T14:22:46.000Z
; utility routines for debugging ; sysdef.asm needs to be included before this ; done by sy2002 in August 2015 ; copy code from one memory destination (e.g. ROM) to another (e.g. RAM) ; R8: amount of instruction words to copy ; R9: src, R10: dst ; ; CAUTION FOR R8: if the last opcode consists of two words, then better ; place the label one line later, e.g. to a .BLOCK 1 statement, otherwise ; the second word of the last opcode will not be copied COPY_CODE MOVE @R9++, @R10++ ; copy from src to dst SUB 1, R8 ; one less item to go RBRA COPY_CODE, !N ; R0 is decremented one time too ; much, so check for !N instead of ; checking for !Z RET ; return from sub routine ; sub routine to wait for about 1 second (assuming a ~10 MIPS operation) WAIT_A_SEC MOVE 0x1388, R8 ; inner wait cycles: 5.000 decimal MOVE 0x09C4, R9 ; outer wait cycles: 2.500 decimal RSUB WAIT_A_WHILE, 1 ; wait RET ; return from sub routine ; sub routine to wait for R8 x R9 cycles WAIT_A_WHILE INCRB ; next register bank MOVE R9, R1 ; outer wait cycles WAS_WAIT_LOOP2 MOVE R8, R0 ; inner wait cycles WAS_WAIT_LOOP1 SUB 1, R0 ; dec inner wait cycles and ... RBRA WAS_WAIT_LOOP1, !Z ; ... repeat if not zero SUB 1, R1 ; dec outer wait cycles and ... RBRA WAS_WAIT_LOOP2, !Z ; ... repeat if not zero DECRB ; restore previous register bank RET ; return from sub routine
50
78
0.518421
c5b251aa66a3461cfe150254ee8f54ef1e490b4f
1,693
asm
Assembly
programs/oeis/230/A230088.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/230/A230088.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/230/A230088.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A230088: Partial sums of A010062. ; 1,3,6,11,18,28,40,54,71,90,112,137,165,196,232,270,311,355,402,454,509,569,633,698,765,835,908,984,1063,1147,1234,1326,1422,1520,1621,1726,1835,1949,2067,2190,2319,2450,2584,2721,2861,3004,3152,3303,3459,3619,3781,3946,4115,4288,4466,4648,4835,5028,5224,5423,5627,5835,6046,6262,6482,6707,6936,7170,7409,7655,7907,8165,8425,8687,8952,9220,9491,9767,10046,10330,10618,10908,11201,11498,11799,12105,12415,12730,13051,13375,13702,14034,14370,14709,15053,15401,15754,16111,16473,16840,17214,17594,17980,18369,18762,19159,19561,19967,20378,20795,21216,21642,22073,22511,22955,23405,23859,24318,24783,25253,25729,26211,26698,27192,27693,28201,28716,29234,29755,30279,30806,31338,31873,32413,32957,33503,34052,34605,35162,35724,36290,36861,37438,38018,38601,39189,39781,40376,40976,41580,42189,42802,43420,44043,44673,45309,45951,46596,47245,47898,48556,49218,49885,50558,51235,51917,52604,53298,53998,54704,55414,56129,56850,57576,58308,59046,59789,60539,61296,62060,62831,63606,64386,65170,65957,66749,67545,68346,69151,69961,70776,71598,72426,73260,74098,74941,75790,76644,77504,78370,79241,80119,81004,81896,82795,83699,84607,85520,86438,87362,88292,89227,90169,91118,92074,93037,94006,94981,95964,96955,97955,98961,99975,100997,102028,103063,104102,105146,106193,107245,108301,109359,110420,111485,112554,113628,114706,115789,116878,117970,119065,120165,121269,122376,123488,124604,125725,126850,127980,129115 mov $4,$0 add $4,1 mov $7,$0 lpb $4,1 mov $0,$7 sub $4,1 sub $0,$4 mov $2,$0 mov $5,1 mov $6,2 lpb $2,1 mov $3,$5 div $3,2 mul $5,$6 lpb $5,1 sub $5,$3 div $3,2 lpe sub $2,1 lpe add $1,$5 lpe
65.115385
1,409
0.76137
1c8e711b39a302bb23237b3c64937bd2ec9a5812
2,792
asm
Assembly
collector/src/hooks.asm
tyoma/micro-profiler
32f6981c643b93997752d414f631fd6684772b28
[ "MIT" ]
194
2015-07-27T09:54:24.000Z
2022-03-21T20:50:22.000Z
collector/src/hooks.asm
tyoma/micro-profiler
32f6981c643b93997752d414f631fd6684772b28
[ "MIT" ]
63
2015-08-19T16:42:33.000Z
2022-02-22T20:30:49.000Z
collector/src/hooks.asm
tyoma/micro-profiler
32f6981c643b93997752d414f631fd6684772b28
[ "MIT" ]
33
2015-08-21T17:48:03.000Z
2022-02-23T03:54:17.000Z
; Copyright (c) 2011-2021 by Artem A. Gevorkyan (gevorkyan.org) ; ; Permission is hereby granted, free of charge, to any person obtaining a copy ; of this software and associated documentation files (the "Software"), to deal ; in the Software without restriction, including without limitation the rights ; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ; copies of the Software, and to permit persons to whom the Software is ; furnished to do so, subject to the following conditions: ; ; The above copyright notice and this permission notice shall be included in ; all copies or substantial portions of the Software. ; ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER ; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN ; THE SOFTWARE. IFDEF _M_IX86 .586 .model flat .code extrn ?on_enter@calls_collector@micro_profiler@@SIXPAV12@PAPBX_JPBX@Z:near extrn ?track@calls_collector@micro_profiler@@QAEX_JPBX@Z:near extrn ?on_exit@calls_collector@micro_profiler@@SIPBXPAV12@PAPBX_J@Z:near extrn _g_collector_ptr:dword PUSHREGS macro push eax push ecx push edx endm POPREGS macro pop edx pop ecx pop eax endm PUSHRDTSC macro rdtsc push edx push eax endm __penter proc PUSHREGS mov ecx, [_g_collector_ptr] mov edx, [esp + 0Ch] push edx PUSHRDTSC call ?track@calls_collector@micro_profiler@@QAEX_JPBX@Z POPREGS ret __penter endp __pexit proc PUSHREGS mov ecx, [_g_collector_ptr] push 0 PUSHRDTSC call ?track@calls_collector@micro_profiler@@QAEX_JPBX@Z POPREGS ret __pexit endp ELSEIFDEF _M_X64 .code extrn ?on_enter@calls_collector@micro_profiler@@SAXPEAV12@PEAPEBX_JPEBX@Z:near extrn ?track@calls_collector@micro_profiler@@QEAAX_JPEBX@Z:near extrn ?on_exit@calls_collector@micro_profiler@@SAPEBXPEAV12@PEAPEBX_J@Z:near extrn g_collector_ptr:qword PUSHREGS macro push rax lahf push rax push rcx push rdx push r8 endm POPREGS macro pop r8 pop rdx pop rcx pop rax sahf pop rax endm _penter proc PUSHREGS rdtsc mov rcx, [g_collector_ptr] mov r8, qword ptr [rsp + 28h] shl rdx, 20h or rdx, rax call ?track@calls_collector@micro_profiler@@QEAAX_JPEBX@Z POPREGS ret _penter endp _pexit proc PUSHREGS rdtsc mov rcx, [g_collector_ptr] xor r8, r8 shl rdx, 20h or rdx, rax call ?track@calls_collector@micro_profiler@@QEAAX_JPEBX@Z POPREGS ret _pexit endp ENDIF end
21.643411
79
0.758596
5e8f55703016324dd6b971b8ed33593e47a7abca
1,881
asm
Assembly
src/SlimShader.Tests/Shaders/Sdk/Direct3D11/AdaptiveTessellationCS40/TessellatorCS40_ScatterIDCS_Index.asm
tgjones/slimshader
4fc64414b82fec8a41f8455037b3717e71907b89
[ "MIT" ]
125
2015-01-04T09:33:05.000Z
2022-03-13T05:08:50.000Z
src/SlimShader.Tests/Shaders/Sdk/Direct3D11/AdaptiveTessellationCS40/TessellatorCS40_ScatterIDCS_Index.asm
tgjones/slimshader
4fc64414b82fec8a41f8455037b3717e71907b89
[ "MIT" ]
1
2015-04-01T22:26:14.000Z
2015-04-02T12:57:18.000Z
src/SlimShader.Tests/Shaders/Sdk/Direct3D11/AdaptiveTessellationCS40/TessellatorCS40_ScatterIDCS_Index.asm
tgjones/slimshader
4fc64414b82fec8a41f8455037b3717e71907b89
[ "MIT" ]
36
2015-01-26T22:01:38.000Z
2022-01-26T04:35:56.000Z
// // Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20714 // // /// // Buffer Definitions: // // cbuffer cbCS // { // // uint4 g_param; // Offset: 0 Size: 16 // // } // // Resource bind info for InputScanned // { // // uint2 $Element; // Offset: 0 Size: 8 // // } // // Resource bind info for TriIDIndexIDOut // { // // uint2 $Element; // Offset: 0 Size: 8 // // } // // // Resource Bindings: // // Name Type Format Dim Slot Elements // ------------------------------ ---------- ------- ----------- ---- -------- // InputScanned texture struct r/o 0 1 // TriIDIndexIDOut UAV struct r/w 0 1 // cbCS cbuffer NA NA 1 1 // // // // Input signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // no Input // // Output signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // no Output cs_4_0 dcl_globalFlags refactoringAllowed dcl_constantbuffer cb1[1], immediateIndexed dcl_resource_structured t0, 8 dcl_uav_structured u0, 8 dcl_input vThreadID.x dcl_temps 3 dcl_thread_group 128, 1, 1 ult r0.x, vThreadID.x, cb1[0].x if_nz r0.x iadd r0.x, vThreadID.x, l(-1) ld_structured r0.x, r0.x, l(4), t0.xxxx ld_structured r1.x, vThreadID.x, l(4), t0.xxxx mov r2.x, vThreadID.x mov r0.y, r0.x loop uge r0.z, r0.y, r1.x breakc_nz r0.z iadd r2.y, -r0.x, r0.y store_structured u0.xy, r0.y, l(0), r2.xyxx iadd r0.y, r0.y, l(1) endloop endif ret // Approximately 16 instruction slots used
24.75
78
0.478469
bc8ba5d78048d14e29bce917e6cc40de29736840
575
asm
Assembly
libsrc/_DEVELOPMENT/arch/zx/misc/z80/asm_zx_border.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/arch/zx/misc/z80/asm_zx_border.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/arch/zx/misc/z80/asm_zx_border.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; =============================================================== ; 2014 ; =============================================================== ; ; void zx_border(uchar colour) ; ; Set border colour and avoid audible click. ; ; =============================================================== SECTION code_arch PUBLIC asm_zx_border EXTERN __sound_bit_state asm_zx_border: ; enter : l = border colour 0..7 ; ; uses : af, hl ld a,l and $07 ld l,a ld a,(__sound_bit_state) and $f8 or l ld (__sound_bit_state),a out ($fe),a ret
16.428571
65
0.403478
0cae88fcff547633cc90dcfd4f2d29f600a58389
482
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/z80/am48_copysign.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math48/z80/am48_copysign.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math48/z80/am48_copysign.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; double copysign(double x, double y) SECTION code_clib SECTION code_fp_math48 PUBLIC am48_copysign am48_copysign: ; Make sign of AC' the same as sign of AC ; ; enter : AC' = double x ; AC = double y ; ; exit : AC' = abs(x) * sgn(y) ; ; uses : af, b' ld a,l or a jr z, zero ; sgn(0) is positive ld a,b and $80 ; a = sgn(y) zero: exx res 7,b or b ld b,a exx ret
13.388889
51
0.491701
497a6e513b8d63b165a12d06eca4e8c07cf61bb8
1,378
asm
Assembly
ASM/fib.asm
0x0D15EA5Exd/College
42d78e5d53bef5738684019bf57840bdf2f7d96c
[ "Unlicense" ]
1
2021-11-29T15:22:06.000Z
2021-11-29T15:22:06.000Z
ASM/fib.asm
0x0D15EA5Exd/College
42d78e5d53bef5738684019bf57840bdf2f7d96c
[ "Unlicense" ]
null
null
null
ASM/fib.asm
0x0D15EA5Exd/College
42d78e5d53bef5738684019bf57840bdf2f7d96c
[ "Unlicense" ]
null
null
null
; fibonacci.asm ; (nasm syntax) ; 0xDEADC0DE ; CS310 ; ; Use a loop to calculate and print the first 7 fibonacci numbers global _start ; %include "Along32.inc" ; section .text ; function fib ; takes one parameter: ecx -- return the ecx'th fibonacci number ; returns the value in eax fib: cmp ecx, 2 ; special-case fib(1) and fib(2) ja .body ; for fib(>= 3) mov eax, 1 jne .done ; fib(1) and fib(0) are 1 mov eax, 2 jmp .done .body: push ebx ; keep things clean for the caller push ecx ; use an iterative algorithm, rather than a recursive one ; (picked up this trick from SICP) sub ecx, 2 ; already handled fib(1) and fib(2), don't do extra loops mov ebx, 1 ; ebx = fib(n-2) mov eax, 2 ; eax = fib(n-1) .loop: xchg eax, ebx add eax, ebx loop .loop ; eax is all set and ready to go pop ecx ; clean up registers pop ebx .done: ret _start: mov ecx, 7 + 1 ; set it to one more than the desired number of iterations .loop: mov ebx, ecx ; save the loop counter in ebx mov ecx, 8 sub ecx, ebx ; subtract the previous loop value from 8 ; since we start at 8, the fib argument goes 0, 1, 2, 3, ... call fib call DumpRegs mov ecx, ebx ; put the loop counter back so it will be decremented loop .loop mov eax, 1 ; exit syscall mov ebx, 0 int 0x80
22.590164
77
0.632801
c6c3dd1359caa34a414cf0be42092ee74c5e73bc
502
asm
Assembly
oeis/227/A227842.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/227/A227842.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/227/A227842.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A227842: First differences of A014817. ; 1,2,3,2,4,5,6,5,5,8,9,6,10,11,12,7,13,12,15,12,14,17,18,13,15,20,19,16,22,21,24,17,21,26,27,18,26,29,28,21,29,28,33,28,30,33,36,27,31,34,35,32,38,39,40,31,37,42,45,32,44,45,46,33,45,44,49,44,46,51,52,37,49,56,49,48,54,53,60,47 mov $3,2 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 add $0,$3 trn $0,1 seq $0,166375 ; a(n) = sum (floor (j^2/n)) taken over 1 <= j <= n-1. mov $2,$3 mul $2,$0 add $4,$2 lpe min $5,1 mul $5,$0 mov $0,$4 sub $0,$5 add $0,1
23.904762
228
0.581673
d9407ec74eae3e755c57c842c140a53acb061dc5
5,978
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_1887_735.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_1887_735.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_1887_735.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r8 push %rax push %rcx push %rdi push %rsi lea addresses_A_ht+0x1bdca, %rsi lea addresses_UC_ht+0x1007c, %rdi nop nop nop cmp $7885, %r15 mov $41, %rcx rep movsb nop nop nop and %rax, %rax lea addresses_UC_ht+0x15282, %rax nop nop nop inc %r8 mov $0x6162636465666768, %rcx movq %rcx, %xmm3 movups %xmm3, (%rax) nop nop nop nop nop cmp $11318, %r15 lea addresses_A_ht+0x1db82, %rsi lea addresses_WT_ht+0x2282, %rdi nop nop nop nop nop xor %r13, %r13 mov $113, %rcx rep movsb nop nop nop nop nop dec %rcx lea addresses_normal_ht+0xa406, %rcx nop nop nop nop xor %r8, %r8 vmovups (%rcx), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $1, %xmm0, %rsi nop nop add %r8, %r8 lea addresses_D_ht+0x1b782, %rdi clflush (%rdi) nop nop cmp %rsi, %rsi mov (%rdi), %r13 nop nop nop nop xor $51904, %r8 pop %rsi pop %rdi pop %rcx pop %rax pop %r8 pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r12 push %r15 push %r8 push %r9 push %rcx push %rdi push %rsi // REPMOV lea addresses_RW+0xda82, %rsi mov $0x402, %rdi nop nop nop nop xor $8655, %r15 mov $38, %rcx rep movsw cmp %rdi, %rdi // Store lea addresses_A+0x1cb42, %r8 nop cmp $48241, %r12 movb $0x51, (%r8) nop nop nop nop nop sub %r9, %r9 // Store lea addresses_A+0x16a82, %r8 nop nop dec %r12 movb $0x51, (%r8) nop nop nop nop nop sub %r12, %r12 // Faulty Load lea addresses_A+0x16a82, %r12 cmp $26611, %r9 mov (%r12), %rsi lea oracles, %r8 and $0xff, %rsi shlq $12, %rsi mov (%r8,%rsi,1), %rsi pop %rsi pop %rdi pop %rcx pop %r9 pop %r8 pop %r15 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_A', 'congruent': 0}} {'dst': {'same': False, 'congruent': 6, 'type': 'addresses_P'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_RW'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_A', 'congruent': 2}, 'OP': 'STOR'} {'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_A', 'congruent': 0}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_A', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'congruent': 1, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_A_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_UC_ht', 'congruent': 8}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_A_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_normal_ht', 'congruent': 2}} {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_D_ht', 'congruent': 8}} {'51': 1887} 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 */
36.012048
2,999
0.656072
f87b9d5852995e42dda1ea7da697a68865a0a1fb
115
asm
Assembly
p0902.asm
zhangyuesai/8086-asm-learning-code
a934fb3a98a53a6167b647535b3251680294a786
[ "MIT" ]
1
2018-07-23T10:30:22.000Z
2018-07-23T10:30:22.000Z
p0902.asm
zhangyuesai/8086-asm-learning-code
a934fb3a98a53a6167b647535b3251680294a786
[ "MIT" ]
null
null
null
p0902.asm
zhangyuesai/8086-asm-learning-code
a934fb3a98a53a6167b647535b3251680294a786
[ "MIT" ]
null
null
null
assume cs:codesg codesg segment start: mov ax,0 mov bx,0 jmp short s add ax,1 s: inc ax codesg ends end start
9.583333
16
0.721739
db994b9fdedf000cabba53c8c85212085dee0285
1,828
asm
Assembly
programs/oeis/153/A153058.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/153/A153058.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/153/A153058.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A153058: a(0)=4; a(n)=n^2+a(n-1) for n>0. ; 4,5,9,18,34,59,95,144,208,289,389,510,654,823,1019,1244,1500,1789,2113,2474,2874,3315,3799,4328,4904,5529,6205,6934,7718,8559,9459,10420,11444,12533,13689,14914,16210,17579,19023,20544,22144,23825,25589,27438,29374,31399,33515,35724,38028,40429,42929,45530,48234,51043,53959,56984,60120,63369,66733,70214,73814,77535,81379,85348,89444,93669,98025,102514,107138,111899,116799,121840,127024,132353,137829,143454,149230,155159,161243,167484,173884,180445,187169,194058,201114,208339,215735,223304,231048,238969,247069,255350,263814,272463,281299,290324,299540,308949,318553,328354,338354,348555,358959,369568,380384,391409,402645,414094,425758,437639,449739,462060,474604,487373,500369,513594,527050,540739,554663,568824,583224,597865,612749,627878,643254,658879,674755,690884,707268,723909,740809,757970,775394,793083,811039,829264,847760,866529,885573,904894,924494,944375,964539,984988,1005724,1026749,1048065,1069674,1091578,1113779,1136279,1159080,1182184,1205593,1229309,1253334,1277670,1302319,1327283,1352564,1378164,1404085,1430329,1456898,1483794,1511019,1538575,1566464,1594688,1623249,1652149,1681390,1710974,1740903,1771179,1801804,1832780,1864109,1895793,1927834,1960234,1992995,2026119,2059608,2093464,2127689,2162285,2197254,2232598,2268319,2304419,2340900,2377764,2415013,2452649,2490674,2529090,2567899,2607103,2646704,2686704,2727105,2767909,2809118,2850734,2892759,2935195,2978044,3021308,3064989,3109089,3153610,3198554,3243923,3289719,3335944,3382600,3429689,3477213,3525174,3573574,3622415,3671699,3721428,3771604,3822229,3873305,3924834,3976818,4029259,4082159,4135520,4189344,4243633,4298389,4353614,4409310,4465479,4522123,4579244,4636844,4694925,4753489,4812538,4872074,4932099,4992615,5053624,5115128,5177129 mul $0,-2 bin $0,3 sub $1,$0 div $1,4 add $1,4
203.111111
1,735
0.837527
506e569c70342773c4c20bfc29f53d3817f195d5
2,622
asm
Assembly
bootloader/x86_64/bootsector.asm
hyperswine/Redox2
b090d53c3270d6eabf7d2fce5077d1bb0c78052a
[ "MIT" ]
43
2017-02-03T15:58:57.000Z
2022-02-03T22:56:21.000Z
bootloader/x86_64/bootsector.asm
hyperswine/Redox2
b090d53c3270d6eabf7d2fce5077d1bb0c78052a
[ "MIT" ]
3
2017-06-25T08:05:42.000Z
2018-03-05T15:45:01.000Z
bootloader/x86_64/bootsector.asm
hyperswine/Redox2
b090d53c3270d6eabf7d2fce5077d1bb0c78052a
[ "MIT" ]
9
2017-03-05T20:55:19.000Z
2022-03-16T18:09:38.000Z
ORG 0x7C00 SECTION .text USE16 boot: ; dl comes with disk ; initialize segment registers xor ax, ax mov ds, ax mov es, ax mov ss, ax ; initialize stack mov sp, 0x7C00 ; initialize CS push ax push word .set_cs retf .set_cs: ; save disk number mov [disk], dl mov si, name call print call print_line mov bx, (startup_start - boot) / 512 call print_hex call print_line mov bx, startup_start call print_hex call print_line mov eax, (startup_start - boot) / 512 mov bx, startup_start mov cx, (startup_end - startup_start) / 512 xor dx, dx call load call print_line mov si, finished call print call print_line jmp startup ; load some sectors from disk to a buffer in memory ; buffer has to be below 1MiB ; IN ; ax: start sector ; bx: offset of buffer ; cx: number of sectors (512 Bytes each) ; dx: segment of buffer ; CLOBBER ; ax, bx, cx, dx, si ; TODO rewrite to (eventually) move larger parts at once ; if that is done increase buffer_size_sectors in startup-common to that (max 0x80000 - startup_end) load: cmp cx, 127 jbe .good_size pusha mov cx, 127 call load popa add eax, 127 add dx, 127 * 512 / 16 sub cx, 127 jmp load .good_size: mov [DAPACK.addr], eax mov [DAPACK.buf], bx mov [DAPACK.count], cx mov [DAPACK.seg], dx call print_dapack mov dl, [disk] mov si, DAPACK mov ah, 0x42 int 0x13 jc error ret print_dapack: mov al, 13 call print_char mov bx, [DAPACK.addr + 2] call print_hex mov bx, [DAPACK.addr] call print_hex mov al, '#' call print_char mov bx, [DAPACK.count] call print_hex mov al, ' ' call print_char mov bx, [DAPACK.seg] call print_hex mov al, ':' call print_char mov bx, [DAPACK.buf] call print_hex ret error: call print_line mov bh, 0 mov bl, ah call print_hex mov al, ' ' call print_char mov si, errored call print call print_line .halt: cli hlt jmp .halt %include "print.asm" name: db "Redox Loader - Stage One",0 errored: db "Could not read disk",0 finished: db "Redox Loader - Stage Two",0 disk: db 0 DAPACK: db 0x10 db 0 .count: dw 0 ; int 13 resets this to # of blocks actually read/written .buf: dw 0 ; memory buffer destination address (0:7c00) .seg: dw 0 ; in memory page zero .addr: dq 0 ; put the lba to read in this spot times 446-($-$$) db 0 partitions: times 4 * 16 db 0 db 0x55 db 0xaa
16.700637
100
0.620137
fa2206e9931fca3bbe06c077c7636cdbb64bd393
444
asm
Assembly
programs/oeis/190/A190582.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/190/A190582.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/190/A190582.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A190582: Generalized McCarthy function: a(n) = n - s if n > c; otherwise, a(n) = a(a(n+t)) with d = t - s > 0, with parameters t=15, s=9, c=21. ; 16,17,18,13,14,15,16,17,18,13,14,15,16,17,18,13,14,15,16,17,18,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 mov $2,$0 mov $0,5 mov $1,7 mov $3,$2 add $3,9 lpb $0,1 trn $4,$3 add $0,$4 sub $0,1 sub $3,6 mov $2,$3 add $4,6 lpe add $1,$2 add $1,6
23.368421
148
0.581081
452d8963331bc9688edfdb3351a6362c13c9d34a
285
asm
Assembly
ADD.asm
ELASRIYASSINE/DSP-DIGITAL-SIGNAL-PROCESSING-CODES-
80768861501771c907e78ea37043fe67dffcd974
[ "Unlicense" ]
null
null
null
ADD.asm
ELASRIYASSINE/DSP-DIGITAL-SIGNAL-PROCESSING-CODES-
80768861501771c907e78ea37043fe67dffcd974
[ "Unlicense" ]
null
null
null
ADD.asm
ELASRIYASSINE/DSP-DIGITAL-SIGNAL-PROCESSING-CODES-
80768861501771c907e78ea37043fe67dffcd974
[ "Unlicense" ]
null
null
null
; ADRESSAGE DIRECT ; ADDITION ET STOCKAGE DE DONNE .text ldi 55,R2 ;CHARGER 55 DANS R2 sti R2,@180h ;STOCKER R2 DANS L'ADRESSE @180h ldi 45,R2 ;CHARGER 45 DANS R2 addi @180h, R2 ;MULTIPLIER @ PAR R2 RESULTAT SUR R2 sti R2,@181h ;STOCKER R2 DANS L'ADRESSE @181h .end
31.666667
54
0.691228
53bf33c202d54f573b2420d85195c4e405669123
1,150
asm
Assembly
programs/oeis/130/A130261.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/130/A130261.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/130/A130261.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A130261: Partial sums of the 'lower' even Fibonacci Inverse A130259. ; 0,1,2,4,6,8,10,12,15,18,21,24,27,30,33,36,39,42,45,48,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143,147,151,155,159,163,167,171,175,179,183,187,192,197,202,207,212,217,222,227,232,237,242,247,252,257,262,267,272,277,282,287,292,297,302,307,312,317,322,327,332,337,342,347,352,357,362,367,372,377,382,387,392,397,402,407,412,417,422,427,432,437,442,447,452,457,462,467,472,477,482,487,492,497,502,507,512,517,522,527,532,537,542,547,552,557,562,567,572,577,582,587,592,597,602,607,612,617,622,627,632,638,644,650,656,662,668,674,680,686,692,698,704,710,716,722,728,734,740,746,752,758,764,770,776,782,788,794,800,806,812,818,824,830,836,842,848,854,860,866,872,878,884,890,896,902,908,914,920,926,932,938,944,950,956,962,968,974,980,986,992,998,1004,1010,1016,1022,1028,1034,1040,1046,1052,1058,1064,1070,1076,1082,1088,1094,1100,1106,1112,1118,1124,1130,1136,1142,1148,1154,1160,1166,1172,1178,1184,1190,1196,1202,1208,1214,1220,1226,1232,1238,1244,1250,1256,1262,1268 mov $2,1 lpb $0,1 add $1,$0 add $3,$2 add $2,$3 trn $0,$2 lpe
104.545455
1,007
0.733913
93a5df4df86a6e579053e30cd597c5e8cc9c2a8e
8,420
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1665.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1665.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1665.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r8 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x10d7c, %rsi lea addresses_WT_ht+0x1a75c, %rdi nop nop nop nop nop cmp $10898, %r15 mov $64, %rcx rep movsq nop nop nop nop xor $42449, %r8 lea addresses_UC_ht+0x10027, %rbp clflush (%rbp) nop nop nop dec %r15 movl $0x61626364, (%rbp) nop nop nop nop xor %r15, %r15 lea addresses_D_ht+0xfe7c, %rsi nop nop nop nop xor $30527, %r12 vmovups (%rsi), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $0, %xmm4, %r8 nop inc %rcx lea addresses_WT_ht+0x1dc7c, %rcx nop nop nop nop nop cmp %r15, %r15 mov $0x6162636465666768, %rdi movq %rdi, %xmm1 movups %xmm1, (%rcx) nop nop nop xor %r8, %r8 lea addresses_normal_ht+0x19d24, %rsi lea addresses_WC_ht+0x1c16c, %rdi clflush (%rdi) nop sub $63628, %rdx mov $51, %rcx rep movsb xor $3795, %rcx lea addresses_WT_ht+0x1927c, %r8 nop nop nop nop nop and %rbp, %rbp movb $0x61, (%r8) nop nop nop dec %r8 lea addresses_A_ht+0x2afc, %r8 nop nop cmp $33288, %rbp mov (%r8), %dx nop nop nop add %rsi, %rsi lea addresses_WT_ht+0x1d7fe, %rsi lea addresses_D_ht+0x5c7c, %rdi nop nop nop nop nop add $57314, %r12 mov $106, %rcx rep movsl nop nop xor $63887, %rdx lea addresses_UC_ht+0x1117c, %rdx inc %r12 movb (%rdx), %r15b nop nop nop nop nop sub %r15, %r15 lea addresses_WC_ht+0x4b80, %rsi nop nop nop add %rbp, %rbp mov $0x6162636465666768, %r12 movq %r12, (%rsi) sub %r12, %r12 lea addresses_normal_ht+0x128dc, %rsi nop xor %r12, %r12 vmovups (%rsi), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $0, %xmm1, %r8 nop nop nop xor $19832, %rcx lea addresses_normal_ht+0x17e6c, %rcx clflush (%rcx) nop and $14545, %rdx movw $0x6162, (%rcx) inc %r15 lea addresses_normal_ht+0x657c, %r8 cmp %r12, %r12 mov $0x6162636465666768, %r15 movq %r15, %xmm2 and $0xffffffffffffffc0, %r8 movntdq %xmm2, (%r8) nop inc %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r8 pop %r15 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %rax push %rbx push %rcx push %rdi push %rsi // Store lea addresses_WC+0x15738, %rcx nop nop nop nop xor $15415, %rax mov $0x5152535455565758, %rbx movq %rbx, (%rcx) nop nop nop nop nop sub $52677, %rsi // Load lea addresses_UC+0x13f1c, %r10 nop add $37936, %r13 mov (%r10), %bx nop nop xor %r12, %r12 // REPMOV mov $0x37c, %rsi lea addresses_A+0x31fc, %rdi nop nop nop nop and $57638, %r13 mov $92, %rcx rep movsw nop and %rax, %rax // Store lea addresses_UC+0x5084, %rcx nop nop and %r13, %r13 mov $0x5152535455565758, %rbx movq %rbx, %xmm5 movups %xmm5, (%rcx) nop nop nop nop nop cmp $3563, %rbx // Faulty Load lea addresses_PSE+0x1147c, %rcx nop nop nop nop dec %r12 movb (%rcx), %r13b lea oracles, %rsi and $0xff, %r13 shlq $12, %r13 mov (%rsi,%r13,1), %r13 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 1}} {'src': {'type': 'addresses_UC', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'} {'src': {'type': 'addresses_P', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A', 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 3}} [Faulty Load] {'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}} {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 9}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 8}} {'src': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 6}} {'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 1}} {'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 2}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16, 'NT': True, 'same': False, 'congruent': 4}} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
31.301115
2,999
0.656176
3aa51b4bb4de872c4a0d4d3156b134fcedea974e
405
asm
Assembly
samples/for.asm
mateusragazzi/MIPS-Codes
fbdb3b753cdcb7ba4b3c0d97158ba679a2c32b92
[ "Apache-2.0" ]
2
2019-04-25T19:05:38.000Z
2019-05-19T06:45:54.000Z
samples/for.asm
mateusragazzi/MIPS-Codes
fbdb3b753cdcb7ba4b3c0d97158ba679a2c32b92
[ "Apache-2.0" ]
null
null
null
samples/for.asm
mateusragazzi/MIPS-Codes
fbdb3b753cdcb7ba4b3c0d97158ba679a2c32b92
[ "Apache-2.0" ]
2
2019-04-25T19:09:10.000Z
2019-05-19T07:11:44.000Z
.text addi $t0, $zero, 0 # i = 0 addi $t7, $zero, 10 # max = 10 for: slt $t1, $t0, $t7 # condition (step 1) beq $t1, $zero, endfor # condition (step 2) # put your code here li $v0, 1 # load service to print an integer add $a0, $t0, $zero # load value to register $a syscall # end of code addi $t0, $t0, 1 # i++ j for # return to loop structure endfor: # end of program .data
27
56
0.592593
29d09a31d11afa5eae16e8909502ce68ef2e7235
2,095
asm
Assembly
programs/oeis/130/A130809.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/130/A130809.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/130/A130809.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A130809: If X_1, ..., X_n is a partition of a 2n-set X into 2-blocks then a(n) is equal to the number of 3-subsets of X containing none of X_i, (i=1,...,n). ; 8,32,80,160,280,448,672,960,1320,1760,2288,2912,3640,4480,5440,6528,7752,9120,10640,12320,14168,16192,18400,20800,23400,26208,29232,32480,35960,39680,43648,47872,52360,57120,62160,67488,73112,79040,85280,91840,98728,105952,113520,121440,129720,138368,147392,156800,166600,176800,187408,198432,209880,221760,234080,246848,260072,273760,287920,302560,317688,333312,349440,366080,383240,400928,419152,437920,457240,477120,497568,518592,540200,562400,585200,608608,632632,657280,682560,708480,735048,762272,790160,818720,847960,877888,908512,939840,971880,1004640,1038128,1072352,1107320,1143040,1179520,1216768,1254792,1293600,1333200,1373600,1414808,1456832,1499680,1543360,1587880,1633248,1679472,1726560,1774520,1823360,1873088,1923712,1975240,2027680,2081040,2135328,2190552,2246720,2303840,2361920,2420968,2480992,2542000,2604000,2667000,2731008,2796032,2862080,2929160,2997280,3066448,3136672,3207960,3280320,3353760,3428288,3503912,3580640,3658480,3737440,3817528,3898752,3981120,4064640,4149320,4235168,4322192,4410400,4499800,4590400,4682208,4775232,4869480,4964960,5061680,5159648,5258872,5359360,5461120,5564160,5668488,5774112,5881040,5989280,6098840,6209728,6321952,6435520,6550440,6666720,6784368,6903392,7023800,7145600,7268800,7393408,7519432,7646880,7775760,7906080,8037848,8171072,8305760,8441920,8579560,8718688,8859312,9001440,9145080,9290240,9436928,9585152,9734920,9886240,10039120,10193568,10349592,10507200,10666400,10827200,10989608,11153632,11319280,11486560,11655480,11826048,11998272,12172160,12347720,12524960,12703888,12884512,13066840,13250880,13436640,13624128,13813352,14004320,14197040,14391520,14587768,14785792,14985600,15187200,15390600,15595808,15802832,16011680,16222360,16434880,16649248,16865472,17083560,17303520,17525360,17749088,17974712,18202240,18431680,18663040,18896328,19131552,19368720,19607840,19848920,20091968,20336992,20584000,20833000,21084000 add $0,3 bin $0,3 mov $1,$0 mul $1,8
261.875
1,897
0.845823
6c6363726bbcdc8cf7ade430696b970bbf989259
6,564
asm
Assembly
kernel/interrupts/isr_as.asm
npodonnell/DBOS
c3c8dc8ff983ff4d41f86fbcaefaa9f682305a14
[ "MIT" ]
2
2022-01-28T14:31:05.000Z
2022-01-29T23:54:29.000Z
kernel/interrupts/isr_as.asm
npodonnell/DBOS
c3c8dc8ff983ff4d41f86fbcaefaa9f682305a14
[ "MIT" ]
1
2022-01-31T13:04:13.000Z
2022-01-31T13:04:13.000Z
kernel/interrupts/isr_as.asm
npodonnell/DBOS
c3c8dc8ff983ff4d41f86fbcaefaa9f682305a14
[ "MIT" ]
1
2022-01-29T20:33:13.000Z
2022-01-29T20:33:13.000Z
BITS 32 global isr0 global isr1 global isr2 global isr3 global isr4 global isr5 global isr6 global isr7 global isr8 global isr9 global isr10 global isr11 global isr12 global isr13 global isr14 global isr15 global isr16 global isr17 global isr18 global isr19 global isr20 global isr21 global isr22 global isr23 global isr24 global isr25 global isr26 global isr27 global isr28 global isr29 global isr30 global isr31 global irq0 global irq1 global irq2 global irq3 global irq4 global irq5 global irq6 global irq7 global irq8 global irq9 global irq10 global irq11 global irq12 global irq13 global irq14 global irq15 global isr50 global ignore_isr_error global ignore_isr global ignore_irq_master global ignore_irq_slave ; functions which are used in disabling interrupts ignore_isr: iret ; just return, nothing to clear out ignore_isr_error: add esp, 4 ; clear out the error code and return iret ignore_irq_master: push eax ; preserve eax mov al, 0x20 ; return back to master port out 0x20, al pop eax ; restore eax iret ignore_irq_slave: push eax ; preserve eax mov al, 0x20 ; return back to slave and master out 0xA0, al out 0x20, al pop eax ; restore eax iret ; 0: Divide By Zero Exception isr0: cli push byte 0 push byte 0 jmp isr_common ; 1: Debug Exception isr1: cli push byte 0 push byte 1 jmp isr_common ; 2: Non Maskable Interrupt Exception isr2: cli push byte 0 push byte 2 jmp isr_common ; 3: Int 3 Exception isr3: cli push byte 0 push byte 3 jmp isr_common ; 4: INTO Exception isr4: cli push byte 0 push byte 4 jmp isr_common ; 5: Out of Bounds Exception isr5: cli push byte 0 push byte 5 jmp isr_common ; 6: Invalid Opcode Exception isr6: cli push byte 0 push byte 6 jmp isr_common ; 7: Coprocessor Not Available Exception isr7: cli push byte 0 push byte 7 jmp isr_common ; 8: Double Fault Exception (With Error Code!) isr8: cli push byte 8 jmp isr_common ; 9: Coprocessor Segment Overrun Exception isr9: cli push byte 0 push byte 9 jmp isr_common ; 10: Bad TSS Exception (With Error Code!) isr10: cli push byte 10 jmp isr_common ; 11: Segment Not Present Exception (With Error Code!) isr11: cli push byte 11 jmp isr_common ; 12: Stack Fault Exception (With Error Code!) isr12: cli push byte 12 jmp isr_common ; 13: General Protection Fault Exception (With Error Code!) isr13: cli push byte 13 jmp isr_common ; 14: Page Fault Exception (With Error Code!) isr14: cli push byte 14 jmp isr_common ; 15: Reserved Exception isr15: cli push byte 0 push byte 15 jmp isr_common ; 16: Floating Point Exception isr16: cli push byte 0 push byte 16 jmp isr_common ; 17: Alignment Check Exception isr17: cli push byte 0 push byte 17 jmp isr_common ; 18: Machine Check Exception isr18: cli push byte 0 push byte 18 jmp isr_common ; 19: Reserved isr19: cli push byte 0 push byte 19 jmp isr_common ; 20: Reserved isr20: cli push byte 0 push byte 20 jmp isr_common ; 21: Reserved isr21: cli push byte 0 push byte 21 jmp isr_common ; 22: Reserved isr22: cli push byte 0 push byte 22 jmp isr_common ; 23: Reserved isr23: cli push byte 0 push byte 23 jmp isr_common ; 24: Reserved isr24: cli push byte 0 push byte 24 jmp isr_common ; 25: Reserved isr25: cli push byte 0 push byte 25 jmp isr_common ; 26: Reserved isr26: cli push byte 0 push byte 26 jmp isr_common ; 27: Reserved isr27: cli push byte 0 push byte 27 jmp isr_common ; 28: Reserved isr28: cli push byte 0 push byte 28 jmp isr_common ; 29: Reserved isr29: cli push byte 0 push byte 29 jmp isr_common ; 30: Reserved isr30: cli push byte 0 push byte 30 jmp isr_common ; 31: Reserved isr31: cli push byte 0 push byte 31 jmp isr_common irq0: cli push byte 0 push byte 32 jmp isr_common irq1: cli push byte 0 push byte 33 jmp isr_common irq2: cli push byte 0 push byte 34 jmp isr_common irq3: cli push byte 0 push byte 35 jmp isr_common irq4: cli push byte 0 push byte 36 jmp isr_common irq5: cli push byte 0 push byte 37 jmp isr_common irq6: cli push byte 0 push byte 38 jmp isr_common irq7: cli push byte 0 push byte 39 jmp isr_common irq8: cli push byte 0 push byte 40 jmp isr_common irq9: cli push byte 0 push byte 41 jmp isr_common irq10: cli push byte 0 push byte 42 jmp isr_common irq11: cli push byte 0 push byte 43 jmp isr_common irq12: cli push byte 0 push byte 44 jmp isr_common irq13: cli push byte 0 push byte 45 jmp isr_common irq14: cli push byte 0 push byte 46 jmp isr_common irq15: cli push byte 0 push byte 47 jmp isr_common ; syscall interrupt isr50: cli push byte 0 push byte 50 jmp isr_common extern isr_handler isr_common: pusha ; first we push all registers, eax, ecx, edx, ebx, esp, ebp, esi, edi push ds ; we push all descriptor registers push es ; this might be user ones therefore they need to be saved push fs push gs mov ax, 0x10 ; load kernel descriptor number in all of them mov ds, ax ; we will be executing kernel code mov es, ax ; therefore kernel descriptor numbers mov fs, ax mov gs, ax push esp ; pushing esp as another value will allow us to have a pointer to a struct in c rather than just struct call isr_handler ; we call the handler in c, we will have all the pushed info available there mov esp, eax ; pop registers struct, and set its address as the new esp pop gs ; pop descriptors, they will be the ones we had before, user or kernel pop fs pop es pop ds popa ; we pop back all registers to the state they had back before call to handler ; error code and int no were not pushed from regs, they were just values add esp, 8 ; we simply increment the esp which jumps past them and finally we are back at the point of the individual handler sti ; we reenable interrupts, we will not be interrupted here because of how this instruction works, it will take effect only after next instruction iret ; iret will pop back eip, cs and eflags registers and this means we will be at the point before the interrupt :D
15.194444
150
0.6883
144867aa996970d06afb50d3345811a604e1e3d0
265
asm
Assembly
02-sector-arranque-imprimir/arranque_hello.asm
luiscardozo/os-tutorial
95530cc15ca4b4fe4d3934d7e8ed7448624ef527
[ "BSD-3-Clause" ]
null
null
null
02-sector-arranque-imprimir/arranque_hello.asm
luiscardozo/os-tutorial
95530cc15ca4b4fe4d3934d7e8ed7448624ef527
[ "BSD-3-Clause" ]
null
null
null
02-sector-arranque-imprimir/arranque_hello.asm
luiscardozo/os-tutorial
95530cc15ca4b4fe4d3934d7e8ed7448624ef527
[ "BSD-3-Clause" ]
null
null
null
mov ah, 0x0e ; modo tty mov al, 'H' int 0x10 mov al, 'e' int 0x10 mov al, 'l' int 0x10 int 0x10 ; 'l' sigue en al, lo recuerdas? mov al, 'o' int 0x10 jmp $ ; salto a la dirección actual = bucle infinito ; relleno y número mágico times 510 - ($-$$) db 0 dw 0xaa55
15.588235
52
0.656604
d4c2899eb612e440e345c5d5056939e94e5beb90
5,576
asm
Assembly
Transynther/x86/_processed/US/_ht_st_zr_un_/i7-8650U_0xd2.log_3843_715.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_ht_st_zr_un_/i7-8650U_0xd2.log_3843_715.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_ht_st_zr_un_/i7-8650U_0xd2.log_3843_715.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x188f5, %rax nop add %rdx, %rdx vmovups (%rax), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $0, %xmm5, %rcx nop mfence lea addresses_D_ht+0x1d205, %r11 nop sub %r12, %r12 mov $0x6162636465666768, %rbp movq %rbp, (%r11) nop nop and %rbp, %rbp lea addresses_UC_ht+0x13e6d, %r12 nop xor $65442, %rdx mov (%r12), %si nop nop dec %r11 lea addresses_WT_ht+0xc7fd, %rcx inc %r12 mov $0x6162636465666768, %rbp movq %rbp, %xmm6 vmovups %ymm6, (%rcx) nop add $46753, %rax lea addresses_A_ht+0x74a9, %rsi lea addresses_normal_ht+0x17509, %rdi clflush (%rsi) nop nop nop nop nop add $46544, %r11 mov $1, %rcx rep movsb nop nop nop nop nop cmp $20027, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r15 push %rax push %rbp push %rbx push %rdi // Store lea addresses_UC+0xaac1, %r11 nop and $25484, %r15 mov $0x5152535455565758, %rbx movq %rbx, %xmm2 movups %xmm2, (%r11) nop nop xor %rbp, %rbp // Faulty Load lea addresses_US+0x3965, %rdi nop xor %rax, %rax vmovups (%rdi), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $1, %xmm3, %rbp lea oracles, %rax and $0xff, %rbp shlq $12, %rbp mov (%rax,%rbp,1), %rbp pop %rdi pop %rbx pop %rbp pop %rax pop %r15 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 5, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}} {'44': 1929, '45': 1819, '00': 90, '12': 1, 'cb': 1, '52': 1, '47': 2} 44 44 44 45 44 45 44 45 45 44 45 44 45 45 44 45 45 45 44 45 44 44 44 45 45 44 45 45 44 44 44 44 44 44 45 45 44 44 44 44 45 45 45 45 45 44 45 45 45 44 44 45 45 44 00 45 45 00 45 45 44 45 45 45 45 45 44 45 45 44 45 45 44 44 44 45 44 45 44 44 44 44 44 44 45 45 45 44 45 45 00 45 45 45 44 44 45 44 45 45 00 45 44 44 45 45 00 45 45 44 45 44 44 44 44 44 45 45 44 45 45 44 45 45 45 44 45 45 44 44 44 44 44 45 44 44 44 44 44 45 44 44 45 44 45 45 45 45 45 44 45 44 45 44 45 45 44 45 45 45 44 45 44 44 44 45 44 45 45 44 45 45 45 44 44 45 45 45 45 44 44 44 45 45 44 45 44 45 44 45 44 45 45 45 45 45 44 45 45 44 45 45 45 45 44 44 44 45 44 45 45 44 44 45 44 45 44 44 45 44 45 45 45 45 44 44 45 45 44 44 45 44 44 45 44 44 45 45 45 45 45 45 44 44 44 44 45 44 45 44 45 45 45 45 45 44 45 45 45 45 44 44 44 45 44 44 44 44 45 45 44 44 44 45 45 45 45 45 45 45 45 44 44 45 45 44 44 45 44 45 45 44 44 44 44 44 45 44 45 45 44 45 45 44 45 45 44 00 45 45 44 45 44 44 44 45 44 44 44 00 45 44 45 44 45 45 45 45 45 45 45 44 45 45 45 44 45 44 45 44 00 44 00 45 45 45 44 45 44 44 44 45 44 45 44 44 45 44 44 44 44 45 44 44 45 45 45 45 45 44 45 44 44 45 44 45 00 45 44 45 45 44 45 45 45 45 44 45 44 44 44 44 44 45 44 44 44 45 44 44 45 44 45 44 45 44 44 45 45 44 44 44 45 45 45 45 44 45 44 44 45 45 44 44 45 45 00 45 45 44 45 44 45 45 45 44 44 45 44 45 44 44 45 44 45 45 44 44 44 44 45 44 44 44 44 45 44 44 45 44 44 44 44 44 45 44 44 45 44 00 44 44 44 45 44 45 44 45 45 45 44 44 45 44 44 00 44 45 44 45 45 44 44 45 44 44 45 44 44 45 44 45 45 45 45 45 44 45 45 45 44 44 44 44 44 45 45 45 45 45 44 44 45 44 45 45 44 45 44 45 44 44 44 45 44 45 44 45 45 45 45 45 45 44 44 44 45 44 45 45 45 44 45 44 44 45 44 45 44 44 44 44 45 44 44 44 44 44 44 45 44 44 44 44 44 44 44 45 44 00 44 45 45 45 44 45 44 45 44 44 45 45 44 45 45 45 45 44 45 45 44 44 45 44 44 45 44 44 44 45 45 44 44 44 44 44 45 45 00 44 44 45 45 44 45 44 45 44 44 44 45 45 44 44 44 44 44 44 44 44 44 44 45 45 45 45 44 45 44 45 45 00 44 44 44 45 44 45 44 44 45 45 44 45 44 00 44 45 44 45 44 45 45 44 44 44 44 44 45 44 44 44 45 44 44 44 44 44 45 44 00 45 44 44 45 45 45 44 45 45 44 44 45 44 45 44 44 45 44 45 45 44 45 45 44 45 45 45 45 45 45 44 45 44 45 44 45 45 12 45 44 45 45 44 44 44 45 44 44 45 45 44 45 44 44 44 44 45 45 45 45 45 45 45 45 44 45 45 44 45 44 44 44 44 45 44 45 44 45 44 45 45 44 44 45 45 45 45 45 44 45 45 00 45 45 44 45 45 45 45 44 44 44 44 44 44 45 44 44 45 45 44 45 44 45 45 45 45 44 44 00 44 44 44 44 45 45 45 44 44 44 44 45 45 45 45 44 45 44 45 45 45 00 44 44 44 45 45 44 45 44 44 45 45 45 44 45 45 45 00 44 44 44 45 44 45 44 45 45 44 45 45 44 45 45 44 44 44 44 45 45 45 44 45 44 44 44 45 44 44 45 45 45 00 44 44 44 44 00 44 44 45 45 44 44 44 45 44 44 44 44 45 44 44 45 45 45 44 44 45 44 44 44 45 44 44 44 45 44 44 45 45 45 45 44 44 45 45 45 45 44 44 45 45 44 44 45 45 45 00 45 45 44 44 44 44 44 45 44 44 45 44 44 44 45 45 44 44 45 45 44 44 45 45 45 44 44 44 44 45 45 45 45 45 44 44 45 44 44 44 44 44 00 44 45 44 45 45 45 45 45 45 45 00 44 45 45 44 44 45 */
44.608
2,999
0.658178
a19dd52f1860332c05ac62a66c1dc17f6d13a00b
229
asm
Assembly
programs/oeis/017/A017618.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/017/A017618.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/017/A017618.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A017618: (12n+8)^2. ; 64,400,1024,1936,3136,4624,6400,8464,10816,13456,16384,19600,23104,26896,30976,35344,40000,44944,50176,55696,61504,67600,73984,80656,87616,94864,102400,110224,118336 mul $0,12 add $0,8 pow $0,2 mov $1,$0
28.625
167
0.742358
7f3c1036cef34848dd3e6ff54bb1f10c3bd59bf0
2,179
asm
Assembly
kernel/src/interrupts/exceptions.asm
Maou-Shimazu/RMOS
3b06e4643f1b18e7cc3d20a9e922bae52c4c7820
[ "Apache-2.0" ]
1
2022-03-13T20:51:25.000Z
2022-03-13T20:51:25.000Z
kernel/src/interrupts/exceptions.asm
Maou-Shimazu/RMOS
3b06e4643f1b18e7cc3d20a9e922bae52c4c7820
[ "Apache-2.0" ]
1
2022-03-13T20:49:51.000Z
2022-03-13T20:49:51.000Z
kernel/src/interrupts/exceptions.asm
Maou-Shimazu/RMOS
3b06e4643f1b18e7cc3d20a9e922bae52c4c7820
[ "Apache-2.0" ]
2
2022-03-13T20:32:12.000Z
2022-03-15T01:31:16.000Z
; Hard work all by Ian Marco Moffett. ; "Sometimes you don't notice the hard work people do." ; - Ian. global div0_handler global debug_excp_handler global breakpoint_handler global overflow_handler global bre_handler ; Bound range exceeded global invld_opcode_handler global device_not_avail_handler global double_fault_handler global cso_handler ; Copressesor overrun. global invalid_tss_handler global snp_handler ; Segment not present. global ssf_handler global gpf_handler global gpf_handler global page_fault_handler global fpe_handler ; Floating point exception handler extern kwrite extern write_red extern hex2str %macro write_reg 1 mov rdi, %1 call kwrite pop rdi call hex2str mov rdi, rax call kwrite mov rdi, newline call kwrite %endmacro %macro panic 1 call write_red mov rdi, exception_start call kwrite mov rdi, %1 call hex2str mov rdi, rax call kwrite mov rdi, kernel_panic call kwrite mov rdi, int_dump_msg call kwrite write_reg __rip write_reg __cs write_reg __rflags write_reg __rsp write_reg __ss mov rdi, sys_halted call kwrite cli hlt %endmacro div0_handler: panic 0x0 debug_excp_handler: panic 0x1 breakpoint_handler: panic 0x3 overflow_handler: panic 0x4 bre_handler: panic 0x5 invld_opcode_handler: panic 0x6 device_not_avail_handler: panic 0x7 double_fault_handler: panic 0x7 cso_handler: panic 0x9 invalid_tss_handler: panic 0xA snp_handler: panic 0xB ssf_handler: panic 0xC gpf_handler: panic 0xD page_fault_handler: panic 0xE fpe_handler: panic 0xF exception_start: db 0x0D, 0x0A, "FATAL CPU EXCEPTION: ", 0 int_dump_msg: db 0xD, 0xA, "<==== Interrupt Frame Dump ====>", 0xD, 0xA, 0xD, 0xA, 0 newline: db 0x0D, 0x0A, 0 kernel_panic: db 0xD, 0xA, "*** KERNEL PANIC ***", 0xD, 0xA, 0xD, 0xA, 0 sys_halted: db 0xD, 0xA, "*** SYSTEM HALTED ***", 0xD, 0xA, 0xD, 0xA, 0 ; STRING REP OF REGS __rip: db "RIP: ", 0 __cs: db "CS: ", 0 __rflags: db "RFLAGS: ", 0 __rsp: db "RSP: ", 0 __ss: db "SS: ", 0
17.432
84
0.693896
c73e808a1ee07bf1a2e018e9486c5ae2e67bdc2c
812
asm
Assembly
source/tools/InlinedFuncsOpt/inlined_funcs_ia32.asm
NVSL/CSE141pp-Tool-Moneta-Pin
d1f7a1e2aa5ac724cc64fa65f30b1e424a4ad839
[ "Intel" ]
17
2021-07-10T13:22:26.000Z
2022-02-09T20:11:39.000Z
source/tools/InlinedFuncsOpt/inlined_funcs_ia32.asm
NVSL/CSE141pp-Tool-Moneta-Pin
d1f7a1e2aa5ac724cc64fa65f30b1e424a4ad839
[ "Intel" ]
4
2021-08-18T14:07:24.000Z
2022-01-24T16:38:06.000Z
source/tools/InlinedFuncsOpt/inlined_funcs_ia32.asm
NVSL/CSE141pp-Tool-Moneta-Pin
d1f7a1e2aa5ac724cc64fa65f30b1e424a4ad839
[ "Intel" ]
2
2021-08-03T10:56:16.000Z
2022-01-31T12:10:56.000Z
PUBLIC IfProc1 PUBLIC IfProc2 PUBLIC IfProc3 PUBLIC IfProc4 PUBLIC IfProc5 PUBLIC IfProc6 .686 .model flat, c .XMM .data extern globVal:dword .code IfProc1 PROC mov edx, 1 xor eax, eax cmp edx, ecx setz al ret IfProc1 ENDP IfProc2 PROC mov edx, 1 xor eax, eax cmp edx, ecx setz al ret IfProc2 ENDP IfProc3 PROC lea edx, globVal mov edx, dword ptr [edx] xor eax, eax cmp edx, ecx setz al ret IfProc3 ENDP IfProc4 PROC lea eax, globVal mov edx, dword ptr [eax] xor eax, eax cmp ecx, edx setz al ret IfProc4 ENDP IfProc5 PROC mov edx, ebx xor eax, eax cmp edx, ecx setz al ret IfProc5 ENDP IfProc6 PROC mov edx, ebx xor eax, eax cmp dl, cl setz al ret IfProc6 ENDP end
11.768116
27
0.624384
8288338ee91a719a37d51a1ada03a6d644183799
26,032
asm
Assembly
data/text/common_1.asm
pokeachromicdevs/pokeoctober
db74bb68bbfceac07eec6d64674bc24fd4c0b67f
[ "blessing" ]
1
2021-07-05T23:48:37.000Z
2021-07-05T23:48:37.000Z
data/text/common_1.asm
AtmaBuster/pokeoctober
12652b84eb2df1a0ed2f654a0ffcfb78202e515f
[ "blessing" ]
1
2020-12-16T01:11:20.000Z
2020-12-16T22:53:56.000Z
data/text/common_1.asm
AtmaBuster/pokeoctober
12652b84eb2df1a0ed2f654a0ffcfb78202e515f
[ "blessing" ]
1
2021-07-05T23:33:22.000Z
2021-07-05T23:33:22.000Z
_FruitBearingTreeText:: text "It's a fruit-" line "bearing tree." done _HeyItsFruitText:: text "Hey! It's" line "@" text_ram wStringBuffer3 text "!" done _ObtainedFruitText:: text "Obtained" line "@" text_ram wStringBuffer3 text "!" done _FruitPackIsFullText:: text "But the PACK is" line "full…" done _NothingHereText:: text "There's nothing" line "here…" done _WhichApricornText:: text "Which APRICORN" line "should I use?" done _HowManyShouldIMakeText:: text "How many should I" line "make?" done _RecoveredSomeHPText:: text_ram wStringBuffer1 text_start line "recovered @" text_decimal wCurHPAnimDeltaHP, 2, 3 text "HP!" done _CuredOfPoisonText:: text_ram wStringBuffer1 text "'s" line "cured of poison." done _RidOfParalysisText:: text_ram wStringBuffer1 text "'s" line "rid of paralysis." done _BurnWasHealedText:: text_ram wStringBuffer1 text "'s" line "burn was healed." done _WasDefrostedText:: text_ram wStringBuffer1 text_start line "was defrosted." done _WokeUpText:: text_ram wStringBuffer1 text_start line "woke up." done _HealthReturnedText:: text_ram wStringBuffer1 text "'s" line "health returned." done _RevitalizedText:: text_ram wStringBuffer1 text_start line "is revitalized." done _GrewToLevelText:: text_ram wStringBuffer1 text " grew to" line "level @" text_decimal wCurPartyLevel, 1, 3 text "!@" sound_dex_fanfare_50_79 ; plays SFX_DEX_FANFARE_50_79, identical to SFX_LEVEL_UP text_waitbutton text_end text_end ; unused _CameToItsSensesText:: text_ram wStringBuffer1 text " came" line "to its senses." done _EnterNewPasscodeText:: text "Please enter any" line "four-digit number." done _ConfirmPasscodeText:: text "Enter the same" line "number to confirm." done _PasscodesNotSameText:: text "That's not the" line "same number." done _PasscodeSetText:: text "Your PASSCODE has" line "been set." para "Enter this number" line "next time to open" cont "the CARD FOLDER." para "" done _FourZerosInvalidText:: text "0000 is invalid!" para "" done _EnterPasscodeText:: text "Enter the CARD" next "FOLDER PASSCODE." done _IncorrectPasscodeText:: text "Incorrect" line "PASSCODE!" para "" done _CardFolderOpenText:: text "CARD FOLDER open.@" text_end _OakTimeText1:: text "<……><……><……><……><……><……>" line "<……><……><……><……><……><……>" para "Zzz… Hm? Wha…?" line "You woke me up!" para "Will you check the" line "clock for me?" prompt _OakTimeText2:: text "What time is it?" done _OakTimeText3:: text "Is it" done _OakTimeText4:: text "?" done _OakTimeText5:: text "How many minutes?" done _OakTimeText6:: text "What?@" text_end _OakTimeText7:: text "?" done _OakTimeText8:: text "!" line "I overslept!" done _OakTimeText11:: text "" line "is that right?" done _OakTimeText12:: text "!" line "No wonder it's so" cont "dark!" done _OakTimeText13:: text "What day is it?" done _OakTimeText14:: text ", is it?" done UnknownText_0x1bc384:: text "There is nothing" line "connected." done UnknownText_0x1bc3a1:: text "Check cell phone" line "adapter." done UnknownText_0x1bc3bc:: text "Check CDMA" line "adapter." done UnknownText_0x1bc3d1:: text "Check DOCOMO PHS" line "adapter." done UnknownText_0x1bc3ec:: text "Check DDI PHS" line "adapter." done UnknownText_0x1bc404:: text "Check unlimited" line "battle mobile" cont "adapter." done UnknownText_0x1bc42c:: text "The password is:" line "" done UnknownText_0x1bc43f:: text "Is this OK?" done UnknownText_0x1bc44c:: text "Enter the" line "ID no." done UnknownText_0x1bc45e:: text "Enter the" line "amount." done _NothingToChooseText:: text "There's nothing to" line "choose." prompt _WhichSidePutOnText:: text "Which side do you" line "want to put it on?" done _WhichSidePutAwayText:: text "Which side do you" line "want to put away?" done _PutAwayTheDecoText:: text "Put away the" line "@" text_ram wStringBuffer3 text "." prompt _NothingToPutAwayText:: text "There's nothing to" line "put away." prompt _SetUpTheDecoText:: text "Set up the" line "@" text_ram wStringBuffer3 text "." prompt _PutAwayAndSetUpText:: text "Put away the" line "@" text_ram wStringBuffer3 text_start para "and set up the" line "@" text_ram wStringBuffer4 text "." prompt _AlreadySetUpText:: text "That's already set" line "up." prompt _LookTownMapText:: text "It's the TOWN MAP." done _LookPikachuPosterText:: text "It's a poster of a" line "cute PIKACHU." done _LookClefairyPosterText:: text "It's a poster of a" line "cute CLEFAIRY." done _LookJigglypuffPosterText:: text "It's a poster of a" line "cute JIGGLYPUFF." done _LookAdorableDecoText:: text "It's an adorable" line "@" text_ram wStringBuffer3 text "." done _LookGiantDecoText:: text "A giant doll! It's" line "fluffy and cuddly." done _MomShoppingText1:: text "Hi, <PLAYER>!" line "How are you?" prompt _MomShoppingText2:: text "I found a useful" line "item shopping, so" prompt _MomShoppingText3:: text "I bought it with" line "your money. Sorry!" prompt _MomShoppingText4:: text "It's in your PC." line "You'll like it!" done _MomShoppingText5:: text "While shopping" line "today, I saw this" cont "adorable doll, so" prompt _MomShoppingText6:: text "It's in your room." line "You'll love it!" done _TradingText1:: text_ram wPlayerTrademonSpeciesName text " was" line "sent to @" text_ram wOTTrademonSenderName text "." done _TradingText2:: text_start done _TradingText3:: text_ram wOTTrademonSenderName text " bids" line "farewell to" done _TradingText4:: text_ram wOTTrademonSpeciesName text "." done _TradingText5:: text "Take good care of" line "@" text_ram wOTTrademonSpeciesName text "." done _TradingText6:: text "For @" text_ram wPlayerTrademonSenderName text "'s" line "@" text_ram wPlayerTrademonSpeciesName text "," done _TradingText7:: text_ram wOTTrademonSenderName text " sends" line "@" text_ram wOTTrademonSpeciesName text "." done _TradingText8:: text_ram wOTTrademonSenderName text " will" line "trade @" text_ram wOTTrademonSpeciesName text_end text_end ; unused _TradingText9:: text "for @" text_ram wPlayerTrademonSenderName text "'s" line "@" text_ram wPlayerTrademonSpeciesName text "." done _TradingText10:: text_ram wPlayerTrademonSenderName text " will" line "trade @" text_ram wPlayerTrademonSpeciesName text_end text_end ; unused _TradingText11:: text "for @" text_ram wOTTrademonSenderName text "'s" line "@" text_ram wOTTrademonSpeciesName text "." done _TradingText12:: text_ram wPlayerTrademonSenderName text "'s" line "@" text_ram wPlayerTrademonSpeciesName text " trade…" done _TradingText13:: text "Take good care of" line "@" text_ram wOTTrademonSpeciesName text "." done _TradingText14:: text_ram wPlayerTrademonSenderName text "'s" line "@" text_ram wPlayerTrademonSpeciesName text " trade…" done _TradingText15:: text "Take good care of" line "@" text_ram wOTTrademonSpeciesName text "." done _TradingText16:: text_ram wOTTrademonSpeciesName text " came" line "back!" done ; Oak's Pokémon Talk _OPT_IntroText1:: text_start line "MARY: PROF.OAK'S" done _OPT_IntroText2:: text_start line "#MON TALK!" done _OPT_IntroText3:: text_start line "With me, MARY!" done _OPT_OakText1:: text_start line "OAK: @" text_ram wMonOrItemNameBuffer text_end text_end ; unused _OPT_OakText2:: text_start line "may be seen around" done _OPT_OakText3:: text_start line "@" text_ram wStringBuffer1 text "." done _OPT_MaryText1:: text_start line "MARY: @" text_ram wStringBuffer1 text "'s" done OPT_SweetAdorably:: text_start line "sweet and adorably" done OPT_WigglySlickly:: text_start line "wiggly and slickly" done OPT_AptlyNamed:: text_start line "aptly named and" done OPT_UndeniablyKindOf:: text_start line "undeniably kind of" done OPT_Unbearably:: text_start line "so, so unbearably" done OPT_WowImpressively:: text_start line "wow, impressively" done OPT_AlmostPoisonously:: text_start line "almost poisonously" done OPT_Sensually:: text_start line "ooh, so sensually" done OPT_Mischievously:: text_start line "so mischievously" done OPT_Topically:: text_start line "so very topically" done OPT_Addictively:: text_start line "sure addictively" done OPT_LooksInWater:: text_start line "looks in water is" done OPT_EvolutionMustBe:: text_start line "evolution must be" done OPT_Provocatively:: text_start line "provocatively" done OPT_FlippedOut:: text_start line "so flipped out and" done OPT_HeartMeltingly:: text_start line "heart-meltingly" done OPT_Cute:: text_start line "cute." done OPT_Weird:: text_start line "weird." done OPT_Pleasant:: text_start line "pleasant." done OPT_BoldSortOf:: text_start line "bold, sort of." done OPT_Frightening:: text_start line "frightening." done OPT_SuaveDebonair:: text_start line "suave & debonair!" done OPT_Powerful:: text_start line "powerful." done OPT_Exciting:: text_start line "exciting." done OPT_Groovy:: text_start line "groovy!" done OPT_Inspiring:: text_start line "inspiring." done OPT_Friendly:: text_start line "friendly." done OPT_HotHotHot:: text_start line "hot, hot, hot!" done OPT_Stimulating:: text_start line "stimulating." done OPT_Guarded:: text_start line "guarded." done OPT_Lovely:: text_start line "lovely." done OPT_Speedy:: text_start line "speedy." done _OPT_PokemonChannelText:: text "#MON" done _PokedexShowText:: text_start line "@" text_ram wStringBuffer1 text_end text_end ; unused ; Pokémon Music Channel / Pokémusic _BenIntroText1:: text_start line "BEN: #MON MUSIC" done _BenIntroText2:: text_start line "CHANNEL!" done _BenIntroText3:: text_start line "It's me, DJ BEN!" done _FernIntroText1:: text_start line "FERN: #MUSIC!" done _FernIntroText2:: text_start line "With DJ FERN!" done _BenFernText1:: text_start line "Today's @" text_today text "," done _BenFernText2A:: text_start line "so let us jam to" done _BenFernText2B:: text_start line "so chill out to" done _BenFernText3A:: text_start line "#MON March!" done _BenFernText3B:: text_start line "#MON Lullaby!" done ; Lucky Channel _LC_Text1:: text_start line "REED: Yeehaw! How" done _LC_Text2:: text_start line "y'all doin' now?" done _LC_Text3:: text_start line "Whether you're up" done _LC_Text4:: text_start line "or way down low," done _LC_Text5:: text_start line "don't you miss the" done _LC_Text6:: text_start line "LUCKY NUMBER SHOW!" done _LC_Text7:: text_start line "This week's Lucky" done _LC_Text8:: text_start line "Number is @" text_pause text_ram wStringBuffer1 text "!" done _LC_Text9:: text_start line "I'll repeat that!" done _LC_Text10:: text_start line "Match it and go to" done _LC_Text11:: text_start line "the RADIO TOWER!" done _LC_DragText1:: text_start line "…Repeating myself" done _LC_DragText2:: text_start line "gets to be a drag…" done ; Places and People _PnP_Text1:: text_start line "PLACES AND PEOPLE!" done _PnP_Text2:: text_start line "Brought to you by" done _PnP_Text3:: text_start line "me, DJ LILY!" done _PnP_Text4:: text_start line "@" text_ram wStringBuffer2 text " @" text_ram wStringBuffer1 text_end text_end ; unused _PnP_cute:: text_start line "is cute." done _PnP_lazy:: text_start line "is sort of lazy." done _PnP_happy:: text_start line "is always happy." done _PnP_noisy:: text_start line "is quite noisy." done _PnP_precocious:: text_start line "is precocious." done _PnP_bold:: text_start line "is somewhat bold." done _PnP_picky:: text_start line "is too picky!" done _PnP_sortofok:: text_start line "is sort of OK." done _PnP_soso:: text_start line "is just so-so." done _PnP_great:: text_start line "is actually great." done _PnP_mytype:: text_start line "is just my type." done _PnP_cool:: text_start line "is so cool, no?" done _PnP_inspiring:: text_start line "is inspiring!" done _PnP_weird:: text_start line "is kind of weird." done _PnP_rightforme:: text_start line "is right for me?" done _PnP_odd:: text_start line "is definitely odd!" done _PnP_Text5:: text_start line "@" text_ram wStringBuffer1 text_end text_end ; unused _RocketRadioText1:: text_start line "… …Ahem, we are" done _RocketRadioText2:: text_start line "TEAM ROCKET!" done _RocketRadioText3:: text_start line "After three years" done _RocketRadioText4:: text_start line "of preparation, we" done _RocketRadioText5:: text_start line "have risen again" done _RocketRadioText6:: text_start line "from the ashes!" done _RocketRadioText7:: text_start line "GIOVANNI! @" text_pause text "Can you" done _RocketRadioText8:: text_start line "hear?@" text_pause text " We did it!" done _RocketRadioText9:: text_start line "@" text_pause text "Where is our boss?" done _RocketRadioText10:: text_start line "@" text_pause text "Is he listening?" done _BuenaRadioText1:: text_start line "BUENA: BUENA here!" done _BuenaRadioText2:: text_start line "Today's password!" done _BuenaRadioText3:: text_start line "Let me think… It's" done _BuenaRadioText4:: text_start line "@" text_ram wStringBuffer1 text "!" done _BuenaRadioText5:: text_start line "Don't forget it!" done _BuenaRadioText6:: text_start line "I'm in GOLDENROD's" done _BuenaRadioText7:: text_start line "RADIO TOWER!" done _BuenaRadioMidnightText1:: text_start line "BUENA: Oh my…" done _BuenaRadioMidnightText2:: text_start line "It's midnight! I" done _BuenaRadioMidnightText3:: text_start line "have to shut down!" done _BuenaRadioMidnightText4:: text_start line "Thanks for tuning" done _BuenaRadioMidnightText5:: text_start line "in to the end! But" done _BuenaRadioMidnightText6:: text_start line "don't stay up too" done _BuenaRadioMidnightText7:: text_start line "late! Presented to" done _BuenaRadioMidnightText8:: text_start line "you by DJ BUENA!" done _BuenaRadioMidnightText9:: text "I'm outta here!" done _BuenaRadioMidnightText10:: text "…" done _BuenaOffTheAirText:: text_start line "" done Text_EnemyWithdrew:: text "<ENEMY>" line "withdrew" cont "@" text_ram wEnemyMonNick text "!" prompt Text_EnemyUsedOn:: text "<ENEMY>" line "used @" text_ram wMonOrItemNameBuffer text_start cont "on @" text_ram wEnemyMonNick text "!" prompt Text_ThatCantBeUsedRightNow:: text "That can't be used" line "right now." prompt Text_ThatItemCantBePutInThePack:: text "That item can't be" line "put in the PACK." done Text_TheItemWasPutInThePack:: text "The @" text_ram wStringBuffer1 text_start line "was put in the" cont "PACK." done Text_RemainingTime:: text "Remaining Time" done Text_YourMonsHPWasHealed:: text "Your #MON's HP" line "was healed." prompt Text_Warping:: text "Warping…" done UnknownText_0x1bd05e:: text "Which number" line "should be changed?" done UnknownText_0x1bd07f:: text "Will you play with" line "@" text_ram wStringBuffer2 text "?" done UnknownText_0x1bd09a:: text "You need two #-" line "MON for breeding." prompt Text_BreedingIsNotPossible:: text "Breeding is not" line "possible." prompt UnknownText_0x1bd0d8:: text "The compatibility" line "is @" text_decimal wBreedingCompatibility, 1, 3 text "." cont "Should they breed?" done UnknownText_0x1bd109:: text "There is no EGG." line "" prompt UnknownText_0x1bd11c:: text "It's going to" line "hatch!" prompt UnknownText_0x1bd131:: text "Test event" line "@" text_decimal wStringBuffer2, 1, 2 text "?" done UnknownText_0x1bd145:: text "Start!" done UnknownText_0x1bd14d:: text "End!" done UnknownText_0x1bd153:: text "For a boy!" done UnknownText_0x1bd15f:: text "For a girl!" done UnknownText_0x1bd16c:: text "This doesn't" line "concern a boy!" done UnknownText_0x1bd188:: text "The BOX is full!" done UnknownText_0x1bd19a:: text "A new CARD arrived" line "from @" text_ram wStringBuffer2 text "." done UnknownText_0x1bd1ba:: text "Put this CARD in" line "the CARD FOLDER?" done UnknownText_0x1bd1dd:: text_ram wStringBuffer2 text "'s CARD was" line "listed as no.@" text_decimal wStringBuffer1, 1, 2 text "." prompt UnknownText_0x1bd201:: text "Starting link." done UnknownText_0x1bd211:: text "Link terminated." done UnknownText_0x1bd223:: text "Closing link." done UnknownText_0x1bd232:: text "Clear the time" line "limit?" done UnknownText_0x1bd249:: text "The time limit was" line "cleared." done UnknownText_0x1bd266:: text "Pick which packet" line "as an error?" done UnknownText_0x1bd286:: text "Trading @" text_ram wStringBuffer2 text_start line "for @" text_ram wStringBuffer1 text "…" done UnknownText_0x1bd2a0:: text "Obtained the" line "VOLTORBBADGE!" done UnknownText_0x1bd2bc:: text "Which floor?" done UnknownText_0x1bd2ca:: text "ANNOUNCER: BEEEP!" para "Time's up!" done UnknownText_0x1bd2e7:: text "ANNOUNCER: The" line "Contest is over!" done _RepelWoreOffText:: text "REPEL's effect" line "wore off." done _PlayerFoundItemText:: text "<PLAYER> found" line "@" text_ram wStringBuffer3 text "!" done _ButNoSpaceText:: text "But <PLAYER> has" line "no space left…" done _JustSawSomeRareMonText:: text "I just saw some" line "rare @" text_ram wStringBuffer1 text " in" cont "@" text_ram wStringBuffer2 text "." para "I'll call you if I" line "see another rare" cont "#MON, OK?" prompt _SavingRecordText:: text "SAVING RECORD…" line "DON'T TURN OFF!" done _ReceiveItemText:: text_ram wPlayerName text " received" line "@" text_ram wStringBuffer1 text "!@" sound_item text_waitbutton text_end text_end ; unused _NoCoinsText:: text "You have no coins." prompt _NoCoinCaseText:: text "You don't have a" line "COIN CASE." prompt UnknownText_0x1bd407:: text "OK, connect the" line "Game Link Cable." prompt UnknownText_0x1bd429:: text "<PLAYER> traded" line "@" text_ram wMonOrItemNameBuffer text " for" cont "@" text_ram wStringBuffer2 text ".@" text_end UnknownText_0x1bd445:: sound_dex_fanfare_80_109 text_pause text_end text_end ; unused _NPCTradeIntroText1:: text "I collect #MON." line "Do you have" cont "@" text_ram wStringBuffer1 text "?" para "Want to trade it" line "for my @" text_ram wStringBuffer2 text "?" done _NPCTradeCancelText1:: text "You don't want to" line "trade? Aww…" done _NPCTradeWrongText1:: text "Huh? That's not" line "@" text_ram wStringBuffer1 text ". " cont "What a letdown…" done _NPCTradeCompleteText1:: text "Yay! I got myself" line "@" text_ram wStringBuffer1 text "!" cont "Thanks!" done _NPCTradeAFterText1:: text "Hi, how's my old" line "@" text_ram wStringBuffer2 text " doing?" done _NPCTradeIntroText2:: text "Hi, I'm looking" line "for this #MON." para "If you have" line "@" text_ram wStringBuffer1 text ", would" para "you trade it for" line "my @" text_ram wStringBuffer2 text "?" done _NPCTradeCancelText2:: text "You don't have" line "one either?" para "Gee, that's really" line "disappointing…" done _NPCTradeWrongText2:: text "You don't have" line "@" text_ram wStringBuffer1 text "? That's" cont "too bad, then." done _NPCTradeCompleteText2:: text "Great! Thank you!" para "I finally got" line "@" text_ram wStringBuffer1 text "." done _NPCTradeAfterText2:: text "Hi! The @" text_ram wMonOrItemNameBuffer text_start line "you traded me is" cont "doing great!" done _NPCTradeIntroText3:: text_ram wMonOrItemNameBuffer text "'s cute," line "but I don't have" para "it. Do you have" line "@" text_ram wStringBuffer1 text "?" para "Want to trade it" line "for my @" text_ram wStringBuffer2 text "?" done _NPCTradeCancelText3:: text "You don't want to" line "trade? Oh, darn…" done _NPCTradeWrongText3:: text "That's not" line "@" text_ram wStringBuffer1 text "." para "Please trade with" line "me if you get one." done _NPCTradeCompleteText3:: text "Wow! Thank you!" line "I always wanted" cont "@" text_ram wMonOrItemNameBuffer text "!" done _NPCTradeAfterText3:: text "How is that" line "@" text_ram wStringBuffer2 text " I" cont "traded you doing?" para "Your @" text_ram wMonOrItemNameBuffer text "'s" line "so cute!" done _NPCTradeCompleteText4:: text "Uh? What happened?" done _NPCTradeAfterText4:: text "Trading is so odd…" para "I still have a lot" line "to learn about it." done _MomLeavingText1:: text "Wow, that's a cute" line "#MON." para "Where did you get" line "it?" para "…" para "So, you're leaving" line "on an adventure…" para "OK!" line "I'll help too." para "But what can I do" line "for you?" para "I know! I'll save" line "money for you." para "On a long journey," line "money's important." para "Do you want me to" line "save your money?" done _MomLeavingText2:: text "OK, I'll take care" line "of your money." para "<……><……><……>" prompt _MomLeavingText3:: text "Be careful." para "#MON are your" line "friends. You need" cont "to work as a team." para "Now, go on!" done _MomVisitingText1:: text "Hi! Welcome home!" line "You're trying very" cont "hard, I see." para "I've kept your" line "room tidy." para "Or is this about" line "your money?" done _MomVisitingText2:: text "What do you want" line "to do?" done _MomVisitingText3:: text "How much do you" line "want to save?" done _MomVisitingText4:: text "How much do you" line "want to take?" done _MomVisitingText5:: text "Do you want to" line "save some money?" done _MomVisitingText6:: text "You haven't saved" line "that much." prompt _MomVisitingText7:: text "You can't take" line "that much." prompt _MomVisitingText8:: text "You don't have" line "that much." prompt _MomVisitingText9:: text "You can't save" line "that much." prompt _MomVisitingText10:: text "OK, I'll save your" line "money. Trust me!" para "<PLAYER>, stick" line "with it!" done _MomVisitingText11:: text "Your money's safe" line "here! Get going!" done _MomVisitingText12:: text "<PLAYER>, don't" line "give up!" done _MomVisitingText13:: text "Just do what" line "you can." done _DaycareDummyText:: text_start done _DayCareManIntroText:: text "I'm the DAY-CARE" line "MAN. Want me to" cont "raise a #MON?" done _DayCareManOddEggText:: text "I'm the DAY-CARE" line "MAN. Do you know" cont "about EGGS?" para "I was raising" line "#MON with my" cont "wife, you see." para "We were shocked to" line "find an EGG!" para "How incredible is" line "that?" para "So, want me to" line "raise a #MON?" done _DayCareLadyIntroText:: text "I'm the DAY-CARE" line "LADY." para "Should I raise a" line "#MON for you?" done _DayCareLadyOddEggText:: text "I'm the DAY-CARE" line "LADY. Do you know" cont "about EGGS?" para "My husband and I" line "were raising some" cont "#MON, you see." para "We were shocked to" line "find an EGG!" para "How incredible" line "could that be?" para "Should I raise a" line "#MON for you?" done _WhatShouldIRaiseText:: text "What should I" line "raise for you?" prompt _OnlyOneMonText:: text "Oh? But you have" line "just one #MON." prompt _CantRaiseEggText:: text "Sorry, but I can't" line "accept an EGG." prompt _RemoveMailText:: text "Remove MAIL before" line "you come see me." prompt _LastHealthyMonText:: text "If you give me" line "that, what will" cont "you battle with?" prompt _IllRaiseYourMonText:: text "OK. I'll raise" line "your @" text_ram wStringBuffer1 text "." prompt _ComeBackLaterText:: text "Come back for it" line "later." done _AreWeGeniusesText:: text "Are we geniuses or" line "what? Want to see" cont "your @" text_ram wStringBuffer1 text "?" done _YourMonHasGrownText:: text "Your @" text_ram wStringBuffer1 text_start line "has grown a lot." para "By level, it's" line "grown by @" text_decimal wStringBuffer2 + 1, 1, 3 text "." para "If you want your" line "#MON back, it" cont "will cost ¥@" text_decimal wStringBuffer2 + 2, 3, 4 text "." done _PerfectHeresYourMonText:: text "Perfect! Here's" line "your #MON." prompt _GotBackMonText:: text "<PLAYER> got back" line "@" text_ram wStringBuffer1 text "." prompt _BackAlreadyText:: text "Huh? Back already?" line "Your @" text_ram wStringBuffer1 text_start para "needs a little" line "more time with us." para "If you want your" line "#MON back, it" cont "will cost ¥100." done _HaveNoRoomText:: text "You have no room" line "for it." prompt _DCNotEnoughMoneyText:: text "You don't have" line "enough money." prompt _OhFineThenText:: text "Oh, fine then." prompt _ComeAgainText:: text "Come again." done _NotYetText:: text "Not yet…" done _FoundAnEggText:: text "Ah, it's you!" para "We were raising" line "your #MON, and" para "my goodness, were" line "we surprised!" para "Your #MON had" line "an EGG!" para "We don't know how" line "it got there, but" para "your #MON had" line "it. You want it?" done _ReceivedEggText:: text "<PLAYER> received" line "the EGG!" done _TakeGoodCareOfEggText:: text "Take good care of" line "it." done _RefuseEggText:: text "Well then, I'll" line "keep it. Thanks!" done _NoRoomForEggText:: text "You have no room" line "in your party." cont "Come back later." done _WhichMonPhotoText:: text "Which #MON" line "should I photo-" cont "graph?" prompt _HoldOnText:: text "All righty. Hold" line "still for a bit." prompt _PrestoAllDoneText:: text "Presto! All done." line "Come again, OK?" done
13.920856
81
0.714313
2f13243d3f40880cc88d62ed85bec8c7279674e7
330
asm
Assembly
programs/oeis/227/A227712.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/227/A227712.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/227/A227712.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A227712: a(n) = 9*2^n - 3*n - 5. ; 4,10,25,58,127,268,553,1126,2275,4576,9181,18394,36823,73684,147409,294862,589771,1179592,2359237,4718530,9437119,18874300,37748665,75497398,150994867,301989808,603979693,1207959466,2415919015,4831838116,9663676321,19327352734 mov $1,2 pow $1,$0 mul $1,3 sub $1,$0 sub $1,3 mul $1,3 add $1,4
30
228
0.742424
e9255e56f0abf1cee9ba0d2d42148effa5e7539c
18,395
asm
Assembly
rtcClock2.asm
electrickery/RTC-MPF-I
ca7c6928c5e7f5a0751a46994262229fae2495fb
[ "BSD-2-Clause" ]
null
null
null
rtcClock2.asm
electrickery/RTC-MPF-I
ca7c6928c5e7f5a0751a46994262229fae2495fb
[ "BSD-2-Clause" ]
null
null
null
rtcClock2.asm
electrickery/RTC-MPF-I
ca7c6928c5e7f5a0751a46994262229fae2495fb
[ "BSD-2-Clause" ]
null
null
null
; RTC & CTC demo program for MicroProfessor MPF-I(B) ; Based on Zilog Z80 Family Data Book, January 1989, p 366 ; by fjkraan@electrickery 2022-01-28 ; z80asm version (https://github.com/udo-munk/z80pack/tree/master/z80asm) ; This program assumes a CTC at port 40h and the standard MPF-I(B) hex ; display. ; MPF-I CPU clock: 1.79 MHz. A prescaler of 256 and a time constant of 84 ; and a division of again 83 in the ISR results in a counter update ; interval of approx. 1 s. ; RTCCLOCK version 0.3, 2022-02-05 ; Memory organisation RAM: EQU 1980h ROM: EQU 2200h RAMSIZ: EQU 90h ; CTC ports CTCBASE:EQU 40h CTC0: EQU CTCBASE + 0 ;CTC 0 PORT CTC1: EQU CTCBASE + 1 ;CTC 1 PORT CTC2: EQU CTCBASE + 2 ;CTC 2 PORT CTC3: EQU CTCBASE + 3 ;CTC 3 PORT LITES: EQU 0C0h ;LIGHT PORT for debug ; CTC Constants CCW: EQU 1 INTEN: EQU 80h ; Interrupt enable CTRMODE:EQU 40h ; Counter mode P256: EQU 20h ; Prescaler 256 RISEDO: EQU 10h ; Rising Edge Trigger PSTRT: EQU 8 ; Trigger by CLK/TRG TCLOAD: EQU 4 ; Time constant in following byte load (TIME) RESET: EQU 2 ; Software Reset TIMER: EQU 84 ; CTC TIMER VALUE COUNTER:EQU 83 ; ISR COUNT value ; PIO ports PIOBASE:EQU 080h PIODA: EQU PIOBASE + 0 ; DATA PORT OF PIO CHANNEL A; address & control: output R_ADCT: EQU PIODA PIODB: EQU PIOBASE + 1 ; DATA PORT OF PIO CHANNEL B; data read/write: input & output R_DATA: EQU PIODB PIOCA: EQU PIOBASE + 2 ; CONTROL PORT OF PIO CHANNEL A; address & control: output R_ACDR: EQU PIOCA PIOCB: EQU PIOBASE + 3 ; CONTROL PORT OF PIO CHANNEL B; data read/write: input & output R_DDRR: EQU PIOCB ; rtc data port direction register ; PIO Constants PIODW: EQU 00001111b ; mode 0: output PIODR: EQU 01001111b ; mode 1: input PIOICW: EQU 00000111b ; Interrupt Control Word: disable interrupt PIOIDW: EQU 00000011b ; Interrupt Disable Word: disable interrupt ; Z80 PIO bits to MSM5832 RTC pin mapping RTCHOLD EQU 010h RTCREAD EQU 020h RTCWRIT EQU 040h RTCDMSK EQU 00Fh ; RTC address mask RTCNORD EQU RTCREAD ^ 0FFh RTCNOWR EQU RTCWRIT ^ 0FFh ; masks in dual BCD mode as used in READ_C and WRITE_C RTC_MIM EQU 01111111b ; minute mask RTC_AM EQU 00000000b ; RTC_PM EQU 01000000b ; the PM clock bit RTC_12h EQU 00000000b ; RTC_24h EQU 10000000b ; the 24 hour clock bit in dual BCD mode RTC_HRM EQU (RTC_PM | RTC_24h) ^ 0FFh ; reverse mask for the extra bits RTC_lpy EQU 01000000b ; leap year flag for Feb 29, D2 > bit 6 RTC_DYM EQU RTC_lpy ^ 0FFh ; reverse mask RTC_MNM EQU 00011111b ; month mask ; MSM5832 registers: most values use two addresses, but not the day-in-week SC1AD: EQU 0 ; second MI1AD: EQU 2 ; minute HR1AD: EQU 4 ; hour, HR10AD uses D2 for AM/PM, D3 for 12/24 hour clock WDAD: EQU 6 ; day-in-week DY1AD: EQU 7 ; day-in month MO1AD: EQU 9 ; month YR1AD: EQU 11 ; year in century ; DJNZ = (13 Tstates) * W150C + 8 T states. (152,5 us + 4.5 us) = 157 us W150C: EQU 21 ; ~150us at 1.79 MHz ; Monitor ROM routines SCAN: EQU 05FEh ; SCAN1: EQU 0624h ; input: (IX), output: carry & A HEX7SEG:EQU 0678h ; input: A (2 * BCD), output (HL). HL+2 ; RAM organisation ORG RAM MANBUF: ; buffer to store BCD values when manually setting time and date DEFB 00 ; seconds MANBUF+0 DEFB 00 ; minutes MANBUF+1 DEFB 00 ; hours MANBUF+2 DEFB 00 ; day-of-week DEFB 00 ; days MANBUF+4 DEFB 00 ; months MANBUF+5 DEFB 00 ; years MANBUF+6 RTCBUF: ; data here stored as binary DEFB 00 ; seconds RTCBUF+0 DEFB 00 ; minutes RTCBUF+1 DEFB 00 ; hours RTCBUF+2 DEFB 00 ; day-of-week DEFB 00 ; days RTCBUF+4 DEFB 00 ; months RTCBUF+5 DEFB 00 ; years RTCBUF+6 DISPBUF: ; six digits, from right to left DEFW 0000 ; seconds / years DEFW 0000 ; minutes / months DEFW 0000 ; hours / days DEFS 64 ;STACK AREA STAK: EQU $ COUNT: DEFS 1 ;ICT COUNT VALUE SECFLAG:DEFS 1 ; second boundary flag, triggers RTCBUF update RTCRDFL:DEFS 1 ; clock update from RTC flag, triggers READ_C call POINTON:DEFS 1 ; point on right digit on flag, used to flag an RTC access POINTBT:EQU 01000000b ; the point is bit 6. UM, p37 MROFFS: EQU RTCBUF - MANBUF ; This offset is handy with LD (IX+MROFFS),A RB_SC: EQU RTCBUF + 0 RB_MI: EQU RTCBUF + 1 RB_HR: EQU RTCBUF + 2 ;; *** MAIN PROGRAM *** ORG ROM JP BEGIN SETRTC: CALL SETRBUF RST 0 GETRTC: CALL READ_C RST 0 ORG $ & 0FFF0h | 10h INTVEC: DEFW ICTC0 DEFW ICTC1 DEFW ICTC2 DEFW ICTC3 BEGIN: LD SP,STAK ;INIT SP IM 2 ;VECTOR INTERRUPT MODE LD A,INTVEC / 256 ;UPPER VECTOR BYTE LD I,A CALL INIT ;INIT DEVICES (CTC & memory) LD A, 1 LD (RTCRDFL), A ; trigger RTC read EI ;ALLOW INTERRUPTS LOOP: LD A, (SECFLAG) CP 1 LD A, 0 ; clear secflag, regardless of state LD (SECFLAG), A JP NZ, NO_SEC ; part below only once per second LD A, (RTCRDFL) CP 1 JR NZ, NO_RTC ; CALL READ_C NO_RTC: ; no RTC access CALL UPDTIME NO_SEC: ; no second passed CALL DSP ; Show time on display JR LOOP ;LOOP FOREVER INIT: ; PIO Channel pre-config LD A, PIOIDW OUT (PIOCA), A ; channel A interrupt disable OUT (PIOCB), B ; channel B interrupt disable ; PIO Channel A final configuration, address & control port LD A, 0h OUT (R_ADCT), A ; zero addr/ctrl before setting output mode LD A, PIODW OUT (R_ACDR), A ; addr/ctrl port, channel A output mode ; PIO Channel B initial configuration, data port LD A, 0h OUT (R_ADCT), A ; zero data before setting output mode LD A, PIODR OUT (R_DDRR), A ; data port, channel B input mode ; CTC0 init LD A, INTEN + P256 + TCLOAD + RESET + CCW OUT (CTC0), A ;SET CTC MODE LD A, TIMER OUT (CTC0), A ;SET TIME CONSTANT LD A, INTVEC & 11111110b OUT (CTC0), A ;SET VECTOR VALUE LD A, COUNTER ;INIT COUNTER VALUE LD (COUNT), A XOR A LD (SECFLAG), A ; display memory init LD (DISPBUF), A ; clear display buffer LD (DISPBUF + 1), A LD (DISPBUF + 2), A LD (DISPBUF + 3), A LD (DISPBUF + 4), A LD (DISPBUF + 5), A LD A, 01010101b OUT (LITES), A RET UPDTIME: ; update seconds up to 60 ; update minutes up to 60 when seconds == 60, reset seconds ; update hours up to 24 when minutes == 60, reset minutes ; update date when hours == 24, reset hours ; .... LD A, (RB_SC) INC A CP 60 JR Z, UT_S0 LD (RB_SC), A JR UPDDONE UT_S0: LD A, 0 LD (RB_SC), A ; set seconds to zero LD A, (RB_MI) INC A ; update minutes CP 60 JR Z, UT_M0 LD (RB_MI), A JR UPDDONE UT_M0: LD A, 1 LD (RTCRDFL), A ; set flag to trigger RTC read LD A, 0 LD (RB_MI), A ; set minutes to zero LD A, (RB_HR) INC A ; update hours CP 24 JR Z, UT_H0 LD (RB_HR), A JR UPDDONE UT_H0: ; date update not implemented yet; LD A, 0 LD (RB_HR), A ; set hours to zero UPDDONE: RET DSP: LD HL, DISPBUF ; point to rightmost value LD BC, RTCBUF LD A, (BC) CALL BIN2BCD CALL HEX7SEG CALL POINTM INC BC ; points to minutes value LD A, (BC) CALL BIN2BCD CALL HEX7SEG INC BC ; points to hours value LD A, (BC) CALL BIN2BCD CALL HEX7SEG LD IX, DISPBUF CALL SCAN1 ; call ROM display routine RET POINTM: PUSH AF LD A, (POINTON) ADD A, 0 JR Z, PNTMNOT LD A, (DISPBUF) OR POINTBT LD (DISPBUF), A PNTMNOT: POP AF RET READ_C: LD A, 1 LD (POINTON), A ; set flag for the rightmost display dot LD A, PIODR OUT (R_DDRR), A ; data port, channel B input mode LD A, RTCHOLD OUT (R_ADCT), A ; assert HOLD CALL WAIT150u LD HL, RTCBUF LD A, SC1AD ; second nibbles CALL RD2NIB CALL BCD2BIN LD (HL), A ; store in buffer INC HL LD A, MI1AD ; minute nibbles CALL RD2NIB AND RTC_MIM CALL BCD2BIN LD (HL), A ; store in buffer OUT (LITES), A ; debug INC HL LD A, HR1AD CALL RD2NIB ; hour nibbles AND RTC_HRM ; mask off PM & 24h bits CALL BCD2BIN LD (HL), A ; store in buffer INC HL LD A, WDAD ; week-day nibble CALL RD1NIB LD (HL), A ; store in buffer INC HL LD A, DY1AD ; day-of month nibbles CALL RD2NIB AND RTC_DYM ; mask leap year flag CALL BCD2BIN LD (HL), A ; store in buffer INC HL LD A, MO1AD ; month nibbles CALL RD2NIB CALL BCD2BIN LD (HL), A ; store in buffer INC HL LD A, YR1AD ; year in century nibbles CALL RD2NIB CALL BCD2BIN LD (HL), A ; store in buffer LD A, 0 OUT (R_ADCT), A ; de-assert HOLD RET RD1NIB: ; read one nibble, expects RTC address in A, PUSH BC OR RTCHOLD LD C, A ; keep address + HOLD OUT (R_ADCT), A ; address + HOLD out OR RTCHOLD | RTCREAD OUT (R_ADCT), A ; address + HOLD + READ out IN A, (R_DATA) ; data in AND RTCDMSK ; mask upper nibble LD B, A ; keep value from RTC LD A, C OUT (R_ADCT), A ; address + HOLD out LD A, B POP BC RET RD2NIB: ; read two consecutive nibbles, expects ; first RTC address in A PUSH BC LD B, A ; keep address CALL RD1NIB LD C, A ; keep lower nibble LD A, B ; restore address INC A ; point to next CALL RD1NIB RLC A ; shift to upper nibble RLC A RLC A RLC A OR C ; combine nibbles POP BC RET WRITE_R: CALL WRITE_C RST 0 WRITE_C: LD A, PIODW OUT (R_DDRR), A ; data port, channel B output mode LD A, RTCHOLD OUT (R_ADCT), A CALL WAIT150u LD HL, RB_SC LD A, (HL) CALL BIN2BCD LD B, A LD A, SC1AD | RTCHOLD ; second nibbles CALL WR2NIB INC HL ; RB_MI LD A, (HL) CALL BIN2BCD LD B, A LD A, MI1AD | RTCHOLD ; minute nibbles CALL WR2NIB INC HL ; RB_HR LD A, (HL) CALL CALCPM CALL BIN2BCD OR C ; add the 24 hour and optional PM clock bits LD B, A LD A, HR1AD | RTCHOLD CALL WR2NIB ; hour nibbles INC HL LD A, (HL) CALL BIN2BCD LD B, A LD A, WDAD | RTCHOLD ; day-of-week nibble CALL WR1NIB INC HL LD A, (HL) CALL BIN2BCD LD B, A LD A, DY1AD | RTCHOLD CALL WR2NIB ; day-of-month nibbles INC HL LD A, (HL) CALL BIN2BCD LD B, A LD A, MO1AD | RTCHOLD CALL WR2NIB ; month nibbles INC HL LD A, (HL) CALL BIN2BCD LD B, A LD A, YR1AD | RTCHOLD CALL WR2NIB ; year-in-century nibbles LD A, 0 OUT (R_ADCT), A ; de-assert HOLD LD A, PIODR OUT (R_DDRR), A ; data port, channel B input mode RET WR1NIB: ; write a nibble from (HL) to RTC OUT (R_ADCT), A ; address & hold out LD C, R_DATA OUT (C), B ; data out OR RTCWRIT OUT (R_ADCT), A ; assert write AND RTCNOWR OUT (R_ADCT), A ; de-assert write RET WR2NIB: ; write nibbles from (HL) and (HL+1) to RTC PUSH AF ; save RTC address CALL WR1NIB POP AF ; restore RTC address INC A ; point to next 10's address, HOLD not effected RRC B RRC B RRC B RRC B CALL WR1NIB RET CALCPM: PUSH AF LD C, RTC_24h ; preset for AM pattern CP 12 JR C, CPLOW LD C, RTC_24h | RTC_PM ; override with PB pattern CPLOW: POP AF RET WAIT150u: PUSH AF PUSH BC LD B, W150C W150LP: DJNZ W150LP ; Wait POP BC POP AF RET BCD2BIN: ; input; A contains 2 BCD digits - MSN and LSN ; output; A contains a binary value PUSH BC PUSH AF AND 0F0h ; create MSN value only RRCA LD C, A ; keep MSN * 8 RRCA RRCA ADD A, C ; add MSN * 2 to MSN * 8 LD C, A ; keep the MSN * 10 POP AF AND 00Fh ; create LSN value only ADD A, C ; create complete binary value POP BC RET BIN2BCD: ; input; A contains a binary value less than 100 (MSNb & LSNb) ; output; A contains two BCD digits - MSN and LSN PUSH BC LD B, 0 ; start with zero MSB BI2BLP SUB 10 JP C, BI2BRY ; done counting 10s INC B JR BI2BLP ; continue until A < 10 BI2BRY ADD A, 10 ; compensate RLC B ; move 10s to upper nibble RLC B RLC B RLC B ADD A, B ; merge nibbles POP BC RET SETRBUF: LD IX, MANBUF ; point to RTCBUF seconds LD A, (IX + 0) ; load from MANBUF seconds CALL BCD2BIN LD (IX + MROFFS), A ; store to RTCBUF seconds INC IX LD A, (IX + 0) ; minutes CALL BCD2BIN LD (IX + MROFFS), A ; INC IX LD A, (IX + 0) ; hours CALL BCD2BIN LD (IX + MROFFS), A ; INC IX LD A, (IX + 0) ; day of week CALL BCD2BIN LD (IX + MROFFS), A ; INC IX LD A, (IX + 0) ; day of month CALL BCD2BIN LD (IX + MROFFS), A ; INC IX LD A, (IX + 0) ; months CALL BCD2BIN LD (IX + MROFFS), A ; INC IX LD A, (IX + 0) ; years CALL BCD2BIN LD (IX + MROFFS), A ; INC IX CALL WRITE_C ; RST 0 ; return to monitor ; JP READ_C RET ; INTERRUPT SERVICE ROUTINES ICTC1: ICTC2: ICTC3: EI RETI ;DUMMY ROUTINES ICTC0: PUSH AF LD A, (COUNT) ;CHANGE TIMER COUNT DEC A LD (COUNT), A CP 0 JR NZ, IC0DONE ; (COUNT) not yet zero, exit ISR LD A, COUNTER ;ELSE, RESET COUNTER VALUE LD (COUNT), A LD A, 1 LD (SECFLAG), A IC0DONE: POP AF EI RETI END
30.155738
96
0.452025
677034602a00c9d16229cfcfdb25bffd1e215d94
238
asm
Assembly
libsrc/_DEVELOPMENT/l/sccz80/crt0_long/l_declong.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/l/sccz80/crt0_long/l_declong.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/l/sccz80/crt0_long/l_declong.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; Small C+ Z88 Support Library ; ; Decrement long by 1 ; ; djm 21/2/99 ; Rewritten so that I know it works SECTION code_clib SECTION code_l_sccz80 PUBLIC l_declong EXTERN l_dec_dehl defc l_declong = l_dec_dehl
14.875
41
0.689076
74869902bfe1f831a9f947ab39e8e16bba9a3203
348
asm
Assembly
text/maps/celadon_dept_store_2f.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
16
2018-08-28T21:47:01.000Z
2022-02-20T20:29:59.000Z
text/maps/CeladonMart2F.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
7
2020-07-16T10:48:52.000Z
2021-01-28T18:32:02.000Z
text/maps/CeladonMart2F.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
2
2021-03-28T18:33:43.000Z
2021-05-06T13:12:09.000Z
_CeladonMart2Text3:: text "SUPER REPEL keeps" line "weak #MON at" cont "bay..." para "Hmm, it's a more" line "powerful REPEL!" done _CeladonMart2Text4:: text "For long outings," line "you should buy" cont "REVIVE." done _CeladonMart2Text5:: text "Top Grade Items" line "for Trainers!" para "2F: TRAINER'S" line " MARKET" done
15.130435
25
0.681034
5484db9e8ada83ccd8efcff7285edcfd1bc3de1f
2,333
asm
Assembly
programs/oeis/132/A132117.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/132/A132117.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/132/A132117.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A132117: Binomial transform of [1, 7, 17, 17, 6, 0, 0, 0,...]. ; 1,8,32,90,205,406,728,1212,1905,2860,4136,5798,7917,10570,13840,17816,22593,28272,34960,42770,51821,62238,74152,87700,103025,120276,139608,161182,185165,211730,241056,273328,308737,347480,389760,435786,485773,539942,598520,661740,729841,803068,881672,965910,1056045,1152346,1255088,1364552,1481025,1604800,1736176,1875458,2022957,2178990,2343880,2517956,2701553,2895012,3098680,3312910,3538061,3774498,4022592,4282720,4555265,4840616,5139168,5451322,5777485,6118070,6473496,6844188,7230577,7633100,8052200,8488326,8941933,9413482,9903440,10412280,10940481,11488528,12056912,12646130,13256685,13889086,14543848,15221492,15922545,16647540,17397016,18171518,18971597,19797810,20650720,21530896,22438913,23375352,24340800,25335850,26361101,27417158,28504632,29624140,30776305,31961756,33181128,34435062,35724205,37049210,38410736,39809448,41246017,42721120,44235440,45789666,47384493,49020622,50698760,52419620,54183921,55992388,57845752,59744750,61690125,63682626,65723008,67812032,69950465,72139080,74378656,76669978,79013837,81411030,83862360,86368636,88930673,91549292,94225320,96959590,99752941,102606218,105520272,108495960,111534145,114635696,117801488,121032402,124329325,127693150,131124776,134625108,138195057,141835540,145547480,149331806,153189453,157121362,161128480,165211760,169372161,173610648,177928192,182325770,186804365,191364966,196008568,200736172,205548785,210447420,215433096,220506838,225669677,230922650,236266800,241703176,247232833,252856832,258576240,264392130,270305581,276317678,282429512,288642180,294956785,301374436,307896248,314523342,321256845,328097890,335047616,342107168,349277697,356560360,363956320,371466746,379092813,386835702,394696600,402676700,410777201,418999308,427344232,435813190,444407405,453128106,461976528,470953912,480061505,489300560,498672336,508178098,517819117,527596670,537512040,547566516,557761393,568097972,578577560,589201470,599971021,610887538,621952352,633166800,644532225,656049976,667721408,679547882,691530765,703671430,715971256,728431628,741053937,753839580,766789960,779906486,793190573,806643642,820267120,834062440,848031041,862174368,876493872,890991010,905667245,920524046,935562888,950785252,966192625,981786500 add $0,1 lpb $0 add $2,$0 sub $0,1 add $3,$2 add $1,$3 add $2,$0 lpe
194.416667
2,187
0.861123
00c7cb886397320bed43417485c4a4d688519d4a
5,426
asm
Assembly
Transynther/x86/_processed/NC/_st_zr_un_4k_/i7-8650U_0xd2_notsx.log_9561_160.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_st_zr_un_4k_/i7-8650U_0xd2_notsx.log_9561_160.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_st_zr_un_4k_/i7-8650U_0xd2_notsx.log_9561_160.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %r15 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x15d9b, %r15 nop nop sub %r11, %r11 mov (%r15), %bp nop nop and %r12, %r12 lea addresses_D_ht+0x89f3, %r9 nop nop nop inc %r14 movb $0x61, (%r9) nop nop nop nop cmp %r14, %r14 lea addresses_WT_ht+0xc733, %rsi lea addresses_WT_ht+0x168b3, %rdi cmp %r14, %r14 mov $109, %rcx rep movsl nop and %r11, %r11 lea addresses_D_ht+0x57f3, %r11 nop inc %r9 mov (%r11), %ebp nop nop nop nop nop cmp %r12, %r12 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 pop %r15 pop %r14 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r14 push %r9 push %rbx push %rdi // Store mov $0x369e3700000008b3, %r14 cmp %rdi, %rdi mov $0x5152535455565758, %r9 movq %r9, %xmm4 vmovups %ymm4, (%r14) nop nop and $41948, %r10 // Store lea addresses_PSE+0x1b0b3, %r9 nop nop nop nop nop and %r11, %r11 movl $0x51525354, (%r9) nop nop nop nop nop xor %r11, %r11 // Faulty Load mov $0x3938f500000000b3, %rdi nop nop nop sub %r10, %r10 movb (%rdi), %bl lea oracles, %r11 and $0xff, %rbx shlq $12, %rbx mov (%r11,%rbx,1), %rbx pop %rdi pop %rbx pop %r9 pop %r14 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': True, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'54': 7444, '24': 2088, '00': 24, '50': 2, '0c': 1, 'c3': 1, '76': 1} 54 54 24 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 24 54 54 54 24 54 54 54 54 54 54 54 54 54 54 54 54 54 54 24 54 54 54 54 54 00 54 54 54 54 54 54 54 54 54 54 24 54 54 54 54 54 54 54 54 24 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 24 54 54 54 54 54 54 54 24 54 24 54 54 24 54 54 54 54 54 54 24 54 54 24 54 54 24 54 54 54 54 54 54 54 54 54 54 54 54 54 54 24 54 54 54 54 54 24 54 54 54 54 54 54 54 54 54 54 54 54 54 24 54 54 50 24 54 54 24 54 54 24 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 24 54 54 24 24 54 54 24 54 54 54 54 54 54 24 24 54 24 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 24 54 54 54 54 54 54 54 54 54 24 54 54 24 54 54 54 54 54 54 54 54 54 54 54 54 54 24 54 54 54 54 54 00 54 54 54 54 54 54 54 54 54 54 54 54 54 24 54 54 54 54 54 54 54 0c 54 54 54 54 54 54 54 24 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 24 54 54 54 54 54 54 54 24 54 54 54 54 54 54 54 54 54 54 54 54 54 54 24 54 54 54 54 54 24 54 54 54 54 54 54 24 24 54 54 54 24 54 54 54 54 54 24 54 54 54 54 54 24 24 54 54 54 54 24 54 24 54 24 54 54 54 24 54 24 54 54 54 54 54 54 54 54 54 54 54 54 54 54 24 54 54 24 24 54 54 54 54 54 24 54 24 54 24 24 24 54 54 54 54 24 54 54 54 54 24 54 54 24 24 54 54 54 24 54 54 54 54 54 54 54 54 54 54 54 54 24 54 54 00 24 54 54 54 54 54 24 54 54 24 54 54 24 24 54 54 54 54 54 24 54 24 54 54 54 54 54 54 24 24 54 54 54 24 54 24 54 54 54 54 24 54 54 54 24 54 54 54 54 24 24 54 54 54 54 24 54 54 54 54 54 54 54 54 54 54 54 24 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 24 54 24 54 54 54 54 54 54 54 24 24 54 54 24 54 54 54 54 54 24 54 54 24 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 24 54 24 24 54 54 54 54 54 54 54 54 54 24 54 54 54 54 54 54 54 54 54 54 54 54 54 54 24 54 54 54 54 24 54 54 54 54 54 54 54 54 54 24 24 24 54 54 54 24 54 24 54 54 54 54 54 54 24 54 54 24 54 24 54 24 54 54 54 54 24 24 54 54 54 54 54 24 24 54 54 54 54 54 54 24 54 54 54 24 54 24 54 54 54 54 54 54 54 54 54 24 54 54 54 54 54 54 24 54 54 54 54 54 54 54 54 24 54 24 54 54 54 54 54 54 54 24 54 54 54 54 54 54 24 54 54 54 24 54 24 24 54 54 54 24 24 24 54 54 54 54 54 54 24 24 54 24 54 24 54 54 54 54 54 54 54 00 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 24 54 24 24 54 24 24 54 54 54 54 54 54 24 54 24 24 54 54 54 24 54 54 54 54 24 24 24 54 54 24 24 54 54 54 24 24 54 54 24 24 54 54 54 54 54 54 54 54 54 24 54 24 54 24 54 54 24 24 24 54 24 24 54 54 54 54 54 54 54 24 54 54 54 24 54 24 54 54 54 54 54 54 54 24 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 24 54 24 24 54 24 54 54 54 54 54 24 54 54 54 54 54 54 54 24 54 24 24 54 54 54 54 54 54 54 54 54 54 54 54 24 54 54 24 24 54 54 54 24 24 54 54 54 54 54 54 54 54 54 54 24 54 54 54 54 24 54 54 54 24 54 54 54 54 24 24 54 54 54 24 24 54 24 54 24 54 54 24 54 54 24 24 54 54 54 54 24 54 24 24 24 24 54 54 54 54 24 24 54 54 24 54 54 54 54 54 54 24 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 24 54 54 54 */
40.796992
2,999
0.653704
8b7da2cf50ae0f1a2193d14b36186f2c36343592
532
asm
Assembly
programs/oeis/077/A077846.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/077/A077846.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/077/A077846.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A077846: Expansion of 1/(1 - 3*x + 2*x^3). ; 1,3,9,25,69,189,517,1413,3861,10549,28821,78741,215125,587733,1605717,4386901,11985237,32744277,89459029,244406613,667731285,1824275797,4984014165,13616579925,37201188181,101635536213,277673448789,758617970005,2072582837589,5662401615189,15469968905557,42264741041493,115469419894101,315468321871189,861875483530581,2354687610803541,6433126188668245 mov $1,1 mov $2,2 mov $4,4 lpb $0,1 sub $0,1 add $1,$2 add $2,$1 mov $3,$4 sub $3,1 mov $1,$3 mov $4,$2 add $4,$2 lpe
31.294118
351
0.753759
fdb1d7bcec3cb93e8cd8a289373aa34a41377d7b
221
asm
Assembly
libsrc/stdio/sos/getk.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/stdio/sos/getk.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/stdio/sos/getk.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; ; S-OS (The Sentinel) Japanese OS - Stdio ; ; getk() Read key status ; ; Stefano Bodrato, 2013 ; ; ; $Id: getk.asm,v 1.2 2015/01/19 01:33:21 pauloscustodio Exp $ ; PUBLIC getk .getk call 1FD0h ld l, a ld h,0 ret
11.631579
62
0.638009
2a9abb4ee55cdd4fe7c2ff20d339c681414bf0d4
2,455
asm
Assembly
src/SlimShader.Tests/Shaders/Sdk/Direct3D11/ContactHardeningShadows11/ContactHardeningShadows11_VS.asm
tgjones/slimshader
4fc64414b82fec8a41f8455037b3717e71907b89
[ "MIT" ]
125
2015-01-04T09:33:05.000Z
2022-03-13T05:08:50.000Z
src/SlimShader.Tests/Shaders/Sdk/Direct3D11/ContactHardeningShadows11/ContactHardeningShadows11_VS.asm
tgjones/slimshader
4fc64414b82fec8a41f8455037b3717e71907b89
[ "MIT" ]
1
2015-04-01T22:26:14.000Z
2015-04-02T12:57:18.000Z
src/SlimShader.Tests/Shaders/Sdk/Direct3D11/ContactHardeningShadows11/ContactHardeningShadows11_VS.asm
tgjones/slimshader
4fc64414b82fec8a41f8455037b3717e71907b89
[ "MIT" ]
36
2015-01-26T22:01:38.000Z
2022-01-26T04:35:56.000Z
// // Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20714 // // /// // Buffer Definitions: // // cbuffer cbConstants // { // // float4x4 g_f4x4WorldViewProjection;// Offset: 0 Size: 64 // float4x4 g_f4x4WorldViewProjLight; // Offset: 64 Size: 64 // float4 g_vShadowMapDimensions; // Offset: 128 Size: 16 [unused] // float4 g_f4LightDir; // Offset: 144 Size: 16 // float g_fSunWidth; // Offset: 160 Size: 4 [unused] // float3 g_f3Padding; // Offset: 164 Size: 12 [unused] // // } // // // Resource Bindings: // // Name Type Format Dim Slot Elements // ------------------------------ ---------- ------- ----------- ---- -------- // cbConstants cbuffer NA NA 0 1 // // // // Input signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // POSITION 0 xyz 0 NONE float xyz // NORMAL 0 xyz 1 NONE float xyz // TEXTURE 0 xy 2 NONE float xy // // // Output signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // SV_Position 0 xyzw 0 POS float xyzw // COLOR 0 xyzw 1 NONE float xyzw // TEXTURE 0 xy 2 NONE float xy // TEXTURE 1 xyzw 3 NONE float xyzw // vs_4_0 dcl_constantbuffer cb0[10], immediateIndexed dcl_input v0.xyz dcl_input v1.xyz dcl_input v2.xy dcl_output_siv o0.xyzw, position dcl_output o1.xyzw dcl_output o2.xy dcl_output o3.xyzw dcl_temps 3 mov r0.xyz, v0.xyzx mov r0.w, l(1.000000) dp4 o0.x, r0.xyzw, cb0[0].xyzw dp4 o0.y, r0.xyzw, cb0[1].xyzw dp4 o0.z, r0.xyzw, cb0[2].xyzw dp4 o0.w, r0.xyzw, cb0[3].xyzw dp3 r1.x, v1.xyzx, v1.xyzx rsq r1.x, r1.x mul r1.xyz, r1.xxxx, v1.xyzx dp3 r1.w, -cb0[9].xyzx, -cb0[9].xyzx rsq r1.w, r1.w mul r2.xyz, r1.wwww, -cb0[9].xyzx dp3_sat o1.xyz, r1.xyzx, r2.xyzx mov o1.w, l(1.000000) mov o2.xy, v2.xyxx dp4 o3.x, r0.xyzw, cb0[4].xyzw dp4 o3.y, r0.xyzw, cb0[5].xyzw dp4 o3.z, r0.xyzw, cb0[6].xyzw dp4 o3.w, r0.xyzw, cb0[7].xyzw ret // Approximately 20 instruction slots used
31.474359
78
0.500204
36628cb4a4c2d7bba59464cb1aee7f28dd6d6f69
694
asm
Assembly
oeis/229/A229280.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/229/A229280.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/229/A229280.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A229280: Number of ascending runs in {1,...,6}^n. ; Submitted by Jon Maiga ; 0,6,57,468,3564,25920,182736,1259712,8538048,57106944,377913600,2479113216,16144468992,104485552128,672625741824,4310029025280,27505821597696,174908814262272,1108696193630208,7007637010120704,44178581150760960,277868041444786176,1743987575910039552,10924601418908172288,68311664294136643584,426454320448945520640,2658231930798427078656,16546427633419086200832,102860782092285659578368,638657990304340811710464,3960907728329805995704320,24539205089001402726875136,151877782848143816877146112 mov $2,$0 lpb $0 add $1,1 add $1,$2 add $2,$0 sub $0,1 trn $2,$1 mul $1,3 add $2,$1 sub $2,1 lpe mov $0,$1
40.823529
492
0.817003
d200dae75077253391f9a3873b1963da04da049b
91
asm
Assembly
tests/rule_arg_complex/5.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
414
2016-10-14T22:39:20.000Z
2022-03-30T07:52:44.000Z
tests/rule_arg_complex/5.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
100
2018-03-22T16:12:24.000Z
2022-03-26T09:19:23.000Z
tests/rule_arg_complex/5.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
47
2017-06-29T15:12:13.000Z
2022-03-10T04:50:51.000Z
#ruledef test { ld {x} => 0x55 @ x`8 } ld (3 + x) * 5 ; error: failed / error: unknown
15.166667
47
0.527473
2420e26a6ef8837c9ed09a2ae140e8af9e4ad707
512
asm
Assembly
oeis/083/A083399.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/083/A083399.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/083/A083399.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A083399: Number of divisors of n that are not divisors of other divisors of n. ; Submitted by Christian Krause ; 1,2,2,2,2,3,2,2,2,3,2,3,2,3,3,2,2,3,2,3,3,3,2,3,2,3,2,3,2,4,2,2,3,3,3,3,2,3,3,3,2,4,2,3,3,3,2,3,2,3,3,3,2,3,3,3,3,3,2,4,2,3,3,2,3,4,2,3,3,4,2,3,2,3,3,3,3,4,2,3,2,3,2,4,3,3,3,3,2,4,3,3,3,3,3,3,2,3,3,3 add $0,1 mov $2,2 lpb $0 mov $3,$0 lpb $3 mov $4,$0 mod $4,$2 add $2,1 cmp $4,0 cmp $4,0 sub $3,$4 lpe add $5,1 lpb $0 dif $0,$2 lpe lpe mov $0,$5 add $0,1
21.333333
201
0.535156
dc183a1e8d2de402ae0312c411c6afe9aec1451a
428
asm
Assembly
libsrc/algorithm/AStarSearch/astar_PathLength.asm
andydansby/z88dk-mk2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
1
2020-09-15T08:35:49.000Z
2020-09-15T08:35:49.000Z
libsrc/algorithm/AStarSearch/astar_PathLength.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
libsrc/algorithm/AStarSearch/astar_PathLength.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
; uint __FASTCALL__ astar_PathLength(struct astar_path *p) ; return the length of the path ; 01.2007 aralbrec XLIB astar_PathLength ; enter : hl = struct astar_path * ; exit : hl = path length ; uses : af, bc, de, hl .astar_PathLength ld bc,3 ld d,b ld e,b .loop ld a,h or l jr z, done inc de add hl,bc ld a,(hl) inc hl ld h,(hl) ld l,a jp loop .done ex de,hl ret
11.888889
59
0.595794
7c4091d16b9ad68c13e9e643f9f2e95f6dc057f7
215
asm
Assembly
Assignment2/prog1/prog.asm
nikhilnayak98/CSE2011
5d5bdc32d2bbb05dc30e9d49e331eee461ecd14a
[ "MIT" ]
null
null
null
Assignment2/prog1/prog.asm
nikhilnayak98/CSE2011
5d5bdc32d2bbb05dc30e9d49e331eee461ecd14a
[ "MIT" ]
null
null
null
Assignment2/prog1/prog.asm
nikhilnayak98/CSE2011
5d5bdc32d2bbb05dc30e9d49e331eee461ecd14a
[ "MIT" ]
null
null
null
.data aside: .word 1 bside: .word 2 cside: .word 3 .text main: lw $t0,aside lw $t1,bside lw $t2,cside mul $t3,$t1,$t0 mul $t4,$t2,$t1 mul $t5,$t0,$t2 add $t7,$t3,$t4 add $t8,$t5,$t7 mul $t8,$t8,2 li $v0,10 syscall
11.315789
15
0.627907
43efe1fd87dabc24611f5533a6b0deaa48b85106
868
asm
Assembly
programs/oeis/141/A141991.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/141/A141991.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/141/A141991.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A141991: Primes congruent to 15 mod 29. ; 73,131,421,479,653,769,827,1117,1291,1523,1697,1871,1987,2161,2393,2683,2741,2857,3089,3727,4133,4423,4481,4597,5003,5119,5351,5641,6047,6163,6221,6337,6569,6917,7207,8599,8831,9643,9817,10223,10513,10687,10861,11093,11383,11731,11789,12253,12601,12659,13007,13297,13877,14051,14341,14747,15269,15443,15559,15733,15791,15907,16139,16487,16603,16661,17183,17299,18169,18401,18517,18691,18749,19213,19387,19793,20431,20663,21011,21649,21881,21997,22171,22229,22751,23041,23099,23447,23563,23911,24317,24781,25013,25303,25999,26347,26927,27043,27449,27739 mov $2,$0 add $2,2 pow $2,2 lpb $2 add $1,14 sub $2,1 mov $3,$1 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,15 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe div $1,2 sub $1,22 mul $1,2 add $1,31 mov $0,$1
36.166667
554
0.731567
3df4d549f78edb004ee8d9e4ef8ba88fa14f4488
9,361
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca_notsx.log_21829_1376.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca_notsx.log_21829_1376.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca_notsx.log_21829_1376.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %r8 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_A_ht+0x91dd, %rdi sub $6412, %r11 mov $0x6162636465666768, %r15 movq %r15, (%rdi) nop nop nop nop nop cmp $64039, %r8 lea addresses_normal_ht+0xb501, %rsi lea addresses_WC_ht+0xc25d, %rdi nop nop nop nop lfence mov $49, %rcx rep movsq nop nop and $22795, %rsi lea addresses_WC_ht+0x117dd, %rsi lea addresses_D_ht+0xa7dd, %rdi nop nop nop nop nop sub %r8, %r8 mov $28, %rcx rep movsw nop nop nop nop cmp $3198, %r15 lea addresses_WC_ht+0x1ebdd, %rsi lea addresses_WT_ht+0x1cc0d, %rdi nop xor %rax, %rax mov $40, %rcx rep movsb nop nop nop nop nop inc %rax lea addresses_WC_ht+0x91dd, %r8 nop nop nop nop nop add $1728, %r15 vmovups (%r8), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $1, %xmm0, %rdi nop add %rcx, %rcx lea addresses_D_ht+0x1ef5d, %rax xor %r11, %r11 movb $0x61, (%rax) nop cmp %rsi, %rsi lea addresses_WT_ht+0x159dd, %rsi lea addresses_UC_ht+0x189dd, %rdi nop and %rax, %rax mov $68, %rcx rep movsb nop nop cmp %r9, %r9 lea addresses_WC_ht+0x10ddd, %rcx clflush (%rcx) nop nop cmp $30339, %rsi mov (%rcx), %eax sub %r8, %r8 lea addresses_normal_ht+0x1855d, %r15 nop nop nop dec %r9 mov (%r15), %r11d nop add %rsi, %rsi lea addresses_D_ht+0x16ddd, %rsi lea addresses_UC_ht+0x51dd, %rdi nop nop nop nop inc %r15 mov $28, %rcx rep movsw nop nop and $46347, %rsi lea addresses_D_ht+0xa7dd, %rax nop nop and %r11, %r11 mov $0x6162636465666768, %r8 movq %r8, %xmm5 vmovups %ymm5, (%rax) xor %rdi, %rdi lea addresses_WC_ht+0xe1ad, %r11 nop nop nop cmp %rcx, %rcx mov (%r11), %eax nop nop nop nop sub $41433, %rcx lea addresses_A_ht+0x4fdd, %r8 add $8180, %rdi movb (%r8), %r9b nop xor $1712, %r15 lea addresses_WC_ht+0x14dd, %rsi lea addresses_D_ht+0x17d29, %rdi nop nop nop nop and %rax, %rax mov $40, %rcx rep movsq nop sub %rax, %rax lea addresses_D_ht+0x13967, %rsi lea addresses_WT_ht+0x17f1d, %rdi nop nop nop nop nop xor %rax, %rax mov $16, %rcx rep movsb nop nop add $60290, %r9 pop %rsi pop %rdi pop %rcx pop %rax pop %r9 pop %r8 pop %r15 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r9 push %rbp push %rbx push %rdi push %rdx // Load lea addresses_US+0x17a9d, %r9 add %r13, %r13 movups (%r9), %xmm4 vpextrq $0, %xmm4, %rbx nop nop add %rdx, %rdx // Store lea addresses_RW+0x65dd, %r9 nop nop nop nop and %r11, %r11 mov $0x5152535455565758, %rdi movq %rdi, (%r9) nop dec %rbx // Store lea addresses_RW+0x65dd, %r9 nop nop and $42984, %r13 mov $0x5152535455565758, %rbp movq %rbp, (%r9) nop xor $49247, %r9 // Store lea addresses_normal+0x1a3dd, %r9 nop nop nop nop and %r13, %r13 mov $0x5152535455565758, %rdx movq %rdx, (%r9) sub %rbp, %rbp // Store lea addresses_RW+0x65dd, %rdx nop nop nop nop cmp %rbx, %rbx mov $0x5152535455565758, %r9 movq %r9, %xmm7 vmovaps %ymm7, (%rdx) nop nop nop xor %rdx, %rdx // Store lea addresses_normal+0x16e85, %rbx nop nop and $28888, %r13 movw $0x5152, (%rbx) nop nop nop nop and $33095, %r9 // Faulty Load lea addresses_RW+0x65dd, %rbx nop nop nop cmp $40077, %rdi mov (%rbx), %r11w lea oracles, %rbp and $0xff, %r11 shlq $12, %r11 mov (%rbp,%r11,1), %r11 pop %rdx pop %rdi pop %rbx pop %rbp pop %r9 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 6, 'same': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 9, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 2, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'src': {'congruent': 2, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'src': {'congruent': 6, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'src': {'congruent': 9, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 9, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'src': {'congruent': 6, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 9, 'same': True, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 11, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 7, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 11, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 8, 'same': True, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'src': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 4, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'src': {'congruent': 1, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'} {'58': 21829} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
31.099668
2,999
0.653456
832b780f830670aa34436116189413815728a612
582
asm
Assembly
oeis/133/A133335.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/133/A133335.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/133/A133335.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A133335: a(3*n) = 3*a(3*n-1)-3*a(3*n-2)+2*a(3*n-3), a(3*n+1) = 3*a(3*n)-3*a(3*n-1)+2*a(3*n-2), a(3*n+2) = 3*a(3*n+1)-3*a(3*n) with a(0)=1, a(1)=2, a(2)=3. ; Submitted by Jamie Morken(s2) ; 1,2,3,5,10,15,25,50,75,125,250,375,625,1250,1875,3125,6250,9375,15625,31250,46875,78125,156250,234375,390625,781250,1171875,1953125,3906250,5859375,9765625,19531250,29296875,48828125,97656250,146484375,244140625,488281250 mul $0,4 div $0,3 add $0,3 seq $0,224251 ; Numbers, a(n) where binomial(a(n), 5n-1) == 0 (mod 5) and binomial(a(n), k) != 0 (mod 5) for k != 5n - 1. div $0,25 add $0,1
52.909091
223
0.637457
04136c6bb3abcd6cd472e30cc1e47cf74ab74093
193
asm
Assembly
mc-sema/validator/x86/tests/RCL32r1.asm
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
2
2021-08-07T16:21:29.000Z
2021-11-17T10:58:37.000Z
mc-sema/validator/x86/tests/RCL32r1.asm
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
null
null
null
mc-sema/validator/x86/tests/RCL32r1.asm
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
null
null
null
BITS 32 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS= ;TEST_FILE_META_END ; RCL32r1 mov eax, 0x56789 ;TEST_BEGIN_RECORDING rcl eax, 0x1 ;TEST_END_RECORDING
16.083333
25
0.735751
86c320635d44a92336c33ef9860219e1cd11df15
312
nasm
Assembly
pentesting/jmp_call_pop/jmp_call_pop.nasm
karng87/nasm_game
a97fdb09459efffc561d2122058c348c93f1dc87
[ "MIT" ]
null
null
null
pentesting/jmp_call_pop/jmp_call_pop.nasm
karng87/nasm_game
a97fdb09459efffc561d2122058c348c93f1dc87
[ "MIT" ]
null
null
null
pentesting/jmp_call_pop/jmp_call_pop.nasm
karng87/nasm_game
a97fdb09459efffc561d2122058c348c93f1dc87
[ "MIT" ]
null
null
null
section .text global main main: jmp msg_data shell: pop rsi xor rax, rax add al, 1 mov rdi, rax mov rdx, rdi add dl, 11 syscall xor rax, rax add al, 60 xor rdi, rdi syscall msg_data: call shell msg: db "Hello world", 0xA
13.565217
30
0.516026
e34ec5e597df0768687b493dacf258a1d85f1b22
320
asm
Assembly
src/asm/test_sub32/sub32.asm
Petersoj/ECE3710Projects
15b78575830d2214b3350417a49642f88258a2a5
[ "MIT" ]
3
2021-11-01T03:31:36.000Z
2022-01-08T22:48:08.000Z
src/asm/test_sub32/sub32.asm
Petersoj/ECE3710Projects
15b78575830d2214b3350417a49642f88258a2a5
[ "MIT" ]
null
null
null
src/asm/test_sub32/sub32.asm
Petersoj/ECE3710Projects
15b78575830d2214b3350417a49642f88258a2a5
[ "MIT" ]
1
2022-03-11T12:00:00.000Z
2022-03-11T12:00:00.000Z
MOVIU r0 0x80 MOVIL r0 0x02 MOVIU r1 0x00 MOVIL r1 0x01 # 32-bit 0000_0000_0000_0001_1000_0000_0000_0010 MOVIU r2 0x80 MOVIL r2 0x03 MOVIU r3 0x00 MOVIL r3 0x01 # 32-bit 0000_0000_0000_0001_1000_0000_0000_0011 SUB r0 r2 BHS 1 SUBI r1 1 SUB r1 r3 MOVIL r8 0x1F MOVIL r9 0x20 STORE r8 r0 STORE r9 r1
18.823529
63
0.753125
362a3967dcd12e8f35a289493d3df0f6e60635b9
1,434
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_55_527.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_55_527.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_55_527.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r15 push %rcx push %rdi push %rsi // Store lea addresses_normal+0xa26f, %r15 nop add $55154, %rcx mov $0x5152535455565758, %r12 movq %r12, (%r15) add $61777, %r10 // REPMOV mov $0xe87, %rsi lea addresses_normal+0xdb6f, %rdi nop nop nop dec %r12 mov $90, %rcx rep movsl cmp %rsi, %rsi // Faulty Load lea addresses_WC+0x1236f, %r10 clflush (%r10) and %rsi, %rsi movups (%r10), %xmm6 vpextrq $1, %xmm6, %rdi lea oracles, %r15 and $0xff, %rdi shlq $12, %rdi mov (%r15,%rdi,1), %rdi pop %rsi pop %rdi pop %rcx pop %r15 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_P', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_normal', 'congruent': 8, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'00': 55} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
22.061538
164
0.648536
8ddc403f4625f0b52c8adbde928ff5265f2a9233
246
asm
Assembly
programs/oeis/191/A191761.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/191/A191761.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/191/A191761.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A191761: Last digit of (2*n)^2. Also period 5: repeat [0, 4, 6, 6, 4]. ; 0,4,6,6,4,0,4,6,6,4,0,4,6,6,4,0,4,6,6,4,0,4,6,6,4,0,4,6,6,4,0,4,6,6,4,0,4,6,6,4,0,4,6,6,4,0,4,6,6,4,0,4,6,6,4,0,4,6,6,4,0,4,6,6,4,0,4,6,6,4,0 mul $0,2 pow $0,6 mod $0,10
35.142857
143
0.528455
5c7fcc88abc797bc1703e5179d6b6bce240ae886
100
asm
Assembly
pkgs/tools/yasm/src/modules/dbgfmts/dwarf2/tests/pass64/dwarf64_2loc.asm
manggoguy/parsec-modified
d14edfb62795805c84a4280d67b50cca175b95af
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
pkgs/tools/yasm/src/modules/dbgfmts/dwarf2/tests/pass64/dwarf64_2loc.asm
manggoguy/parsec-modified
d14edfb62795805c84a4280d67b50cca175b95af
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
pkgs/tools/yasm/src/modules/dbgfmts/dwarf2/tests/pass64/dwarf64_2loc.asm
manggoguy/parsec-modified
d14edfb62795805c84a4280d67b50cca175b95af
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
.file 1 "dwarf64_2loc.c" .text .loc 1 1 0 .loc 1 2 0 xorq %rax, %rax .section .debug_info .byte 1
11.111111
24
0.66
df81a5c92da7d2d704515bd6092d67f598072dff
466
asm
Assembly
oeis/334/A334909.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/334/A334909.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/334/A334909.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A334909: Area/6 of primitive Pythagorean triangles given in A334638 as triples. ; Submitted by Christian Krause ; 1,35,770,14260,244776,4053840,65979040,1064678720,17107266176,274296689920,4393395202560,70331527418880,1125602147608576,18012016334950400,288211318352814080,4611533554425610240,73785756576381566976,1180581862943988449280 add $0,1 mov $1,2 pow $1,$0 mov $0,$1 mov $2,1 sub $2,$1 sub $0,$2 mul $1,$2 sub $2,$0 mul $0,$2 mul $1,$0 mov $0,$1 div $0,24
25.888889
223
0.776824
a81b5cc5bf24f2ec34e97999314eee6fa78a3696
689
asm
Assembly
_maps/Game Over.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
9
2021-01-15T13:47:53.000Z
2022-01-17T15:33:55.000Z
_maps/Game Over.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
7
2021-01-14T02:18:48.000Z
2021-03-24T15:44:30.000Z
_maps/Game Over.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
2
2021-01-14T13:14:26.000Z
2021-01-29T17:46:04.000Z
; --------------------------------------------------------------------------- ; Sprite mappings - "GAME OVER" and "TIME OVER" ; --------------------------------------------------------------------------- Map_Over_internal: dc.w byte_CBAC-Map_Over_internal dc.w byte_CBB7-Map_Over_internal dc.w byte_CBC2-Map_Over_internal dc.w byte_CBCD-Map_Over_internal byte_CBAC: dc.b 2 ; GAME dc.b $F8, $D, 0, 0, $B8 dc.b $F8, $D, 0, 8, $D8 byte_CBB7: dc.b 2 ; OVER dc.b $F8, $D, 0, $14, 8 dc.b $F8, $D, 0, $C, $28 byte_CBC2: dc.b 2 ; TIME dc.b $F8, 9, 0, $1C, $C4 dc.b $F8, $D, 0, 8, $DC byte_CBCD: dc.b 2 ; OVER dc.b $F8, $D, 0, $14, $C dc.b $F8, $D, 0, $C, $2C even
32.809524
77
0.46299
0fc59dbd07b47ac9e0acde231ba53a038866c467
99,069
asm
Assembly
filtros/anguloSobel_asm.asm
partu18/edge_detection_algorithm_SIMD
52cefd9c64e67602322e62d8528761272c89ebe8
[ "MIT" ]
null
null
null
filtros/anguloSobel_asm.asm
partu18/edge_detection_algorithm_SIMD
52cefd9c64e67602322e62d8528761272c89ebe8
[ "MIT" ]
null
null
null
filtros/anguloSobel_asm.asm
partu18/edge_detection_algorithm_SIMD
52cefd9c64e67602322e62d8528761272c89ebe8
[ "MIT" ]
null
null
null
%define off_primero -8 %define off_segundo -12 section .data dos25mil: DD 0x36EE8,0x36EE8,0x36EE8,0x36EE8 ; 0x36EE8 = 225000 pisobre2: DD 0X3D5B,0X3D5B,0X3D5B,0X3D5B ; 0X3D5B = 15707 diezmil: DD 0x2710,0x2710,0x2710,0x2710 ; 0x2710 = 10000 cincuenta: DD 0x32, 0x32, 0x32, 0x32 ; 0x32 = 50 section .text global anguloSobel_asm anguloSobel_asm: ; void ang_sobel_asm ( ; unsigned char *src, ; unsigned char *dstGrad, ; unsigned char *dstAng, ; int h, ; int w, ; int src_row_size, ; int dst_row_size ; ); ; rdi --> *src/ puntero a src ; rsi --> *dstGrad/ dst ; rdx --> *dstAng/dst ; rcx --> h/ cantidad de filas ; r8 --> w/ columnas ; r9 --> src_row size ; pila(rsp) --> dst_row_size ;Busco el parámetro de la pila ;Salvar registros, armar el stack frame y alinear pila. PUSH rbp;A MOV rbp,rsp; SUB rsp,16;A PUSH r15;D PUSH r14;A PUSH r13;D PUSH r12;A MOV rax, [rsp+64] MOV r13, rax; MOV rax, rdx; En rax tengo el puntero al dstAng MOV rdx, rcx; En rdx tengo la cantidad de filas MOV rcx, r8 ; En rcx tengo la cantidad de columnas MOV r8, r9 ; En r8 tengo el src row size MOV r9, r13 ; En r9 tengo el dst row size ; En rdi tengo el puntero al src ; En rsi tengo el puntero al dstGrad ;Limpio parte alta de los registros XOR r12,r12 MOV r12d, r8d XOR r8,r8 MOV r8, r12 MOV r12d, r9d XOR r9,r9 MOV r9, r12 MOV r12d, ecx XOR rcx,rcx MOV rcx, r12 ;configuramos las máscaras MOVDQU xmm15, [pisobre2] ; xmm15 = [15707|15707|15707|15707] MOVDQU xmm12, [dos25mil] ; xmm12 = [225000|225000|225000|225000] MOVDQU xmm11, [diezmil] ; xmm11 = [10000|10000|10000|10000] CVTDQ2PS xmm15, xmm15 ; CVTDQ2PS xmm12, xmm12 ; CVTDQ2PS xmm11, xmm11 ; DIVPS xmm15, xmm11 ; xmm15 = [1.5707|1.5707|1.5707|1.5707] DIVPS xmm12, xmm11 ; xmm12 = [22.5|22.5|22.5|22.5] MOVDQU xmm14, [cincuenta] CVTDQ2PS xmm14, xmm14; ;Poner 0's en la primeras 3 filas del dst MOV r11, 3 ;Para iterar 3 filas PXOR xmm0,xmm0 ;Para escribir 0 en el borde primerasFilas: CMP r11, 0 ; JE seguirConMedio MOV r15, rsi ;Guardo el puntero al destinoGrad en r15 (para usarlo de iterador). MOV r13, rax ;Guardo el puntero al destinoANG en r13 (para usarlo de iterador). MOV r12, rcx ;Guardo en r12, la cantidad de columnas para poder comparar contra 0 cuando termine de iterar toda la fila. cicloPrimeras3Filas: CMP r12,0 ;Armo un loop para la primer fila JE cambiarPrimerasFilas CMP r12,16 ;Para redimensionar JL redimensionPrimeras3filas MOVDQU [r15], xmm0 ;Escribo 16 bytes de 0 en la posición de memoria apuntada por el iterador MOVDQU [r13], xmm0 ;Escribo 16 bytes de 0 en la posición de memoria apuntada por el iterador ADD r15, 16 ;Aumento el iterador ADD r13, 16 ;Aumento el iterador SUB r12, 16 ;Disminuyo la cantidad de columnas que me faltan recorrer JMP cicloPrimeras3Filas cambiarPrimerasFilas: LEA rdi, [rdi + r8] ; Muevo los punteros de las imágenes al primero de la segunda fila sumandole el row_size correspondiente a cada uno. LEA rsi, [rsi + r9] LEA rax, [rax + r9] DEC edx ; Decremento una fila DEC r11 ; Decremento el contador de estas tres filas JMP primerasFilas redimensionPrimeras3filas: MOV r14, 16 ; Hago esto para retroceder (16-r12d) para atrás que es lo que necesito que retrocedan los iteradores para poder hacer la última escritura. SUB r14, r12 SUB r15, r14 SUB r13, r14 MOV r12, 16 JMP cicloPrimeras3Filas seguirConMedio: ;De la forma que se va a implementar podemos procesar de a 14 pixeles a la vez,porque lo de las puntas ;no se pueden procesar ya que necesitan los píxeles de los costados. cicloPorFilas: CMP edx,3 ; Comparo a ver si la cantidad de filas que me restan por procesar es 3 (2 de smoothign + 1 que es la ultima solo resta la ùltima). JE parteFinal MOV r14, rdi ; Creo el iterador de la fila actual de la imagen src MOV r15, rsi ; Creo el iterador de la fila actual de la imagen dstGradiente MOV r13, rax ; Creo el iterador de la fila actual de la imagen dstAngulos MOV r12, rcx ; Pongo en r12d la cantidad de columnas que voy a procesar MOV WORD [r15],0 ; Pinto de negro los 3 bordes ADD r15,2; MOV BYTE [r15],0 INC r15; MOV WORD [r13],0 ; Pinto de negro los 3 bordes ADD r13,2; MOV BYTE [r13],0 INC r13; ADD r14,2 ;Salteas los dos primeros bordes de smoothing cicloPorColumnas: CMP r12, 18 ; Si es menor a la 16 hay que redimensionar JL redimensionar MOV r10, r14 SUB r10, r8 MOVDQU xmm0, [r10] ;Levanto los 16 bytes de arriba (U15,U14,U13..U0) MOVDQU xmm1, [r14] ;Levanto los 16 bytes del medio (M15,M14,M13..M0) MOVDQU xmm2, [r14 + r8] ;Levanto los 16 bytes de abajo (D15,D14,D13..D0) MOVDQU xmm3, xmm0 ; MOVDQU xmm4, xmm1 ; MOVDQU xmm5, xmm2 ; ; PXOR xmm8,xmm8 ; Lo limpio para poder extender con 0's PUNPCKLBW xmm0, xmm8 ; xmm0 = [U15|U14|U13|U12|U11|U10|U9|U8] PUNPCKHBW xmm3, xmm8 ; xmm3 = [U7|U6|U5|U4|U3|U2|U1|U0] PUNPCKLBW xmm1, xmm8 ; xmm1 = [M15|M14|M13|M12|M11|M10|M9|M8] PUNPCKHBW xmm4, xmm8 ; xmm4 = [M7|M6|M5|M4|M3|M2|M1|M0] PUNPCKLBW xmm2, xmm8 ; xmm2 = [D15|D14|D13|D12|D11|D10|D9|D8] PUNPCKHBW xmm5, xmm8 ; xmm5 = [D7|D6|D5|D4|D3|D2|D1|D0] ;************************************************************************************************************************************************************************************************************************ ;************************************************************************************************************************************************************************************************************************ ;******************************************************************************************* Calcular GX **************************************************************************************************************** ;************************************************************************************************************************************************************************************************************************ ;************************************************************************************************************************************************************************************************************************ ; Matriz de convolución: ; -1 0 1 ---> U ; -2 0 2 ---> M ; -1 0 1 ---> D ; En xmm0 están los píxeles de arriba ---> [U15|U14|U13|U12|U11|U10|U9|U8|U7|U6|U5|U4|U3|U2|U1|U0] ; En xmm1 están los píxeles de del medio ---> [M15|M14|M13|M12|M11|M10|M9|M8|M7|M6|M5|M4|M3|M2|M1|M0] ; En xmm2 están los píxeles de abajo ---> [D15|D14|D13|D12|D11|D10|D9|D8|D7|U6|D5|U4|U3|U2|D1|D0] ; Si hacemos que : -(xmm0+2*xmm1+xmm2) + 2<<(xmm0+2*xmm1+xmm2) ; Entonces, se cumple que en la parte alta del registro queda : ; [GX(M14)|GX(M13)|GX(M12)|GX(M11)|GX(M10)|GX(M9)|Basura|Basura] ; donde GX(M{n}) = -(U{n+}1 + 2*M{n+}1 + D{n+1}) + U{n-1} + 2*M{n-1} + D{n-1} (n es la posición dentro del registro del pixel a procesar) PADDW xmm1,xmm1 ;Multiplico por dos ; Busco que xmm7 = (xmm0+xmm1+xmm2) MOVDQU xmm7, xmm0 ; xmm7 = [U15|U14|U13|U12|U11|U10|U9|U8] PADDW xmm7,xmm1 ; xmm7 = [U15 + 2*M15 | .. | U8 + 2*M8] PADDW xmm7,xmm2 ; xmm7 = [U15 + 2*M15 + D15 | ..| U8 + 2*M8 + D8] MOVDQU xmm9, xmm7 ; Para calcular GX(8) y GX(7) PSUBW xmm8,xmm7 ; xmm8 = -xmm7 = -(xmm0+xmm1+xmm2) ; xmm8 = [-(U15 + 2*M15 + D15) | ..| -(U8 + 2*M8 + D8)] PSRLDQ xmm7,4 ; xmm7 = [U13 + 2*M13 + D13 | ..| Basura|Basura] PADDW xmm8,xmm7 ; xmm8 = [-(U15 + 2*M15 + D15) + U13 + 2*M13 + D13 | ..| Basura|Basura] ; xmm8 = [GX(M14)|GX(M13)|GX(M12)|GX(M11)|GX(M10)|GX(M9)|Basura|Basura] ; Si hacemos que : -(xmm3+2*xmm4+xmm5) + 2<<(xmm3+2*xmm4+xmm5 ) ; Entonces, se cumple que en la parte alta del registro queda : ; [GX(M6)|GX(M5)|GX(M4)|GX(M3)|GX(M2)|GX(M1)|Basura|Basura] ; donde GX(M{n}) = -(U{n+}1 + 2*M{n+}1 + D{n+1}) + U{n-1} + 2*M{n-1} + D{n-1} (n es la posición dentro del registro del pixel a procesar) PADDW xmm4,xmm4 ;MULTIPLICO POR 2 ; quiero que xmm10 = (xmm3+xmm4+xmm5) MOVDQU xmm10, xmm3 ; xmm10 = [U7|U6|U5|U4|U3|U2|U1|U0] PADDW xmm10,xmm4 ; xmm10 = [U7 + 2*M7 |...|U0 + 2*M0] PADDW xmm10,xmm5 ; xmm10 = [U7 + 2*M7 + D7|...|U0 + 2*M0 + D0] MOVDQU xmm7, xmm10 ; Para calcular GX(8) y GX(7) PXOR xmm11,xmm11 ; PSUBW xmm11,xmm10 ; xmm11 = -xmm10 = -(xmm3+xmm4+xmm5) ; xmm11 = [-(U7 + 2*M7 + D7)|...|-(U0 + 2*M0 + D0)] PSRLDQ xmm10,4 ; xmm10 = [U5 + 2*M5 + D5|..|Basura|Basura] PADDW xmm11,xmm10 ; xmm11 = [-(U7 + 2*M7 + D7) + U5 + 2*M5 + D5|..|Basura|Basura] ; xmm11 = [GX(M6)|GX(M5)|GX(M4)|GX(M3)|GX(M2)|GX(M1)|Basura|Basura] ; Ya sabiamos que M15, y M0 no los ibamos a poder procesar ya que se necesitan sus vecinos y no los tenemos. Por ende solo procesamos los 14 píxeles del medio. Como tuvimos que hacer unpack, ; nos quedaron en el medio M7 y M8 que sí se pueden hacer. Para eso hay que hacer unos corrimientos, porque al separar un solo registro que tenía 2 extremos (M15 y M0) en dos, ; ahora se nos suman dos nuevos extremos. ;xmm9 = [U15 + 2*M15 + D15 | ..| U8 + 2*M8 + D8] ;xmm7 = [U7 + 2*M7 + D7|...|U0 + 2*M0 + D0] ; Necesitamos obtener en la parte baja de algun registro : ; [Basura|Basura|...|GX(M8)|GX(M7)] osea: ; [M|M|...|U7 + 2*M7 + D7 - (U9 + 2*M9 + D9)|U6 + 2*M6 + D6 - (U8 + 2*M8 + D8)] PSLLDQ xmm7, 12 ;xmm7 = [Basura|...|U7 + 2*M7 + D7|U6 + 2*M6 + D6] PSUBW xmm7,xmm9 ;xmm7 = [Basura|Basura|..|F(M8)|F(M7)] ;Resumen: ; xmm8 = [GX(M14)|GX(M13)|GX(M12)|GX(M11)|GX(M10)|GX(M9)|Basura|Basura] ; xmm11 = [GX(M6)|GX(M5)|GX(M4)|GX(M3)|GX(M2)|GX(M1)|Basura|Basura] ; xmm7 = [Basura|Basura|..|GX(M8)|GX(M7)] ;Ahora unimos todo: PSLLDQ xmm8, 4 ; xmm8 = [Basura|Basura|GX(M14)|GX(M13)|GX(M12)|GX(M11)|GX(M10)|GX(M9)] PSRLDQ xmm8, 4 ; xmm8 = [GX(M14)|GX(M13)|GX(M12)|GX(M11)|GX(M10)|GX(M9)|0|0] PSRLDQ xmm7, 12 ; xmm7 =[GX(M8)|GX(M7)|0..|0] PSLLDQ xmm7, 12 ; xmm7 = [0|...|GX(M8)|GX(M7)] PADDW xmm8,xmm7 ; xmm8 = [GX(M14)|GX(M13)|GX(M12)|GX(M11)|GX(M10)|GX(M9)|GX(M8)|GX(M7)] ;---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ; Ya calculamos GX : ; xmm8 = [GX(M14)|GX(M13)|GX(M12)|GX(M11)|GX(M10)|GX(M9)|GX(M8)|GX(M7)] ; xmm11 = [GX(M6)|GX(M5)|GX(M4)|GX(M3)|GX(M2)|GX(M1)|Basura|Basura] ;---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ;************************************************************************************************************************************************************************************************************************ ;************************************************************************************************************************************************************************************************************************ ;******************************************************************************************* Calcular GY **************************************************************************************************************** ;************************************************************************************************************************************************************************************************************************ ;************************************************************************************************************************************************************************************************************************ ; Matriz de convolución: ; 1 2 1 ---> U ; 0 0 0 ---> M ; -1 -2 -1 ---> D MOVDQU xmm1, xmm3 MOVDQU xmm4, xmm2 ;Resumen: ; xmm0 = [U15|U14|U13|U12|U11|U10|U9|U8] ; xmm1 = [U7|U6|U5|U4|U3|U2|U1|U0] ; xmm2 = [M15|M14|M13|M12|M11|M10|M9|M8] /n uso ; xmm3 = [M7|M6|M5|M4|M3|M2|M1|M0 /nl uso] ; xmm4 = [D15|D14|D13|D12|D11|D10|D9|D8] ; xmm5 = [D7|D6|D5|D4|D3|D2|D1|D0] ; xmm8 = [GX(M14)|GX(M13)|GX(M12)|GX(M11)|GX(M10)|GX(M9)|GX(M8)|GX(M7)] ; xmm11 = [GX(M6)|GX(M5)|GX(M4)|GX(M3)|GX(M2)|GX(M1)|Basura|Basura] ; GY(Mn) = Un+1 + 2*Un + Un-1 - (Dn+1 + 2*Dn + Dn-1) ; xmm2 y xmm3 no me interesan porque no trabajo con M. Ya que está en la matriz de convolución aparece toda en 0 esa fila ;Cálculo de la parte LOW de los registros sometidos al pack. ;Acomodamos los píxeles de arriba (U) MOVDQU xmm2, xmm0 ; xmm2 = [U15|U14|U13|U12|U11|U10|U9|U8] MOVDQU xmm6, xmm0 ; para calcular GY(8) y GY(7) PADDW xmm2,xmm2 ; xmm2 =[2*U15|2*U14|2*U13|2*U12|2*U11|2*U10|2*U9|2*U8] PSRLDQ xmm2, 2 ; xmm2 = [2*U14|2*U13|2*U12|2*U11|2*U10|2*U9|2*U8|0] MOVDQU xmm3, xmm0 ; xmm3 = [U15|U14|U13|U12|U11|U10|U9|U8] PSRLDQ xmm3, 4 ; xmm3 = [U13|U12|U11|U10|U9|U8|0|0] PADDW xmm0, xmm2 ; xmm0 = [U15 + 2*U14 | ..| U10 + 2*U9 | U9 + 2*U8 | 0] MOVDQU xmm10, xmm0 ; para calcular GY(8) y GY(7) PADDW xmm0, xmm3 ; xmm0 = [U15 + 2*U14 + U13 | .. | U10 + 2*U9 + U8| Basura | Basura] ;Acomodamos los píxeles de abajo (D) MOVDQU xmm2, xmm4 ; xmm2 = [D15|D14|D13|D12|D11|D10|D9|D8] MOVDQU xmm7, xmm2 ; para calcular GY(8) y GY(7) PADDW xmm2,xmm2 ; xmm2 =[2*D15|2*D14|2*D13|2*D12|2*D11|2*D10|2*D9|2*D8] PSRLDQ xmm2, 2 ; xmm2 = [2*D14|2*D13|2*D12|2*D11|2*D10|2*D9|2*D8|0] MOVDQU xmm3, xmm4 ; xmm3 = [D15|D14|D13|D12|D11|D10|D9|D8] PSRLDQ xmm3, 4 ; xmm3 = [D13|D12|D11|D10|D9|D8|0|0] PADDW xmm4, xmm2 ; xmm4 = [D15 + 2*D14 | ..| D10 + 2*D9 | D9 + 2*D8 | D8] PSUBW xmm10,xmm4 ; xmm10 = [U15 + 2*U14 - (D15 + 2*D14) | ..| U9 + 2*U8 - (D9 + 2*D8) | D8] PADDW xmm4, xmm3 ; xmm4 = [D15 + 2*D14 + D13 | .. | D10 + 2*D9 + 2*D8| Basura | D8] ; Unimos la parte low completa: PSUBW xmm0,xmm4 ; xmm0 = [U15 + 2*U14 + U13 - (D15 + 2*D14 + D13) | .. | U10 + 2*U9 + 2*U8 - (D10 + 2*D9 + 2*D8)| 0 | 0] ; xmm0 = [GY(M14)|GY(M13)|GY(M12)|GY(M11)|GY(M10)|GY(M9)|Basura|Basura] ;Cálculo de la parte LOW de los registros sometidos al pack. ;Acomodamos los píxeles de arriba (U) MOVDQU xmm2, xmm1 ; xmm2 = [U7|U6|U5|U4|U3|U2|U1|U0] MOVDQU xmm9, xmm2 ; para calcular GY(8) y GY(7) PADDW xmm2,xmm2 ; xmm2 = [2*U7|2*U6|2*U5|2*U4|2*U3|2*U2|2*U1|2*U0] PSRLDQ xmm2, 2 ; xmm2 = [2*U6|2*U5|2*U4|2*U3|2*U2|2*U1|2*U0|0] MOVDQU xmm3, xmm1 ; xmm3 = [U7|U6|U5|U4|U3|U2|U1|U0] PSRLDQ xmm3, 4 ; xmm3 = [U5|U4|U3|U2|U1|U0|0|0] PADDW xmm1, xmm2 ; xmm1 = [Un7+2*U6|..|U2+2*U1|Basura|Basura] PADDW xmm1, xmm3 ; xmm1 = [U7+ 2*U6 + U5|..|U2 + 2*U1 + U0|Basura|Basura] ;Acomodamos los píxeles de abajo (D) MOVDQU xmm2, xmm5 ; xmm2 = [D7|D6|D5|D4|D3|D2|D1|D0] MOVDQU xmm4, xmm2 ; para calcular GY(8) y GY(7) PADDW xmm2,xmm2 ; xmm2 = [2*D7|2*D6|2*D5|2*D4|2*D3|2*D2|2*D1|2*D0] PSRLDQ xmm2, 2 ; xmm2 = [2*D6|2*D5|2*D4|2*D3|2*D2|2*D1|2*D0|0] MOVDQU xmm3, xmm5 ; xmm3 = [D7|D6|D5|D4|D3|D2|D1|D0] PSRLDQ xmm3, 4 ; xmm3 = [D5|D4|D3|D2|D1|D0|Basura|Basura] PADDW xmm5, xmm2 ; xmm5 = [D7 + 2*D6 |..|D2 + 2*D1|Basura|Basura] PADDW xmm5, xmm3 ; xmm5 = [D7 + 2*D6 + D5 |..|D2 + 2*D1 + D0|Basura|Basura] ;Unimos la parte high completa: PSUBW xmm1,xmm5 ; xmm1 = [D7 + 2*D6 + D5 - (U7+ 2*U6 + U5) |..|D2 + 2*D1 + D0 - (U2 + 2*U1 + U0)|Basura|Basura] ; xmm1 = [GY(M6)|GY(M5)|GY(M4)|GY(M3)|GY(M2)|GY(M1)||Basura|Basura] ;---------------------------------------------------------------------------------------------------------------- ;// ;RESUMEN ;// ;xmm0 = [GY(M14)|GY(M13)|GY(M12)|GY(M11)|GY(M10)|GY(M9)|Basura|Basura] ;// ;xmm1 = [GY(M6)|GY(M5)|GY(M4)|GY(M3)|GY(M2)|GY(M1)|Basura|Basura] ;// ; ;// ;xmm4 = [D7|D6|D5|D4|D3|D2|D1|D0] ;// ;xmm6 = [U15|U14|U13|U12|U11|U10|U9|U8] ;// ;xmm7 = [D15|D14|D13|D12|D11|D10|D9|D8] ;// ;xmm9 = [U7|U6|U5|U4|U3|U2|U1|U0] ;// ;xmm10 = [U15 + 2*U14 - (D15 + 2*D14) | ..| U9 + 2*U8 - (D9 + 2*D8) | D8] ;---------------------------------------------------------------------------------------------------------------- ;Faltan obtener GY(8) y GY(7) igual que como pasó en GX(8) Y GX(7) ;GY(8) = U9 + 2*U8 + U7 - (D9 + 2*D8 + D7) ;GY(7) = U8 + 2*U7 + U6 - (D8 + 2*D7 + D6) ;Cálculo para obtener GY(8) PSLLDQ xmm9, 12 ; xmm9 = [0|..|0|U7|U6] PSLLDQ xmm4, 12 ; xmm4 = [0|..|0|D7|D6] PADDW xmm10, xmm9 ; xmm10 = [Basura| ..|U9 + 2*U8 + U7 - (D9 + 2*D8)| D8+D6] PSUBW xmm10, xmm4 ; xmm10 = [Basura| ..|U9 + 2*U8 + U7 - (D9 + 2*D8 + D7)| Basura] ;xmm10 = [Basura|..|GY(8)|Basura] ;Cálculo para obtener GY(8) ;Acomodamos los píxeles de arriba (U) MOVDQU xmm5,xmm9 ; xmm5 = [0|..|0|U7|U6] PADDW xmm9,xmm9 ; xmm9 = [Basura|..|2*U7|2*U6] PSLLDQ xmm9,2 ; xmm9 = [Basura|..|2*U7] PADDW xmm9,xmm5 ; xmm9 = [Basura|..|2*U7 + U6 ] PADDW xmm9,xmm6 ; xmm9 = [Basura|..|2*U7 + U6 + U8] ;Acomodamos los píxeles de abajo (D) MOVDQU xmm5, xmm4 ; xmm5 = [0|..|0|D7|D6] PADDW xmm4,xmm4 ; xmm4 = [Basura|..|2*D7|2*D6] PSLLDQ xmm4,2 ; xmm4 = [Basura|..|2*D7] PADDW xmm4,xmm5 ; xmm4 = [Basura|..|2*D7 + D6 ] PADDW xmm4,xmm7 ; xmm4 = [Basura|..|2*D7 + D6 + D8] PSUBW xmm9,xmm4 ; xmm9 = [Basura|..|2*U7 + U6 + U8 - (2*D7 + D6 + D8)] ;xmm9 = [Basura|..|GY(7)] ;---------------------------------------------------------------------------------------------------------------- ;// ;Resumen: ;// ; xmm0 = [GY(M14)|GY(M13)|GY(M12)|GY(M11)|GY(M10)|GY(M9)|Basura|Basura] ;// ; xmm1 = [GY(M6)|GY(M5)|GY(M4)|GY(M3)|GY(M2)|GY(M1)|Basura|Basura] ;// ; xmm10 = [Basura|..|GY(8)|Basura] ;// ; xmm9 = [Basura|..|GY(7)] ;---------------------------------------------------------------------------------------------------------------- ;Unimos los GY PSRLDQ xmm10, 12 ; xmm10 = [GY(8)|0|..|0|Basura] PSLLDQ xmm10, 14 ; xmm10 = [0|..|0|GY(8)] PSRLDQ xmm10, 2 ; xmm10 = [0|..|0|GY(8)|0] PSRLDQ xmm9, 14 ; xmm9 = [GY(7)|0|..|0] PSLLDQ xmm9, 14 ; xmm9 = [0|...|0|GY(7)] PSLLDQ xmm0, 4 ; xmm0 = [0|0|GY(M14)|GY(M13)|GY(M12)|GY(M11)|GY(M10)|GY(M9)] PSRLDQ xmm0, 4 ; xmm0 = [GY(M14)|GY(M13)|GY(M12)|GY(M11)|GY(M10)|GY(M9)|0|0] PADDW xmm0, xmm10; xmm0 = [GY(M14)|GY(M13)|GY(M12)|GY(M11)|GY(M10)|GY(M9)|GY(8)|Basura] PADDW xmm0, xmm9; xmm0 = [GY(M14)|GY(M13)|GY(M12)|GY(M11)|GY(M10)|GY(M9)|GY(8)|GY(7)] ;************************************************************************************************************************************************************************************************************************ ;************************************************************************************************************************************************************************************************************************* ;******************************************************************************************* Parte Sobel **************************************************************************************************************** ;************************************************************************************************************************************************************************************************************************ ;************************************************************************************************************************************************************************************************************************ ;---------------------------------------------------------------------------------------------------------------- ; Resumen ; xmm0 = [GY(M14)|GY(M13)|GY(M12)|GY(M11)|GY(M10)|GY(M9)|GY(8)|GY(7)] ; xmm1 = [GY(M6)|GY(M5)|GY(M4)|GY(M3)|GY(M2)|GY(M1)|Basura|Basura] ; xmm2 = LIBRE ; xmm3 = LIBRE ; xmm4 = LIBRE ; xmm5 = LIBRE ; xmm6 = LIBRE ; xmm7 = LIBRE ; xmm8 = [GX(M14)|GX(M13)|GX(M12)|GX(M11)|GX(M10)|GX(M9)|GX(M8)|GX(M7)] ; xmm9 = LIBRE ; xmm10 = LIBRE ; xmm11 = [GX(M6)|GX(M5)|GX(M4)|GX(M3)|GX(M2)|GX(M1)|Basura|Basura] ; xmm12 = [22.5|22.5|22.5|22.5] ; xmm13 = LIBRE ; xmm14 = [50|50|50|50] ; xmm15 = [pi/2|pi/2|pi/2|pi/2] ;---------------------------------------------------------------------------------------------------------------- ;Guardamos los valores de gx y gy para utilizarlos en el Cálculo del ángulo MOVDQU xmm13,xmm0; MOVDQU xmm4 , xmm1; MOVDQU xmm6 , xmm8; MOVDQU xmm9 , xmm11; ;Debemos hacer: √(GY(Mi)² + GX(Mi)²), para cada i = 1 .. 14 (14 píxeles centrales) ;Tomamos módulo PABSW xmm1,xmm1 PABSW xmm0,xmm0 PABSW xmm8,xmm8 PABSW xmm11,xmm11 MOVDQU xmm2, xmm0 MOVDQU xmm3,xmm1 MOVDQU xmm7,xmm8 MOVDQU xmm10,xmm11 PXOR xmm5,xmm5 ;Extendemos a double words PUNPCKHWD xmm0, xmm5 ; xmm0 = [GY(M10)|GY(M9)|GY(8)|GY(7)] PUNPCKHWD xmm1, xmm5 ; xmm1 = [GY(M2)|GY(M1)|Basura|Basura] PUNPCKHWD xmm8, xmm5 ; xmm8 = [GX(M10)|GX(M9)|GX(M8)|GX(M7)] PUNPCKHWD xmm11, xmm5 ; xmm11 = [GX(M2)|GX(M1)|Basura|Basura] PUNPCKLWD xmm2, xmm5 ; xmm2 = [GY(M14)|GY(M13)|GY(M12)|GY(M11)] PUNPCKLWD xmm3, xmm5 ; xmm3 = [GY(M6)|GY(M5)|GY(M4)|GY(M3)] PUNPCKLWD xmm7, xmm5 ; xmm7 = [GX(M14)|GX(M13)|GX(M12)|GX(M11)] PUNPCKLWD xmm10, xmm5 ; xmm10 = [GX(M6)|GX(M5)|GX(M4)|GX(M3)] ;Convertimos a punto flotante de precisión simple CVTDQ2PS xmm0,xmm0 ; xmm0 = [GY(M10)|GY(M9)|GY(8)|GY(7)] CVTDQ2PS xmm1,xmm1 ; xmm1 = [GY(M2)|GY(M1)|Basura|Basura] CVTDQ2PS xmm2,xmm2 ; xmm2 = [GY(M14)|GY(M13)|GY(M12)|GY(M11)] CVTDQ2PS xmm3,xmm3 ; xmm3 = [GY(M6)|GY(M5)|GY(M4)|GY(M3)] CVTDQ2PS xmm7,xmm7 ; xmm7 = [GX(M14)|GX(M13)|GX(M12)|GX(M11)] CVTDQ2PS xmm8,xmm8 ; xmm8 = [GX(M10)|GX(M9)|GX(M8)|GX(M7)] CVTDQ2PS xmm10,xmm10 ; xmm10 = [GX(M6)|GX(M5)|GX(M4)|GX(M3)] CVTDQ2PS xmm11,xmm11 ; xmm11 = [GX(M2)|GX(M1)|Basura|Basura] ;Elevamos cada término al cuadrdado (GY(Mi)² / GX(Mi)²) MULPS xmm0,xmm0 ; xmm0 = [GY(M10)²|GY(M9)²|GY(M8)²|GY(M7)²] MULPS xmm1,xmm1 ; xmm1 = [GY(M2)²|GY(M1)²|Basura|Basura] MULPS xmm2,xmm2 ; xmm2 = [GY(M14)²|GY(M13)²|GY(M12)²|GY(M11)²] MULPS xmm3,xmm3 ; xmm3 = [GY(M6)²|GY(M5)²|GY(M4)²|GY(M3)²] MULPS xmm7,xmm7 ; xmm7 = [GX(M14)²|GX(M13)²|GX(M12)²|GX(M11)²] MULPS xmm8,xmm8 ; xmm8 = [GX(M10)²|GX(M9)²|GX(M8)²|GX(M7)²] MULPS xmm10,xmm10 ; xmm10 = [GX(M6)²|GX(M5)²|GX(M4)²|GX(M3)²] MULPS xmm11,xmm11 ; xmm11 = [GX(M2)²|GX(M1)²|Basura|Basura] ;Hacemos la suma de GX + GY con respecto al i (GY(Mi)² + GX(Mi)²) ADDPS xmm2, xmm7 ; xmm2 = [GY(M14)² + GX(M14)²|...|GY(M11)² + GX(M11)²] ADDPS xmm0, xmm8 ; xmm0 = [GY(M10)² + GX(M10)²|...|GY(M7)² + GX(M7)² ] ADDPS xmm3, xmm10 ; xmm3 = [GY(M6)² + GX(M6)²|...|GY(M3)² + GX(M3)²] ADDPS xmm1, xmm11 ; xmm1 = [GY(M2)² + GX(M2)²|GY(M1)² + GX(M1)²|Basura|Basura] ;Aplico Raíz SQRTPS xmm2,xmm2 ; xmm2 = [√(GY(M14)² + GX(M14)²)|...|√(GY(M11)² + GX(M11)²)] SQRTPS xmm0,xmm0 ; xmm0 = [√(GY(M10)² + GX(M10)²)|...|√(GY(M7)² + GX(M7)²) ] SQRTPS xmm3,xmm3 ; xmm3 = [√(GY(M6)² + GX(M6)²)|...|√(GY(M3)² + GX(M3)²)] SQRTPS xmm1,xmm1 ; xmm1 = [√(GY(M2)² + GX(M2)²)|√(GY(M1)² + GX(M1)²)|Basura|Basura] ;Volvemos a enteros (Double words) CVTPS2DQ xmm2,xmm2 ; xmm2 = [√(GY(M14)² + GX(M14)²)|...|√(GY(M11)² + GX(M11)²)] CVTPS2DQ xmm0,xmm0 ; xmm0 = [√(GY(M10)² + GX(M10)²)|...|√(GY(M7)² + GX(M7)²) ] CVTPS2DQ xmm3,xmm3 ; xmm3 = [√(GY(M6)² + GX(M6)²)|...|√(GY(M3)² + GX(M3)²)] CVTPS2DQ xmm1,xmm1 ; xmm1 = [√(GY(M2)² + GX(M2)²)|√(GY(M1)² + GX(M1)²)|Basura|Basura] ;Volvemos a words PACKUSDW xmm2,xmm0 ; xmm2 = [SOBEL(M14)|...|SOBEL(M11)|SOBEL(M10)|...|SOBEL(M7) ] PACKUSDW xmm3, xmm1 ; xmm3 = [SOBEL(M6)|...|SOBEL(M3)|SOBEL(M2)|SOBEL(M1)|Basura|Basura] ;Volvemos a bytes PACKUSWB xmm2,xmm3 ; xmm2 = [SOBEL(M14)| .. |SOBEL(M1)|Basura|Basura] ;Escritura en memoria CMP r12,18 ; Me fijo si es la última escritura de la fila o no. JE ultimaEscrituraGradiente MOVDQU [r15], xmm2 ; Si no es la última escritura, entonces escribo los 16 bytes. JMP angulos ultimaEscrituraGradiente: MOVQ [r15], xmm2 ; Escribe los primeros 8 bytes en memoria. PSRLDQ xmm2, 8 MOVD [r15+8], xmm2 ; Escribe los siguientes 4 bytes en memoria. MOV WORD [r15+12], 0 ; Escribe los siguientes 2 bytes en memoria. MOV BYTE [r15+14], 0 ; Escribe en memoria 0 para completar los 3 bores de ceros. MOV WORD [r15+15], 0 ; Escribe en memoria 0 para completar los 3 bores de ceros. ;************************************************************************************************************************************************************************************************************************ ;************************************************************************************************************************************************************************************************************************ ;************************************************************************************************************************************************************************************************************************ ;************************************************************************************************************************************************************************************************************************ ;************************************************************************************************************************************************************************************************************************ ;************************************************************************************************************************************************************************************************************************* ;******************************************************************************************* Parte Angulos **************************************************************************************************************** ;************************************************************************************************************************************************************************************************************************ ;************************************************************************************************************************************************************************************************************************ ;************************************************************************************************************************************************************************************************************************ ;************************************************************************************************************************************************************************************************************************ ;************************************************************************************************************************************************************************************************************************ ;************************************************************************************************************************************************************************************************************************ ;Recupero el back up realizado. angulos: MOVDQU xmm0, xmm13; MOVDQU xmm1, xmm4; MOVDQU xmm8, xmm6; MOVDQU xmm11, xmm9; ;---------------------------------------------------------------------------------------------------------------- ;// ;Resumen ;// ; xmm0 = [GY(M14)|GY(M13)|GY(M12)|GY(M11)|GY(M10)|GY(M9)|GY(8)|GY(7)] ;// ; xmm1 = [GY(M6)|GY(M5)|GY(M4)|GY(M3)|GY(M2)|GY(M1)|Basura|Basura] ;// ; xmm8 = [GX(M14)|GX(M13)|GX(M12)|GX(M11)|GX(M10)|GX(M9)|GX(M8)|GX(M7)] ;// ; xmm11 = [GX(M6)|GX(M5)|GX(M4)|GX(M3)|GX(M2)|GX(M1)|Basura|Basura] ;---------------------------------------------------------------------------------------------------------------- ; Comenzamos a operar MOVDQU xmm2, xmm0 MOVDQU xmm3,xmm1 MOVDQU xmm7,xmm8 MOVDQU xmm10,xmm11 ;Hacemos un sign extention(Extendemos a double words) PXOR xmm5,xmm5 PCMPGTW xmm5,xmm0; PUNPCKHWD xmm0, xmm5 ; xmm0 = [GY(M10)|GY(M9)|GY(8)|GY(7)] PUNPCKLWD xmm2,xmm5 ; xmm2 = [GY(M14)|GY(M13)|GY(M12)|GY(M11)] PXOR xmm5,xmm5 PCMPGTW xmm5,xmm1; PUNPCKHWD xmm1, xmm5 ; xmm1 = [GY(M10)|GY(M9)|GY(8)|GY(7)] PUNPCKLWD xmm3, xmm5 ; xmm3 = [GY(M6)|GY(M5)|GY(M4)|GY(M3)] PXOR xmm5,xmm5 PCMPGTW xmm5,xmm8; PUNPCKHWD xmm8, xmm5 ; xmm8 = [GX(M10)|GX(M9)|GX(M8)|GX(M7)] PUNPCKLWD xmm7, xmm5 ; xmm7 = [GX(M14)|GX(M13)|GX(M12)|GX(M11)] PXOR xmm5,xmm5 PCMPGTW xmm5,xmm11; PUNPCKHWD xmm11, xmm5 ; xmm11 = [GY(M2)|GY(M1)|Basura|Basura] PUNPCKLWD xmm10, xmm5 ; xmm10 = [GX(M6)|GX(M5)|GX(M4)|GX(M3)] ;Convertimos a punto flotante de precisión simple CVTDQ2PS xmm0,xmm0 ; xmm0 = [GY(M10)|GY(M9)|GY(8)|GY(7)] CVTDQ2PS xmm1,xmm1 ; xmm1 = [GY(M2)|GY(M1)|Basura|Basura] CVTDQ2PS xmm2,xmm2 ; xmm2 = [GY(M14)|GY(M13)|GY(M12)|GY(M11)] CVTDQ2PS xmm3,xmm3 ; xmm3 = [GY(M6)|GY(M5)|GY(M4)|GY(M3)] CVTDQ2PS xmm7,xmm7 ; xmm7 = [GX(M14)|GX(M13)|GX(M12)|GX(M11)] CVTDQ2PS xmm8,xmm8 ; xmm8 = [GX(M10)|GX(M9)|GX(M8)|GX(M7)] CVTDQ2PS xmm10,xmm10 ; xmm10 = [GX(M6)|GX(M5)|GX(M4)|GX(M3)] CVTDQ2PS xmm11,xmm11 ; xmm11 = [GX(M2)|GX(M1)|Basura|Basura] ;************************************************************************************************************************************************************************************************************************ ;************************************************************************************************************************************************************************************************************************ ;******************************************************************************************* Cálculo Ángulos **************************************************************************************************************** ;************************************************************************************************************************************************************************************************************************ ;************************************************************************************************************************************************************************************************************************ ;---------------------------------------------------------------------------------------------------------------- ; Resumen ; xmm0 = [GY(M10)|GY(M9)|GY(8)|GY(7)] ; xmm1 = [GY(M2)|GY(M1)|Basura|Basura] ; xmm2 = [GY(M14)|GY(M13)|GY(M12)|GY(M11)] ; xmm3 = [GY(M6)|GY(M5)|GY(M4)|GY(M3)] ; xmm4 = LIBRE ; xmm5 = LIBRE ; xmm6 = LIBRE ; xmm7 = [GX(M14)|GX(M13)|GX(M12)|GX(M11)] ; xmm8 = [GX(M10)|GX(M9)|GX(M8)|GX(M7)] ; xmm9 = LIBRE ; xmm10 = [GX(M6)|GX(M5)|GX(M4)|GX(M3)] ; xmm11 = [GX(M2)|GX(M1)|Basura|Basura] ; xmm12 = [22.5|22.5|22.5|22.5] ; xmm13 = LIBRE ; xmm14 = [50|50|50|50] ; xmm15 = [pi/2|pi/2|pi/2|pi/2] ; ;---------------------------------------------------------------------------------------------------------------- ; ---------------------------------------- Pìxeles 14-11 ---------------------------------------- angsPixel14a11: MOVDQU xmm5, xmm7; xmm5 = [GX(M4)|GX(M13)|GX(M12)|GX(M11)] MOVDQU xmm4, xmm2; xmm4 = [GY(M14)|GY(M13)|GY(M12)|GY(M11)] angPixel14: PSRLDQ xmm4, 12; xmm4 = [0|0|0|GY(M14)] PSRLDQ xmm5, 12; xmm5 = [0|0|0|GX(M14)] MOVD r11d,xmm4 ; r11d = GY(M14) MOVD ebx,xmm5 ; ebx = GX(M14) CMP ebx, 0 ; Comparo contra 0 (GX == 0) JE gx14Es0 JMP gx14arctg gx14Es0: CMP r11d,0 ;(GY == 0) JE angulo14Es0 MOVDQU xmm13,xmm15 ; xmm13 = [pi/2|pi/2|pi/2|pi/2] = 90 en radianes JMP angPixel13 angulo14Es0: MOV ebx,0 ; ANGULO = 0 MOVD xmm13,ebx JMP angPixel13 gx14arctg: MOVD [rbp + off_primero] ,xmm4 ; GY(M14) MOVD [rbp + off_segundo], xmm5 ; GX(M14) FINIT FLD dword [rbp + off_primero] ; Pusheo --> ST[1] --> GY(M14) FLD dword [rbp + off_segundo] ; Pusheo --> ST[0] --> GX(M14) FPATAN ; Cálculo de arctng(ST[1] / ST[0]) FST dword [rbp + off_primero] ; Popeo ---> [rbp + off_primero] = ST[0] = arctang(gy/gx) MOVD xmm13, [rbp + off_primero] ; xmm13 = [Basura|Basura|Basura|ang(M14)] angPixel13: ;-------------ACOMODAMOSS ------------- ; xmm13 = [Basura|Basura|Basura|ang(M14)] PSLLDQ xmm13, 12; PSRLDQ xmm13, 12; ; xmm13 = [0|0|0|ang(M14)] MOVDQU xmm9, xmm13 ; xmm9 = [Basura|Basura|Basura|ang(M14)] PSLLDQ xmm9, 4 ; xmm9 = [Basura|Basura|ang(M14)|0] ;-------------ACOMODAMOSS ------------- MOVDQU xmm5, xmm7 ; xmm5 = [GX(M14)|GX(M13)|GX(M12)|GX(M11)] MOVDQU xmm4, xmm2 ; xmm4 = [GY(M14)|GY(M13)|GY(M12)|GY(M11)] PSRLDQ xmm4, 8 ; xmm4 = [0|0|GY(M14)|GY(M13)] PSRLDQ xmm5, 8 ; xmm5 =[0|0|GX(M14)|GX(M13)] MOVD r11d,xmm4 ; r11d = GY(M13) MOVD ebx,xmm5 ; ebx = GX(M13) CMP ebx, 0 ; COmparo contra 0 (gx == 0) JE gx13Es0 JMP gx13arctg gx13Es0: CMP r11d,0 JE angulo13Es0 MOVDQU xmm13,xmm15 ; xmm13 = [pi/2|pi/2|pi/2|pi/2] = 90 en radianes JMP angPixel12 angulo13Es0: MOV ebx,0 ; ANGULO = 0 MOVD xmm13,ebx JMP angPixel12 gx13arctg: MOVD [rbp + off_primero] ,xmm4 ; GY(M13) MOVD [rbp + off_segundo], xmm5 ; GX(M13) FINIT FLD dword [rbp + off_primero] ; Pusheo --> ST[1] --> GY(M13) FLD dword [rbp + off_segundo] ; Pusheo --> ST[0] --> GX(M13) FPATAN ; Cálculo de arctng(ST[1] / ST[0]) FST dword [rbp + off_primero] ; Popeo ---> [rbp + off_primero] = ST[0] = arctang(gy/gx) MOVD xmm13, [rbp + off_primero] ; xmm13 = [Basura|Basura|Basura|ang(M13)] angPixel12: ;-------------ACOMODAMOSS ------------- ; xmm13 = [Basura|Basura|Basura|ang(M13)] PSLLDQ xmm13, 12; PSRLDQ xmm13, 12; ; xmm13 = [0|0|0|ang(M13) ; xmm9 = [Basura|Basura|ang(M14)|0] ADDPS xmm9,xmm13 ; ; xmm9 = [Basura|Basura|ang(M14)|ang(M13)] PSLLDQ xmm9, 4 ; xmm9 = [Basura|ang(M14)|ang(M13)|0] ;-------------ACOMODAMOSS ------------- MOVDQU xmm5, xmm7 ; xmm5 = [GX(M14)|GX(M13)|GX(M12)|GX(M11)] MOVDQU xmm4, xmm2 ; xmm4 = [GY(M14)|GY(M13)|GY(M12)|GY(M11)] PSRLDQ xmm4, 4 ; xmm4 = [0|GY(M14)|GY(M13)|GY(M12)] PSRLDQ xmm5, 4 ; xmm5 =[0|GX(M14)|GX(M13)|GX(M12)] MOVD r11d,xmm4 ; r11d = GY(M12) MOVD ebx,xmm5 ; ebx = GX(M12) CMP ebx, 0 ; COmparo contra 0 (gx == 0) JE gx12Es0 JMP gx12arctg gx12Es0: CMP r11d,0 JE angulo12Es0 MOVDQU xmm13,xmm15 ; xmm13 = [pi/2|pi/2|pi/2|pi/2] = 90 en radianes JMP angPixel11 angulo12Es0: MOV ebx,0 ; ANGULO = 0 MOVD xmm13,ebx JMP angPixel11 gx12arctg: MOVD [rbp + off_primero] ,xmm4 ; GY(M12) MOVD [rbp + off_segundo], xmm5 ; GX(M12) FINIT FLD dword [rbp + off_primero] ; Pusheo --> ST[1] --> GY(M12) FLD dword [rbp + off_segundo] ; Pusheo --> ST[0] --> GX(M12) FPATAN ; Cálculo de arctng(ST[1] / ST[0]) FST dword [rbp + off_primero] ; Popeo ---> [rbp + off_primero] = ST[0] = arctang(gy/gx) MOVD xmm13, [rbp + off_primero] ; xmm13 = [Basura|Basura|Basura|ang(M12)] angPixel11: ;-------------ACOMODAMOSS ------------- ; xmm13 = [Basura|Basura|Basura|ang(M12)] PSLLDQ xmm13, 12; PSRLDQ xmm13, 12; ; xmm13 = [0|0|0|ang(M12) ; xmm9 = [Basura|ang(M14)|ang(M13)|0] ADDPS xmm9,xmm13 ; xmm9 = [Basura|ang(M14)|ang(M13)|ang(M12)] PSLLDQ xmm9, 4 ; xmm9 = [ang(M14)|ang(M13)|ang(M12)|0] ;-------------ACOMODAMOSS ------------- MOVDQU xmm5, xmm7 ; xmm5 = [GX(M14)|GX(M13)|GX(M12)|GX(M11)] MOVDQU xmm4, xmm2 ; xmm4 = [GY(M14)|GY(M13)|GY(M12)|GY(M11)] MOVD r11d,xmm4 ; r11d = GY(M11) MOVD ebx,xmm5 ; ebx = GX(M11) CMP ebx, 0 ; COmparo contra 0 (gx == 0) JE gx11Es0 JMP gx11arctg gx11Es0: CMP r11d,0 JE angulo11Es0 MOVDQU xmm13,xmm15 ; xmm13 = [pi/2|pi/2|pi/2|pi/2] = 90 en radianes JMP angs10a7 angulo11Es0: MOV ebx,0 ; ANGULO = 0 MOVD xmm13,ebx JMP angs10a7 gx11arctg: MOVD [rbp + off_primero] ,xmm4 ; GY(M11) MOVD [rbp + off_segundo], xmm5 ; GX(M11) FINIT FLD dword [rbp + off_primero] ; Pusheo --> ST[1] --> GY(M11) FLD dword [rbp + off_segundo] ; Pusheo --> ST[0] --> GX(M11) FPATAN ; Cálculo de arctng(ST[1] / ST[0]) FST dword [rbp + off_primero] ; Popeo ---> [rbp + off_primero] = ST[0] = arctang(gy/gx) MOVD xmm13, [rbp + off_primero] ; xmm13 = [Basura|Basura|Basura|ang(M11)] angs10a7: ;-------------ACOMODAMOSS ------------- ; xmm13 = [Basura|Basura|Basura|ang(M11)] PSLLDQ xmm13, 12; PSRLDQ xmm13, 12; ; xmm13 = [0|0|0|ang(M11) ; xmm9 = [ang(M14)|ang(M13)|ang(M12)|0] ADDPS xmm9,xmm13 ; xmm9 = [ang(M14)|ang(M13)|ang(M12)|ang(M11)] MOVDQU xmm2,xmm9 ; Guardo los resultados obtenidos ;-------------ACOMODAMOSS ------------- angPixel10: MOVDQU xmm5, xmm8; xmm5 = [GX(M10)|GX(M9)|GX(M8)|GX(M7)] MOVDQU xmm4, xmm0; xmm4 = [GY(M10)|GY(M9)|GY(M8)|GY(M7)] PSRLDQ xmm4, 12; xmm4 = [0|0|0|GY(M10)] PSRLDQ xmm5, 12; xmm5 = [0|0|0|GX(M10)] MOVD r11d,xmm4 ; r11d = GY(M10) MOVD ebx,xmm5 ; ebx = GX(M10) CMP ebx, 0 ; COmparo contra 0 (gx == 0) JE gx10Es0 JMP gx10arctg gx10Es0: CMP r11d,0 JE angulo10Es0 MOVDQU xmm13,xmm15 ; xmm13 = [pi/2|pi/2|pi/2|pi/2] = 90 en radianes JMP angPixel9 angulo10Es0: MOV ebx,0 ; ANGULO = 0 MOVD xmm13,ebx JMP angPixel9 gx10arctg: MOVD [rbp + off_primero] ,xmm4 ; GY(M10) MOVD [rbp + off_segundo], xmm5 ; GX(M10) FINIT FLD dword [rbp + off_primero] ; Pusheo --> ST[1] --> GY(M10) FLD dword [rbp + off_segundo] ; Pusheo --> ST[0] --> GX(M10) FPATAN ; Cálculo de arctng(ST[1] / ST[0]) FST dword [rbp + off_primero] ; Popeo ---> [rbp + off_primero] = ST[0] = arctang(gy/gx) MOVD xmm13, [rbp + off_primero] ; xmm13 = [Basura|Basura|Basura|ang(M10)] angPixel9: ;-------------ACOMODAMOSS ------------- ; xmm13 = [Basura|Basura|Basura|arct(M10)] PSLLDQ xmm13, 12; PSRLDQ xmm13, 12; ; xmm13 = [0|0|0|arct(M10) MOVDQU xmm9, xmm13 ; xmm9 = [Basura|Basura|Basura|arct(M10)] PSLLDQ xmm9, 4 ; xmm9 = [Basura|Basura|arct(M10)|0] ;-------------ACOMODAMOSS ------------- MOVDQU xmm5, xmm8 ; xmm5 = [GX(M10)|GX(M9)|GX(M8)|GX(M7)] MOVDQU xmm4, xmm0 ; xmm4 = [GY(M10)|GY(M9)|GY(M8)|GY(M7)] PSRLDQ xmm4, 8 ; xmm4 = [0|0|GY(M10)|GY(M9)] PSRLDQ xmm5, 8 ; xmm5 =[0|0|GX(M10)|GX(M9)] MOVD r11d,xmm4 ; r11d = GY(M9) MOVD ebx,xmm5 ; ebx = GX(M9) CMP ebx, 0 ; COmparo contra 0 (gx == 0) JE gx9Es0 JMP gx9arctg gx9Es0: CMP r11d,0 JE angulo9Es0 MOVDQU xmm13,xmm15 ; xmm13 = [pi/2|pi/2|pi/2|pi/2] = 90 en radianes JMP angPixel8 angulo9Es0: MOV ebx,0 ; ANGULO = 0 MOVD xmm13,ebx JMP angPixel8 gx9arctg: MOVD [rbp + off_primero] ,xmm4 ; GY(M9) MOVD [rbp + off_segundo], xmm5 ; GX(M9) FINIT FLD dword [rbp + off_primero] ; Pusheo --> ST[1] --> GY(M9) FLD dword [rbp + off_segundo] ; Pusheo --> ST[0] --> GX(M9) FPATAN ; Cálculo de arctng(ST[1] / ST[0]) FST dword [rbp + off_primero] ; Popeo ---> [rbp + off_primero] = ST[0] = arctang(gy/gx) MOVD xmm13, [rbp + off_primero] ; xmm13 = [Basura|Basura|Basura|ang(M9)] angPixel8: ;-------------ACOMODAMOSS ------------- ; xmm13 = [Basura|Basura|Basura|arct(M9)] PSLLDQ xmm13, 12; PSRLDQ xmm13, 12; ; xmm13 = [0|0|0|arct(M19) ; xmm9 = [Basura|Basura|arct(M10)|0] ADDPS xmm9,xmm13 ; ; xmm9 = [Basura|Basura|arct(M10)|arct(M9)] PSLLDQ xmm9, 4 ; xmm9 = [Basura|arct(M10)|arct(M9)|0] ;-------------ACOMODAMOSS ------------- MOVDQU xmm5, xmm8 ; xmm5 = [GX(M10)|GX(M9)|GX(M8)|GX(M7)] MOVDQU xmm4, xmm0 ; xmm4 = [GY(M10)|GY(M9)|GY(M8)|GY(M7)] PSRLDQ xmm4, 4 ; xmm4 = [0|GY(M10)|GY(M9)|GY(M8)] PSRLDQ xmm5, 4 ; xmm5 =[0|GX(M10)|GX(M9)|GX(M8)] MOVD r11d,xmm4 ; r11d = GY(M8) MOVD ebx,xmm5 ; ebx = GX(M8) CMP ebx, 0 ; COmparo contra 0 (gx == 0) JE gx8Es0 JMP gx8arctg gx8Es0: CMP r11d,0 JE angulo8Es0 MOVDQU xmm13,xmm15 ; xmm13 = [pi/2|pi/2|pi/2|pi/2] = 90 en radianes JMP angPixel7 angulo8Es0: MOV ebx,0 ; ANGULO = 0 MOVD xmm13,ebx JMP angPixel7 gx8arctg: MOVD [rbp + off_primero] ,xmm4 ; GY(M8) MOVD [rbp + off_segundo], xmm5 ; GX(M8) FINIT FLD dword [rbp + off_primero] ; Pusheo --> ST[1] --> GY(M8) FLD dword [rbp + off_segundo] ; Pusheo --> ST[0] --> GX(M8) FPATAN ; Cálculo de arctng(ST[1] / ST[0]) FST dword [rbp + off_primero] ; Popeo ---> [rbp + off_primero] = ST[0] = arctang(gy/gx) MOVD xmm13, [rbp + off_primero] ; xmm13 = [Basura|Basura|Basura|ang(M8)] angPixel7: ;-------------ACOMODAMOSS ------------- ; xmm13 = [Basura|Basura|Basura|arct(M8)] PSLLDQ xmm13, 12; PSRLDQ xmm13, 12; ; xmm13 = [0|0|0|arct(M8) ; xmm9 = [Basura|arct(M10)|arct(M9)|0] ADDPS xmm9,xmm13 ; xmm9 = [Basura|arct(M10)|arct(M9)|arct(M8)] PSLLDQ xmm9, 4 ; xmm9 = [arct(M10)|arct(M9)|arct(M8)|0] ;-------------ACOMODAMOSS ------------- MOVDQU xmm5, xmm8 ; xmm5 = [GX(M10)|GX(M9)|GX(M8)|GX(M7)] MOVDQU xmm4, xmm0 ; xmm4 = [GY(M10)|GY(M9)|GY(M8)|GY(M7)] MOVD r11d,xmm4 ; r11d = GY(M7) MOVD ebx,xmm5 ; ebx = GX(M7) CMP ebx, 0 ; COmparo contra 0 (gx == 0) JE gx7Es0 JMP gx7arctg gx7Es0: CMP r11d,0 JE angulo7Es0 MOVDQU xmm13,xmm15 ; xmm13 = [pi/2|pi/2|pi/2|pi/2] = 90 en radianes JMP angsPixeles6a3 angulo7Es0: MOV ebx,0 ; ANGULO = 0 MOVD xmm13,ebx JMP angsPixeles6a3 gx7arctg: MOVD [rbp + off_primero] ,xmm4 ; GY(M7) MOVD [rbp + off_segundo], xmm5 ; GX(M7) FINIT FLD dword [rbp + off_primero] ; Pusheo --> ST[1] --> GY(M7) FLD dword [rbp + off_segundo] ; Pusheo --> ST[0] --> GX(M7) FPATAN ; Cálculo de arctng(ST[1] / ST[0]) FST dword [rbp + off_primero] ; Popeo ---> [rbp + off_primero] = ST[0] = arctang(gy/gx) MOVD xmm13, [rbp + off_primero] ; xmm13 = [Basura|Basura|Basura|ang(M7)] angsPixeles6a3: ;-------------ACOMODAMOSS ------------- ; xmm13 = [Basura|Basura|Basura|arct(M7)] PSLLDQ xmm13, 12; PSRLDQ xmm13, 12; ; xmm13 = [0|0|0|arct(M7) ; xmm9 = [arct(M10)|arct(M9)|arct(M8)|0] ADDPS xmm9,xmm13 ; xmm9 = [arct(M10)|arct(M9)|arct(M8)|arct(M7)] MOVDQU xmm0,xmm9 ; Guardo los resultados obtenidos ;-------------ACOMODAMOSS ------------- angPixel6: MOVDQU xmm5, xmm10; xmm5 = [GX(M6)|GX(M5)|GX(M4)|GX(M3)] MOVDQU xmm4, xmm3; xmm4 = [GY(M6)|GY(M5)|GY(M4)|GY(M3)] PSRLDQ xmm4, 12; xmm4 = [0|0|0|GY(M6)] PSRLDQ xmm5, 12; xmm5 = [0|0|0|GX(M6)] MOVD r11d,xmm4 ; r11d = GY(M6) MOVD ebx,xmm5 ; ebx = GX(M6) CMP ebx, 0 ; COmparo contra 0 (gx == 0) JE gx6Es0 JMP gx6arctg gx6Es0: CMP r11d,0 JE angulo6Es0 MOVDQU xmm13,xmm15 ; xmm13 = [pi/2|pi/2|pi/2|pi/2] = 90 en radianes JMP angPixel5 angulo6Es0: MOV ebx,0 ; ANGULO = 0 MOVD xmm13,ebx JMP angPixel5 gx6arctg: MOVD [rbp + off_primero] ,xmm4 ; GY(M6) MOVD [rbp + off_segundo], xmm5 ; GX(M6) FINIT FLD dword [rbp + off_primero] ; Pusheo --> ST[1] --> GY(M6) FLD dword [rbp + off_segundo] ; Pusheo --> ST[0] --> GX(M6) FPATAN ; Cálculo de arctng(ST[1] / ST[0]) FST dword [rbp + off_primero] ; Popeo ---> [rbp + off_primero] = ST[0] = arctang(gy/gx) MOVD xmm13, [rbp + off_primero] ; xmm13 = [Basura|Basura|Basura|ang(M6)] angPixel5: ;-------------ACOMODAMOSS ------------- ; xmm13 = [Basura|Basura|Basura|arct(M6)] PSLLDQ xmm13, 12; PSRLDQ xmm13, 12; ; xmm13 = [0|0|0|arct(M6) MOVDQU xmm9, xmm13 ; xmm9 = [Basura|Basura|Basura|arct(M6)] PSLLDQ xmm9, 4 ; xmm9 = [Basura|Basura|arct(M6)|0] ;-------------ACOMODAMOSS ------------- MOVDQU xmm5, xmm10 ; xmm5 = [GX(M6)|GX(M5)|GX(M4)|GX(M3)] MOVDQU xmm4, xmm3 ; xmm4 = [GY(M6)|GY(M5)|GY(M4)|GY(M3)] PSRLDQ xmm4, 8 ; xmm4 = [0|0|GY(M6)|GY(M5)] PSRLDQ xmm5, 8 ; xmm5 =[0|0|GX(M6)|GX(M5)] MOVD r11d,xmm4 ; r11d = GY(M5) MOVD ebx,xmm5 ; ebx = GX(M5) CMP ebx, 0 ; COmparo contra 0 (gx == 0) JE gx5Es0 JMP gx5arctg gx5Es0: CMP r11d,0 JE angulo5Es0 MOVDQU xmm13,xmm15 ; xmm13 = [pi/2|pi/2|pi/2|pi/2] = 90 en radianes JMP angPixel4 angulo5Es0: MOV ebx,0 ; ANGULO = 0 MOVD xmm13,ebx JMP angPixel4 gx5arctg: MOVD [rbp + off_primero] ,xmm4 ; GY(M5) MOVD [rbp + off_segundo], xmm5 ; GX(M5) FINIT FLD dword [rbp + off_primero] ; Pusheo --> ST[1] --> GY(M5) FLD dword [rbp + off_segundo] ; Pusheo --> ST[0] --> GX(M5) FPATAN ; Cálculo de arctng(ST[1] / ST[0]) FST dword [rbp + off_primero] ; Popeo ---> [rbp + off_primero] = ST[0] = arctang(gy/gx) MOVD xmm13, [rbp + off_primero] ; xmm13 = [Basura|Basura|Basura|ang(M5)] angPixel4: ;-------------ACOMODAMOSS ------------- ; xmm13 = [Basura|Basura|Basura|arct(M5)] PSLLDQ xmm13, 12; PSRLDQ xmm13, 12; ; xmm13 = [0|0|0|arct(M5) ; xmm9 = [Basura|Basura|arct(M6)|0] ADDPS xmm9,xmm13 ; ; xmm9 = [Basura|Basura|arct(M6)|arct(M5)] PSLLDQ xmm9, 4 ; xmm9 = [Basura|arct(M6)|arct(M5)|0] ;-------------ACOMODAMOSS ------------- MOVDQU xmm5, xmm10 ; xmm5 = [GX(M6)|GX(M5)|GX(M4)|GX(M3)] MOVDQU xmm4, xmm3 ; xmm4 = [GY(M6)|GY(M5)|GY(M4)|GY(M3)] PSRLDQ xmm4, 4 ; xmm4 = [0|GY(M6)|GY(M5)|GY(M4)] PSRLDQ xmm5, 4 ; xmm5 =[0|GX(M6)|GX(M5)|GX(M4)] MOVD r11d,xmm4 ; r11d = GY(M4) MOVD ebx,xmm5 ; ebx = GX(M4) CMP ebx, 0 ; COmparo contra 0 (gx == 0) JE gx4Es0 JMP gx4arctg gx4Es0: CMP r11d,0 JE angulo4Es0 MOVDQU xmm13,xmm15 ; xmm13 = [pi/2|pi/2|pi/2|pi/2] = 90 en radianes JMP angPixel3 angulo4Es0: MOV ebx,0 ; ANGULO = 0 MOVD xmm13,ebx JMP angPixel3 gx4arctg: MOVD [rbp + off_primero] ,xmm4 ; GY(M4) MOVD [rbp + off_segundo], xmm5 ; GX(M4) FINIT FLD dword [rbp + off_primero] ; Pusheo --> ST[1] --> GY(M4) FLD dword [rbp + off_segundo] ; Pusheo --> ST[0] --> GX(M4) FPATAN ; Cálculo de arctng(ST[1] / ST[0]) FST dword [rbp + off_primero] ; Popeo ---> [rbp + off_primero] = ST[0] = arctang(gy/gx) MOVD xmm13, [rbp + off_primero] ; xmm13 = [Basura|Basura|Basura|ang(M4)] angPixel3: ;-------------ACOMODAMOSS ------------- ; xmm13 = [Basura|Basura|Basura|arct(M4)] PSLLDQ xmm13, 12; PSRLDQ xmm13, 12; ; xmm13 = [0|0|0|arct(M4)] ; xmm9 = [Basura|arct(M6)|arct(M5)|0] ADDPS xmm9,xmm13 ; xmm9 = [Basura|arct(M6)|arct(M5)|arct(M4)] PSLLDQ xmm9, 4 ; xmm9 = [arct(M6)|arct(M5)|arct(M4)|0] ;-------------ACOMODAMOSS ------------- MOVDQU xmm5, xmm10 ; xmm5 = [GX(M6)|GX(M5)|GX(M4)|GX(M3)] MOVDQU xmm4, xmm3 ; xmm4 = [GY(M6)|GY(M5)|GY(M4)|GY(M3)] MOVD r11d,xmm4 ; r11d = GY(M3) MOVD ebx,xmm5 ; ebx = GX(M3) CMP ebx, 0 ; COmparo contra 0 (gx == 0) JE gx3Es0 JMP gx3arctg gx3Es0: CMP r11d,0 JE angulo3Es0 MOVDQU xmm13,xmm15 ; xmm13 = [pi/2|pi/2|pi/2|pi/2] = 90 en radianes JMP angsPixeles2y1 angulo3Es0: MOV ebx,0 ; ANGULO = 0 MOVD xmm13,ebx JMP angsPixeles2y1 gx3arctg: MOVD [rbp + off_primero] ,xmm4 ; GY(M3) MOVD [rbp + off_segundo], xmm5 ; GX(M3) FINIT FLD dword [rbp + off_primero] ; Pusheo --> ST[1] --> GY(M3) FLD dword [rbp + off_segundo] ; Pusheo --> ST[0] --> GX(M3) FPATAN ; Cálculo de arctng(ST[1] / ST[0]) FST dword [rbp + off_primero] ; Popeo ---> [rbp + off_primero] = ST[0] = arctang(gy/gx) MOVD xmm13, [rbp + off_primero] ; xmm13 = [Basura|Basura|Basura|ang(M3)] angsPixeles2y1: ;-------------ACOMODAMOSS ------------- ; xmm13 = [Basura|Basura|Basura|arct(M3] PSLLDQ xmm13, 12; PSRLDQ xmm13, 12; ; xmm13 = [0|0|0|arct(M2)] ; xmm9 = [arct(M6)|arct(M5)|arct(M4)|0] ADDPS xmm9,xmm13 ; xmm9 = [arct(M6)|arct(M5)|arct(M4)|arct(M3)] MOVDQU xmm3,xmm9 ; Guardo los resultados obtenidos ;-------------ACOMODAMOSS ------------- angPixel2: MOVDQU xmm5, xmm11; xmm5 = [GX(M2)|GX(M1)|Basura|Basura] MOVDQU xmm4, xmm1; xmm4 = [GY(M2)|GY(M1)|Basura|Basura] PSRLDQ xmm4, 4; xmm4 = [0|0|0|GY(M2)] PSRLDQ xmm5, 4; xmm5 = [0|0|0|GX(M2)] MOVD r11d,xmm4 ; r11d = GY(M2) MOVD ebx,xmm5 ; ebx = GX(M2) CMP ebx, 0 ; COmparo contra 0 (gx == 0) JE gx2Es0 JMP gx2arctg gx2Es0: CMP r11d,0 JE angulo2Es0 MOVDQU xmm13,xmm15 ; xmm13 = [pi/2|pi/2|pi/2|pi/2] = 90 en radianes JMP angPixel1 angulo2Es0: MOV ebx,0 ; ANGULO = 0 MOVD xmm13,ebx JMP angPixel1 gx2arctg: MOVD [rbp + off_primero] ,xmm4 ; GY(M2) MOVD [rbp + off_segundo], xmm5 ; GX(M2) FINIT FLD dword [rbp + off_primero] ; Pusheo --> ST[1] --> GY(M2) FLD dword [rbp + off_segundo] ; Pusheo --> ST[0] --> GX(M2) FPATAN ; Cálculo de arctng(ST[1] / ST[0]) FST dword [rbp + off_primero] ; Popeo ---> [rbp + off_primero] = ST[0] = arctang(gy/gx) MOVD xmm13, [rbp + off_primero] ; xmm13 = [Basura|Basura|Basura|ang(M2)] angPixel1: ;-------------ACOMODAMOSS ------------- ; xmm13 = [Basura|Basura|Basura|arct(M2)] PSLLDQ xmm13, 12; PSRLDQ xmm13, 12; ; xmm13 = [0|0|0|arct(M2)] MOVDQU xmm9, xmm13 ; xmm9 = [0|0|0|arct(M2)] PSLLDQ xmm9, 4 ; xmm9 = [0|0|arct(M2)|0] ;-------------ACOMODAMOSS ------------- MOVDQU xmm5, xmm11 ; xmm5 = [GX(M2)|GX(M1)|Basura|Basura] MOVDQU xmm4, xmm1 ; xmm4 = [GY(M2)|GY(M1)|Basura|Basura] MOVD r11d,xmm4 ; r11d = GY(M1) MOVD ebx,xmm5 ; ebx = GX(M1) CMP ebx, 0 ; COmparo contra 0 (gx == 0) JE gx1Es0 JMP gx1arctg gx1Es0: CMP r11d,0 JE angulo1Es0 MOVDQU xmm13,xmm15 ; xmm13 = [pi/2|pi/2|pi/2|pi/2] = 90 en radianes JMP seguirConValores angulo1Es0: MOV ebx,0 ; ANGULO = 0 MOVD xmm13,ebx JMP seguirConValores gx1arctg: MOVD [rbp + off_primero] ,xmm4 ; GY(M1) MOVD [rbp + off_segundo], xmm5 ; GX(M1) FINIT FLD dword [rbp + off_primero] ; Pusheo --> ST[1] --> GY(M1) FLD dword [rbp + off_segundo] ; Pusheo --> ST[0] --> GX(M1) FPATAN ; Cálculo de arctng(ST[1] / ST[0]) FST dword [rbp + off_primero] ; Popeo ---> [rbp + off_primero] = ST[0] = arctang(gy/gx) MOVD xmm13, [rbp + off_primero] ; xmm13 = [Basura|Basura|Basura|ang(M1)] seguirConValores: ;-------------ACOMODAMOSS ------------- ; xmm13 = [Basura|Basura|Basura|arct(M1)] ; xmm9 = [Basura|Basura|arct(M2)|0] PSLLDQ xmm13, 12; PSRLDQ xmm13, 12; ;xmm13 = [0|0|0|arct(M1)] ADDPS xmm9,xmm13 ; xmm9 = [Basura|Basura|arct(M2)|arct(M1)] MOVDQU xmm1,xmm9 ; Guardo los resultados obtenidos ;-------------ACOMODAMOSS ------------- ;---------------------------------------------------------------------------------------------------------------- ; Resumen ; xmm0 = [arct(M10)|arct(M9)|arct(M8)|arct(M7)] ; xmm1 = [Basura|Basura|arct(M2)|arct(M1)] ; xmm2 = [ang(M14)|ang(M13)|ang(M12)|ang(M11)] ; xmm3 = [arct(M6)|arct(M5)|arct(M4)|arct(M3)] ; xmm4 = LIBRE ; xmm5 = LIBRE ; xmm6 = LIBRE ; xmm7 = LIBRE ; xmm8 = LIBRE ; xmm9 = LIBRE ; xmm10 = LIBRE ; xmm11 = LIBRE ; xmm12 = [22.5|22.5|22.5|22.5] ; xmm13 = LIBRE ; xmm14 = [50|50|50|50] ; xmm15 = [pi/2|pi/2|pi/2|pi/2] ; ;---------------------------------------------------------------------------------------------------------------- ;Pasamos los valores de radianes a grados MOVDQU xmm4,xmm12 ; xmm4 = [22.5|22.5|22.5|22.5] ADDPS xmm4,xmm4 ; xmm4 = [45|45|45|45] ADDPS xmm4,xmm4 ; xmm4 = [90|90|90|90] ADDPS xmm4,xmm4 ; xmm4 = [180|180|180|180] ;Multiplicamos por 180 MULPS xmm0,xmm4 ; xmm0 = [arctg(M10)*180|...|arctg(M7) *180] --> En radianes MULPS xmm1,xmm4 ; xmm1 = [arctg(M2)*180|arctg(M1) *180|0|0] --> En radianes MULPS xmm2,xmm4 ; xmm2 = [arctg(M14)*180|...|arctg(M11) *180] --> En radianes MULPS xmm3,xmm4 ; xmm3 = [arctg(M6)*180|...|arctg(M3) *180] --> En radianes ;Dividimos por Pi MOVDQU xmm5, xmm15 ; xmm5 = [pi/2|pi/2|pi/2|pi/2] ADDPS xmm5,xmm5 ; xmm5 = [pi|pi|pi|pi] DIVPS xmm0,xmm5 ; xmm0 = [arctg(M10)|...|arctg(M7)] --> En grados DIVPS xmm1,xmm5 ; xmm1 = [arctg(M2)|arctg(M1)|0|0] --> En grados DIVPS xmm2,xmm5 ; xmm2 = [arctg(M14)|...|arctg(M11)] --> En grados DIVPS xmm3,xmm5 ; xmm3 = [arctg(M6)|...|arctg(M3)] --> En grados ;Pasamos los negativos a positivos ;xmm4 = [180|180|180|180] ADDPS xmm4,xmm4 ; xmm4 = [360|360|360|360] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] ; ------Para xmm0 ----------- PXOR xmm6,xmm6 ; xmm6 = [0|0|0|0] CMPPS xmm6, xmm0, 2 ; CMPLEPS xmm6,xmm1 --> xmm6 <= xmm1 --> 0 <= arctg(ANGi) --> Tengo con 1's los mayores o iguales a 0 PXOR xmm6,xmm5 ; Me quedan en 1 solo los lugares donde hay angulos negativos PAND xmm6,xmm4 ; En los lugares donde los ang son positivos dejo 0 en los otros dejo 360 ADDPS xmm0,xmm6 ; Le sumo a los negativos 360 ; ------Para xmm0 ----------- ; ------Para xmm1 ----------- PXOR xmm6,xmm6 ; xmm6 = [0|0|0|0] CMPPS xmm6, xmm1, 2 ; CMPLEPS xmm6,xmm1 --> xmm6 <= xmm1 --> 0 <= arctg(ANGi) --> Tengo con 1's los mayores o iguales a 0 PXOR xmm6,xmm5 ; Me quedan en 1 solo los lugares donde hay angulos negativos PAND xmm6,xmm4 ; En los lugares donde los ang son positivos dejo 0 en los otros dejo 360 ADDPS xmm1,xmm6 ; Le sumo a los negativos 360 ; ------Para xmm1 ----------- ; ------Para xmm1 ----------- PXOR xmm6,xmm6 ; xmm6 = [0|0|0|0] CMPPS xmm6, xmm2, 2 ; CMPLEPS xmm6,xmm2 --> xmm6 <= xmm2 --> 0 <= arctg(ANGi) --> Tengo con 1's los mayores o iguales a 0 PXOR xmm6,xmm5 ; Me quedan en 1 solo los lugares donde hay angulos negativos PAND xmm6,xmm4 ; En los lugares donde los ang son positivos dejo 0 en los otros dejo 360 ADDPS xmm2,xmm6 ; Le sumo a los negativos 360 ; ------Para xmm1 ----------- ; ------Para xmm3 ----------- PXOR xmm6,xmm6 ; xmm6 = [0|0|0|0] CMPPS xmm6, xmm3, 2 ; CMPLEPS xmm6,xmm3 --> xmm6 <= xmm3 --> 0 <= arctg(ANGi) --> Tengo con 1's los mayores o iguales a 0 PXOR xmm6,xmm5 ; Me quedan en 1 solo los lugares donde hay angulos negativos PAND xmm6,xmm4 ; En los lugares donde los ang son positivos dejo 0 en los otros dejo 360 ADDPS xmm3,xmm6 ; Le sumo a los negativos 360 ; ------Para xmm3 ----------- ;---------------------------------------------------------------------------------------------------------------- ; Resumen ; xmm0 = [arct(M10)|arct(M9)|arct(M8)|arct(M7)] (En grados y positivos) ; xmm1 = [Basura|Basura|arct(M2)|arct(M1)] (En grados y positivos) ; xmm2 = [ang(M14)|ang(M13)|ang(M12)|ang(M11)] (En grados y positivos) ; xmm3 = [arct(M6)|arct(M5)|arct(M4)|arct(M3)] (En grados y positivos) ; xmm4 = LIBRE ; xmm5 = LIBRE ; xmm6 = LIBRE --> será utilizado para límite inferior ; xmm7 = LIBRE --> será utilizado para límite superior ; xmm8 = LIBRE --> será utilizado para la máscara de 50 ; xmm9 = LIBRE --> será utilizado para la máscara de 100 ; xmm10 = LIBRE --> será utilizado para la máscara de 150 ; xmm11 = LIBRE --> será utilizado para la máscara de 200 ; xmm12 = [22.5|22.5|22.5|22.5] ; xmm13 = LIBRE --> será utilizado para sumar 45 ; xmm14 = [50|50|50|50] ; xmm15 = [pi/2|pi/2|pi/2|pi/2] ; ;---------------------------------------------------------------------------------------------------------------- ;Calculamos los valores finales ;---------------------PARA XMM0 ---------------------------------- ;Limpio los registros "acumuladores" PXOR xmm8,xmm8 PXOR xmm9,xmm9 PXOR xmm10,xmm10 PXOR xmm11,xmm11 MOVDQU xmm7, xmm12 ; xmm7 = [22.5|22.5|22.5|22.5] PXOR xmm6,xmm6 ; xmm6 = [0|0|0|0] MOVDQU xmm13,xmm7 ; xmm13 = [22.5|22.5|22.5|22.5] ADDPS xmm13,xmm12 ; xmm13 = [45|45|45|45] ;Menor a 22.5 PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] MOVDQU xmm4,xmm7 ; xmm4 = [22.5|22.5|22.5|22.5] CMPPS xmm4,xmm0,2 ; CMPLEPS xmm4,xmm0 --> xmm4 <= xmm0 (Los que son mayores o iguales a 22.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 22.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 CMPPS xmm5, xmm0, 2 ; Los que son mayores o iguales a 0 estan con 1's PAND xmm4,xmm5 POR xmm8,xmm4 ; Guardo el resultado en xmm8 (valor 50) ;Menor a 67.5 , Mayor a 22.5 MOVDQU xmm6,xmm7 ; xmm6 = [22.5|22.5|22.5|22.5] ADDPS xmm7,xmm13 ; xmm7 = [67.5|67.5|67.5|67.5] MOVDQU xmm4,xmm7 ; xmm4 = [67.5|67.5|67.5|67.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm0,2 ; CMPLEPS xmm4,xmm0 --> xmm4 <= xmm0 (Los que son mayores o iguales a 67.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 67.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [22.5|22.5|22.5|22.5] CMPPS xmm5,xmm0,2 ; CMPLEPS xmm5,xmm0 --> xmm5 <= xmm0 (Los que son mayores o iguales a 22.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm9,xmm4 ; Guardo el resultado en xmm9 (valor 100) ;Menor a 112.5, Mayor a 67.5 MOVDQU xmm6,xmm7 ; xmm6 = [67.5|67.5|67.5|67.5] ADDPS xmm7,xmm13 ; xmm7 = [112.5|112.5|112.5|112.5] MOVDQU xmm4,xmm7 ; xmm4 = [112.5|112.5|112.5|112.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm0,2 ; CMPLEPS xmm4,xmm0 --> xmm4 <= xmm0 (Los que son mayores o iguales a 112.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 112.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [67.5|67.5|67.5|67.5] CMPPS xmm5,xmm0,2 ; CMPLEPS xmm5,xmm0 --> xmm5 <= xmm0 (Los que son mayores o iguales a 67.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm10,xmm4 ; Guardo el resultado en xmm10 (valor 150) ;Menor a 157.5, Mayor a 112.5 MOVDQU xmm6,xmm7 ; xmm6 = [112.5|112.5|112.5|112.5] ADDPS xmm7,xmm13 ; xmm7 = [157.5|157.5|157.5|157.5] MOVDQU xmm4,xmm7 ; xmm4 = [157.5|157.5|157.5|157.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm0,2 ; CMPLEPS xmm4,xmm0 --> xmm4 <= xmm0 (Los que son mayores o iguales a 157.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 157.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [112.5|112.5|112.5|112.5] CMPPS xmm5,xmm0,2 ; CMPLEPS xmm5,xmm0 --> xmm5 <= xmm0 (Los que son mayores o iguales a 112.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm11,xmm4 ; Guardo el resultado en xmm11 (valor 200) ;Menor a 202.5, Mayor a 157.5 MOVDQU xmm6,xmm7 ; xmm6 = [157.5|157.5|157.5|157.5] ADDPS xmm7,xmm13 ; xmm7 = [202.5|202.5|202.5|202.5] MOVDQU xmm4,xmm7 ; xmm4 = [202.5|202.5|202.5|202.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm0,2 ; CMPLEPS xmm4,xmm0 --> xmm4 <= xmm0 (Los que son mayores o iguales a 202.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 202.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [157.5|157.5|157.5|157.5] CMPPS xmm5,xmm0,2 ; CMPLEPS xmm5,xmm0 --> xmm5 <= xmm0 (Los que son mayores o iguales a 157.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm8,xmm4 ; Guardo el resultado en xmm8 (valor 50) ;Menor a 247.5, Mayor a 202.5 MOVDQU xmm6,xmm7 ; xmm6 = [202.5|202.5|202.5|202.5] ADDPS xmm7,xmm13 ; xmm7 = [247.5|247.5|247.5|247.5] MOVDQU xmm4,xmm7 ; xmm4 = [247.5|247.5|247.5|247.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm0,2 ; CMPLEPS xmm4,xmm0 --> xmm4 <= xmm0 (Los que son mayores o iguales a 247.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 247.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [202.5|202.5|202.5|202.5] CMPPS xmm5,xmm0,2 ; CMPLEPS xmm5,xmm0 --> xmm5 <= xmm0 (Los que son mayores o iguales a 202.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm9,xmm4 ; Guardo el resultado en xmm9 (valor 100) ;Menor a 292.5, Mayor a 247.5 MOVDQU xmm6,xmm7 ; xmm6 = [247.5|247.5|247.5|247.5] ADDPS xmm7,xmm13 ; xmm7 = [292.5|292.5|292.5|292.5] MOVDQU xmm4,xmm7 ; xmm4 = [292.5|292.5|292.5|292.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm0,2 ; CMPLEPS xmm4,xmm0 --> xmm4 <= xmm0 (Los que son mayores o iguales a 292.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 292.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [247.5|247.5|247.5|247.5] CMPPS xmm5,xmm0,2 ; CMPLEPS xmm5,xmm0 --> xmm5 <= xmm0 (Los que son mayores o iguales a 247.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm10,xmm4 ; Guardo el resultado en xmm10 (valor 150) ;Menor a 337.5, Mayor a 292.5 MOVDQU xmm6,xmm7 ; xmm6 = [292.5|292.5|292.5|292.5] ADDPS xmm7,xmm13 ; xmm7 = [337.5|337.5|337.5|337.5] MOVDQU xmm4,xmm7 ; xmm4 = [337.5|337.5|337.5|337.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm0,2 ; CMPLEPS xmm4,xmm0 --> xmm4 <= xmm0 (Los que son mayores o iguales a 337.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 337.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [292.5|292.5|292.5|292.5] CMPPS xmm5,xmm0,2 ; CMPLEPS xmm5,xmm0 --> xmm5 <= xmm0 (Los que son mayores o iguales a 292.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm11,xmm4 ; Guardo el resultado en xmm11 (valor 200) ;Menor a 360, Mayor a 337.5 MOVDQU xmm6,xmm7 ; xmm6 = [337.5|337.5|337.5|337.5] ADDPS xmm7,xmm12 ; xmm7 = [360|360|360|360] MOVDQU xmm4,xmm7 ; xmm4 = [360|360|360|360] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm0,2 ; CMPLEPS xmm4,xmm0 --> xmm4 <= xmm0 (Los que son mayores o iguales a 360 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 360 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [337.5|337.5|337.5|337.5] CMPPS xmm5,xmm0,2 ; CMPLEPS xmm5,xmm0 --> xmm5 <= xmm0 (Los que son mayores o iguales a 337.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm11,xmm4 ; Guardo el resultado en xmm11 (valor 200) ;Terminamos y escribimos el resultado en xmm0 MOVDQU xmm4, xmm14 ; xmm4 = [50|50|50|50] PAND xmm8,xmm4 ; xmm8 tiene solo 50 en los que xmm8 habia unos ADDPS xmm4,xmm14 ; xmm4 = [100|100|100|100] PAND xmm9,xmm4 ; xmm9 tiene solo 100 en los que xmm8 habia unos ADDPS xmm4,xmm14 ; xmm4 = [150|150|150|150] PAND xmm10,xmm4 ; xmm10 tiene solo 150 en los que xmm8 habia unos ADDPS xmm4,xmm14 ; xmm4 = [200|200|200|200] PAND xmm11,xmm4 ; xmm10 tiene solo 200 en los que xmm8 habia unos POR xmm8,xmm9 POR xmm10,xmm11 POR xmm8,xmm10 MOVDQU xmm0,xmm8 ;---------------------PARA XMM0 ---------------------------------- ;---------------------PARA XMM1 ---------------------------------- ;Limpio los registros "acumuladores" PXOR xmm8,xmm8 PXOR xmm9,xmm9 PXOR xmm10,xmm10 PXOR xmm11,xmm11 MOVDQU xmm7, xmm12 ; xmm7 = [22.5|22.5|22.5|22.5] PXOR xmm6,xmm6 ; xmm6 = [0|0|0|0] MOVDQU xmm13,xmm7 ; xmm13 = [22.5|22.5|22.5|22.5] ADDPS xmm13,xmm12 ; xmm13 = [45|45|45|45] ;Menor a 22.5 PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] MOVDQU xmm4,xmm7 ; xmm4 = [22.5|22.5|22.5|22.5] CMPPS xmm4,xmm1,2 ; CMPLEPS xmm4,xmm1 --> xmm4 <= xmm1 (Los que son mayores o iguales a 22.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 22.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 CMPPS xmm5, xmm0, 2 ; Los que son mayores o iguales a 0 estan con 1's PAND xmm4,xmm5 POR xmm8,xmm4 ; Guardo el resultado en xmm8 (valor 50) ;Menor a 67.5 , Mayor a 22.5 MOVDQU xmm6,xmm7 ; xmm6 = [22.5|22.5|22.5|22.5] ADDPS xmm7,xmm13 ; xmm7 = [67.5|67.5|67.5|67.5] MOVDQU xmm4,xmm7 ; xmm4 = [67.5|67.5|67.5|67.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm1,2 ; CMPLEPS xmm4,xmm1 --> xmm4 <= xmm1 (Los que son mayores o iguales a 67.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 67.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [22.5|22.5|22.5|22.5] CMPPS xmm5,xmm1,2 ; CMPLEPS xmm5,xmm1 --> xmm5 <= xmm1 (Los que son mayores o iguales a 22.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm9,xmm4 ; Guardo el resultado en xmm9 (valor 100) ;Menor a 112.5, Mayor a 67.5 MOVDQU xmm6,xmm7 ; xmm6 = [67.5|67.5|67.5|67.5] ADDPS xmm7,xmm13 ; xmm7 = [112.5|112.5|112.5|112.5] MOVDQU xmm4,xmm7 ; xmm4 = [112.5|112.5|112.5|112.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm1,2 ; CMPLEPS xmm4,xmm1 --> xmm4 <= xmm1 (Los que son mayores o iguales a 112.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 112.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [67.5|67.5|67.5|67.5] CMPPS xmm5,xmm1,2 ; CMPLEPS xmm5,xmm1 --> xmm5 <= xmm1 (Los que son mayores o iguales a 67.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm10,xmm4 ; Guardo el resultado en xmm10 (valor 150) ;Menor a 157.5, Mayor a 112.5 MOVDQU xmm6,xmm7 ; xmm6 = [112.5|112.5|112.5|112.5] ADDPS xmm7,xmm13 ; xmm7 = [157.5|157.5|157.5|157.5] MOVDQU xmm4,xmm7 ; xmm4 = [157.5|157.5|157.5|157.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm1,2 ; CMPLEPS xmm4,xmm1 --> xmm4 <= xmm1 (Los que son mayores o iguales a 157.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 157.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [112.5|112.5|112.5|112.5] CMPPS xmm5,xmm1,2 ; CMPLEPS xmm5,xmm1 --> xmm5 <= xmm1 (Los que son mayores o iguales a 112.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm11,xmm4 ; Guardo el resultado en xmm11 (valor 200) ;Menor a 202.5, Mayor a 157.5 MOVDQU xmm6,xmm7 ; xmm6 = [157.5|157.5|157.5|157.5] ADDPS xmm7,xmm13 ; xmm7 = [202.5|202.5|202.5|202.5] MOVDQU xmm4,xmm7 ; xmm4 = [202.5|202.5|202.5|202.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm1,2 ; CMPLEPS xmm4,xmm1 --> xmm4 <= xmm1 (Los que son mayores o iguales a 202.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 202.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [157.5|157.5|157.5|157.5] CMPPS xmm5,xmm1,2 ; CMPLEPS xmm5,xmm1 --> xmm5 <= xmm1 (Los que son mayores o iguales a 157.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm8,xmm4 ; Guardo el resultado en xmm8 (valor 50) ;Menor a 247.5, Mayor a 202.5 MOVDQU xmm6,xmm7 ; xmm6 = [202.5|202.5|202.5|202.5] ADDPS xmm7,xmm13 ; xmm7 = [247.5|247.5|247.5|247.5] MOVDQU xmm4,xmm7 ; xmm4 = [247.5|247.5|247.5|247.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm1,2 ; CMPLEPS xmm4,xmm1 --> xmm4 <= xmm1 (Los que son mayores o iguales a 247.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 247.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [202.5|202.5|202.5|202.5] CMPPS xmm5,xmm1,2 ; CMPLEPS xmm5,xmm1 --> xmm5 <= xmm1 (Los que son mayores o iguales a 202.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm9,xmm4 ; Guardo el resultado en xmm9 (valor 100) ;Menor a 292.5, Mayor a 247.5 MOVDQU xmm6,xmm7 ; xmm6 = [247.5|247.5|247.5|247.5] ADDPS xmm7,xmm13 ; xmm7 = [292.5|292.5|292.5|292.5] MOVDQU xmm4,xmm7 ; xmm4 = [292.5|292.5|292.5|292.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm1,2 ; CMPLEPS xmm4,xmm1 --> xmm4 <= xmm1 (Los que son mayores o iguales a 292.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 292.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [247.5|247.5|247.5|247.5] CMPPS xmm5,xmm1,2 ; CMPLEPS xmm5,xmm1 --> xmm5 <= xmm1 (Los que son mayores o iguales a 247.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm10,xmm4 ; Guardo el resultado en xmm10 (valor 150) ;Menor a 337.5, Mayor a 292.5 MOVDQU xmm6,xmm7 ; xmm6 = [292.5|292.5|292.5|292.5] ADDPS xmm7,xmm13 ; xmm7 = [337.5|337.5|337.5|337.5] MOVDQU xmm4,xmm7 ; xmm4 = [337.5|337.5|337.5|337.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm1,2 ; CMPLEPS xmm4,xmm1 --> xmm4 <= xmm1 (Los que son mayores o iguales a 337.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 337.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [292.5|292.5|292.5|292.5] CMPPS xmm5,xmm1,2 ; CMPLEPS xmm5,xmm1 --> xmm5 <= xmm1 (Los que son mayores o iguales a 292.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm11,xmm4 ; Guardo el resultado en xmm11 (valor 200) ;Menor a 360, Mayor a 337.5 MOVDQU xmm6,xmm7 ; xmm6 = [337.5|337.5|337.5|337.5] ADDPS xmm7,xmm12 ; xmm7 = [360|360|360|360] MOVDQU xmm4,xmm7 ; xmm4 = [360|360|360|360] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm1,2 ; CMPLEPS xmm4,xmm1 --> xmm4 <= xmm1 (Los que son mayores o iguales a 360 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 360 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [337.5|337.5|337.5|337.5] CMPPS xmm5,xmm1,2 ; CMPLEPS xmm5,xmm1 --> xmm5 <= xmm1 (Los que son mayores o iguales a 337.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm11,xmm4 ; Guardo el resultado en xmm11 (valor 200) ;Terminamos y escribimos el resultado en xmm1 MOVDQU xmm4, xmm14 ; xmm4 = [50|50|50|50] PAND xmm8,xmm4 ; xmm8 tiene solo 50 en los que xmm8 habia unos ADDPS xmm4,xmm14 ; xmm4 = [100|100|100|100] PAND xmm9,xmm4 ; xmm9 tiene solo 100 en los que xmm8 habia unos ADDPS xmm4,xmm14 ; xmm4 = [150|150|150|150] PAND xmm10,xmm4 ; xmm10 tiene solo 150 en los que xmm8 habia unos ADDPS xmm4,xmm14 ; xmm4 = [200|200|200|200] PAND xmm11,xmm4 ; xmm10 tiene solo 200 en los que xmm8 habia unos POR xmm8,xmm9 POR xmm10,xmm11 POR xmm8,xmm10 MOVDQU xmm1,xmm8 ;---------------------PARA XMM1 ---------------------------------- ;---------------------PARA XMM2 ---------------------------------- ;Limpio los registros "acumuladores" PXOR xmm8,xmm8 PXOR xmm9,xmm9 PXOR xmm10,xmm10 PXOR xmm11,xmm11 MOVDQU xmm7, xmm12 ; xmm7 = [22.5|22.5|22.5|22.5] PXOR xmm6,xmm6 ; xmm6 = [0|0|0|0] MOVDQU xmm13,xmm7 ; xmm13 = [22.5|22.5|22.5|22.5] ADDPS xmm13,xmm12 ; xmm13 = [45|45|45|45] ;Menor a 22.5 PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] MOVDQU xmm4,xmm7 ; xmm4 = [22.5|22.5|22.5|22.5] CMPPS xmm4,xmm2,2 ; CMPLEPS xmm4,xmm2 --> xmm4 <= xmm2 (Los que son mayores o iguales a 22.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 22.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 CMPPS xmm5, xmm0, 2 ; Los que son mayores o iguales a 0 estan con 1's PAND xmm4,xmm5 POR xmm8,xmm4 ; Guardo el resultado en xmm8 (valor 50) ;Menor a 67.5 , Mayor a 22.5 MOVDQU xmm6,xmm7 ; xmm6 = [22.5|22.5|22.5|22.5] ADDPS xmm7,xmm13 ; xmm7 = [67.5|67.5|67.5|67.5] MOVDQU xmm4,xmm7 ; xmm4 = [67.5|67.5|67.5|67.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm2,2 ; CMPLEPS xmm4,xmm2 --> xmm4 <= xmm2 (Los que son mayores o iguales a 67.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 67.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [22.5|22.5|22.5|22.5] CMPPS xmm5,xmm2,2 ; CMPLEPS xmm5,xmm2 --> xmm5 <= xmm2 (Los que son mayores o iguales a 22.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm9,xmm4 ; Guardo el resultado en xmm9 (valor 100) ;Menor a 112.5, Mayor a 67.5 MOVDQU xmm6,xmm7 ; xmm6 = [67.5|67.5|67.5|67.5] ADDPS xmm7,xmm13 ; xmm7 = [112.5|112.5|112.5|112.5] MOVDQU xmm4,xmm7 ; xmm4 = [112.5|112.5|112.5|112.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm2,2 ; CMPLEPS xmm4,xmm2 --> xmm4 <= xmm2 (Los que son mayores o iguales a 112.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 112.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [67.5|67.5|67.5|67.5] CMPPS xmm5,xmm2,2 ; CMPLEPS xmm5,xmm2 --> xmm5 <= xmm2 (Los que son mayores o iguales a 67.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm10,xmm4 ; Guardo el resultado en xmm10 (valor 150) ;Menor a 157.5, Mayor a 112.5 MOVDQU xmm6,xmm7 ; xmm6 = [112.5|112.5|112.5|112.5] ADDPS xmm7,xmm13 ; xmm7 = [157.5|157.5|157.5|157.5] MOVDQU xmm4,xmm7 ; xmm4 = [157.5|157.5|157.5|157.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm2,2 ; CMPLEPS xmm4,xmm2 --> xmm4 <= xmm2 (Los que son mayores o iguales a 157.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 157.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [112.5|112.5|112.5|112.5] CMPPS xmm5,xmm2,2 ; CMPLEPS xmm5,xmm2 --> xmm5 <= xmm2 (Los que son mayores o iguales a 112.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm11,xmm4 ; Guardo el resultado en xmm11 (valor 200) ;Menor a 202.5, Mayor a 157.5 MOVDQU xmm6,xmm7 ; xmm6 = [157.5|157.5|157.5|157.5] ADDPS xmm7,xmm13 ; xmm7 = [202.5|202.5|202.5|202.5] MOVDQU xmm4,xmm7 ; xmm4 = [202.5|202.5|202.5|202.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm2,2 ; CMPLEPS xmm4,xmm2 --> xmm4 <= xmm2 (Los que son mayores o iguales a 202.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 202.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [157.5|157.5|157.5|157.5] CMPPS xmm5,xmm2,2 ; CMPLEPS xmm5,xmm2 --> xmm5 <= xmm2 (Los que son mayores o iguales a 157.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm8,xmm4 ; Guardo el resultado en xmm8 (valor 50) ;Menor a 247.5, Mayor a 202.5 MOVDQU xmm6,xmm7 ; xmm6 = [202.5|202.5|202.5|202.5] ADDPS xmm7,xmm13 ; xmm7 = [247.5|247.5|247.5|247.5] MOVDQU xmm4,xmm7 ; xmm4 = [247.5|247.5|247.5|247.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm2,2 ; CMPLEPS xmm4,xmm2 --> xmm4 <= xmm2 (Los que son mayores o iguales a 247.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 247.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [202.5|202.5|202.5|202.5] CMPPS xmm5,xmm2,2 ; CMPLEPS xmm5,xmm2 --> xmm5 <= xmm2 (Los que son mayores o iguales a 202.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm9,xmm4 ; Guardo el resultado en xmm9 (valor 100) ;Menor a 292.5, Mayor a 247.5 MOVDQU xmm6,xmm7 ; xmm6 = [247.5|247.5|247.5|247.5] ADDPS xmm7,xmm13 ; xmm7 = [292.5|292.5|292.5|292.5] MOVDQU xmm4,xmm7 ; xmm4 = [292.5|292.5|292.5|292.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm2,2 ; CMPLEPS xmm4,xmm2 --> xmm4 <= xmm2 (Los que son mayores o iguales a 292.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 292.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [247.5|247.5|247.5|247.5] CMPPS xmm5,xmm2,2 ; CMPLEPS xmm5,xmm2 --> xmm5 <= xmm2 (Los que son mayores o iguales a 247.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm10,xmm4 ; Guardo el resultado en xmm10 (valor 150) ;Menor a 337.5, Mayor a 292.5 MOVDQU xmm6,xmm7 ; xmm6 = [292.5|292.5|292.5|292.5] ADDPS xmm7,xmm13 ; xmm7 = [337.5|337.5|337.5|337.5] MOVDQU xmm4,xmm7 ; xmm4 = [337.5|337.5|337.5|337.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm2,2 ; CMPLEPS xmm4,xmm2 --> xmm4 <= xmm2 (Los que son mayores o iguales a 337.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 337.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [292.5|292.5|292.5|292.5] CMPPS xmm5,xmm2,2 ; CMPLEPS xmm5,xmm2 --> xmm5 <= xmm2 (Los que son mayores o iguales a 292.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm11,xmm4 ; Guardo el resultado en xmm11 (valor 200) ;Menor a 360, Mayor a 337.5 MOVDQU xmm6,xmm7 ; xmm6 = [337.5|337.5|337.5|337.5] ADDPS xmm7,xmm12 ; xmm7 = [360|360|360|360] MOVDQU xmm4,xmm7 ; xmm4 = [360|360|360|360] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm2,2 ; CMPLEPS xmm4,xmm2 --> xmm4 <= xmm2 (Los que son mayores o iguales a 360 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 360 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [337.5|337.5|337.5|337.5] CMPPS xmm5,xmm2,2 ; CMPLEPS xmm5,xmm2 --> xmm5 <= xmm2 (Los que son mayores o iguales a 337.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm11,xmm4 ; Guardo el resultado en xmm11 (valor 200) ;Terminamos y escribimos el resultado en xmm2 MOVDQU xmm4, xmm14 ; xmm4 = [50|50|50|50] PAND xmm8,xmm4 ; xmm8 tiene solo 50 en los que xmm8 habia unos ADDPS xmm4,xmm14 ; xmm4 = [100|100|100|100] PAND xmm9,xmm4 ; xmm9 tiene solo 100 en los que xmm8 habia unos ADDPS xmm4,xmm14 ; xmm4 = [150|150|150|150] PAND xmm10,xmm4 ; xmm10 tiene solo 150 en los que xmm8 habia unos ADDPS xmm4,xmm14 ; xmm4 = [200|200|200|200] PAND xmm11,xmm4 ; xmm10 tiene solo 200 en los que xmm8 habia unos POR xmm8,xmm9 POR xmm10,xmm11 POR xmm8,xmm10 MOVDQU xmm2,xmm8 ;---------------------PARA XMM2 ---------------------------------- ;---------------------PARA XMM3 ---------------------------------- ;Limpio los registros "acumuladores" PXOR xmm8,xmm8 PXOR xmm9,xmm9 PXOR xmm10,xmm10 PXOR xmm11,xmm11 MOVDQU xmm7, xmm12 ; xmm7 = [22.5|22.5|22.5|22.5] PXOR xmm6,xmm6 ; xmm6 = [0|0|0|0] MOVDQU xmm13,xmm7 ; xmm13 = [22.5|22.5|22.5|22.5] ADDPS xmm13,xmm12 ; xmm13 = [45|45|45|45] ;Menor a 22.5 PXOR xmm5,xmm5 ; xmm5 = [0|0|..|0] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] MOVDQU xmm4,xmm7 ; xmm4 = [22.5|22.5|22.5|22.5] CMPPS xmm4,xmm3,2 ; CMPLEPS xmm4,xmm3 --> xmm4 <= xmm3 (Los que son mayores o iguales a 22.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 22.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 CMPPS xmm5, xmm0, 2 ; Los que son mayores o iguales a 0 estan con 1's PAND xmm4,xmm5 POR xmm8,xmm4 ; Guardo el resultado en xmm8 (valor 50) ;Menor a 67.5 , Mayor a 22.5 MOVDQU xmm6,xmm7 ; xmm6 = [22.5|22.5|22.5|22.5] ADDPS xmm7,xmm13 ; xmm7 = [67.5|67.5|67.5|67.5] MOVDQU xmm4,xmm7 ; xmm4 = [67.5|67.5|67.5|67.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm3,2 ; CMPLEPS xmm4,xmm3 --> xmm4 <= xmm3 (Los que son mayores o iguales a 67.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 67.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [22.5|22.5|22.5|22.5] CMPPS xmm5,xmm3,2 ; CMPLEPS xmm5,xmm3 --> xmm5 <= xmm3 (Los que son mayores o iguales a 22.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm9,xmm4 ; Guardo el resultado en xmm9 (valor 100) ;Menor a 112.5, Mayor a 67.5 MOVDQU xmm6,xmm7 ; xmm6 = [67.5|67.5|67.5|67.5] ADDPS xmm7,xmm13 ; xmm7 = [112.5|112.5|112.5|112.5] MOVDQU xmm4,xmm7 ; xmm4 = [112.5|112.5|112.5|112.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm3,2 ; CMPLEPS xmm4,xmm3 --> xmm4 <= xmm3 (Los que son mayores o iguales a 112.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 112.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [67.5|67.5|67.5|67.5] CMPPS xmm5,xmm3,2 ; CMPLEPS xmm5,xmm3 --> xmm5 <= xmm3 (Los que son mayores o iguales a 67.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm10,xmm4 ; Guardo el resultado en xmm10 (valor 150) ;Menor a 157.5, Mayor a 112.5 MOVDQU xmm6,xmm7 ; xmm6 = [112.5|112.5|112.5|112.5] ADDPS xmm7,xmm13 ; xmm7 = [157.5|157.5|157.5|157.5] MOVDQU xmm4,xmm7 ; xmm4 = [157.5|157.5|157.5|157.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm3,2 ; CMPLEPS xmm4,xmm3 --> xmm4 <= xmm3 (Los que son mayores o iguales a 157.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 157.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [112.5|112.5|112.5|112.5] CMPPS xmm5,xmm3,2 ; CMPLEPS xmm5,xmm3 --> xmm5 <= xmm3 (Los que son mayores o iguales a 112.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm11,xmm4 ; Guardo el resultado en xmm11 (valor 200) ;Menor a 202.5, Mayor a 157.5 MOVDQU xmm6,xmm7 ; xmm6 = [157.5|157.5|157.5|157.5] ADDPS xmm7,xmm13 ; xmm7 = [202.5|202.5|202.5|202.5] MOVDQU xmm4,xmm7 ; xmm4 = [202.5|202.5|202.5|202.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm3,2 ; CMPLEPS xmm4,xmm3 --> xmm4 <= xmm3 (Los que son mayores o iguales a 202.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 202.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [157.5|157.5|157.5|157.5] CMPPS xmm5,xmm3,2 ; CMPLEPS xmm5,xmm3 --> xmm5 <= xmm3 (Los que son mayores o iguales a 157.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm8,xmm4 ; Guardo el resultado en xmm8 (valor 50) ;Menor a 247.5, Mayor a 202.5 MOVDQU xmm6,xmm7 ; xmm6 = [202.5|202.5|202.5|202.5] ADDPS xmm7,xmm13 ; xmm7 = [247.5|247.5|247.5|247.5] MOVDQU xmm4,xmm7 ; xmm4 = [247.5|247.5|247.5|247.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm3,2 ; CMPLEPS xmm4,xmm3 --> xmm4 <= xmm3 (Los que son mayores o iguales a 247.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 247.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [202.5|202.5|202.5|202.5] CMPPS xmm5,xmm3,2 ; CMPLEPS xmm5,xmm3 --> xmm5 <= xmm3 (Los que son mayores o iguales a 202.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm9,xmm4 ; Guardo el resultado en xmm9 (valor 100) ;Menor a 292.5, Mayor a 247.5 MOVDQU xmm6,xmm7 ; xmm6 = [247.5|247.5|247.5|247.5] ADDPS xmm7,xmm13 ; xmm7 = [292.5|292.5|292.5|292.5] MOVDQU xmm4,xmm7 ; xmm4 = [292.5|292.5|292.5|292.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm3,2 ; CMPLEPS xmm4,xmm3 --> xmm4 <= xmm3 (Los que son mayores o iguales a 292.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 292.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [247.5|247.5|247.5|247.5] CMPPS xmm5,xmm3,2 ; CMPLEPS xmm5,xmm3 --> xmm5 <= xmm3 (Los que son mayores o iguales a 247.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm10,xmm4 ; Guardo el resultado en xmm10 (valor 150) ;Menor a 337.5, Mayor a 292.5 MOVDQU xmm6,xmm7 ; xmm6 = [292.5|292.5|292.5|292.5] ADDPS xmm7,xmm13 ; xmm7 = [337.5|337.5|337.5|337.5] MOVDQU xmm4,xmm7 ; xmm4 = [337.5|337.5|337.5|337.5] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm3,2 ; CMPLEPS xmm4,xmm3 --> xmm4 <= xmm3 (Los que son mayores o iguales a 337.5 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 337.5 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [292.5|292.5|292.5|292.5] CMPPS xmm5,xmm3,2 ; CMPLEPS xmm5,xmm3 --> xmm5 <= xmm3 (Los que son mayores o iguales a 292.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm11,xmm4 ; Guardo el resultado en xmm11 (valor 200) ;Menor a 360, Mayor a 337.5 MOVDQU xmm6,xmm7 ; xmm6 = [337.5|337.5|337.5|337.5] ADDPS xmm7,xmm12 ; xmm7 = [360|360|360|360] MOVDQU xmm4,xmm7 ; xmm4 = [360|360|360|360] PCMPEQQ xmm5,xmm5 ; xmm5 = [1|1|..|1] CMPPS xmm4,xmm3,2 ; CMPLEPS xmm4,xmm3 --> xmm4 <= xmm3 (Los que son mayores o iguales a 360 están con 1's) PXOR xmm4,xmm5 ; Los que son menores a 360 están con 1's. (HAGO UN NOT CASERO) MOVDQU xmm5,xmm6 ; xmm5 = [337.5|337.5|337.5|337.5] CMPPS xmm5,xmm3,2 ; CMPLEPS xmm5,xmm3 --> xmm5 <= xmm3 (Los que son mayores o iguales a 337.5 están con 1's) PAND xmm4,xmm5 ;Escribo solo aquellos que cumplan ambas condiciones POR xmm11,xmm4 ; Guardo el resultado en xmm11 (valor 200) ;Terminamos y escribimos el resultado en xmm3 MOVDQU xmm4, xmm14 ; xmm4 = [50|50|50|50] PAND xmm8,xmm4 ; xmm8 tiene solo 50 en los que xmm8 habia unos ADDPS xmm4,xmm14 ; xmm4 = [100|100|100|100] PAND xmm9,xmm4 ; xmm9 tiene solo 100 en los que xmm8 habia unos ADDPS xmm4,xmm14 ; xmm4 = [150|150|150|150] PAND xmm10,xmm4 ; xmm10 tiene solo 150 en los que xmm8 habia unos ADDPS xmm4,xmm14 ; xmm4 = [200|200|200|200] PAND xmm11,xmm4 ; xmm10 tiene solo 200 en los que xmm8 habia unos POR xmm8,xmm9 POR xmm10,xmm11 POR xmm8,xmm10 MOVDQU xmm3,xmm8 ;---------------------PARA XMM3 ---------------------------------- ;---------------------------------------------------------------------------------------------------------------- ; Resumen ; xmm0 = [ang_sobel(M10)|ang_sobel(M9)|ang_sobel(M8)|ang_sobel(M7)] ; xmm1 = [Basura|Basura|ang_sobel(M2)|ang_sobel(M1)] ; xmm2 = [ang_sobel(M14)|ang_sobel(M13)|ang_sobel(M12)|ang_sobel(M11)] ; xmm3 = [ang_sobel(M6)|ang_sobel(M5)|ang_sobel(M4)|ang_sobel(M3)] ; xmm4 = LIBRE ; xmm5 = LIBRE ; xmm6 = LIBRE ; xmm7 = LIBRE ; xmm8 = LIBRE ; xmm9 = LIBRE ; xmm10 = LIBRE ; xmm11 = LIBRE ; xmm12 = [22.5|22.5|22.5|22.5] ; xmm13 = LIBRE ; xmm14 = [50|50|50|50] ; xmm15 = [pi/2|pi/2|pi/2|pi/2] ; ;---------------------------------------------------------------------------------------------------------------- ;Volvemos a enteros (Double words) CVTPS2DQ xmm2,xmm2 ; xmm2 = xmm2 = [ang_sobel(M14)|...|ang_sobel(M11)] CVTPS2DQ xmm0,xmm0 ; xmm0 = xmm0 = [ang_sobel(M10)|...|ang_sobel(M7)] CVTPS2DQ xmm3,xmm3 ; xmm3 = xmm3 = [ang_sobel(M6)|...|ang_sobel(M3)] CVTPS2DQ xmm1,xmm1 ; xmm1 = xmm1 = [ang_sobel(M2)|ang_sobel(M1)|0|0] ;Volvemos a words PACKSSDW xmm2,xmm0 ; xmm2 = [ang_sobel(M14)|...|ang_sobel(M11)|ang_sobel(M10)|...|ang_sobel(M7) ] PACKSSDW xmm3, xmm1 ; xmm3 = [ang_sobel(M6)|...|ang_sobel(M3)|ang_sobel(M2)|ang_sobel(M1)|Basura|Basura] ;Volvemos a bytes PACKUSWB xmm2,xmm3 ; xmm2 = [ang_sobel(M14)| .. |ang_sobel(M1)|Basura|Basura] ;Escritura en memoria CMP r12,18 ; Me fijo si es la última escritura de la fila o no. JE ultimaEscritura MOVDQU [r13], xmm2 ; Si no es la última escritura, entonces escribo los 16 bytes. ADD r14, 14 ; Aumento 14 ya que es la cantidad de píxeles que procesamos a la vez. ADD r15, 14 ADD r13, 14 SUB r12, 14 ; Resto las 14 columnas ya procesadas. JMP cicloPorColumnas ultimaEscritura: MOVQ [r13], xmm2 ; Escribe los primeros 8 bytes en memoria. PSRLDQ xmm2, 8 MOVD [r13+8], xmm2 ; Escribe los siguientes 4 bytes en memoria. MOV WORD [r13+12], 0 ; Escribe los siguientes 2 bytes en memoria. MOV BYTE [r13+14], 0 ; Escribe en memoria 0 para completar los 3 bores de ceros. MOV WORD [r13+15], 0 ; Escribe en memoria 0 para completar los 3 bores de ceros. JMP cambiarDeFila redimensionar: MOV r11, 18 ; Hago esto para retroceder (18-r12d) para atrás que es lo que necesito que retrocedan los iteradores para poder hacer la última escritura. SUB r11, r12 SUB r14, r11 SUB r15, r11 SUB r13, r11 MOV r12, 18 JMP cicloPorColumnas cambiarDeFila: LEA rdi, [rdi + r8] ; Muevo los punteros de las imágenes al primero de la segunda fila sumandole el row_size correspondiente a cada uno. LEA rsi, [rsi + r9] LEA rax, [rax + r9] DEC edx ; Decremento una fila JMP cicloPorFilas ;Opero con la última fila parteFinal: PXOR xmm0,xmm0 ;Para escribir 0's en los bordes ultimas3Filas: CMP edx, 3 ; JE salir MOV r15, rsi MOV r13, rax ;Guardo el puntero al destino en r11 (para usarlo de iterador de la última fila). MOV r12, rcx ;Guardo en r12, la cantidad de columnas para poder comparar contra 0 cuando termine de iterar toda la fila. cicloUltimasFilas: CMP r12,0 JE cambiarUltimasFilas CMP r12,16 ;Para redimensionar JL redimensionUltimas3Filas MOVDQU [r15], xmm0 ;Escribo 16 bytes de 0 en la posición de memoria apuntada por el iterador MOVDQU [r13], xmm0 ;Escribo 16 bytes de 0 en la posición de memoria apuntada por el iterador ADD r15, 16 ;Aumento el iterador ADD r13, 16 ;Aumento el iterador SUB r12, 16 ;Disminuyo la cantidad de columnas que me faltan recorrer JMP cicloUltimasFilas cambiarUltimasFilas: LEA rdi, [rdi + r8] ; Muevo los punteros de las imágenes al primero de la segunda fila sumandole el row_size correspondiente a cada uno. LEA rsi, [rsi + r9] LEA rax, [rax + r9] DEC edx ; Decremento una fila JMP ultimas3Filas redimensionUltimas3Filas: MOV r14, 16 ; Hago esto para retroceder (16-r12d) para atrás que es lo que necesito que retrocedan los iteradores para poder hacer la última escritura. SUB r14, r12 SUB r15, r14 SUB r13, r14 SUB r12, r14 JMP cicloUltimasFilas salir: POP r12 POP r13 POP r14 POP r15 ADD rsp,16; POP rbp RET
40.337541
222
0.50058
4cb4ed6e15d2adf29fbab941c87de6043333211d
340
asm
Assembly
DementiaFS/amd64/ProcHandleTableDerefx64.asm
allewwaly/dementia-forensics
401423fd8ba4f4d2b6dbec461df2eb18f33ac734
[ "MIT" ]
9
2018-08-20T03:06:07.000Z
2021-06-14T14:46:43.000Z
DementiaFS/amd64/ProcHandleTableDerefx64.asm
zignie/dementia-forensics
201a10faa17f2d406073d29e9cb5385b30c405f8
[ "MIT" ]
null
null
null
DementiaFS/amd64/ProcHandleTableDerefx64.asm
zignie/dementia-forensics
201a10faa17f2d406073d29e9cb5385b30c405f8
[ "MIT" ]
2
2017-08-02T02:33:31.000Z
2017-09-03T17:56:33.000Z
.code ObDeReferenceProcessHandleTablex64 proc xor rax, rax xor rbx, rbx add rcx, rdx prefetchw [rcx] mov rax, [rcx] and rax, 0FFFFFFFFFFFFFFFEh lea rdx, [rax-2] lock cmpxchg [rcx], rdx jz noRundownProtect mov rbx, 1 noRundownProtect: mov rax, rbx ret ObDeReferenceProcessHandleTablex64 endp END
20
40
0.691176
8d5880534afda99c56ec8ed8b36ea4a2e58fbad1
9,948
asm
Assembly
Source/Apps/Talk.asm
davidknoll/RomWBW
8a7bc97fea27bf10a23c61ee508522a60e2909c6
[ "DOC", "MIT" ]
194
2015-08-20T03:18:01.000Z
2022-03-27T02:25:00.000Z
Source/Apps/Talk.asm
davidknoll/RomWBW
8a7bc97fea27bf10a23c61ee508522a60e2909c6
[ "DOC", "MIT" ]
234
2017-03-30T10:59:54.000Z
2022-03-26T20:05:52.000Z
Source/Apps/Talk.asm
davidknoll/RomWBW
8a7bc97fea27bf10a23c61ee508522a60e2909c6
[ "DOC", "MIT" ]
68
2016-12-18T18:20:12.000Z
2022-03-20T16:02:40.000Z
;=============================================================================== ; Talk - Bare minimum terminal interface ; ; Console talks to designated character device. ; ;=============================================================================== ; ; Author: Wayne Warthen (wwarthen@gmail.com) ;_______________________________________________________________________________ ; ; Usage: ; TALK TTY:|CRT:|BAT:|UC1: ;_______________________________________________________________________________ ; ; Change Log: ;_______________________________________________________________________________ ; ; ToDo: ; 1) Handle ZCPR devices somehow ;_______________________________________________________________________________ ; ;=============================================================================== ; Definitions ;=============================================================================== ; stksiz .equ $40 ; Working stack size ; restart .equ $0000 ; CP/M restart vector bdos .equ $0005 ; BDOS invocation vector iobyte .equ $0003 ; IOBYTE address ; const .equ $06 ; CBIOS CONST function dispatch table offset conin .equ $09 ; CBIOS CONIN function dispatch table offset conout .equ $0C ; CBIOS CONOUT function dispatch table offset ; ;=============================================================================== ; Code Section ;=============================================================================== ; .org $100 ; ; setup stack (save old value) ld (stksav),sp ; save stack ld sp,stack ; set new stack ; ; initialization call init ; initialize jr nz,exit ; abort if init fails ; ld de,msghel ; hello message call prtstr ; print it ; ; save active iobyte (console) ld a,(iobyte) ; get active IOBYTE ld (iobcon),a ; save it to iobcon ; ; parse command line call parse ; parse command line jr nz,exit ; abort if parse fails ; ; startup message ; ld de,msgtlk1 ; message prefix call prtstr ; print it call prtstrz ; print dev name at HL ld de,msgtlk2 ; message suffix call prtstr ; print it ; ; do the real work call talk ; do the real work ; ; restore original iobyte ld a,(iobcon) ; load original iobyte ld (iobyte),a ; ld de,msgbye ; goodbye message call prtstr ; print it ; exit: ; clean up and return to command processor ; call crlf ; formatting ; ld sp,(stksav) ; restore stack ret ; return to CP/M w/o reset ; ; Initialization ; init: ; add check for RomWBW? ; ; locate cbios function table address ld hl,(restart+1) ; load address of CP/M restart vector ld de,-3 ; adjustment for start of table add hl,de ; HL now has start of table ld (cbftbl),hl ; save it ; return success xor a ret ; ; Parse command line ; If success, Z set and HL points to device name string (zero terminated) ; ... else NZ set. ; parse: ; ld hl,$81 ; point to start of command tail (after length byte) call nonblank ; skip blanks jp z,erruse ; no parms ; ld c,0 ; current table entry ex de,hl ; point to parm with de ld hl,devtbl ; point to device table with hl ; parse0: ; compare loop push bc push de push hl call strcmp ; compare strings pop hl pop de pop bc jr z,parse1 ; if Z, we have a match inc c ; increment table entry ld a,5 ; bump hl by call addhl ; ... table entry size ld a,c ; get the table entry num to A cp 4 ; past end of table? jr nz,parse0 ; loop till done jp errprm ; handle parm error ; parse1: ; handle match ld a,c ; device num to A ld (iobcom),a ; save as com device iobyte ; return success xor a ; signal error ret ; and return ; ; Main routine ; talk: ; CON: --> UC1: ; ld a,(iobcon) ; setup iobyte to read from CON: ld (iobyte),a ; call cbios ; check for char pending using cbios .db const ; ... const function or a ; set flags jr z,next ; no char ready call cbios ; read char using cbios .db conin ; ... conin function cp $1A ; check for exit request (ctrl+z) ret z ; if so, bail out ; push af ; save the char we read ld a,(iobcom) ; setup iobyte to read from UC1: ld (iobyte),a pop af ; recover the character ; ld c,a ; move it to C call cbios ; write char using cbios .db conout ; ... conout function ; next: ; UC1: --> CON: ; ld a,(iobcom) ; setup iobyte to read from com device ld (iobyte),a ; call cbios ; check for char pending using cbios .db const ; ... const function or a ; set flags jr z,talk ; no char ready call cbios ; read char using cbios .db conin ; ... conin function ; push af ; save the char we read ld a,(iobcon) ; setup iobyte to read from CON: ld (iobyte),a pop af ; recover the character ; ld c,a ; move it to C call cbios ; write char using cbios .db conout ; ... conout function ; jr talk ; loop ; ; ; Print character in A without destroying any registers ; prtchr: push bc ; save registers push de push hl ld e,a ; character to print in E ld c,$02 ; BDOS function to output a character call bdos ; do it pop hl ; restore registers pop de pop bc ret ; ; Print a '$' terminated string at (DE) without destroying any registers ; prtstr: push bc ; save registers push de push hl ld c,$09 ; BDOS function to output a '$' terminated string call bdos ; do it pop hl ; restore registers pop de pop bc ret ; ; Print a zero terminated string at (HL) without destroying any registers ; prtstrz: push hl ; prtstrz1: ld a,(hl) ; get next char or a jr z,prtstrz2 call prtchr inc hl jr prtstrz1 ; prtstrz2: pop hl ; restore registers ret ; ; Print the value in A in hex without destroying any registers ; prthex: push af ; save AF push de ; save DE call hexascii ; convert value in A to hex chars in DE ld a,d ; get the high order hex char call prtchr ; print it ld a,e ; get the low order hex char call prtchr ; print it pop de ; restore DE pop af ; restore AF ret ; done ; ; Convert binary value in A to ascii hex characters in DE ; hexascii: ld d,a ; save A in D call hexconv ; convert low nibble of A to hex ld e,a ; save it in E ld a,d ; get original value back rlca ; rotate high order nibble to low bits rlca rlca rlca call hexconv ; convert nibble ld d,a ; save it in D ret ; done ; ; Convert low nibble of A to ascii hex ; hexconv: and $0F ; low nibble only add a,$90 daa adc a,$40 daa ret ; ; Start a new line ; crlf: ld a,13 ; <CR> call prtchr ; print it ld a,10 ; <LF> jr prtchr ; print it ; ; Get the next non-blank character from (HL). ; nonblank: ld a,(hl) ; load next character or a ; string ends with a null ret z ; if null, return pointing to null cp ' ' ; check for blank ret nz ; return if not blank inc hl ; if blank, increment character pointer jr nonblank ; and loop ; ; Check character at (DE) for delimiter. ; delim: or a ret z cp ' ' ; blank ret z jr c,delim1 ; handle control characters cp '=' ; equal ret z cp '_' ; underscore ret z cp '.' ; period ret z cp ':' ; colon ret z cp $3b ; semicolon ret z cp '<' ; less than ret z cp '>' ; greater than ret delim1: ; treat control chars as delimiters xor a ; set Z ret ; return ; ; Compare $ terminated strings at HL & DE ; If equal return with Z set, else NZ ; strcmp: ; ld a,(de) ; get current source char cp (hl) ; compare to current dest char ret nz ; compare failed, return with NZ or a ; set flags ret z ; end of string, match, return with Z set inc de ; point to next char in source inc hl ; point to next char in dest jr strcmp ; loop till done ; ; Invoke CBIOS function ; The CBIOS function offset must be stored in the byte ; following the call instruction. ex: ; call cbios ; .db $0C ; offset of CONOUT CBIOS function ; cbios: ex (sp),hl ld a,(hl) ; get the function offset inc hl ; point past value following call instruction ex (sp),hl ; put address back at top of stack and recover HL ld hl,(cbftbl) ; address of CBIOS function table to HL call addhl ; determine specific function address jp (hl) ; invoke CBIOS ; ; Add the value in A to HL (HL := HL + A) ; addhl: add a,l ; A := A + L ld l,a ; Put result back in L ret nc ; if no carry, we are done inc h ; if carry, increment H ret ; and return ; ; Errors ; erruse: ; command usage error (syntax) ld de,msguse jr err errprm: ; command parameter error (syntax) ld de,msgprm jr err err: ; print error string and return error signal call crlf ; print newline call prtstr ; print error string or $FF ; signal error ret ; done errdos: ; handle BDOS errors push af ; save return code call crlf ; newline ld de,msgdos ; load call prtstr ; and print error string pop af ; recover return code call prthex ; print error code or $FF ; signal error ret ; done ; ;=============================================================================== ; Storage Section ;=============================================================================== ; cbftbl .dw 0 ; address of CBIOS function table ; iobcon .db 0 ; iobyte value for console iobcom .db 0 ; iobyte value for com device ; devtbl: ; device table .db "TTY:",0 .db "CRT:",0 .db "BAT:",0 .db "UC1:",0 ; stksav .dw 0 ; stack pointer saved at start .fill stksiz,0 ; stack stack .equ $ ; stack top ; ; Messages ; msghel .db 13,10,"Talk v1.0",13,10,"$" msgbye .db 13,10,13,10,"*** Finished talking ***","$" msgtlk1 .db 13,10,"Talking on device $" msgtlk2 .db " (press <Ctrl+Z> to exit)...",13,10,13,10,"$" msguse .db "Usage: TALK TTY:|CRT:|BAT:|UC1:$" msgprm .db "Parameter error$" msgdos .db "DOS error, return code=0x$" ; .end
24.502463
81
0.608766
6609e276c1a3058f3a05c03fba8e193418f9c530
703
asm
Assembly
oeis/318/A318941.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/318/A318941.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/318/A318941.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A318941: Number of Dyck paths with n nodes and altitude 2. ; Submitted by Christian Krause ; 0,0,1,4,12,35,99,274,747,2015,5394,14359,38067,100610,265299,698359,1835922,4821695,12653739,33188674,87010587,228039695,597501714,1565251879,4099826787,10737374210,28118587299,73630970599,192799490322,504817832015,1321754669019,3460647501634,9060590489067,23721929271935,62106807939474,162601715771959,425704781827347,1114525514611970,2917897531812339,7639218620432599,19999861408700562,52360571764099295,137082266200457739,358887051470994754,939580537479968187,2459857859503793135 lpb $0 sub $0,1 add $2,$1 add $3,$1 trn $1,$2 pow $1,$4 mul $3,2 add $4,$2 add $1,$4 lpe mov $0,$3 div $0,2
41.352941
484
0.805121
787ce8ace57c76e114ca9f648d5572c4ec7650b2
358
asm
Assembly
libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sdcc/SMS_updateSpritePosition.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sdcc/SMS_updateSpritePosition.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sdcc/SMS_updateSpritePosition.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void SMS_updateSpritePosition(signed char sprite, unsigned char x, unsigned char y) SECTION code_clib SECTION code_SMSlib PUBLIC _SMS_updateSpritePosition EXTERN asm_SMSlib_updateSpritePosition _SMS_updateSpritePosition: pop af pop de pop hl push hl push de push af ld c,d ld a,l jp asm_SMSlib_updateSpritePosition
14.916667
85
0.756983
8b0626826c7a51f50421b7478113803094cf4585
4,256
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_261.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_261.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_261.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r12 push %r15 push %r8 push %rax push %rbp push %rdi push %rdx // Store lea addresses_A+0x175eb, %rbp nop nop add $22438, %rdi movb $0x51, (%rbp) nop nop cmp %r15, %r15 // Store lea addresses_D+0xc992, %r8 nop nop nop nop dec %r12 mov $0x5152535455565758, %rdx movq %rdx, %xmm5 vmovups %ymm5, (%r8) nop nop nop nop add $47036, %r8 // Faulty Load lea addresses_WT+0x128eb, %rbp nop nop nop nop nop inc %r8 movups (%rbp), %xmm3 vpextrq $0, %xmm3, %r12 lea oracles, %r15 and $0xff, %r12 shlq $12, %r12 mov (%r15,%r12,1), %r12 pop %rdx pop %rdi pop %rbp pop %rax pop %r8 pop %r15 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 5, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': False, 'type': 'addresses_D'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_WT'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'39': 21829} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
56
2,999
0.660244
2d70761aee43a5dd90b78f7189ce84b2dbb86f13
334
asm
Assembly
testdata/hmc-6502/rti_test.asm
tehmaze/mos65xx
60dbe6b949efcf197106eeae4382e084493a27b0
[ "MIT" ]
3
2019-10-24T09:41:14.000Z
2021-12-12T08:11:52.000Z
testdata/hmc-6502/rti_test.asm
tehmaze/mos65xx
60dbe6b949efcf197106eeae4382e084493a27b0
[ "MIT" ]
null
null
null
testdata/hmc-6502/rti_test.asm
tehmaze/mos65xx
60dbe6b949efcf197106eeae4382e084493a27b0
[ "MIT" ]
1
2020-11-11T17:11:54.000Z
2020-11-11T17:11:54.000Z
; Tests RTI instruction. ; Assumes lots of other instructions work already... ; ; Expected Results: $33 = 0x42 start: CLC LDA #$42 BCC runstuff STA $33 BCS end runstuff: LDA #$06 ; Assumes our program is loaded at 0x0600, RTI should set the PC right ; after the first CLC instruction PHA LDA #$01 PHA SEC PHP CLC RTI end:
13.36
79
0.709581
a835dfafdb8af5107ade809e0319bda92537f0b5
770
asm
Assembly
dos/mssw.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
dos/mssw.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
dos/mssw.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
; ; Microsoft Confidential ; Copyright (C) Microsoft Corporation 1991 ; All Rights Reserved. ; ; SCCSID = @(#)ibmsw.asm 1.1 85/04/10 IBM EQU ibmver WANG EQU FALSE ; Set this switch to cause DOS to move itself to the end of memory HIGHMEM EQU FALSE ; Turn on switch below to allow testing disk code with DEBUG. It sets ; up a different stack for disk I/O (functions > 11) than that used for ; character I/O which effectively makes the DOS re-entrant. IF IBM ESCCH EQU 0 ; character to begin escape seq. CANCEL EQU 27 ;Cancel with escape TOGLPRN EQU TRUE ;One key toggles printer echo ZEROEXT EQU TRUE ELSE ESCCH EQU 1BH CANCEL EQU "X"-"@" ;Cancel with Ctrl-X TOGLPRN EQU FALSE ;Separate keys for printer echo on ;and off ZEROEXT EQU TRUE ENDIF 
24.0625
71
0.731169
e7b8d1515938fb5dd8c4974dc0f517d5a6f9156b
633
asm
Assembly
oeis/146/A146083.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/146/A146083.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/146/A146083.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A146083: Expansion of 1/(1 - x*(1 - 11*x)). ; 1,1,-10,-21,89,320,-659,-4179,3070,49039,15269,-524160,-692119,5073641,12686950,-43123101,-182679551,291674560,2301149621,-907270539,-26219916370,-16239940441,272179139629,450818484480,-2543152051439,-7502155380719,20472517185110,102996226373019,-122201462663191,-1255159952766400,89056136528701,13895815616959101,12916198115143390,-139937773671406721,-282015952937984011,1257299557447489920,4359475039765314041,-9470820092157075079,-57425045529575529530,46753975484152296339,678429476309483121169 mul $0,2 mov $1,1 lpb $0 sub $0,2 sub $1,$2 add $2,$1 mul $2,11 lpe mov $0,$1
48.692308
499
0.799368
bc698f4ef47b89122cc3491d1da12ea946a36321
378
asm
Assembly
programs/oeis/016/A016203.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/016/A016203.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/016/A016203.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A016203: Expansion of 1/((1-x)(1-2x)(1-8x)). ; 1,11,95,775,6231,49911,399415,3195575,25565111,204521911,1636177335,13089422775,104715390391,837723139511,6701785148855,53614281256375,428914250182071,3431314001718711,27450512014273975 lpb $0 mov $2,$0 sub $0,1 seq $2,155721 ; Positions of parity change in A033035. add $1,$2 mul $1,2 lpe div $1,4 add $1,1 mov $0,$1
27
187
0.73545
b9ceb2b8d64025bda13b5648a67a5ad301f7762c
2,556
asm
Assembly
libsrc/target/rc2014/stdio/fputc_cons_acia.asm
UnivEngineer/z88dk
9047beba62595b1d88991bc934da75c0e2030d07
[ "ClArtistic" ]
1
2022-03-08T11:55:58.000Z
2022-03-08T11:55:58.000Z
libsrc/target/rc2014/stdio/fputc_cons_acia.asm
UnivEngineer/z88dk
9047beba62595b1d88991bc934da75c0e2030d07
[ "ClArtistic" ]
2
2022-03-20T22:17:35.000Z
2022-03-24T16:10:00.000Z
libsrc/target/rc2014/stdio/fputc_cons_acia.asm
jorgegv/z88dk
127130cf11f9ff268ba53e308138b12d2b9be90a
[ "ClArtistic" ]
null
null
null
INCLUDE "_DEVELOPMENT/target/rc2014/config_rc2014-8085_private.inc" SECTION code_driver SECTION code_driver_character_output PUBLIC fputc_cons_acia EXTERN aciaTxCount, aciaTxIn, aciaTxBuffer EXTERN aciaControl .fputc_cons_acia ; enter : (sp+2) = char to output ; ; modifies : af, de, hl ld a,(aciaTxCount) ; get the number of bytes in the Tx buffer or a ; check whether the buffer is empty jr NZ,fputc_cons_tx ; buffer not empty, so abandon immediate Tx in a,(__IO_ACIA_STATUS_REGISTER) ; get the status of the ACIA and __IO_ACIA_SR_TDRE ; check whether a byte can be transmitted jr Z,fputc_cons_tx ; if not, so abandon immediate Tx ld de,sp+2 ; retrieve Tx character ld a,(de) out (__IO_ACIA_DATA_REGISTER),a ; immediately output the Tx byte to the ACIA ret ; and just complete .fputc_cons_tx ld a,(aciaTxCount) ; Get the number of bytes in the Tx buffer cp __IO_ACIA_TX_SIZE-1 ; check whether there is space in the buffer jr NC,fputc_cons_tx ; buffer full, so wait till it has space ld de,sp+2 ; retrieve Tx character ld a,(de) ld hl,(aciaTxIn) ; get the pointer to where we poke ld (hl),a ; write the Tx byte to the aciaTxIn inc l ; move the Tx pointer, just low byte along IF __IO_ACIA_TX_SIZE != 0x100 ld a,__IO_ACIA_TX_SIZE-1 ; load the buffer size, (n^2)-1 and l ; range check or aciaTxBuffer&0xFF ; locate base ld l,a ; return the low byte to l ENDIF ld (aciaTxIn),hl ; write where the next byte should be poked ld hl,aciaTxCount inc (hl) ; atomic increment of Tx count ld a,(aciaControl) ; get the ACIA control echo byte and __IO_ACIA_CR_TEI_RTS0 ; test whether ACIA interrupt is set ret NZ ; if so then just return di ; critical section begin ld a,(aciaControl) ; get the ACIA control echo byte and ~__IO_ACIA_CR_TEI_MASK ; mask out the Tx interrupt bits or __IO_ACIA_CR_TEI_RTS0 ; set RTS low. if the TEI was not set, it will work again ld (aciaControl),a ; write the ACIA control echo byte back out (__IO_ACIA_CONTROL_REGISTER),a ; set the ACIA CTRL register ei ; critical section end ret
38.149254
89
0.606416
f5820d35f0331468bfcf7fc06593b342f22ee02d
545
asm
Assembly
oeis/284/A284907.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/284/A284907.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/284/A284907.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A284907: Positions of 1 in A284905; complement of A284906. ; Submitted by Jamie Morken(s4) ; 2,3,6,7,10,12,14,15,18,19,22,24,26,27,30,32,33,36,38,39,42,43,46,48,50,51,54,55,58,60,62,63,66,68,69,72,74,75,78,79,82,84,86,87,90,92,93,96,97,100,102,104,105,108,110,111,114,115,118,120,122,123,126,127,130,132,134,135,138,140,141,144,146,147,150,151,154,156,158,159,162,163,166,168,170,171,174,176,177,180,182,183,186,187,190,192,194,195,198,200 mul $0,2 mov $1,$0 seq $1,284905 ; Fixed point of the morphism 0 -> 01, 1 -> 1001. sub $1,2 sub $0,$1
54.5
348
0.695413
c79a55516fa1a28bb308d5de619d9abf9e4b10ab
4,615
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1557.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1557.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1557.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r8 push %rax push %rbp push %rbx push %rdx lea addresses_A_ht+0x171bb, %r15 nop nop nop nop nop xor %r8, %r8 mov (%r15), %eax nop nop nop nop and %r13, %r13 lea addresses_A_ht+0x176db, %rdx xor $33256, %rax mov $0x6162636465666768, %rbx movq %rbx, %xmm6 vmovups %ymm6, (%rdx) nop nop nop xor $49990, %r13 lea addresses_WC_ht+0x965b, %r15 nop nop nop sub %rbp, %rbp movups (%r15), %xmm5 vpextrq $1, %xmm5, %rdx nop nop nop nop nop add $29293, %rbx pop %rdx pop %rbx pop %rbp pop %rax pop %r8 pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %rbp push %rdi push %rdx push %rsi // Faulty Load lea addresses_normal+0x1925b, %r12 nop nop add $20043, %rsi mov (%r12), %edi lea oracles, %rsi and $0xff, %rdi shlq $12, %rdi mov (%rsi,%rdi,1), %rdi pop %rsi pop %rdx pop %rdi pop %rbp pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 2, 'type': 'addresses_normal', 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_normal', 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A_ht', 'congruent': 4}} {'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_A_ht', 'congruent': 7}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC_ht', 'congruent': 10}} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
49.095745
2,999
0.661538
c7a171a791edd0f93c8b8de14478ef819e17c95f
691
asm
Assembly
oeis/159/A159676.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/159/A159676.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/159/A159676.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A159676: Numerator of Hermite(n, 17/20). ; Submitted by Christian Krause ; 1,17,89,-5287,-143279,1793857,173774569,801539273,-229658228959,-5186652729103,325211715731449,15901904625640633,-445133395973297039,-45731838833083568863,379905569368151630729,134507543411892570538793,1146911529897718806972481,-410926642909795006005605423,-10885252131118759045801727591,1294286628246243117841550153753,63366830778437417377352917459601,-4099910389751536375951201018198783,-335839165895213271376052670639703511,12330339894688134440792389079199685513 add $0,1 mov $3,1 lpb $0 sub $0,1 add $2,$3 mov $3,$1 mov $1,$2 mul $2,18 sub $2,$1 mul $3,-100 mul $3,$0 mul $3,2 lpe mov $0,$1
36.368421
467
0.807525
ebd1a3b06008f35dd8cb228e3d24c52126b842e0
275
asm
Assembly
oeis/138/A138463.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/138/A138463.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/138/A138463.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A138463: A bisection of A006318. ; Submitted by Jon Maiga ; 2,22,394,8558,206098,5293446,142078746,3937603038,111818026018,3236724317174,95149655201962 add $0,1 mul $0,2 sub $0,1 seq $0,6318 ; Large Schröder numbers (or large Schroeder numbers, or big Schroeder numbers).
30.555556
93
0.774545
7f07fdc8f628a944082fbff750d37d6dee73c85e
7,558
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_376.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_376.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_376.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %r15 push %r9 push %rcx push %rdi push %rsi lea addresses_WT_ht+0x642a, %rsi lea addresses_WC_ht+0x1d756, %rdi nop nop nop nop nop xor %r12, %r12 mov $103, %rcx rep movsb nop nop cmp %r10, %r10 lea addresses_A_ht+0x1049e, %rsi nop nop nop nop sub $5924, %r9 movb (%rsi), %r12b nop nop nop nop nop cmp %rsi, %rsi lea addresses_WC_ht+0x1aa97, %r9 nop nop nop lfence movl $0x61626364, (%r9) nop cmp %rdi, %rdi lea addresses_normal_ht+0x1549e, %rsi lea addresses_UC_ht+0x5f, %rdi and $62172, %r15 mov $51, %rcx rep movsl nop nop nop nop add $56219, %r9 lea addresses_normal_ht+0x154a7, %rcx nop nop add %rsi, %rsi vmovups (%rcx), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $0, %xmm3, %r14 nop nop xor $32151, %r15 lea addresses_WT_ht+0xd89e, %rsi nop nop add %r14, %r14 mov $0x6162636465666768, %r10 movq %r10, %xmm2 vmovups %ymm2, (%rsi) nop inc %rsi lea addresses_UC_ht+0x159e, %r15 nop nop nop nop nop sub %r14, %r14 movl $0x61626364, (%r15) nop sub %rsi, %rsi lea addresses_WT_ht+0x18ed4, %r14 nop nop xor %rcx, %rcx mov (%r14), %rsi nop nop nop nop nop and %rdi, %rdi lea addresses_WT_ht+0xac2, %rsi lea addresses_D_ht+0x7d7e, %rdi clflush (%rsi) nop nop nop and %r12, %r12 mov $57, %rcx rep movsq nop cmp $18146, %r10 lea addresses_UC_ht+0x15b9e, %rsi lea addresses_A_ht+0x148de, %rdi clflush (%rsi) cmp %r12, %r12 mov $95, %rcx rep movsl nop nop nop nop nop sub $4244, %rdi lea addresses_D_ht+0x479e, %r14 nop nop nop nop xor $49383, %r15 and $0xffffffffffffffc0, %r14 movntdqa (%r14), %xmm4 vpextrq $1, %xmm4, %rcx nop nop nop dec %r9 lea addresses_normal_ht+0x140a, %rdi nop nop nop nop add $7179, %rsi movb $0x61, (%rdi) nop nop nop nop nop sub %r14, %r14 lea addresses_WT_ht+0x83de, %r12 clflush (%r12) nop cmp %rcx, %rcx mov (%r12), %r15 nop nop nop nop nop and $17331, %rsi pop %rsi pop %rdi pop %rcx pop %r9 pop %r15 pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r9 push %rax push %rbx push %rcx push %rdx // Store lea addresses_WC+0x2c9e, %rdx dec %r9 movl $0x51525354, (%rdx) nop nop nop xor %rcx, %rcx // Faulty Load lea addresses_PSE+0x1c9e, %r11 nop nop nop sub $64550, %rax mov (%r11), %rcx lea oracles, %r9 and $0xff, %rcx shlq $12, %rcx mov (%r9,%rcx,1), %rcx pop %rdx pop %rcx pop %rbx pop %rax pop %r9 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WC', 'size': 4, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}} {'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False}} {'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}} {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False}} {'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}} {'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}} {'src': {'same': False, 'congruent': 7, 'NT': True, 'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': True, 'congruent': 1, 'NT': False, 'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False}} {'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
33.149123
2,999
0.657581
ba3456bb47d80f7cf40df5b4ba1e2e30db94a093
902
asm
Assembly
programs/oeis/288/A288203.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/288/A288203.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/288/A288203.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A288203: Fixed point of the mapping 00->0010, 1->010, starting with 00. ; 0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0 mov $7,$0 mov $9,2 lpb $9,1 clr $0,7 mov $0,$7 sub $9,1 add $0,$9 mov $2,$0 lpb $2,1 mov $3,$2 mul $4,2 add $4,2 sub $2,$4 trn $2,1 lpe add $4,$3 sub $4,1 div $4,4 mov $1,$4 mov $10,$9 lpb $10,1 mov $8,$1 sub $10,1 lpe lpe lpb $7,1 mov $7,0 sub $8,$1 lpe mov $1,$8
26.529412
501
0.496674
9bfb65e3c56730c4ab31cd6b6b19c8d6b0004b38
5,870
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1111.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1111.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1111.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_UC_ht+0x18240, %rsi lea addresses_UC_ht+0xb15, %rdi nop nop xor %r8, %r8 mov $47, %rcx rep movsq nop nop and %r8, %r8 lea addresses_D_ht+0x11f40, %rsi lea addresses_UC_ht+0x12aa0, %rdi nop nop and %r15, %r15 mov $12, %rcx rep movsq cmp $26231, %rcx lea addresses_D_ht+0xf250, %rsi lea addresses_normal_ht+0xc580, %rdi nop nop and %r15, %r15 mov $121, %rcx rep movsq add %rcx, %rcx lea addresses_WT_ht+0x16134, %rsi lea addresses_D_ht+0xa570, %rdi nop nop nop nop nop cmp %r9, %r9 mov $48, %rcx rep movsl nop nop nop nop cmp $14468, %rcx lea addresses_WC_ht+0x1dc18, %rsi lea addresses_UC_ht+0x1ed0d, %rdi nop nop nop nop inc %r13 mov $5, %rcx rep movsl nop nop nop sub $24944, %rsi lea addresses_D_ht+0x9d0c, %rcx nop nop dec %rsi mov $0x6162636465666768, %r15 movq %r15, %xmm2 and $0xffffffffffffffc0, %rcx vmovntdq %ymm2, (%rcx) add $40761, %r9 lea addresses_A_ht+0x19228, %rcx nop nop nop add $20870, %rdi mov $0x6162636465666768, %r9 movq %r9, %xmm6 movups %xmm6, (%rcx) sub $53411, %r13 pop %rsi pop %rdi pop %rcx pop %r9 pop %r8 pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r15 push %rax push %rdx // Faulty Load lea addresses_normal+0x1fa40, %rdx add $22379, %rax vmovups (%rdx), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $0, %xmm1, %r11 lea oracles, %r15 and $0xff, %r11 shlq $12, %r11 mov (%r15,%r11,1), %r11 pop %rdx pop %rax pop %r15 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_normal', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_normal', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 10, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_UC_ht'}} {'src': {'same': False, 'congruent': 7, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_UC_ht'}} {'src': {'same': False, 'congruent': 3, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_normal_ht'}} {'src': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_D_ht'}} {'src': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 2, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16}} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
44.135338
2,999
0.664395
42c6ea77436e07207db30ad970f4cde93c26e649
86
asm
Assembly
gfx/pokemon/poliwag/anim.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
gfx/pokemon/poliwag/anim.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
gfx/pokemon/poliwag/anim.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
frame 0, 12 frame 3, 24 setrepeat 2 frame 0, 08 frame 1, 08 dorepeat 3 endanim
10.75
12
0.674419
e316992c0bc229a0c9b34174419088bd8ea5a2b8
605
asm
Assembly
oeis/038/A038470.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/038/A038470.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/038/A038470.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A038470: Sums of 2 distinct powers of 4. ; Submitted by Jon Maiga ; 5,17,20,65,68,80,257,260,272,320,1025,1028,1040,1088,1280,4097,4100,4112,4160,4352,5120,16385,16388,16400,16448,16640,17408,20480,65537,65540,65552,65600,65792,66560,69632,81920,262145,262148,262160 seq $0,48645 ; Integers with one or two 1-bits in their binary expansion. seq $0,71162 ; Simple rewriting of binary expansion of n resulting A014486-codes for rooted binary trees with height equal to number of internal vertices. (Binary trees where at each internal vertex at least the other child is leaf). div $0,2 mul $0,3 add $0,2
60.5
233
0.775207
a70f89416620395dcc30f328b30fa5f216413cda
2,655
asm
Assembly
programs/oeis/213/A213782.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/213/A213782.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/213/A213782.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A213782: Principal diagonal of the convolution array A213781. ; 1,7,19,41,72,118,176,254,347,465,601,767,954,1176,1422,1708,2021,2379,2767,3205,3676,4202,4764,5386,6047,6773,7541,8379,9262,10220,11226,12312,13449,14671,15947,17313,18736,20254,21832,23510,25251,27097,29009,31031,33122,35328,37606,40004,42477,45075,47751,50557,53444,56466,59572,62818,66151,69629,73197,76915,80726,84692,88754,92976,97297,101783,106371,111129,115992,121030,126176,131502,136939,142561,148297,154223,160266,166504,172862,179420,186101,192987,199999,207221,214572,222138,229836,237754,245807,254085,262501,271147,279934,288956,298122,307528,317081,326879,336827,347025,357376,367982,378744,389766,400947,412393,424001,435879,447922,460240,472726,485492,498429,511651,525047,538733,552596,566754,581092,595730,610551,625677,640989,656611,672422,688548,704866,721504,738337,755495,772851,790537,808424,826646,845072,863838,882811,902129,921657,941535,961626,982072,1002734,1023756,1044997,1066603,1088431,1110629,1133052,1155850,1178876,1202282,1225919,1249941,1274197,1298843,1323726,1349004,1374522,1400440,1426601,1453167,1479979,1507201,1534672,1562558,1590696,1619254,1648067,1677305,1706801,1736727,1766914,1797536,1828422,1859748,1891341,1923379,1955687,1988445,2021476,2054962,2088724,2122946,2157447,2192413,2227661,2263379,2299382,2335860,2372626,2409872,2447409,2485431,2523747,2562553,2601656,2641254,2681152,2721550,2762251,2803457,2844969,2886991,2929322,2972168,3015326,3059004,3102997,3147515,3192351,3237717,3283404,3329626,3376172,3423258,3470671,3518629,3566917,3615755,3664926,3714652,3764714,3815336,3866297,3917823,3969691,4022129,4074912,4128270,4181976,4236262,4290899,4346121,4401697,4457863,4514386,4571504,4628982,4687060,4745501,4804547,4863959,4923981,4984372,5045378,5106756,5168754,5231127,5294125 mov $16,$0 mov $18,$0 add $18,1 lpb $18 clr $0,16 mov $0,$16 sub $18,1 sub $0,$18 mov $13,$0 mov $15,$0 add $15,1 lpb $15 mov $0,$13 sub $15,1 sub $0,$15 mov $9,$0 mov $11,2 lpb $11 mov $0,$9 sub $11,1 add $0,$11 sub $0,1 mov $1,$0 mov $7,$0 add $7,5 mov $8,$0 lpb $0 gcd $7,2 add $7,$1 add $7,2 trn $1,$7 add $1,3 add $4,1 sub $0,$4 trn $0,1 add $1,1 sub $7,2 add $7,$8 add $7,$1 mul $8,$7 lpe mov $1,$8 mov $12,$11 lpb $12 mov $10,$1 sub $12,1 lpe lpe lpb $9 mov $9,0 sub $10,$1 lpe mov $1,$10 div $1,2 add $1,1 add $14,$1 lpe add $17,$14 lpe mov $1,$17
41.484375
1,745
0.699812
6e23096a61fc256a6362a12a7530a3ad23815223
429
asm
Assembly
oeis/239/A239062.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/239/A239062.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/239/A239062.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A239062: Number of integers x, 1 <= x <= n, such that x^x == 0 (mod n). ; Submitted by Jon Maiga ; 1,1,1,2,1,1,1,3,3,1,1,2,1,1,1,7,1,3,1,2,1,1,1,4,5,1,9,2,1,1,1,15,1,1,1,6,1,1,1,4,1,1,1,2,3,1,1,8,7,5,1,2,1,9,1,4,1,1,1,2,1,1,3,31,1,1,1,2,1,1,1,12,1,1,5,2,1,1,1,8,26,1,1,2,1,1,1,4,1,3,1,2,1,1,1,16,1,7,3,10 add $0,1 mov $2,$0 lpb $0 mov $3,$0 sub $0,1 pow $3,$3 mod $3,$2 add $3,1 cmp $3,1 add $1,$3 lpe mov $0,$1
25.235294
207
0.522145
23302bceaaf6f27d9f1c11bdb5fa4609c6822b2f
327
asm
Assembly
libsrc/_DEVELOPMENT/math/float/am9511/c/sccz80/cam32_sccz80_neg.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/am9511/c/sccz80/cam32_sccz80_neg.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/am9511/c/sccz80/cam32_sccz80_neg.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_fp_am9511 PUBLIC cam32_sccz80_neg EXTERN cam32_sccz80_read1, asm_am9511_neg ; negate sccz80 floats ; ; enter : stack = sccz80_float number, ret ; ; exit : DEHL = sccz80_float(-number) ; ; uses : af, bc, de, hl .cam32_sccz80_neg call cam32_sccz80_read1 jp asm_am9511_neg
17.210526
46
0.678899
a7482dac8d7dbad38fe246638623e7af6140864b
6,151
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca_notsx.log_21829_755.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca_notsx.log_21829_755.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca_notsx.log_21829_755.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r15 push %r8 push %rbp push %rcx push %rdi push %rsi lea addresses_UC_ht+0x685b, %rsi lea addresses_UC_ht+0x2d67, %rdi sub $528, %r8 mov $2, %rcx rep movsl nop and %r15, %r15 lea addresses_normal_ht+0x125b, %rsi lea addresses_WC_ht+0x1a85b, %rdi dec %r10 mov $25, %rcx rep movsw nop dec %rdi lea addresses_WC_ht+0x1acdb, %r10 nop nop nop nop xor $6550, %rbp mov $0x6162636465666768, %rcx movq %rcx, %xmm5 and $0xffffffffffffffc0, %r10 movntdq %xmm5, (%r10) nop nop nop nop cmp $23657, %rcx lea addresses_A_ht+0xf39d, %rsi nop nop cmp $45385, %rbp movb $0x61, (%rsi) and $51591, %rdi lea addresses_WC_ht+0x1947b, %rdi cmp $16359, %r8 movl $0x61626364, (%rdi) nop nop nop nop add $62150, %rcx lea addresses_UC_ht+0x9243, %r15 nop nop cmp $44160, %rsi movl $0x61626364, (%r15) nop nop add %rdi, %rdi lea addresses_normal_ht+0x1c4b, %r8 nop nop nop nop nop inc %r10 mov $0x6162636465666768, %rsi movq %rsi, %xmm4 vmovups %ymm4, (%r8) nop xor %rbp, %rbp lea addresses_A_ht+0x575b, %rdi nop nop and %rbp, %rbp mov $0x6162636465666768, %r8 movq %r8, %xmm7 vmovups %ymm7, (%rdi) nop nop and %rbp, %rbp lea addresses_D_ht+0x1785b, %rbp clflush (%rbp) nop nop nop xor $11602, %rdi mov (%rbp), %r8w nop nop and %r15, %r15 pop %rsi pop %rdi pop %rcx pop %rbp pop %r8 pop %r15 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %r15 push %rax // Faulty Load lea addresses_PSE+0x305b, %rax nop nop nop nop nop inc %r12 mov (%rax), %r10w lea oracles, %r12 and $0xff, %r10 shlq $12, %r10 mov (%r12,%r10,1), %r10 pop %rax pop %r15 pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_UC_ht'}, 'dst': {'same': True, 'congruent': 2, 'type': 'addresses_UC_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 6}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 1}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 3}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 4}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 3}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 11}} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
41.281879
2,999
0.660218
02c82e4d0b68f7b7e69d5b568ec9fc611289dbd9
3,554
asm
Assembly
src/core/external/jpeg-6bx/jsimddjg.asm
miahmie/krkrz
e4948f61393ca4a2acac0301a975165dd4efc643
[ "Unlicense", "Apache-2.0", "Libpng", "FTL", "IJG" ]
4
2017-01-06T14:31:26.000Z
2019-08-15T04:47:11.000Z
src/core/external/jpeg-6bx/jsimddjg.asm
miahmie/krkrz
e4948f61393ca4a2acac0301a975165dd4efc643
[ "Unlicense", "Apache-2.0", "Libpng", "FTL", "IJG" ]
null
null
null
src/core/external/jpeg-6bx/jsimddjg.asm
miahmie/krkrz
e4948f61393ca4a2acac0301a975165dd4efc643
[ "Unlicense", "Apache-2.0", "Libpng", "FTL", "IJG" ]
2
2017-08-23T13:55:19.000Z
2021-02-13T11:39:54.000Z
; ; jsimddjg.asm - SIMD instruction support check (for DJGPP V.2) ; ; x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see copyright notice in jsimdext.inc ; ; This file should be assembled with NASM (Netwide Assembler), ; can *not* be assembled with Microsoft's MASM or any compatible ; assembler (including Borland's Turbo Assembler). ; NASM is available from http://nasm.sourceforge.net/ or ; http://sourceforge.net/project/showfiles.php?group_id=6208 ; ; Last Modified : September 26, 2004 ; ; [TAB8] %include "jsimdext.inc" ; -------------------------------------------------------------------------- SECTION SEG_TEXT BITS 32 ; ; Check if the OS supports SIMD instructions (DJGPP V.2) ; ; GLOBAL(unsigned int) ; jpeg_simd_os_support (unsigned int simd) ; %define EXCEPTION_ILLEGAL_INSTRUCTION 6 ; vector number of #UD %define simd ebp+8 ; unsigned int simd %define mxcsr ebp-4 ; unsigned int mxcsr = 0x1F80 align 16 global EXTN(jpeg_simd_os_support) EXTN(jpeg_simd_os_support): push ebp mov ebp,esp push dword 0x1F80 ; default value of MXCSR register push ebx push DWORD [simd] ; simd_flags - modified from exception_handler mov bl, EXCEPTION_ILLEGAL_INSTRUCTION mov ax, 0x0202 ; Get Processor Exception Handler Vector int 0x31 ; DPMI function call push ecx ; selector of old exception handler push edx ; offset of old exception handler mov ecx,cs mov edx, exception_handler mov bl, EXCEPTION_ILLEGAL_INSTRUCTION mov ax, 0x0203 ; Set Processor Exception Handler Vector int 0x31 ; DPMI function call mov eax, DWORD [simd] ; If floating point emulation is enabled (CR0.EM = 1), ; executing an MMX/3DNow! instruction generates invalid ; opcode exception (#UD). push byte (.mmx_1 - .mmx_0) ; inst_bytes push byte (JSIMD_MMX | JSIMD_3DNOW) ; test_flags test eax, DWORD [esp] jz short .mmx_1 .mmx_0: emms ; executing MMX instruction .mmx_1: add esp, byte 8 push byte (.sse_1 - .sse_0) push byte (JSIMD_SSE | JSIMD_SSE2) test eax, DWORD [esp] jz short .sse_1 .sse_0: ldmxcsr DWORD [mxcsr] ; executing SSE instruction .sse_1: add esp, byte 8 pop edx ; offset of old exception handler pop ecx ; selector of old exception handler mov bl, EXCEPTION_ILLEGAL_INSTRUCTION mov ax, 0x0203 ; Set Processor Exception Handler Vector int 0x31 ; DPMI function call pop eax ; return simd_flags and eax, byte JSIMD_ALL pop ebx mov esp,ebp pop ebp ret ; -------------------------------------------------------------------------- ; ; LOCAL(void) far ; exception_handler (unsigned long error_code, ; void * context_eip, unsigned short context_cs, ; unsigned long context_eflags, ; void * context_esp, unsigned short context_ss); ; %define error_code esp+12+8 ; unsigned long error_code %define context_eip esp+12+12 ; void * context_eip %define context_cs esp+12+16 ; unsigned short context_cs %define context_eflags esp+12+20 ; unsigned long context_eflags %define context_esp esp+12+24 ; void * context_esp %define context_ss esp+12+28 ; unsigned short context_ss %define test_flags(b) (b)+0 %define inst_bytes(b) (b)+4 %define simd_flags(b) (b)+16 align 16 exception_handler: push eax push ecx push edx mov eax, POINTER [context_esp] mov ecx, DWORD [test_flags(eax)] mov edx, DWORD [inst_bytes(eax)] not ecx add POINTER [context_eip], edx ; next instruction and DWORD [simd_flags(eax)], ecx ; turn off flag pop edx pop ecx pop eax retf
27.129771
78
0.702589
818deaa3238a53bca293e4941fe74e0ee1e5d2f8
297
asm
Assembly
programs/oeis/155/A155634.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/155/A155634.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/155/A155634.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A155634: 7^n + 5^n - 1. ; 1,11,73,467,3025,19931,133273,901667,6155425,42306731,292240873,2026154867,14085427825,98109713531,684326588473,4778079088067,33385518460225,233393453440331,1632228295176073,11417968671701267 mov $1,7 pow $1,$0 add $1,3 mov $2,5 pow $2,$0 add $1,$2 sub $1,4 mov $0,$1
24.75
193
0.754209
3462dbefa8577caf44687184dd324422cee0a307
853
asm
Assembly
oeis/229/A229582.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/229/A229582.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/229/A229582.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A229582: Number of defective 3-colorings of an n X 4 0..2 array connected horizontally and antidiagonally with exactly one mistake, and colors introduced in row-major 0..2 order. ; 6,116,1620,19764,224532,2440692,25745364,265720500,2697594516,27033340788,268094978388,2636009007156,25732468879380,249667710249204,2409688805255892,23151313964420532,221538858133842324,2112443015291098740,20079326766398549076,190319997556594885428,1799334487940425462548,16972100980843472606196,159751724132008044445140,1500790854927823518910644,14074345734008171740335252,131774163962993386294272372,1231912946879219042329747284,11500725762823478472099388980,107228115033605870069079471636 mul $0,2 seq $0,268622 ; Number of n X 2 0..2 arrays with some element plus some horizontally or vertically adjacent neighbor totalling two no more than once. div $0,3 mul $0,2
106.625
493
0.866354
cf60ad17f63e2c8e864c9e0f1a6a4257d0d67a63
554
asm
Assembly
oeis/016/A016838.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/016/A016838.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/016/A016838.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A016838: a(n) = (4n + 3)^2. ; 9,49,121,225,361,529,729,961,1225,1521,1849,2209,2601,3025,3481,3969,4489,5041,5625,6241,6889,7569,8281,9025,9801,10609,11449,12321,13225,14161,15129,16129,17161,18225,19321,20449,21609,22801,24025,25281,26569,27889,29241,30625,32041,33489,34969,36481,38025,39601,41209,42849,44521,46225,47961,49729,51529,53361,55225,57121,59049,61009,63001,65025,67081,69169,71289,73441,75625,77841,80089,82369,84681,87025,89401,91809,94249,96721,99225,101761,104329,106929,109561,112225,114921,117649,120409 mul $0,4 add $0,3 pow $0,2
79.142857
495
0.785199
66a628c54f578c0e0116359aed5a10f804e9c142
568
asm
Assembly
oeis/072/A072173.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/072/A072173.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/072/A072173.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A072173: a(n) = (2*n+1)*239^(2*n+1). ; Submitted by Christian Krause ; 239,40955757,3899056325995,311805194956024553,22899374409963958061031,1598709646931895970271741029,107923510786468980575690686466147,7113114068808339968612339655730133985,460482613887654678993386180604955781138143,29397724727626925615108413436728112018437968221,1855988216710648946277513755910856643089952570409819,116112655586417452599395754989611093958507007514796344537,7209207608425816641228353174740842715221607365492045648149975 mul $0,2 add $0,1 mov $1,239 pow $1,$0 mul $1,$0 mov $0,$1
51.636364
436
0.876761
3da51de21a2063efb4923e1feec39750560eba9f
730
asm
Assembly
Second Stage/A20/A20_Checking.asm
marmil03/Project-Lithosphere
c0f109ac982dae0cba61f37e1c944048391d441c
[ "MIT" ]
null
null
null
Second Stage/A20/A20_Checking.asm
marmil03/Project-Lithosphere
c0f109ac982dae0cba61f37e1c944048391d441c
[ "MIT" ]
null
null
null
Second Stage/A20/A20_Checking.asm
marmil03/Project-Lithosphere
c0f109ac982dae0cba61f37e1c944048391d441c
[ "MIT" ]
null
null
null
A20_BIOS: mov ax, 0x2401 int 0x15 ret A20_Keyboard_Controller: cli call A20_wait mov al,0xAD out 0x64,al call A20_wait mov al,0xD0 out 0x64,al call A20_wait2 in al,0x60 push eax call A20_wait mov al,0xD1 out 0x64,al call A20_wait pop eax or al,2 out 0x60,al call A20_wait mov al,0xAE out 0x64,al call A20_wait sti ret A20_wait: in al,0x64 test al,2 jnz A20_wait ret A20_wait2: in al,0x64 test al,1 jz A20_wait2 ret A20_Fast_Gate: in al, 0x92 or al, 2 out 0x92, al ret
13.518519
25
0.50137
faa8c91036d59ec5b69da46a4da0bf2ce71bc756
2,148
asm
Assembly
libsrc/_DEVELOPMENT/fcntl/z80/asm_read.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/fcntl/z80/asm_read.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/fcntl/z80/asm_read.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; =============================================================== ; October 2014 ; =============================================================== ; ; ssize_t read(int fd, void *buf, size_t nbyte) ; ; Read a maximum of nbytes bytes from the stream. ; ; =============================================================== INCLUDE "config_private.inc" SECTION code_clib SECTION code_fcntl PUBLIC asm_read EXTERN __fcntl_fdstruct_from_fd_2, l_jpix EXTERN error_znc, error_mc, error_eacces_mc asm_read: ; enter : hl = int fd ; de = void *buf ; bc = size_t nbyte ; ; exit : success ; ; hl = number of bytes read ; de'= void *buf + num bytes read ; carry reset ; ; fail on stream error ; ; hl = -1 ; carry set, errno set ; ; uses : af, bc, de, hl, exx, ix ld a,b or c jp z, error_znc ; if nbyte == 0 indicate no bytes read push bc ; save nbyte push hl ; save fd exx pop hl ; hl = fd ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $08 EXTERN __fcntl_lock_fdtbl call __fcntl_lock_fdtbl ENDIF ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; call __fcntl_fdstruct_from_fd_2 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $08 EXTERN __fcntl_unlock_fdtbl call __fcntl_unlock_fdtbl ENDIF ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; pop hl ; hl = nbyte jp c, error_mc ; if fd is invalid ; ix = FDSTRUCT * ; hl = nbyte > 0 ; de'= void *buf ; bc'= nbyte > 0 bit 0,(ix+8) jp z, error_eacces_mc ; if reads not allowed ld a,STDIO_MSG_READ call l_jpix ; deliver message to driver jr c, fail success: ld l,c ld h,b ; hl = num bytes read ret fail: ld a,b or c jr nz, success ; success if num bytes read != 0 inc l jp z, error_znc ; if at eof return num bytes read == 0 jp error_mc ; indicate error
20.457143
69
0.451117
5c3e14d1513f1ac28d4fb722ac064aa19c4cbb25
1,209
asm
Assembly
汇编语言/实验/exp2/2.asm
wine99/hfut-cs-assignments
77ebe4b5fe613f90eb54b8bdcfd1d8afbbd321da
[ "MIT" ]
56
2020-05-28T15:21:47.000Z
2022-03-29T08:54:55.000Z
汇编语言/实验/exp2/2.asm
wine99/hfut-cs-assignments
77ebe4b5fe613f90eb54b8bdcfd1d8afbbd321da
[ "MIT" ]
2
2020-05-29T03:49:05.000Z
2021-08-04T00:43:26.000Z
汇编语言/实验/exp2/2.asm
wine99/hfut-cs-assignments
77ebe4b5fe613f90eb54b8bdcfd1d8afbbd321da
[ "MIT" ]
14
2021-05-22T04:52:47.000Z
2022-03-29T08:55:00.000Z
; Display day of week based on the input number. .model small .stack 100h .data table dw day1, day2, day3, day4, day5, day6, day7 crlf db 0dh, 0ah, '$' s0 db 'please input number between 1 to 7$' s1 db 'Monday$' s2 db 'Tuesday$' s3 db 'Wednesday$' s4 db 'Thursday$' s5 db 'Friday$' s6 db 'Saturday$' s7 db 'Sunday$' .code printStr MACRO strAddr push dx push ax lea dx, strAddr mov ah, 9 int 21h pop ax pop dx ENDM start: mov ax, @data mov ds, ax input: lea dx, s0 mov ah, 9 int 21h printStr crlf mov ah, 1 int 21h ; store the input char in bx mov bx, ax printStr crlf cmp bl, '1' jb input cmp bl, '7' ja input and bx, 000fh dec bx shl bx, 1 jmp table[bx] display: mov ah, 9 int 21h printStr crlf mov ah, 4ch int 21h day1: lea dx, s1 jmp display day2: lea dx, s2 jmp display day3: lea dx, s3 jmp display day4: lea dx, s4 jmp display day5: lea dx, s5 jmp display day6: lea dx, s6 jmp display day7: lea dx, s7 jmp display end start
13.58427
55
0.543424
816833e96199b636db2dea4765f8e812af63bb31
1,480
asm
Assembly
Lab03_Prelim_b.asm
Hanzallah/MIPS-Recursion
bb3018a2b234c69f83d1bfeba89e09ed7ba85fdf
[ "MIT" ]
null
null
null
Lab03_Prelim_b.asm
Hanzallah/MIPS-Recursion
bb3018a2b234c69f83d1bfeba89e09ed7ba85fdf
[ "MIT" ]
null
null
null
Lab03_Prelim_b.asm
Hanzallah/MIPS-Recursion
bb3018a2b234c69f83d1bfeba89e09ed7ba85fdf
[ "MIT" ]
null
null
null
############################# # Text Segment # def mult(noOfDigits, string): # if (noOfDigits == 0): # return 1 # else: # return int(string[0]) * mult(noOfDigits - 1,string[1:]) # count = mult(3,"227") # print(count) ############################# .globl main main: li $v0, 8 la $a0, inputString li $a1, 1024 syscall # count number of digits move $t0, $a0 li $a1, -1 for: lb $t1, ($t0) bne $t1, $zero, adder beq $t1, $zero, cont adder: addi $a1, $a1, 1 addi $t0, $t0, 1 j for cont: li $v0, 1 jal mult move $a0, $v0 li $v0, 1 syscall li $v0, 10 syscall mult: addi $sp, $sp, -12 sw $a0, 8($sp) sw $a1, 4($sp) sw $ra, ($sp) beq $a1, $zero, continue j else continue: sll $v0, $v0, 0 addi $sp, $sp, 12 jr $ra else: sub $a1, $a1, 1 # noOfDigits - 1 li $t0, 0 lb $t0, ($a0) li $s4, 0 addi $s4, $t0, -48 mult $v0, $s4 mflo $v0 addi $a0, $a0, 1 # string[1:] jal mult lw $ra, ($sp) addi $sp, $sp, 12 jr $ra ############################# # Data Segment ############################# .data # Max. 256 char string inputString: .space 1024
18.734177
65
0.374324
c34550d9fce8c728c1d4e7a66ffeff16fa8dad7d
11,911
asm
Assembly
Sem-4/COA LAB Programs/ASM-Projects/snake.asm
rituraj-iter/ASSIGNMENTS
f317a2990bac43202314320d6d97356498c44603
[ "MIT" ]
10
2021-04-24T11:46:48.000Z
2022-01-17T05:14:37.000Z
Sem-4/COA LAB Programs/ASM-Projects/snake.asm
rituraj-iter/ASSIGNMENTS
f317a2990bac43202314320d6d97356498c44603
[ "MIT" ]
2
2021-06-28T11:51:50.000Z
2021-11-01T08:21:53.000Z
Sem-4/COA LAB Programs/ASM-Projects/snake.asm
rituraj-iter/ASSIGNMENTS
f317a2990bac43202314320d6d97356498c44603
[ "MIT" ]
16
2021-04-24T11:46:58.000Z
2022-03-02T05:08:19.000Z
;******************************************************************************************************************* ; Snake Game By * ; HERO-DAI * ;******************************************************************************************************************* ;code is not well-commented, sorry about that, I'll try to comment it nice and well, but can't make any ;promises, Also, this code writes directly into the video memory instead of int 21H (21H is slow) except ;at some certain points (like displaying scores and the intro) ;and next time someone tells you to not use goto, ask them to code in assembly without goto... :P left equ 0 top equ 2 row equ 15 col equ 40 right equ left+col bottom equ top+row .model small .data msg db "Welcome to the snake game!!",0 instructions db 0AH,0DH,"Use a, s, d and f to control your snake",0AH,0DH,"Use q anytime to quit",0DH,0AH, "Press any key to continue$" quitmsg db "Thanks for playing! hope you enjoyed",0 gameovermsg db "OOPS!! your snake died! :P ", 0 scoremsg db "Score: ",0 head db '^',10,10 body db '*',10,11, 3*15 DUP(0) segmentcount db 1 fruitactive db 1 fruitx db 8 fruity db 8 gameover db 0 quit db 0 delaytime db 5 .stack dw 128 dup(0) .code main proc far mov ax, @data mov ds, ax mov ax, 0b800H mov es, ax ;clearing the screen mov ax, 0003H int 10H lea bx, msg mov dx,00 call writestringat lea dx, instructions mov ah, 09H int 21h mov ah, 07h int 21h mov ax, 0003H int 10H call printbox mainloop: call delay lea bx, msg mov dx, 00 call writestringat call shiftsnake cmp gameover,1 je gameover_mainloop call keyboardfunctions cmp quit, 1 je quitpressed_mainloop call fruitgeneration call draw ;TODO: check gameover and quit jmp mainloop gameover_mainloop: mov ax, 0003H int 10H mov delaytime, 100 mov dx, 0000H lea bx, gameovermsg call writestringat call delay jmp quit_mainloop quitpressed_mainloop: mov ax, 0003H int 10H mov delaytime, 100 mov dx, 0000H lea bx, quitmsg call writestringat call delay jmp quit_mainloop quit_mainloop: ;first clear screen mov ax, 0003H int 10h mov ax, 4c00h int 21h delay proc ;this procedure uses 1A interrupt, more info can be found on ;http://www.computing.dcu.ie/~ray/teaching/CA296/notes/8086_bios_and_dos_interrupts.html mov ah, 00 int 1Ah mov bx, dx jmp_delay: int 1Ah sub dx, bx ;there are about 18 ticks in a second, 10 ticks are about enough cmp dl, delaytime jl jmp_delay ret delay endp fruitgeneration proc mov ch, fruity mov cl, fruitx regenerate: cmp fruitactive, 1 je ret_fruitactive mov ah, 00 int 1Ah ;dx contains the ticks push dx mov ax, dx xor dx, dx xor bh, bh mov bl, row dec bl div bx mov fruity, dl inc fruity pop ax mov bl, col dec dl xor bh, bh xor dx, dx div bx mov fruitx, dl inc fruitx cmp fruitx, cl jne nevermind cmp fruity, ch jne nevermind jmp regenerate nevermind: mov al, fruitx ror al,1 jc regenerate add fruity, top add fruitx, left mov dh, fruity mov dl, fruitx call readcharat cmp bl, '*' je regenerate cmp bl, '^' je regenerate cmp bl, '<' je regenerate cmp bl, '>' je regenerate cmp bl, 'v' je regenerate ret_fruitactive: ret fruitgeneration endp dispdigit proc add dl, '0' mov ah, 02H int 21H ret dispdigit endp dispnum proc test ax,ax jz retz xor dx, dx ;ax contains the number to be displayed ;bx must contain 10 mov bx,10 div bx ;dispnum ax first. push dx call dispnum pop dx call dispdigit ret retz: mov ah, 02 ret dispnum endp ;sets the cursor position, ax and bx used, dh=row, dl = column ;preserves other registers setcursorpos proc mov ah, 02H push bx mov bh,0 int 10h pop bx ret setcursorpos endp draw proc lea bx, scoremsg mov dx, 0109 call writestringat add dx, 7 call setcursorpos mov al, segmentcount dec al xor ah, ah call dispnum lea si, head draw_loop: mov bl, ds:[si] test bl, bl jz out_draw mov dx, ds:[si+1] call writecharat add si,3 jmp draw_loop out_draw: mov bl, 'F' mov dh, fruity mov dl, fruitx call writecharat mov fruitactive, 1 ret draw endp ;dl contains the ascii character if keypressed, else dl contains 0 ;uses dx and ax, preserves other registers readchar proc mov ah, 01H int 16H jnz keybdpressed xor dl, dl ret keybdpressed: ;extract the keystroke from the buffer mov ah, 00H int 16H mov dl,al ret readchar endp keyboardfunctions proc call readchar cmp dl, 0 je next_14 ;so a key was pressed, which key was pressed then solti? cmp dl, 'w' jne next_11 cmp head, 'v' je next_14 mov head, '^' ret next_11: cmp dl, 's' jne next_12 cmp head, '^' je next_14 mov head, 'v' ret next_12: cmp dl, 'a' jne next_13 cmp head, '>' je next_14 mov head, '<' ret next_13: cmp dl, 'd' jne next_14 cmp head, '<' je next_14 mov head,'>' next_14: cmp dl, 'q' je quit_keyboardfunctions ret quit_keyboardfunctions: ;conditions for quitting in here please inc quit ret keyboardfunctions endp shiftsnake proc mov bx, offset head ;determine the where should the head go solti? ;preserve the head xor ax, ax mov al, [bx] push ax inc bx mov ax, [bx] inc bx inc bx xor cx, cx l: mov si, [bx] test si, [bx] jz outside inc cx inc bx mov dx,[bx] mov [bx], ax mov ax,dx inc bx inc bx jmp l outside: ;hopefully, the snake will be shifted, i.e. moved. ;now shift the head in its proper direction and then clear the last segment. ;But don't clear the last segment if the snake has eaten the fruit pop ax ;al contains the snake head direction push dx ;dx now consists the coordinates of the last segment, we can use this to clear it lea bx, head inc bx mov dx, [bx] cmp al, '<' jne next_1 dec dl dec dl jmp done_checking_the_head next_1: cmp al, '>' jne next_2 inc dl inc dl jmp done_checking_the_head next_2: cmp al, '^' jne next_3 dec dh jmp done_checking_the_head next_3: ;must be 'v' inc dh done_checking_the_head: mov [bx],dx ;dx contains the new position of the head, now check whats in that position call readcharat ;dx ;bl contains the result cmp bl, 'F' je i_ate_fruit ;if fruit was not eaten, then clear the last segment, ;it will be cleared where? mov cx, dx pop dx cmp bl, '*' ;the snake bit itself, gameover je game_over mov bl, 0 call writecharat mov dx, cx ;check whether the snake is within the boundary cmp dh, top je game_over cmp dh, bottom je game_over cmp dl,left je game_over cmp dl, right je game_over ;balance the stack, number of segment and the coordinate of the last segment ret game_over: inc gameover ret i_ate_fruit: ; add a new segment then mov al, segmentcount xor ah, ah lea bx, body mov cx, 3 mul cx pop dx add bx, ax mov byte ptr ds:[bx], '*' mov [bx+1], dx inc segmentcount mov dh, fruity mov dl, fruitx mov bl, 0 call writecharat mov fruitactive, 0 ret shiftsnake endp ;Printbox printbox proc ;Draw a box around mov dh, top mov dl, left mov cx, col mov bl, '*' l1: call writecharat inc dl loop l1 mov cx, row l2: call writecharat inc dh loop l2 mov cx, col l3: call writecharat dec dl loop l3 mov cx, row l4: call writecharat dec dh loop l4 ret printbox endp ;dx contains row, col ;bl contains the character to write ;uses di. writecharat proc ;80x25 push dx mov ax, dx and ax, 0FF00H shr ax,1 shr ax,1 shr ax,1 shr ax,1 shr ax,1 shr ax,1 shr ax,1 shr ax,1 push bx mov bh, 160 mul bh pop bx and dx, 0FFH shl dx,1 add ax, dx mov di, ax mov es:[di], bl pop dx ret writecharat endp ;dx contains row,col ;returns the character at bl ;uses di readcharat proc push dx mov ax, dx and ax, 0FF00H shr ax,1 shr ax,1 shr ax,1 shr ax,1 shr ax,1 shr ax,1 shr ax,1 shr ax,1 push bx mov bh, 160 mul bh pop bx and dx, 0FFH shl dx,1 add ax, dx mov di, ax mov bl,es:[di] pop dx ret readcharat endp ;dx contains row, col ;bx contains the offset of the string writestringat proc push dx mov ax, dx and ax, 0FF00H shr ax,1 shr ax,1 shr ax,1 shr ax,1 shr ax,1 shr ax,1 shr ax,1 shr ax,1 push bx mov bh, 160 mul bh pop bx and dx, 0FFH shl dx,1 add ax, dx mov di, ax loop_writestringat: mov al, [bx] test al, al jz exit_writestringat mov es:[di], al inc di inc di inc bx jmp loop_writestringat exit_writestringat: pop dx ret writestringat endp main endp end main
17.751118
140
0.484258
4fc47c92ff2bf1910cc5438f6e91fcf9a495b4c1
173
asm
Assembly
test/high_low_xmm.asm
killvxk/AssemblyLine
2a20ec925532875c2f3bb5d423eb38a00bc5c91d
[ "Apache-2.0" ]
147
2021-09-01T03:52:49.000Z
2022-03-30T16:59:58.000Z
test/high_low_xmm.asm
killvxk/AssemblyLine
2a20ec925532875c2f3bb5d423eb38a00bc5c91d
[ "Apache-2.0" ]
7
2021-09-10T07:03:36.000Z
2022-03-03T23:30:58.000Z
test/high_low_xmm.asm
killvxk/AssemblyLine
2a20ec925532875c2f3bb5d423eb38a00bc5c91d
[ "Apache-2.0" ]
19
2021-09-09T10:54:44.000Z
2022-03-18T19:56:45.000Z
SECTION .TEXT GLOBAL TEST TEST: mov r9, 0x11111111 mov r10, 0x22222222 movq xmm0, r9 movq xmm1, r10 punpcklqdq xmm0, xmm1 psrldq xmm0, 8 psrldq xmm15, 8 movq rax, xmm0 ret
14.416667
22
0.763006
7d629ed566eaf68790cf5089512cd2954b3bc823
9,134
asm
Assembly
x86/Endgame_Init.asm
lantonov/asm
b9ddd4ed9a8c73cbd3600608847769f4690c293c
[ "BSD-3-Clause" ]
150
2016-11-26T05:41:31.000Z
2022-02-09T20:54:53.000Z
x86/Endgame_Init.asm
lantonov/asm
b9ddd4ed9a8c73cbd3600608847769f4690c293c
[ "BSD-3-Clause" ]
199
2016-12-07T22:13:00.000Z
2022-03-22T15:42:18.000Z
x86/Endgame_Init.asm
lantonov/asm
b9ddd4ed9a8c73cbd3600608847769f4690c293c
[ "BSD-3-Clause" ]
95
2016-11-24T22:57:13.000Z
2022-01-24T19:42:10.000Z
;the endgames.h and endgames.cpp are sloppy many different respects ; for a given material combination, say white has K+R+B verse black has K+N, ; we would like to see if we have a specialized evaluation function or scale function ; and if so, fill it into the material entry ; ; the byte EndgameEntry.entry and its copies MaterialEntry.scalingFunction, MaterialEntry.evaluationFunction ; holds the endgame entry ; if this byte is 0, the entry is considered empty ; if this byte is non zero ; bit 0 is considered the strong side ; bits 1-7 give an integer 1-127 used as an index into a fxn lookup table ; this assumes that there are no more than 127 endgame types, which is reasonable ; when an endgame is called, this byte is put in ecx and then &ed with 1 ; ; the same function would be used to handle KRBvKN as KNvKRB, so it is nec ; to use ecx to find out the strong side ; ecx=0 for KRBvKN, ecx=1 for KNvKRB ; ; We build two global tables (not per-thread) of sorted material keys ; one for evaluation functions and one for scale functions ; these are EndgameEval_Map and EndgameScale_Map ; ; There are also the global tables EndgameEval_FxnTable and EndgameScale_FxnTable ; which hold the addresses of the functions ; the index into this table is in bits 1-7 of EndgameEntry.entry ; and the corresponding members of MaterialEntry ; we use the material key to identify the configuration ; so it should be processed at run time macro GetKeys r1, r2, wmat, bmat xor r1, r1 xor r2, r2 ct#Pawn=0 ct#Knight=0 ct#Bishop=0 ct#Rook=0 ct#Queen=0 ct#King=0 iterate p, wmat xor r1, qword[Zobrist_Pieces+8*(64*(8*White+p)+ct#p)] xor r2, qword[Zobrist_Pieces+8*(64*(8*Black+p)+ct#p)] ct#p = ct#p+1 end iterate if ct#King <> 1 display 'bad wmat in get_keys' display 13,10 err end if ct#Pawn=0 ct#Knight=0 ct#Bishop=0 ct#Rook=0 ct#Queen=0 ct#King=0 iterate p, bmat xor r1, qword[Zobrist_Pieces+8*(64*(8*Black+p)+ct#p)] xor r2, qword[Zobrist_Pieces+8*(64*(8*White+p)+ct#p)] ct#p = ct#p+1 end iterate if ct#King <> 1 display 'bad bmat in get_keys' display 13,10 err end if end macro Endgame_Init: ; make sure all of our functions are registered with ; EndgameEval_Map ; EndgameScale_Map ; EndgameEval_FxnTable ; EndgameScale_FxnTable push rbx rsi rdi ; eval lea rbx, [EndgameEval_FxnTable] lea rdi, [EndgameEval_Map] ; these endgame fxns correspond to a specific material config ; and are added to the map GetKeys rcx, rdx, <King, Pawn>, <King> lea eax, [EndgameEval_KPK] mov esi, EndgameEval_KPK_index mov dword[rbx+4*rsi], eax call .Map_Insert GetKeys rcx, rdx, <King, Knight, Knight>, <King> lea eax, [EndgameEval_KNNK] mov esi, EndgameEval_KNNK_index mov dword[rbx+4*rsi], eax call .Map_Insert GetKeys rcx, rdx, <King, Bishop, Knight>, <King> lea eax, [EndgameEval_KBNK] mov esi, EndgameEval_KBNK_index mov dword[rbx+4*rsi], eax call .Map_Insert GetKeys rcx, rdx, <King, Rook>, <King, Pawn> lea eax, [EndgameEval_KRKP] mov esi, EndgameEval_KRKP_index mov dword[rbx+4*rsi], eax call .Map_Insert GetKeys rcx, rdx, <King, Rook>, <King, Bishop> lea eax, [EndgameEval_KRKB] mov esi, EndgameEval_KRKB_index mov dword[rbx+4*rsi], eax call .Map_Insert GetKeys rcx, rdx, <King, Rook>, <King, Knight> lea eax, [EndgameEval_KRKN] mov esi, EndgameEval_KRKN_index mov dword[rbx+4*rsi], eax call .Map_Insert GetKeys rcx, rdx, <King, Queen>, <King, Pawn> lea eax, [EndgameEval_KQKP] mov esi, EndgameEval_KQKP_index mov dword[rbx+4*rsi], eax call .Map_Insert GetKeys rcx, rdx, <King, Queen>, <King, Rook> lea eax, [EndgameEval_KQKR] mov esi, EndgameEval_KQKR_index mov dword[rbx+4*rsi], eax call .Map_Insert ; Assert ne, byte[rdi+(ENDGAME_EVAL_MAP_SIZE-1)*sizeof.EndgameMapEntry+EndgameMapEntry.entri], 0, 'problem1 in Endgame_Init' ; these endgame fxns correspond to many material config ; and are not added to the map lea eax, [EndgameEval_KXK] mov r8d, EndgameEval_KXK_index mov dword[rbx+4*r8], eax ; scale lea rbx, [EndgameScale_FxnTable] lea rdi, [EndgameScale_Map] ; these endgame fxns correspond to a specific material config ; and are added to the map GetKeys rcx, rdx, <King, Knight, Pawn>, <King> lea eax, [EndgameScale_KNPK] mov esi, EndgameScale_KNPK_index mov dword[rbx+4*rsi], eax call .Map_Insert GetKeys rcx, rdx, <King, Knight, Pawn>, <King, Bishop> lea eax, [EndgameScale_KNPKB] mov esi, EndgameScale_KNPKB_index mov dword[rbx+4*rsi], eax call .Map_Insert GetKeys rcx, rdx, <King, Rook, Pawn>, <King, Rook> lea eax, [EndgameScale_KRPKR] mov esi, EndgameScale_KRPKR_index mov dword[rbx+4*rsi], eax call .Map_Insert GetKeys rcx, rdx, <King, Rook, Pawn>, <King, Bishop> lea eax, [EndgameScale_KRPKB] mov esi, EndgameScale_KRPKB_index mov dword[rbx+4*rsi], eax call .Map_Insert GetKeys rcx, rdx, <King, Bishop, Pawn>, <King, Bishop> lea eax, [EndgameScale_KBPKB] mov esi, EndgameScale_KBPKB_index mov dword[rbx+4*rsi], eax call .Map_Insert GetKeys rcx, rdx, <King, Bishop, Pawn>, <King, Knight> lea eax, [EndgameScale_KBPKN] mov esi, EndgameScale_KBPKN_index mov dword[rbx+4*rsi], eax call .Map_Insert GetKeys rcx, rdx, <King, Bishop, Pawn, Pawn>, <King, Bishop> lea eax, [EndgameScale_KBPPKB] mov esi, EndgameScale_KBPPKB_index mov dword[rbx+4*rsi], eax call .Map_Insert GetKeys rcx, rdx, <King, Rook, Pawn, Pawn>, <King, Rook, Pawn> lea eax, [EndgameScale_KRPPKRP] mov esi, EndgameScale_KRPPKRP_index mov dword[rbx+4*rsi], eax call .Map_Insert ; Assert ne, byte[rdi+(ENDGAME_SCALE_MAP_SIZE-1)*sizeof.EndgameMapEntry+EndgameMapEntry.entri], 0, 'problem2 in Endgame_Init' ; these endgame fxns correspond to many material config except KPKP ; and are not added to the map lea eax, [EndgameScale_KBPsK] mov r8d, EndgameScale_KBPsK_index mov dword[rbx+4*r8], eax lea eax, [EndgameScale_KQKRPs] mov r8d, EndgameScale_KQKRPs_index mov dword[rbx+4*r8], eax lea eax, [EndgameScale_KPsK] mov r8d, EndgameScale_KPsK_index mov dword[rbx+4*r8], eax lea eax, [EndgameScale_KPKP] mov r8d, EndgameScale_KPKP_index mov dword[rbx+4*r8], eax lea rsi, [.PushToEdges] lea rdi, [PushToEdges] mov ecx, 64 rep movsb lea rsi, [.PushToCorners] lea rdi, [PushToCorners] mov ecx, 64 rep movsb lea rsi, [.PushClose] lea rdi, [PushClose] mov ecx, 8 rep movsb lea rsi, [.PushAway] lea rdi, [PushAway] mov ecx, 8 rep movsb ; lea rsi, [.KRPPKRPScaleFactors] ; lea rdi, [KRPPKRPScaleFactors] ; mov ecx, 8 ; rep movsb pop rdi rsi rbx ret .PushToEdges: db 100, 90, 80, 70, 70, 80, 90, 100 db 90, 70, 60, 50, 50, 60, 70, 90 db 80, 60, 40, 30, 30, 40, 60, 80 db 70, 50, 30, 20, 20, 30, 50, 70 db 70, 50, 30, 20, 20, 30, 50, 70 db 80, 60, 40, 30, 30, 40, 60, 80 db 90, 70, 60, 50, 50, 60, 70, 90 db 100, 90, 80, 70, 70, 80, 90, 100 .PushToCorners: db 200, 190, 180, 170, 160, 150, 140, 130 db 190, 180, 170, 160, 150, 140, 130, 140 db 180, 170, 155, 140, 140, 125, 140, 150 db 170, 160, 140, 120, 110, 140, 150, 160 db 160, 150, 140, 110, 120, 140, 160, 170 db 150, 140, 125, 140, 140, 155, 170, 180 db 140, 130, 140, 150, 160, 170, 180, 190 db 130, 140, 150, 160, 170, 180, 190, 200 .PushClose: db 0, 0, 100, 80, 60, 40, 20, 10 .PushAway: db 0, 5, 20, 40, 60, 80, 90, 100 ;.KRPPKRPScaleFactors: db 0, 9, 10, 14, 21, 44, 0, 0 .Map_Insert: ; in: rcx hash with strongside=0 ; rdx hash with strongside=1 (material flipped) ; esi index of fxn ; rdi address EndgameEval_Map or EndgameScale_Map ; ; we simply insert the two entries rcx and rdx into the assumed sorted ; array of EndgameMapEntry structs, sorted by key push rdx add esi, esi push rsi call .Insert pop rsi add esi, 1 pop rcx .Insert: ; in: rcx key to insert ; esi entry push rdi sub rdi, sizeof.EndgameMapEntry .Next: add rdi, sizeof.EndgameMapEntry mov rax, qword[rdi+EndgameMapEntry.key] mov edx, dword[rdi+EndgameMapEntry.entri] test edx, edx jz .AtEnd ; Assert ne, rax, rcx , 'assertion rax!=rcx failed in Endgame_Init: duplicate material keys' cmp rcx, rax ja .Next .Found: mov rax, qword[rdi+EndgameMapEntry.key] mov edx, dword[rdi+EndgameMapEntry.entri] test edx, edx .AtEnd: mov qword[rdi+EndgameMapEntry.key], rcx mov dword[rdi+EndgameMapEntry.entri], esi mov rcx, rax mov esi, edx lea rdi, [rdi+sizeof.EndgameMapEntry] jnz .Found pop rdi ret
28.996825
132
0.658966
a8b15d9b00b019e05d4d3c49cc48d7b6c515b661
592
asm
Assembly
oeis/154/A154376.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/154/A154376.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/154/A154376.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A154376: a(n) = 25*n^2 - 2*n. ; 23,96,219,392,615,888,1211,1584,2007,2480,3003,3576,4199,4872,5595,6368,7191,8064,8987,9960,10983,12056,13179,14352,15575,16848,18171,19544,20967,22440,23963,25536,27159,28832,30555,32328,34151,36024,37947,39920,41943,44016,46139,48312,50535,52808,55131,57504,59927,62400,64923,67496,70119,72792,75515,78288,81111,83984,86907,89880,92903,95976,99099,102272,105495,108768,112091,115464,118887,122360,125883,129456,133079,136752,140475,144248,148071,151944,155867,159840,163863,167936,172059,176232 mul $0,25 add $0,24 pow $0,2 sub $0,576 div $0,25 add $0,23
59.2
498
0.783784
3c3d872702534bfa20a61007fbe8bda9acd48932
7,390
asm
Assembly
P6/data_P6_2/cal_R_test1.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
1
2022-01-23T09:24:47.000Z
2022-01-23T09:24:47.000Z
P6/data_P6_2/cal_R_test1.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
P6/data_P6_2/cal_R_test1.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
lui $1,61993 ori $1,$1,6163 lui $2,26347 ori $2,$2,17106 lui $3,22851 ori $3,$3,65334 lui $4,61794 ori $4,$4,28939 lui $5,49020 ori $5,$5,37502 lui $6,56307 ori $6,$6,25349 mthi $1 mtlo $2 sec0: nop nop nop subu $4,$6,$2 sec1: nop nop and $6,$5,$2 subu $6,$6,$2 sec2: nop nop ori $6,$5,45228 subu $6,$6,$2 sec3: nop nop mfhi $6 subu $6,$6,$2 sec4: nop nop lhu $6,12($0) subu $3,$6,$2 sec5: nop subu $6,$2,$3 nop subu $6,$6,$2 sec6: nop xor $6,$1,$2 and $6,$4,$3 subu $0,$6,$2 sec7: nop and $6,$4,$3 addiu $6,$2,-30756 subu $4,$6,$2 sec8: nop or $6,$4,$1 mflo $6 subu $2,$6,$2 sec9: nop and $6,$3,$3 lw $6,0($0) subu $3,$6,$2 sec10: nop lui $6,52262 nop subu $3,$6,$2 sec11: nop sltiu $6,$1,3130 subu $6,$1,$6 subu $1,$6,$2 sec12: nop xori $6,$3,55660 andi $6,$4,23331 subu $5,$6,$2 sec13: nop andi $6,$2,1945 mfhi $6 subu $1,$6,$2 sec14: nop addiu $6,$1,-11855 lw $6,8($0) subu $3,$6,$2 sec15: nop mfhi $6 nop subu $5,$6,$2 sec16: nop mflo $6 sltu $6,$2,$5 subu $2,$6,$2 sec17: nop mflo $6 lui $6,14980 subu $4,$6,$2 sec18: nop mfhi $6 mflo $6 subu $6,$6,$2 sec19: nop mflo $6 lh $6,14($0) subu $6,$6,$2 sec20: nop lbu $6,12($0) nop subu $2,$6,$2 sec21: nop lh $6,4($0) slt $6,$3,$3 subu $3,$6,$2 sec22: nop lb $6,14($0) xori $6,$6,23298 subu $4,$6,$2 sec23: nop lbu $6,0($0) mflo $6 subu $3,$6,$2 sec24: nop lh $6,0($0) lh $6,6($0) subu $6,$6,$2 sec25: sltu $6,$3,$2 nop nop subu $0,$6,$2 sec26: sltu $6,$2,$3 nop and $6,$4,$2 subu $2,$6,$2 sec27: subu $6,$4,$5 nop xori $6,$2,19812 subu $4,$6,$2 sec28: sltu $6,$3,$4 nop mfhi $6 subu $6,$6,$2 sec29: or $6,$3,$3 nop lh $6,14($0) subu $2,$6,$2 sec30: nor $6,$3,$1 sltu $6,$4,$2 nop subu $5,$6,$2 sec31: nor $6,$3,$4 subu $6,$0,$2 slt $6,$2,$2 subu $3,$6,$2 sec32: xor $6,$2,$4 sltu $6,$3,$5 lui $6,57611 subu $2,$6,$2 sec33: and $6,$0,$4 slt $6,$0,$1 mflo $6 subu $3,$6,$2 sec34: subu $6,$4,$3 addu $6,$3,$5 lbu $6,6($0) subu $6,$6,$2 sec35: slt $6,$3,$3 sltiu $6,$0,9276 nop subu $1,$6,$2 sec36: addu $6,$3,$4 lui $6,7318 nor $6,$4,$3 subu $5,$6,$2 sec37: slt $6,$3,$6 andi $6,$3,36796 lui $6,64461 subu $5,$6,$2 sec38: nor $6,$2,$4 addiu $6,$1,5520 mfhi $6 subu $2,$6,$2 sec39: nor $6,$2,$4 lui $6,51809 lb $6,1($0) subu $5,$6,$2 sec40: slt $6,$1,$4 mfhi $6 nop subu $4,$6,$2 sec41: or $6,$5,$4 mflo $6 and $6,$5,$4 subu $0,$6,$2 sec42: addu $6,$1,$2 mfhi $6 lui $6,50560 subu $4,$6,$2 sec43: addu $6,$4,$2 mflo $6 mfhi $6 subu $3,$6,$2 sec44: nor $6,$3,$5 mfhi $6 lhu $6,10($0) subu $6,$6,$2 sec45: subu $6,$3,$1 lbu $6,2($0) nop subu $1,$6,$2 sec46: slt $6,$3,$3 lb $6,3($0) and $6,$3,$5 subu $4,$6,$2 sec47: or $6,$3,$2 lh $6,2($0) ori $6,$6,8786 subu $4,$6,$2 sec48: nor $6,$2,$2 lb $6,7($0) mflo $6 subu $3,$6,$2 sec49: subu $6,$4,$3 lh $6,2($0) lh $6,0($0) subu $3,$6,$2 sec50: lui $6,14370 nop nop subu $1,$6,$2 sec51: andi $6,$3,30851 nop slt $6,$5,$4 subu $3,$6,$2 sec52: xori $6,$2,30448 nop lui $6,39416 subu $4,$6,$2 sec53: xori $6,$1,31458 nop mfhi $6 subu $3,$6,$2 sec54: lui $6,63201 nop lbu $6,11($0) subu $2,$6,$2 sec55: sltiu $6,$4,9236 or $6,$2,$1 nop subu $4,$6,$2 sec56: ori $6,$3,27847 and $6,$4,$2 or $6,$2,$3 subu $5,$6,$2 sec57: addiu $6,$4,-3678 subu $6,$3,$3 lui $6,49953 subu $3,$6,$2 sec58: xori $6,$4,26403 and $6,$3,$2 mflo $6 subu $0,$6,$2 sec59: andi $6,$3,36735 subu $6,$4,$3 lw $6,0($0) subu $2,$6,$2 sec60: lui $6,15705 andi $6,$3,47757 nop subu $4,$6,$2 sec61: sltiu $6,$3,5061 addiu $6,$3,29466 addu $6,$1,$2 subu $3,$6,$2 sec62: lui $6,47220 xori $6,$5,16866 slti $6,$4,-28153 subu $2,$6,$2 sec63: addiu $6,$1,-26762 andi $6,$2,51484 mflo $6 subu $2,$6,$2 sec64: addiu $6,$4,8446 sltiu $6,$4,31238 lhu $6,10($0) subu $1,$6,$2 sec65: xori $6,$1,65120 mflo $6 nop subu $4,$6,$2 sec66: xori $6,$3,5200 mflo $6 slt $6,$3,$1 subu $2,$6,$2 sec67: sltiu $6,$2,10629 mflo $6 ori $6,$4,12923 subu $6,$6,$2 sec68: xori $6,$4,7784 mflo $6 mfhi $6 subu $4,$6,$2 sec69: sltiu $6,$2,4226 mfhi $6 lb $6,4($0) subu $0,$6,$2 sec70: andi $6,$3,23258 lh $6,2($0) nop subu $4,$6,$2 sec71: ori $6,$5,20364 lh $6,10($0) nor $6,$3,$6 subu $4,$6,$2 sec72: addiu $6,$3,-1178 lh $6,12($0) addiu $6,$5,10758 subu $2,$6,$2 sec73: ori $6,$4,22079 lw $6,12($0) mflo $6 subu $4,$6,$2 sec74: slti $6,$5,29961 lw $6,12($0) lw $6,4($0) subu $2,$6,$2 sec75: mfhi $6 nop nop subu $6,$6,$2 sec76: mfhi $6 nop xor $6,$1,$3 subu $0,$6,$2 sec77: mflo $6 nop sltiu $6,$2,14958 subu $2,$6,$2 sec78: mflo $6 nop mflo $6 subu $3,$6,$2 sec79: mflo $6 nop lh $6,10($0) subu $3,$6,$2 sec80: mflo $6 and $6,$0,$1 nop subu $3,$6,$2 sec81: mflo $6 or $6,$2,$3 sltu $6,$2,$5 subu $0,$6,$2 sec82: mflo $6 nor $6,$0,$2 slti $6,$3,-17417 subu $2,$6,$2 sec83: mflo $6 slt $6,$4,$5 mfhi $6 subu $2,$6,$2 sec84: mflo $6 and $6,$4,$2 lw $6,4($0) subu $5,$6,$2 sec85: mflo $6 sltiu $6,$1,17158 nop subu $3,$6,$2 sec86: mflo $6 sltiu $6,$5,-7480 and $6,$4,$5 subu $3,$6,$2 sec87: mflo $6 ori $6,$1,9920 sltiu $6,$4,12536 subu $1,$6,$2 sec88: mfhi $6 sltiu $6,$5,-17136 mflo $6 subu $1,$6,$2 sec89: mflo $6 ori $6,$3,2608 lbu $6,16($0) subu $3,$6,$2 sec90: mfhi $6 mfhi $6 nop subu $5,$6,$2 sec91: mfhi $6 mfhi $6 or $6,$3,$2 subu $2,$6,$2 sec92: mfhi $6 mflo $6 andi $6,$4,30477 subu $2,$6,$2 sec93: mflo $6 mfhi $6 mflo $6 subu $2,$6,$2 sec94: mflo $6 mflo $6 lhu $6,2($0) subu $5,$6,$2 sec95: mflo $6 lh $6,10($0) nop subu $5,$6,$2 sec96: mflo $6 lhu $6,2($0) nor $6,$3,$5 subu $5,$6,$2 sec97: mfhi $6 lbu $6,12($0) lui $6,33369 subu $1,$6,$2 sec98: mfhi $6 lh $6,2($0) mflo $6 subu $2,$6,$2 sec99: mfhi $6 lh $6,4($0) lh $6,8($0) subu $3,$6,$2 sec100: lh $6,10($0) nop nop subu $3,$6,$2 sec101: lh $6,0($0) nop slt $6,$3,$4 subu $4,$6,$2 sec102: lw $6,8($0) nop xori $6,$5,39547 subu $5,$6,$2 sec103: lw $6,16($0) nop mflo $6 subu $3,$6,$2 sec104: lh $6,10($0) nop lb $6,16($0) subu $4,$6,$2 sec105: lw $6,16($0) subu $6,$2,$5 nop subu $1,$6,$2 sec106: lhu $6,14($0) xor $6,$1,$5 or $6,$4,$0 subu $5,$6,$2 sec107: lh $6,4($0) or $6,$4,$0 slti $6,$3,-4910 subu $1,$6,$2 sec108: lb $6,9($0) and $6,$4,$3 mfhi $6 subu $2,$6,$2 sec109: lhu $6,4($0) addu $6,$1,$4 lhu $6,6($0) subu $4,$6,$2 sec110: lw $6,16($0) slti $6,$1,-18526 nop subu $3,$6,$2 sec111: lw $6,4($0) ori $6,$1,10192 xor $6,$2,$2 subu $6,$6,$2 sec112: lbu $6,10($0) lui $6,29952 xori $6,$5,64048 subu $4,$6,$2 sec113: lh $6,8($0) ori $6,$3,11774 mfhi $6 subu $3,$6,$2 sec114: lw $6,12($0) xori $6,$4,34706 lw $6,12($0) subu $0,$6,$2 sec115: lhu $6,4($0) mfhi $6 nop subu $1,$6,$2 sec116: lw $6,16($0) mfhi $6 sltu $6,$4,$3 subu $5,$6,$2 sec117: lhu $6,2($0) mfhi $6 xori $6,$5,17436 subu $1,$6,$2 sec118: lh $6,6($0) mfhi $6 mfhi $6 subu $6,$6,$2 sec119: lb $6,16($0) mflo $6 lhu $6,2($0) subu $3,$6,$2 sec120: lhu $6,12($0) lw $6,16($0) nop subu $1,$6,$2 sec121: lbu $6,13($0) lh $6,8($0) sltu $6,$0,$1 subu $4,$6,$2 sec122: lhu $6,8($0) lh $6,2($0) lui $6,43067 subu $2,$6,$2 sec123: lw $6,16($0) lh $6,16($0) mflo $6 subu $3,$6,$2 sec124: lw $6,8($0) lw $6,0($0) lh $6,14($0) subu $5,$6,$2
11.546875
19
0.530447
9b846ccce5248a2740868905f978b12b3ce25828
1,634
asm
Assembly
programs/oeis/269/A269691.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/269/A269691.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/269/A269691.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A269691: Number of length-5 0..n arrays with no repeated value differing from the previous repeated value by plus or minus one modulo n+1. ; 24,201,944,2995,7584,16541,32416,58599,99440,160369,248016,370331,536704,758085,1047104,1418191,1887696,2474009,3197680,4081539,5150816,6433261,7959264,9761975,11877424,14344641,17205776,20506219,24294720,28623509,33548416,39128991,45428624,52514665,60458544,69335891,79226656,90215229,102390560,115846279,130680816,146997521,164904784,184516155,205950464,229331941,254790336,282461039,312485200,345009849,380188016,418178851,459147744,503266445,550713184,601672791,656336816,714903649,777578640,844574219,916110016,992412981,1073717504,1160265535,1252306704,1350098441,1453906096,1564003059,1680670880,1804199389,1934886816,2073039911,2218974064,2373013425,2535491024,2706748891,2887138176,3077019269,3276761920,3486745359,3707358416,3938999641,4182077424,4437010115,4704226144,4984164141,5277273056,5584012279,5904851760,6240272129,6590764816,6956832171,7338987584,7737755605,8153672064,8587284191,9039150736,9509842089,9999940400,10510039699 mov $1,11 mov $5,$0 lpb $0 mov $0,0 mov $1,3 lpe add $1,13 mov $2,60 mov $6,$5 lpb $2 add $1,$6 sub $2,1 lpe mov $3,$5 lpb $3 sub $3,1 add $4,$6 lpe mov $2,74 mov $6,$4 lpb $2 add $1,$6 sub $2,1 lpe mov $3,$5 mov $4,0 lpb $3 sub $3,1 add $4,$6 lpe mov $2,40 mov $6,$4 lpb $2 add $1,$6 sub $2,1 lpe mov $3,$5 mov $4,0 lpb $3 sub $3,1 add $4,$6 lpe mov $2,10 mov $6,$4 lpb $2 add $1,$6 sub $2,1 lpe mov $3,$5 mov $4,0 lpb $3 sub $3,1 add $4,$6 lpe mov $2,1 mov $6,$4 lpb $2 add $1,$6 sub $2,1 lpe mov $0,$1
25.138462
946
0.756426
a1210f107145b3960d0aab760d0a208015e70375
258
asm
Assembly
libpal/intel_64bit_systemv_nasm/invvpid_checked.asm
mars-research/pal
5977394cda8750ff5dcb89c2bf193ec1ef4cd137
[ "MIT" ]
26
2020-01-06T23:53:17.000Z
2022-02-01T08:58:21.000Z
libpal/intel_64bit_systemv_nasm/invvpid_checked.asm
mars-research/pal
5977394cda8750ff5dcb89c2bf193ec1ef4cd137
[ "MIT" ]
30
2019-11-13T00:55:22.000Z
2022-01-06T08:09:35.000Z
libpal/intel_64bit_systemv_nasm/invvpid_checked.asm
mars-research/pal
5977394cda8750ff5dcb89c2bf193ec1ef4cd137
[ "MIT" ]
14
2019-11-15T16:56:22.000Z
2021-12-22T10:14:17.000Z
bits 64 default rel section .text global pal_execute_invvpid_checked pal_execute_invvpid_checked : invvpid rdi, [rsi] jbe pal_execute_invvpid_checked_failure mov rax, 0x1 ret pal_execute_invvpid_checked_failure : mov rax, 0x0 ret
16.125
43
0.763566
ca46b8ec12964268f7a6968442f6d932697a7886
601
asm
Assembly
screen_splitting/index.asm
cainex/c64_playground
74587cd884d478eaf0d2cd3660d1b9503a7e728b
[ "Apache-2.0" ]
null
null
null
screen_splitting/index.asm
cainex/c64_playground
74587cd884d478eaf0d2cd3660d1b9503a7e728b
[ "Apache-2.0" ]
null
null
null
screen_splitting/index.asm
cainex/c64_playground
74587cd884d478eaf0d2cd3660d1b9503a7e728b
[ "Apache-2.0" ]
null
null
null
#import "../common/common.asm" #import "../common/cia1_regs.asm" #import "../common/cia2_regs.asm" #import "../common/vic_regs.asm" #import "../common/key_consts.asm" #import "defs.asm" * = $0801 BasicUpstart(main) * = $C000 #import "main.asm" #import "init_clear_screen.asm" #import "blit_viewport.asm" #import "key_reader.asm" * = $5000 #import "minirogue-c64-map.asm" * = $4000 #import "menu-map.asm" * = $3000 #import "minirogue-c64-charset.asm" #import "minirogue-c64-colors.asm" * = $2000 #import "menu-charset.asm" #import "menu-colors.asm" * = $1000 #import "viewport_globals.asm"
17.676471
35
0.687188
b0b783049dc4feee7af755e0dc4a28d83bb8d17b
601
asm
Assembly
oeis/062/A062098.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/062/A062098.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/062/A062098.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A062098: a(n) = 7 * n!. ; Submitted by Jon Maiga ; 7,14,42,168,840,5040,35280,282240,2540160,25401600,279417600,3353011200,43589145600,610248038400,9153720576000,146459529216000,2489811996672000,44816615940096000,851515702861824000,17030314057236480000,357636595201966080000,7868005094443253760000,180964117172194836480000,4343138812132676075520000,108578470303316901888000000,2823040227886239449088000000,76222086152928465125376000000,2134218412281997023510528000000,61892333956177913681805312000000,1856770018685337410454159360000000 mov $1,$0 add $0,1 lpb $1 mul $0,$1 sub $1,1 lpe mul $0,7
50.083333
486
0.860233
4e965bdc9b639a8bddd481ad5022811ec6c1a1fd
1,602
asm
Assembly
I2C_SW_Slave_lib/I2C_SW_Slave_2313_rel_0/asm/src/main.asm
CmdrZin/chip_avr_asm_lib
e4f31d871091e2a1d578a2e44f469763172898ec
[ "MIT" ]
3
2015-04-15T14:58:12.000Z
2020-08-03T19:24:45.000Z
I2C_SW_Slave_lib/I2C_SW_Slave_2313_rel_0/asm/src/main.asm
CmdrZin/chip_avr_asm_lib
e4f31d871091e2a1d578a2e44f469763172898ec
[ "MIT" ]
null
null
null
I2C_SW_Slave_lib/I2C_SW_Slave_2313_rel_0/asm/src/main.asm
CmdrZin/chip_avr_asm_lib
e4f31d871091e2a1d578a2e44f469763172898ec
[ "MIT" ]
null
null
null
/* * I2C Software Slave Library Project * * org: 03/29/2015 * rev: * auth: Nels "Chip" Pearson * * Target: I2C Demo Board * * * NOTE: Slave Adrs: 0x23 (set in i2c_slave_sw.asm) * include path * D:\Program Files (x86)\Atmel\Atmel Toolchain\AVR Assembler\Native\2.1.1117\avrassembler\include * */ .nolist .include "tn2313Adef.inc" .list .ORG $0000 rjmp RESET .ORG PCIBaddr ; (0x0b) Pin Change Interrupt Request B rjmp portc_intr .ORG PCIDaddr ; (0x14) Pin Change Interrupt Request D rjmp portc_intr ; ;;.ORG INT_VECTORS_SIZE ; Don't code in vector table. .CSEG RESET: ; setup SP ldi R16, LOW(RAMEND) out spl, R16 ; no SPH ; JTAG disable ldi R16, $80 out MCUCR, R16 out MCUCR, R16 ; rcall i2c_init_sw_slave ; init I2C software interface as a Slave rcall slave_core_init ; enable Slave and services. ; rcall turn_led_off ; DEBUG CODE ; ;; ldi r16, (1<<PCIE_I2C) ;; out GIMSK, r16 ; ;; ldi r16, SW_SDA_EN ; (1<<PCINT_SCL) ; 0x40 ;; out PCMSK, r16 ; sei ; enable intr ; main: ; m_skip00: ; rcall slave_core_service ; I2C command service ; rcall i2c_sw_stop_det ; call at least every 1ms ; rjmp main /* * For Debug, trap any extrainious interrupts. */ trap_intr: ; put external debug trigger here or other indicator. rcall turn_led_on ; rjmp trap_intr ; DEBUG CODE ++ turn_led_on: sbi DDRD, PORTD0 sbi PORTD, PORTD0 ret turn_led_off: sbi DDRD, PORTD0 cbi PORTD, PORTD0 ret ; DEBUG CODE -- // I2C Slave code .include "i2c_slave_sw.asm" // FIFO support .include "fifo_lib.asm" // I2C Core Service .include "i2c_slave_core.asm"
16.181818
99
0.691635
34b42ccd34ec935ef91fc7f492000bc0ecc88ea2
99
asm
Assembly
libsrc/interrupts/nmi/nmi_init.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/interrupts/nmi/nmi_init.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/interrupts/nmi/nmi_init.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib PUBLIC nmi_init PUBLIC _nmi_init nmi_init: _nmi_init: ld hl,0 ret
9.9
20
0.707071
99ec182f05a63b32b720378bed7255777b57f277
505
asm
Assembly
recom.asm
Dhoulnoun/Proj_Calcasm
e144271b3a480603ced8951673df515124f999bf
[ "MIT" ]
1
2021-06-13T10:26:15.000Z
2021-06-13T10:26:15.000Z
recom.asm
Dhoulnoun/Proj_Calcasm
e144271b3a480603ced8951673df515124f999bf
[ "MIT" ]
null
null
null
recom.asm
Dhoulnoun/Proj_Calcasm
e144271b3a480603ced8951673df515124f999bf
[ "MIT" ]
null
null
null
recommence proc MOV AH,9H LEA DX,msg7 INT 21H MOV ah,1h INT 21h CMP AL,'O' JB fin_rec CMP AL,'O' JE rec CMP AL,'o' JE rec JMP fin_rec rec: CALL main fin_rec: MOV ah,4ch INT 21h recommence endp
22.954545
34
0.281188
c74c4f9fab3f13ef668638e84d785e6dac097849
16,385
asm
Assembly
PICcode/Kickbrain.asm
ValdemarOrn/KickBrain
36f85a5ddc16594ef3f5acc2686ed277965681df
[ "MIT" ]
null
null
null
PICcode/Kickbrain.asm
ValdemarOrn/KickBrain
36f85a5ddc16594ef3f5acc2686ed277965681df
[ "MIT" ]
null
null
null
PICcode/Kickbrain.asm
ValdemarOrn/KickBrain
36f85a5ddc16594ef3f5acc2686ed277965681df
[ "MIT" ]
3
2016-03-01T14:06:21.000Z
2021-07-05T13:31:49.000Z
_ADCsample: ;Kickbrain.c,12 :: unsigned ADCsample(unsigned short channel) ;Kickbrain.c,16 :: channel = (channel & 0x0F) << 2; MOVLW 15 ANDWF FARG_ADCsample_channel+0, 0 MOVWF R2 MOVF R2, 0 MOVWF R0 RLCF R0, 1 BCF R0, 0 RLCF R0, 1 BCF R0, 0 MOVF R0, 0 MOVWF FARG_ADCsample_channel+0 ;Kickbrain.c,17 :: ADCON0 = ADCON0 & 0b11000011; MOVLW 195 ANDWF ADCON0+0, 1 ;Kickbrain.c,18 :: ADCON0 = ADCON0 | channel; MOVF R0, 0 IORWF ADCON0+0, 1 ;Kickbrain.c,19 :: ADCON0.F1 = 1; BSF ADCON0+0, 1 ;Kickbrain.c,22 :: while(ADCON0.F1 == 1) L_ADCsample0: BTFSS ADCON0+0, 1 GOTO L_ADCsample1 ;Kickbrain.c,23 :: {TrySendSerial();} CALL _TrySendSerial+0, 0 GOTO L_ADCsample0 L_ADCsample1: ;Kickbrain.c,25 :: output = (ADRESH & 0b00000011); MOVLW 3 ANDWF ADRESH+0, 0 MOVWF ADCsample_output_L0+0 CLRF ADCsample_output_L0+1 MOVLW 0 ANDWF ADCsample_output_L0+1, 1 MOVLW 0 MOVWF ADCsample_output_L0+1 ;Kickbrain.c,26 :: output = output * 256; MOVF ADCsample_output_L0+0, 0 MOVWF R1 CLRF R0 MOVF R0, 0 MOVWF ADCsample_output_L0+0 MOVF R1, 0 MOVWF ADCsample_output_L0+1 ;Kickbrain.c,27 :: output = output + ADRESL; MOVF ADRESL+0, 0 ADDWF R0, 1 MOVLW 0 ADDWFC R1, 1 MOVF R0, 0 MOVWF ADCsample_output_L0+0 MOVF R1, 0 MOVWF ADCsample_output_L0+1 ;Kickbrain.c,28 :: return output; ;Kickbrain.c,29 :: } RETURN 0 ; end of _ADCsample _main: ;Kickbrain.c,31 :: void main() ;Kickbrain.c,35 :: TRISA = 0b11111111; // analog inputs MOVLW 255 MOVWF TRISA+0 ;Kickbrain.c,36 :: TRISE = 0b11111111; // analog inputs MOVLW 255 MOVWF TRISE+0 ;Kickbrain.c,37 :: TRISB = 0b11111111; // analog inputs MOVLW 255 MOVWF TRISB+0 ;Kickbrain.c,39 :: TRISC = 0b10111111; // inputs, uart TX P6 Output MOVLW 191 MOVWF TRISC+0 ;Kickbrain.c,40 :: TRISD = 0b11111110; // inputs, LED output P0 MOVLW 254 MOVWF TRISD+0 ;Kickbrain.c,42 :: PORTB = 0; CLRF PORTB+0 ;Kickbrain.c,43 :: PORTA = 0; CLRF PORTA+0 ;Kickbrain.c,44 :: PORTC = 0; CLRF PORTC+0 ;Kickbrain.c,45 :: PORTD = 0; CLRF PORTD+0 ;Kickbrain.c,48 :: INTCON = 0b00000000; CLRF INTCON+0 ;Kickbrain.c,49 :: INTCON2.F7 = 1; BSF INTCON2+0, 7 ;Kickbrain.c,50 :: INTCON3.F4 = 0; BCF INTCON3+0, 4 ;Kickbrain.c,51 :: INTCON3.F3 = 0; BCF INTCON3+0, 3 ;Kickbrain.c,54 :: OSCCON = 0b11110000; // speed of oscillator, 8Mhz MOVLW 240 MOVWF OSCCON+0 ;Kickbrain.c,55 :: OSCTUNE.F6 = 1; // PLL enabled, 8*4 = 32Mhz Operation BSF OSCTUNE+0, 6 ;Kickbrain.c,57 :: ADCON0.F0 = 1; // enable AD converter BSF ADCON0+0, 0 ;Kickbrain.c,58 :: ADCON1 = 0b00000000; // AD/digital; all analog CLRF ADCON1+0 ;Kickbrain.c,59 :: ADCON2 = 0b10110101; // 16 TAD, FOsc/16 MOVLW 181 MOVWF ADCON2+0 ;Kickbrain.c,61 :: T0CON = 0b00000000; // timer0 off CLRF T0CON+0 ;Kickbrain.c,65 :: UART1_Init(115200); MOVLW 16 MOVWF SPBRG+0 BSF TXSTA+0, 2, 0 CALL _UART1_Init+0, 0 ;Kickbrain.c,66 :: TXSTA = 0b00100100; MOVLW 36 MOVWF TXSTA+0 ;Kickbrain.c,71 :: for(k = 0; k < CHANNEL_COUNT; k++) CLRF main_k_L0+0 CLRF main_k_L0+1 L_main2: MOVLW 128 XORWF main_k_L0+1, 0 MOVWF R0 MOVLW 128 SUBWF R0, 0 BTFSS STATUS+0, 2 GOTO L__main33 MOVLW 12 SUBWF main_k_L0+0, 0 L__main33: BTFSC STATUS+0, 0 GOTO L_main3 ;Kickbrain.c,72 :: Data[k] = 0; MOVLW _Data+0 ADDWF main_k_L0+0, 0 MOVWF FSR1L MOVLW hi_addr(_Data+0) ADDWFC main_k_L0+1, 0 MOVWF FSR1H CLRF POSTINC1+0 ;Kickbrain.c,71 :: for(k = 0; k < CHANNEL_COUNT; k++) INFSNZ main_k_L0+0, 1 INCF main_k_L0+1, 1 ;Kickbrain.c,72 :: Data[k] = 0; GOTO L_main2 L_main3: ;Kickbrain.c,74 :: i = -1; MOVLW 255 MOVWF _i+0 MOVLW 255 MOVWF _i+1 ;Kickbrain.c,77 :: PORTD.F0 = 1; BSF PORTD+0, 0 ;Kickbrain.c,78 :: Delay_ms(200); MOVLW 9 MOVWF R11, 0 MOVLW 30 MOVWF R12, 0 MOVLW 228 MOVWF R13, 0 L_main5: DECFSZ R13, 1, 1 BRA L_main5 DECFSZ R12, 1, 1 BRA L_main5 DECFSZ R11, 1, 1 BRA L_main5 NOP ;Kickbrain.c,79 :: PORTD.F0 = 0; BCF PORTD+0, 0 ;Kickbrain.c,80 :: Delay_ms(200); MOVLW 9 MOVWF R11, 0 MOVLW 30 MOVWF R12, 0 MOVLW 228 MOVWF R13, 0 L_main6: DECFSZ R13, 1, 1 BRA L_main6 DECFSZ R12, 1, 1 BRA L_main6 DECFSZ R11, 1, 1 BRA L_main6 NOP ;Kickbrain.c,81 :: PORTD.F0 = 1; BSF PORTD+0, 0 ;Kickbrain.c,82 :: Delay_ms(200); MOVLW 9 MOVWF R11, 0 MOVLW 30 MOVWF R12, 0 MOVLW 228 MOVWF R13, 0 L_main7: DECFSZ R13, 1, 1 BRA L_main7 DECFSZ R12, 1, 1 BRA L_main7 DECFSZ R11, 1, 1 BRA L_main7 NOP ;Kickbrain.c,83 :: PORTD.F0 = 0; BCF PORTD+0, 0 ;Kickbrain.c,84 :: Delay_ms(200); MOVLW 9 MOVWF R11, 0 MOVLW 30 MOVWF R12, 0 MOVLW 228 MOVWF R13, 0 L_main8: DECFSZ R13, 1, 1 BRA L_main8 DECFSZ R12, 1, 1 BRA L_main8 DECFSZ R11, 1, 1 BRA L_main8 NOP ;Kickbrain.c,85 :: PORTD.F0 = 1; BSF PORTD+0, 0 ;Kickbrain.c,86 :: Delay_ms(200); MOVLW 9 MOVWF R11, 0 MOVLW 30 MOVWF R12, 0 MOVLW 228 MOVWF R13, 0 L_main9: DECFSZ R13, 1, 1 BRA L_main9 DECFSZ R12, 1, 1 BRA L_main9 DECFSZ R11, 1, 1 BRA L_main9 NOP ;Kickbrain.c,87 :: PORTD.F0 = 0; BCF PORTD+0, 0 ;Kickbrain.c,88 :: Delay_ms(200); MOVLW 9 MOVWF R11, 0 MOVLW 30 MOVWF R12, 0 MOVLW 228 MOVWF R13, 0 L_main10: DECFSZ R13, 1, 1 BRA L_main10 DECFSZ R12, 1, 1 BRA L_main10 DECFSZ R11, 1, 1 BRA L_main10 NOP ;Kickbrain.c,89 :: PORTD.F0 = 1; BSF PORTD+0, 0 ;Kickbrain.c,90 :: Delay_ms(200); MOVLW 9 MOVWF R11, 0 MOVLW 30 MOVWF R12, 0 MOVLW 228 MOVWF R13, 0 L_main11: DECFSZ R13, 1, 1 BRA L_main11 DECFSZ R12, 1, 1 BRA L_main11 DECFSZ R11, 1, 1 BRA L_main11 NOP ;Kickbrain.c,92 :: while(1) L_main12: ;Kickbrain.c,94 :: loop(); CALL _loop+0, 0 ;Kickbrain.c,95 :: } GOTO L_main12 ;Kickbrain.c,96 :: } GOTO $+0 ; end of _main _TrySendSerial: ;Kickbrain.c,98 :: void TrySendSerial() ;Kickbrain.c,102 :: if( TXSTA.F1 == 0) // check if transmit register is full BTFSC TXSTA+0, 1 GOTO L_TrySendSerial14 ;Kickbrain.c,103 :: return; RETURN 0 L_TrySendSerial14: ;Kickbrain.c,105 :: if(i == -1) MOVLW 255 XORWF _i+1, 0 BTFSS STATUS+0, 2 GOTO L__TrySendSerial34 MOVLW 255 XORWF _i+0, 0 L__TrySendSerial34: BTFSS STATUS+0, 2 GOTO L_TrySendSerial15 ;Kickbrain.c,108 :: TXREG = 0; CLRF TXREG+0 ;Kickbrain.c,109 :: } GOTO L_TrySendSerial16 L_TrySendSerial15: ;Kickbrain.c,112 :: output = Data[i]; MOVLW _Data+0 ADDWF _i+0, 0 MOVWF R0 MOVLW hi_addr(_Data+0) ADDWFC _i+1, 0 MOVWF R1 MOVFF R0, FSR0L MOVFF R1, FSR0H MOVF POSTINC0+0, 0 MOVWF TXREG+0 ;Kickbrain.c,113 :: TXREG = output; ;Kickbrain.c,114 :: Data[i] = 0; MOVFF R0, FSR1L MOVFF R1, FSR1H CLRF POSTINC1+0 ;Kickbrain.c,115 :: } L_TrySendSerial16: ;Kickbrain.c,117 :: i++; INFSNZ _i+0, 1 INCF _i+1, 1 ;Kickbrain.c,118 :: if(i >= CHANNEL_COUNT) MOVLW 128 XORWF _i+1, 0 MOVWF R0 MOVLW 128 SUBWF R0, 0 BTFSS STATUS+0, 2 GOTO L__TrySendSerial35 MOVLW 12 SUBWF _i+0, 0 L__TrySendSerial35: BTFSS STATUS+0, 0 GOTO L_TrySendSerial17 ;Kickbrain.c,119 :: i = -1; MOVLW 255 MOVWF _i+0 MOVLW 255 MOVWF _i+1 L_TrySendSerial17: ;Kickbrain.c,120 :: } RETURN 0 ; end of _TrySendSerial _loop: ;Kickbrain.c,123 :: void loop() ;Kickbrain.c,128 :: for(k=0; k < CHANNEL_COUNT; k++) CLRF loop_k_L0+0 CLRF loop_k_L0+1 L_loop18: MOVLW 128 XORWF loop_k_L0+1, 0 MOVWF R0 MOVLW 128 SUBWF R0, 0 BTFSS STATUS+0, 2 GOTO L__loop36 MOVLW 12 SUBWF loop_k_L0+0, 0 L__loop36: BTFSC STATUS+0, 0 GOTO L_loop19 ;Kickbrain.c,130 :: if(k == 10) // channel 10 is hihat channel MOVLW 0 XORWF loop_k_L0+1, 0 BTFSS STATUS+0, 2 GOTO L__loop37 MOVLW 10 XORWF loop_k_L0+0, 0 L__loop37: BTFSS STATUS+0, 2 GOTO L_loop21 ;Kickbrain.c,132 :: value = ADCsample(k); MOVF loop_k_L0+0, 0 MOVWF FARG_ADCsample_channel+0 CALL _ADCsample+0, 0 MOVF R0, 0 MOVWF loop_value_L0+0 MOVF R1, 0 MOVWF loop_value_L0+1 ;Kickbrain.c,133 :: value = value >> 2; MOVF R0, 0 MOVWF R2 MOVF R1, 0 MOVWF R3 RRCF R3, 1 RRCF R2, 1 BCF R3, 7 BTFSC R3, 6 BSF R3, 7 RRCF R3, 1 RRCF R2, 1 BCF R3, 7 BTFSC R3, 6 BSF R3, 7 MOVF R2, 0 MOVWF loop_value_L0+0 MOVF R3, 0 MOVWF loop_value_L0+1 ;Kickbrain.c,136 :: if (value <= 0) MOVLW 128 MOVWF R0 MOVLW 128 XORWF R3, 0 SUBWF R0, 0 BTFSS STATUS+0, 2 GOTO L__loop38 MOVF R2, 0 SUBLW 0 L__loop38: BTFSS STATUS+0, 0 GOTO L_loop22 ;Kickbrain.c,137 :: value = 1; MOVLW 1 MOVWF loop_value_L0+0 MOVLW 0 MOVWF loop_value_L0+1 L_loop22: ;Kickbrain.c,139 :: Data[k] = (unsigned char)value; MOVLW _Data+0 ADDWF loop_k_L0+0, 0 MOVWF FSR1L MOVLW hi_addr(_Data+0) ADDWFC loop_k_L0+1, 0 MOVWF FSR1H MOVF loop_value_L0+0, 0 MOVWF POSTINC1+0 ;Kickbrain.c,140 :: } GOTO L_loop23 L_loop21: ;Kickbrain.c,141 :: else if (k == 11) // AD channels are 0-9, channel 10 is hihat, 11 is for digital switches MOVLW 0 XORWF loop_k_L0+1, 0 BTFSS STATUS+0, 2 GOTO L__loop39 MOVLW 11 XORWF loop_k_L0+0, 0 L__loop39: BTFSS STATUS+0, 2 GOTO L_loop24 ;Kickbrain.c,143 :: value = 1 | (!PORTC.F1 << 1) | (!PORTC.F2 << 2) | (!PORTC.F3 << 3); BTFSC PORTC+0, 1 GOTO L__loop40 BSF 4056, 0 GOTO L__loop41 L__loop40: BCF 4056, 0 L__loop41: CLRF R3 BTFSC 4056, 0 INCF R3, 1 MOVF R3, 0 MOVWF R0 MOVLW 0 MOVWF R1 RLCF R0, 1 BCF R0, 0 RLCF R1, 1 MOVLW 1 IORWF R0, 0 MOVWF R4 MOVF R1, 0 MOVWF R5 MOVLW 0 IORWF R5, 1 BTFSC PORTC+0, 2 GOTO L__loop42 BSF 4056, 0 GOTO L__loop43 L__loop42: BCF 4056, 0 L__loop43: CLRF R3 BTFSC 4056, 0 INCF R3, 1 MOVF R3, 0 MOVWF R0 MOVLW 0 MOVWF R1 RLCF R0, 1 BCF R0, 0 RLCF R1, 1 RLCF R0, 1 BCF R0, 0 RLCF R1, 1 MOVF R0, 0 IORWF R4, 1 MOVF R1, 0 IORWF R5, 1 BTFSC PORTC+0, 3 GOTO L__loop44 BSF 4056, 0 GOTO L__loop45 L__loop44: BCF 4056, 0 L__loop45: CLRF R3 BTFSC 4056, 0 INCF R3, 1 MOVLW 3 MOVWF R2 MOVF R3, 0 MOVWF R0 MOVLW 0 MOVWF R1 MOVF R2, 0 L__loop46: BZ L__loop47 RLCF R0, 1 BCF R0, 0 RLCF R1, 1 ADDLW 255 GOTO L__loop46 L__loop47: MOVF R4, 0 IORWF R0, 1 MOVF R5, 0 IORWF R1, 1 MOVF R0, 0 MOVWF loop_value_L0+0 MOVF R1, 0 MOVWF loop_value_L0+1 ;Kickbrain.c,145 :: Data[k] = (unsigned char)value; MOVLW _Data+0 ADDWF loop_k_L0+0, 0 MOVWF FSR1L MOVLW hi_addr(_Data+0) ADDWFC loop_k_L0+1, 0 MOVWF FSR1H MOVF R0, 0 MOVWF POSTINC1+0 ;Kickbrain.c,146 :: } GOTO L_loop25 L_loop24: ;Kickbrain.c,149 :: value = ADCsample(k); MOVF loop_k_L0+0, 0 MOVWF FARG_ADCsample_channel+0 CALL _ADCsample+0, 0 MOVF R0, 0 MOVWF loop_value_L0+0 MOVF R1, 0 MOVWF loop_value_L0+1 ;Kickbrain.c,153 :: if(value > 255) MOVLW 128 MOVWF R2 MOVLW 128 XORWF R1, 0 SUBWF R2, 0 BTFSS STATUS+0, 2 GOTO L__loop48 MOVF R0, 0 SUBLW 255 L__loop48: BTFSC STATUS+0, 0 GOTO L_loop26 ;Kickbrain.c,154 :: value = 255; // Make sure numbers don't overflow MOVLW 255 MOVWF loop_value_L0+0 MOVLW 0 MOVWF loop_value_L0+1 L_loop26: ;Kickbrain.c,157 :: if (value <= 0) MOVLW 128 MOVWF R0 MOVLW 128 XORWF loop_value_L0+1, 0 SUBWF R0, 0 BTFSS STATUS+0, 2 GOTO L__loop49 MOVF loop_value_L0+0, 0 SUBLW 0 L__loop49: BTFSS STATUS+0, 0 GOTO L_loop27 ;Kickbrain.c,158 :: value = 1; MOVLW 1 MOVWF loop_value_L0+0 MOVLW 0 MOVWF loop_value_L0+1 L_loop27: ;Kickbrain.c,160 :: if(value > Data[k]) // preserve peaks MOVLW _Data+0 ADDWF loop_k_L0+0, 0 MOVWF FSR2L MOVLW hi_addr(_Data+0) ADDWFC loop_k_L0+1, 0 MOVWF FSR2H MOVF POSTINC2+0, 0 MOVWF R1 MOVLW 128 MOVWF R0 MOVLW 128 XORWF loop_value_L0+1, 0 SUBWF R0, 0 BTFSS STATUS+0, 2 GOTO L__loop50 MOVF loop_value_L0+0, 0 SUBWF R1, 0 L__loop50: BTFSC STATUS+0, 0 GOTO L_loop28 ;Kickbrain.c,161 :: Data[k] = (unsigned char)value; MOVLW _Data+0 ADDWF loop_k_L0+0, 0 MOVWF FSR1L MOVLW hi_addr(_Data+0) ADDWFC loop_k_L0+1, 0 MOVWF FSR1H MOVF loop_value_L0+0, 0 MOVWF POSTINC1+0 L_loop28: ;Kickbrain.c,162 :: } L_loop25: L_loop23: ;Kickbrain.c,164 :: TrySendSerial(); CALL _TrySendSerial+0, 0 ;Kickbrain.c,128 :: for(k=0; k < CHANNEL_COUNT; k++) INFSNZ loop_k_L0+0, 1 INCF loop_k_L0+1, 1 ;Kickbrain.c,165 :: } GOTO L_loop18 L_loop19: ;Kickbrain.c,168 :: } RETURN 0 ; end of _loop _serialEvent: ;Kickbrain.c,171 :: void serialEvent() { ;Kickbrain.c,172 :: while (UART1_Data_Ready()) L_serialEvent29: CALL _UART1_Data_Ready+0, 0 MOVF R0, 1 BTFSC STATUS+0, 2 GOTO L_serialEvent30 ;Kickbrain.c,176 :: input = UART1_Read(); CALL _UART1_Read+0, 0 MOVF R0, 0 MOVWF serialEvent_input_L1+0 MOVLW 0 MOVWF serialEvent_input_L1+1 ;Kickbrain.c,178 :: if(input >= 128) MOVLW 128 XORWF serialEvent_input_L1+1, 0 MOVWF R0 MOVLW 128 SUBWF R0, 0 BTFSS STATUS+0, 2 GOTO L__serialEvent51 MOVLW 128 SUBWF serialEvent_input_L1+0, 0 L__serialEvent51: BTFSS STATUS+0, 0 GOTO L_serialEvent31 ;Kickbrain.c,180 :: input = input - 128; MOVLW 128 SUBWF serialEvent_input_L1+0, 1 MOVLW 0 SUBWFB serialEvent_input_L1+1, 1 ;Kickbrain.c,181 :: } GOTO L_serialEvent32 L_serialEvent31: ;Kickbrain.c,186 :: } L_serialEvent32: ;Kickbrain.c,187 :: } GOTO L_serialEvent29 L_serialEvent30: ;Kickbrain.c,188 :: } RETURN 0 ; end of _serialEvent
24.131075
111
0.540067