source
stringclasses 1
value | id
stringlengths 40
40
| language
stringclasses 2
values | date
stringclasses 1
value | author
stringclasses 1
value | url
stringclasses 1
value | title
stringclasses 1
value | extra
stringlengths 528
1.53k
| quality_signals
stringlengths 139
178
| text
stringlengths 6
1.05M
|
---|---|---|---|---|---|---|---|---|---|
TheStack | 9980df192bd38f1f4477a720f42b10d528a142f6 | Assemblycode:Assembly | {"size": 118, "ext": "asm", "max_stars_repo_path": "s0905.asm", "max_stars_repo_name": "zhangyuesai/8086-asm-learning-code", "max_stars_repo_stars_event_min_datetime": "2018-07-23T10:30:22.000Z", "max_stars_repo_stars_event_max_datetime": "2018-07-23T10:30:22.000Z", "max_issues_repo_path": "s0905.asm", "max_issues_repo_name": "zhangyuesai/8086-asm-learning-code", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "s0905.asm", "max_forks_repo_name": "zhangyuesai/8086-asm-learning-code", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 9.8333333333, "max_line_length": 16, "alphanum_fraction": 0.7118644068} | assume cs:codesg
codesg segment
start:
mov ax,123h
jmp ax
add ax,1
db 16 dup (0)
s: inc ax
codesg ends
end start |
||||
TheStack | e19da2c18ddce3f677c1db2cb6a33200ccedaca0 | Assemblycode:Assembly | {"size": 300, "ext": "asm", "max_stars_repo_path": "4.addition_with_input.asm", "max_stars_repo_name": "PremSundarB/sum_in_MIPS_assembly_language", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "4.addition_with_input.asm", "max_issues_repo_name": "PremSundarB/sum_in_MIPS_assembly_language", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "4.addition_with_input.asm", "max_forks_repo_name": "PremSundarB/sum_in_MIPS_assembly_language", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 9.375, "max_line_length": 29, "alphanum_fraction": 0.6633333333} | .data
msg1:.asciiz"Enter Number 1 "
msg2:.asciiz"Enter Number 2 "
msg3:.asciiz"The Sum Is: "
.text
li $v0,4
la $a0,msg1
syscall
li $v0,5
syscall
move $t0,$v0
li $v0,4
la $a0,msg2
syscall
li $v0,5
syscall
move $t1,$v0
li $v0,4
la $a0,msg3
syscall
add $t2,$t1,$t0
li $v0,1
move $a0,$t2
syscall
|
||||
TheStack | 27b28084a23347d3c981f42b401c7127fbc54abe | Assemblycode:Assembly | {"size": 1604, "ext": "asm", "max_stars_repo_path": "programs/oeis/066/A066280.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/066/A066280.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/066/A066280.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 123.3846153846, "max_line_length": 1473, "alphanum_fraction": 0.9096009975} | ; A066280: a(n) = 1^n + 2^(n+1) + 3^(n+2).
; 5,12,32,90,260,762,2252,6690,19940,59562,178172,533490,1598420,4791162,14365292,43079490,129205700,387551562,1162523612,3487308690,10461401780,31383156762,94147373132,282437925090,847305386660,2541899382762,7625664593852,22876926672690,68630645800340,205891668965562,617674470025772,1853022336335490,5559064861522820,16677190289601162,50031562278868892,150094669656737490,450283974610474100,1350851855111945562,4052555427896883212,12157666008812742690,36472997476682414180,109418991330535614762,328256971792583588732,984770910979704255090,2954312724143019743060,8862938154836873184762,26588814429326247465452,79766443217609998218690,239299329512092506300740,717897988254802542191562,2153693964201457673153372,6461081891478473112617490,19383245672183619524167220,58149737012047258945131162,174449211027134577580652492,523347633063389334232475490,1570042899154139205678462500,4710128697390360022997459562,14130386092026964880916522812,42391158275792664266597856690,127173474826801532047490146580,381520424479251674637863592762,1144561273435449180904377084332,3433683820301735856694703865090,10301051460895984198047256819460,30903154382669505850068060906762,92709463147971624062056763617052,278128389443841085209875452644690,834385168331375681677036681521140,2503155504993831897125930691737562,7509466514980905395567433369560972,22528399544941535595081582697379490,67585198634822245602003313269531620,202755595904462014439527070163381162,608266787713376598585615471199716092
mov $2,$0
add $0,1
mov $1,3
pow $1,$0
mov $3,2
pow $3,$2
add $1,$3
add $1,1
mov $0,$1
|
||||
TheStack | 8bc7161c52898846a53f4d05d09725cb8f9e2550 | Assemblycode:Assembly | {"size": 5312, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca_notsx.log_21829_1210.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca_notsx.log_21829_1210.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca_notsx.log_21829_1210.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 41.8267716535, "max_line_length": 2999, "alphanum_fraction": 0.65625} | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xac53, %r12
nop
nop
nop
nop
nop
cmp $5857, %r15
movw $0x6162, (%r12)
nop
nop
nop
nop
inc %rcx
lea addresses_UC_ht+0x9f8f, %r12
and %rsi, %rsi
mov $0x6162636465666768, %rdi
movq %rdi, (%r12)
nop
nop
nop
nop
xor %rsi, %rsi
lea addresses_A_ht+0x118e7, %rbp
nop
nop
nop
nop
nop
add %r12, %r12
movups (%rbp), %xmm5
vpextrq $1, %xmm5, %rdi
nop
nop
nop
nop
nop
add %rsi, %rsi
lea addresses_WT_ht+0xd87, %r12
nop
nop
nop
add %rax, %rax
mov $0x6162636465666768, %r15
movq %r15, %xmm3
movups %xmm3, (%r12)
nop
nop
nop
add $64323, %r12
lea addresses_D_ht+0xe38f, %rdi
nop
nop
sub $1040, %r15
movw $0x6162, (%rdi)
sub $50899, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r15
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r14
push %r9
push %rbp
// Store
mov $0xb47, %r14
clflush (%r14)
sub $50298, %r9
movw $0x5152, (%r14)
nop
nop
nop
nop
cmp $4730, %rbp
// Faulty Load
lea addresses_A+0xbb8f, %r10
nop
xor $20162, %r9
mov (%r10), %ebp
lea oracles, %r12
and $0xff, %rbp
shlq $12, %rbp
mov (%r12,%rbp,1), %rbp
pop %rbp
pop %r9
pop %r14
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_P', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 3}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 10}}
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 7}}
{'00': 21829}
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 00 00 00 00 00 00 00 00 00 00
*/
|
||||
TheStack | 136608404f2de89f23bf72fc4c0fc02166f6dbbc | Assemblycode:Assembly | {"size": 167, "ext": "asm", "max_stars_repo_path": "programs/oeis/323/A323535.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/323/A323535.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/323/A323535.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 15.1818181818, "max_line_length": 71, "alphanum_fraction": 0.5329341317} | ; A323535: a(n) = Product_{k=1..n} (binomial(k-1,7) + binomial(n-k,7)).
; 1,0,0,0,0,0,0,0,0,0,0,0,0,0
add $2,1
lpb $0,1
add $2,$2
sub $0,1
lpe
add $1,2
sub $1,$2
|
||||
TheStack | d14008a1b3e20edea17ca7cc69363c23df3b3afa | Assemblycode:Assembly | {"size": 12480, "ext": "asm", "max_stars_repo_path": "P6/data_P6_2/ALUTest192.asm", "max_stars_repo_name": "alxzzhou/BUAA_CO_2020", "max_stars_repo_stars_event_min_datetime": "2022-01-23T09:24:47.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-23T09:24:47.000Z", "max_issues_repo_path": "P6/data_P6_2/ALUTest192.asm", "max_issues_repo_name": "alxzzhou/BUAA_CO_2020", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "P6/data_P6_2/ALUTest192.asm", "max_forks_repo_name": "alxzzhou/BUAA_CO_2020", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 14.0382452193, "max_line_length": 18, "alphanum_fraction": 0.5212339744} | nor $1,$1,$3
andi $6,$5,17201
slt $3,$5,$3
subu $5,$2,$3
sra $5,$3,1
xori $4,$3,34053
lh $5,0($0)
subu $5,$3,$3
addiu $5,$6,12371
lb $5,4($0)
sb $6,15($0)
subu $1,$3,$3
addu $4,$2,$3
slti $3,$4,-28359
slt $3,$4,$3
sll $4,$3,20
subu $3,$3,$3
xor $3,$3,$3
nor $4,$6,$3
srav $1,$2,$3
sh $6,0($0)
addiu $0,$0,6014
and $4,$6,$3
sb $3,13($0)
sllv $1,$5,$3
subu $5,$3,$3
srl $6,$1,15
xori $3,$3,49642
addiu $1,$6,17745
sll $4,$0,18
srav $4,$3,$3
sltiu $5,$3,-32238
srav $4,$1,$3
sltu $6,$5,$3
addiu $1,$5,14834
srlv $3,$3,$3
nor $3,$3,$3
sw $4,4($0)
slti $0,$4,-17295
and $0,$5,$3
andi $5,$3,38167
lbu $4,13($0)
xor $4,$4,$3
addu $4,$5,$3
addu $3,$3,$3
sh $0,8($0)
addu $5,$5,$3
addiu $4,$5,2954
addu $3,$4,$3
nor $3,$3,$3
or $1,$3,$3
lh $4,10($0)
lb $3,4($0)
sw $1,12($0)
or $3,$5,$3
lhu $3,14($0)
sb $1,8($0)
sltu $1,$5,$3
lhu $4,6($0)
sb $4,7($0)
lb $4,12($0)
addu $1,$1,$3
xori $1,$5,5474
sllv $5,$3,$3
lhu $1,2($0)
and $3,$1,$3
lhu $6,6($0)
lh $1,12($0)
lh $1,0($0)
ori $6,$6,31536
slt $5,$4,$3
lb $0,11($0)
or $6,$4,$3
addu $0,$4,$3
srlv $1,$1,$3
ori $4,$5,29079
lb $3,1($0)
xori $6,$2,25543
andi $0,$6,53847
addiu $0,$0,18293
lhu $3,12($0)
andi $5,$3,35449
lh $5,14($0)
srl $4,$4,13
slti $4,$3,13328
sllv $3,$1,$3
xor $3,$3,$3
and $3,$3,$3
sra $5,$3,12
addu $3,$3,$3
srl $1,$4,13
sh $3,14($0)
srlv $3,$3,$3
slti $3,$6,19119
slt $3,$4,$3
srav $3,$5,$3
sltiu $3,$1,-29962
lb $3,8($0)
addiu $4,$6,1909
sltiu $6,$1,-5754
lhu $5,14($0)
sw $4,4($0)
andi $5,$5,51323
lw $5,12($0)
sltu $5,$3,$3
lh $3,4($0)
lb $0,0($0)
xori $3,$3,43536
sb $3,4($0)
sra $4,$3,12
lh $3,0($0)
sltu $3,$3,$3
lb $3,12($0)
and $1,$2,$3
lh $4,4($0)
or $5,$3,$3
ori $1,$0,64884
addiu $4,$1,-27290
ori $4,$3,29531
sw $5,4($0)
xor $3,$3,$3
subu $6,$1,$3
lh $1,0($0)
lb $0,10($0)
slti $3,$2,31343
sllv $0,$1,$3
sw $6,12($0)
sb $3,14($0)
sw $4,4($0)
lh $1,2($0)
sh $3,2($0)
sllv $3,$4,$3
addu $3,$5,$3
sra $3,$4,17
xori $1,$3,52271
slt $6,$4,$3
and $1,$6,$3
lbu $4,5($0)
addiu $3,$3,-13862
or $3,$3,$3
addu $1,$4,$3
sllv $1,$4,$3
sll $5,$5,31
slt $5,$5,$3
sb $3,3($0)
srl $5,$5,7
srlv $4,$4,$3
srlv $5,$0,$3
srlv $4,$5,$3
sb $3,13($0)
nor $5,$3,$3
ori $3,$1,54921
addiu $3,$1,-19623
andi $4,$4,47739
srlv $4,$4,$3
lh $5,6($0)
and $0,$3,$3
srl $5,$4,15
or $0,$3,$3
slti $3,$0,11668
sh $5,6($0)
sltiu $4,$4,11104
srlv $3,$3,$3
sra $3,$3,27
or $0,$6,$3
srl $3,$4,27
addu $3,$3,$3
ori $4,$4,64872
lw $3,12($0)
xori $3,$3,31483
sllv $4,$4,$3
lhu $4,4($0)
subu $4,$4,$3
addiu $3,$3,-17753
slti $3,$6,22509
addiu $1,$0,402
srl $3,$4,7
or $3,$0,$3
andi $3,$3,55667
sb $0,10($0)
sltu $3,$5,$3
lw $5,16($0)
sll $6,$4,10
sll $6,$4,3
sh $5,2($0)
sw $1,4($0)
sb $3,2($0)
lbu $4,7($0)
srlv $6,$5,$3
srav $1,$3,$3
subu $3,$5,$3
addu $3,$3,$3
and $1,$0,$3
slt $5,$3,$3
addu $0,$6,$3
addu $5,$5,$3
sllv $5,$3,$3
lhu $6,0($0)
lbu $3,3($0)
subu $6,$1,$3
slti $3,$4,17430
srl $5,$4,11
lh $4,10($0)
srl $0,$4,1
sb $3,10($0)
addiu $0,$5,4160
sh $3,10($0)
sra $4,$6,23
srl $3,$5,5
sltiu $6,$1,32619
lb $6,6($0)
sllv $3,$5,$3
slti $5,$3,-10386
sh $6,8($0)
sllv $4,$2,$3
ori $6,$1,44055
sltiu $4,$3,11363
sll $4,$2,6
sra $3,$3,17
andi $5,$6,28406
srav $1,$3,$3
nor $1,$1,$3
and $5,$5,$3
or $4,$1,$3
sh $3,6($0)
xor $5,$1,$3
sll $3,$3,20
addiu $0,$0,-30959
and $0,$3,$3
lb $4,10($0)
addiu $3,$1,20104
sra $5,$0,11
lw $5,12($0)
ori $3,$4,22778
subu $4,$4,$3
sllv $4,$4,$3
subu $3,$3,$3
nor $3,$3,$3
srlv $3,$6,$3
sw $1,16($0)
sh $3,14($0)
slti $3,$5,-22019
sh $3,6($0)
subu $3,$3,$3
addu $3,$3,$3
sh $4,16($0)
lh $1,8($0)
sh $3,4($0)
sra $4,$1,30
addu $1,$2,$3
sh $3,14($0)
slti $1,$5,9610
nor $5,$5,$3
sltu $3,$3,$3
xor $0,$2,$3
sllv $3,$5,$3
slti $4,$1,-29094
addu $5,$4,$3
addiu $1,$1,-15266
xori $3,$3,25355
sw $5,0($0)
subu $0,$4,$3
slti $6,$6,-29546
lh $3,8($0)
sh $5,16($0)
srlv $3,$5,$3
sltiu $3,$3,13321
sb $5,10($0)
ori $5,$6,56125
srlv $6,$4,$3
lw $3,8($0)
lhu $5,14($0)
lbu $1,0($0)
sltu $1,$3,$3
xori $5,$4,9440
lh $4,10($0)
lb $3,5($0)
subu $1,$4,$3
addiu $0,$3,5339
ori $5,$5,32678
sw $4,8($0)
xori $3,$1,10010
subu $6,$1,$3
addiu $3,$3,11039
sltu $1,$3,$3
nor $3,$3,$3
addiu $6,$3,29958
addiu $0,$0,15851
addu $4,$1,$3
addu $6,$1,$3
lh $3,6($0)
sltiu $5,$3,-10711
lhu $3,2($0)
lw $3,0($0)
xori $5,$0,18324
nor $3,$3,$3
sll $4,$2,22
lb $3,5($0)
sb $0,8($0)
slt $3,$5,$3
andi $5,$5,33009
or $5,$5,$3
addu $3,$5,$3
lb $3,13($0)
addiu $4,$4,31045
sltiu $5,$1,-13955
lb $5,0($0)
sllv $4,$6,$3
ori $1,$4,5860
ori $1,$5,5705
and $4,$3,$3
subu $4,$6,$3
sllv $6,$4,$3
sltiu $4,$2,-13734
addu $3,$3,$3
addiu $1,$3,12013
xor $0,$0,$3
sltu $6,$4,$3
and $3,$3,$3
xor $1,$3,$3
addu $6,$5,$3
slt $3,$0,$3
addu $4,$4,$3
addiu $4,$4,-32674
sltiu $4,$3,13923
addiu $4,$3,-15905
lbu $3,1($0)
srav $5,$0,$3
slti $4,$4,3725
lw $1,0($0)
lbu $1,7($0)
ori $6,$5,19759
sllv $5,$3,$3
lw $5,16($0)
srl $5,$5,22
addiu $3,$6,16461
srl $1,$1,28
lbu $4,15($0)
ori $1,$3,48870
sltu $3,$6,$3
lbu $3,11($0)
or $4,$4,$3
addu $1,$0,$3
andi $5,$1,56078
sllv $3,$3,$3
sra $4,$4,26
srlv $4,$4,$3
sllv $4,$6,$3
sb $3,5($0)
lh $4,2($0)
addu $3,$3,$3
sb $3,12($0)
addu $3,$2,$3
nor $3,$5,$3
sra $3,$3,25
andi $4,$4,44485
lbu $3,5($0)
sra $6,$3,15
sllv $5,$3,$3
sw $1,12($0)
subu $3,$3,$3
ori $3,$4,17774
sltu $6,$3,$3
addu $3,$0,$3
srlv $6,$3,$3
lw $1,4($0)
sltu $3,$3,$3
sh $3,6($0)
slt $6,$3,$3
lw $5,12($0)
xori $3,$3,62194
lh $1,4($0)
sltu $3,$6,$3
slti $3,$4,4750
lhu $3,16($0)
sltu $0,$4,$3
lh $3,10($0)
sw $3,8($0)
sw $1,16($0)
lw $4,8($0)
sllv $1,$6,$3
addiu $3,$4,-19514
sll $4,$0,28
lb $4,14($0)
nor $4,$3,$3
xor $5,$4,$3
and $5,$5,$3
lb $5,1($0)
sll $3,$5,8
sltiu $4,$6,-14796
xor $3,$3,$3
srav $3,$3,$3
subu $4,$4,$3
sltiu $3,$3,-28511
sb $4,6($0)
nor $4,$4,$3
sw $1,4($0)
lh $6,14($0)
addiu $4,$0,-23420
sltu $4,$4,$3
slt $3,$2,$3
nor $3,$4,$3
srav $4,$4,$3
or $1,$3,$3
subu $4,$3,$3
slti $4,$3,15841
or $3,$3,$3
lhu $3,14($0)
subu $5,$6,$3
sllv $4,$3,$3
lh $1,0($0)
srlv $0,$0,$3
lb $5,2($0)
sllv $3,$1,$3
xor $3,$5,$3
sll $4,$3,27
andi $0,$4,29003
lh $4,14($0)
addu $3,$5,$3
ori $5,$3,5211
lh $5,16($0)
sllv $1,$3,$3
sllv $3,$4,$3
sllv $3,$4,$3
addu $3,$1,$3
or $3,$3,$3
addiu $0,$1,16000
and $4,$4,$3
slt $3,$0,$3
srav $5,$3,$3
xor $3,$3,$3
addiu $0,$5,9514
lb $4,1($0)
or $0,$5,$3
sra $6,$6,5
or $4,$4,$3
srl $3,$0,22
srav $4,$4,$3
ori $3,$3,35444
srlv $4,$3,$3
or $1,$1,$3
subu $1,$2,$3
srl $5,$6,12
srav $5,$0,$3
and $3,$3,$3
addiu $4,$1,29903
sllv $1,$3,$3
slti $3,$5,3854
addiu $4,$0,-15038
nor $4,$4,$3
sll $0,$0,24
sll $4,$0,14
andi $3,$3,39655
srav $3,$4,$3
lh $3,2($0)
sltu $3,$3,$3
addiu $0,$5,16174
addu $1,$5,$3
subu $5,$5,$3
ori $4,$3,35464
sll $4,$3,6
lw $5,12($0)
sra $4,$6,19
and $4,$6,$3
sll $3,$5,4
addiu $3,$3,-1532
srl $3,$3,16
sltu $4,$5,$3
sltiu $0,$4,2043
slti $3,$4,19718
sra $2,$2,10
lhu $1,8($0)
srl $4,$0,16
andi $0,$4,37232
ori $4,$1,13300
srl $0,$3,12
sltu $3,$3,$3
addiu $0,$0,18723
lh $5,0($0)
addu $2,$2,$3
and $1,$6,$3
sra $6,$3,0
lbu $1,14($0)
andi $3,$6,7870
srav $3,$3,$3
addiu $3,$3,6431
addiu $3,$3,-28831
srl $1,$3,16
sra $5,$3,5
lw $5,16($0)
slti $1,$3,32716
srav $0,$4,$3
lbu $3,5($0)
sw $0,8($0)
lh $0,14($0)
nor $3,$3,$3
sltu $4,$2,$3
lb $4,12($0)
sllv $3,$3,$3
andi $5,$5,35624
sh $4,8($0)
sw $5,0($0)
subu $1,$3,$3
and $4,$3,$3
subu $3,$4,$3
srl $3,$3,17
srlv $3,$5,$3
or $5,$0,$3
subu $3,$4,$3
sll $6,$3,4
ori $6,$2,19218
sllv $4,$4,$3
addiu $6,$5,-4228
lhu $4,2($0)
subu $3,$1,$3
subu $3,$4,$3
and $6,$4,$3
srl $1,$1,27
lbu $1,6($0)
sra $3,$3,20
andi $3,$3,40255
lh $4,14($0)
lw $3,4($0)
srav $4,$3,$3
addiu $4,$3,5315
nor $4,$5,$3
sltu $3,$5,$3
sh $5,0($0)
sllv $6,$5,$3
lh $3,0($0)
xor $3,$3,$3
sw $1,16($0)
sw $3,12($0)
srlv $3,$6,$3
xori $5,$6,49801
slt $1,$1,$3
sb $4,6($0)
xor $3,$3,$3
addiu $6,$3,-2352
slti $6,$1,-22567
sltiu $4,$2,-6800
nor $3,$5,$3
sw $5,4($0)
srl $1,$4,1
lbu $4,9($0)
xor $5,$5,$3
subu $3,$3,$3
addu $3,$3,$3
srl $3,$3,4
sw $1,4($0)
sh $3,0($0)
addiu $1,$1,-25188
ori $1,$3,8610
ori $3,$4,59003
nor $4,$4,$3
sra $0,$5,17
sh $3,12($0)
sltu $4,$3,$3
nor $3,$4,$3
srl $3,$4,10
subu $1,$3,$3
subu $6,$6,$3
srav $3,$1,$3
sll $4,$4,28
srav $3,$5,$3
sltu $4,$3,$3
lb $3,13($0)
addu $5,$5,$3
slti $1,$4,2590
sllv $5,$3,$3
and $3,$4,$3
addu $3,$3,$3
sw $3,16($0)
andi $1,$5,8092
lh $3,16($0)
and $5,$4,$3
subu $4,$3,$3
nor $4,$4,$3
lhu $5,8($0)
addu $0,$6,$3
ori $6,$6,12958
nor $3,$1,$3
sltu $4,$4,$3
lbu $3,7($0)
addu $4,$3,$3
xori $3,$3,46820
slti $3,$5,20494
xor $5,$5,$3
sll $6,$3,22
subu $6,$5,$3
lb $4,3($0)
srlv $3,$4,$3
sll $4,$3,22
srlv $4,$4,$3
andi $5,$4,12124
lb $5,9($0)
sh $5,8($0)
addu $4,$3,$3
sltu $3,$3,$3
slt $1,$1,$3
lh $1,14($0)
lb $1,8($0)
lh $6,16($0)
ori $1,$1,15409
xor $6,$3,$3
subu $3,$3,$3
or $5,$1,$3
sh $3,16($0)
sll $1,$5,16
sllv $6,$6,$3
sh $1,8($0)
xor $5,$4,$3
sw $4,8($0)
srav $5,$3,$3
xor $3,$3,$3
lbu $5,0($0)
lh $5,10($0)
addiu $4,$3,9151
addu $3,$3,$3
srav $6,$6,$3
addu $5,$4,$3
nor $3,$3,$3
nor $5,$5,$3
xor $1,$3,$3
and $1,$2,$3
srlv $4,$3,$3
slti $1,$0,13113
addiu $3,$1,13758
lhu $4,6($0)
sltiu $3,$3,-23396
addu $3,$0,$3
addu $5,$5,$3
addiu $4,$6,12920
andi $0,$4,11266
or $3,$1,$3
sw $3,12($0)
lhu $5,0($0)
sllv $5,$4,$3
lb $4,11($0)
sh $1,4($0)
sll $1,$1,31
srav $5,$4,$3
sh $1,2($0)
addu $3,$5,$3
srl $1,$5,8
lb $1,10($0)
subu $4,$4,$3
sw $1,16($0)
slti $4,$4,30102
addiu $5,$5,-3733
subu $0,$0,$3
lhu $3,6($0)
sll $5,$5,16
lw $3,0($0)
sra $4,$0,22
sra $3,$1,20
nor $5,$3,$3
addu $5,$4,$3
sltu $3,$4,$3
sltiu $5,$1,1814
lw $1,0($0)
sb $1,10($0)
addiu $5,$5,8250
subu $4,$1,$3
addiu $4,$4,-24851
andi $4,$3,20489
slti $0,$0,30627
srlv $6,$3,$3
lbu $3,1($0)
xor $4,$1,$3
srav $3,$3,$3
subu $1,$5,$3
or $3,$2,$3
lbu $3,5($0)
addu $4,$4,$3
sllv $0,$6,$3
ori $4,$5,36871
lbu $6,16($0)
lbu $3,9($0)
addu $3,$6,$3
andi $3,$4,41523
addu $6,$4,$3
andi $3,$3,28075
ori $4,$3,21526
srlv $5,$5,$3
sra $1,$1,3
srl $0,$0,1
sb $5,2($0)
ori $4,$3,55159
lh $0,8($0)
lb $1,0($0)
or $3,$4,$3
xori $1,$3,13743
ori $1,$1,34143
ori $3,$4,5156
lbu $4,0($0)
andi $4,$4,46321
xor $3,$5,$3
and $6,$1,$3
sra $3,$3,4
subu $1,$1,$3
lh $6,8($0)
srav $1,$3,$3
subu $3,$6,$3
lhu $3,6($0)
sltiu $4,$4,-17775
srl $4,$3,31
or $4,$4,$3
addiu $3,$5,-10625
andi $4,$4,49639
sb $4,8($0)
subu $4,$1,$3
addiu $1,$1,4554
subu $0,$5,$3
subu $3,$6,$3
slti $4,$6,31715
subu $4,$4,$3
xor $3,$4,$3
xor $4,$1,$3
srlv $3,$4,$3
srlv $4,$4,$3
sltiu $0,$4,-8493
sll $3,$4,7
addiu $1,$5,-26476
sllv $4,$1,$3
sra $3,$3,18
lh $0,10($0)
lb $3,14($0)
lw $1,8($0)
addu $4,$1,$3
srav $2,$2,$3
sll $3,$1,25
slt $1,$4,$3
ori $1,$1,28657
sra $3,$3,20
slt $1,$1,$3
addiu $3,$3,-20098
nor $3,$1,$3
nor $3,$3,$3
xori $5,$5,42645
sltiu $5,$4,8714
lhu $2,16($0)
or $1,$4,$3
sra $0,$4,14
or $4,$1,$3
lb $4,14($0)
sll $5,$6,15
slt $3,$5,$3
srlv $6,$5,$3
nor $3,$6,$3
sb $4,14($0)
srl $4,$6,24
and $0,$6,$3
subu $0,$3,$3
srl $1,$4,31
andi $1,$1,40781
sb $3,5($0)
srav $5,$5,$3
sltu $4,$1,$3
and $4,$5,$3
slt $3,$3,$3
srl $3,$6,9
addu $0,$0,$3
lh $5,6($0)
addu $4,$3,$3
subu $3,$6,$3
or $3,$3,$3
ori $3,$0,7077
xor $1,$4,$3
sw $1,16($0)
addiu $1,$5,-24805
srlv $4,$3,$3
subu $4,$3,$3
andi $1,$1,57963
xori $3,$3,11430
slti $4,$4,9468
nor $0,$5,$3
addu $3,$3,$3
sltu $3,$6,$3
nor $4,$1,$3
addu $5,$2,$3
sll $5,$4,18
srav $3,$4,$3
xor $5,$5,$3
xor $3,$3,$3
subu $6,$4,$3
sb $0,1($0)
subu $1,$1,$3
nor $4,$4,$3
subu $5,$5,$3
sh $2,12($0)
xor $1,$5,$3
lbu $3,9($0)
addu $3,$4,$3
subu $3,$3,$3
lb $4,10($0)
srl $5,$6,30
and $3,$0,$3
or $0,$3,$3
subu $4,$3,$3
addu $5,$2,$3
srl $5,$0,24
addiu $3,$0,26058
xori $0,$0,25069
lw $5,16($0)
lhu $4,2($0)
xor $0,$0,$3
addiu $5,$3,24680
sra $1,$0,19
subu $3,$0,$3
sw $5,16($0)
ori $5,$2,42455
addiu $3,$1,18186
sltiu $4,$2,3950
and $3,$1,$3
sltiu $4,$1,7509
subu $0,$0,$3
subu $4,$3,$3
sb $3,3($0)
subu $3,$3,$3
srav $5,$4,$3
andi $6,$4,59304
sh $3,10($0)
sra $1,$4,22
addu $3,$3,$3
and $4,$6,$3
and $4,$4,$3
sll $3,$4,10
lbu $5,12($0)
srav $6,$6,$3
xor $1,$3,$3
lhu $3,12($0)
sra $4,$1,14
sllv $4,$4,$3
xori $6,$5,12359
slt $3,$3,$3
addiu $4,$3,-25346
sllv $6,$3,$3
nor $3,$3,$3
addu $3,$3,$3
srl $3,$3,29
xor $6,$2,$3
subu $5,$4,$3
srlv $0,$4,$3
lhu $6,14($0)
sh $4,12($0)
sb $1,13($0)
sllv $5,$4,$3
lbu $3,0($0)
slti $1,$1,-12028
srl $1,$3,11
nor $0,$3,$3
and $1,$3,$3
xori $3,$3,7820
addiu $3,$3,-10615
sltu $3,$0,$3
lbu $3,15($0)
sll $5,$3,15
lhu $4,14($0)
subu $5,$0,$3
lbu $1,15($0)
subu $5,$5,$3
addiu $6,$6,-25697
sll $4,$4,13
sll $4,$6,9
srl $3,$6,9
addiu $3,$6,-30191
sltu $5,$0,$3
sra $3,$2,23
xor $4,$5,$3
sw $6,0($0)
or $1,$6,$3
xor $1,$5,$3
sltiu $5,$0,-4444
slt $4,$3,$3
srl $1,$4,8
xor $3,$5,$3
ori $6,$3,42711
sw $1,12($0)
srlv $3,$1,$3
lhu $1,8($0)
sllv $4,$5,$3
addiu $1,$1,29018
sra $5,$5,9
nor $1,$1,$3
slti $5,$4,-31693
xori $4,$4,17124
lhu $4,10($0)
|
||||
TheStack | fdb7000ca0990969f19e54637092ccd7224e647c | Assemblycode:Assembly | {"size": 73, "ext": "asm", "max_stars_repo_path": "gfx/pokemon/nidoqueen/anim_idle.asm", "max_stars_repo_name": "Dev727/ancientplatinum", "max_stars_repo_stars_event_min_datetime": "2019-11-08T07:19:00.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-20T10:17:54.000Z", "max_issues_repo_path": "gfx/pokemon/nidoqueen/anim_idle.asm", "max_issues_repo_name": "Dev727/ancientplatinum", "max_issues_repo_issues_event_min_datetime": "2020-01-11T17:00:40.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-14T01:27:38.000Z", "max_forks_repo_path": "gfx/pokemon/nidoqueen/anim_idle.asm", "max_forks_repo_name": "Dev727/ancientplatinum", "max_forks_repo_forks_event_min_datetime": "2020-05-28T17:31:38.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-07T20:49:35.000Z"} | {"max_stars_count": 28, "max_issues_count": 13, "max_forks_count": 22, "avg_line_length": 10.4285714286, "max_line_length": 12, "alphanum_fraction": 0.6849315068} | frame 6, 50
setrepeat 2
frame 0, 07
frame 6, 07
dorepeat 2
endanim
|
||||
TheStack | 66e238430321c54a0683e1716149300ed492d6f1 | Assemblycode:Assembly | {"size": 1609, "ext": "asm", "max_stars_repo_path": "programs/oeis/078/A078371.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/078/A078371.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/078/A078371.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 178.7777777778, "max_line_length": 1525, "alphanum_fraction": 0.8166563083} | ; A078371: a(n) = (2*n+5)*(2*n+1).
; 5,21,45,77,117,165,221,285,357,437,525,621,725,837,957,1085,1221,1365,1517,1677,1845,2021,2205,2397,2597,2805,3021,3245,3477,3717,3965,4221,4485,4757,5037,5325,5621,5925,6237,6557,6885,7221,7565,7917,8277,8645,9021,9405,9797,10197,10605,11021,11445,11877,12317,12765,13221,13685,14157,14637,15125,15621,16125,16637,17157,17685,18221,18765,19317,19877,20445,21021,21605,22197,22797,23405,24021,24645,25277,25917,26565,27221,27885,28557,29237,29925,30621,31325,32037,32757,33485,34221,34965,35717,36477,37245,38021,38805,39597,40397,41205,42021,42845,43677,44517,45365,46221,47085,47957,48837,49725,50621,51525,52437,53357,54285,55221,56165,57117,58077,59045,60021,61005,61997,62997,64005,65021,66045,67077,68117,69165,70221,71285,72357,73437,74525,75621,76725,77837,78957,80085,81221,82365,83517,84677,85845,87021,88205,89397,90597,91805,93021,94245,95477,96717,97965,99221,100485,101757,103037,104325,105621,106925,108237,109557,110885,112221,113565,114917,116277,117645,119021,120405,121797,123197,124605,126021,127445,128877,130317,131765,133221,134685,136157,137637,139125,140621,142125,143637,145157,146685,148221,149765,151317,152877,154445,156021,157605,159197,160797,162405,164021,165645,167277,168917,170565,172221,173885,175557,177237,178925,180621,182325,184037,185757,187485,189221,190965,192717,194477,196245,198021,199805,201597,203397,205205,207021,208845,210677,212517,214365,216221,218085,219957,221837,223725,225621,227525,229437,231357,233285,235221,237165,239117,241077,243045,245021,247005,248997,250997
mov $1,$0
add $0,3
add $1,$0
pow $1,2
sub $1,4
|
||||
TheStack | fa7a839420051a128983c0d11d4b263b65d4278c | Assemblycode:Assembly | {"size": 1395, "ext": "asm", "max_stars_repo_path": "src/inline_print.asm", "max_stars_repo_name": "pmwasson/apple2", "max_stars_repo_stars_event_min_datetime": "2021-01-31T06:55:56.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T12:44:39.000Z", "max_issues_repo_path": "src/inline_print.asm", "max_issues_repo_name": "pmwasson/apple2", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/inline_print.asm", "max_forks_repo_name": "pmwasson/apple2", "max_forks_repo_forks_event_min_datetime": "2022-03-20T12:44:40.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-20T12:44:40.000Z"} | {"max_stars_count": 4, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 24.4736842105, "max_line_length": 78, "alphanum_fraction": 0.4444444444} | ;-----------------------------------------------------------------------------
; Paul Wasson - 2021
;-----------------------------------------------------------------------------
; inline_print - display following string to COUT
;-----------------------------------------------------------------------------
; Uses stack pointer to find string
; clobbers A,X,Y
;
; Example:
; jsr inline_print
; .byte "HELLO WORLD!",0
; <next instruction>
; Zero page usage
stringPtr0 := $58
stringPtr1 := $59
.proc inline_print
; Pop return address to find string
pla
sta stringPtr0
pla
sta stringPtr1
ldy #0
; Print characters until 0 (end-of-string)
printLoop:
iny
bne :+ ; Allow strings > 255
inc stringPtr1
:
tya
pha
lda (stringPtr0),y
beq printExit
ora #$80 ; not inverse/flashing
jsr COUT
pla
tay
jmp printLoop
printExit:
pla ; clean up stack
; calculate return address after print string
clc
tya
adc stringPtr0 ; add low-byte first
tax ; save in X
lda stringPtr1 ; carry to high-byte
adc #0
pha ; push return high-byte
txa
pha ; push return low-byte
rts ; return
.endproc ; print
|
||||
TheStack | 88115cf241662438ba1d47d98ceb63a05dc3323f | Assemblycode:Assembly | {"size": 1482, "ext": "asm", "max_stars_repo_path": "programs/oeis/033/A033937.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/033/A033937.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/033/A033937.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 185.25, "max_line_length": 1294, "alphanum_fraction": 0.883265857} | ; A033937: Convolution of natural numbers n >= 1 with Fibonacci numbers F(k), k >= 3.
; 2,7,17,35,66,118,204,345,575,949,1556,2540,4134,6715,10893,17655,28598,46306,74960,121325,196347,317737,514152,831960,1346186,2178223,3524489,5702795,9227370,14930254,24157716,39088065,63245879,102334045,165580028,267914180,433494318,701408611,1134903045,1836311775,2971214942,4807526842,7778741912,12586268885,20365010931,32951279953,53316291024,86267571120,139583862290,225851433559,365435296001,591286729715,956722025874,1548008755750,2504730781788,4052739537705,6557470319663,10610209857541,17167680177380,27777890035100,44945570212662,72723460247947,117669030460797,190392490708935,308061521169926,498454011879058,806515533049184,1304969544928445,2111485077977835,3416454622906489,5527939700884536,8944394323791240,14472334024675994,23416728348467455,37889062373143673,61305790721611355,99194853094755258,160500643816366846,259695496911122340,420196140727489425,679891637638612007,1100087778366101677,1779979416004713932,2880067194370815860,4660046610375530046,7540113804746346163,12200160415121876469,19740274219868222895,31940434634990099630,51680708854858322794,83621143489848422696,135301852344706745765,218922995834555168739,354224848179261914785,573147844013817083808,927372692193078998880,1500520536206896082978,2427893228399975082151,3928413764606871165425,6356306993006846247875
mov $2,$0
seq $2,23652 ; Convolution of (F(2), F(3), F(4), ...) and odd numbers.
add $0,$2
add $0,1
|
||||
TheStack | a77d7cdecc3635f53264546d0af7a89f02a9dfc0 | Assemblycode:Assembly | {"size": 25430, "ext": "asm", "max_stars_repo_path": "Kernel/xv6-public/forktest.asm", "max_stars_repo_name": "samyvic/OS-Project", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Kernel/xv6-public/forktest.asm", "max_issues_repo_name": "samyvic/OS-Project", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Kernel/xv6-public/forktest.asm", "max_forks_repo_name": "samyvic/OS-Project", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 32.0680958386, "max_line_length": 71, "alphanum_fraction": 0.4194651986} |
_forktest: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
printf(1, "fork test OK\n");
}
int
main(void)
{
0: f3 0f 1e fb endbr32
4: 55 push %ebp
5: 89 e5 mov %esp,%ebp
7: 83 e4 f0 and $0xfffffff0,%esp
forktest();
a: e8 41 00 00 00 call 50 <forktest>
exit();
f: e8 45 04 00 00 call 459 <exit>
14: 66 90 xchg %ax,%ax
16: 66 90 xchg %ax,%ax
18: 66 90 xchg %ax,%ax
1a: 66 90 xchg %ax,%ax
1c: 66 90 xchg %ax,%ax
1e: 66 90 xchg %ax,%ax
00000020 <printf>:
{
20: f3 0f 1e fb endbr32
24: 55 push %ebp
25: 89 e5 mov %esp,%ebp
27: 53 push %ebx
28: 83 ec 10 sub $0x10,%esp
2b: 8b 5d 0c mov 0xc(%ebp),%ebx
write(fd, s, strlen(s));
2e: 53 push %ebx
2f: e8 9c 01 00 00 call 1d0 <strlen>
34: 83 c4 0c add $0xc,%esp
37: 50 push %eax
38: 53 push %ebx
39: ff 75 08 pushl 0x8(%ebp)
3c: e8 38 04 00 00 call 479 <write>
}
41: 8b 5d fc mov -0x4(%ebp),%ebx
44: 83 c4 10 add $0x10,%esp
47: c9 leave
48: c3 ret
49: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
00000050 <forktest>:
{
50: f3 0f 1e fb endbr32
54: 55 push %ebp
55: 89 e5 mov %esp,%ebp
57: 53 push %ebx
for(n=0; n<N; n++){
58: 31 db xor %ebx,%ebx
{
5a: 83 ec 10 sub $0x10,%esp
write(fd, s, strlen(s));
5d: 68 0c 05 00 00 push $0x50c
62: e8 69 01 00 00 call 1d0 <strlen>
67: 83 c4 0c add $0xc,%esp
6a: 50 push %eax
6b: 68 0c 05 00 00 push $0x50c
70: 6a 01 push $0x1
72: e8 02 04 00 00 call 479 <write>
77: 83 c4 10 add $0x10,%esp
7a: eb 15 jmp 91 <forktest+0x41>
7c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(pid == 0)
80: 74 58 je da <forktest+0x8a>
for(n=0; n<N; n++){
82: 83 c3 01 add $0x1,%ebx
85: 81 fb e8 03 00 00 cmp $0x3e8,%ebx
8b: 0f 84 92 00 00 00 je 123 <forktest+0xd3>
pid = fork();
91: e8 bb 03 00 00 call 451 <fork>
if(pid < 0)
96: 85 c0 test %eax,%eax
98: 79 e6 jns 80 <forktest+0x30>
for(; n > 0; n--){
9a: 85 db test %ebx,%ebx
9c: 74 10 je ae <forktest+0x5e>
9e: 66 90 xchg %ax,%ax
if(wait() < 0){
a0: e8 bc 03 00 00 call 461 <wait>
a5: 85 c0 test %eax,%eax
a7: 78 36 js df <forktest+0x8f>
for(; n > 0; n--){
a9: 83 eb 01 sub $0x1,%ebx
ac: 75 f2 jne a0 <forktest+0x50>
if(wait() != -1){
ae: e8 ae 03 00 00 call 461 <wait>
b3: 83 f8 ff cmp $0xffffffff,%eax
b6: 75 49 jne 101 <forktest+0xb1>
write(fd, s, strlen(s));
b8: 83 ec 0c sub $0xc,%esp
bb: 68 3e 05 00 00 push $0x53e
c0: e8 0b 01 00 00 call 1d0 <strlen>
c5: 83 c4 0c add $0xc,%esp
c8: 50 push %eax
c9: 68 3e 05 00 00 push $0x53e
ce: 6a 01 push $0x1
d0: e8 a4 03 00 00 call 479 <write>
}
d5: 8b 5d fc mov -0x4(%ebp),%ebx
d8: c9 leave
d9: c3 ret
exit();
da: e8 7a 03 00 00 call 459 <exit>
write(fd, s, strlen(s));
df: 83 ec 0c sub $0xc,%esp
e2: 68 17 05 00 00 push $0x517
e7: e8 e4 00 00 00 call 1d0 <strlen>
ec: 83 c4 0c add $0xc,%esp
ef: 50 push %eax
f0: 68 17 05 00 00 push $0x517
f5: 6a 01 push $0x1
f7: e8 7d 03 00 00 call 479 <write>
exit();
fc: e8 58 03 00 00 call 459 <exit>
write(fd, s, strlen(s));
101: 83 ec 0c sub $0xc,%esp
104: 68 2b 05 00 00 push $0x52b
109: e8 c2 00 00 00 call 1d0 <strlen>
10e: 83 c4 0c add $0xc,%esp
111: 50 push %eax
112: 68 2b 05 00 00 push $0x52b
117: 6a 01 push $0x1
119: e8 5b 03 00 00 call 479 <write>
exit();
11e: e8 36 03 00 00 call 459 <exit>
write(fd, s, strlen(s));
123: 83 ec 0c sub $0xc,%esp
126: 68 4c 05 00 00 push $0x54c
12b: e8 a0 00 00 00 call 1d0 <strlen>
130: 83 c4 0c add $0xc,%esp
133: 50 push %eax
134: 68 4c 05 00 00 push $0x54c
139: 6a 01 push $0x1
13b: e8 39 03 00 00 call 479 <write>
exit();
140: e8 14 03 00 00 call 459 <exit>
145: 66 90 xchg %ax,%ax
147: 66 90 xchg %ax,%ax
149: 66 90 xchg %ax,%ax
14b: 66 90 xchg %ax,%ax
14d: 66 90 xchg %ax,%ax
14f: 90 nop
00000150 <strcpy>:
uint locked;
};
char*
strcpy(char *s, const char *t)
{
150: f3 0f 1e fb endbr32
154: 55 push %ebp
char *os;
os = s;
while((*s++ = *t++) != 0)
155: 31 c0 xor %eax,%eax
{
157: 89 e5 mov %esp,%ebp
159: 53 push %ebx
15a: 8b 4d 08 mov 0x8(%ebp),%ecx
15d: 8b 5d 0c mov 0xc(%ebp),%ebx
while((*s++ = *t++) != 0)
160: 0f b6 14 03 movzbl (%ebx,%eax,1),%edx
164: 88 14 01 mov %dl,(%ecx,%eax,1)
167: 83 c0 01 add $0x1,%eax
16a: 84 d2 test %dl,%dl
16c: 75 f2 jne 160 <strcpy+0x10>
;
return os;
}
16e: 89 c8 mov %ecx,%eax
170: 5b pop %ebx
171: 5d pop %ebp
172: c3 ret
173: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
17a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
00000180 <strcmp>:
int
strcmp(const char *p, const char *q)
{
180: f3 0f 1e fb endbr32
184: 55 push %ebp
185: 89 e5 mov %esp,%ebp
187: 53 push %ebx
188: 8b 4d 08 mov 0x8(%ebp),%ecx
18b: 8b 55 0c mov 0xc(%ebp),%edx
while(*p && *p == *q)
18e: 0f b6 01 movzbl (%ecx),%eax
191: 0f b6 1a movzbl (%edx),%ebx
194: 84 c0 test %al,%al
196: 75 19 jne 1b1 <strcmp+0x31>
198: eb 26 jmp 1c0 <strcmp+0x40>
19a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
1a0: 0f b6 41 01 movzbl 0x1(%ecx),%eax
p++, q++;
1a4: 83 c1 01 add $0x1,%ecx
1a7: 83 c2 01 add $0x1,%edx
while(*p && *p == *q)
1aa: 0f b6 1a movzbl (%edx),%ebx
1ad: 84 c0 test %al,%al
1af: 74 0f je 1c0 <strcmp+0x40>
1b1: 38 d8 cmp %bl,%al
1b3: 74 eb je 1a0 <strcmp+0x20>
return (uchar)*p - (uchar)*q;
1b5: 29 d8 sub %ebx,%eax
}
1b7: 5b pop %ebx
1b8: 5d pop %ebp
1b9: c3 ret
1ba: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
1c0: 31 c0 xor %eax,%eax
return (uchar)*p - (uchar)*q;
1c2: 29 d8 sub %ebx,%eax
}
1c4: 5b pop %ebx
1c5: 5d pop %ebp
1c6: c3 ret
1c7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
1ce: 66 90 xchg %ax,%ax
000001d0 <strlen>:
uint
strlen(const char *s)
{
1d0: f3 0f 1e fb endbr32
1d4: 55 push %ebp
1d5: 89 e5 mov %esp,%ebp
1d7: 8b 55 08 mov 0x8(%ebp),%edx
int n;
for(n = 0; s[n]; n++)
1da: 80 3a 00 cmpb $0x0,(%edx)
1dd: 74 21 je 200 <strlen+0x30>
1df: 31 c0 xor %eax,%eax
1e1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
1e8: 83 c0 01 add $0x1,%eax
1eb: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1)
1ef: 89 c1 mov %eax,%ecx
1f1: 75 f5 jne 1e8 <strlen+0x18>
;
return n;
}
1f3: 89 c8 mov %ecx,%eax
1f5: 5d pop %ebp
1f6: c3 ret
1f7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
1fe: 66 90 xchg %ax,%ax
for(n = 0; s[n]; n++)
200: 31 c9 xor %ecx,%ecx
}
202: 5d pop %ebp
203: 89 c8 mov %ecx,%eax
205: c3 ret
206: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
20d: 8d 76 00 lea 0x0(%esi),%esi
00000210 <memset>:
void*
memset(void *dst, int c, uint n)
{
210: f3 0f 1e fb endbr32
214: 55 push %ebp
215: 89 e5 mov %esp,%ebp
217: 57 push %edi
218: 8b 55 08 mov 0x8(%ebp),%edx
}
static inline void
stosb(void *addr, int data, int cnt)
{
asm volatile("cld; rep stosb" :
21b: 8b 4d 10 mov 0x10(%ebp),%ecx
21e: 8b 45 0c mov 0xc(%ebp),%eax
221: 89 d7 mov %edx,%edi
223: fc cld
224: f3 aa rep stos %al,%es:(%edi)
stosb(dst, c, n);
return dst;
}
226: 89 d0 mov %edx,%eax
228: 5f pop %edi
229: 5d pop %ebp
22a: c3 ret
22b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
22f: 90 nop
00000230 <strchr>:
char*
strchr(const char *s, char c)
{
230: f3 0f 1e fb endbr32
234: 55 push %ebp
235: 89 e5 mov %esp,%ebp
237: 8b 45 08 mov 0x8(%ebp),%eax
23a: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx
for(; *s; s++)
23e: 0f b6 10 movzbl (%eax),%edx
241: 84 d2 test %dl,%dl
243: 75 16 jne 25b <strchr+0x2b>
245: eb 21 jmp 268 <strchr+0x38>
247: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
24e: 66 90 xchg %ax,%ax
250: 0f b6 50 01 movzbl 0x1(%eax),%edx
254: 83 c0 01 add $0x1,%eax
257: 84 d2 test %dl,%dl
259: 74 0d je 268 <strchr+0x38>
if(*s == c)
25b: 38 d1 cmp %dl,%cl
25d: 75 f1 jne 250 <strchr+0x20>
return (char*)s;
return 0;
}
25f: 5d pop %ebp
260: c3 ret
261: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
return 0;
268: 31 c0 xor %eax,%eax
}
26a: 5d pop %ebp
26b: c3 ret
26c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
00000270 <gets>:
char*
gets(char *buf, int max)
{
270: f3 0f 1e fb endbr32
274: 55 push %ebp
275: 89 e5 mov %esp,%ebp
277: 57 push %edi
278: 56 push %esi
int i, cc;
char c;
for(i=0; i+1 < max; ){
279: 31 f6 xor %esi,%esi
{
27b: 53 push %ebx
27c: 89 f3 mov %esi,%ebx
27e: 83 ec 1c sub $0x1c,%esp
281: 8b 7d 08 mov 0x8(%ebp),%edi
for(i=0; i+1 < max; ){
284: eb 33 jmp 2b9 <gets+0x49>
286: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
28d: 8d 76 00 lea 0x0(%esi),%esi
cc = read(0, &c, 1);
290: 83 ec 04 sub $0x4,%esp
293: 8d 45 e7 lea -0x19(%ebp),%eax
296: 6a 01 push $0x1
298: 50 push %eax
299: 6a 00 push $0x0
29b: e8 d1 01 00 00 call 471 <read>
if(cc < 1)
2a0: 83 c4 10 add $0x10,%esp
2a3: 85 c0 test %eax,%eax
2a5: 7e 1c jle 2c3 <gets+0x53>
break;
buf[i++] = c;
2a7: 0f b6 45 e7 movzbl -0x19(%ebp),%eax
2ab: 83 c7 01 add $0x1,%edi
2ae: 88 47 ff mov %al,-0x1(%edi)
if(c == '\n' || c == '\r')
2b1: 3c 0a cmp $0xa,%al
2b3: 74 23 je 2d8 <gets+0x68>
2b5: 3c 0d cmp $0xd,%al
2b7: 74 1f je 2d8 <gets+0x68>
for(i=0; i+1 < max; ){
2b9: 83 c3 01 add $0x1,%ebx
2bc: 89 fe mov %edi,%esi
2be: 3b 5d 0c cmp 0xc(%ebp),%ebx
2c1: 7c cd jl 290 <gets+0x20>
2c3: 89 f3 mov %esi,%ebx
break;
}
buf[i] = '\0';
return buf;
}
2c5: 8b 45 08 mov 0x8(%ebp),%eax
buf[i] = '\0';
2c8: c6 03 00 movb $0x0,(%ebx)
}
2cb: 8d 65 f4 lea -0xc(%ebp),%esp
2ce: 5b pop %ebx
2cf: 5e pop %esi
2d0: 5f pop %edi
2d1: 5d pop %ebp
2d2: c3 ret
2d3: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
2d7: 90 nop
2d8: 8b 75 08 mov 0x8(%ebp),%esi
2db: 8b 45 08 mov 0x8(%ebp),%eax
2de: 01 de add %ebx,%esi
2e0: 89 f3 mov %esi,%ebx
buf[i] = '\0';
2e2: c6 03 00 movb $0x0,(%ebx)
}
2e5: 8d 65 f4 lea -0xc(%ebp),%esp
2e8: 5b pop %ebx
2e9: 5e pop %esi
2ea: 5f pop %edi
2eb: 5d pop %ebp
2ec: c3 ret
2ed: 8d 76 00 lea 0x0(%esi),%esi
000002f0 <stat>:
int
stat(const char *n, struct stat *st)
{
2f0: f3 0f 1e fb endbr32
2f4: 55 push %ebp
2f5: 89 e5 mov %esp,%ebp
2f7: 56 push %esi
2f8: 53 push %ebx
int fd;
int r;
fd = open(n, O_RDONLY);
2f9: 83 ec 08 sub $0x8,%esp
2fc: 6a 00 push $0x0
2fe: ff 75 08 pushl 0x8(%ebp)
301: e8 93 01 00 00 call 499 <open>
if(fd < 0)
306: 83 c4 10 add $0x10,%esp
309: 85 c0 test %eax,%eax
30b: 78 2b js 338 <stat+0x48>
return -1;
r = fstat(fd, st);
30d: 83 ec 08 sub $0x8,%esp
310: ff 75 0c pushl 0xc(%ebp)
313: 89 c3 mov %eax,%ebx
315: 50 push %eax
316: e8 96 01 00 00 call 4b1 <fstat>
close(fd);
31b: 89 1c 24 mov %ebx,(%esp)
r = fstat(fd, st);
31e: 89 c6 mov %eax,%esi
close(fd);
320: e8 5c 01 00 00 call 481 <close>
return r;
325: 83 c4 10 add $0x10,%esp
}
328: 8d 65 f8 lea -0x8(%ebp),%esp
32b: 89 f0 mov %esi,%eax
32d: 5b pop %ebx
32e: 5e pop %esi
32f: 5d pop %ebp
330: c3 ret
331: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
return -1;
338: be ff ff ff ff mov $0xffffffff,%esi
33d: eb e9 jmp 328 <stat+0x38>
33f: 90 nop
00000340 <atoi>:
int
atoi(const char *s)
{
340: f3 0f 1e fb endbr32
344: 55 push %ebp
345: 89 e5 mov %esp,%ebp
347: 53 push %ebx
348: 8b 55 08 mov 0x8(%ebp),%edx
int n;
n = 0;
while('0' <= *s && *s <= '9')
34b: 0f be 02 movsbl (%edx),%eax
34e: 8d 48 d0 lea -0x30(%eax),%ecx
351: 80 f9 09 cmp $0x9,%cl
n = 0;
354: b9 00 00 00 00 mov $0x0,%ecx
while('0' <= *s && *s <= '9')
359: 77 1a ja 375 <atoi+0x35>
35b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
35f: 90 nop
n = n*10 + *s++ - '0';
360: 83 c2 01 add $0x1,%edx
363: 8d 0c 89 lea (%ecx,%ecx,4),%ecx
366: 8d 4c 48 d0 lea -0x30(%eax,%ecx,2),%ecx
while('0' <= *s && *s <= '9')
36a: 0f be 02 movsbl (%edx),%eax
36d: 8d 58 d0 lea -0x30(%eax),%ebx
370: 80 fb 09 cmp $0x9,%bl
373: 76 eb jbe 360 <atoi+0x20>
return n;
}
375: 89 c8 mov %ecx,%eax
377: 5b pop %ebx
378: 5d pop %ebp
379: c3 ret
37a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
00000380 <memmove>:
void*
memmove(void *vdst, const void *vsrc, int n)
{
380: f3 0f 1e fb endbr32
384: 55 push %ebp
385: 89 e5 mov %esp,%ebp
387: 57 push %edi
388: 8b 45 10 mov 0x10(%ebp),%eax
38b: 8b 55 08 mov 0x8(%ebp),%edx
38e: 56 push %esi
38f: 8b 75 0c mov 0xc(%ebp),%esi
char *dst;
const char *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
392: 85 c0 test %eax,%eax
394: 7e 0f jle 3a5 <memmove+0x25>
396: 01 d0 add %edx,%eax
dst = vdst;
398: 89 d7 mov %edx,%edi
39a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
*dst++ = *src++;
3a0: a4 movsb %ds:(%esi),%es:(%edi)
while(n-- > 0)
3a1: 39 f8 cmp %edi,%eax
3a3: 75 fb jne 3a0 <memmove+0x20>
return vdst;
}
3a5: 5e pop %esi
3a6: 89 d0 mov %edx,%eax
3a8: 5f pop %edi
3a9: 5d pop %ebp
3aa: c3 ret
3ab: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
3af: 90 nop
000003b0 <thread_create>:
//thread library
int
thread_create(void(*start_routine)(void*,void*),void* arg1 ,void* arg2)
{
3b0: f3 0f 1e fb endbr32
3b4: 55 push %ebp
3b5: 89 e5 mov %esp,%ebp
3b7: 83 ec 14 sub $0x14,%esp
void* stack;
stack =sbrk(4096); //pgsize
3ba: 68 00 10 00 00 push $0x1000
3bf: e8 1d 01 00 00 call 4e1 <sbrk>
return clone(start_routine,arg1,arg2,stack);
3c4: 50 push %eax
3c5: ff 75 10 pushl 0x10(%ebp)
3c8: ff 75 0c pushl 0xc(%ebp)
3cb: ff 75 08 pushl 0x8(%ebp)
3ce: e8 26 01 00 00 call 4f9 <clone>
}
3d3: c9 leave
3d4: c3 ret
3d5: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
3dc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
000003e0 <thread_join>:
int thread_join()
{
3e0: f3 0f 1e fb endbr32
3e4: 55 push %ebp
3e5: 89 e5 mov %esp,%ebp
3e7: 83 ec 24 sub $0x24,%esp
void * stackPtr;
int x = join(&stackPtr);
3ea: 8d 45 f4 lea -0xc(%ebp),%eax
3ed: 50 push %eax
3ee: e8 0e 01 00 00 call 501 <join>
return x;
}
3f3: c9 leave
3f4: c3 ret
3f5: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
3fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
00000400 <lock_init>:
void lock_init(struct lock_t *lk){
400: f3 0f 1e fb endbr32
404: 55 push %ebp
405: 89 e5 mov %esp,%ebp
lk->locked=0; //intialize as unnlocked
407: 8b 45 08 mov 0x8(%ebp),%eax
40a: c7 00 00 00 00 00 movl $0x0,(%eax)
}
410: 5d pop %ebp
411: c3 ret
412: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
419: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
00000420 <lock_acquire>:
void lock_acquire(struct lock_t *lk){
420: f3 0f 1e fb endbr32
424: 55 push %ebp
xchg(volatile uint *addr, uint newval)
{
uint result;
// The + in "+m" denotes a read-modify-write operand.
asm volatile("lock; xchgl %0, %1" :
425: b9 01 00 00 00 mov $0x1,%ecx
42a: 89 e5 mov %esp,%ebp
42c: 8b 55 08 mov 0x8(%ebp),%edx
42f: 90 nop
430: 89 c8 mov %ecx,%eax
432: f0 87 02 lock xchg %eax,(%edx)
while(xchg(&lk->locked,1) != 0);
435: 85 c0 test %eax,%eax
437: 75 f7 jne 430 <lock_acquire+0x10>
}
439: 5d pop %ebp
43a: c3 ret
43b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
43f: 90 nop
00000440 <lock_release>:
void lock_release(struct lock_t *lk){
440: f3 0f 1e fb endbr32
444: 55 push %ebp
445: 31 c0 xor %eax,%eax
447: 89 e5 mov %esp,%ebp
449: 8b 55 08 mov 0x8(%ebp),%edx
44c: f0 87 02 lock xchg %eax,(%edx)
xchg(&lk->locked,0) ;
}
44f: 5d pop %ebp
450: c3 ret
00000451 <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
451: b8 01 00 00 00 mov $0x1,%eax
456: cd 40 int $0x40
458: c3 ret
00000459 <exit>:
SYSCALL(exit)
459: b8 02 00 00 00 mov $0x2,%eax
45e: cd 40 int $0x40
460: c3 ret
00000461 <wait>:
SYSCALL(wait)
461: b8 03 00 00 00 mov $0x3,%eax
466: cd 40 int $0x40
468: c3 ret
00000469 <pipe>:
SYSCALL(pipe)
469: b8 04 00 00 00 mov $0x4,%eax
46e: cd 40 int $0x40
470: c3 ret
00000471 <read>:
SYSCALL(read)
471: b8 05 00 00 00 mov $0x5,%eax
476: cd 40 int $0x40
478: c3 ret
00000479 <write>:
SYSCALL(write)
479: b8 10 00 00 00 mov $0x10,%eax
47e: cd 40 int $0x40
480: c3 ret
00000481 <close>:
SYSCALL(close)
481: b8 15 00 00 00 mov $0x15,%eax
486: cd 40 int $0x40
488: c3 ret
00000489 <kill>:
SYSCALL(kill)
489: b8 06 00 00 00 mov $0x6,%eax
48e: cd 40 int $0x40
490: c3 ret
00000491 <exec>:
SYSCALL(exec)
491: b8 07 00 00 00 mov $0x7,%eax
496: cd 40 int $0x40
498: c3 ret
00000499 <open>:
SYSCALL(open)
499: b8 0f 00 00 00 mov $0xf,%eax
49e: cd 40 int $0x40
4a0: c3 ret
000004a1 <mknod>:
SYSCALL(mknod)
4a1: b8 11 00 00 00 mov $0x11,%eax
4a6: cd 40 int $0x40
4a8: c3 ret
000004a9 <unlink>:
SYSCALL(unlink)
4a9: b8 12 00 00 00 mov $0x12,%eax
4ae: cd 40 int $0x40
4b0: c3 ret
000004b1 <fstat>:
SYSCALL(fstat)
4b1: b8 08 00 00 00 mov $0x8,%eax
4b6: cd 40 int $0x40
4b8: c3 ret
000004b9 <link>:
SYSCALL(link)
4b9: b8 13 00 00 00 mov $0x13,%eax
4be: cd 40 int $0x40
4c0: c3 ret
000004c1 <mkdir>:
SYSCALL(mkdir)
4c1: b8 14 00 00 00 mov $0x14,%eax
4c6: cd 40 int $0x40
4c8: c3 ret
000004c9 <chdir>:
SYSCALL(chdir)
4c9: b8 09 00 00 00 mov $0x9,%eax
4ce: cd 40 int $0x40
4d0: c3 ret
000004d1 <dup>:
SYSCALL(dup)
4d1: b8 0a 00 00 00 mov $0xa,%eax
4d6: cd 40 int $0x40
4d8: c3 ret
000004d9 <getpid>:
SYSCALL(getpid)
4d9: b8 0b 00 00 00 mov $0xb,%eax
4de: cd 40 int $0x40
4e0: c3 ret
000004e1 <sbrk>:
SYSCALL(sbrk)
4e1: b8 0c 00 00 00 mov $0xc,%eax
4e6: cd 40 int $0x40
4e8: c3 ret
000004e9 <sleep>:
SYSCALL(sleep)
4e9: b8 0d 00 00 00 mov $0xd,%eax
4ee: cd 40 int $0x40
4f0: c3 ret
000004f1 <uptime>:
SYSCALL(uptime)
4f1: b8 0e 00 00 00 mov $0xe,%eax
4f6: cd 40 int $0x40
4f8: c3 ret
000004f9 <clone>:
SYSCALL(clone)
4f9: b8 16 00 00 00 mov $0x16,%eax
4fe: cd 40 int $0x40
500: c3 ret
00000501 <join>:
501: b8 17 00 00 00 mov $0x17,%eax
506: cd 40 int $0x40
508: c3 ret
|
||||
TheStack | be7b0cf156aab14aec6c6da47b325e58637a7f3d | Assemblycode:Assembly | {"size": 731, "ext": "asm", "max_stars_repo_path": "oeis/321/A321543.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/321/A321543.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/321/A321543.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 36.55, "max_line_length": 499, "alphanum_fraction": 0.6388508892} | ; A321543: a(n) = Sum_{d|n} (-1)^(d-1)*d^2.
; Submitted by Jamie Morken(s1)
; 1,-3,10,-19,26,-30,50,-83,91,-78,122,-190,170,-150,260,-339,290,-273,362,-494,500,-366,530,-830,651,-510,820,-950,842,-780,962,-1363,1220,-870,1300,-1729,1370,-1086,1700,-2158,1682,-1500,1850,-2318,2366,-1590,2210,-3390,2451,-1953,2900,-3230,2810,-2460,3172,-4150,3620,-2526,3482,-4940,3722,-2886,4550,-5459,4420,-3660,4490,-5510,5300,-3900,5042,-7553,5330,-4110,6510,-6878,6100,-5100,6242,-8814,7381,-5046,6890,-9500,7540,-5550,8420,-10126,7922,-7098,8500,-10070,9620,-6630,9412,-13630,9410,-7353
add $0,1
mov $2,$0
lpb $0
mul $1,-1
mov $3,$2
dif $3,$0
cmp $3,$2
cmp $3,0
mul $3,$0
sub $0,1
pow $3,2
add $1,$3
lpe
add $1,1
mov $0,$1
|
||||
TheStack | 5560188b3c587bc5c7ccb7ab46748c42177705e5 | Assemblycode:Assembly | {"size": 774, "ext": "asm", "max_stars_repo_path": "programs/oeis/005/A005564.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/005/A005564.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/005/A005564.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 86.0, "max_line_length": 605, "alphanum_fraction": 0.8036175711} | ; A005564: Number of n-step walks on square lattice in the first quadrant which finish at distance n-3 from the x-axis.
; 6,20,45,84,140,216,315,440,594,780,1001,1260,1560,1904,2295,2736,3230,3780,4389,5060,5796,6600,7475,8424,9450,10556,11745,13020,14384,15840,17391,19040,20790,22644,24605,26676,28860,31160,33579,36120,38786,41580,44505,47564,50760,54096,57575,61200,64974,68900,72981,77220,81620,86184,90915,95816,100890,106140,111569,117180,122976,128960,135135,141504,148070,154836,161805,168980,176364,183960,191771,199800,208050,216524,225225,234156,243320,252720,262359,272240,282366,292740,303365,314244,325380,336776,348435,360360,372554,385020,397761,410780,424080,437664,451535,465696,480150,494900,509949,525300
add $0,4
mov $1,$0
sub $0,3
bin $1,2
mul $0,$1
|
||||
TheStack | 363a37986a274145e9197a2d6e6c3e0e1e006031 | Assemblycode:Assembly | {"size": 8558, "ext": "asm", "max_stars_repo_path": "vibra/tasks_data.asm", "max_stars_repo_name": "bushy555/ZX-Spectrum-1-Bit-Routines", "max_stars_repo_stars_event_min_datetime": "2015-02-28T14:15:56.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-26T12:06:01.000Z", "max_issues_repo_path": "vibra/tasks_data.asm", "max_issues_repo_name": "bushy555/ZX-Spectrum-1-Bit-Routines", "max_issues_repo_issues_event_min_datetime": "2016-08-22T05:32:43.000Z", "max_issues_repo_issues_event_max_datetime": "2016-08-22T09:33:28.000Z", "max_forks_repo_path": "vibra/tasks_data.asm", "max_forks_repo_name": "bushy555/ZX-Spectrum-1-Bit-Routines", "max_forks_repo_forks_event_min_datetime": "2015-02-28T14:16:31.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-18T17:52:48.000Z"} | {"max_stars_count": 59, "max_issues_count": 1, "max_forks_count": 9, "avg_line_length": 19.1883408072, "max_line_length": 117, "alphanum_fraction": 0.5528160785} |
;*******************************************************************************
task_read_seq
ld (taskPointer_rs),sp ;20
seqPointer equ $+1
ld sp,0 ;10
exx ;4
inc hl ;6 ;timing
pop hl ;10
ld a,ixh ;8 ;load output state ch1
out (#fe),a ;11___80
ld a,h ;4
or l ;4
IF looping = 0
jp z,exit ;10
ELSE
jp z,doLoop ;10
ENDIF
ld (ptnPointer),hl ;16
ld hl,task_read_ptn ;10
ld a,0 ;7 ;timing
ld a,iyh ;8 ;load output state ch2
out (#fe),a ;11___80
ld (seqPointer),sp ;20
taskPointer_rs equ $+1
ld sp,0 ;10
push hl ;11 ;push event on task stack
exx ;4
nop ;4
ld a,h ;4 ;cheating a bit with noise output
out (#fe),a ;11___64
jp soundLoop ;10 ;-1t, oh well
doLoop
ld hl,mloop ;10
ld (seqPointer),hl ;16
exx ;4
nop ;4
ld a,iyh ;8
out (#fe),a ;11___81 (+1)
ld sp,(taskPointer_rs) ;20
dec sp ;6 ;task_read_seq is already on stack, just need to adjust pos
dec sp ;6
ld a,(noiseVolume) ;13 ;load noise output state
cp h ;4
sbc a,a ;4
out (#fe),a ;11___64
jp soundLoop ;10
check
;*******************************************************************************
IF (LOW($))!=0
org 256*(1+(HIGH($)))
ENDIF
bitCmdLookup
db 0
db #48 ;bit 1,b
ds 2,#50 ;bit 2,b
ds 4,#58 ;bit 3,b
ds 8,#60 ;bit 4,b
ds #10,#68 ;bit 5,b
ds #20,#70 ;bit 6,b
db #78 ;bit 7,b (engine will crash if B < #48)
;*******************************************************************************
task_read_ptn ;determine which channels will be reloaded, and push events to taskStack accordingly
;btw if possible, saving sp to hl' (ld hl,0, add hl,sp : ld sp,hl) is slightly faster than via mem (27t vs 30t)
;also, ld hl,mem_addr, ld a,(hl), ld (hl),a is faster than ld a,(mem_addr), ld (mem_addr),a (24 vs 26t)
ld (taskPointer_rp),sp ;20
ptnPointer equ $+1
ld sp,0 ;10
pop af ;11
ld i,a ;9 ;timer hi
ld a,ixh ;8
out (#fe),a ;11___80
jr z,prepareSeqRead ;12/7
ld (ptnPointer),sp ;20 ;TODO unaccounted for timing
taskPointer_rp equ $+1
ld sp,0 ;10
exx ;4
jp m,noUpdateNoise ;10
ld hl,task_read_noise ;10
push hl ;11
jp pe,noUpdateCh2 ;10
ld a,iyh ;8
out (#fe),a ;11__81 hmmok
ld hl,task_read_ch2 ;10
push hl ;11
jp c,noUpdateCh1 ;10
ld hl,task_read_ch1 ;10
push hl ;11
exx ;4
ld a,h ;4 ;fake noise output
out (#fe),a ;11__71 hmmmm
jp soundLoop ;10
prepareSeqRead
ld sp,(taskPointer_rp) ;20
exx ;4
ld hl,task_read_seq ;10
push hl ;11
exx ;4
ld a,iyh ;8
out (#fe),a ;11___80
ld a,0 ;7 ;timing
ld a,0 ;7 ;timing
ld a,0 ;7 ;timing
ld a,0 ;7 ;timing
nop ;4
ld a,(noiseVolume) ;13
cp h ;4
sbc a,a ;4
out (#fe),a ;11__64
jp soundLoop ;10
noUpdateNoise
jp pe,noUpdateCh2 ;10
ld hl,task_read_ch2 ;10
push hl ;11
ld a,iyh ;8
out (#fe),a ;11__81
jp c,noUpdateCh1 ;10
ld hl,task_read_ch1 ;10
push hl ;11
exx ;4
ld a,(noiseVolume) ;13
cp h ;4
sbc a,a ;4
out (#fe),a ;11__67
jp soundLoop ;10
noUpdateCh2
ld a,iyh ;8
out (#fe),a ;11__81
jp c,noUpdateCh1 ;10
ld hl,task_read_ch1 ;10
push hl ;11
exx ;4
ld a,(noiseVolume) ;13
cp h ;4
sbc a,a ;4
out (#fe),a ;11__67
jp soundLoop ;10
noUpdateCh1
ld a,r ;9 ;timing
ld a,r ;9 ;timing
exx ;4
ld a,(noiseVolume) ;13
cp h ;4
sbc a,a ;4
out (#fe),a ;11__64
jp soundLoop ;10
;*******************************************************************************
task_read_ch1 ;update ch1 data
ld (taskPointer_c1),sp ;20
ld sp,(ptnPointer) ;20
pop de ;11 ;fetch note divider ch1
ld a,ixh ;8
out (#fe),a ;11___81
ld a,d ;4
add a,a ;4
jr c,noFxReloadCh1 ;12/7 ;if MSB of divider was set, skip fx
pop bc ;11 ;retrieve fx setting
ld (ptnPointer),sp ;20
ld a,b ;4
add a,a ;4
ld a,iyh ;8
jr z,doSlideCh1 ;12/7 ;if (B != 0) && (B != #80) do vibrato
out (#fe),a ;11___80
ld ix,0 ;14 ;reset channel accu
taskPointer_c1 equ $+1
ld sp,0 ;10
exx ;4
ld hl,task_read_vib1 ;10 ;we can't complete vibrato setup in this round,
push hl ;11 ;so let's push another task
exx ;4
out (#fe),a ;11___64
jp soundLoop ;10
noFxReloadCh1
ccf ;4 ;clear bit 15 of base divider
rrca ;4
ld d,a ;4
ld a,r ;9 ;timing
ld (ptnPointer),sp ;20
ld a,iyh ;8
out (#fe),a ;11___80
ld sp,(taskPointer_c1) ;20
ld ix,0 ;14 ;reset channel accu
vibrInit1 equ $+1
ld b,0 ;7 ;reset vibrato init value
ld a,0 ;7 ;timing
nop ;4
ld a,h ;4 ;fake noise
out (#fe),a ;11___64
jp soundLoop ;10
doSlideCh1
out (#fe),a ;11___85 cough cough
ld sp,(taskPointer_c1) ;20
jp c,doSlideUpCh1 ;10 ;determine slide direction
ld a,#c3 ;7 ;jp = slide down
ld (fxType1),a ;13
ld a,h ;4
out (#fe),a ;11___65 fake noise
jp soundLoop ;10
doSlideUpCh1
ld a,#da ;7 ;jp c = slide up
ld (fxType1),a ;13
ld a,h ;4
out (#fe),a ;11___65 fake noise
jp soundLoop ;10
;*******************************************************************************
task_read_vib1
ld a,#ca ;7 ;jp z = vibrato
ld (fxType1),a ;13
exx ;4
dec hl ;6 ;timing
ld hl,(ptnPointer) ;16
nop ;4
ld a,ixh ;8
out (#fe),a ;11___80
dec hl ;6
ld a,(hl) ;7 ;peek at vibrato init setting
ld h,HIGH(bitCmdLookup) ;7 ;look up bit x,b command patch
ld l,a ;4
ld (vibrInit1),a ;13 ;store vibrato init setting for later
ld a,(hl) ;7
ld (vibrSpeed1),a ;13
exx ;4
ld a,iyh ;8
out (#fe),a ;11___80
ds 8 ;32
ld a,(noiseVolume) ;13
cp h ;4
sbc a,a ;4
out (#fe),a ;11___64
jp soundLoop ;10
;*******************************************************************************
task_read_ch2 ;update ch2 data
ld (taskPointer_c2),sp ;20
ld sp,(ptnPointer) ;20
exx ;4
pop de ;11 ;fetch note divider ch2
ld a,ixh ;8
out (#fe),a ;11___85
ld a,d ;4
add a,a ;4
jr c,noFxReloadCh2 ;12/7 ;if MSB of divider was set, skip fx
pop hl ;11 ;retrieve fx setting
ld (ptnPointer),sp ;20
ld a,h ;4
ld b,a ;4
add a,a ;4
ld a,iyh ;8
jr z,doSlideCh2 ;12/7 ;if (B != 0) && (B != #80) do vibrato
out (#fe),a ;11___84
ld a,l ;4
ld (fxDepth2),a ;13
ld iyh,0 ;11 ;el cheapo accu reset
taskPointer_c2 equ $+1
ld sp,0 ;10
ld hl,task_read_vib2 ;10 ;we can't complete vibrato setup in this round,
push hl ;11 ;so let's push another task
exx ;4
out (#fe),a ;11___74 hrrm
jp soundLoop ;10
noFxReloadCh2
ccf ;4 ;clear bit 15 of base divider
rrca ;4
ld d,a ;4
ld a,r ;9 ;timing
ld (ptnPointer),sp ;20
ld a,iyh ;8
out (#fe),a ;11___80
ld sp,(taskPointer_c2) ;20
ld iy,0 ;14 ;reset channel accu
vibrInit2 equ $+1
ld b,0 ;7 ;reset vibrato init value
ld a,0 ;7 ;timing
exx ;4
ld a,h ;4 ;fake noise
out (#fe),a ;11___64
jp soundLoop ;10
doSlideCh2
out (#fe),a ;11___85 cough cough
exx ;4
ld sp,(taskPointer_c2) ;20
jr nc,doSlideDownCh2 ;12/7 ;determine slide direction
ld a,#da ;7 ;jp c = slide up
ld (fxType2),a ;13
ld a,h ;4
out (#fe),a ;11___66 fake noise
jp soundLoop ;10
doSlideDownCh2
ld a,#c3 ;7 ;jp = slide down
ld (fxType2),a ;13
out (#fe),a ;11___67 fake noise (A = #c3, so will always output 0)
jp soundLoop ;10
;*******************************************************************************
task_read_vib2
ld a,#ca ;7 ;jp z = vibrato
ld (fxType2),a ;13
exx ;4
dec hl ;6 ;timing
ld hl,(ptnPointer) ;16
nop ;4
ld a,ixh ;8
out (#fe),a ;11___80
dec hl ;6
ld a,(hl) ;7 ;peek at vibrato init setting
ld h,HIGH(bitCmdLookup) ;7 ;look up bit x,b command patch
ld l,a ;4
ld (vibrInit2),a ;13 ;store vibrato init setting for later
ld a,(hl) ;7
ld (vibrSpeed2),a ;13
exx ;4
ld a,iyh ;8
out (#fe),a ;11___80
ds 8 ;32
ld a,(noiseVolume) ;13
cp h ;4
sbc a,a ;4
out (#fe),a ;11___64
jp soundLoop ;10
;*******************************************************************************
task_read_noise
ld (taskPointer_n),sp ;20
ld sp,(ptnPointer) ;20
pop hl ;11
ld a,ixh ;8
out (#fe),a ;11___81
ld (ptnPointer),sp ;20
ld a,h ;4
ld (noisePitch),a ;13
ld a,l ;4
ld (noiseVolume),a ;13
ld a,0 ;7 ;timing
ld a,iyh ;8
out (#fe),a ;11___80
ld a,0 ;7 ;timing
ex af,af' ;4
ld a,h ;4 ;update prescaler
ex af,af' ;4
taskPointer_n equ $+1
ld sp,0 ;10
ld hl,1 ;10
xor a ;4
out (#fe),a ;11___64
jp soundLoop ;10
;******************************************************************************* |
||||
TheStack | 4e7898a93ec614e668686befcb0b559888e272c0 | Assemblycode:Assembly | {"size": 429, "ext": "asm", "max_stars_repo_path": "libsrc/_DEVELOPMENT/adt/b_array/c/sccz80/b_array_erase_block_callee.asm", "max_stars_repo_name": "jpoikela/z88dk", "max_stars_repo_stars_event_min_datetime": "2017-01-14T23:33:45.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T11:28:42.000Z", "max_issues_repo_path": "libsrc/_DEVELOPMENT/adt/b_array/c/sccz80/b_array_erase_block_callee.asm", "max_issues_repo_name": "jpoikela/z88dk", "max_issues_repo_issues_event_min_datetime": "2017-01-15T16:12:02.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T12:11:12.000Z", "max_forks_repo_path": "libsrc/_DEVELOPMENT/adt/b_array/c/sccz80/b_array_erase_block_callee.asm", "max_forks_repo_name": "jpoikela/z88dk", "max_forks_repo_forks_event_min_datetime": "2017-01-17T10:43:03.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-23T17:25:02.000Z"} | {"max_stars_count": 640, "max_issues_count": 1600, "max_forks_count": 215, "avg_line_length": 16.5, "max_line_length": 64, "alphanum_fraction": 0.8135198135} |
; size_t b_array_erase_block(b_array_t *a, size_t idx, size_t n)
SECTION code_clib
SECTION code_adt_b_array
PUBLIC b_array_erase_block_callee
EXTERN asm_b_array_erase_block
b_array_erase_block_callee:
pop hl
pop de
pop bc
ex (sp),hl
jp asm_b_array_erase_block
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _b_array_erase_block_callee
defc _b_array_erase_block_callee = b_array_erase_block_callee
ENDIF
|
||||
TheStack | f6c890f5853c316ef270aee9fac8a868aaf9d856 | Assemblycode:Assembly | {"size": 13135, "ext": "asm", "max_stars_repo_path": "Library/SpecUI/CommonUI/CWin/cwinScreen.asm", "max_stars_repo_name": "steakknife/pcgeos", "max_stars_repo_stars_event_min_datetime": "2018-11-18T03:35:53.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-29T01:02:51.000Z", "max_issues_repo_path": "Library/SpecUI/CommonUI/CWin/cwinScreen.asm", "max_issues_repo_name": "steakknife/pcgeos", "max_issues_repo_issues_event_min_datetime": "2018-11-19T21:06:50.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-06T10:26:48.000Z", "max_forks_repo_path": "Library/SpecUI/CommonUI/CWin/cwinScreen.asm", "max_forks_repo_name": "steakknife/pcgeos", "max_forks_repo_forks_event_min_datetime": "2018-11-19T20:46:53.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-29T00:59:26.000Z"} | {"max_stars_count": 504, "max_issues_count": 96, "max_forks_count": 73, "avg_line_length": 24.5514018692, "max_line_length": 80, "alphanum_fraction": 0.6178149981} | COMMENT @---------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
GEOWORKS CONFIDENTIAL
PROJECT: GEOS
MODULE: CommonUI/CWin
FILE: winScreen.asm
ROUTINES:
Name Description
---- -----------
MTD MSG_META_INITIALIZE Initialize instance data for a screen
object
MTD MSG_SPEC_BUILD Visually build the screen
MTD MSG_VIS_OPEN_WIN Open the screen window and register it with
the screen manager.
MTD MSG_VIS_VUP_QUERY Respond to a query travaeling up the
visible composite tree
MTD MSG_SPEC_GUP_QUERY Answer a generic query or two.
INT AppCommonFarRet Answer a generic query or two.
MTD MSG_SPEC_GUP_QUERY_VIS_PARENT
Respond to a query travaeling up the
generic composite tree
MTD MSG_SPEC_VUP_GET_WIN_SIZE_INFO
Returns margins for use with windows that
wish to avoid extending over icon areas in
the parent window. Also size of window
area.
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 2/89 Initial version
DESCRIPTION:
$Id: cwinScreen.asm,v 1.1 97/04/07 10:53:01 newdeal Exp $
-----------------------------------------------------------------------------@
CommonUIClassStructures segment resource
OLScreenClass mask CLASSF_DISCARD_ON_SAVE or \
mask CLASSF_NEVER_SAVED
CommonUIClassStructures ends
;---------------------------------------------------
Init segment resource
COMMENT @----------------------------------------------------------------------
METHOD: OLScreenInitialize -- MSG_META_INITIALIZE for OLScreenClass
DESCRIPTION: Initialize instance data for a screen object
PASS: *ds:si - instance data (for object in OLScreen class)
es - segment of OLScreenClass
RETURN: nothing
DESTROYED: ax, cx, dx, bp
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 2/89 Initial version
------------------------------------------------------------------------------@
OLScreenInitialize method dynamic OLScreenClass, MSG_META_INITIALIZE
CallMod VisCompInitialize
mov di, ds:[si]
add di, ds:[di].Vis_offset ; ds:di is VisInstance
; Mark this object as being a window
; & win group
or ds:[di].VI_typeFlags, mask VTF_IS_WINDOW or mask VTF_IS_WIN_GROUP
; Make realizable (not yet USABLE,
; so don't need to update)
or ds:[di].VI_specAttrs, mask SA_REALIZABLE
ret
OLScreenInitialize endm
COMMENT @----------------------------------------------------------------------
METHOD: OLScreenSpecBuild -- MSG_SPEC_BUILD for OLScreenClass
DESCRIPTION: Visually build the screen
PASS:
*ds:si - instance data (for object in OLScreen class)
es - segment of OLScreenClass
ax - MSG_SPEC_BUILD
cx - ?
dx - ?
bp - ?
RETURN:
carry - ?
ax - ?
cx - ?
dx - ?
bp - ?
DESTROYED:
bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 4/89 Initial version
Chris 4/91 Updated for new graphics, bounds conventions
------------------------------------------------------------------------------@
OLScreenSpecBuild method dynamic OLScreenClass, MSG_SPEC_BUILD
; Add screen object as visual child of system object
push si
call GenFindParent ; Get parent (sys obj) in ^lbx:si
mov cx, bx ; copy to ^lcx:dx
mov dx, si
pop si
push si
xchg dx, si ; add screen to parent object
; call method to add as child
mov ax, MSG_VIS_ADD_CHILD
mov bp, CCO_LAST ; put in back
call ObjCallInstanceNoLock
pop si
mov di, ds:[si]
add di, ds:[di].Gen_offset ; ds:di = GenInstance
; get handle of video driver
mov bx, ds:[di].GSCI_videoDriver
; See if video driver to build for
; is set up.
EC < tst bx >
EC < ERROR_Z OL_ERROR >
push si
push ds
; Get info about driver
call GeodeInfoDriver ; puts structure in ds:si
mov ax, ds:[si].VDI_pageW ; x size
mov bx, ds:[si].VDI_pageH ; y size
pop ds
pop si
EC< call VisCheckVisAssumption ; Make sure vis data exists >
mov di, ds:[si]
add di, ds:[di].Vis_offset ; ds:di = VisInstance
; Store new bounds data
mov ds:[di].VI_bounds.R_right, ax
mov ds:[di].VI_bounds.R_bottom, bx
; Neither image nor window is valid
or ds:[di].VI_optFlags, mask VOF_IMAGE_INVALID or mask VOF_WINDOW_INVALID
; Children should NOT be geometrically
; managed.
or ds:[di].VCI_geoAttrs, mask VCGA_CUSTOM_MANAGE_CHILDREN
ret
OLScreenSpecBuild endm
COMMENT @----------------------------------------------------------------------
METHOD: OLScreenOpenWin -- MSG_VIS_OPEN_WIN for OLScreenClass
DESCRIPTION: Open the screen window and register it with the screen
manager.
PASS:
*ds:si - instance data (for object in OLScreen class)
es - segment of OLScreenClass
ax - MSG_VIS_OPEN_WIN
cx - ?
dx - ?
bp - window to make parent of this window (will be 0, since won't
be found. We have to use driver handle, anyway)
RETURN:
carry - ?
ax - ?
cx - ?
dx - ?
bp - ?
DESTROYED:
bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 3/89 Initial version
Chris 4/91 Updated for new graphics, bounds conventions
------------------------------------------------------------------------------@
OLScreenOpenWin method dynamic OLScreenClass, MSG_VIS_OPEN_WIN
tst ds:[di].VCI_window ; already have a window?
jnz GSOW_90 ; if so, can't open a new one
; Get bounds of window
push si ; just saving this reg, not
; passing to WinOpen...
; push owner on stack as second parameter to WinOpen, so that same
; owner will own window.
clr bx ; LayerID not needed, pass 0
push bx ; Push layer ID to use
call GeodeGetProcessHandle ; Get owner for window
push bx ; Push owner of window on stack
mov bx, ds:[si]
add bx, ds:[bx].Gen_offset ; ds:bx = GenInstance
push ds:[bx].GSCI_videoDriver ;stack param: pass parent
clr ax ;stack param: pass region
; (rectangular)
push ax
push ax
clr cl ;normal bounds
call OpenGetLineBounds ;stack param: pass bounds
push dx ; (as screen coords)
push cx
push bx
push ax
;Set for WCF_PLAIN and WCF_TRANSPARENT, since there will always
;be a GenField object fully obscuring the GenScreen object.
;Eliminates a full-screen redraw. EDS 3/1/93
if not RECTANGULAR_ROTATION
mov ax, ((mask WCF_PLAIN or mask WCF_TRANSPARENT) shl 8)
else
clr ax ; plain, color=black
endif
mov bp, si ; set up chunk of this object in bp
mov di, ds:[0] ; pass obj descriptor of this object
mov cx, di ; pass enter/leave OD same
mov dx, bp
mov si, mask WPF_ROOT ; open a root window
; pass handle of video driver
call WinOpen
pop si
mov di, ds:[si]
add di, ds:[di].Vis_offset ; ds:di = VisInstance
mov ds:[di].VCI_window, bx ; store window handle
;
; Register this window and driver with the screen manager
;
mov cx, bx
mov di, ds:[si]
add di, ds:[di].Gen_offset
mov dx, ds:[di].GSCI_videoDriver
call UserScreenRegister
GSOW_90:
ret
OLScreenOpenWin endm
Init ends
;-------------------------
AppCommon segment resource
COMMENT @----------------------------------------------------------------------
METHOD: OLScreenVupQuery -- MSG_VIS_VUP_QUERY
for OLScreenClass
DESCRIPTION: Respond to a query travaeling up the visible composite tree
PASS:
*ds:si - instance data
es - segment of OLScreenClass
ax - MSG_VIS_VUP_QUERY
cx - VisUpwardQueryType
dx -?
bp -?
RETURN:
carry - set if query acknowledged, clear if not
If cx = VUQ_VIDEO_DRIVER:
returns ax = handle of video driver
DESTROYED:
bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 2/89 Initial version
Doug 11/89 Moved into using general VUP_QUERY
------------------------------------------------------------------------------@
OLScreenVupQuery method dynamic OLScreenClass, MSG_VIS_VUP_QUERY
cmp cx, VUQ_VIDEO_DRIVER
je videoDriver
; Send query on to superclass to handle
mov di, offset OLScreenClass
GOTO ObjCallSuperNoLock
videoDriver:
mov di, ds:[si]
add di, ds:[di].Gen_offset ; ds:di = GenInstance
; return video driver handle
mov ax, ds:[di].GSCI_videoDriver
stc ; return query acknowledged
ret
OLScreenVupQuery endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLScreenGupQuery
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Answer a generic query or two.
CALLED BY: MSG_SPEC_GUP_QUERY
PASS: *ds:si = instance data
cx = query type (GenQueryType or SpecGenQueryType)
RETURN: carry = set if acknowledged, clear if not
DESTROYED:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
doug 2/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
OLScreenGupQuery method dynamic OLScreenClass, MSG_SPEC_GUP_QUERY
cmp cx, GUQT_FIELD ;For apps such as UI sitting
je screenObject ; directly on screen
cmp cx, GUQT_SCREEN
je screenObject
mov di, offset OLScreenClass ;Pass the buck to our superclass
GOTO ObjCallSuperNoLock
screenObject:
; return our OD, in cx:dx, & window handle in bp
;
mov cx, ds:[LMBH_handle]
mov dx, si
mov bp, ds:[di].VCI_window
stc
ret
OLScreenGupQuery endp
AppCommonFarRet proc far
ret
AppCommonFarRet endp
AppCommon ends
HighCommon segment resource
COMMENT @----------------------------------------------------------------------
METHOD: OLScreenGupQueryVisParent -- MSG_SPEC_GUP_QUERY_VIS_PARENT for
OLScreenClass
DESCRIPTION: Respond to a query travaeling up the generic composite tree
PASS:
*ds:si - instance data
es - segment of OLScreenClass
ax - MSG_SPEC_GUP_QUERY_VIS_PARENT
cx - GenQueryVisParentType
RETURN:
carry - set if query acknowledged, clear if not
cx:dx - object discriptor of object to use for vis parent, null if none
bp - window handle of field, IF realized (Valid for all attached
applications of this field, as field can't be closed until
all applications are detached)
DESTROYED:
bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 6/92 Initial version
------------------------------------------------------------------------------@
OLScreenGupQueryVisParent method dynamic OLScreenClass,
MSG_SPEC_GUP_QUERY_VIS_PARENT
; Return our OD, in cx:dx, & window handle in bp, for ALL requests.
; We're the window of last resort, if no one else wants to be a
; parent.
;
mov cx, ds:[LMBH_handle]
mov dx, si
mov bp, ds:[di].VCI_window
stc ; return query acknowledged
ret
OLScreenGupQueryVisParent endm
COMMENT @----------------------------------------------------------------------
METHOD: OLScreenGetWinSizeInfo --
MSG_SPEC_VUP_GET_WIN_SIZE_INFO for OLScreenClass
DESCRIPTION: Returns margins for use with windows that wish to avoid
extending over icon areas in the parent window. Also
size of window area.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_SPEC_VUP_GET_WIN_SIZE_INFO
RETURN: cx, dx - size of window area
bp low - margins at bottom edge of object
bp high - margins to the right edge of object
ax, cx, dx - destroyed
ALLOWED TO DESTROY:
bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 10/1?/92 Initial version
(needed for dialogs from UIApp)
------------------------------------------------------------------------------@
OLScreenGetWinSizeInfo method dynamic OLScreenClass, \
MSG_SPEC_VUP_GET_WIN_SIZE_INFO
call VisGetSize ;return current size
;return margin info in bp - is used for staggered windows which
;want to extend ALMOST to their parent's limits - so that they don't
;cover the icon area, etc.
mov bp, (EXTEND_NEAR_PARENT_MARGIN_X shl 8) or \
NON_CGA_EXTEND_NEAR_PARENT_MARGIN_Y
call OpenMinimizeIfCGA ;if CGA, change Y value
jnc exit
sub bp, NON_CGA_EXTEND_NEAR_PARENT_MARGIN_Y - \
CGA_EXTEND_NEAR_PARENT_MARGIN_Y
exit:
ret
OLScreenGetWinSizeInfo endm
HighCommon ends
|
||||
TheStack | 2c78b5a4a4f761b4d970f21a9e61e55a24c7507d | Assemblycode:Assembly | {"size": 49358, "ext": "asm", "max_stars_repo_path": "Library/GrObj/GrObj/grobjBounds.asm", "max_stars_repo_name": "steakknife/pcgeos", "max_stars_repo_stars_event_min_datetime": "2018-11-18T03:35:53.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-29T01:02:51.000Z", "max_issues_repo_path": "Library/GrObj/GrObj/grobjBounds.asm", "max_issues_repo_name": "steakknife/pcgeos", "max_issues_repo_issues_event_min_datetime": "2018-11-19T21:06:50.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-06T10:26:48.000Z", "max_forks_repo_path": "Library/GrObj/GrObj/grobjBounds.asm", "max_forks_repo_name": "steakknife/pcgeos", "max_forks_repo_forks_event_min_datetime": "2018-11-19T20:46:53.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-29T00:59:26.000Z"} | {"max_stars_count": 504, "max_issues_count": 96, "max_forks_count": 73, "avg_line_length": 22.1634485855, "max_line_length": 79, "alphanum_fraction": 0.6062239151} | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: GrObj
MODULE: GrObj
FILE: grobjBounds.asm
AUTHOR: Steve Scholl, Aug 21, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
Steve 8/21/92 Initial revision
DESCRIPTION:
$Id: grobjBounds.asm,v 1.1 97/04/04 18:07:34 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjAlmostRequiredCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetBoundingRectDWFixed
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Calculate the RectDWFixed that bounds the object in
the dest gstate coordinate system
PASS:
*(ds:si) - instance data of object
ds:[bx] - instance data of object
ds:[di] - master part of object (if any)
es - segment of GrObjClass
ss:bp - BoundingRectData
destGState
parentGState
RETURN:
ss:bp - BoundingRectData
rect
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 11/12/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetBoundingRectDWFixed method dynamic GrObjClass,
MSG_GO_GET_BOUNDING_RECTDWFIXED
uses dx
.enter
mov bx,bp ;BoundingRectData
sub sp,size FourPointDWFixeds
mov bp,sp
call GrObjGenerateNormalFourPointDWFixeds
mov di,ss:[bx].BRD_parentGState
mov dx,ss:[bx].BRD_destGState
call GrObjCalcNormalDWFixedMappedCorners
mov di,ss
mov ds,di ;Rect segment
mov es,di ;FourPoints segment
mov si,bx ;rect offset
mov di,bp ;FourPoints offset
call GrObjGlobalSetRectDWFixedFromFourPointDWFixeds
add sp, size FourPointDWFixeds
mov bp,bx ;BoundingRectData
.leave
ret
GrObjGetBoundingRectDWFixed endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjCalcPARENTDimensions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Calculate the document dimensions and store then in the
instance data.
This default handler treats the object as a
rectangle with no line width
PASS:
*(ds:si) - instance data
ds:[bx] - instance data of object
ds:[di] - master part of object (if any)
es - segment of GrObjClass
RETURN:
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
calculate the bounding RectDWFixed
calculate the width and height from RectDWFixed
store
KNOWN BUGS/SIDE EFFECTS/IDEAS:
nothing
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/12/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjCalcPARENTDimensions method dynamic GrObjClass,
MSG_GO_CALC_PARENT_DIMENSIONS
uses ax,cx,dx,bp
.enter
call GrObjCanGeometry?
jnc done
sub sp,size BoundingRectData
mov bp,sp
mov di,PARENT_GSTATE
call GrObjCreateGStateForBoundsCalc
mov ss:[bp].BRD_parentGState,di
mov di,PARENT_GSTATE
call GrObjCreateGStateForBoundsCalc
mov ss:[bp].BRD_destGState,di
mov ax,MSG_GO_GET_BOUNDING_RECTDWFIXED
call ObjCallInstanceNoLock
call GrObjCheckForUnbalancedPARENTDimensions
CallMod GrObjGlobalGetWWFixedDimensionsFromRectDWFixed
EC < ERROR_NC BUG_IN_DIMENSIONS_CALC >
mov di,ss:[bp].BRD_parentGState
call GrDestroyState
mov di,ss:[bp].BRD_destGState
call GrDestroyState
add sp, size BoundingRectData
call GrObjSetNormalPARENTDimensions
call GrObjExpandParentGroup
done:
.leave
ret
GrObjCalcPARENTDimensions endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjCheckForOptimizedBoundsCalc
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: If the object has no rotation and the parent gstate
has no rotation then when can use the default handler
to calc our bounds instead of the path code. The default
handler does bounds for a rectangle
CALLED BY: INTERNAL UTILITY
PASS:
*ds:si - object
ss:bp - BoundingRectData
BRD_parentGState is set
RETURN:
stc - can do optimized calc
clc - nope
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 12/23/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjCheckForOptimizedBoundsCalc proc far
class GrObjClass
uses ax,di,si,ds
.enter
EC < call ECGrObjCheckLMemObject >
AccessNormalTransformChunk di,ds,si
clr ax
cmp ds:[di].OT_transform.GTM_e12.WWF_int,ax
jnz fail
cmp ds:[di].OT_transform.GTM_e12.WWF_frac,ax
jnz fail
cmp ds:[di].OT_transform.GTM_e21.WWF_int,ax
jnz fail
cmp ds:[di].OT_transform.GTM_e21.WWF_frac,ax
jnz fail
mov di,ss:[bp].BRD_parentGState
sub sp, size TransMatrix
mov si,sp
segmov ds,ss
call GrGetTransform
cmp ds:[si].TM_e12.WWF_int,ax
jnz failClearStack
cmp ds:[si].TM_e12.WWF_frac,ax
jnz failClearStack
cmp ds:[si].TM_e21.WWF_int,ax
jnz failClearStack
cmp ds:[si].TM_e21.WWF_frac,ax
jnz failClearStack
add sp,size TransMatrix
stc
done:
.leave
ret
failClearStack:
add sp,size TransMatrix
fail:
clc
jmp done
GrObjCheckForOptimizedBoundsCalc endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetDWFSelectionHandleBoundsForTrivialRejectProblems
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Certain shapes, when rotated or skewed, do not have
selection handles that fall in or very close to the
PARENT dimensions, for those cases we just return
very large bounds. Otherwise call the super class
CALLED BY: INTERNAL UTILITY
PASS:
*ds:si - object
di - offset of objects superclass
es - class segment
ss:bp - RectDWFixed
RETURN:
ss:bp - RectDWFixed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 11/ 5/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetDWFSelectionHandleBoundsForTrivialRejectProblems proc far
class GrObjClass
uses bx
.enter
EC < call ECGrObjCheckLMemObject>
AccessNormalTransformChunk bx,ds,si
tst ds:[bx].OT_transform.GTM_e12.WWF_int
jnz veryLarge
tst ds:[bx].OT_transform.GTM_e12.WWF_frac
jnz veryLarge
tst ds:[bx].OT_transform.GTM_e21.WWF_int
jnz veryLarge
tst ds:[bx].OT_transform.GTM_e21.WWF_frac
jnz veryLarge
call ObjCallSuperNoLock
done:
.leave
ret
veryLarge:
call GrObjReturnLargeRectDWFixed
jmp done
GrObjGetDWFSelectionHandleBoundsForTrivialRejectProblems endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjReturnLargeRectDWFixed
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Utility routine for filling a RectDWFixed with
graphic system size dimensions
CALLED BY: INTERNAL
GrObjGetDWFSelectionHandleBoundsForTrivialRejectProblems
PASS: ss:bp - RectDWFixed
RETURN: ss:bp - RectDWFixed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 11/ 5/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjReturnLargeRectDWFixed proc far
uses ax
.enter
mov ax,0x8000
mov ss:[bp].RDWF_left.DWF_int.high,ax
mov ss:[bp].RDWF_top.DWF_int.high,ax
dec ax ; ax <- 0x7fff, high word of largest positive
; 32-bit number
mov ss:[bp].RDWF_right.DWF_int.high, ax
mov ss:[bp].RDWF_bottom.DWF_int.high, ax
clr ax
mov ss:[bp].RDWF_left.DWF_int.low,ax
mov ss:[bp].RDWF_top.DWF_int.low,ax
dec ax ; ax <- 0xffff, low word of largest positive
; 32-bit number
mov ss:[bp].RDWF_right.DWF_int.low,ax
mov ss:[bp].RDWF_bottom.DWF_int.low,ax
; 0xffff is also fraction for largest positive
; DWF number
mov ss:[bp].RDWF_right.DWF_frac,ax
mov ss:[bp].RDWF_bottom.DWF_frac,ax
inc ax ; ax <- 0, for left & top fractions
mov ss:[bp].RDWF_left.DWF_frac,ax
mov ss:[bp].RDWF_top.DWF_frac,ax
.leave
ret
GrObjReturnLargeRectDWFixed endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetBoundingRectDWFixedFromPath
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Use path stuff to fill in the BRD_rect.
CALLED BY: INTERNAL UTILITY
PASS:
*ds:si
ss:bp - BoundingRectData
RETURN:
BRD_rect
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 11/ 3/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetBoundingRectDWFixedFromPath proc far
class GrObjClass
uses ax,bx,cx,dx,di,es
.enter
EC < call ECGrObjCheckLMemObject >
mov di,ss:[bp].BRD_parentGState
call GrSaveTransform
;
; Draw the object into the parent gstate's path
;
mov di, ss:[bp].BRD_parentGState
call GrObjApplyNormalTransform
movnf cx, PCT_REPLACE
call GrBeginPath
mov dx, di ;dx <- gstate
mov ax, MSG_GO_DRAW_FG_LINE
call ObjCallInstanceNoLock
call GrEndPath
push ds, si ;object
; Because out path is associated with parentGstate we need to
; copy the destGState transformation to the parentGState
; to get the bounds in the dest coordinate system
;
sub sp, size TransMatrix
mov si, sp
segmov ds, ss
mov di, ss:[bp].BRD_destGState
call GrGetTransform
mov di, ss:[bp].BRD_parentGState
call GrSetTransform
add sp, size TransMatrix
; Get the bounds of the path
sub sp,size RectDWord
mov bx,sp ; ds:bx -> RectDWord
mov ax, GPT_CURRENT ; want current path
call GrGetPathBoundsDWord
EC < ERROR_C BUG_IN_DIMENSIONS_CALC >
NEC < jc hackBoundsClearStack >
; Copy RectDWord bounds to our RectDWFixed in
; BoundingRectData stack frame
;
movdw dxax,ds:[bx].RD_left
movdw ss:[bp].BRD_rect.RDWF_left.DWF_int,dxax
movdw dxax,ds:[bx].RD_top
movdw ss:[bp].BRD_rect.RDWF_top.DWF_int,dxax
movdw dxax,ds:[bx].RD_right
movdw ss:[bp].BRD_rect.RDWF_right.DWF_int,dxax
movdw dxax,ds:[bx].RD_bottom
movdw ss:[bp].BRD_rect.RDWF_bottom.DWF_int,dxax
add sp,size RectDWord
pop ds, si ;object
; Clear fractions in BoundingRectData
;
clr ax
mov ss:[bp].BRD_rect.RDWF_left.DWF_frac, ax
mov ss:[bp].BRD_rect.RDWF_top.DWF_frac, ax
mov ss:[bp].BRD_rect.RDWF_right.DWF_frac, ax
mov ss:[bp].BRD_rect.RDWF_bottom.DWF_frac, ax
mov di,ss:[bp].BRD_parentGState
call GrRestoreTransform
; HACK ???. Currently GrGetPathBounds returns all
; 8000h for the bounds if nothing was drawn.
; This fucks up the unbalanced center code.
;
cmp ss:[bp].BRD_rect.RDWF_left.DWF_int.low,8000h
je hackBounds
; Sometimes the object has no space so the
; path code returns very large bounds. Be robust about it.
;
CheckHack < (offset BRD_rect eq 0) >
mov dx,0x7000
clr cx
call GrObjGlobalCheckWWFixedDimensionsOfRectDWFixed
jnc hackBounds
done:
.leave
ret
ife ERROR_CHECK
hackBoundsClearStack:
pop ds,si
add sp,size RectDWord
endif
hackBounds:
; Set bounds to be very narrow and at the center
;
push ds,si
AccessNormalTransformChunk di,ds,si
segmov es,ds,ax
segmov ds,ss,ax
add di,offset OT_center
mov si,bp
call GrObjGlobalInitRectDWFixedWithPointDWFixed
pop ds,si
jmp done
GrObjGetBoundingRectDWFixedFromPath endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjCreateGStateForBoundsCalc
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Create a gstate with no window and no body translation
for use during bounds calculations
CALLED BY: INTERNAL UTILITY
PASS:
*ds:si - object requesting gstate
di - GrObjCreateGStateType
only OBJECT_GSTATE and PARENT_GSTATE are lega
RETURN:
di - gstate
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SPEED over SMALL SIZE
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 12/21/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjCreateGStateForBoundsCalc proc far
class GrObjClass
uses ax,bp
.enter
EC < call ECGrObjCheckLMemObject >
push di ;GrObjCreateGStateType
GrObjDeref di,ds,si
test ds:[di].GOI_optFlags,mask GOOF_IN_GROUP
jz notInGroup
mov di,mask MF_FIXUP_DS or mask MF_CALL
mov ax,MSG_GROUP_CREATE_GSTATE_FOR_BOUNDS_CALC
call GrObjMessageToGroup
mov di,bp
checkType:
pop ax ;GrObjCreateGStateType
cmp ax,PARENT_GSTATE
je done
call GrObjApplyNormalTransform
done:
.leave
ret
notInGroup:
clr di ;no window
call GrCreateState
jmp checkType
GrObjCreateGStateForBoundsCalc endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjExpandParentGroup
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Send MSG_GROUP_EXPAND to our parent group if we are in one
CALLED BY: INTERNAL UTILITY
PASS: *ds:si - object
RETURN:
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 11/18/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjExpandParentGroup proc far
class GrObjClass
uses di
.enter
EC < call ECGrObjCheckLMemObject >
GrObjDeref di,ds,si
; GrObjs are marked invalid while they are being ungrouped
; and we don't want the group to be recalcing its bounds
; while objects are being removed from it. This is
; a concern when undoing a grouping because the group
; is not suspended which would normal prevent it from
; recalcing.
;
test ds:[di].GOI_optFlags, mask GOOF_GROBJ_INVALID
jnz done
test ds:[di].GOI_optFlags, mask GOOF_IN_GROUP
jnz sendMessage
done:
.leave
ret
sendMessage:
clr di
mov ax,MSG_GROUP_EXPAND
call GrObjMessageToGroup
jmp done
GrObjExpandParentGroup endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjCheckForUnbalancedPARENTDimensions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Check that center of BRD_rect is at the center of the
object (OT_center in GOI_normalTransform chunk). If
not then store offset in vardata and set unbalanced
bit in instance data.
CALLED BY: INTERNAL
GrObjCalcPARENTDimensions
PASS:
*ds:si - object
ss:bp - BoundingRectData
BRD_rect - filled in
RETURN:
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 11/ 4/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjCheckForUnbalancedPARENTDimensions proc far
class GrObjClass
uses ax,bx,cx,dx,di
.enter
EC < call ECGrObjCheckLMemObject >
; Assume
;
GrObjDeref di,ds,si
BitClr ds:[di].GOI_optFlags,GOOF_HAS_UNBALANCED_PARENT_DIMENSIONS
mov ax,ATTR_GO_PARENT_DIMENSIONS_OFFSET
call ObjVarDeleteData
; Calc X and Y centers of bounding rect
;
movdwf dxcxbx,ss:[bp].BRD_rect.RDWF_right
subdwf dxcxbx,ss:[bp].BRD_rect.RDWF_left
sardwf dxcxbx
adddwf dxcxbx,ss:[bp].BRD_rect.RDWF_left
pushdwf dxcxbx ;x of bounds center
movdwf cxaxbx,ss:[bp].BRD_rect.RDWF_bottom
subdwf cxaxbx,ss:[bp].BRD_rect.RDWF_top
sardwf cxaxbx
adddwf cxaxbx,ss:[bp].BRD_rect.RDWF_top
AccessNormalTransformChunk di,ds,si
subdwf cxaxbx,ds:[di].OT_center.PDF_y
cwd
cmp cx,dx
EC < ERROR_NE GROBJ_VERY_UNBALANCED_PARENT_BOUNDS >
; If the difference is greater than one or less
; then negative one then store offset
;
cmp ax,1
jg addYVarData
jl 10$
tst bx
jnz addYVarData
10$:
cmp ax,-1
jl addYVarData
checkX:
AccessNormalTransformChunk di,ds,si
popdwf cxaxbx
subdwf cxaxbx,ds:[di].OT_center.PDF_x
cwd
cmp cx,dx
EC < ERROR_NE GROBJ_VERY_UNBALANCED_PARENT_BOUNDS >
; If the difference is greater than one or less
; then negative one then store offset
;
cmp ax,1
jg addXVarData
jl 20$
tst bx
jnz addXVarData
20$:
cmp ax,-1
jl addXVarData
done:
.leave
ret
addYVarData:
movwwf dxcx,axbx
mov di,offset PF_y
call GrObjStoreUnbalancedPARENTDimensionsOffsetPiece
jmp checkX
addXVarData:
movwwf dxcx,axbx
mov di,offset PF_x
call GrObjStoreUnbalancedPARENTDimensionsOffsetPiece
jmp done
GrObjCheckForUnbalancedPARENTDimensions endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjStoreUnbalancedPARENTDimensionsOffsetPiece
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Find or Add the ATTR_GO_PARENT_DIMENSIONS_OFFSET vardata
and put in the passed info.
CALLED BY: INTERNAL
GrObjCheckForUnbalancedPARENTDimensions
PASS: *ds:si - object
dxcx - WWFixed x or y offset
di - offset into PointWWFixed to store data
RETURN:
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 11/ 4/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjStoreUnbalancedPARENTDimensionsOffsetPiece proc near
class GrObjClass
uses ax,bx,di
.enter
EC < call ECGrObjCheckLMemObject >
mov ax,ATTR_GO_PARENT_DIMENSIONS_OFFSET
call ObjVarFindData
jnc addData
storeData:
add bx,di
movwwf ds:[bx],dxcx
GrObjDeref di,ds,si
BitSet ds:[di].GOI_optFlags,GOOF_HAS_UNBALANCED_PARENT_DIMENSIONS
call ObjMarkDirty
.leave
ret
addData:
push cx
mov ax,ATTR_GO_PARENT_DIMENSIONS_OFFSET
mov cx,size PointWWFixed
call ObjVarAddData
pop cx
jmp storeData
GrObjStoreUnbalancedPARENTDimensionsOffsetPiece endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjCalcNormalDWFixedMappedCorners
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Convert the four points in OBJECT coords into the
coordinate system of the dest gstate
CALLED BY: INTERNAL UTILITY
PASS:
*ds:si - object
ss:bp - FourPointDWFixeds - OBJECT COORDS
di - parent gstate
dx - dest gstate
RETURN:
ss:bp - FourDWPoints - DEST COORDS
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/15/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjCalcNormalDWFixedMappedCorners proc far
class GrObjClass
uses si
.enter
EC < call ECGrObjCheckLMemObject >
AccessNormalTransformChunk si,ds,si
call GrObjOTCalcDWFixedMappedCorners
.leave
ret
GrObjCalcNormalDWFixedMappedCorners endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTCalcDWFixedMappedCorners
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Convert the four points in OBJECT coords into the
coordinate system of the dest gstate
CALLED BY: INTERNAL UTILITY
PASS:
ds:si - ObjectTransform
ss:bp - FourPointDWFixeds - OBJECT COORDS
di - parent gstate
dx - dest gstate
RETURN:
ss:bp - FourDWPoints - DEST COORDS
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/15/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTCalcDWFixedMappedCorners proc far
uses dx,es,si
.enter
call GrObjCheckGrObjTransMatrixForIdentity
pushf
jc doConvert
call GrSaveTransform
call GrObjOTApplyObjectTransform
doConvert:
segmov es,ss ;FPDWF segment
mov si,dx ;dest gstate
mov dx,bp ;offset FPDF_TL
call GrObjConvertCoordDWFixed
add dx,size PointDWFixed ;offset FPDF_TR
call GrObjConvertCoordDWFixed
add dx,size PointDWFixed ;offset FPDF_BL
call GrObjConvertCoordDWFixed
add dx,size PointDWFixed ;offset FPDF_BR
call GrObjConvertCoordDWFixed
popf
jc done
call GrRestoreTransform
done:
.leave
ret
GrObjOTCalcDWFixedMappedCorners endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGenerateNormalFourPointDWFixeds
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Fill in FourPointDWFixeds structure from width and
height of object
-w/2,-h/2,w/2,h/2
CALLED BY: INTERNAL UTILITY
PASS:
*ds:si - instance data
ss:bp - FourPointDWFixeds - empty
RETURN:
ss:bp - FourDWPoints - filled
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
nothing
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/ 2/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGenerateNormalFourPointDWFixeds proc far
class GrObjClass
uses si
.enter
EC < call ECGrObjCheckLMemObject >
AccessNormalTransformChunk si,ds,si
call GrObjOTGenerateFourPointDWFixeds
.leave
ret
GrObjGenerateNormalFourPointDWFixeds endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOTGenerateFourPointDWFixeds
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Fill in FourPointDWFixeds structure from width and
height of object
-w/2,-h/2,w/2,h/2
CALLED BY: INTERNAL
PASS:
ds:si - ObjectTransform
ss:bp - FourPointDWFixeds - empty
RETURN:
ss:bp - FourDWPoints - filled
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
nothing
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 4/ 2/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOTGenerateFourPointDWFixeds proc far
class GrObjClass
uses ax,bx,cx,dx,di,es
.enter
; Get dimensions divided by two
;
CallMod GrObjOTGetOBJECTDimensions
sar dx,1 ;width/2 int
rcr cx,1 ;width/2 frac
sar bx,1 ;height/2 int
rcr ax,1 ;height/2 frac
; Store bottom as height/2 and top as -height/2
;
push dx ;width int
xchg bx,ax ;bx <- height frac
;ax <- height int
cwd ;sign extend height/2
movdwf ss:[bp].FPDF_BR.PDF_y, dxaxbx
movdwf ss:[bp].FPDF_BL.PDF_y, dxaxbx
negdwf dxaxbx
movdwf ss:[bp].FPDF_TR.PDF_y, dxaxbx
movdwf ss:[bp].FPDF_TL.PDF_y, dxaxbx
; Store right as width/2 and left as -width/2
;
pop ax ;width int
cwd ;sign extend width/2
movdwf ss:[bp].FPDF_BR.PDF_x, dxaxcx
movdwf ss:[bp].FPDF_TR.PDF_x, dxaxcx
negdwf dxaxcx
movdwf ss:[bp].FPDF_BL.PDF_x, dxaxcx
movdwf ss:[bp].FPDF_TL.PDF_x, dxaxcx
.leave
ret
GrObjOTGenerateFourPointDWFixeds endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjConvertCoordDWFixed
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Convert a DWFixed coordinate from one coordinate system
to another by transforming it through a gstate into
device coordinates and then untransforming it through
a different gstate into the new coordinate system
CALLED BY: INTERNAL
GrObjOTCalcDWFixedMappedCorners
PASS:
es:dx - PointDWFixed
di - transform/source gstate
si - untransform/dest gstate
RETURN:
es:dx - Transformed PointDWFixed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/20/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjConvertCoordDWFixed proc far
.enter
EC < call ECCheckGStateHandle ;check source gstate >
call GrTransformDWFixed
xchg di,si ;source in si, dest in di
EC < call ECCheckGStateHandle ;check dest gstate >
call GrUntransformDWFixed
xchg di,si ;source in di, dest in si
.leave
ret
GrObjConvertCoordDWFixed endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjAdjustRectDWFixedByLineWidth
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Expand RectDWFixed to encompass line width of object
CALLED BY: INTERNAL
PASS:
*ds:si - object instance data
ss:bp - RectDWFixed
RETURN:
ss:bp - RectDWFixed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 11/12/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjAdjustRectDWFixedByLineWidth proc far
uses cx,dx,di,si,ds
.enter
; Get line width
;
push bp ;stack frame
call GrObjGetLineWidth
mov cx,bp ;line width frac
pop bp ;stack frame
mov dx,di ;line width int
clr di ;line width high int
; Divide line width by two
;
sar dx,1
rcr cx,1
; Expand rect by half line width
;
segmov ds,ss
mov si,bp
CallMod GrObjGlobalExpandRectDWFixedByDWFixed
.leave
ret
GrObjAdjustRectDWFixedByLineWidth endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjSetNormalPARENTDimensions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Store the width and height of the object in the DOCUMENT
COORD SYSTEM in the object's instance data
CALLED BY: INTERNAL
PASS:
*ds:si - object
dx:cx - width
bx:ax - height
RETURN:
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 10/ 9/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjSetNormalPARENTDimensions proc far
class GrObjClass
uses di
.enter
EC < call ECGrObjCheckLMemObject >
call ObjMarkDirty
AccessNormalTransformChunk di,ds,si
mov ds:[di].OT_parentWidth.WWF_int,dx
mov ds:[di].OT_parentWidth.WWF_frac,cx
mov ds:[di].OT_parentHeight.WWF_int,bx
mov ds:[di].OT_parentHeight.WWF_frac,ax
.leave
ret
GrObjSetNormalPARENTDimensions endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetWWFOBJECTBounds
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Returns the RectWWFixed that surrounds the children in
its OBJECT coordinate system
PASS:
*(ds:si) - instance data of object
ds:[bx] - instance data of object
ds:[di] - master part of object (if any)
es - segment of GrObjClass
ss:bp - RectWWFixed
RETURN:
ss:bp - RectWWFixed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
WARNING: This message handler is not dynamic, so it can
be called as a routine. Thusly, only *ds:si can
be counted on. And it must be careful about the
regsiters is destroys.
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/12/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetWWFOBJECTBounds method GrObjClass, MSG_GO_GET_WWF_OBJECT_BOUNDS
uses ax,bx,cx,dx
.enter
EC < call ECGrObjCheckLMemObject >
call GrObjGetAbsNormalOBJECTDimensions
; Get width/2
;
sar dx,1 ;width/2 int
rcr cx,1 ;width/2 frac
; Put width/2 in right
; Put -width/2 in left
;
mov ss:[bp].RWWF_right.WWF_frac, cx
mov ss:[bp].RWWF_right.WWF_int, dx
NegWWFixed dx,cx
mov ss:[bp].RWWF_left.WWF_frac, cx
mov ss:[bp].RWWF_left.WWF_int, dx
; Get height/2
;
sar bx,1 ;height/2 int
rcr ax,1 ;height/2 frac
; Put height/2 in bottom
; Put -height/2 in top
;
mov ss:[bp].RWWF_bottom.WWF_frac, ax
mov ss:[bp].RWWF_bottom.WWF_int, bx
NegWWFixed bx,ax
mov ss:[bp].RWWF_top.WWF_frac, ax
mov ss:[bp].RWWF_top.WWF_int, bx
.leave
ret
GrObjGetWWFOBJECTBounds endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjInitBoundingRectDataByPointWWFixed
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Initialize the BRD_rect with the passed point
converted into the destination coordinate system
CALLED BY: INTERNAL UTILITY
PASS:
ss:bp - BoundingRectData
dxcx,bxax - wwfixed point
RETURN:
ss:bp - BRD_rect
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 9/ 9/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjInitBoundingRectDataByPointWWFixed proc far
uses ax,bx,cx,dx,di,si,es,ds
.enter
; Create PointDWFixed from PointWWFixed
;
sub sp, size PointDWFixed
mov di,sp
push dx ;width int
xchg bx,ax ;bx <- height frac
;ax <- height int
cwd ;sign extend height/2
movdwf ss:[di].PDF_y,dxaxbx
pop ax ;width int
cwd ;sign extend width/2
movdwf ss:[di].PDF_x,dxaxcx
; Transform point to destination coordinate system
;
mov dx,di ;offset PointDWFixed
mov di,ss:[bp].BRD_parentGState
mov si,ss:[bp].BRD_destGState
segmov es,ss
call GrObjConvertCoordDWFixed
; Init bounding rect around point
;
mov di,dx ;offset PointDWFixed
segmov ds,ss ;segment bounding rect
mov si,bp ;offset bounding rect
call GrObjGlobalInitRectDWFixedWithPointDWFixed
add sp, size PointDWFixed
.leave
ret
GrObjInitBoundingRectDataByPointWWFixed endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjExpandBoundingRectDataByPointWWFixed
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Expand the BRD_rect with the passed point
converted into the destination coordinate system
CALLED BY: INTERNAL UTILITY
PASS:
ss:bp - BoundingRectData
dxcx,bxax - wwfixed point
RETURN:
ss:bp - BRD_rect
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 9/ 9/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjExpandBoundingRectDataByPointWWFixed proc far
uses ax,bx,cx,dx,di,si,es,ds
.enter
; Create PointDWFixed from PointWWFixed
;
sub sp, size PointDWFixed
mov di,sp
push dx ;width int
xchg bx,ax ;bx <- height frac
;ax <- height int
cwd ;sign extend height/2
movdwf ss:[di].PDF_y,dxaxbx
pop ax ;width int
cwd ;sign extend width/2
movdwf ss:[di].PDF_x,dxaxcx
; Transform point to destination coordinate system
;
mov dx,di ;offset PointDWFixed
mov di,ss:[bp].BRD_parentGState
mov si,ss:[bp].BRD_destGState
segmov es,ss
call GrObjConvertCoordDWFixed
; Expand bounding rect around point
;
mov di,dx ;offset PointDWFixed
segmov ds,ss ;segment bounding rect
mov si,bp ;offset bounding rect
call GrObjGlobalCombineRectDWFixedWithPointDWFixed
add sp, size PointDWFixed
.leave
ret
GrObjExpandBoundingRectDataByPointWWFixed endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjIsPointInsideObjectBounds
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Determine's if the passed point is inside this GrObject's
bounds.
CALLED BY: MSG_GO_IS_POINT_INSIDE_OBJECT_BOUNDS
PASS: *ds:si = GrObjClass object
ds:di = GrObjClass instance data
ds:bx = GrObjClass object (same as *ds:si)
es = segment of GrObjClass
ax = message #
ss:bp = PointDWFixed
dx = size PointDWFixed
RETURN: carry: SET - Point is inside bounds
CLEAR - Point is NOT inside bounds
DESTROYED: ax
SIDE EFFECTS: none
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
JimG 7/20/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjIsPointInsideObjectBounds method dynamic GrObjClass,
MSG_GO_IS_POINT_INSIDE_OBJECT_BOUNDS
uses bp
.enter
; Don't do anything if this is the floater.
test ds:[di].GOI_optFlags, mask GOOF_FLOATER ; clc implied
jnz exit
; Allocate space for the bound rectangle on the stack
mov bx, bp ; ss:bx = PointDWFixed
sub sp, size RectDWFixed
mov bp, sp ; ss:bp = RectDWFixed
; Get my bounds
mov ax, MSG_GO_GET_DWF_PARENT_BOUNDS
call ObjCallInstanceNoLock
; Set up arguments for utility routine
mov si, ss
mov ds, si
mov es, si
mov si, bp
mov di, bx
; ds:si = RectDWFixed - bounds of the object
; es:di = PointDWFixed - position to test
call GrObjGlobalIsPointDWFixedInsideRectDWFixed?
lahf ; save C flag
add sp, size RectDWFixed ; restore stack
sahf ; restore C flag
exit:
.leave
ret
GrObjIsPointInsideObjectBounds endm
GrObjAlmostRequiredCode ends
GrObjDrawCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetDWPARENTBounds
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Returns RectDWord bounds of object in the PARENT coordinate
system
PASS:
*(ds:si) - instance data of object
ss:bp - RectDWord
RETURN:
ss:bp - RectDWord
DESTROYED:
ax
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
WARNING: This message handler is not dynamic, so it can
be called as a routine. Thusly, only *ds:si can
be counted on. And it must be careful about the
regsiters is destroys.
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/12/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetDWPARENTBounds method GrObjClass, MSG_GO_GET_DW_PARENT_BOUNDS
uses bx,cx,dx
.enter
EC < call ECGrObjCheckLMemObject >
sub sp,size RectDWFixed
mov bx,bp ;RectDWord
mov bp,sp
call GrObjGetDWFPARENTBounds
; Floor of left
;
mov ax,ss:[bp].RDWF_left.DWF_int.high
mov ss:[bx].RD_left.high,ax
mov ax,ss:[bp].RDWF_left.DWF_int.low
mov ss:[bx].RD_left.low,ax
; Floor of top
;
mov ax,ss:[bp].RDWF_top.DWF_int.high
mov ss:[bx].RD_top.high,ax
mov ax,ss:[bp].RDWF_top.DWF_int.low
mov ss:[bx].RD_top.low,ax
; Ceiling of right
;
movdwf dxaxcx,ss:[bp].RDWF_right
jcxz 10$
adddw dxax,1
10$:
movdw ss:[bx].RD_right,dxax
; Ceiling of bottom
;
movdwf dxaxcx,ss:[bp].RDWF_bottom
jcxz 20$
adddw dxax,1
20$:
movdw ss:[bx].RD_bottom,dxax
add sp,size RectDWFixed
mov bp,bx ;RectDWord
.leave
ret
GrObjGetDWPARENTBounds endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetNormalPARENTDimensions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the width and height of the object in the DOCUMENT
COORD SYSTEM from the object's instance data
CALLED BY: INTERNAL
PASS:
*ds:si - object
RETURN:
dx:cx - width
bx:ax - height
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 10/ 9/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetNormalPARENTDimensions proc far
class GrObjClass
uses di
.enter
EC < call ECGrObjCheckLMemObject >
AccessNormalTransformChunk di,ds,si
mov dx,ds:[di].OT_parentWidth.WWF_int
mov cx,ds:[di].OT_parentWidth.WWF_frac
mov bx,ds:[di].OT_parentHeight.WWF_int
mov ax,ds:[di].OT_parentHeight.WWF_frac
.leave
ret
GrObjGetNormalPARENTDimensions endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetDWFPARENTBounds
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Returns DWFixed bounds of object in PARENT coordinate system
PASS:
*(ds:si) - instance data of object
ds:[bx] - instance data of object
ds:[di] - master part of object (if any)
es - segment of GrObjClass
ss:bp - RectDWFixed
RETURN:
ss:bp - RectDWFixed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
WARNING: This message handler is not dynamic, so it can
be called as a routine. Thusly, only *ds:si can
be counted on. And it must be careful about the
regsiters is destroys.
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/12/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetDWFPARENTBounds method GrObjClass, MSG_GO_GET_DWF_PARENT_BOUNDS
uses ax,bx,cx,dx,di
.enter
EC < call ECGrObjCheckLMemObject >
call GrObjGetNormalPARENTDimensions
; Initialize the rect from the dimensions
;
push bx,ax ;height
sarwwf dxcx ;width
mov ax,dx
cwd
movdwf ss:[bp].RDWF_right,dxaxcx
negdwf dxaxcx
movdwf ss:[bp].RDWF_left,dxaxcx
pop ax,bx ;height (reg switch)
sarwwf axbx ;width
cwd
movdwf ss:[bp].RDWF_bottom,dxaxbx
negdwf dxaxbx
movdwf ss:[bp].RDWF_top,dxaxbx
AccessNormalTransformChunk di,ds,si
movdwf cxbxax,ds:[di].OT_center.PDF_x
adddwf ss:[bp].RDWF_left,cxbxax
adddwf ss:[bp].RDWF_right,cxbxax
movdwf cxbxax,ds:[di].OT_center.PDF_y
adddwf ss:[bp].RDWF_top,cxbxax
adddwf ss:[bp].RDWF_bottom,cxbxax
GrObjDeref di,ds,si
test ds:[di].GOI_optFlags,mask GOOF_HAS_UNBALANCED_PARENT_DIMENSIONS
jnz unbalanced
done:
.leave
ret
unbalanced:
mov ax,ATTR_GO_PARENT_DIMENSIONS_OFFSET
call ObjVarFindData
EC < ERROR_NC GROBJ_MISSING_PARENT_DIMENSIONS_OFFSET >
movwwf axcx,ds:[bx].PF_x
cwd
adddwf ss:[bp].RDWF_left,dxaxcx
adddwf ss:[bp].RDWF_right,dxaxcx
movwwf axcx,ds:[bx].PF_y
cwd
adddwf ss:[bp].RDWF_top,dxaxcx
adddwf ss:[bp].RDWF_bottom,dxaxcx
jmp done
GrObjGetDWFPARENTBounds endp
GrObjDrawCode ends
GrObjRequiredInteractiveCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjOptGetDWFSelectionHandleBoundsForTrivialReject
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Send MSG_GO_GET_DWF_SELECTION_HANDLE_BOUNDS_FOR_TRIVIAL_REJECT
or call the default handler directly depending on the
GrObjMessageOptimizationFlags
CALLED BY: INTERNAL UTILITY
PASS: *ds:si - grobject
RETURN:
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SPEED over SMALL SIZE
Common cases:
opt bit not set
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/26/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjOptGetDWFSelectionHandleBoundsForTrivialReject proc far
class GrObjClass
uses di
.enter
EC < call ECGrObjCheckLMemObject >
GrObjDeref di,ds,si
test ds:[di].GOI_msgOptFlags, \
mask GOMOF_GET_DWF_SELECTION_HANDLE_BOUNDS_FOR_TRIVIAL_REJECT
jnz send
call GrObjGetDWFSelectionHandleBoundsForTrivialReject
done:
.leave
ret
send:
push ax
mov ax,MSG_GO_GET_DWF_SELECTION_HANDLE_BOUNDS_FOR_TRIVIAL_REJECT
call ObjCallInstanceNoLock
pop ax
jmp done
GrObjOptGetDWFSelectionHandleBoundsForTrivialReject endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetDWFSelectionHandleBoundsForTrivialReject
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Returns the rectangle that surrounds the object and
anything that might stick off the object, like
its handles. The rectangle is in document coords.
This routine is only valid on objects that are not
in groups.
PASS:
*(ds:si) - instance data of object
ds:[bx] - instance data of object
ds:[di] - master part of object (if any)
es - segment of GrObjClass
ss:bp - RectDWFixed
RETURN:
ss:bp - RectDWFixed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
WARNING: This message handler is not dynamic, so it can
be called as a routine. Thusly, only *ds:si can
be counted on. And it must be careful about the
regsiters is destroys.
This method should be optimized for SPEED over SMALL SIZE
because it is called from ObjCompProcessChildren during
hit detection.
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/12/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetDWFSelectionHandleBoundsForTrivialReject method GrObjClass,
MSG_GO_GET_DWF_SELECTION_HANDLE_BOUNDS_FOR_TRIVIAL_REJECT
uses ax,bx,dx
.enter
EC < call ECGrObjCheckLMemObject >
EC < push di >
EC < GrObjDeref di,ds,si >
EC < test ds:[di].GOI_optFlags, mask GOOF_IN_GROUP >
EC < ERROR_NZ OBJECT_CANNOT_BE_IN_A_GROUP >
EC < pop di >
call GrObjGetDWFPARENTBounds
; Choose the extension from the of half the handle
; size
call GrObjGetCurrentHandleSize
mov dx,bx ;handle sizes
clr bh ;leave width
mov dl,dh ;height
clr dh ;leave height
shr bl,1 ;half width
shr dl,1 ;half height
; Extend the bounds
;
clr ax
sub ss:[bp].RDWF_left.DWF_int.low,bx
sbb ss:[bp].RDWF_left.DWF_int.high,ax
add ss:[bp].RDWF_right.DWF_int.low,bx
adc ss:[bp].RDWF_right.DWF_int.high,ax
sub ss:[bp].RDWF_top.DWF_int.low,dx
sbb ss:[bp].RDWF_top.DWF_int.high,ax
add ss:[bp].RDWF_bottom.DWF_int.low,dx
adc ss:[bp].RDWF_bottom.DWF_int.high,ax
.leave
ret
GrObjGetDWFSelectionHandleBoundsForTrivialReject endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetWWFPARENTBounds
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Returns the RectWWFixed that surrounds the children in
is parent coordinate system.
Only children in groups are guaranteed to have
bounds that can be expressed in WWFixed so this
message can only be sent to children in groups
PASS:
*(ds:si) - instance data of object
ds:[bx] - instance data of object
ds:[di] - master part of object (if any)
es - segment of GrObjClass
ss:bp - RectWWFixed
RETURN:
ss:bp - RectWWFixed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
WARNING: This message handler is not dynamic, so it can
be called as a routine. Thusly, only *ds:si can
be counted on. And it must be careful about the
regsiters is destroys.
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/12/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetWWFPARENTBounds method GrObjClass, MSG_GO_GET_WWF_PARENT_BOUNDS
uses bx
.enter
EC < call ECGrObjCheckLMemObject >
EC < push di >
EC < GrObjDeref di,ds,si >
EC < test ds:[di].GOI_optFlags, mask GOOF_IN_GROUP >
EC < ERROR_Z OBJECT_NOT_IN_A_GROUP >
EC < pop di >
sub sp,size RectDWFixed
mov bx,bp ;RectDWord
mov bp,sp
call GrObjGetDWFPARENTBounds
mov ax,ss:[bp].RDWF_left.DWF_frac
mov ss:[bx].RWWF_left.WWF_frac,ax
mov ax,ss:[bp].RDWF_left.DWF_int.low
mov ss:[bx].RWWF_left.WWF_int,ax
mov ax,ss:[bp].RDWF_top.DWF_frac
mov ss:[bx].RWWF_top.WWF_frac,ax
mov ax,ss:[bp].RDWF_top.DWF_int.low
mov ss:[bx].RWWF_top.WWF_int,ax
mov ax,ss:[bp].RDWF_right.DWF_frac
mov ss:[bx].RWWF_right.WWF_frac,ax
mov ax,ss:[bp].RDWF_right.DWF_int.low
mov ss:[bx].RWWF_right.WWF_int,ax
mov ax,ss:[bp].RDWF_bottom.DWF_frac
mov ss:[bx].RWWF_bottom.WWF_frac,ax
mov ax,ss:[bp].RDWF_bottom.DWF_int.low
mov ss:[bx].RWWF_bottom.WWF_int,ax
add sp,size RectDWFixed
mov bp,bx ;RectDWord
.leave
ret
GrObjGetWWFPARENTBounds endp
GrObjRequiredInteractiveCode ends
GrObjExtNonInteractiveCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrObjGetDWFPARENTBoundsUpperLeft
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Returns DWFixed upper left of the bounds of object
in PARENT coordinate system
PASS:
*(ds:si) - instance data of object
ss:bp - PointDWFixed
RETURN:
ss:bp - PointDWFixed
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common cases:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 2/12/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrObjGetDWFPARENTBoundsUpperLeft proc far
class GrObjClass
uses ax,bx,cx,dx,di
.enter
EC < call ECGrObjCheckLMemObject >
call GrObjGetNormalPARENTDimensions
push bx,ax ;height
sar dx,1 ;width int
rcr cx,1 ;width frac
; Put floor of (center - width/2) in PDF_x
;
AccessNormalTransformChunk di,ds,si
mov_tr ax,dx ;width int
cwd ;sign extend width
mov_tr bx, ax
mov ax, ds:[di].OT_center.PDF_x.DWF_frac
sub ax, cx
mov ss:[bp].PDF_x.DWF_frac, ax
mov ax, ds:[di].OT_center.PDF_x.DWF_int.low
sbb ax, bx
mov ss:[bp].PDF_x.DWF_int.low, ax
mov ax, ds:[di].OT_center.PDF_x.DWF_int.high
sbb ax, dx
mov ss:[bp].PDF_x.DWF_int.high, ax
; Get sign extend height/2 in dx:ax:cx
;
pop ax,cx ;height
sar ax,1
rcr cx,1
cwd
mov_tr bx, ax
; Put floor of center - height/2 in PDF_y
;
mov ax, ds:[di].OT_center.PDF_y.DWF_frac
sub ax, cx
mov ss:[bp].PDF_y.DWF_frac, ax
mov ax, ds:[di].OT_center.PDF_y.DWF_int.low
sbb ax, bx
mov ss:[bp].PDF_y.DWF_int.low, ax
mov ax, ds:[di].OT_center.PDF_y.DWF_int.high
sbb ax, dx
mov ss:[bp].PDF_y.DWF_int.high, ax
.leave
ret
GrObjGetDWFPARENTBoundsUpperLeft endp
GrObjExtNonInteractiveCode ends
|
||||
TheStack | e3d9ff92e0daf7d4503d5275284e1e2827054faf | Assemblycode:Assembly | {"size": 8505, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/AVXALIGN/_st_zr_/i7-7700_9_0xca_notsx.log_21829_922.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/AVXALIGN/_st_zr_/i7-7700_9_0xca_notsx.log_21829_922.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/AVXALIGN/_st_zr_/i7-7700_9_0xca_notsx.log_21829_922.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 32.5862068966, "max_line_length": 2999, "alphanum_fraction": 0.6530276308} | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r15
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xcd6, %rax
nop
nop
nop
nop
add %r15, %r15
movb $0x61, (%rax)
nop
xor %r8, %r8
lea addresses_D_ht+0x1d9a6, %rsi
lea addresses_A_ht+0x1b4d6, %rdi
nop
nop
inc %r12
mov $50, %rcx
rep movsw
sub %rax, %rax
lea addresses_UC_ht+0x4916, %rsi
lea addresses_UC_ht+0x1ef16, %rdi
nop
nop
nop
nop
nop
add $13779, %r11
mov $56, %rcx
rep movsw
nop
nop
nop
xor $41831, %r11
lea addresses_UC_ht+0x4166, %r15
nop
nop
nop
nop
sub $56520, %rdi
mov $0x6162636465666768, %r11
movq %r11, %xmm4
movups %xmm4, (%r15)
nop
nop
nop
nop
xor %rcx, %rcx
lea addresses_UC_ht+0xe8d6, %rsi
lea addresses_normal_ht+0xa8d6, %rdi
nop
nop
nop
nop
xor %r15, %r15
mov $92, %rcx
rep movsl
nop
nop
nop
cmp %r12, %r12
lea addresses_A_ht+0xda0, %r12
xor %rsi, %rsi
mov (%r12), %cx
nop
nop
nop
nop
nop
add %rax, %rax
lea addresses_WC_ht+0x18cd6, %rsi
lea addresses_D_ht+0x1e4f6, %rdi
clflush (%rdi)
add $45263, %r12
mov $112, %rcx
rep movsw
and %rcx, %rcx
lea addresses_D_ht+0xacd6, %rsi
lea addresses_WT_ht+0x198d6, %rdi
nop
nop
nop
nop
and %r11, %r11
mov $72, %rcx
rep movsl
nop
nop
nop
inc %r12
lea addresses_A_ht+0x1a0d6, %r12
nop
nop
xor $37741, %rax
and $0xffffffffffffffc0, %r12
vmovaps (%r12), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $0, %xmm6, %r8
nop
cmp $60097, %rax
lea addresses_A_ht+0xd1f2, %r8
nop
nop
dec %r15
movups (%r8), %xmm1
vpextrq $0, %xmm1, %r11
and %r15, %r15
lea addresses_WT_ht+0x36, %rax
nop
nop
nop
nop
sub %rcx, %rcx
mov $0x6162636465666768, %r15
movq %r15, %xmm5
vmovups %ymm5, (%rax)
nop
add $6885, %rdi
lea addresses_normal_ht+0x1d301, %rax
cmp %r8, %r8
movl $0x61626364, (%rax)
nop
nop
nop
dec %r12
lea addresses_normal_ht+0x10c76, %r8
nop
nop
nop
nop
nop
xor $43809, %r12
mov (%r8), %r11w
nop
nop
nop
sub %rdi, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r15
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
// Store
lea addresses_UC+0x10f56, %rsi
nop
sub %r8, %r8
movb $0x51, (%rsi)
nop
nop
nop
sub $22258, %r13
// Store
lea addresses_WC+0x1c81e, %r10
and $22652, %rcx
movl $0x51525354, (%r10)
nop
nop
xor %rcx, %rcx
// Store
lea addresses_WC+0xa8d6, %r8
nop
nop
nop
xor %r10, %r10
movw $0x5152, (%r8)
nop
nop
nop
add %rbp, %rbp
// Load
lea addresses_D+0x15d2, %r8
nop
add %r13, %r13
mov (%r8), %ecx
nop
nop
nop
and %rbp, %rbp
// Store
lea addresses_normal+0x6cd6, %rcx
nop
nop
and %r8, %r8
movb $0x51, (%rcx)
nop
nop
nop
add %rbp, %rbp
// Faulty Load
mov $0xbbf720000000cd6, %rdi
and %rcx, %rcx
mov (%rdi), %rsi
lea oracles, %r13
and $0xff, %rsi
shlq $12, %rsi
mov (%r13,%rsi,1), %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 1, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 10, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 2, 'same': False, 'type': 'addresses_D'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 10, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 11, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 4, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 6, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 4, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 1, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 11, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 11, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 1, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 3, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'00': 347, '51': 21482}
51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 00 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51
*/
|
||||
TheStack | 2b923b99df4d216798e972e91450606aed882565 | Assemblycode:Assembly | {"size": 1787, "ext": "asm", "max_stars_repo_path": "hufbit.asm", "max_stars_repo_name": "dylancarlson/citplus", "max_stars_repo_stars_event_min_datetime": "2020-08-11T06:12:01.000Z", "max_stars_repo_stars_event_max_datetime": "2020-08-11T06:12:01.000Z", "max_issues_repo_path": "hufbit.asm", "max_issues_repo_name": "dylancarlson/citplus", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "hufbit.asm", "max_forks_repo_name": "dylancarlson/citplus", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 15.5391304348, "max_line_length": 74, "alphanum_fraction": 0.5433687745} | ; --------------------------------------------------------------------- ;
; hufbit.asm Acit 92Jun13 ;
; bit by bit string manipulations for huffman encoding ;
; --------------------------------------------------------------------- ;
ideal
model large, c
theChar = 0
right = 2
left = 6
ENCBUFSIZE = 8192
struc eds
nb dw ?
what dd ?
ends
public decode
dataseg
extrn bitsenc: word, htRoot: word
codeseg
proc decode uses si di, strofs:word, strseg:word
mov di, [htRoot]
mov ax, [htRoot+2]
mov es, ax
mov si, [bitsenc]
theLoop:mov ax,[es:di + left]
or ax,[es:di + left + 2]
jz noMore
push es
mov bx, [strseg]
mov es, bx
mov di, [strofs]
mov bx, si
and bx, 7
or bx, bx
jnz notFirstBit
; first bit of new byte - check for 0x27
mov bx, si
; shr bx, 3
shr bx, 1
shr bx, 1
shr bx, 1
mov dl, [es:di+bx]
cmp dl, 27
jne notFirstBit
add si, 8
inc bx
mov dl, [es:di+bx]
cmp dl, 1
jne not1
; got 27 1 sequence - make it 0
mov [byte ptr es:di+bx], 0
jmp short notFirstBit
not1: cmp dl, 2
jne not2
; got 27 2 sequence - make it 27
mov [byte ptr es:di+bx], 27
jmp short notFirstBit
not2: ; assume 27 3 sequence - make it 255
mov [byte ptr es:di+bx], 255
notFirstBit:
mov bx, si
; shr bx, 3
shr bx, 1
shr bx, 1
shr bx, 1
mov dl, [es:di+bx]
mov bx, si
and bx, 7
mov cl, 7
sub cl, bl
mov bl, 1
shl bl, cl
and dl, bl
inc si
mov al, dl
pop es
or al, al
jz goLeft
; go right
mov ax, [es:di + right + 2]
mov di, [es:di + right]
mov es, ax
jmp short theLoop
goLeft: mov ax, [es:di + left + 2]
mov di, [es:di + left]
mov es, ax
jmp theLoop
noMore: mov al, [es:di + theChar]
cbw
mov [bitsenc], si
ret
endp
end
|
||||
TheStack | eb8d50cfccb14e86c8138c62d743bd43fb111b48 | Assemblycode:Assembly | {"size": 2604, "ext": "asm", "max_stars_repo_path": "Source/Levels/L1304.asm", "max_stars_repo_name": "AbePralle/FGB", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Source/Levels/L1304.asm", "max_issues_repo_name": "AbePralle/FGB", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Source/Levels/L1304.asm", "max_forks_repo_name": "AbePralle/FGB", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.5714285714, "max_line_length": 70, "alphanum_fraction": 0.4151305684} | ; L1304.asm
; Generated 05.08.2001 by mlevel
; Modified 05.08.2001 by Abe Pralle
INCLUDE "Source/Defs.inc"
INCLUDE "Source/Levels.inc"
;---------------------------------------------------------------------
SECTION "Level1304Gfx",ROMX
;---------------------------------------------------------------------
backinside_bg:
INCBIN "Data/Cinema/CharSelect/backinside.bg"
;---------------------------------------------------------------------
SECTION "Level1304Section",ROMX
;---------------------------------------------------------------------
L1304_Contents::
DW L1304_Load
DW L1304_Init
DW L1304_Check
DW L1304_Map
;---------------------------------------------------------------------
; Load
;---------------------------------------------------------------------
L1304_Load:
DW ((L1304_LoadFinished - L1304_Load2)) ;size
L1304_Load2:
ld a,BANK(backinside_bg)
ld hl,backinside_bg
call LoadCinemaBG
ld a,15
call SetupFadeFromStandard
call WaitFade
ld de,((.returnToShip-L1304_Load2)+levelCheckRAM)
call SetDialogForward
call SetDialogSkip
ld a,150
call Delay
.returnToShip
call ClearDialogSkipForward
ld a,15
call SetupFadeToStandard
call WaitFade
ld a,EXIT_D
ld [hero0_enterLevelFacing],a
ld [hero1_enterLevelFacing],a
ld hl,$1300
ld a,l
ld [curLevelIndex],a
ld a,h
ld [curLevelIndex+1],a
ld a,1
ld [timeToChangeLevel],a
ret
L1304_LoadFinished:
;---------------------------------------------------------------------
; Map
;---------------------------------------------------------------------
L1304_Map:
;---------------------------------------------------------------------
; Init
;---------------------------------------------------------------------
L1304_Init:
DW ((L1304_InitFinished - L1304_Init2)) ;size
L1304_Init2:
ret
L1304_InitFinished:
;---------------------------------------------------------------------
; Check
;---------------------------------------------------------------------
L1304_Check:
DW ((L1304_CheckFinished - L1304_Check2)) ;size
L1304_Check2:
ret
L1304_CheckFinished:
PRINT "1304 Script Sizes (Load/Init/Check) (of $500): "
PRINT (L1304_LoadFinished - L1304_Load2)
PRINT " / "
PRINT (L1304_InitFinished - L1304_Init2)
PRINT " / "
PRINT (L1304_CheckFinished - L1304_Check2)
PRINT "\n"
|
||||
TheStack | d235ae807537ef35b49589a9c8f1ebeec4b874dc | Assemblycode:Assembly | {"size": 270, "ext": "asm", "max_stars_repo_path": "libsrc/graphics/cplot.asm", "max_stars_repo_name": "jpoikela/z88dk", "max_stars_repo_stars_event_min_datetime": "2021-06-18T12:56:15.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-12T20:38:40.000Z", "max_issues_repo_path": "libsrc/graphics/cplot.asm", "max_issues_repo_name": "jpoikela/z88dk", "max_issues_repo_issues_event_min_datetime": "2021-06-20T16:28:12.000Z", "max_issues_repo_issues_event_max_datetime": "2021-11-17T21:33:56.000Z", "max_forks_repo_path": "libsrc/graphics/cplot.asm", "max_forks_repo_name": "jpoikela/z88dk", "max_forks_repo_forks_event_min_datetime": "2021-06-18T18:18:36.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-22T08:01:32.000Z"} | {"max_stars_count": 38, "max_issues_count": 2, "max_forks_count": 6, "avg_line_length": 11.7391304348, "max_line_length": 41, "alphanum_fraction": 0.7555555556} | ; CALLER LINKAGE FOR FUNCTION POINTERS
SECTION code_clib
PUBLIC cplot
PUBLIC _cplot
EXTERN cplot_callee
EXTERN ASMDISP_CPLOT_CALLEE
.cplot
._cplot
pop af
pop bc
pop de
pop hl
push hl
push de
push bc
push af
jp cplot_callee + ASMDISP_CPLOT_CALLEE
|
||||
TheStack | 133336516877818f161d616114cc2acf0914ceb0 | Assemblycode:Assembly | {"size": 744, "ext": "asm", "max_stars_repo_path": "oeis/127/A127337.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/127/A127337.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/127/A127337.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 39.1578947368, "max_line_length": 480, "alphanum_fraction": 0.7150537634} | ; A127337: Numbers that are the sum of 10 consecutive primes.
; Submitted by Jamie Morken(s1)
; 129,158,192,228,264,300,340,382,424,468,510,552,594,636,682,732,780,824,870,912,954,1008,1060,1114,1164,1216,1266,1320,1376,1434,1494,1546,1596,1650,1704,1752,1800,1854,1914,1974,2030,2084,2142,2192,2250,2310,2374,2432,2480,2530,2582,2632,2686,2752,2812,2868,2922,2984,3050,3120,3188,3258,3324,3384,3446,3512,3578,3636,3696,3750,3810,3876,3938,4002,4062,4122,4182,4242,4302,4362,4416,4464,4522,4578,4636,4696,4756,4816,4880,4942,5020,5100,5178,5254,5332,5404,5478,5556,5628,5704
sub $0,1
mov $2,$0
mov $3,10
lpb $3
mov $0,$2
add $0,1
sub $3,1
add $0,$3
max $0,0
seq $0,86801 ; a(n) = prime(n) - 3.
add $1,3
add $1,$0
lpe
mov $0,$1
|
||||
TheStack | 709be5eeec11a708df94d4693cd5031541ffc762 | Assemblycode:Assembly | {"size": 55031, "ext": "asm", "max_stars_repo_path": "LIB/DLLKop32/TSoft_Koder.asm", "max_stars_repo_name": "stasinek/Koperek_VCL", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "LIB/DLLKop32/TSoft_Koder.asm", "max_issues_repo_name": "stasinek/Koperek_VCL", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "LIB/DLLKop32/TSoft_Koder.asm", "max_forks_repo_name": "stasinek/Koperek_VCL", "max_forks_repo_forks_event_min_datetime": "2019-03-06T03:56:14.000Z", "max_forks_repo_forks_event_max_datetime": "2019-03-06T03:56:14.000Z"} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 24.1894505495, "max_line_length": 127, "alphanum_fraction": 0.6625538333} | .386p
ifdef ??version
if ??version GT 500H
.mmx
endif
endif
model flat
ifndef ??version
?debug macro
endm
endif
?debug S "C:\Program Files\Borland\CBuilder5\Projects\OBSOLETE\PROGS\Koperek.VCL\LIB\DLLKop32\TSoft_Koder.cpp"
?debug T "C:\Program Files\Borland\CBuilder5\Projects\OBSOLETE\PROGS\Koperek.VCL\LIB\DLLKop32\TSoft_Koder.cpp"
_TEXT segment dword public use32 'CODE'
_TEXT ends
_DATA segment dword public use32 'DATA'
_DATA ends
_BSS segment dword public use32 'BSS'
_BSS ends
DGROUP group _BSS,_DATA
_DATA segment dword public use32 'DATA'
align 4
_CRC32_tab label dword
dd 0
dd 1996959894
dd -301047508
dd -1727442502
dd 124634137
dd 1886057615
dd -379345611
dd -1637575261
dd 249268274
dd 2044508324
dd -522852066
dd -1747789432
dd 162941995
dd 2125561021
dd -407360249
dd -1866523247
dd 498536548
dd 1789927666
dd -205950648
dd -2067906082
dd 450548861
dd 1843258603
dd -187386543
dd -2083289657
dd 325883990
dd 1684777152
dd -43845254
dd -1973040660
dd 335633487
dd 1661365465
dd -99664541
dd -1928851979
dd 997073096
dd 1281953886
dd -715111964
dd -1570279054
dd 1006888145
dd 1258607687
dd -770865667
dd -1526024853
dd 901097722
dd 1119000684
dd -608450090
dd -1396901568
dd 853044451
dd 1172266101
dd -589951537
dd -1412350631
dd 651767980
dd 1373503546
dd -925412992
dd -1076862698
dd 565507253
dd 1454621731
dd -809855591
dd -1195530993
dd 671266974
dd 1594198024
dd -972236366
dd -1324619484
dd 795835527
dd 1483230225
dd -1050600021
dd -1234817731
dd 1994146192
dd 31158534
dd -1731059524
dd -271249366
dd 1907459465
dd 112637215
dd -1614814043
dd -390540237
dd 2013776290
dd 251722036
dd -1777751922
dd -519137256
dd 2137656763
dd 141376813
dd -1855689577
dd -429695999
dd 1802195444
dd 476864866
dd -2056965928
dd -228458418
dd 1812370925
dd 453092731
dd -2113342271
dd -183516073
dd 1706088902
dd 314042704
dd -1950435094
dd -54949764
dd 1658658271
dd 366619977
dd -1932296973
dd -69972891
dd 1303535960
dd 984961486
dd -1547960204
dd -725929758
dd 1256170817
dd 1037604311
dd -1529756563
dd -740887301
dd 1131014506
dd 879679996
dd -1385723834
dd -631195440
dd 1141124467
dd 855842277
dd -1442165665
dd -586318647
dd 1342533948
dd 654459306
dd -1106571248
dd -921952122
dd 1466479909
dd 544179635
dd -1184443383
dd -832445281
dd 1591671054
dd 702138776
dd -1328506846
dd -942167884
dd 1504918807
dd 783551873
dd -1212326853
dd -1061524307
dd -306674912
dd -1698712650
dd 62317068
dd 1957810842
dd -355121351
dd -1647151185
dd 81470997
dd 1943803523
dd -480048366
dd -1805370492
dd 225274430
dd 2053790376
dd -468791541
dd -1828061283
dd 167816743
dd 2097651377
dd -267414716
dd -2029476910
dd 503444072
dd 1762050814
dd -144550051
dd -2140837941
dd 426522225
dd 1852507879
dd -19653770
dd -1982649376
dd 282753626
dd 1742555852
dd -105259153
dd -1900089351
dd 397917763
dd 1622183637
dd -690576408
dd -1580100738
dd 953729732
dd 1340076626
dd -776247311
dd -1497606297
dd 1068828381
dd 1219638859
dd -670225446
dd -1358292148
dd 906185462
dd 1090812512
dd -547295293
dd -1469587627
dd 829329135
dd 1181335161
dd -882789492
dd -1134132454
dd 628085408
dd 1382605366
dd -871598187
dd -1156888829
dd 570562233
dd 1426400815
dd -977650754
dd -1296233688
dd 733239954
dd 1555261956
dd -1026031705
dd -1244606671
dd 752459403
dd 1541320221
dd -1687895376
dd -328994266
dd 1969922972
dd 40735498
dd -1677130071
dd -351390145
dd 1913087877
dd 83908371
dd -1782625662
dd -491226604
dd 2075208622
dd 213261112
dd -1831694693
dd -438977011
dd 2094854071
dd 198958881
dd -2032938284
dd -237706686
dd 1759359992
dd 534414190
dd -2118248755
dd -155638181
dd 1873836001
dd 414664567
dd -2012718362
dd -15766928
dd 1711684554
dd 285281116
dd -1889165569
dd -127750551
dd 1634467795
dd 376229701
dd -1609899400
dd -686959890
dd 1308918612
dd 956543938
dd -1486412191
dd -799009033
dd 1231636301
dd 1047427035
dd -1362007478
dd -640263460
dd 1088359270
dd 936918000
dd -1447252397
dd -558129467
dd 1202900863
dd 817233897
dd -1111625188
dd -893730166
dd 1404277552
dd 615818150
dd -1160759803
dd -841546093
dd 1423857449
dd 601450431
dd -1285129682
dd -1000256840
dd 1567103746
dd 711928724
dd -1274298825
dd -1022587231
dd 1510334235
dd 755167117
$mepbdfia label byte
db 0
db 1
db 2
db 4
db 5
db 7
db 8
db 10
db 11
db 12
db 16
db 22
db 23
db 26
_DATA ends
_TEXT segment dword public use32 'CODE'
Make_CRC32_tab segment virtual
align 2
@Make_CRC32_tab proc near
?live16385@0:
@1:
push ebx
push esi
push edi
add esp,-16
mov edi,esp
mov esi,offset $mepbdfia
mov ecx,3
?live16385@32: ; ESI = POLY_nominal
mov eax,esp
?live16385@48: ;
rep movsd
movsw
xor esi,esi
?live16385@80: ; ESI = POLY_nominal
xor ebx,ebx
?live16385@96: ; EBX = n, ESI = POLY_nominal, EAX = @temp4
@2:
xor edx,edx
mov ecx,31
mov dl,byte ptr [eax]
inc eax
sub ecx,edx
mov edx,1
shl edx,cl
or esi,edx
inc ebx
cmp ebx,14
jb short @2
?live16385@112: ; ESI = POLY_nominal
xor ebx,ebx
mov ecx,offset _CRC32_tab
?live16385@128: ; EBX = n, ESI = POLY_nominal, ECX = @temp5
@5:
mov eax,ebx
xor edx,edx
?live16385@144: ; EAX = c, EDX = k, EBX = n, ESI = POLY_nominal, ECX = @temp5
@7:
test al,1
je short @9
shr eax,1
xor eax,esi
jmp short @10
@9:
shr eax,1
@10:
inc edx
cmp edx,8
jb short @7
?live16385@176: ; EAX = c, EBX = n, ESI = POLY_nominal, ECX = @temp5
mov dword ptr [ecx],eax
inc ebx
add ecx,4
cmp ebx,256
jb short @5
?live16385@192: ;
@13:
add esp,16
pop edi
pop esi
pop ebx
ret
@Make_CRC32_tab endp
Make_CRC32_tab ends
_TEXT ends
_DATA segment dword public use32 'DATA'
align 4
$eipbdfia label dword
dd _CRC32_tab
_DATA ends
_TEXT segment dword public use32 'CODE'
Calc_CRC32 segment virtual
align 2
@Calc_CRC32 proc near
?live16386@0:
push ebp
mov ebp,esp
push ebx
push esi
push edi
@14:
mov EDI,dword ptr [ebp+8]
mov EDX,EDI
add EDX,dword ptr [ebp+12]
cmp EDI,EDX
jge @15
mov ESI,dword ptr $eipbdfia
mov EAX,0FFFFFFFFH
xor EBX,EBX
@16:
Calc_CRC32_NEXT:
mov BL,[EDI]
xor BL,AL
shr EAX,8
xor EAX,[ESI+EBX]
inc EDI
cmp EDI,EDX
jl @16
xor EAX,0FFFFFFFFH
@15:
Calc_CRC32_EXIT:
@17:
pop edi
pop esi
pop ebx
pop ebp
ret 8
@Calc_CRC32 endp
Calc_CRC32 ends
_TEXT ends
_TEXT segment dword public use32 'CODE'
@Calc_ADLER32$qqspvul segment virtual
align 2
@@Calc_ADLER32$qqspvul proc near
?live16387@0:
push ebp
mov ebp,esp
push ebx
push esi
push edi
@18:
mov EDI,dword ptr [ebp+8]
mov EDX,EDI
add EDX,dword ptr [ebp+12]
cmp EDI,EDX
jge @19
mov ESI,5552
xor EAX,EAX
xor EBX,EBX
xor ECX,ECX
@20:
Calc_ADLER32_NEXT:
mov CL,[EDI]
add AX,CX
add BX,AX
dec ESI
test ESI,ESI
jne @21
push EDX
mov EBX,65521
div EBX
push EDX
mov EAX,EBX
div EBX
push EDX
pop EBX
pop EAX
pop EDX
mov ESI,5552
@21:
Calc_ADLER32_INC:
inc EDI
cmp EDI,EDX
jl @20
shl EAX,16
or AX,BX
@19:
Calc_ADLER32_EXIT:
@22:
pop edi
pop esi
pop ebx
pop ebp
ret 8
@@Calc_ADLER32$qqspvul endp
@Calc_ADLER32$qqspvul ends
_TEXT ends
_DATA segment dword public use32 'DATA'
@_$DCKC$@Compress_LZS$qqspvt1ulul segment virtual
align 2
@@_$DCKC$@Compress_LZS$qqspvt1ulul label dword
dd @@$xt$10TSoft_Huff
dd 4
dd -12
dd @@$xt$13TSoft_BinTree
dd 4
dd -76
dd 0
dd @@$xt$10TSoft_Huff
dd 4
dd -12
dd 0
dd @@$xt$13TSoft_BinTree
dd 4
dd -76
dd 0
@_$DCKC$@Compress_LZS$qqspvt1ulul ends
_DATA ends
_DATA segment dword public use32 'DATA'
@_$ECTLC$@Compress_LZS$qqspvt1ulul segment virtual
align 2
@@_$ECTLC$@Compress_LZS$qqspvt1ulul label dword
dd 0
dd -112
dw 0
dw 5
dd 0
dd @@_$DCKC$@Compress_LZS$qqspvt1ulul+28
dw 0
dw 5
dd 0
dd @@_$DCKC$@Compress_LZS$qqspvt1ulul
dw 20
dw 5
dd 1
dd @@_$DCKC$@Compress_LZS$qqspvt1ulul+44
@_$ECTLC$@Compress_LZS$qqspvt1ulul ends
_DATA ends
_TEXT segment dword public use32 'CODE'
Compress_LZS segment virtual
align 2
@Compress_LZS proc near
?live16388@0:
@23:
push ebp
mov ebp,esp
add esp,-1152
mov eax,offset @@_$ECTLC$@Compress_LZS$qqspvt1ulul
push ebx
push esi
push edi
mov esi,dword ptr [ebp+12]
call @__InitExceptBlockLDTC
?live16388@16: ; ESI = alpSrc
xor edx,edx
mov dword ptr [ebp-116],edx
push 1024
push 0
lea ecx,dword ptr [ebp-1152]
push ecx
call @_memset
add esp,12
mov eax,esi
mov ebx,eax
?live16388@48: ; EBX = ptrs, ESI = alpSrc, EAX = @temp21
add eax,dword ptr [ebp+16]
mov dword ptr [ebp-120],eax
?live16388@64: ; EBX = ptrs
mov eax,dword ptr [ebp+8]
mov dword ptr [ebp-124],eax
xor edi,edi
?live16388@96: ; EBX = ptrs, EDI = pass_text_length
mov dword ptr [ebp-128],ebx
xor esi,esi
?live16388@128: ; EBX = ptrs, ESI = pass_skip_length, EDI = pass_text_length
mov word ptr [ebp-96],8
lea eax,dword ptr [ebp-12]
push eax
call @@TSoft_Huff@$bctr$qqsv
inc dword ptr [ebp-84]
lea edx,dword ptr [ebp-12]
mov word ptr [ebp-96],20
push edx
call @@TSoft_Huff@Initialize$qqsv
mov word ptr [ebp-96],32
mov ecx,dword ptr [ebp+16]
push ecx
mov eax,dword ptr [ebp+20]
push eax
lea edx,dword ptr [ebp-76]
push edx
call @@TSoft_BinTree@$bctr$qqsulul
inc dword ptr [ebp-84]
mov word ptr [ebp-96],20
push ebx
lea ecx,dword ptr [ebp-76]
push ecx
call @@TSoft_BinTree@Initialize$qqspuc
@24:
lea eax,dword ptr [esi+ebx]
mov edx,eax
add edx,dword ptr [ebp-52]
cmp edx,dword ptr [ebp-120]
jb short @27
?live16388@240: ; EBX = ptrs, ESI = pass_skip_length, EDI = pass_text_length, EAX = @temp9
;
add eax,8
cmp eax,dword ptr [ebp-120]
jb short @28
?live16388@256: ; EBX = ptrs, ESI = pass_skip_length, EDI = pass_text_length
add ebx,esi
?live16388@272: ; EBX = ptrs, EDI = pass_text_length
mov ecx,dword ptr [ebp-120]
sub ecx,ebx
add edi,ecx
?live16388@288: ; EDI = pass_text_length
jmp @29
?live16388@304: ; EBX = ptrs, ESI = pass_skip_length, EDI = pass_text_length
@28:
mov eax,dword ptr [ebp-120]
sub eax,ebx
sub eax,esi
mov dword ptr [ebp-52],eax
@27:
push esi
push ebx
lea edx,dword ptr [ebp-76]
push edx
call @@TSoft_BinTree@Update$qqspucul
add ebx,esi
lea ecx,dword ptr [ebp-76]
push ecx
call @@TSoft_BinTree@Search_brun$qqsv
mov eax,dword ptr [ebp-36]
cmp eax,1
je short @31
?live16388@384: ; EBX = ptrs, ESI = pass_skip_length, EDI = pass_text_length, EAX = @temp11
;
push edi
push eax
lea edx,dword ptr [ebp-76]
push edx
call @@TSoft_BinTree@Optimum_brun_match$qqsulul
test al,al
jne short @33
?live16388@400: ; EBX = ptrs, ESI = pass_skip_length, EDI = pass_text_length
mov dword ptr [ebp-36],1
@31:
lea ecx,dword ptr [ebp-76]
push ecx
call @@TSoft_BinTree@Search_dict$qqsv
mov eax,dword ptr [ebp-56]
test eax,eax
je short @34
?live16388@448: ; EBX = ptrs, ESI = pass_skip_length, EDI = pass_text_length, EAX = @temp12
;
push edi
push eax
lea edx,dword ptr [ebp-76]
push edx
call @@TSoft_BinTree@Optimum_dict_match$qqsulul
test al,al
jne short @33
?live16388@464: ; EBX = ptrs, ESI = pass_skip_length, EDI = pass_text_length
xor ecx,ecx
mov dword ptr [ebp-56],ecx
?live16388@480: ; EBX = ptrs, EDI = pass_text_length
@34:
cmp edi,255
jb short @36
xor esi,esi
?live16388@512: ; EBX = ptrs, ESI = pass_skip_length, EDI = pass_text_length
jmp short @33
?live16388@528: ; EBX = ptrs, EDI = pass_text_length
@36:
mov esi,1
?live16388@544: ; EBX = ptrs, ESI = pass_skip_length, EDI = pass_text_length
inc edi
jmp @24
@33:
test edi,edi
je short @37
push edi
mov eax,dword ptr [ebp-124]
push eax
lea edx,dword ptr [ebp-20]
push edx
call @@__bitptr_hdrcoder@Code_ptrPass$qqspulul
xor ecx,ecx
mov cl,al
add dword ptr [ebp-124],ecx
push edi
mov eax,dword ptr [ebp-128]
push eax
mov edx,dword ptr [ebp-124]
push edx
call @ptrEql
add dword ptr [ebp-124],edi
inc dword ptr [ebp+4*edi-1152]
mov eax,dword ptr [ebp+4*edi-1152]
cmp eax,dword ptr [ebp-116]
jbe short @38
?live16388@640: ; EBX = ptrs, ESI = pass_skip_length, EDI = pass_text_length, EAX = @temp17
;
mov dword ptr [ebp-116],eax
?live16388@656: ; EBX = ptrs, ESI = pass_skip_length
@38:
mov dword ptr [ebp-128],ebx
xor edi,edi
?live16388@688: ; EBX = ptrs, ESI = pass_skip_length, EDI = pass_text_length
@37:
cmp dword ptr [ebp-36],1
je short @39
?live16388@704: ; EBX = ptrs, EDI = pass_text_length
mov eax,dword ptr [ebp-32]
push eax
mov edx,dword ptr [ebp-28]
push edx
mov ecx,dword ptr [ebp-124]
push ecx
lea eax,dword ptr [ebp-20]
push eax
call @@__bitptr_hdrcoder@Code_ptrBrun$qqspululul
xor edx,edx
mov esi,ebx
mov dl,al
add dword ptr [ebp-124],edx
mov ecx,dword ptr [ebp-28]
push ecx
push esi
mov eax,dword ptr [ebp-124]
push eax
call @ptrEql
mov edx,dword ptr [ebp-28]
add dword ptr [ebp-124],edx
?live16388@720: ; EBX = ptrs, EDI = pass_text_length, ESI = @temp14
mov eax,dword ptr [ebp-32]
inc dword ptr [ebp+4*eax-1152]
?live16388@736: ; EBX = ptrs, EDI = pass_text_length, EAX = @temp13, ESI = @temp14
;
mov edx,dword ptr [ebp+4*eax-1152]
cmp edx,dword ptr [ebp-116]
jbe short @40
?live16388@752: ; EBX = ptrs, EDI = pass_text_length, ESI = @temp14
mov ecx,dword ptr [ebp-32]
mov eax,dword ptr [ebp+4*ecx-1152]
mov dword ptr [ebp-116],eax
@40:
mov eax,dword ptr [ebp-36]
add esi,eax
mov dword ptr [ebp-128],esi
?live16388@784: ; EBX = ptrs, EDI = pass_text_length, EAX = @temp15
mov esi,eax
?live16388@800: ; EBX = ptrs, ESI = pass_skip_length, EDI = pass_text_length
jmp @24
@39:
cmp dword ptr [ebp-56],0
je @24
mov eax,dword ptr [ebp-56]
push eax
mov edx,dword ptr [ebp-48]
push edx
mov ecx,dword ptr [ebp-124]
push ecx
lea eax,dword ptr [ebp-20]
push eax
call @@__bitptr_hdrcoder@Code_ptrDict$qqspululul
xor edx,edx
mov dl,al
add dword ptr [ebp-124],edx
?live16388@848: ; EBX = ptrs, EDI = pass_text_length
mov eax,dword ptr [ebp-56]
inc dword ptr [ebp+4*eax-1152]
?live16388@864: ; EBX = ptrs, EDI = pass_text_length, EAX = @temp5
mov edx,dword ptr [ebp+4*eax-1152]
cmp edx,dword ptr [ebp-116]
jbe short @42
mov ecx,dword ptr [ebp-56]
mov edx,dword ptr [ebp+4*ecx-1152]
mov dword ptr [ebp-116],edx
@42:
mov ecx,ebx
mov esi,eax
add ecx,eax
mov dword ptr [ebp-128],ecx
?live16388@944: ; EBX = ptrs, ESI = pass_skip_length, EDI = pass_text_length
jmp @24
@29:
test edi,edi
je short @43
?live16388@976: ; EDI = pass_text_length
push edi
mov eax,dword ptr [ebp-124]
push eax
lea edx,dword ptr [ebp-20]
push edx
call @@__bitptr_hdrcoder@Code_ptrPass$qqspulul
xor ecx,ecx
mov cl,al
add dword ptr [ebp-124],ecx
push edi
mov eax,dword ptr [ebp-128]
push eax
mov edx,dword ptr [ebp-124]
push edx
call @ptrEql
add dword ptr [ebp-124],edi
?live16388@992: ;
@43:
mov eax,dword ptr [ebp-124]
lea edx,dword ptr [ebp-76]
sub eax,dword ptr [ebp+8]
push eax
dec dword ptr [ebp-84]
push 2
push edx
call @@TSoft_BinTree@$bdtr$qqsv
dec dword ptr [ebp-84]
push 2
lea ecx,dword ptr [ebp-12]
push ecx
call @@TSoft_Huff@$bdtr$qqsv
pop eax
mov edx,dword ptr [ebp-112]
mov dword ptr fs:[0],edx
@45:
@44:
pop edi
pop esi
pop ebx
mov esp,ebp
pop ebp
ret 16
@Compress_LZS endp
Compress_LZS ends
_TEXT ends
_DATA segment dword public use32 'DATA'
@_$DCMC$@UnCompress_LZS$qqspvult1 segment virtual
align 2
@@_$DCMC$@UnCompress_LZS$qqspvult1 label dword
dd @@$xt$10TSoft_Huff
dd 4
dd -12
dd 0
dd @@$xt$10TSoft_Huff
dd 4
dd -12
dd 0
@_$DCMC$@UnCompress_LZS$qqspvult1 ends
_DATA ends
_DATA segment dword public use32 'DATA'
@_$ECTNC$@UnCompress_LZS$qqspvult1 segment virtual
align 2
@@_$ECTNC$@UnCompress_LZS$qqspvult1 label dword
dd 0
dd -48
dw 0
dw 5
dd 0
dd @@_$DCMC$@UnCompress_LZS$qqspvult1+16
dw 0
dw 5
dd 0
dd @@_$DCMC$@UnCompress_LZS$qqspvult1
@_$ECTNC$@UnCompress_LZS$qqspvult1 ends
_DATA ends
_TEXT segment dword public use32 'CODE'
UnCompress_LZS segment virtual
align 2
@UnCompress_LZS proc near
?live16393@0:
@46:
push ebp
mov ebp,esp
add esp,-72
push ebx
push esi
push edi
lea edi,dword ptr [ebp-56]
mov eax,offset @@_$ECTNC$@UnCompress_LZS$qqspvult1
call @__InitExceptBlockLDTC
?live16393@16: ; EBX = ptrs, EDI = &cnt
mov eax,dword ptr [ebp+8]
?live16393@32: ; EDI = &cnt
mov ebx,dword ptr [ebp+16]
?live16393@48: ; EBX = ptrs, EDI = &cnt
mov esi,eax
?live16393@64: ; EBX = ptrs, ESI = ptrd, EDI = &cnt, EAX = @temp6
add eax,dword ptr [ebp+12]
mov dword ptr [ebp-52],eax
?live16393@80: ; EBX = ptrs, ESI = ptrd, EDI = &cnt
lea eax,dword ptr [ebp-12]
mov word ptr [ebp-32],8
push eax
call @@TSoft_Huff@$bctr$qqsv
inc dword ptr [ebp-20]
lea edx,dword ptr [ebp-12]
mov word ptr [ebp-32],20
push edx
call @@TSoft_Huff@Initialize$qqsv
cmp esi,dword ptr [ebp-52]
jae @48
@47:
mov al,byte ptr [ebx]
and al,3
?live16393@176: ; EBX = ptrs, ESI = ptrd, EAX = hdr, EDI = &cnt
cmp al,1
je short @50
?live16393@192: ; EBX = ptrs, ESI = ptrd, EDI = &cnt
cmp al,2
je short @52
test al,al
push ebx
push edi
lea edx,dword ptr [ebp-72]
push edx
call @@__bitptr_hdrcoder@DeCode_ptrPass$qqspult1
xor ecx,ecx
mov cl,al
add ebx,ecx
mov eax,dword ptr [edi]
push eax
push ebx
push esi
call @ptrEql
add ebx,dword ptr [edi]
add esi,dword ptr [edi]
jmp short @55
@50:
push ebx
push edi
lea edx,dword ptr [ebp-60]
push edx
lea ecx,dword ptr [ebp-72]
push ecx
call @@__bitptr_hdrcoder@DeCode_ptrDict$qqspult1t1
and eax,255
add ebx,eax
mov edx,dword ptr [edi]
push edx
mov ecx,esi
sub ecx,dword ptr [ebp-60]
push ecx
push esi
call @ptrEql
add esi,dword ptr [edi]
jmp short @55
@52:
push ebx
push edi
lea eax,dword ptr [ebp-64]
push eax
lea edx,dword ptr [ebp-72]
push edx
call @@__bitptr_hdrcoder@DeCode_ptrBrun$qqspult1t1
xor ecx,ecx
mov cl,al
mov eax,dword ptr [edi]
push eax
add ebx,ecx
mov dl,byte ptr [ebp-64]
push edx
push ebx
push esi
call @ptrSetEx
add ebx,dword ptr [ebp-64]
mov ecx,dword ptr [ebp-64]
imul ecx,dword ptr [edi]
add esi,ecx
@55:
cmp esi,dword ptr [ebp-52]
jb @47
?live16393@480: ;
@48:
dec dword ptr [ebp-20]
push 2
lea eax,dword ptr [ebp-12]
push eax
call @@TSoft_Huff@$bdtr$qqsv
mov edx,dword ptr [ebp-48]
mov dword ptr fs:[0],edx
@56:
pop edi
pop esi
pop ebx
mov esp,ebp
pop ebp
ret 12
@UnCompress_LZS endp
UnCompress_LZS ends
_TEXT ends
_DATA segment dword public use32 'DATA'
@_$DCOC$@Compress_HUF$qqspvt1ulus segment virtual
align 2
@@_$DCOC$@Compress_HUF$qqspvt1ulus label dword
dd @@$xt$10TSoft_Huff
dd 4
dd -12
dd 0
dd @@$xt$10TSoft_Huff
dd 4
dd -12
dd 0
@_$DCOC$@Compress_HUF$qqspvt1ulus ends
_DATA ends
_DATA segment dword public use32 'DATA'
@_$ECTPC$@Compress_HUF$qqspvt1ulus segment virtual
align 2
@@_$ECTPC$@Compress_HUF$qqspvt1ulus label dword
dd 0
dd -48
dw 0
dw 5
dd 0
dd @@_$DCOC$@Compress_HUF$qqspvt1ulus+16
dw 0
dw 5
dd 0
dd @@_$DCOC$@Compress_HUF$qqspvt1ulus
@_$ECTPC$@Compress_HUF$qqspvt1ulus ends
_DATA ends
_TEXT segment dword public use32 'CODE'
Compress_HUF segment virtual
align 2
@Compress_HUF proc near
?live16396@0:
@57:
push ebp
mov ebp,esp
add esp,-52
mov eax,offset @@_$ECTPC$@Compress_HUF$qqspvt1ulus
push ebx
push esi
push edi
mov ebx,dword ptr [ebp+12]
call @__InitExceptBlockLDTC
?live16396@16: ; EBX = alpSrc
mov eax,ebx
mov esi,eax
?live16396@32: ; ESI = ptrs, EBX = alpSrc, EAX = @temp6
add eax,dword ptr [ebp+16]
mov dword ptr [ebp-52],eax
?live16396@48: ; EBX = ptrd_bit, ESI = ptrs, EDI = ptrd
lea eax,dword ptr [ebp-12]
?live16396@64: ; ESI = ptrs
mov edi,dword ptr [ebp+8]
?live16396@80: ; ESI = ptrs, EDI = ptrd
xor ebx,ebx
?live16396@96: ; EBX = ptrd_bit, ESI = ptrs, EDI = ptrd
mov word ptr [ebp-32],8
push eax
call @@TSoft_Huff@$bctr$qqsv
inc dword ptr [ebp-20]
lea edx,dword ptr [ebp-12]
mov word ptr [ebp-32],20
push edx
call @@TSoft_Huff@Initialize$qqsv
cmp esi,dword ptr [ebp-52]
jae short @59
@58:
mov cl,byte ptr [esi]
push ecx
push ebx
push edi
lea eax,dword ptr [ebp-12]
push eax
call @@TSoft_Huff@Encode$qqspucucuc
add bl,al
xor edx,edx
mov dl,bl
and bl,7
sar edx,3
inc esi
add edi,edx
cmp esi,dword ptr [ebp-52]
jb short @58
?live16396@288: ; EBX = ptrd_bit, EDI = ptrd
@59:
xor ecx,ecx
mov cl,bl
mov eax,32
sub eax,ecx
push eax
push 0
push offset s@
push ebx
push edi
call @bitEql
?live16396@304: ; EDI = ptrd
add edi,4
lea edx,dword ptr [ebp-12]
mov eax,edi
sub eax,dword ptr [ebp+8]
push eax
dec dword ptr [ebp-20]
push 2
push edx
call @@TSoft_Huff@$bdtr$qqsv
pop eax
mov edx,dword ptr [ebp-48]
mov dword ptr fs:[0],edx
?live16396@336: ;
@62:
@61:
pop edi
pop esi
pop ebx
mov esp,ebp
pop ebp
ret 16
@Compress_HUF endp
Compress_HUF ends
_TEXT ends
_DATA segment dword public use32 'DATA'
@_$DCQC$@UnCompress_HUF$qqspvult1 segment virtual
align 2
@@_$DCQC$@UnCompress_HUF$qqspvult1 label dword
dd @@$xt$10TSoft_Huff
dd 4
dd -12
dd 0
dd @@$xt$10TSoft_Huff
dd 4
dd -12
dd 0
@_$DCQC$@UnCompress_HUF$qqspvult1 ends
_DATA ends
_DATA segment dword public use32 'DATA'
@_$ECTRC$@UnCompress_HUF$qqspvult1 segment virtual
align 2
@@_$ECTRC$@UnCompress_HUF$qqspvult1 label dword
dd 0
dd -48
dw 0
dw 5
dd 0
dd @@_$DCQC$@UnCompress_HUF$qqspvult1+16
dw 0
dw 5
dd 0
dd @@_$DCQC$@UnCompress_HUF$qqspvult1
@_$ECTRC$@UnCompress_HUF$qqspvult1 ends
_DATA ends
_TEXT segment dword public use32 'CODE'
UnCompress_HUF segment virtual
align 2
@UnCompress_HUF proc near
?live16399@0:
@63:
push ebp
mov ebp,esp
add esp,-52
mov eax,offset @@_$ECTRC$@UnCompress_HUF$qqspvult1
push ebx
push esi
push edi
call @__InitExceptBlockLDTC
?live16399@16: ; EBX = ptrs_bit, EDI = ptrs
mov eax,dword ptr [ebp+8]
?live16399@32: ; EDI = ptrs
xor ebx,ebx
?live16399@48: ; EBX = ptrs_bit, EDI = ptrs
mov esi,eax
?live16399@64: ;
mov edi,dword ptr [ebp+16]
?live16399@80: ; EBX = ptrs_bit, ESI = ptrd, EDI = ptrs, EAX = @temp5
add eax,dword ptr [ebp+12]
mov dword ptr [ebp-52],eax
?live16399@96: ; EBX = ptrs_bit, ESI = ptrd, EDI = ptrs
lea eax,dword ptr [ebp-12]
mov word ptr [ebp-32],8
push eax
call @@TSoft_Huff@$bctr$qqsv
inc dword ptr [ebp-20]
lea edx,dword ptr [ebp-12]
mov word ptr [ebp-32],20
push edx
call @@TSoft_Huff@Initialize$qqsv
cmp esi,dword ptr [ebp-52]
jae short @65
@64:
push ebx
push edi
push esi
lea ecx,dword ptr [ebp-12]
push ecx
call @@TSoft_Huff@Decode$qqspuct1uc
add bl,al
xor eax,eax
mov al,bl
and bl,7
sar eax,3
inc esi
add edi,eax
cmp esi,dword ptr [ebp-52]
jb short @64
?live16399@288: ;
@65:
dec dword ptr [ebp-20]
push 2
lea edx,dword ptr [ebp-12]
push edx
call @@TSoft_Huff@$bdtr$qqsv
mov ecx,dword ptr [ebp-48]
mov dword ptr fs:[0],ecx
@67:
pop edi
pop esi
pop ebx
mov esp,ebp
pop ebp
ret 12
@UnCompress_HUF endp
UnCompress_HUF ends
_TEXT ends
_DATA segment dword public use32 'DATA'
@_$DCSC$@Compress_ARI$qqspvt1ulus segment virtual
align 2
@@_$DCSC$@Compress_ARI$qqspvt1ulus label dword
dd @@$xt$9TSoft_Ari
dd 4
dd -32
dd 0
dd @@$xt$9TSoft_Ari
dd 4
dd -32
dd 0
@_$DCSC$@Compress_ARI$qqspvt1ulus ends
_DATA ends
_DATA segment dword public use32 'DATA'
@_$ECTTC$@Compress_ARI$qqspvt1ulus segment virtual
align 2
@@_$ECTTC$@Compress_ARI$qqspvt1ulus label dword
dd 0
dd -68
dw 0
dw 5
dd 0
dd @@_$DCSC$@Compress_ARI$qqspvt1ulus+16
dw 0
dw 5
dd 0
dd @@_$DCSC$@Compress_ARI$qqspvt1ulus
@_$ECTTC$@Compress_ARI$qqspvt1ulus ends
_DATA ends
_TEXT segment dword public use32 'CODE'
Compress_ARI segment virtual
align 2
@Compress_ARI proc near
?live16402@0:
@68:
push ebp
mov ebp,esp
add esp,-72
mov eax,offset @@_$ECTTC$@Compress_ARI$qqspvt1ulus
push ebx
push esi
push edi
mov ebx,dword ptr [ebp+12]
call @__InitExceptBlockLDTC
?live16402@16: ; EBX = alpSrc
mov eax,ebx
mov esi,eax
?live16402@32: ; ESI = ptrs, EBX = alpSrc, EAX = @temp6
add eax,dword ptr [ebp+16]
mov dword ptr [ebp-72],eax
?live16402@48: ; EBX = ptrd_bit, ESI = ptrs, EDI = ptrd
lea eax,dword ptr [ebp-32]
?live16402@64: ; ESI = ptrs
mov edi,dword ptr [ebp+8]
?live16402@80: ; ESI = ptrs, EDI = ptrd
xor ebx,ebx
?live16402@96: ; EBX = ptrd_bit, ESI = ptrs, EDI = ptrd
mov word ptr [ebp-52],8
push eax
call @@TSoft_Ari@$bctr$qqsv
inc dword ptr [ebp-40]
lea edx,dword ptr [ebp-32]
mov word ptr [ebp-52],20
push edx
call @@TSoft_Ari@Initialize_Encoder$qqsv
cmp esi,dword ptr [ebp-72]
jae short @70
@69:
mov cl,byte ptr [esi]
push ecx
push ebx
push edi
lea eax,dword ptr [ebp-32]
push eax
call @@TSoft_Ari@Encode$qqspulucuc
add bl,al
xor edx,edx
mov dl,bl
and bl,7
sar edx,3
inc esi
add edi,edx
cmp esi,dword ptr [ebp-72]
jb short @69
?live16402@288: ; EBX = ptrd_bit, EDI = ptrd
@70:
push ebx
push edi
lea ecx,dword ptr [ebp-32]
push ecx
call @@TSoft_Ari@Flush_Encoder$qqspuluc
add bl,al
xor eax,eax
mov al,bl
?live16402@320: ; EDI = ptrd
lea edx,dword ptr [ebp-32]
?live16402@336: ; EBX = ptrd_bit, EDI = ptrd
sar eax,3
add edi,eax
?live16402@352: ; EDI = ptrd
mov eax,edi
sub eax,dword ptr [ebp+8]
push eax
dec dword ptr [ebp-40]
push 2
push edx
call @@TSoft_Ari@$bdtr$qqsv
pop eax
mov edx,dword ptr [ebp-68]
mov dword ptr fs:[0],edx
?live16402@368: ;
@73:
@72:
pop edi
pop esi
pop ebx
mov esp,ebp
pop ebp
ret 16
@Compress_ARI endp
Compress_ARI ends
_TEXT ends
_DATA segment dword public use32 'DATA'
@_$DCUC$@UnCompress_ARI$qqspvult1 segment virtual
align 2
@@_$DCUC$@UnCompress_ARI$qqspvult1 label dword
dd @@$xt$9TSoft_Ari
dd 4
dd -32
dd 0
dd @@$xt$9TSoft_Ari
dd 4
dd -32
dd 0
@_$DCUC$@UnCompress_ARI$qqspvult1 ends
_DATA ends
_DATA segment dword public use32 'DATA'
@_$ECTVC$@UnCompress_ARI$qqspvult1 segment virtual
align 2
@@_$ECTVC$@UnCompress_ARI$qqspvult1 label dword
dd 0
dd -68
dw 0
dw 5
dd 0
dd @@_$DCUC$@UnCompress_ARI$qqspvult1+16
dw 0
dw 5
dd 0
dd @@_$DCUC$@UnCompress_ARI$qqspvult1
@_$ECTVC$@UnCompress_ARI$qqspvult1 ends
_DATA ends
_TEXT segment dword public use32 'CODE'
UnCompress_ARI segment virtual
align 2
@UnCompress_ARI proc near
?live16406@0:
@74:
push ebp
mov ebp,esp
add esp,-72
mov eax,offset @@_$ECTVC$@UnCompress_ARI$qqspvult1
push ebx
push esi
push edi
call @__InitExceptBlockLDTC
?live16406@16: ; EBX = ptrs_bit, EDI = ptrs
mov eax,dword ptr [ebp+8]
?live16406@32: ; EDI = ptrs
xor ebx,ebx
?live16406@48: ; EBX = ptrs_bit, EDI = ptrs
mov esi,eax
?live16406@64: ;
mov edi,dword ptr [ebp+16]
?live16406@80: ; EBX = ptrs_bit, ESI = ptrd, EDI = ptrs, EAX = @temp5
add eax,dword ptr [ebp+12]
mov dword ptr [ebp-72],eax
?live16406@96: ; EBX = ptrs_bit, ESI = ptrd, EDI = ptrs
lea eax,dword ptr [ebp-32]
mov word ptr [ebp-52],8
push eax
call @@TSoft_Ari@$bctr$qqsv
inc dword ptr [ebp-40]
lea edx,dword ptr [ebp-32]
mov word ptr [ebp-52],20
push ebx
push edi
push edx
call @@TSoft_Ari@Initialize_Decoder$qqspuluc
add bl,al
xor ecx,ecx
mov cl,bl
sar ecx,3
add edi,ecx
and bl,7
cmp esi,dword ptr [ebp-72]
jae short @76
@75:
push ebx
push edi
push esi
lea eax,dword ptr [ebp-32]
push eax
call @@TSoft_Ari@Decode$qqspucpuluc
add bl,al
xor edx,edx
mov dl,bl
and bl,7
sar edx,3
inc esi
add edi,edx
cmp esi,dword ptr [ebp-72]
jb short @75
?live16406@320: ;
@76:
dec dword ptr [ebp-40]
push 2
lea ecx,dword ptr [ebp-32]
push ecx
call @@TSoft_Ari@$bdtr$qqsv
mov eax,dword ptr [ebp-68]
mov dword ptr fs:[0],eax
@78:
pop edi
pop esi
pop ebx
mov esp,ebp
pop ebp
ret 12
@UnCompress_ARI endp
UnCompress_ARI ends
_TEXT ends
_DATA segment dword public use32 'DATA'
@_$DCWC$@Cript_MTF$qqspvul segment virtual
align 2
@@_$DCWC$@Cript_MTF$qqspvul label dword
dd @@$xt$9TSoft_Mtf
dd 4
dd -4
dd 0
dd @@$xt$9TSoft_Mtf
dd 4
dd -4
dd 0
@_$DCWC$@Cript_MTF$qqspvul ends
_DATA ends
_DATA segment dword public use32 'DATA'
@_$ECTXC$@Cript_MTF$qqspvul segment virtual
align 2
@@_$ECTXC$@Cript_MTF$qqspvul label dword
dd 0
dd -40
dw 0
dw 5
dd 0
dd @@_$DCWC$@Cript_MTF$qqspvul+16
dw 0
dw 5
dd 0
dd @@_$DCWC$@Cript_MTF$qqspvul
@_$ECTXC$@Cript_MTF$qqspvul ends
_DATA ends
_TEXT segment dword public use32 'CODE'
Cript_MTF segment virtual
align 2
@Cript_MTF proc near
?live16409@0:
@79:
push ebp
mov ebp,esp
add esp,-40
mov eax,offset @@_$ECTXC$@Cript_MTF$qqspvul
push ebx
push esi
push edi
mov esi,dword ptr [ebp+8]
call @__InitExceptBlockLDTC
?live16409@16: ; ESI = alpDst
mov eax,esi
?live16409@32: ; EBX = ptrd, ESI = alpDst, EAX = @temp4
mov edi,eax
?live16409@48: ; ESI = alpDst
mov ebx,eax
?live16409@64: ; EBX = ptrd, ESI = alpDst, EAX = @temp4
add edi,dword ptr [ebp+12]
?live16409@80: ; EBX = ptrd, EDI = ptrd_end
lea eax,dword ptr [ebp-4]
mov word ptr [ebp-24],8
push eax
call @@TSoft_Mtf@$bctr$qqsv
inc dword ptr [ebp-12]
lea edx,dword ptr [ebp-4]
mov word ptr [ebp-24],20
push edx
call @@TSoft_Mtf@Initialize$qqsv
cmp edi,ebx
jbe short @81
@80:
mov esi,ebx
mov al,byte ptr [esi]
push eax
lea edx,dword ptr [ebp-4]
push edx
call @@TSoft_Mtf@Encode$qqsuc
mov byte ptr [esi],al
inc ebx
cmp edi,ebx
ja short @80
?live16409@192: ;
@81:
dec dword ptr [ebp-12]
push 2
lea ecx,dword ptr [ebp-4]
push ecx
call @@TSoft_Mtf@$bdtr$qqsv
mov eax,dword ptr [ebp-40]
mov dword ptr fs:[0],eax
@83:
pop edi
pop esi
pop ebx
mov esp,ebp
pop ebp
ret 8
@Cript_MTF endp
Cript_MTF ends
_TEXT ends
_DATA segment dword public use32 'DATA'
@_$DCYC$@UnCript_MTF$qqspvul segment virtual
align 2
@@_$DCYC$@UnCript_MTF$qqspvul label dword
dd @@$xt$9TSoft_Mtf
dd 4
dd -4
dd 0
dd @@$xt$9TSoft_Mtf
dd 4
dd -4
dd 0
@_$DCYC$@UnCript_MTF$qqspvul ends
_DATA ends
_DATA segment dword public use32 'DATA'
@_$ECTZC$@UnCript_MTF$qqspvul segment virtual
align 2
@@_$ECTZC$@UnCript_MTF$qqspvul label dword
dd 0
dd -40
dw 0
dw 5
dd 0
dd @@_$DCYC$@UnCript_MTF$qqspvul+16
dw 0
dw 5
dd 0
dd @@_$DCYC$@UnCript_MTF$qqspvul
@_$ECTZC$@UnCript_MTF$qqspvul ends
_DATA ends
_TEXT segment dword public use32 'CODE'
UnCript_MTF segment virtual
align 2
@UnCript_MTF proc near
?live16413@0:
@84:
push ebp
mov ebp,esp
add esp,-40
mov eax,offset @@_$ECTZC$@UnCript_MTF$qqspvul
push ebx
push esi
push edi
mov esi,dword ptr [ebp+8]
call @__InitExceptBlockLDTC
?live16413@16: ; ESI = alpDst
mov eax,esi
?live16413@32: ; EBX = ptrd, ESI = alpDst, EAX = @temp4
mov edi,eax
?live16413@48: ; ESI = alpDst
mov ebx,eax
?live16413@64: ; EBX = ptrd, ESI = alpDst, EAX = @temp4
add edi,dword ptr [ebp+12]
?live16413@80: ; EBX = ptrd, EDI = ptrd_end
lea eax,dword ptr [ebp-4]
mov word ptr [ebp-24],8
push eax
call @@TSoft_Mtf@$bctr$qqsv
inc dword ptr [ebp-12]
lea edx,dword ptr [ebp-4]
mov word ptr [ebp-24],20
push edx
call @@TSoft_Mtf@Initialize$qqsv
cmp edi,ebx
jbe short @86
@85:
mov esi,ebx
mov al,byte ptr [esi]
push eax
lea edx,dword ptr [ebp-4]
push edx
call @@TSoft_Mtf@Decode$qqsuc
mov byte ptr [esi],al
inc ebx
cmp edi,ebx
ja short @85
?live16413@192: ;
@86:
dec dword ptr [ebp-12]
push 2
lea ecx,dword ptr [ebp-4]
push ecx
call @@TSoft_Mtf@$bdtr$qqsv
mov eax,dword ptr [ebp-40]
mov dword ptr fs:[0],eax
@88:
pop edi
pop esi
pop ebx
mov esp,ebp
pop ebp
ret 8
@UnCript_MTF endp
UnCript_MTF ends
_TEXT ends
_TEXT segment dword public use32 'CODE'
Cript_XOR segment virtual
align 2
@Cript_XOR proc near
?live16416@0:
push ebp
mov ebp,esp
push ebx
push esi
push edi
@89:
mov EDI,dword ptr [ebp+8]
mov EDX,EDI
add EDX,dword ptr [ebp+12]
cmp EDI,EDX
jge @90
mov ESI,dword ptr [ebp+16]
movzx ECX,byte ptr [ebp+20]
add ECX,ESI
cmp ESI,ECX
jge @90
mov EBX,ESI
@91:
Cript_XOR_LOOP:
mov AL,[ESI]
xor [EDI],AL
inc ESI
cmp ESI,ECX
jl short @92
mov ESI,EBX
@92:
Cript_XOR_PASS:
inc EDI
cmp EDI,EDX
jl @91
mov ESI,EBX
@90:
Cript_XOR_EXIT:
@93:
pop edi
pop esi
pop ebx
pop ebp
ret 16
@Cript_XOR endp
Cript_XOR ends
_TEXT ends
_TEXT segment dword public use32 'CODE'
UnCript_XOR segment virtual
align 2
@UnCript_XOR proc near
?live16417@0:
@94:
push ebp
mov ebp,esp
mov al,byte ptr [ebp+20]
push eax
mov edx,dword ptr [ebp+16]
push edx
mov ecx,dword ptr [ebp+12]
push ecx
mov eax,dword ptr [ebp+8]
push eax
call @Cript_XOR
@95:
pop ebp
ret 16
@UnCript_XOR endp
UnCript_XOR ends
_TEXT ends
_TEXT segment dword public use32 'CODE'
Cript_SXQ segment virtual
align 2
@Cript_SXQ proc near
?live16418@0:
@96:
push ebp
mov ebp,esp
push ebx
push esi
push edi
mov eax,dword ptr [ebp+16]
mov edi,dword ptr [ebp+8]
?live16418@16: ; EDI = alpDst, EAX = aHaslo_count
cmp al,1
jbe short @98
?live16418@32: ;
xor ebx,ebx
mov bl,al
?live16418@48: ; EBX = buff_count, EDI = alpDst
movzx esi,bx
?live16418@64: ; EBX = buff_count, ESI = @temp1, EDI = alpDst
mov eax,esi
inc eax
push eax
call @strAlloc
?live16418@80: ; EBX = buff_count, ESI = @temp1, EDI = alpDst, EAX = buff_ptr
push eax
call @strFree
?live16418@96: ;
@99:
@98:
pop edi
pop esi
pop ebx
pop ebp
ret 12
@Cript_SXQ endp
Cript_SXQ ends
_TEXT ends
_TEXT segment dword public use32 'CODE'
UnCript_SXQ segment virtual
align 2
@UnCript_SXQ proc near
?live16419@0:
@100:
push ebp
mov ebp,esp
mov al,byte ptr [ebp+16]
push eax
mov edx,dword ptr [ebp+12]
push edx
mov ecx,dword ptr [ebp+8]
push ecx
call @Cript_SXQ
@101:
pop ebp
ret 12
@UnCript_SXQ endp
UnCript_SXQ ends
_TEXT ends
_DATA segment dword public use32 'DATA'
@_$DCAD$@Compress_BWT$qqspvt1ulus segment virtual
align 2
@@_$DCAD$@Compress_BWT$qqspvt1ulus label dword
dd @@$xt$15TSoft_BWTMatrix
dd 4
dd -28
dd 0
dd @@$xt$15TSoft_BWTMatrix
dd 4
dd -28
dd 0
@_$DCAD$@Compress_BWT$qqspvt1ulus ends
_DATA ends
_DATA segment dword public use32 'DATA'
@_$ECTBD$@Compress_BWT$qqspvt1ulus segment virtual
align 2
@@_$ECTBD$@Compress_BWT$qqspvt1ulus label dword
dd 0
dd -64
dw 0
dw 5
dd 0
dd @@_$DCAD$@Compress_BWT$qqspvt1ulus+16
dw 0
dw 5
dd 0
dd @@_$DCAD$@Compress_BWT$qqspvt1ulus
@_$ECTBD$@Compress_BWT$qqspvt1ulus ends
_DATA ends
_TEXT segment dword public use32 'CODE'
Compress_BWT segment virtual
align 2
@Compress_BWT proc near
?live16420@0:
@102:
push ebp
mov ebp,esp
add esp,-64
mov eax,offset @@_$ECTBD$@Compress_BWT$qqspvt1ulus
push ebx
push esi
push edi
mov ebx,dword ptr [ebp+12]
call @__InitExceptBlockLDTC
?live16420@16: ; EBX = alpSrc
mov eax,ebx
mov esi,eax
?live16420@32: ; ESI = ptrs, EBX = alpSrc, EAX = @temp6
mov edi,eax
add edi,dword ptr [ebp+16]
?live16420@48: ; ESI = ptrs, EDI = ptrs_end
mov ebx,dword ptr [ebp+8]
?live16420@64: ; EBX = ptrd, ESI = ptrs, EDI = ptrs_end
mov word ptr [ebp-48],8
movzx eax,word ptr [ebp+20]
push eax
lea edx,dword ptr [ebp-28]
push edx
call @@TSoft_BWTMatrix@$bctr$qqsul
inc dword ptr [ebp-36]
mov word ptr [ebp-48],20
mov cx,word ptr [ebp-20]
mov word ptr [ebx],cx
add ebx,2
jmp short @104
@103:
push esi
lea eax,dword ptr [ebp-28]
push eax
call @@TSoft_BWTMatrix@Generate$qqspuc
add esi,dword ptr [ebp-20]
lea edx,dword ptr [ebp-28]
push edx
call @@TSoft_BWTMatrix@Sort$qqsv
mov word ptr [ebx],ax
add ebx,2
push ebx
lea ecx,dword ptr [ebp-28]
push ecx
call @@TSoft_BWTMatrix@Flush$qqspuc
add ebx,dword ptr [ebp-20]
@104:
mov eax,edi
sub eax,dword ptr [ebp-20]
cmp esi,eax
jbe short @103
mov word ptr [ebx],0
add ebx,2
cmp edi,esi
jbe short @106
@105:
mov dl,byte ptr [esi]
inc esi
mov byte ptr [ebx],dl
inc ebx
cmp edi,esi
ja short @105
?live16420@304: ; EBX = ptrd
@106:
mov eax,ebx
lea edx,dword ptr [ebp-28]
sub eax,dword ptr [ebp+8]
push eax
dec dword ptr [ebp-36]
push 2
push edx
call @@TSoft_BWTMatrix@$bdtr$qqsv
pop eax
mov edx,dword ptr [ebp-64]
mov dword ptr fs:[0],edx
?live16420@320: ;
@108:
@107:
pop edi
pop esi
pop ebx
mov esp,ebp
pop ebp
ret 16
@Compress_BWT endp
Compress_BWT ends
_TEXT ends
_TEXT segment dword public use32 'CODE'
UnCompress_BWT segment virtual
align 2
@UnCompress_BWT proc near
?live16424@0:
@109:
push ebp
mov ebp,esp
push ebx
mov eax,dword ptr [ebp+8]
mov edx,dword ptr [ebp+12]
?live16424@16: ; EAX = alpDst, EDX = acount, ECX = alpSrc
mov ebx,eax
?live16424@32: ;
mov ecx,dword ptr [ebp+16]
?live16424@48: ; EAX = alpDst, EDX = acount, ECX = alpSrc, EBX = @temp3
mov ebx,edx
add ebx,ebx
shr ebx,10
sub edx,ebx
sub edx,2
push edx
push ecx
push eax
call @ptrEql
?live16424@64: ;
@110:
pop ebx
pop ebp
ret 12
@UnCompress_BWT endp
UnCompress_BWT ends
_TEXT ends
_TEXT segment dword public use32 'CODE'
@$xt$15TSoft_BWTMatrix segment virtual
align 2
@@$xt$15TSoft_BWTMatrix label byte
dd 28
dw 3
dw 48
dd -1
dd 3
dw 64
dw 68
dd 0
dw 0
dw 0
dd 0
dd 1
dd 1
dd @@TSoft_BWTMatrix@$bdtr$qqsv
dw 5
dw 72
db 84
db 83
db 111
db 102
db 116
db 95
db 66
db 87
db 84
db 77
db 97
db 116
db 114
db 105
db 120
db 0
dd 0
dd 0
dd 0
@$xt$15TSoft_BWTMatrix ends
_TEXT ends
_TEXT segment dword public use32 'CODE'
@$xt$9TSoft_Mtf segment virtual
align 2
@@$xt$9TSoft_Mtf label byte
dd 4
dw 3
dw 48
dd -1
dd 3
dw 60
dw 64
dd 0
dw 0
dw 0
dd 0
dd 1
dd 1
dd @@TSoft_Mtf@$bdtr$qqsv
dw 5
dw 68
db 84
db 83
db 111
db 102
db 116
db 95
db 77
db 116
db 102
db 0
db 0
db 0
dd 0
dd 0
dd 0
@$xt$9TSoft_Mtf ends
_TEXT ends
_TEXT segment dword public use32 'CODE'
@$xt$9TSoft_Ari segment virtual
align 2
@@$xt$9TSoft_Ari label byte
dd 32
dw 3
dw 48
dd -1
dd 3
dw 60
dw 64
dd 0
dw 0
dw 0
dd 0
dd 1
dd 1
dd @@TSoft_Ari@$bdtr$qqsv
dw 5
dw 68
db 84
db 83
db 111
db 102
db 116
db 95
db 65
db 114
db 105
db 0
db 0
db 0
dd 0
dd 0
dd 0
@$xt$9TSoft_Ari ends
_TEXT ends
_TEXT segment dword public use32 'CODE'
@$xt$13TSoft_BinTree segment virtual
align 2
@@$xt$13TSoft_BinTree label byte
dd 64
dw 3
dw 48
dd -1
dd 3
dw 64
dw 68
dd 0
dw 0
dw 0
dd 0
dd 1
dd 1
dd @@TSoft_BinTree@$bdtr$qqsv
dw 5
dw 72
db 84
db 83
db 111
db 102
db 116
db 95
db 66
db 105
db 110
db 84
db 114
db 101
db 101
db 0
db 0
db 0
dd 0
dd 0
dd 0
@$xt$13TSoft_BinTree ends
_TEXT ends
_TEXT segment dword public use32 'CODE'
@$xt$10TSoft_Huff segment virtual
align 2
@@$xt$10TSoft_Huff label byte
dd 12
dw 3
dw 48
dd -1
dd 3
dw 60
dw 64
dd 0
dw 0
dw 0
dd 0
dd 1
dd 1
dd @@TSoft_Huff@$bdtr$qqsv
dw 5
dw 68
db 84
db 83
db 111
db 102
db 116
db 95
db 72
db 117
db 102
db 102
db 0
db 0
dd 0
dd 0
dd 0
@$xt$10TSoft_Huff ends
_TEXT ends
_DATA segment dword public use32 'DATA'
s@ label byte
db 0,0,0,0,0
align 4
_DATA ends
_TEXT segment dword public use32 'CODE'
_TEXT ends
@_memset equ _memset
extrn _memset:near
@@TSoft_Huff@$bctr$qqsv equ @TSoft_Huff@$bctr$qqsv
extrn @TSoft_Huff@$bctr$qqsv:near
@@TSoft_Huff@Initialize$qqsv equ @TSoft_Huff@Initialize$qqsv
extrn @TSoft_Huff@Initialize$qqsv:near
@@TSoft_BinTree@$bctr$qqsulul equ @TSoft_BinTree@$bctr$qqsulul
extrn @TSoft_BinTree@$bctr$qqsulul:near
@@TSoft_BinTree@Initialize$qqspuc equ @TSoft_BinTree@Initialize$qqspuc
extrn @TSoft_BinTree@Initialize$qqspuc:near
@@TSoft_BinTree@Update$qqspucul equ @TSoft_BinTree@Update$qqspucul
extrn @TSoft_BinTree@Update$qqspucul:near
@@TSoft_BinTree@Search_brun$qqsv equ @TSoft_BinTree@Search_brun$qqsv
extrn @TSoft_BinTree@Search_brun$qqsv:near
@@TSoft_BinTree@Optimum_brun_match$qqsulul equ @TSoft_BinTree@Optimum_brun_match$qqsulul
extrn @TSoft_BinTree@Optimum_brun_match$qqsulul:near
@@TSoft_BinTree@Search_dict$qqsv equ @TSoft_BinTree@Search_dict$qqsv
extrn @TSoft_BinTree@Search_dict$qqsv:near
@@TSoft_BinTree@Optimum_dict_match$qqsulul equ @TSoft_BinTree@Optimum_dict_match$qqsulul
extrn @TSoft_BinTree@Optimum_dict_match$qqsulul:near
@@__bitptr_hdrcoder@Code_ptrPass$qqspulul equ @__bitptr_hdrcoder@Code_ptrPass$qqspulul
extrn @__bitptr_hdrcoder@Code_ptrPass$qqspulul:near
@ptrEql equ ptrEql
extrn ptrEql:near
@@__bitptr_hdrcoder@Code_ptrBrun$qqspululul equ @__bitptr_hdrcoder@Code_ptrBrun$qqspululul
extrn @__bitptr_hdrcoder@Code_ptrBrun$qqspululul:near
@@__bitptr_hdrcoder@Code_ptrDict$qqspululul equ @__bitptr_hdrcoder@Code_ptrDict$qqspululul
extrn @__bitptr_hdrcoder@Code_ptrDict$qqspululul:near
@@TSoft_BinTree@$bdtr$qqsv equ @TSoft_BinTree@$bdtr$qqsv
extrn @TSoft_BinTree@$bdtr$qqsv:near
@@TSoft_Huff@$bdtr$qqsv equ @TSoft_Huff@$bdtr$qqsv
extrn @TSoft_Huff@$bdtr$qqsv:near
extrn __Exception_list:dword
extrn @__InitExceptBlockLDTC:near
@@__bitptr_hdrcoder@DeCode_ptrPass$qqspult1 equ @__bitptr_hdrcoder@DeCode_ptrPass$qqspult1
extrn @__bitptr_hdrcoder@DeCode_ptrPass$qqspult1:near
@@__bitptr_hdrcoder@DeCode_ptrDict$qqspult1t1 equ @__bitptr_hdrcoder@DeCode_ptrDict$qqspult1t1
extrn @__bitptr_hdrcoder@DeCode_ptrDict$qqspult1t1:near
@@__bitptr_hdrcoder@DeCode_ptrBrun$qqspult1t1 equ @__bitptr_hdrcoder@DeCode_ptrBrun$qqspult1t1
extrn @__bitptr_hdrcoder@DeCode_ptrBrun$qqspult1t1:near
@ptrSetEx equ ptrSetEx
extrn ptrSetEx:near
@@TSoft_Huff@Encode$qqspucucuc equ @TSoft_Huff@Encode$qqspucucuc
extrn @TSoft_Huff@Encode$qqspucucuc:near
@bitEql equ bitEql
extrn bitEql:near
@@TSoft_Huff@Decode$qqspuct1uc equ @TSoft_Huff@Decode$qqspuct1uc
extrn @TSoft_Huff@Decode$qqspuct1uc:near
@@TSoft_Ari@$bctr$qqsv equ @TSoft_Ari@$bctr$qqsv
extrn @TSoft_Ari@$bctr$qqsv:near
@@TSoft_Ari@Initialize_Encoder$qqsv equ @TSoft_Ari@Initialize_Encoder$qqsv
extrn @TSoft_Ari@Initialize_Encoder$qqsv:near
@@TSoft_Ari@Encode$qqspulucuc equ @TSoft_Ari@Encode$qqspulucuc
extrn @TSoft_Ari@Encode$qqspulucuc:near
@@TSoft_Ari@Flush_Encoder$qqspuluc equ @TSoft_Ari@Flush_Encoder$qqspuluc
extrn @TSoft_Ari@Flush_Encoder$qqspuluc:near
@@TSoft_Ari@$bdtr$qqsv equ @TSoft_Ari@$bdtr$qqsv
extrn @TSoft_Ari@$bdtr$qqsv:near
@@TSoft_Ari@Initialize_Decoder$qqspuluc equ @TSoft_Ari@Initialize_Decoder$qqspuluc
extrn @TSoft_Ari@Initialize_Decoder$qqspuluc:near
@@TSoft_Ari@Decode$qqspucpuluc equ @TSoft_Ari@Decode$qqspucpuluc
extrn @TSoft_Ari@Decode$qqspucpuluc:near
@@TSoft_Mtf@$bctr$qqsv equ @TSoft_Mtf@$bctr$qqsv
extrn @TSoft_Mtf@$bctr$qqsv:near
@@TSoft_Mtf@Initialize$qqsv equ @TSoft_Mtf@Initialize$qqsv
extrn @TSoft_Mtf@Initialize$qqsv:near
@@TSoft_Mtf@Encode$qqsuc equ @TSoft_Mtf@Encode$qqsuc
extrn @TSoft_Mtf@Encode$qqsuc:near
@@TSoft_Mtf@$bdtr$qqsv equ @TSoft_Mtf@$bdtr$qqsv
extrn @TSoft_Mtf@$bdtr$qqsv:near
@@TSoft_Mtf@Decode$qqsuc equ @TSoft_Mtf@Decode$qqsuc
extrn @TSoft_Mtf@Decode$qqsuc:near
@strAlloc equ strAlloc
extrn strAlloc:near
@strFree equ strFree
extrn strFree:near
@@TSoft_BWTMatrix@$bctr$qqsul equ @TSoft_BWTMatrix@$bctr$qqsul
extrn @TSoft_BWTMatrix@$bctr$qqsul:near
@@TSoft_BWTMatrix@Generate$qqspuc equ @TSoft_BWTMatrix@Generate$qqspuc
extrn @TSoft_BWTMatrix@Generate$qqspuc:near
@@TSoft_BWTMatrix@Sort$qqsv equ @TSoft_BWTMatrix@Sort$qqsv
extrn @TSoft_BWTMatrix@Sort$qqsv:near
@@TSoft_BWTMatrix@Flush$qqspuc equ @TSoft_BWTMatrix@Flush$qqspuc
extrn @TSoft_BWTMatrix@Flush$qqspuc:near
@@TSoft_BWTMatrix@$bdtr$qqsv equ @TSoft_BWTMatrix@$bdtr$qqsv
extrn @TSoft_BWTMatrix@$bdtr$qqsv:near
?debug C 9F757569642E6C6962
?debug C 9F757569642E6C6962
?debug D "C:\Program Files\Borland\CBuilder5\Projects\OBSOLETE\PROGS\Koperek.VCL\LIB\DLLKop32\TSoft_Koder.h" 18791 20064
?debug D "C:\Program Files\Borland\CBuilder5\Projects\OBSOLETE\PROGS\Koperek.VCL\LIB\DLLKop32\TSOFT_MTF.H" 18791 20064
?debug D "C:\Program Files\Borland\CBuilder5\Projects\OBSOLETE\PROGS\Koperek.VCL\LIB\DLLKop32\TSOFT_ARI.H" 18791 20064
?debug D "C:\Program Files\Borland\CBuilder5\Projects\OBSOLETE\PROGS\Koperek.VCL\LIB\DLLKop32\TSOFT_HUFF.H" 18791 20064
?debug D "C:\Program Files\Borland\CBuilder5\Projects\OBSOLETE\PROGS\Koperek.VCL\LIB\DLLKop32\TSOFT_BINTREE.H" 18791 20064
?debug D "C:\Program Files\Borland\CBuilder5\Projects\OBSOLETE\PROGS\Koperek.VCL\LIB\DLLKop32\TSOFT_HDR.H" 18058 42009
?debug D "C:\Program Files\Borland\CBuilder5\Projects\OBSOLETE\PROGS\Koperek.VCL\LIB\DLLKop32\TSOFT_BWTMATRIX.H" 18791 20064
?debug D "C:\Program Files\Borland\CBuilder5\Projects\OBSOLETE\PROGS\Koperek.VCL\LIB\DLLKop32\..\DLLIO\TSOFT_IO.H" 18817 26213
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\CONIO.H" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\_nfile.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\STDIO.H" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\imm.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\mcx.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\winsvc.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\commdlg.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\oleauto.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\propidl.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\oaidl.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\msxml.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\servprov.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\oleidl.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\urlmon.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\cguid.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\objidl.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\unknwn.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\search.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\stdlib.h" 10503 10272
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\objbase.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\ole2.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\prsht.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\winspool.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\winsmcrd.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\winioctl.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\rpcnsip.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\rpcndr.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\wtypes.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\winscard.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\winefs.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\wincrypt.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\qos.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\winsock2.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\winperf.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\shellapi.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\rpcasync.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\rpcnterr.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\rpcnsi.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\rpcdcep.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\rpcdce.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\windows.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\rpc.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\nb30.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\mmsystem.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\lzexpand.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\dlgs.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\ddeml.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\dde.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\cderr.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\winnetwk.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\winreg.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\winver.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\wincon.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\winnls.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\tvout.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\winuser.h" 18052 43723
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\pshpack1.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\wingdi.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\winerror.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\winbase.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\pshpack8.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\pshpack2.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\poppack.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\pshpack4.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\_loc.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\locale.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\_str.h" 10503 10272
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\string.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\guiddef.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\basetsd.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\mbctype.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\ctype.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\winnt.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\windef.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\stdarg.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\excpt.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\_null.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\_defs.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\_stddef.h" 10305 10240
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\mem.h" 10503 10272
?debug D "C:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\WINDOWS.H" 10305 10240
?debug D "C:\Program Files\Borland\CBuilder5\Projects\OBSOLETE\PROGS\Koperek.VCL\LIB\DLLKop32\TSoft_Koder.cpp" 19509 27843
end
|
||||
TheStack | 444c80927b1675fbaca6d72b2c6b942dc92f9d13 | Assemblycode:Assembly | {"size": 215, "ext": "asm", "max_stars_repo_path": "mc-sema/validator/x86_64/tests/XADD32rr.asm", "max_stars_repo_name": "randolphwong/mcsema", "max_stars_repo_stars_event_min_datetime": "2021-08-07T16:21:29.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-17T10:58:37.000Z", "max_issues_repo_path": "mc-sema/validator/x86_64/tests/XADD32rr.asm", "max_issues_repo_name": "randolphwong/mcsema", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "mc-sema/validator/x86_64/tests/XADD32rr.asm", "max_forks_repo_name": "randolphwong/mcsema", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 16.5384615385, "max_line_length": 25, "alphanum_fraction": 0.7395348837} | BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; XADD32rr
mov ebx, 0xb46767
mov ecx, 0xa57877
;TEST_BEGIN_RECORDING
xadd ebx, ecx
;TEST_END_RECORDING
|
||||
TheStack | 221d87c3d4470b1f94737c31848404bc3c6cc338 | Assemblycode:Assembly | {"size": 972, "ext": "asm", "max_stars_repo_path": "basic/04_pemanggilan_sistem/pemanggilan_sistem.asm", "max_stars_repo_name": "bellshade/Assembly", "max_stars_repo_stars_event_min_datetime": "2021-11-12T14:13:57.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-18T08:24:42.000Z", "max_issues_repo_path": "basic/04_pemanggilan_sistem/pemanggilan_sistem.asm", "max_issues_repo_name": "AdityaFitrianaNS/Assembly", "max_issues_repo_issues_event_min_datetime": "2021-11-22T00:50:03.000Z", "max_issues_repo_issues_event_max_datetime": "2021-11-24T01:14:24.000Z", "max_forks_repo_path": "basic/04_pemanggilan_sistem/pemanggilan_sistem.asm", "max_forks_repo_name": "AdityaFitrianaNS/Assembly", "max_forks_repo_forks_event_min_datetime": "2021-11-22T00:18:36.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-22T06:35:31.000Z"} | {"max_stars_count": 6, "max_issues_count": 2, "max_forks_count": 4, "avg_line_length": 21.1304347826, "max_line_length": 77, "alphanum_fraction": 0.6244855967} | ; compile dengan cara
; nasm -f elf32 -o namafile.o namafile.asm
; ld -m elf_i386 -o namafile namafile.o
; ./namafile
section .data
userInput db 'Masukkan angka: '
lenUserInput equ $-userInput ; panjang dari sebuah pesan input
displayPesan db 'Angka kamu : '
lenDisplayPesan equ $-displayPesan
section .bss
num resb 5
_start:
mov eax, 4
mov ebx, 1
mov ecx, userInput
mov edx, lenUserInput
int 80h
; kemudian baca dan tampilakan hasil input
mov eax, 3
mov ebx, 2
mov ecx, num
mov edx, 5 ; 5 byte (numeric, 1 untuk identitas angka)
int 80h
; kemudian tampilkan pesan 'Angka kamu: '
mov eax, 4
mov ebx, 1
mov ecx, displayPesan
mov edx, lenDisplayPesan
int 80h
; membuat output dari nomor yang sudah di outputkan
mov eax, 4
mov ebx, 1
mov ecx, num
mov edx, 5
int 80h
; exit dari program
mov eax, 1
mov ebx, 0
int 80h |
||||
TheStack | c124965f9fc3e3cc4c77441dfec9f79e4f989f68 | Assemblycode:Assembly | {"size": 5180, "ext": "asm", "max_stars_repo_path": "ntio/openread.asm", "max_stars_repo_name": "DigitalMars/optlink", "max_stars_repo_stars_event_min_datetime": "2015-02-03T01:38:24.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-23T05:48:24.000Z", "max_issues_repo_path": "ntio/openread.asm", "max_issues_repo_name": "DigitalMars/optlink", "max_issues_repo_issues_event_min_datetime": "2015-01-02T14:51:20.000Z", "max_issues_repo_issues_event_max_datetime": "2021-01-09T21:37:19.000Z", "max_forks_repo_path": "ntio/openread.asm", "max_forks_repo_name": "DigitalMars/optlink", "max_forks_repo_forks_event_min_datetime": "2015-02-11T17:43:56.000Z", "max_forks_repo_forks_event_max_datetime": "2019-09-05T11:07:02.000Z"} | {"max_stars_count": 28, "max_issues_count": 20, "max_forks_count": 9, "avg_line_length": 16.3924050633, "max_line_length": 113, "alphanum_fraction": 0.7333976834} | TITLE OPENREAD - Copyright (c) 1994 SLR Systems
INCLUDE MACROS
INCLUDE IO_STRUC
; PUBLIC OPEN_READING
.DATA
EXTERNDEF MODULE_NAME:BYTE
EXTERNDEF OBJ_DEVICE:DWORD,CURN_FILE_LIST_GINDEX:DWORD
EXTERNDEF STUBPATH_LIST:FILE_LISTS,OBJPATH_LIST:FILE_LISTS,LIBPATH_LIST:FILE_LISTS,_FILE_LIST_GARRAY:FILE_LISTS
EXTERNDEF MYI_STUFF:MYI_STRUCT
.CODE ROOT_TEXT
EXTERNDEF _capture_eax:proc
EXTERNDEF _move_nfn:proc,ERR_NFN_ABORT:PROC,WARN_NFN_RET:PROC,_fancy_open_input:proc,CAPTURE_EAX:PROC
EXTERNDEF _read_16k_threaded:proc,_delete_phantom_path:proc
EXTERNDEF FILE_NOT_FOUND_ERR:ABS
OR_VARS STRUC
OR_FILNAM_BP NFN_STRUCT<>
OR_VARS ENDS
FIX MACRO X
X EQU ([EBP].OR_VARS.(X&_BP))
ENDM
FIX OR_FILNAM
OPEN_READING PROC
if fgh_inthreads
BITT _HOST_THREADED
JZ OPEN_READING_1
;
;CALC CURRENT THREAD - ALWAYS VALID FOR OBJ'S
;
;EAX IS FILE_LIST_GINDEX
;
MOV CURN_FILE_LIST_GINDEX,EAX
PUSHM EDI,ESI
PUSH EBX
CONVERT EAX,EAX,_FILE_LIST_GARRAY
ASSUME EAX:PTR FILE_LIST_STRUCT
MOV EAX,[EAX].FILE_LIST_THREAD ;ASSIGNED TO THIS THREAD
IMUL EBX,EAX,SIZE MYI_STRUCT
LEA EAX,MYI_STUFF[EBX]
MOV EBX,MYI_STUFF[EBX].MYI_LOCALS
ASSUME EBX:PTR MYI2_STRUCT
PUSH EAX
;
;GET MYNAMS STRUCTURE PLEASE
;
MOV EAX,[EBX].MYI2_NEXT_OPEN_FILE
ASSUME EAX:NOTHING
INC EAX
AND EAX,3
IMUL ESI,EAX,SIZE NFN_STRUCT
IMUL EDI,EAX,SIZE OPEN_STRUCT
LEA ESI,[EBX+ESI].MYI2_NAMS
MOV [EBX].MYI2_NEXT_OPEN_FILE,EAX
ASSUME ESI:PTR NFN_STRUCT
LEA EDI,[EBX+EDI].MYI2_OPEN_STRUC
ASSUME EDI:PTR OPEN_STRUCT
MOV [EBX].MYI2_LAST_OPENFILE,EDI
LEA EAX,[EBX].OPENFILE_OPEN_SEM ;MAKE SURE FILE OPEN BEFORE TOUCHING ANYTHING IN
CALL CAPTURE_EAX ;OPENFILE OR NFN_STRUC
;
;OK, ITS OPEN, AND I OWN IT
;
MOV EAX,[EDI].OPENFILE_FLAGS
MOV ECX,[EDI].OPENFILE_PATH_GINDEX
PUSH EAX
MOV EDI,CURN_FILE_LIST_GINDEX
CONVERT EDI,EDI,_FILE_LIST_GARRAY
ASSUME EDI:PTR FILE_LIST_STRUCT
TEST ECX,ECX
JZ L1$
MOV [EDI].FILE_LIST_PATH_GINDEX,ECX
L1$:
MOV AL,[EDI].FILE_LIST_NFN.NFN_FLAGS
TEST AL,MASK NFN_TIME_VALID
JNZ L2$
OR AL,MASK NFN_TIME_VALID
MOV ECX,DPTR [ESI].NFN_TIME
MOV [EDI].FILE_LIST_NFN.NFN_FLAGS,AL
MOV EAX,[ESI].NFN_FILE_LENGTH
MOV DPTR [EDI].FILE_LIST_NFN.NFN_TIME,ECX
MOV [EDI].FILE_LIST_NFN.NFN_FILE_LENGTH,EAX
L2$:
MOV EAX,[ESI].NFN_PATHLEN
MOV EDX,ESI
MOV EDI,OFF MODULE_NAME+4 ;SET MODULE_NAME TO FILENAME
MOV ECX,[ESI].NFN_PRIMLEN
ASSUME EDI:NOTHING
LEA ESI,[ESI+EAX].NFN_TEXT
MOV [EDI-4],ECX
REP MOVSB
POPM ECX,EBX
ASSUME EBX:PTR MYI_STRUCT
XOR EAX,EAX
MOV [EBX].MYI_BYTE_OFFSET,EAX
MOV [EBX].MYI_PHYS_ADDR,EAX
MOV [EBX].MYI_COUNT,EAX ;BUFFER EMPTY
MOV [EBX].MYI_BUFCNT,AL
MOV [EBX].MYI_FILLBUF,OFF _read_16k_threaded
MOV EAX,CURN_FILE_LIST_GINDEX
MOV OBJ_DEVICE,EBX
MOV [EBX].MYI_FILE_LIST_GINDEX,EAX
MOV EAX,EBX
POP EBX
POPM ESI,EDI
TEST ECX,ECX
JZ FNF
RET
FNF:
PUSH ESI
MOV ESI,EDX
push ESI
call _delete_phantom_path
add ESP,4
MOV EDX,ESI
POP ESI
MOV ECX,EDX
MOV AL,FILE_NOT_FOUND_ERR
if fg_segm
MOV DL,[EDX].NFN_STRUCT.NFN_TYPE
CMP DL,NFN_OLD_TTYPE
JZ FNF1
CMP DL,NFN_STUB_TTYPE
JZ FNF1
CMP DL,NFN_RES_TTYPE
JZ FNF1
endif
CALL ERR_NFN_ABORT
if fg_segm
FNF1:
CALL WARN_NFN_RET
; STC
mov EAX,0
RET
endif
endif
OPEN_READING ENDP
OPEN_READING_1 PROC
;
;EAX IS FILE_LIST_GINDEX
;
PUSH EBP
SUB ESP,SIZE OR_VARS
MOV CURN_FILE_LIST_GINDEX,EAX
MOV EBP,ESP
PUSHM EDI,ESI,EBX
;
;DOS
;
CONVERT EAX,EAX,_FILE_LIST_GARRAY
LEA EBX,OR_FILNAM
ASSUME EBX:PTR NFN_STRUCT
LEA ECX,[EAX].FILE_LIST_STRUCT.FILE_LIST_NFN
MOV EAX,EBX
push ECX
push EAX
call _move_nfn ;copy to that structure
add ESP,8
LEA ESI,[EBX].NFN_TEXT
MOV EDI,OFF MODULE_NAME+4 ;SET MODULE_NAME TO FILENAME
MOV ECX,[EBX].NFN_PRIMLEN
ADD ESI,[EBX].NFN_PATHLEN
MOV [EDI-4],ECX
REP MOVSB
MOV [EDI],ECX
if fg_segm OR fg_pe
MOV AL,[EBX].NFN_TYPE
MOV ECX,OFF STUBPATH_LIST
CMP AL,NFN_OLD_TTYPE ;OLD AND STUB USE PATH=
JZ L1$
CMP AL,NFN_STUB_TTYPE
JZ L1$
endif
MOV EAX,EBX
MOV ECX,OFF OBJPATH_LIST ;OTHERS USE OBJ= AND LIB=
push ECX
push EAX
call _fancy_open_input
test EAX,EAX
jnz L2$
;JNC L2$
MOV ECX,OFF LIBPATH_LIST
L1$:
MOV EAX,EBX
push ECX
push EAX
call _fancy_open_input ;OPEN THE FILE
test EAX,EAX
jz FNF
;JC FNF
L2$:
MOV OBJ_DEVICE,EAX
MOV ECX,CURN_FILE_LIST_GINDEX ;NOW UPDATE FLAGS, TIME, DATE, FILE-SIZE
CONVERT ECX,ECX,_FILE_LIST_GARRAY
MOV ESI,EBX
LEA EDI,[ECX].FILE_LIST_STRUCT.FILE_LIST_NFN
MOV ECX,NFN_STRUCT.NFN_PATHLEN/4
REP MOVSD
L9$:
POPM EBX,ESI,EDI
LEA ESP,[EBP+ SIZE OR_VARS]
POP EBP
RET
FNF:
MOV AL,FILE_NOT_FOUND_ERR
MOV ECX,EBX
if fg_segm
MOV DL,[EBX].NFN_TYPE
CMP DL,NFN_OLD_TTYPE ;OLD, STUB, RES WARNING
JZ FNF1
CMP DL,NFN_STUB_TTYPE
JZ FNF1
CMP DL,NFN_RES_TTYPE
JZ FNF2
endif
CALL ERR_NFN_ABORT ;OBJ ERROR
if fg_segm
FNF2:
BITT RC_GUESSED ;DON'T WARN IF I JUST GUESSED AT A FILENAME ANYWAY...
JNZ FNF3
FNF1:
CALL WARN_NFN_RET
FNF3:
; STC
mov EAX,0
JMP L9$
endif
OPEN_READING_1 ENDP
END
|
||||
TheStack | 3b2d24ebfad13fc3b7ef8728b484606c13fe87e1 | Assemblycode:Assembly | {"size": 57929, "ext": "asm", "max_stars_repo_path": "c++/crypto/sha256_code_release/sha256_avx2_rorx8.asm", "max_stars_repo_name": "DeckerSU/RelayNode", "max_stars_repo_stars_event_min_datetime": "2015-05-29T02:26:36.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-11T04:52:43.000Z", "max_issues_repo_path": "c++/crypto/sha256_code_release/sha256_avx2_rorx8.asm", "max_issues_repo_name": "dendisuhubdy/RelayNode", "max_issues_repo_issues_event_min_datetime": "2015-06-03T10:16:19.000Z", "max_issues_repo_issues_event_max_datetime": "2021-02-19T13:36:15.000Z", "max_forks_repo_path": "c++/crypto/sha256_code_release/sha256_avx2_rorx8.asm", "max_forks_repo_name": "dendisuhubdy/RelayNode", "max_forks_repo_forks_event_min_datetime": "2015-03-14T23:16:05.000Z", "max_forks_repo_forks_event_max_datetime": "2021-10-31T04:20:04.000Z"} | {"max_stars_count": 71, "max_issues_count": 23, "max_forks_count": 41, "avg_line_length": 38.3889993373, "max_line_length": 104, "alphanum_fraction": 0.4503443871} | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright (c) 2012, Intel Corporation
;
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are
; met:
;
; * Redistributions of source code must retain the above copyright
; notice, this list of conditions and the following disclaimer.
;
; * Redistributions in binary form must reproduce the above copyright
; notice, this list of conditions and the following disclaimer in the
; documentation and/or other materials provided with the
; distribution.
;
; * Neither the name of the Intel Corporation nor the names of its
; contributors may be used to endorse or promote products derived from
; this software without specific prior written permission.
;
;
; THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" AND ANY
; EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
; PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION OR
; CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
; EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
; PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
; LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Example YASM command lines:
; Windows: yasm -Xvc -f x64 -rnasm -pnasm -o sha256_avx2_rorx8.obj -g cv8 sha256_avx2_rorx8.asm
; Linux: yasm -f x64 -f elf64 -X gnu -g dwarf2 -D LINUX -o sha256_avx2_rorx8.o sha256_avx2_rorx8.asm
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; This code is described in an Intel White-Paper:
; "Fast SHA-256 Implementations on Intel Architecture Processors"
;
; To find it, surf to http://www.intel.com/p/en_US/embedded
; and search for that title.
; The paper is expected to be released roughly at the end of April, 2012
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; This code schedules 8 blocks at a time, with 1 lane per block
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Define Macros
%macro addm 2
add %2, %1
mov %1, %2
%endm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
%define TT0 ymm0
%define TT1 ymm1
%define TT2 ymm2
%define TT3 ymm3
%define TT4 ymm4
%define TT5 ymm5
%define TT6 ymm6
%define TT7 ymm7
%define TTMP1 ymm8
%define TTMP2 ymm9
%define TTMP3 ymm10
%define TTMP4 ymm11
%define TTMP5 ymm12
%ifdef LINUX
%define INP rdi ; 1st arg
%define CTX rsi ; 2nd arg
%define NUM_BLKS rdx ; 3rd arg
%define c ecx
%define d r8d
%define e edx ; dword version of NUM_BLKS
%define z3 edi ; dword version of INP
%else
%define INP rcx ; 1st arg
%define CTX rdx ; 2nd arg
%define NUM_BLKS r8 ; 3rd arg
%define c edi
%define d esi
%define e r8d ; dword version of NUM_BLKS
%define z3 ecx ; dword version of INP
%endif
%define IDX rbp
%define TBL CTX
%define a eax
%define b ebx
%define f r9d
%define g r10d
%define h r11d
%xdefine old_h h
%define T1 r12d
%define z0 r13d
%define z1 r14d
%define z1q r14
%define z2 r15d
_EXTRA_SIZE equ 32
_KTMSG_SIZE equ 16*32 ; Second 3/4 of KTMSG overlaps TMSG
_TMSG_SIZE equ 64*32
%ifdef LINUX
_XMM_SAVE_SIZE equ 0
%else
_XMM_SAVE_SIZE equ 7*16
%endif
_INP_END_SIZE equ 8
_INP_SIZE equ 8
_RND_SIZE equ 8
_CTX_SIZE equ 8
_IDX_LIMIT_SIZE equ 8
_RSP_SIZE equ 8
;; KTMSG must overlap TMSG such that the second 3/4 of KTMSG overlaps the
;; first 3/4 of TMSG. (We onl need 16 words of TMSG at any time.)
_KTMSG equ _EXTRA_SIZE
_TMSG equ _KTMSG + _KTMSG_SIZE
_XMM_SAVE equ _TMSG + _TMSG_SIZE
_INP_END equ _XMM_SAVE + _XMM_SAVE_SIZE
_INP equ _INP_END + _INP_END_SIZE
_RND equ _INP + _INP_SIZE
_CTX equ _RND + _RND_SIZE
_IDX_LIMIT equ _CTX + _CTX_SIZE
_RSP equ _IDX_LIMIT + _IDX_LIMIT_SIZE
STACK_SIZE equ _RSP + _RSP_SIZE
%macro ROTATE_ARGS 0
%xdefine old_h h
%xdefine TMP_ h
%xdefine h g
%xdefine g f
%xdefine f e
%xdefine e d
%xdefine d c
%xdefine c b
%xdefine b a
%xdefine a TMP_
%endm
; PRORD reg, imm, tmp
%macro PRORD 3
%define %%reg %1
%define %%imm %2
%define %%tmp %3
vpslld %%tmp, %%reg, (32-(%%imm))
vpsrld %%reg, %%reg, %%imm
vpor %%reg, %%reg, %%tmp
%endmacro
; non-destructive
; PRORD_nd reg, imm, tmp, src
%macro PRORD_nd 4
%define %%reg %1
%define %%imm %2
%define %%tmp %3
%define %%src %4
vpslld %%tmp, %%src, (32-(%%imm))
vpsrld %%reg, %%src, %%imm
vpor %%reg, %%reg, %%tmp
%endmacro
; PRORD dst/src, amt
%macro PRORD 2
PRORD %1, %2, TTMP5
%endmacro
; PRORD_nd dst, src, amt
%macro PRORD_nd 3
PRORD_nd %1, %3, TTMP5, %2
%endmacro
; TRANSPOSE8 r0, r1, r2, r3, r4, r5, r6, r7, t0, t1
; "transpose" data in {r0...r7} using temps {t0...t1}
; Input looks like: {r0 r1 r2 r3 r4 r5 r6 r7}
; r0 = {a7 a6 a5 a4 a3 a2 a1 a0}
; r1 = {b7 b6 b5 b4 b3 b2 b1 b0}
; r2 = {c7 c6 c5 c4 c3 c2 c1 c0}
; r3 = {d7 d6 d5 d4 d3 d2 d1 d0}
; r4 = {e7 e6 e5 e4 e3 e2 e1 e0}
; r5 = {f7 f6 f5 f4 f3 f2 f1 f0}
; r6 = {g7 g6 g5 g4 g3 g2 g1 g0}
; r7 = {h7 h6 h5 h4 h3 h2 h1 h0}
;
; Output looks like: {r0 r1 r2 r3 r4 r5 r6 r7}
; r0 = {h0 g0 f0 e0 d0 c0 b0 a0}
; r1 = {h1 g1 f1 e1 d1 c1 b1 a1}
; r2 = {h2 g2 f2 e2 d2 c2 b2 a2}
; r3 = {h3 g3 f3 e3 d3 c3 b3 a3}
; r4 = {h4 g4 f4 e4 d4 c4 b4 a4}
; r5 = {h5 g5 f5 e5 d5 c5 b5 a5}
; r6 = {h6 g6 f6 e6 d6 c6 b6 a6}
; r7 = {h7 g7 f7 e7 d7 c7 b7 a7}
;
%macro TRANSPOSE8 10
%define %%r0 %1
%define %%r1 %2
%define %%r2 %3
%define %%r3 %4
%define %%r4 %5
%define %%r5 %6
%define %%r6 %7
%define %%r7 %8
%define %%t0 %9
%define %%t1 %10
; process top half (r0..r3) {a...d}
vshufps %%t0, %%r0, %%r1, 0x44 ; t0 = {b5 b4 a5 a4 b1 b0 a1 a0}
vshufps %%r0, %%r0, %%r1, 0xEE ; r0 = {b7 b6 a7 a6 b3 b2 a3 a2}
vshufps %%t1, %%r2, %%r3, 0x44 ; t1 = {d5 d4 c5 c4 d1 d0 c1 c0}
vshufps %%r2, %%r2, %%r3, 0xEE ; r2 = {d7 d6 c7 c6 d3 d2 c3 c2}
vshufps %%r3, %%t0, %%t1, 0xDD ; r3 = {d5 c5 b5 a5 d1 c1 b1 a1}
vshufps %%r1, %%r0, %%r2, 0x88 ; r1 = {d6 c6 b6 a6 d2 c2 b2 a2}
vshufps %%r0, %%r0, %%r2, 0xDD ; r0 = {d7 c7 b7 a7 d3 c3 b3 a3}
vshufps %%t0, %%t0, %%t1, 0x88 ; t0 = {d4 c4 b4 a4 d0 c0 b0 a0}
; use r2 in place of t0
; process bottom half (r4..r7) {e...h}
vshufps %%r2, %%r4, %%r5, 0x44 ; r2 = {f5 f4 e5 e4 f1 f0 e1 e0}
vshufps %%r4, %%r4, %%r5, 0xEE ; r4 = {f7 f6 e7 e6 f3 f2 e3 e2}
vshufps %%t1, %%r6, %%r7, 0x44 ; t1 = {h5 h4 g5 g4 h1 h0 g1 g0}
vshufps %%r6, %%r6, %%r7, 0xEE ; r6 = {h7 h6 g7 g6 h3 h2 g3 g2}
vshufps %%r7, %%r2, %%t1, 0xDD ; r7 = {h5 g5 f5 e5 h1 g1 f1 e1}
vshufps %%r5, %%r4, %%r6, 0x88 ; r5 = {h6 g6 f6 e6 h2 g2 f2 e2}
vshufps %%r4, %%r4, %%r6, 0xDD ; r4 = {h7 g7 f7 e7 h3 g3 f3 e3}
vshufps %%t1, %%r2, %%t1, 0x88 ; t1 = {h4 g4 f4 e4 h0 g0 f0 e0}
vperm2f128 %%r6, %%r5, %%r1, 0x13 ; h6...a6
vperm2f128 %%r2, %%r5, %%r1, 0x02 ; h2...a2
vperm2f128 %%r5, %%r7, %%r3, 0x13 ; h5...a5
vperm2f128 %%r1, %%r7, %%r3, 0x02 ; h1...a1
vperm2f128 %%r7, %%r4, %%r0, 0x13 ; h7...a7
vperm2f128 %%r3, %%r4, %%r0, 0x02 ; h3...a3
vperm2f128 %%r4, %%t1, %%t0, 0x13 ; h4...a4
vperm2f128 %%r0, %%t1, %%t0, 0x02 ; h0...a0
%endmacro
%macro SHA256_X8MS_8RNDS 0
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; RND N + 0 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
%assign i 0
vmovdqa TT0, [rsp + _TMSG + IDX + 32*(i+1)] ;; TT0 = Load W[i-15]
vmovdqa TTMP2,[rsp + _TMSG + IDX + 32*(i+14)] ;; TTMP2 = Load W[i-2]
mov z2, f ; z2 = f ; CH
rorx z0, e, 25 ; z0 = e >> 25 ; S1A
rorx z1, e, 11 ; z1 = e >> 11 ; S1B
xor z2, g ; z2 = f^g ; CH
PRORD_nd TTMP1,TT0,7 ;; TTMP1 = W[i-15] ror 7
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ; S1
rorx z1, e, 6 ; z1 = (e >> 6) ; S1
and z2, e ; z2 = (f^g)&e ; CH
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ^ (e>>6) ; S1
rorx T1, a, 13 ; T1 = a >> 13 ; S0B
xor z2, g ; z2 = CH = ((f^g)&e)^g ; CH
rorx z1, a, 22 ; z1 = a >> 22 ; S0A
mov z3, a ; z3 = a ; MAJA
vpsrld TT0,TT0,3 ;; TT0 = W[i-15] shr 3
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ; S0
rorx T1, a, 2 ; T1 = (a >> 2) ; S0
add h, dword[rsp + _KTMSG + IDX + 32*0] ; h = k + w + h
or z3, c ; z3 = a|c ; MAJA
vpxor TT0,TT0,TTMP1 ;; TT0 = (W[i-15] ror 7) xor (W[i-15] shr 3)
PRORD TTMP1,18-7 ;; TTMP1 = W[i-15] ror 18
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ^ (a>>2) ; S0
mov T1, a ; T1 = a ; MAJB
and z3, b ; z3 = (a|c)&b ; MAJA
and T1, c ; T1 = a&c ; MAJB
add z2, z0 ; z2 = S1 + CH ; --
vpxor TT0,TTMP1,TT0 ;; TT0 = s0
PRORD_nd TTMP1,TTMP2,17 ;; TTMP1 = W[i-2] ror 17
vpsrld TTMP2,TTMP2,10 ;; TTMP2 = W[i-2] shr 25
vpxor TTMP2,TTMP1,TTMP2 ;; TTMP2 = (W[i-2] ror 17) xor (W[i-2] shr 25)
add d, h ; d = k + w + h + d ; --
or z3, T1 ; z3 = MAJ = (a|c)&b)|(a&c) ; MAJ
add h, z1 ; h = k + w + h + S0 ; --
add d, z2 ; d = k + w + h + d + S1 + CH = d + t1 ; --
PRORD TTMP1,19-17 ;; TTMP1 = W[i-2] ror 19
vpxor TTMP1,TTMP1,TTMP2 ;; TTMP1 = s1
vpaddd TT0,TT0,TTMP1 ;; TT0 = s0 + s1
vpaddd TT0,TT0,[rsp + _TMSG + IDX + 32*(i+9)] ;; add W[i-7]
vpaddd TT0,TT0,[rsp + _TMSG + IDX + 32*(i+0)] ;; add W[i-16]
vmovdqa [rsp + _TMSG + IDX + 16*32 + i*32], TT0 ;; Save TT0 to stack
vpaddd TT0, TT0, [TBL + IDX + (i+16)*32]
vmovdqa [rsp + _KTMSG + IDX + 16*32 + i*32], TT0 ;; Save TT0 to stack
;add h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
;add h, z3 ; h = t1 + S0 + MAJ ; --
ROTATE_ARGS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; RND N + 1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
%assign i (i+1)
vmovdqa TT1, [rsp + _TMSG + IDX + 32*(i+1)] ;; TT1 = Load W[i-15]
vmovdqa TTMP4,[rsp + _TMSG + IDX + 32*(i+14)] ;; TTMP4 = Load W[i-2]
add old_h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
mov z2, f ; z2 = f ; CH
rorx z0, e, 25 ; z0 = e >> 25 ; S1A
rorx z1, e, 11 ; z1 = e >> 11 ; S1B
xor z2, g ; z2 = f^g ; CH
PRORD_nd TTMP3,TT1,7 ;; TTMP3 = W[i-15] ror 7
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ; S1
rorx z1, e, 6 ; z1 = (e >> 6) ; S1
and z2, e ; z2 = (f^g)&e ; CH
add old_h, z3 ; h = t1 + S0 + MAJ ; --
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ^ (e>>6) ; S1
rorx T1, a, 13 ; T1 = a >> 13 ; S0B
xor z2, g ; z2 = CH = ((f^g)&e)^g ; CH
rorx z1, a, 22 ; z1 = a >> 22 ; S0A
mov z3, a ; z3 = a ; MAJA
vpsrld TT1,TT1,3 ;; TT1 = W[i-15] shr 3
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ; S0
rorx T1, a, 2 ; T1 = (a >> 2) ; S0
add h, dword[rsp + _KTMSG + IDX + 32*1] ; h = k + w + h
or z3, c ; z3 = a|c ; MAJA
vpxor TT1,TT1,TTMP3 ;; TT1 = (W[i-15] ror 7) xor (W[i-15] shr 3)
PRORD TTMP3,18-7 ;; TTMP3 = W[i-15] ror 18
vpxor TT1,TTMP3,TT1 ;; TT1 = s0
PRORD_nd TTMP3,TTMP4,17 ;; TTMP3 = W[i-2] ror 17
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ^ (a>>2) ; S0
mov T1, a ; T1 = a ; MAJB
and z3, b ; z3 = (a|c)&b ; MAJA
and T1, c ; T1 = a&c ; MAJB
add z2, z0 ; z2 = S1 + CH ; --
vpsrld TTMP4,TTMP4,10 ;; TTMP4 = W[i-2] shr 25
vpxor TTMP4,TTMP3,TTMP4 ;; TTMP4 = (W[i-2] ror 17) xor (W[i-2] shr 25)
PRORD TTMP3,19-17 ;; TTMP3 = W[i-2] ror 19
vpxor TTMP3,TTMP3,TTMP4 ;; TTMP3 = s1
add d, h ; d = k + w + h + d ; --
or z3, T1 ; z3 = MAJ = (a|c)&b)|(a&c) ; MAJ
add h, z1 ; h = k + w + h + S0 ; --
add d, z2 ; d = k + w + h + d + S1 + CH = d + t1 ; --
vpaddd TT1,TT1,TTMP3 ;; TT1 = s0 + s1
vpaddd TT1,TT1,[rsp + _TMSG + IDX + 32*(i+9)] ;; add W[i-7]
vpaddd TT1,TT1,[rsp + _TMSG + IDX + 32*(i+0)] ;; add W[i-16]
vmovdqa [rsp + _TMSG + IDX + 16*32 + i*32], TT1 ;; Save TT1 to stack
vpaddd TT1, TT1, [TBL + IDX + (i+16)*32]
vmovdqa [rsp + _KTMSG + IDX + 16*32 + i*32], TT1 ;; Save TT1 to stack
;add h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
;add h, z3 ; h = t1 + S0 + MAJ ; --
ROTATE_ARGS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; RND N + 2 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
%assign i (i+1)
vmovdqa TT2, [rsp + _TMSG + IDX + 32*(i+1)] ;; TT2 = Load W[i-15]
vmovdqa TTMP2,[rsp + _TMSG + IDX + 32*(i+14)] ;; TTMP2 = Load W[i-2]
add old_h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
mov z2, f ; z2 = f ; CH
rorx z0, e, 25 ; z0 = e >> 25 ; S1A
rorx z1, e, 11 ; z1 = e >> 11 ; S1B
xor z2, g ; z2 = f^g ; CH
PRORD_nd TTMP1,TT2,7 ;; TTMP1 = W[i-15] ror 7
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ; S1
rorx z1, e, 6 ; z1 = (e >> 6) ; S1
and z2, e ; z2 = (f^g)&e ; CH
add old_h, z3 ; h = t1 + S0 + MAJ ; --
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ^ (e>>6) ; S1
rorx T1, a, 13 ; T1 = a >> 13 ; S0B
xor z2, g ; z2 = CH = ((f^g)&e)^g ; CH
rorx z1, a, 22 ; z1 = a >> 22 ; S0A
mov z3, a ; z3 = a ; MAJA
vpsrld TT2,TT2,3 ;; TT2 = W[i-15] shr 3
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ; S0
rorx T1, a, 2 ; T1 = (a >> 2) ; S0
add h, dword[rsp + _KTMSG + IDX + 32*2] ; h = k + w + h
or z3, c ; z3 = a|c ; MAJA
vpxor TT2,TT2,TTMP1 ;; TT2 = (W[i-15] ror 7) xor (W[i-15] shr 3)
PRORD TTMP1,18-7 ;; TTMP1 = W[i-15] ror 18
vpxor TT2,TTMP1,TT2 ;; TT2 = s0
PRORD_nd TTMP1,TTMP2,17 ;; TTMP1 = W[i-2] ror 17
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ^ (a>>2) ; S0
mov T1, a ; T1 = a ; MAJB
and z3, b ; z3 = (a|c)&b ; MAJA
and T1, c ; T1 = a&c ; MAJB
add z2, z0 ; z2 = S1 + CH ; --
vpsrld TTMP2,TTMP2,10 ;; TTMP2 = W[i-2] shr 25
vpxor TTMP2,TTMP1,TTMP2 ;; TTMP2 = (W[i-2] ror 17) xor (W[i-2] shr 25)
PRORD TTMP1,19-17 ;; TTMP1 = W[i-2] ror 19
vpxor TTMP1,TTMP1,TTMP2 ;; TTMP1 = s1
add d, h ; d = k + w + h + d ; --
or z3, T1 ; z3 = MAJ = (a|c)&b)|(a&c) ; MAJ
add h, z1 ; h = k + w + h + S0 ; --
vpaddd TT2,TT2,TTMP1 ;; TT2 = s0 + s1
vpaddd TT2,TT2,[rsp + _TMSG + IDX + 32*(i+9)] ;; add W[i-7]
vpaddd TT2,TT2,[rsp + _TMSG + IDX + 32*(i+0)] ;; add W[i-16]
vmovdqa [rsp + _TMSG + IDX + 16*32 + i*32], TT2 ;; Save TT2 to stack
vpaddd TT2, TT2, [TBL + IDX + (i+16)*32]
vmovdqa [rsp + _KTMSG + IDX + 16*32 + i*32], TT2 ;; Save TT2 to stack
add d, z2 ; d = k + w + h + d + S1 + CH = d + t1 ; --
;add h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
;add h, z3 ; h = t1 + S0 + MAJ ; --
ROTATE_ARGS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; RND N + 3 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
%assign i (i+1)
vmovdqa TT3, [rsp + _TMSG + IDX + 32*(i+1)] ;; TT3 = Load W[i-15]
vmovdqa TTMP4,[rsp + _TMSG + IDX + 32*(i+14)] ;; TTMP4 = Load W[i-2]
add old_h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
mov z2, f ; z2 = f ; CH
rorx z0, e, 25 ; z0 = e >> 25 ; S1A
rorx z1, e, 11 ; z1 = e >> 11 ; S1B
xor z2, g ; z2 = f^g ; CH
PRORD_nd TTMP3,TT3,7 ;; TTMP3 = W[i-15] ror 7
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ; S1
rorx z1, e, 6 ; z1 = (e >> 6) ; S1
and z2, e ; z2 = (f^g)&e ; CH
add old_h, z3 ; h = t1 + S0 + MAJ ; --
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ^ (e>>6) ; S1
rorx T1, a, 13 ; T1 = a >> 13 ; S0B
xor z2, g ; z2 = CH = ((f^g)&e)^g ; CH
rorx z1, a, 22 ; z1 = a >> 22 ; S0A
mov z3, a ; z3 = a ; MAJA
vpsrld TT3,TT3,3 ;; TT3 = W[i-15] shr 3
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ; S0
rorx T1, a, 2 ; T1 = (a >> 2) ; S0
add h, dword[rsp + _KTMSG + IDX + 32*3] ; h = k + w + h
or z3, c ; z3 = a|c ; MAJA
vpxor TT3,TT3,TTMP3 ;; TT3 = (W[i-15] ror 7) xor (W[i-15] shr 3)
PRORD TTMP3,18-7 ;; TTMP3 = W[i-15] ror 18
vpxor TT3,TTMP3,TT3 ;; TT3 = s0
PRORD_nd TTMP3,TTMP4,17 ;; TTMP3 = W[i-2] ror 17
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ^ (a>>2) ; S0
mov T1, a ; T1 = a ; MAJB
and z3, b ; z3 = (a|c)&b ; MAJA
and T1, c ; T1 = a&c ; MAJB
add z2, z0 ; z2 = S1 + CH ; --
vpsrld TTMP4,TTMP4,10 ;; TTMP4 = W[i-2] shr 25
vpxor TTMP4,TTMP3,TTMP4 ;; TTMP4 = (W[i-2] ror 17) xor (W[i-2] shr 25)
PRORD TTMP3,19-17 ;; TTMP3 = W[i-2] ror 19
vpxor TTMP3,TTMP3,TTMP4 ;; TTMP3 = s1
add d, h ; d = k + w + h + d ; --
or z3, T1 ; z3 = MAJ = (a|c)&b)|(a&c) ; MAJ
add h, z1 ; h = k + w + h + S0 ; --
vpaddd TT3,TT3,TTMP3 ;; TT3 = s0 + s1
add d, z2 ; d = k + w + h + d + S1 + CH = d + t1 ; --
add h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
vpaddd TT3,TT3,[rsp + _TMSG + IDX + 32*(i+9)] ;; add W[i-7]
vpaddd TT3,TT3,[rsp + _TMSG + IDX + 32*(i+0)] ;; add W[i-16]
vmovdqa [rsp + _TMSG + IDX + 16*32 + i*32], TT3 ;; Save TT3 to stack
vpaddd TT3, TT3, [TBL + IDX + (i+16)*32]
vmovdqa [rsp + _KTMSG + IDX + 16*32 + i*32], TT3 ;; Save TT3 to stack
add h, z3 ; h = t1 + S0 + MAJ ; --
ROTATE_ARGS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; RND N + 4 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
%assign i (i+1)
vmovdqa TT4, [rsp + _TMSG + IDX + 32*(i+1)] ;; TT4 = Load W[i-15]
vmovdqa TTMP2,[rsp + _TMSG + IDX + 32*(i+14)] ;; TTMP2 = Load W[i-2]
mov z2, f ; z2 = f ; CH
rorx z0, e, 25 ; z0 = e >> 25 ; S1A
rorx z1, e, 11 ; z1 = e >> 11 ; S1B
xor z2, g ; z2 = f^g ; CH
PRORD_nd TTMP1,TT4,7 ;; TTMP1 = W[i-15] ror 7
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ; S1
rorx z1, e, 6 ; z1 = (e >> 6) ; S1
and z2, e ; z2 = (f^g)&e ; CH
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ^ (e>>6) ; S1
rorx T1, a, 13 ; T1 = a >> 13 ; S0B
xor z2, g ; z2 = CH = ((f^g)&e)^g ; CH
rorx z1, a, 22 ; z1 = a >> 22 ; S0A
mov z3, a ; z3 = a ; MAJA
vpsrld TT4,TT4,3 ;; TT4 = W[i-15] shr 3
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ; S0
rorx T1, a, 2 ; T1 = (a >> 2) ; S0
add h, dword[rsp + _KTMSG + IDX + 32*4] ; h = k + w + h
or z3, c ; z3 = a|c ; MAJA
vpxor TT4,TT4,TTMP1 ;; TT4 = (W[i-15] ror 7) xor (W[i-15] shr 3)
PRORD TTMP1,18-7 ;; TTMP1 = W[i-15] ror 18
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ^ (a>>2) ; S0
mov T1, a ; T1 = a ; MAJB
and z3, b ; z3 = (a|c)&b ; MAJA
and T1, c ; T1 = a&c ; MAJB
add z2, z0 ; z2 = S1 + CH ; --
vpxor TT4,TTMP1,TT4 ;; TT4 = s0
PRORD_nd TTMP1,TTMP2,17 ;; TTMP1 = W[i-2] ror 17
vpsrld TTMP2,TTMP2,10 ;; TTMP2 = W[i-2] shr 25
vpxor TTMP2,TTMP1,TTMP2 ;; TTMP2 = (W[i-2] ror 17) xor (W[i-2] shr 25)
add d, h ; d = k + w + h + d ; --
or z3, T1 ; z3 = MAJ = (a|c)&b)|(a&c) ; MAJ
add h, z1 ; h = k + w + h + S0 ; --
PRORD TTMP1,19-17 ;; TTMP1 = W[i-2] ror 19
vpxor TTMP1,TTMP1,TTMP2 ;; TTMP1 = s1
vpaddd TT4,TT4,TTMP1 ;; TT4 = s0 + s1
add d, z2 ; d = k + w + h + d + S1 + CH = d + t1 ; --
;add h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
;add h, z3 ; h = t1 + S0 + MAJ ; --
vpaddd TT4,TT4,[rsp + _TMSG + IDX + 32*(i+9)] ;; add W[i-7]
vpaddd TT4,TT4,[rsp + _TMSG + IDX + 32*(i+0)] ;; add W[i-16]
vmovdqa [rsp + _TMSG + IDX + 16*32 + i*32], TT4 ;; Save TT4 to stack
vpaddd TT4, TT4, [TBL + IDX + (i+16)*32]
vmovdqa [rsp + _KTMSG + IDX + 16*32 + i*32], TT4 ;; Save TT4 to stack
ROTATE_ARGS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; RND N + 5 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
%assign i (i+1)
vmovdqa TT5, [rsp + _TMSG + IDX + 32*(i+1)] ;; TT5 = Load W[i-15]
vmovdqa TTMP4,[rsp + _TMSG + IDX + 32*(i+14)] ;; TTMP4 = Load W[i-2]
add old_h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
mov z2, f ; z2 = f ; CH
rorx z0, e, 25 ; z0 = e >> 25 ; S1A
rorx z1, e, 11 ; z1 = e >> 11 ; S1B
xor z2, g ; z2 = f^g ; CH
PRORD_nd TTMP3,TT5,7 ;; TTMP3 = W[i-15] ror 7
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ; S1
rorx z1, e, 6 ; z1 = (e >> 6) ; S1
and z2, e ; z2 = (f^g)&e ; CH
add old_h, z3 ; h = t1 + S0 + MAJ ; --
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ^ (e>>6) ; S1
rorx T1, a, 13 ; T1 = a >> 13 ; S0B
xor z2, g ; z2 = CH = ((f^g)&e)^g ; CH
rorx z1, a, 22 ; z1 = a >> 22 ; S0A
mov z3, a ; z3 = a ; MAJA
vpsrld TT5,TT5,3 ;; TT5 = W[i-15] shr 3
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ; S0
rorx T1, a, 2 ; T1 = (a >> 2) ; S0
add h, dword[rsp + _KTMSG + IDX + 32*5] ; h = k + w + h
or z3, c ; z3 = a|c ; MAJA
vpxor TT5,TT5,TTMP3 ;; TT5 = (W[i-15] ror 7) xor (W[i-15] shr 3)
PRORD TTMP3,18-7 ;; TTMP3 = W[i-15] ror 18
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ^ (a>>2) ; S0
mov T1, a ; T1 = a ; MAJB
and z3, b ; z3 = (a|c)&b ; MAJA
and T1, c ; T1 = a&c ; MAJB
add z2, z0 ; z2 = S1 + CH ; --
vpxor TT5,TTMP3,TT5 ;; TT5 = s0
PRORD_nd TTMP3,TTMP4,17 ;; TTMP3 = W[i-2] ror 17
vpsrld TTMP4,TTMP4,10 ;; TTMP4 = W[i-2] shr 25
vpxor TTMP4,TTMP3,TTMP4 ;; TTMP4 = (W[i-2] ror 17) xor (W[i-2] shr 25)
add d, h ; d = k + w + h + d ; --
or z3, T1 ; z3 = MAJ = (a|c)&b)|(a&c) ; MAJ
add h, z1 ; h = k + w + h + S0 ; --
PRORD TTMP3,19-17 ;; TTMP3 = W[i-2] ror 19
vpxor TTMP3,TTMP3,TTMP4 ;; TTMP3 = s1
vpaddd TT5,TT5,TTMP3 ;; TT5 = s0 + s1
add d, z2 ; d = k + w + h + d + S1 + CH = d + t1 ; --
;add h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
;add h, z3 ; h = t1 + S0 + MAJ ; --
vpaddd TT5,TT5,[rsp + _TMSG + IDX + 32*(i+9)] ;; add W[i-7]
vpaddd TT5,TT5,[rsp + _TMSG + IDX + 32*(i+0)] ;; add W[i-16]
vmovdqa [rsp + _TMSG + IDX + 16*32 + i*32], TT5 ;; Save TT5 to stack
vpaddd TT5, TT5, [TBL + IDX + (i+16)*32]
vmovdqa [rsp + _KTMSG + IDX + 16*32 + i*32], TT5 ;; Save TT5 to stack
ROTATE_ARGS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; RND N + 6 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
%assign i (i+1)
vmovdqa TT6, [rsp + _TMSG + IDX + 32*(i+1)] ;; TT6 = Load W[i-15]
vmovdqa TTMP2,[rsp + _TMSG + IDX + 32*(i+14)] ;; TTMP2 = Load W[i-2]
add old_h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
mov z2, f ; z2 = f ; CH
rorx z0, e, 25 ; z0 = e >> 25 ; S1A
rorx z1, e, 11 ; z1 = e >> 11 ; S1B
xor z2, g ; z2 = f^g ; CH
PRORD_nd TTMP1,TT6,7 ;; TTMP1 = W[i-15] ror 7
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ; S1
rorx z1, e, 6 ; z1 = (e >> 6) ; S1
and z2, e ; z2 = (f^g)&e ; CH
add old_h, z3 ; h = t1 + S0 + MAJ ; --
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ^ (e>>6) ; S1
rorx T1, a, 13 ; T1 = a >> 13 ; S0B
xor z2, g ; z2 = CH = ((f^g)&e)^g ; CH
rorx z1, a, 22 ; z1 = a >> 22 ; S0A
mov z3, a ; z3 = a ; MAJA
vpsrld TT6,TT6,3 ;; TT6 = W[i-15] shr 3
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ; S0
rorx T1, a, 2 ; T1 = (a >> 2) ; S0
add h, dword[rsp + _KTMSG + IDX + 32*6] ; h = k + w + h
or z3, c ; z3 = a|c ; MAJA
vpxor TT6,TT6,TTMP1 ;; TT6 = (W[i-15] ror 7) xor (W[i-15] shr 3)
PRORD TTMP1,18-7 ;; TTMP1 = W[i-15] ror 18
vpxor TT6,TTMP1,TT6 ;; TT6 = s0
PRORD_nd TTMP1,TTMP2,17 ;; TTMP1 = W[i-2] ror 17
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ^ (a>>2) ; S0
mov T1, a ; T1 = a ; MAJB
and z3, b ; z3 = (a|c)&b ; MAJA
and T1, c ; T1 = a&c ; MAJB
add z2, z0 ; z2 = S1 + CH ; --
vpsrld TTMP2,TTMP2,10 ;; TTMP2 = W[i-2] shr 25
vpxor TTMP2,TTMP1,TTMP2 ;; TTMP2 = (W[i-2] ror 17) xor (W[i-2] shr 25)
PRORD TTMP1,19-17 ;; TTMP1 = W[i-2] ror 19
vpxor TTMP1,TTMP1,TTMP2 ;; TTMP1 = s1
add d, h ; d = k + w + h + d ; --
or z3, T1 ; z3 = MAJ = (a|c)&b)|(a&c) ; MAJ
add h, z1 ; h = k + w + h + S0 ; --
vpaddd TT6,TT6,TTMP1 ;; TT6 = s0 + s1
vpaddd TT6,TT6,[rsp + _TMSG + IDX + 32*(i+9)] ;; add W[i-7]
add d, z2 ; d = k + w + h + d + S1 + CH = d + t1 ; --
;add h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
;add h, z3 ; h = t1 + S0 + MAJ ; --
vpaddd TT6,TT6,[rsp + _TMSG + IDX + 32*(i+0)] ;; add W[i-16]
vmovdqa [rsp + _TMSG + IDX + 16*32 + i*32], TT6 ;; Save TT6 to stack
vpaddd TT6, TT6, [TBL + IDX + (i+16)*32]
vmovdqa [rsp + _KTMSG + IDX + 16*32 + i*32], TT6 ;; Save TT6 to stack
ROTATE_ARGS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; RND N + 7 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
%assign i (i+1)
vmovdqa TT7, [rsp + _TMSG + IDX + 32*(i+1)] ;; TT7 = Load W[i-15]
vmovdqa TTMP4,[rsp + _TMSG + IDX + 32*(i+14)] ;; TTMP4 = Load W[i-2]
add old_h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
mov z2, f ; z2 = f ; CH
rorx z0, e, 25 ; z0 = e >> 25 ; S1A
rorx z1, e, 11 ; z1 = e >> 11 ; S1B
xor z2, g ; z2 = f^g ; CH
PRORD_nd TTMP3,TT7,7 ;; TTMP3 = W[i-15] ror 7
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ; S1
rorx z1, e, 6 ; z1 = (e >> 6) ; S1
and z2, e ; z2 = (f^g)&e ; CH
add old_h, z3 ; h = t1 + S0 + MAJ ; --
vpsrld TT7,TT7,3 ;; TT7 = W[i-15] shr 3
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ^ (e>>6) ; S1
rorx T1, a, 13 ; T1 = a >> 13 ; S0B
xor z2, g ; z2 = CH = ((f^g)&e)^g ; CH
rorx z1, a, 22 ; z1 = a >> 22 ; S0A
mov z3, a ; z3 = a ; MAJA
vpxor TT7,TT7,TTMP3 ;; TT7 = (W[i-15] ror 7) xor (W[i-15] shr 3)
PRORD TTMP3,18-7 ;; TTMP3 = W[i-15] ror 18
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ; S0
rorx T1, a, 2 ; T1 = (a >> 2) ; S0
add h, dword[rsp + _KTMSG + IDX + 32*7] ; h = k + w + h
or z3, c ; z3 = a|c ; MAJA
vpxor TT7,TTMP3,TT7 ;; TT7 = s0
PRORD_nd TTMP3,TTMP4,17 ;; TTMP3 = W[i-2] ror 17
vpsrld TTMP4,TTMP4,10 ;; TTMP4 = W[i-2] shr 25
vpxor TTMP4,TTMP3,TTMP4 ;; TTMP4 = (W[i-2] ror 17) xor (W[i-2] shr 25)
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ^ (a>>2) ; S0
mov T1, a ; T1 = a ; MAJB
and z3, b ; z3 = (a|c)&b ; MAJA
and T1, c ; T1 = a&c ; MAJB
add z2, z0 ; z2 = S1 + CH ; --
PRORD TTMP3,19-17 ;; TTMP3 = W[i-2] ror 19
vpxor TTMP3,TTMP3,TTMP4 ;; TTMP3 = s1
add d, h ; d = k + w + h + d ; --
or z3, T1 ; z3 = MAJ = (a|c)&b)|(a&c) ; MAJ
add h, z1 ; h = k + w + h + S0 ; --
vpaddd TT7,TT7,TTMP3 ;; TT7 = s0 + s1
add d, z2 ; d = k + w + h + d + S1 + CH = d + t1 ; --
vpaddd TT7,TT7,[rsp + _TMSG + IDX + 32*(i+9)] ;; add W[i-7]
add h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
vpaddd TT7,TT7,[rsp + _TMSG + IDX + 32*(i+0)] ;; add W[i-16]
add h, z3 ; h = t1 + S0 + MAJ ; --
vmovdqa [rsp + _TMSG + IDX + 16*32 + i*32], TT7 ;; Save TT7 to stack
vpaddd TT7, TT7, [TBL + IDX + (i+16)*32]
vmovdqa [rsp + _KTMSG + IDX + 16*32 + i*32], TT7 ;; Save TT7 to stack
ROTATE_ARGS
%endm
%macro DO_8ROUNDS 0
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; RND N + 0 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
mov z2, f ; z2 = f ; CH
rorx z0, e, 25 ; z0 = e >> 25 ; S1A
rorx z1, e, 11 ; z1 = e >> 11 ; S1B
xor z2, g ; z2 = f^g ; CH
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ; S1
rorx z1, e, 6 ; z1 = (e >> 6) ; S1
and z2, e ; z2 = (f^g)&e ; CH
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ^ (e>>6) ; S1
rorx T1, a, 13 ; T1 = a >> 13 ; S0B
xor z2, g ; z2 = CH = ((f^g)&e)^g ; CH
rorx z1, a, 22 ; z1 = a >> 22 ; S0A
mov z3, a ; z3 = a ; MAJA
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ; S0
rorx T1, a, 2 ; T1 = (a >> 2) ; S0
add h, dword[rsp + _KTMSG + IDX + 32*0] ; h = k + w + h
or z3, c ; z3 = a|c ; MAJA
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ^ (a>>2) ; S0
mov T1, a ; T1 = a ; MAJB
and z3, b ; z3 = (a|c)&b ; MAJA
and T1, c ; T1 = a&c ; MAJB
add z2, z0 ; z2 = S1 + CH ; --
add d, h ; d = k + w + h + d ; --
or z3, T1 ; z3 = MAJ = (a|c)&b)|(a&c) ; MAJ
add h, z1 ; h = k + w + h + S0 ; --
add d, z2 ; d = k + w + h + d + S1 + CH = d + t1 ; --
;add h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
;add h, z3 ; h = t1 + S0 + MAJ ; --
ROTATE_ARGS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; RND N + 1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
add old_h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
mov z2, f ; z2 = f ; CH
rorx z0, e, 25 ; z0 = e >> 25 ; S1A
rorx z1, e, 11 ; z1 = e >> 11 ; S1B
xor z2, g ; z2 = f^g ; CH
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ; S1
rorx z1, e, 6 ; z1 = (e >> 6) ; S1
and z2, e ; z2 = (f^g)&e ; CH
add old_h, z3 ; h = t1 + S0 + MAJ ; --
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ^ (e>>6) ; S1
rorx T1, a, 13 ; T1 = a >> 13 ; S0B
xor z2, g ; z2 = CH = ((f^g)&e)^g ; CH
rorx z1, a, 22 ; z1 = a >> 22 ; S0A
mov z3, a ; z3 = a ; MAJA
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ; S0
rorx T1, a, 2 ; T1 = (a >> 2) ; S0
add h, dword[rsp + _KTMSG + IDX + 32*1] ; h = k + w + h
or z3, c ; z3 = a|c ; MAJA
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ^ (a>>2) ; S0
mov T1, a ; T1 = a ; MAJB
and z3, b ; z3 = (a|c)&b ; MAJA
and T1, c ; T1 = a&c ; MAJB
add z2, z0 ; z2 = S1 + CH ; --
add d, h ; d = k + w + h + d ; --
or z3, T1 ; z3 = MAJ = (a|c)&b)|(a&c) ; MAJ
add h, z1 ; h = k + w + h + S0 ; --
add d, z2 ; d = k + w + h + d + S1 + CH = d + t1 ; --
;add h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
;add h, z3 ; h = t1 + S0 + MAJ ; --
ROTATE_ARGS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; RND N + 2 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
add old_h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
mov z2, f ; z2 = f ; CH
rorx z0, e, 25 ; z0 = e >> 25 ; S1A
rorx z1, e, 11 ; z1 = e >> 11 ; S1B
xor z2, g ; z2 = f^g ; CH
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ; S1
rorx z1, e, 6 ; z1 = (e >> 6) ; S1
and z2, e ; z2 = (f^g)&e ; CH
add old_h, z3 ; h = t1 + S0 + MAJ ; --
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ^ (e>>6) ; S1
rorx T1, a, 13 ; T1 = a >> 13 ; S0B
xor z2, g ; z2 = CH = ((f^g)&e)^g ; CH
rorx z1, a, 22 ; z1 = a >> 22 ; S0A
mov z3, a ; z3 = a ; MAJA
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ; S0
rorx T1, a, 2 ; T1 = (a >> 2) ; S0
add h, dword[rsp + _KTMSG + IDX + 32*2] ; h = k + w + h
or z3, c ; z3 = a|c ; MAJA
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ^ (a>>2) ; S0
mov T1, a ; T1 = a ; MAJB
and z3, b ; z3 = (a|c)&b ; MAJA
and T1, c ; T1 = a&c ; MAJB
add z2, z0 ; z2 = S1 + CH ; --
add d, h ; d = k + w + h + d ; --
or z3, T1 ; z3 = MAJ = (a|c)&b)|(a&c) ; MAJ
add h, z1 ; h = k + w + h + S0 ; --
add d, z2 ; d = k + w + h + d + S1 + CH = d + t1 ; --
;add h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
;add h, z3 ; h = t1 + S0 + MAJ ; --
ROTATE_ARGS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; RND N + 3 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
add old_h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
mov z2, f ; z2 = f ; CH
rorx z0, e, 25 ; z0 = e >> 25 ; S1A
rorx z1, e, 11 ; z1 = e >> 11 ; S1B
xor z2, g ; z2 = f^g ; CH
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ; S1
rorx z1, e, 6 ; z1 = (e >> 6) ; S1
and z2, e ; z2 = (f^g)&e ; CH
add old_h, z3 ; h = t1 + S0 + MAJ ; --
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ^ (e>>6) ; S1
rorx T1, a, 13 ; T1 = a >> 13 ; S0B
xor z2, g ; z2 = CH = ((f^g)&e)^g ; CH
rorx z1, a, 22 ; z1 = a >> 22 ; S0A
mov z3, a ; z3 = a ; MAJA
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ; S0
rorx T1, a, 2 ; T1 = (a >> 2) ; S0
add h, dword[rsp + _KTMSG + IDX + 32*3] ; h = k + w + h
or z3, c ; z3 = a|c ; MAJA
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ^ (a>>2) ; S0
mov T1, a ; T1 = a ; MAJB
and z3, b ; z3 = (a|c)&b ; MAJA
and T1, c ; T1 = a&c ; MAJB
add z2, z0 ; z2 = S1 + CH ; --
add d, h ; d = k + w + h + d ; --
or z3, T1 ; z3 = MAJ = (a|c)&b)|(a&c) ; MAJ
add h, z1 ; h = k + w + h + S0 ; --
add d, z2 ; d = k + w + h + d + S1 + CH = d + t1 ; --
add h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
add h, z3 ; h = t1 + S0 + MAJ ; --
ROTATE_ARGS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; RND N + 4 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
mov z2, f ; z2 = f ; CH
rorx z0, e, 25 ; z0 = e >> 25 ; S1A
rorx z1, e, 11 ; z1 = e >> 11 ; S1B
xor z2, g ; z2 = f^g ; CH
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ; S1
rorx z1, e, 6 ; z1 = (e >> 6) ; S1
and z2, e ; z2 = (f^g)&e ; CH
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ^ (e>>6) ; S1
rorx T1, a, 13 ; T1 = a >> 13 ; S0B
xor z2, g ; z2 = CH = ((f^g)&e)^g ; CH
rorx z1, a, 22 ; z1 = a >> 22 ; S0A
mov z3, a ; z3 = a ; MAJA
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ; S0
rorx T1, a, 2 ; T1 = (a >> 2) ; S0
add h, dword[rsp + _KTMSG + IDX + 32*4] ; h = k + w + h
or z3, c ; z3 = a|c ; MAJA
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ^ (a>>2) ; S0
mov T1, a ; T1 = a ; MAJB
and z3, b ; z3 = (a|c)&b ; MAJA
and T1, c ; T1 = a&c ; MAJB
add z2, z0 ; z2 = S1 + CH ; --
add d, h ; d = k + w + h + d ; --
or z3, T1 ; z3 = MAJ = (a|c)&b)|(a&c) ; MAJ
add h, z1 ; h = k + w + h + S0 ; --
add d, z2 ; d = k + w + h + d + S1 + CH = d + t1 ; --
;add h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
;add h, z3 ; h = t1 + S0 + MAJ ; --
ROTATE_ARGS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; RND N + 5 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
add old_h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
mov z2, f ; z2 = f ; CH
rorx z0, e, 25 ; z0 = e >> 25 ; S1A
rorx z1, e, 11 ; z1 = e >> 11 ; S1B
xor z2, g ; z2 = f^g ; CH
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ; S1
rorx z1, e, 6 ; z1 = (e >> 6) ; S1
and z2, e ; z2 = (f^g)&e ; CH
add old_h, z3 ; h = t1 + S0 + MAJ ; --
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ^ (e>>6) ; S1
rorx T1, a, 13 ; T1 = a >> 13 ; S0B
xor z2, g ; z2 = CH = ((f^g)&e)^g ; CH
rorx z1, a, 22 ; z1 = a >> 22 ; S0A
mov z3, a ; z3 = a ; MAJA
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ; S0
rorx T1, a, 2 ; T1 = (a >> 2) ; S0
add h, dword[rsp + _KTMSG + IDX + 32*5] ; h = k + w + h
or z3, c ; z3 = a|c ; MAJA
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ^ (a>>2) ; S0
mov T1, a ; T1 = a ; MAJB
and z3, b ; z3 = (a|c)&b ; MAJA
and T1, c ; T1 = a&c ; MAJB
add z2, z0 ; z2 = S1 + CH ; --
add d, h ; d = k + w + h + d ; --
or z3, T1 ; z3 = MAJ = (a|c)&b)|(a&c) ; MAJ
add h, z1 ; h = k + w + h + S0 ; --
add d, z2 ; d = k + w + h + d + S1 + CH = d + t1 ; --
;add h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
;add h, z3 ; h = t1 + S0 + MAJ ; --
ROTATE_ARGS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; RND N + 6 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
add old_h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
mov z2, f ; z2 = f ; CH
rorx z0, e, 25 ; z0 = e >> 25 ; S1A
rorx z1, e, 11 ; z1 = e >> 11 ; S1B
xor z2, g ; z2 = f^g ; CH
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ; S1
rorx z1, e, 6 ; z1 = (e >> 6) ; S1
and z2, e ; z2 = (f^g)&e ; CH
add old_h, z3 ; h = t1 + S0 + MAJ ; --
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ^ (e>>6) ; S1
rorx T1, a, 13 ; T1 = a >> 13 ; S0B
xor z2, g ; z2 = CH = ((f^g)&e)^g ; CH
rorx z1, a, 22 ; z1 = a >> 22 ; S0A
mov z3, a ; z3 = a ; MAJA
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ; S0
rorx T1, a, 2 ; T1 = (a >> 2) ; S0
add h, dword[rsp + _KTMSG + IDX + 32*6] ; h = k + w + h
or z3, c ; z3 = a|c ; MAJA
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ^ (a>>2) ; S0
mov T1, a ; T1 = a ; MAJB
and z3, b ; z3 = (a|c)&b ; MAJA
and T1, c ; T1 = a&c ; MAJB
add z2, z0 ; z2 = S1 + CH ; --
add d, h ; d = k + w + h + d ; --
or z3, T1 ; z3 = MAJ = (a|c)&b)|(a&c) ; MAJ
add h, z1 ; h = k + w + h + S0 ; --
add d, z2 ; d = k + w + h + d + S1 + CH = d + t1 ; --
;add h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
;add h, z3 ; h = t1 + S0 + MAJ ; --
ROTATE_ARGS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; RND N + 7 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
add old_h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
mov z2, f ; z2 = f ; CH
rorx z0, e, 25 ; z0 = e >> 25 ; S1A
rorx z1, e, 11 ; z1 = e >> 11 ; S1B
xor z2, g ; z2 = f^g ; CH
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ; S1
rorx z1, e, 6 ; z1 = (e >> 6) ; S1
and z2, e ; z2 = (f^g)&e ; CH
add old_h, z3 ; h = t1 + S0 + MAJ ; --
xor z0, z1 ; z0 = (e>>25) ^ (e>>11) ^ (e>>6) ; S1
rorx T1, a, 13 ; T1 = a >> 13 ; S0B
xor z2, g ; z2 = CH = ((f^g)&e)^g ; CH
rorx z1, a, 22 ; z1 = a >> 22 ; S0A
mov z3, a ; z3 = a ; MAJA
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ; S0
rorx T1, a, 2 ; T1 = (a >> 2) ; S0
add h, dword[rsp + _KTMSG + IDX + 32*7] ; h = k + w + h
or z3, c ; z3 = a|c ; MAJA
xor z1, T1 ; z1 = (a>>22) ^ (a>>13) ^ (a>>2) ; S0
mov T1, a ; T1 = a ; MAJB
and z3, b ; z3 = (a|c)&b ; MAJA
and T1, c ; T1 = a&c ; MAJB
add z2, z0 ; z2 = S1 + CH ; --
add d, h ; d = k + w + h + d ; --
or z3, T1 ; z3 = MAJ = (a|c)&b)|(a&c) ; MAJ
add h, z1 ; h = k + w + h + S0 ; --
add d, z2 ; d = k + w + h + d + S1 + CH = d + t1 ; --
add h, z2 ; h = k + w + h + S0 + S1 + CH = t1 + S0 ; --
add h, z3 ; h = t1 + S0 + MAJ ; --
ROTATE_ARGS
%endm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; void sha256_rorx_x8ms(void *input_data, UINT32 digest[8], UINT64 num_blks)
;; arg 1 : pointer to input data
;; arg 2 : pointer to digest
;; arg 3 : Num blocks
section .text
global sha256_rorx_x8ms
align 32
sha256_rorx_x8ms:
push rbx
%ifndef LINUX
push rsi
push rdi
%endif
push rbp
push r12
push r13
push r14
push r15
mov rax, rsp
sub rsp,STACK_SIZE
and rsp,-32
mov [rsp + _RSP], rax
mov qword [rsp + _IDX_LIMIT], 32
%ifndef LINUX
vmovdqa [rsp + _XMM_SAVE + 0*16],xmm6
vmovdqa [rsp + _XMM_SAVE + 1*16],xmm7
vmovdqa [rsp + _XMM_SAVE + 2*16],xmm8
vmovdqa [rsp + _XMM_SAVE + 3*16],xmm9
vmovdqa [rsp + _XMM_SAVE + 4*16],xmm10
vmovdqa [rsp + _XMM_SAVE + 5*16],xmm11
vmovdqa [rsp + _XMM_SAVE + 6*16],xmm12
%endif
shl NUM_BLKS, 6 ; convert to bytes
jz done_hash
lea NUM_BLKS, [NUM_BLKS + INP - 8*64]
mov [rsp + _INP_END], NUM_BLKS
mov [rsp + _CTX], CTX
cmp NUM_BLKS, INP
jb less_than_8_blocks
;; load initial digest
mov a,[4*0 + CTX]
mov b,[4*1 + CTX]
mov c,[4*2 + CTX]
mov d,[4*3 + CTX]
mov e,[4*4 + CTX]
mov f,[4*5 + CTX]
mov g,[4*6 + CTX]
mov h,[4*7 + CTX]
eight_blocks_loop:
align 32
lea TBL,[K256_SIMD wrt rip]
vmovdqa TTMP3, [PSHUFFLE_BYTE_FLIP_MASK wrt rip]
;; Load 8 blocks of message and transpose and save to stack
%assign i 0
%rep 2
vmovups TT0,[INP+0*64+i*32]
vpshufb TT0, TT0, TTMP3
vmovups TT1,[INP+1*64+i*32]
vpshufb TT1, TT1, TTMP3
vmovups TT2,[INP+2*64+i*32]
vpshufb TT2, TT2, TTMP3
vmovups TT3,[INP+3*64+i*32]
vpshufb TT3, TT3, TTMP3
vmovups TT4,[INP+4*64+i*32]
vpshufb TT4, TT4, TTMP3
vmovups TT5,[INP+5*64+i*32]
vpshufb TT5, TT5, TTMP3
vmovups TT6,[INP+6*64+i*32]
vpshufb TT6, TT6, TTMP3
vmovups TT7,[INP+7*64+i*32]
vpshufb TT7, TT7, TTMP3
TRANSPOSE8 TT0, TT1, TT2, TT3, TT4, TT5, TT6, TT7, TTMP1, TTMP2
vmovdqa [rsp + _TMSG + 0*32 + i*8*32], TT0
vpaddd TT0, TT0, [TBL + 0*32 + i*8*32]
vmovdqa [rsp + _KTMSG + 0*32 + i*8*32], TT0
vmovdqa [rsp + _TMSG + 1*32 + i*8*32], TT1
vpaddd TT1, TT1, [TBL + 1*32 + i*8*32]
vmovdqa [rsp + _KTMSG + 1*32 + i*8*32], TT1
vmovdqa [rsp + _TMSG + 2*32 + i*8*32], TT2
vpaddd TT2, TT2, [TBL + 2*32 + i*8*32]
vmovdqa [rsp + _KTMSG + 2*32 + i*8*32], TT2
vmovdqa [rsp + _TMSG + 3*32 + i*8*32], TT3
vpaddd TT3, TT3, [TBL + 3*32 + i*8*32]
vmovdqa [rsp + _KTMSG + 3*32 + i*8*32], TT3
vmovdqa [rsp + _TMSG + 4*32 + i*8*32], TT4
vpaddd TT4, TT4, [TBL + 4*32 + i*8*32]
vmovdqa [rsp + _KTMSG + 4*32 + i*8*32], TT4
vmovdqa [rsp + _TMSG + 5*32 + i*8*32], TT5
vpaddd TT5, TT5, [TBL + 5*32 + i*8*32]
vmovdqa [rsp + _KTMSG + 5*32 + i*8*32], TT5
vmovdqa [rsp + _TMSG + 6*32 + i*8*32], TT6
vpaddd TT6, TT6, [TBL + 6*32 + i*8*32]
vmovdqa [rsp + _KTMSG + 6*32 + i*8*32], TT6
vmovdqa [rsp + _TMSG + 7*32 + i*8*32], TT7
vpaddd TT7, TT7, [TBL + 7*32 + i*8*32]
vmovdqa [rsp + _KTMSG + 7*32 + i*8*32], TT7
%assign i (i+1)
%endrep
after_load:
;; Save Input Msg pointer to stack
add INP, 8*64
mov [rsp + _INP], INP
;; Initialize Msg Index to Zero
xor IDX, IDX
sha256_x8ms_8rnds_loop:
;; Perform Message Scheduling of the next 8 rounds (from round 17 to 64)
;; Also perform compress function for first block from round 1 to 16.
SHA256_X8MS_8RNDS
;; Check how many rounds have been performed
add IDX, 8*32
cmp IDX, 6 * 8*32
jne sha256_x8ms_8rnds_loop
mov CTX, [rsp + _CTX]
compress_block_loop:
;; Perform 8 rounds of compression
DO_8ROUNDS
add IDX, 8*32
cmp IDX, 8 * 8*32
jb compress_block_loop
;; Update the State when block compression has been completed
addm [4*0 + CTX],a
addm [4*1 + CTX],b
addm [4*2 + CTX],c
addm [4*3 + CTX],d
addm [4*4 + CTX],e
addm [4*5 + CTX],f
addm [4*6 + CTX],g
addm [4*7 + CTX],h
sub IDX, (8 * 8*32) - 4
;; Check if the 8th block has been compressed
cmp IDX, [rsp + _IDX_LIMIT]
jne compress_block_loop
;; Check if the last set of 8 blocks has been processed
mov INP, [rsp + _INP]
cmp INP, [rsp + _INP_END]
jbe eight_blocks_loop
near_end_of_page:
mov z1q, [rsp + _INP_END]
sub z1q, INP
; z1q is minus number of NULL blocks left out of 8
cmp z1q, -(8*64)
jle done_hash
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; z1q is -1...-7 (*64) meaning we need to process 7...1 more blocks
add INP, z1q
lea TBL,[K256_SIMD wrt rip]
sar z1q, 4 ; convert to blks * 4
vmovdqa TTMP3, [PSHUFFLE_BYTE_FLIP_MASK wrt rip]
;; Load 8 blocks of message and transpose and save to stack
%assign i 0
%rep 2
vmovups TT0,[INP+0*64+i*32]
vpshufb TT0, TT0, TTMP3
vmovups TT1,[INP+1*64+i*32]
vpshufb TT1, TT1, TTMP3
vmovups TT2,[INP+2*64+i*32]
vpshufb TT2, TT2, TTMP3
vmovups TT3,[INP+3*64+i*32]
vpshufb TT3, TT3, TTMP3
vmovups TT4,[INP+4*64+i*32]
vpshufb TT4, TT4, TTMP3
vmovups TT5,[INP+5*64+i*32]
vpshufb TT5, TT5, TTMP3
vmovups TT6,[INP+6*64+i*32]
vpshufb TT6, TT6, TTMP3
vmovups TT7,[INP+7*64+i*32]
vpshufb TT7, TT7, TTMP3
TRANSPOSE8 TT0, TT1, TT2, TT3, TT4, TT5, TT6, TT7, TTMP1, TTMP2
vmovdqu [rsp + z1q + _TMSG + 0*32 + i*8*32], TT0
vpaddd TT0, TT0, [TBL + 0*32 + i*8*32]
vmovdqu [rsp + z1q + _KTMSG + 0*32 + i*8*32], TT0
vmovdqu [rsp + z1q + _TMSG + 1*32 + i*8*32], TT1
vpaddd TT1, TT1, [TBL + 1*32 + i*8*32]
vmovdqu [rsp + z1q + _KTMSG + 1*32 + i*8*32], TT1
vmovdqu [rsp + z1q + _TMSG + 2*32 + i*8*32], TT2
vpaddd TT2, TT2, [TBL + 2*32 + i*8*32]
vmovdqu [rsp + z1q + _KTMSG + 2*32 + i*8*32], TT2
vmovdqu [rsp + z1q + _TMSG + 3*32 + i*8*32], TT3
vpaddd TT3, TT3, [TBL + 3*32 + i*8*32]
vmovdqu [rsp + z1q + _KTMSG + 3*32 + i*8*32], TT3
vmovdqu [rsp + z1q + _TMSG + 4*32 + i*8*32], TT4
vpaddd TT4, TT4, [TBL + 4*32 + i*8*32]
vmovdqu [rsp + z1q + _KTMSG + 4*32 + i*8*32], TT4
vmovdqu [rsp + z1q + _TMSG + 5*32 + i*8*32], TT5
vpaddd TT5, TT5, [TBL + 5*32 + i*8*32]
vmovdqu [rsp + z1q + _KTMSG + 5*32 + i*8*32], TT5
vmovdqu [rsp + z1q + _TMSG + 6*32 + i*8*32], TT6
vpaddd TT6, TT6, [TBL + 6*32 + i*8*32]
vmovdqu [rsp + z1q + _KTMSG + 6*32 + i*8*32], TT6
vmovdqu [rsp + z1q + _TMSG + 7*32 + i*8*32], TT7
vpaddd TT7, TT7, [TBL + 7*32 + i*8*32]
vmovdqu [rsp + z1q + _KTMSG + 7*32 + i*8*32], TT7
%assign i (i+1)
%endrep
add z1q, 4*8 ; z1q = 4 * (number of blocks to proc)
mov [rsp + _IDX_LIMIT], z1q
jmp after_load
less_than_8_blocks:
;; load initial digest
mov a,[4*0 + CTX]
mov b,[4*1 + CTX]
mov c,[4*2 + CTX]
mov d,[4*3 + CTX]
mov e,[4*4 + CTX]
mov f,[4*5 + CTX]
mov g,[4*6 + CTX]
mov h,[4*7 + CTX]
mov z1q, INP
and z1q, 4095 ; offset into page
cmp z1q, 4096 - (8*64)
ja near_end_of_page
near_start_of_page:
mov z1q, [rsp + _INP_END]
sub z1q, INP
sar z1q, 4 ; convert to blks * 4
add z1q, 4*8 ; z1q = 4 * (number of blocks to proc)
mov [rsp + _IDX_LIMIT], z1q
jmp eight_blocks_loop
done_hash:
%ifndef LINUX
vmovdqa xmm6,[rsp + _XMM_SAVE + 0*16]
vmovdqa xmm7,[rsp + _XMM_SAVE + 1*16]
vmovdqa xmm8,[rsp + _XMM_SAVE + 2*16]
vmovdqa xmm9,[rsp + _XMM_SAVE + 3*16]
vmovdqa xmm10,[rsp + _XMM_SAVE + 4*16]
vmovdqa xmm11,[rsp + _XMM_SAVE + 5*16]
vmovdqa xmm12,[rsp + _XMM_SAVE + 6*16]
%endif
mov rsp, [rsp + _RSP]
pop r15
pop r14
pop r13
pop r12
pop rbp
%ifndef LINUX
pop rdi
pop rsi
%endif
pop rbx
ret
section .data
align 64
K256_SIMD:
ddq 0x428a2f98428a2f98428a2f98428a2f98,0x428a2f98428a2f98428a2f98428a2f98
ddq 0x71374491713744917137449171374491,0x71374491713744917137449171374491
ddq 0xb5c0fbcfb5c0fbcfb5c0fbcfb5c0fbcf,0xb5c0fbcfb5c0fbcfb5c0fbcfb5c0fbcf
ddq 0xe9b5dba5e9b5dba5e9b5dba5e9b5dba5,0xe9b5dba5e9b5dba5e9b5dba5e9b5dba5
ddq 0x3956c25b3956c25b3956c25b3956c25b,0x3956c25b3956c25b3956c25b3956c25b
ddq 0x59f111f159f111f159f111f159f111f1,0x59f111f159f111f159f111f159f111f1
ddq 0x923f82a4923f82a4923f82a4923f82a4,0x923f82a4923f82a4923f82a4923f82a4
ddq 0xab1c5ed5ab1c5ed5ab1c5ed5ab1c5ed5,0xab1c5ed5ab1c5ed5ab1c5ed5ab1c5ed5
ddq 0xd807aa98d807aa98d807aa98d807aa98,0xd807aa98d807aa98d807aa98d807aa98
ddq 0x12835b0112835b0112835b0112835b01,0x12835b0112835b0112835b0112835b01
ddq 0x243185be243185be243185be243185be,0x243185be243185be243185be243185be
ddq 0x550c7dc3550c7dc3550c7dc3550c7dc3,0x550c7dc3550c7dc3550c7dc3550c7dc3
ddq 0x72be5d7472be5d7472be5d7472be5d74,0x72be5d7472be5d7472be5d7472be5d74
ddq 0x80deb1fe80deb1fe80deb1fe80deb1fe,0x80deb1fe80deb1fe80deb1fe80deb1fe
ddq 0x9bdc06a79bdc06a79bdc06a79bdc06a7,0x9bdc06a79bdc06a79bdc06a79bdc06a7
ddq 0xc19bf174c19bf174c19bf174c19bf174,0xc19bf174c19bf174c19bf174c19bf174
ddq 0xe49b69c1e49b69c1e49b69c1e49b69c1,0xe49b69c1e49b69c1e49b69c1e49b69c1
ddq 0xefbe4786efbe4786efbe4786efbe4786,0xefbe4786efbe4786efbe4786efbe4786
ddq 0x0fc19dc60fc19dc60fc19dc60fc19dc6,0x0fc19dc60fc19dc60fc19dc60fc19dc6
ddq 0x240ca1cc240ca1cc240ca1cc240ca1cc,0x240ca1cc240ca1cc240ca1cc240ca1cc
ddq 0x2de92c6f2de92c6f2de92c6f2de92c6f,0x2de92c6f2de92c6f2de92c6f2de92c6f
ddq 0x4a7484aa4a7484aa4a7484aa4a7484aa,0x4a7484aa4a7484aa4a7484aa4a7484aa
ddq 0x5cb0a9dc5cb0a9dc5cb0a9dc5cb0a9dc,0x5cb0a9dc5cb0a9dc5cb0a9dc5cb0a9dc
ddq 0x76f988da76f988da76f988da76f988da,0x76f988da76f988da76f988da76f988da
ddq 0x983e5152983e5152983e5152983e5152,0x983e5152983e5152983e5152983e5152
ddq 0xa831c66da831c66da831c66da831c66d,0xa831c66da831c66da831c66da831c66d
ddq 0xb00327c8b00327c8b00327c8b00327c8,0xb00327c8b00327c8b00327c8b00327c8
ddq 0xbf597fc7bf597fc7bf597fc7bf597fc7,0xbf597fc7bf597fc7bf597fc7bf597fc7
ddq 0xc6e00bf3c6e00bf3c6e00bf3c6e00bf3,0xc6e00bf3c6e00bf3c6e00bf3c6e00bf3
ddq 0xd5a79147d5a79147d5a79147d5a79147,0xd5a79147d5a79147d5a79147d5a79147
ddq 0x06ca635106ca635106ca635106ca6351,0x06ca635106ca635106ca635106ca6351
ddq 0x14292967142929671429296714292967,0x14292967142929671429296714292967
ddq 0x27b70a8527b70a8527b70a8527b70a85,0x27b70a8527b70a8527b70a8527b70a85
ddq 0x2e1b21382e1b21382e1b21382e1b2138,0x2e1b21382e1b21382e1b21382e1b2138
ddq 0x4d2c6dfc4d2c6dfc4d2c6dfc4d2c6dfc,0x4d2c6dfc4d2c6dfc4d2c6dfc4d2c6dfc
ddq 0x53380d1353380d1353380d1353380d13,0x53380d1353380d1353380d1353380d13
ddq 0x650a7354650a7354650a7354650a7354,0x650a7354650a7354650a7354650a7354
ddq 0x766a0abb766a0abb766a0abb766a0abb,0x766a0abb766a0abb766a0abb766a0abb
ddq 0x81c2c92e81c2c92e81c2c92e81c2c92e,0x81c2c92e81c2c92e81c2c92e81c2c92e
ddq 0x92722c8592722c8592722c8592722c85,0x92722c8592722c8592722c8592722c85
ddq 0xa2bfe8a1a2bfe8a1a2bfe8a1a2bfe8a1,0xa2bfe8a1a2bfe8a1a2bfe8a1a2bfe8a1
ddq 0xa81a664ba81a664ba81a664ba81a664b,0xa81a664ba81a664ba81a664ba81a664b
ddq 0xc24b8b70c24b8b70c24b8b70c24b8b70,0xc24b8b70c24b8b70c24b8b70c24b8b70
ddq 0xc76c51a3c76c51a3c76c51a3c76c51a3,0xc76c51a3c76c51a3c76c51a3c76c51a3
ddq 0xd192e819d192e819d192e819d192e819,0xd192e819d192e819d192e819d192e819
ddq 0xd6990624d6990624d6990624d6990624,0xd6990624d6990624d6990624d6990624
ddq 0xf40e3585f40e3585f40e3585f40e3585,0xf40e3585f40e3585f40e3585f40e3585
ddq 0x106aa070106aa070106aa070106aa070,0x106aa070106aa070106aa070106aa070
ddq 0x19a4c11619a4c11619a4c11619a4c116,0x19a4c11619a4c11619a4c11619a4c116
ddq 0x1e376c081e376c081e376c081e376c08,0x1e376c081e376c081e376c081e376c08
ddq 0x2748774c2748774c2748774c2748774c,0x2748774c2748774c2748774c2748774c
ddq 0x34b0bcb534b0bcb534b0bcb534b0bcb5,0x34b0bcb534b0bcb534b0bcb534b0bcb5
ddq 0x391c0cb3391c0cb3391c0cb3391c0cb3,0x391c0cb3391c0cb3391c0cb3391c0cb3
ddq 0x4ed8aa4a4ed8aa4a4ed8aa4a4ed8aa4a,0x4ed8aa4a4ed8aa4a4ed8aa4a4ed8aa4a
ddq 0x5b9cca4f5b9cca4f5b9cca4f5b9cca4f,0x5b9cca4f5b9cca4f5b9cca4f5b9cca4f
ddq 0x682e6ff3682e6ff3682e6ff3682e6ff3,0x682e6ff3682e6ff3682e6ff3682e6ff3
ddq 0x748f82ee748f82ee748f82ee748f82ee,0x748f82ee748f82ee748f82ee748f82ee
ddq 0x78a5636f78a5636f78a5636f78a5636f,0x78a5636f78a5636f78a5636f78a5636f
ddq 0x84c8781484c8781484c8781484c87814,0x84c8781484c8781484c8781484c87814
ddq 0x8cc702088cc702088cc702088cc70208,0x8cc702088cc702088cc702088cc70208
ddq 0x90befffa90befffa90befffa90befffa,0x90befffa90befffa90befffa90befffa
ddq 0xa4506ceba4506ceba4506ceba4506ceb,0xa4506ceba4506ceba4506ceba4506ceb
ddq 0xbef9a3f7bef9a3f7bef9a3f7bef9a3f7,0xbef9a3f7bef9a3f7bef9a3f7bef9a3f7
ddq 0xc67178f2c67178f2c67178f2c67178f2,0xc67178f2c67178f2c67178f2c67178f2
PSHUFFLE_BYTE_FLIP_MASK: ddq 0x0c0d0e0f08090a0b0405060700010203
ddq 0x0c0d0e0f08090a0b0405060700010203
|
||||
TheStack | db060b4ce5fac59e0edef23cc98ae27f4678448e | Assemblycode:Assembly | {"size": 5785, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_2628_1752.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_2628_1752.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_2628_1752.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 39.0878378378, "max_line_length": 2999, "alphanum_fraction": 0.6613656007} | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x2535, %rsi
lea addresses_D_ht+0xf335, %rdi
nop
nop
nop
nop
add %r12, %r12
mov $47, %rcx
rep movsw
nop
add $56458, %r10
lea addresses_WT_ht+0x1e029, %rsi
nop
nop
nop
nop
sub %r10, %r10
vmovups (%rsi), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $0, %xmm7, %rdi
nop
nop
nop
and %r10, %r10
lea addresses_UC_ht+0xd835, %rdx
nop
nop
nop
nop
and $32248, %r14
movb $0x61, (%rdx)
nop
nop
nop
nop
nop
add %rdx, %rdx
lea addresses_WT_ht+0x10add, %r12
nop
sub %rsi, %rsi
mov $0x6162636465666768, %r14
movq %r14, (%r12)
sub $21357, %rcx
lea addresses_WT_ht+0xdcf5, %rdx
add %r10, %r10
mov $0x6162636465666768, %rcx
movq %rcx, %xmm5
vmovups %ymm5, (%rdx)
nop
nop
nop
nop
dec %r10
lea addresses_UC_ht+0x13f35, %rcx
nop
cmp $44131, %rdx
mov $0x6162636465666768, %rsi
movq %rsi, (%rcx)
nop
nop
nop
nop
dec %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r14
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r14
push %r15
push %rcx
push %rdi
push %rsi
// REPMOV
lea addresses_US+0x1ce0d, %rsi
lea addresses_normal+0x17f35, %rdi
nop
nop
nop
cmp $53348, %r13
mov $27, %rcx
rep movsb
nop
nop
nop
nop
nop
sub %r14, %r14
// Faulty Load
lea addresses_normal+0xdf35, %rsi
clflush (%rsi)
nop
nop
nop
nop
nop
cmp $16317, %r15
mov (%rsi), %rcx
lea oracles, %r14
and $0xff, %rcx
shlq $12, %rcx
mov (%r14,%rcx,1), %rcx
pop %rsi
pop %rdi
pop %rcx
pop %r15
pop %r14
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_normal', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_US', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_normal', 'congruent': 11, 'same': False}, 'OP': 'REPM'}
[Faulty Load]
{'src': {'type': 'addresses_normal', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WT_ht', 'same': True, 'size': 8, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 8, 'congruent': 8, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'}
{'34': 2628}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
|
||||
TheStack | 0e300536d9d2cec84109720f7315330f4ef76a85 | Assemblycode:Assembly | {"size": 513, "ext": "asm", "max_stars_repo_path": "oeis/238/A238005.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/238/A238005.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/238/A238005.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 25.65, "max_line_length": 214, "alphanum_fraction": 0.567251462} | ; A238005: Number of partitions of n into distinct parts such that (greatest part) - (least part) = (number of parts).
; Submitted by Jon Maiga
; 0,0,0,1,0,1,1,2,0,2,2,2,2,2,1,4,3,2,3,3,2,4,4,4,3,4,2,5,5,3,5,6,3,5,3,5,6,6,4,6,6,4,6,6,3,7,7,7,6,6,5,7,7,5,6,8,6,8,8,6,8,8,4,9,6,7,9,9,7,7,9,8,9,9,5,9,7,8,10,10,7,10,10,8,8,10,8,10,10,6,9,11,9,11,9,11,11,10,7,10
mov $1,1
mov $2,$0
mov $4,1
lpb $0
add $4,1
min $0,$4
mov $3,$2
dif $3,$0
cmp $3,$2
sub $2,$4
mov $0,$2
add $1,$3
lpe
mov $0,$1
sub $0,1
|
||||
TheStack | f96bb4f3e8ed44073aae8c8cfb2440ac8adf2cdc | Assemblycode:Assembly | {"size": 550, "ext": "asm", "max_stars_repo_path": "oeis/013/A013781.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/013/A013781.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/013/A013781.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 68.75, "max_line_length": 476, "alphanum_fraction": 0.8945454545} | ; A013781: a(n) = 4^(4*n + 3).
; 64,16384,4194304,1073741824,274877906944,70368744177664,18014398509481984,4611686018427387904,1180591620717411303424,302231454903657293676544,77371252455336267181195264,19807040628566084398385987584,5070602400912917605986812821504,1298074214633706907132624082305024,332306998946228968225951765070086144,85070591730234615865843651857942052864,21778071482940061661655974875633165533184,5575186299632655785383929568162090376495104,1427247692705959881058285969449495136382746624
mov $1,256
pow $1,$0
mul $1,64
mov $0,$1
|
||||
TheStack | 5d6ff5ccb230febb8cbcf2e35e8b30f7a933ee6d | Assemblycode:Assembly | {"size": 245, "ext": "asm", "max_stars_repo_path": "lab2/assignment_8.asm", "max_stars_repo_name": "0000Blaze/Microprocess", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "lab2/assignment_8.asm", "max_issues_repo_name": "0000Blaze/Microprocess", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lab2/assignment_8.asm", "max_forks_repo_name": "0000Blaze/Microprocess", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 10.2083333333, "max_line_length": 13, "alphanum_fraction": 0.4979591837} | # ORG 8284
# DB 13
# ORG 8285
# DB 79
# ORG 8286
# DB 26
# ORG 8287
# DB 48
# ORG 8000
LHLD 8284
MOV B,H
MOV C,L
LHLD 8286
MOV A,L
ADD C
DAA
MOV L,A
MOV A,H
ADD B
DAA
MOV H,A
SHLD 8288
HLT
|
||||
TheStack | 9444683c7af360628696ced2f9d84ffa60ace6f5 | Assemblycode:Assembly | {"size": 4630, "ext": "asm", "max_stars_repo_path": "Appl/FileMgrs2/CommonDesktop/CLauncher/cwFileSelectorClass.asm", "max_stars_repo_name": "steakknife/pcgeos", "max_stars_repo_stars_event_min_datetime": "2018-11-18T03:35:53.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-29T01:02:51.000Z", "max_issues_repo_path": "Appl/FileMgrs2/CommonDesktop/CLauncher/cwFileSelectorClass.asm", "max_issues_repo_name": "steakknife/pcgeos", "max_issues_repo_issues_event_min_datetime": "2018-11-19T21:06:50.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-06T10:26:48.000Z", "max_forks_repo_path": "Appl/FileMgrs2/CommonDesktop/CLauncher/cwFileSelectorClass.asm", "max_forks_repo_name": "steakknife/pcgeos", "max_forks_repo_forks_event_min_datetime": "2018-11-19T20:46:53.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-29T00:59:26.000Z"} | {"max_stars_count": 504, "max_issues_count": 96, "max_forks_count": 73, "avg_line_length": 26.7630057803, "max_line_length": 79, "alphanum_fraction": 0.6058315335} | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: Welcome
FILE: wDOSStartupGroupClass.asm
AUTHOR: brianc, Sept 25, 1991
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 9/25/91 Initial revision
DESCRIPTION:
This file holds the definition for the WFileSelector class.
$Id: cwFileSelectorClass.asm,v 1.1 97/04/04 15:02:18 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ifndef GEOLAUNCHER
WFileSelectorCode segment resource
FileMgrsClassStructures segment resource
WFileSelectorClass
FileMgrsClassStructures ends
filterRoutinePtr fptr WFileSelectorFilterRoutine
extraAttrsPtr fptr wfsCallbackAttrs
wfsCallbackAttrs FileExtAttrDesc \
<FEA_NAME, 0, size FileLongName>,
<FEA_FILE_ATTR, 0, size FileAttrs>,
<FEA_END_OF_LIST>
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
WFileSelectorGetFilterRoutine
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Tell the GenFileSelector the address of our filter routine
and extra attributes.
CALLED BY: MSG_GEN_FILE_SELECTOR_GET_FILTER_ROUTINE
PASS: *ds:si = object
RETURN: ax:cx = fptr to routine
dx:bp = fptr to extra attributes
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 1/21/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
WFileSelectorGetFilterRoutine method dynamic WFileSelectorClass,
MSG_GEN_FILE_SELECTOR_GET_FILTER_ROUTINE
.enter
mov cx, cs:[filterRoutinePtr].segment
mov ax, cs:[filterRoutinePtr].offset
mov bp, cs:[extraAttrsPtr].segment
mov dx, cs:[extraAttrsPtr].offset
.leave
ret
WFileSelectorGetFilterRoutine endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
WFileSelectorFilterRoutine
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: This routine filters files for display in our file selectors.
CALLED BY: GLOBAL
PASS: *ds:si = object
es = segment of FileEnumCallbackData
bp = inherited stack frame
RETURN: carry clear to accept file
carry set to reject file
DESTROYED: various important but undocumented things
PSEUDO CODE/STRATEGY:
This page intentionally left blank
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 9/25/91 Initial version
ardeb 1/21/92 changed to be regular routine
dlitwin 6/24/92 reworked, added: check .ini file
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
WFileSelectorFilterRoutine proc far
class WFileSelectorClass
uses ds, si
.enter
segmov ds, es
clr si
; always accept subdirectories (won't ever see hidden or system)
FXIP < mov ss:[TPD_dataAX], FEA_FILE_ATTR >
FXIP < mov bx, vseg FileEnumLocateAttr >
FXIP < mov ax, offset FileEnumLocateAttr >
FXIP < call ProcCallFixedOrMovable >
NOFXIP< mov ax, FEA_FILE_ATTR >
NOFXIP< call FileEnumLocateAttr >
mov di, es:[di].FEAD_value.offset
test {FileAttrs} es:[di], mask FA_SUBDIR
clc ; in case its a subdir
jnz done ; accept subdirs
; locate the name and call the type-specific routine to match it
FXIP < mov ss:[TPD_dataAX], FEA_NAME >
FXIP < mov bx, vseg FileEnumLocateAttr >
FXIP < mov ax, offset FileEnumLocateAttr >
FXIP < call ProcCallFixedOrMovable >
NOFXIP< mov ax, FEA_NAME >
NOFXIP< call FileEnumLocateAttr >
mov di, es:[di].FEAD_value.offset
; locate the extension, first
mov bp,di ; Save ptr to filename
mov cx, -1 ; Get length of filename
clr ax
SBCS < repne scasb >
DBCS < repne scasw >
not cx
mov di,bp ; Restore ptr to filename
SBCS < mov al, '.' >
DBCS < mov ax, '.' >
SBCS < repne scasb ; Get ptr to extension >
DBCS < repne scasw ; Get ptr to extension >
stc ; in case of failure
jne done ; If no extension (can't find "."), exit
FXIP < mov bx, vseg CheckIfBatComExe >
FXIP < mov ax, offset CheckIfBatComExe >
FXIP < call ProcCallFixedOrMovable >
NOFXIP< call CheckIfBatComExe >
jmp done
done:
.leave
ret
WFileSelectorFilterRoutine endp
WFileSelectorCode ends
endif ; ifndef GEOLAUNCHER
|
||||
TheStack | 03219610ce44490fdc0d2e3d142729e39bf66dea | Assemblycode:Assembly | {"size": 3293, "ext": "asm", "max_stars_repo_path": "45/beef/drv/csd/src/fx_data.asm", "max_stars_repo_name": "minblock/msdos", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "45/beef/drv/csd/src/fx_data.asm", "max_issues_repo_name": "minblock/msdos", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "45/beef/drv/csd/src/fx_data.asm", "max_forks_repo_name": "minblock/msdos", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.1901408451, "max_line_length": 78, "alphanum_fraction": 0.6522927422} | ;*
;* CW : Character Windows Drivers
;*
;* fx_data.asm : Fixed driver data (linked in)
;*****************************************************************************
sBegin DATA
assumes DS,DGROUP
assumes CS,DGROUP
IFDEF DUALOS2
;* * default characters (tracks INCH strucure)
;* * NOT NEEDED FOR DUALOS2 - SUPPLIED BY FX_CSD3
ELSE ;!DUALOS2
;* * default characters (tracks INCH strucure)
labelB <PUBLIC, inch>
IFNDEF KANJI
;* * IBM characters
DB 218 ;* chTopLeftCorner1
DB 191 ;* chTopRightCorner1
DB 192 ;* chBottomLeftCorner1
DB 217 ;* chBottomRightCorner1
DB 196 ;* chTopSide1
DB 196 ;* chBottomSide1
DB 179 ;* chLeftSide1
DB 179 ;* chRightSide1
DB 195 ;* chMiddleLeft1
DB 180 ;* chMiddleRight1
DB 201 ;* chTopLeftCorner2
DB 187 ;* chTopRightCorner2
DB 200 ;* chBottomLeftCorner2
DB 188 ;* chBottomRightCorner2
DB 205 ;* chTopSide2
DB 205 ;* chBottomSide2
DB 186 ;* chLeftSide2
DB 186 ;* chRightSide2
DB 24 ;* chUpArrow
DB 25 ;* chDownArrow
DB 27 ;* chLeftArrow
DB 26 ;* chRightArrow
DB 7 ;* chBullet
DB 0FAH ;* chMiddleDot
DB 0B0H ;* chScrollbar
DB ' ' ;* chElevator
DB 0B1H ;* chShadowInit
DB 009H ;* chClose
DB 01FH ;* chZoomIn
DB 01EH ;* chZoomOut
DB 012H ;* chUpDownArrow
DB 01DH ;* chLeftRightArrow
ELSE
;* * Kanji characters (for Sanyo OAX card)
DB 00AH ;* chTopLeftCorner1
DB 00BH ;* chTopRightCorner1
DB 00DH ;* chBottomLeftCorner1
DB 00CH ;* chBottomRightCorner1
DB 008H ;* chTopSide1
DB 008H ;* chBottomSide1
DB 009H ;* chLeftSide1
DB 009H ;* chRightSide1
DB 00EH ;* chMiddleLeft1
DB 010H ;* chMiddleRight1
DB 015H ;* chTopLeftCorner2
DB 016H ;* chTopRightCorner2
DB 018H ;* chBottomLeftCorner2
DB 017H ;* chBottomRightCorner2
DB 013H ;* chTopSide2
DB 013H ;* chBottomSide2
DB 014H ;* chLeftSide2
DB 014H ;* chRightSide2
DB 004H ;* chUpArrow
DB 005H ;* chDownArrow
DB 007H ;* chLeftArrow
DB 006H ;* chRightArrow
DB '>' ;* chBullet
DB '*' ;* chMiddleDot
DB 07FH ;* chScrollbar
DB 0DBH ;* chElevator
DB ' ' ;* chShadowInit or 7Fh
DB 'C' ;* chClose
DB '?' ;* chZoomIn
DB '?' ;* chZoomOut
DB 002H ;* chUpDownArrow
DB 003H ;* chLeftRightArrow
ENDIF ;KANJI
;* * filler for "inch" structure
DW 16 DUP (?) ;* reserved
Assert <($-inch) EQ cbInchMin>
ENDIF ;!DUALOS2
;*****************************************************************************
labelB <PUBLIC, insj> ;* jump table (see header for INSJ)
DD ImodeGuessCurrentCsd
DD FQueryInstCsd
DD FInitCsd
DD TermCsd
DD MoveHwCursCsd
DD FQueryInftCsd
DD FGetColorPaletteCsd
DD SetColorPaletteCsd
DD PrepUpdateCsd
DD DoUpdateCsd
DD DoneUpdateCsd
DD SpecialUpdateCsd
;* * screen save
DD CbSizeVidsCsd
DD FSaveVidsCsd
DD FRestoreVidsCsd
DD SaveVidDataCsd
DD RestoreVidDataCsd
DD EnableVidsMonitorCsd
DD BltArcCsd
DD GetCharMapCsd
Assert <(($ - insj) / 4) EQ cpfnCsdMin>
sEnd DATA
;*****************************************************************************
sBegin BSS
assumes DS,DGROUP
IFDEF DUALDOS3
externW rgwDataCsd
;* * NOT NEEDED FOR DUALOS2 - SUPPLIED BY FX_CSD3
;* * NOTE: Assertion cbDataCsd(fxdcsd3) <= cbDataCsd(fxdcsd5)
ELSE ;!DUALDOS3
globalW rgwDataCsd, <(cbDataCsd / 2) DUP (?)> ;* Screen driver data
ENDIF ;!DUALDOS3
sEnd BSS
;*****************************************************************************
|
||||
TheStack | 845036917e6dd333ab47de534b9c83ceb9939142 | Assemblycode:Assembly | {"size": 149, "ext": "asm", "max_stars_repo_path": "other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_PAL/Fra_asm1/zel_rmdt09.asm", "max_stars_repo_name": "prismotizm/gigaleak", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_PAL/Fra_asm1/zel_rmdt09.asm", "max_issues_repo_name": "prismotizm/gigaleak", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_PAL/Fra_asm1/zel_rmdt09.asm", "max_forks_repo_name": "prismotizm/gigaleak", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.2857142857, "max_line_length": 47, "alphanum_fraction": 0.8187919463} | Name: zel_rmdt09.asm
Type: file
Size: 172160
Last-Modified: '2016-05-13T04:20:48Z'
SHA-1: 7B186A21AE07ED1606AAD3C0ADAE592500BB3E4E
Description: null
|
||||
TheStack | 476b8ca435e782d032f08d106dc512a568cf4958 | Assemblycode:Assembly | {"size": 148, "ext": "asm", "max_stars_repo_path": "other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_NES/N_F_asm/zel_rmdt0.asm", "max_stars_repo_name": "prismotizm/gigaleak", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_NES/N_F_asm/zel_rmdt0.asm", "max_issues_repo_name": "prismotizm/gigaleak", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_NES/N_F_asm/zel_rmdt0.asm", "max_forks_repo_name": "prismotizm/gigaleak", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.1428571429, "max_line_length": 47, "alphanum_fraction": 0.8175675676} | Name: zel_rmdt0.asm
Type: file
Size: 175761
Last-Modified: '2016-05-13T04:22:15Z'
SHA-1: D6E3ADED06E9CB59E4D5D836B7CBFCE688205468
Description: null
|
||||
TheStack | c90e7aa531bec801474da1ed7c909f0c69c026f3 | Assemblycode:Assembly | {"size": 1094, "ext": "asm", "max_stars_repo_path": "CS21/asm/fib.asm", "max_stars_repo_name": "rizarae/rizarae.github.io", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "CS21/asm/fib.asm", "max_issues_repo_name": "rizarae/rizarae.github.io", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "CS21/asm/fib.asm", "max_forks_repo_name": "rizarae/rizarae.github.io", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.7916666667, "max_line_length": 124, "alphanum_fraction": 0.6252285192} | # Lab 6
# recursive fibonacci
# lab lab
.text
main:
li $v0, 5 #get input
syscall
move $a0, $v0 #parameter for fib function
jal fib #function call
move $a0, $v0 #move return value to a0 for printing
li $v0, 1 #print
syscall
li $v0, 10 #exit
syscall
fib:
subi $sp, $sp, 32
sw $ra, 28($sp) #save value of $ra to stack ($ra will be modified during recursion, so we want to save its original value)
sw $fp, 24($sp) #save value of $fp
sw $a0, 20($sp) #save value of $a0 (parameter)
sw $s0, 16($sp) #save value of $s0
beqz $a0, zero #base case 0
beq $a0, 1, one #base case 1
subi $a0, $a0, 1
jal fib #compute fib(n-1)
move $s0, $v0
subi $a0, $a0, 1
jal fib #compute fib(n-2)
add $v0, $s0, $v0 #$v0 gets fib(n-1) + fib(n-2)
b fib_end
zero:
li $v0, 0
b fib_end
one:
li $v0, 1
fib_end:
lw $s0, 16($sp) #reload to $s0 its original value
lw $a0, 20($sp) #reload to $a0 its original value
lw $fp, 24($sp) #reload to $fp its original value
lw $ra, 28($sp) #reload to $ra its original value
addi $sp, $sp, 32
jr $ra #return to caller block |
||||
TheStack | f4ee2c1d7f866e11e35e510962ce22b482144de3 | Assemblycode:Assembly | {"size": 7553, "ext": "asm", "max_stars_repo_path": "ulam.asm", "max_stars_repo_name": "wadiim/ulam", "max_stars_repo_stars_event_min_datetime": "2021-08-07T03:18:54.000Z", "max_stars_repo_stars_event_max_datetime": "2021-08-07T03:18:54.000Z", "max_issues_repo_path": "ulam.asm", "max_issues_repo_name": "wadiim/ulam", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "ulam.asm", "max_forks_repo_name": "wadiim/ulam", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 35.6273584906, "max_line_length": 79, "alphanum_fraction": 0.5477293791} | ; $040f => The screen location of the first cell of the spiral.
; $0200 => The screen location of the last cell of the spiral.
; $00-01 => A memory location representing the screen location of the current
; cell.
; $02 => A memory location representing the current direction, i.e. the
; direction of the next cell relative to the current cell.
; $03 => A memory location representing the current line lenght, i.e. the
; number of steps from the last change of direction to the next one.
; $04 => A memory location representing the current line steps, i.e. the
; number of steps traversed from the last change of direction.
; $05 => A memory location representing the current prime, i.e. the number
; of which multiples will be "crossed out".
;
; Directions:
; 1 => up (0b0001)
; 2 => right (0b0010)
; 4 => down (0b0100)
; 8 => left (0b1000)
jsr init
jsr generate
jsr end
init:
jsr move_to_origin
lda #$02
sta $05 ; Set the current prime to 2.
rts
; Move to the first cell of the spiral.
move_to_origin:
lda #$0f
sta $00 ; Set the low byte of the current cell.
lda #$04
sta $01 ; Set the high byte of the current cell.
lda #$02
sta $02 ; Set the current direction to right.
lda #$01
sta $03 ; Set the current line lenght to 3.
lda #$00
sta $04 ; Set the current line steps to 0.
rts
; Generate the Ulam spiral.
generate:
jsr cross_out_current_cell ; Cross out the first cell of the spiral.
jsr step
loop:
jsr cross_out_multiples
jsr next_prime
lda $05 ; Load the current prime to the A register.
cmp #$21 ; Compare the current prime with the number
; one greater than the square root of the
; number of cells of the screen.
bcc loop ; Branch if the current prime is less than
; the root.
rts
; Cross out (i.e. colorize with the background color) the multiples of the
; current prime. This routine assumes that the current position is equal to
; the position of the current prime.
cross_out_multiples:
jsr at_finish
cmp #$00
beq cross_out_multiples_end
ldy $05 ; Load the current prime to the Y register.
jsr step_n_times
jsr cross_out_current_cell
jmp cross_out_multiples
cross_out_multiples_end:
rts
; Colorize the current cell with the background color.
cross_out_current_cell:
ldy #$00
lda #$01
sta ($00), y
rts
; Check if the current cell is the one at the top-left corner of the screen.
; If that is the case, set the A register to 0. Otherwise, set the A register
; to 1.
at_finish:
lda #$01
ldx $00 ; Load the low byte of the current cell to
; the X register.
cpx #$00 ; Compare it with the low byte of the cell
; at top-left corner of the screen.
bne at_finish_end
ldx $01 ; Load the high byte of the current cell to
; the X register.
cpx #$02 ; Compare it with the high byte of the cell
; at top-left corner of the screen.
bne at_finish_end
lda #$00
at_finish_end:
rts
; Move to the first from origin non crossed out cell.
next_prime:
jsr move_to_origin
ldy $05 ; Load the current prime to the Y register.
dey
jsr step_n_times ; Move to the position of the current prime.
next_prime_loop:
jsr step
inc $05 ; Increment the current prime.
ldy #$00
lda ($00), y ; Compare the current cell with the value
; of the foreground color.
bne next_prime_loop
next_prime_end:
rts
; Turn 90 degree anti-clockwise.
turn:
lda $02 ; Load the current direction to the A
; register.
lsr
bcs turn_left ; If the Carry Flag is set then the current
; direction is up (0b0001) so change it to
; left.
jmp change_direction
turn_left:
lda #$08
change_direction:
sta $02 ; Store the value of the A register in the
; memory location representing the current
; direction.
rts
; Move to the next cell of the spriral.
step:
lda $04 ; Load the current line steps to the A
; register.
cmp $03 ; Compare it with the current line lenght.
bne update_current_cell
lda #$00
sta $04 ; Set the current line steps to 0.
update_current_direction:
jsr turn
update_current_line_lenght:
lda $02 ; Load the current direction to the A
; register.
and #$0a ; Mask out all the bits except 2nd and 4th.
cmp #$00 ; If the A register is zero then the
; current direction is other than right
; (0b0010) or left (0b1000).
beq update_current_cell
inc $03 ; Increment the current line lenght.
update_current_cell:
lda $02 ; Load the current direction to the A
; register.
lsr
bcs up
lsr
bcs right
lsr
bcs down
lsr
bcs left
right:
inc $00 ; Increment the low byte of the current cell.
jmp update_current_line_steps
up:
lda $00 ; Load the low byte of the current cell to
; the A register.
sec
sbc #$20
sta $00 ; Store the value of the A register in the
; memory location representing the low byte
; of the current cell.
bcc upup ; Handle underflow if occured.
jmp update_current_line_steps
upup:
dec $01 ; Decrement the high byte of the current
; cell.
jmp update_current_line_steps
left:
dec $00 ; Decrement the low byte of the current cell.
jmp update_current_line_steps
down:
lda $00 ; Load the current cell to the A register.
clc
adc #$20
sta $00 ; Store the value of the A register in the
; memory location representing the low byte
; of the current cell.
bcs downdown ; Handle overflow if occured.
jmp update_current_line_steps
downdown:
inc $01 ; Increment the high byte of the current
; cell.
jmp update_current_line_steps
update_current_line_steps:
inc $04 ; Increment the current line steps.
rts
; Step as many times as specified by the number stored in the Y register.
step_n_times:
jsr at_finish
cmp #$00
beq step_n_times_end
jsr step
dey
beq step_n_times_end
jmp step_n_times
step_n_times_end:
rts
end:
|
||||
TheStack | 67252a6a94e876bdb7dfc958fca597d7426ffd1e | Assemblycode:Assembly | {"size": 4618, "ext": "asm", "max_stars_repo_path": "texmap/temp.asm", "max_stars_repo_name": "arbruijn/d1dos", "max_stars_repo_stars_event_min_datetime": "2022-01-15T17:56:45.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-16T17:58:02.000Z", "max_issues_repo_path": "texmap/temp.asm", "max_issues_repo_name": "arbruijn/d1dos", "max_issues_repo_issues_event_min_datetime": "2022-02-16T18:08:42.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-21T07:42:27.000Z", "max_forks_repo_path": "texmap/temp.asm", "max_forks_repo_name": "arbruijn/d1dos", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 2, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 20.5244444444, "max_line_length": 76, "alphanum_fraction": 0.6673884799} | ;THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
;SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
;END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
;ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
;IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
;SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
;FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
;CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
;AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
;COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
public tmap_loop_fast_nolight
tmap_loop_fast_nolight:
align 4
NotDwordAligned1_nolight:
test edi, 11b
jz DwordAligned1_nolight
xchg ebx, esi
; compute v coordinate
mov eax,ebp ; get v
cdq
idiv ecx ; eax = (v/z)
and eax,3fh ; mask with height-1
mov ebx,eax
; compute u coordinate
mov eax,esi ; get u
cdq
idiv ecx ; eax = (u/z)
shl eax,26
shld ebx,eax,6 ; esi = v*64+u
; read 1 pixel
mov al,es:[ebx] ; get pixel from source bitmap
; write 1 pixel
mov [edi],al
inc edi
; update deltas
add ebp,_fx_dv_dx
add esi,_fx_du_dx
add ecx,_fx_dz_dx
xchg esi, ebx
dec _loop_count
jns NotDwordAligned1_nolight
jmp _none_to_do
DwordAligned1_nolight:
mov eax, _loop_count
inc eax
mov num_left_over, eax
shr eax, NBITS
cmp eax, 0
je tmap_loop
mov _loop_count, eax ; _loop_count = pixels / NPIXS
;OPshl eax, NBITS
lea eax, [eax*8]
sub num_left_over, eax ; num_left_over = obvious
; compute initial v coordinate
mov eax,ebp ; get v
PDIV
mov V0, eax
; compute initial u coordinate
mov eax,ebx ; get u
PDIV
mov U0, eax
; Set deltas to NPIXS pixel increments
mov eax, _fx_du_dx
;OPshl eax, NBITS
lea eax, [eax*8]
mov DU1, eax
mov eax, _fx_dv_dx
;OPshl eax, NBITS
lea eax, [eax*8]
mov DV1, eax
mov eax, _fx_dz_dx
;OPshl eax, NBITS
lea eax, [eax*8]
mov DZ1, eax
align 4
TopOfLoop4_nolight:
add ebx, DU1
add ebp, DV1
add ecx, DZ1
; Done with ebx, ebp, ecx until next iteration
push ebx
push ecx
push ebp
push edi
; Find fixed U1
mov eax, ebx
PDIV
mov ebx, eax ; ebx = U1 until pop's
; Find fixed V1
mov eax, ebp
PDIV
mov ebp, eax ; ebp = V1 until pop's
mov ecx, U0 ; ecx = U0 until pop's
mov edi, V0 ; edi = V0 until pop's
; Make ESI = V0:U0 in 6:10,6:10 format
mov eax, ecx
shr eax, 6
mov esi, edi
shl esi, 10
mov si, ax
; Make EDX = DV:DU in 6:10,6:10 format
mov eax, ebx
sub eax, ecx
sar eax, NBITS+6
mov edx, ebp
sub edx, edi
shl edx, 10-NBITS ; EDX = V1-V0/ 4 in 6:10 int:frac
mov dx, ax ; put delta u in low word
; Save the U1 and V1 so we don't have to divide on the
; next iteration
mov U0, ebx
mov V0, ebp
pop edi ; Restore EDI before using it
REPT (1 SHL (NBITS-2))
REPT 4
; Do 1 pixel
mov eax, esi ; get u,v
shr eax, 26 ; shift out all but int(v)
shld ax,si,6 ; shift in u, shifting up v
mov cl, es:[eax] ; load into buffer register
add esi, edx ; inc u,v
ror ecx, 8 ; move to next dest pixel
ENDM
mov [edi],ecx ; Draw 4 pixels to display
add edi,4
ENDM
pop ebp
pop ecx
pop ebx
dec _loop_count
jnz TopOfLoop4_nolight
EndOfLoop4_nolight:
cmp num_left_over, 0
je _none_to_do
DoEndPixels_nolight:
add ebx, DU1
add ebp, DV1
add ecx, DZ1
push edi ; use edi as a temporary variable
; Find fixed U1
mov eax, ebx
PDIV
mov ebx, eax ; ebx = U1 until pop's
; Find fixed V1
mov eax, ebp
PDIV
mov ebp, eax ; ebp = V1 until pop's
mov ecx, U0 ; ecx = U0 until pop's
mov edi, V0 ; edi = V0 until pop's
; Make ESI = V0:U0 in 6:10,6:10 format
mov eax, ecx
shr eax, 6
mov esi, edi
shl esi, 10
mov si, ax
; Make EDX = DV:DU in 6:10,6:10 format
mov eax, ebx
sub eax, ecx
sar eax, NBITS+6
mov edx, ebp
sub edx, edi
shl edx, 10-NBITS ; EDX = V1-V0/ 4 in 6:10 int:frac
mov dx, ax ; put delta u in low word
pop edi ; Restore EDI before using it
mov ecx, num_left_over
ITERATION = 0
REPT (1 SHL NBITS)
; Do 1 pixel
mov eax, esi ; get u,v
shr eax, 26 ; shift out all but int(v)
shld ax,si,6 ; shift in u, shifting up v
mov al, es:[eax] ; load into buffer register
add esi, edx ; inc u,v
mov [edi+ITERATION], al ; write pixel
dec ecx
jz _none_to_do
ITERATION = ITERATION + 1
ENDM
; Should never get here!!!!!
int 3
jmp _none_to_do
|
||||
TheStack | 1c9d53799959fb8bca7b7c0e3aa1d8829dcab2fa | Assemblycode:Assembly | {"size": 317, "ext": "asm", "max_stars_repo_path": "oeis/332/A332243.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/332/A332243.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/332/A332243.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 39.625, "max_line_length": 211, "alphanum_fraction": 0.7444794953} | ; A332243: Starhex honeycomb numbers: a(n) = 13 + 60*n + 60*n^2.
; 13,133,373,733,1213,1813,2533,3373,4333,5413,6613,7933,9373,10933,12613,14413,16333,18373,20533,22813,25213,27733,30373,33133,36013,39013,42133,45373,48733,52213,55813,59533,63373,67333,71413,75613,79933,84373
add $0,1
bin $0,2
mul $0,120
add $0,13
|
||||
TheStack | 21ce8035406d7dca3b5d1cf7af0709ac3ad9cbaa | Assemblycode:Assembly | {"size": 57190, "ext": "asm", "max_stars_repo_path": "kill.asm", "max_stars_repo_name": "dylsugar/cs461_hw5", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "kill.asm", "max_issues_repo_name": "dylsugar/cs461_hw5", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "kill.asm", "max_forks_repo_name": "dylsugar/cs461_hw5", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 39.5778546713, "max_line_length": 69, "alphanum_fraction": 0.4455848925} |
_kill: file format elf64-x86-64
Disassembly of section .text:
0000000000001000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char **argv)
{
1000: f3 0f 1e fa endbr64
1004: 55 push %rbp
1005: 48 89 e5 mov %rsp,%rbp
1008: 48 83 ec 20 sub $0x20,%rsp
100c: 89 7d ec mov %edi,-0x14(%rbp)
100f: 48 89 75 e0 mov %rsi,-0x20(%rbp)
int i;
if(argc < 2){
1013: 83 7d ec 01 cmpl $0x1,-0x14(%rbp)
1017: 7f 2c jg 1045 <main+0x45>
printf(2, "usage: kill pid...\n");
1019: 48 be f8 1d 00 00 00 movabs $0x1df8,%rsi
1020: 00 00 00
1023: bf 02 00 00 00 mov $0x2,%edi
1028: b8 00 00 00 00 mov $0x0,%eax
102d: 48 ba e1 16 00 00 00 movabs $0x16e1,%rdx
1034: 00 00 00
1037: ff d2 callq *%rdx
exit();
1039: 48 b8 dd 13 00 00 00 movabs $0x13dd,%rax
1040: 00 00 00
1043: ff d0 callq *%rax
}
for(i=1; i<argc; i++)
1045: c7 45 fc 01 00 00 00 movl $0x1,-0x4(%rbp)
104c: eb 38 jmp 1086 <main+0x86>
kill(atoi(argv[i]));
104e: 8b 45 fc mov -0x4(%rbp),%eax
1051: 48 98 cltq
1053: 48 8d 14 c5 00 00 00 lea 0x0(,%rax,8),%rdx
105a: 00
105b: 48 8b 45 e0 mov -0x20(%rbp),%rax
105f: 48 01 d0 add %rdx,%rax
1062: 48 8b 00 mov (%rax),%rax
1065: 48 89 c7 mov %rax,%rdi
1068: 48 b8 1b 13 00 00 00 movabs $0x131b,%rax
106f: 00 00 00
1072: ff d0 callq *%rax
1074: 89 c7 mov %eax,%edi
1076: 48 b8 2b 14 00 00 00 movabs $0x142b,%rax
107d: 00 00 00
1080: ff d0 callq *%rax
for(i=1; i<argc; i++)
1082: 83 45 fc 01 addl $0x1,-0x4(%rbp)
1086: 8b 45 fc mov -0x4(%rbp),%eax
1089: 3b 45 ec cmp -0x14(%rbp),%eax
108c: 7c c0 jl 104e <main+0x4e>
exit();
108e: 48 b8 dd 13 00 00 00 movabs $0x13dd,%rax
1095: 00 00 00
1098: ff d0 callq *%rax
000000000000109a <stosb>:
"cc");
}
static inline void
stosb(void *addr, int data, int cnt)
{
109a: f3 0f 1e fa endbr64
109e: 55 push %rbp
109f: 48 89 e5 mov %rsp,%rbp
10a2: 48 83 ec 10 sub $0x10,%rsp
10a6: 48 89 7d f8 mov %rdi,-0x8(%rbp)
10aa: 89 75 f4 mov %esi,-0xc(%rbp)
10ad: 89 55 f0 mov %edx,-0x10(%rbp)
asm volatile("cld; rep stosb" :
10b0: 48 8b 4d f8 mov -0x8(%rbp),%rcx
10b4: 8b 55 f0 mov -0x10(%rbp),%edx
10b7: 8b 45 f4 mov -0xc(%rbp),%eax
10ba: 48 89 ce mov %rcx,%rsi
10bd: 48 89 f7 mov %rsi,%rdi
10c0: 89 d1 mov %edx,%ecx
10c2: fc cld
10c3: f3 aa rep stos %al,%es:(%rdi)
10c5: 89 ca mov %ecx,%edx
10c7: 48 89 fe mov %rdi,%rsi
10ca: 48 89 75 f8 mov %rsi,-0x8(%rbp)
10ce: 89 55 f0 mov %edx,-0x10(%rbp)
"=D" (addr), "=c" (cnt) :
"0" (addr), "1" (cnt), "a" (data) :
"memory", "cc");
}
10d1: 90 nop
10d2: c9 leaveq
10d3: c3 retq
00000000000010d4 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, char *t)
{
10d4: f3 0f 1e fa endbr64
10d8: 55 push %rbp
10d9: 48 89 e5 mov %rsp,%rbp
10dc: 48 83 ec 20 sub $0x20,%rsp
10e0: 48 89 7d e8 mov %rdi,-0x18(%rbp)
10e4: 48 89 75 e0 mov %rsi,-0x20(%rbp)
char *os;
os = s;
10e8: 48 8b 45 e8 mov -0x18(%rbp),%rax
10ec: 48 89 45 f8 mov %rax,-0x8(%rbp)
while((*s++ = *t++) != 0)
10f0: 90 nop
10f1: 48 8b 55 e0 mov -0x20(%rbp),%rdx
10f5: 48 8d 42 01 lea 0x1(%rdx),%rax
10f9: 48 89 45 e0 mov %rax,-0x20(%rbp)
10fd: 48 8b 45 e8 mov -0x18(%rbp),%rax
1101: 48 8d 48 01 lea 0x1(%rax),%rcx
1105: 48 89 4d e8 mov %rcx,-0x18(%rbp)
1109: 0f b6 12 movzbl (%rdx),%edx
110c: 88 10 mov %dl,(%rax)
110e: 0f b6 00 movzbl (%rax),%eax
1111: 84 c0 test %al,%al
1113: 75 dc jne 10f1 <strcpy+0x1d>
;
return os;
1115: 48 8b 45 f8 mov -0x8(%rbp),%rax
}
1119: c9 leaveq
111a: c3 retq
000000000000111b <strcmp>:
int
strcmp(const char *p, const char *q)
{
111b: f3 0f 1e fa endbr64
111f: 55 push %rbp
1120: 48 89 e5 mov %rsp,%rbp
1123: 48 83 ec 10 sub $0x10,%rsp
1127: 48 89 7d f8 mov %rdi,-0x8(%rbp)
112b: 48 89 75 f0 mov %rsi,-0x10(%rbp)
while(*p && *p == *q)
112f: eb 0a jmp 113b <strcmp+0x20>
p++, q++;
1131: 48 83 45 f8 01 addq $0x1,-0x8(%rbp)
1136: 48 83 45 f0 01 addq $0x1,-0x10(%rbp)
while(*p && *p == *q)
113b: 48 8b 45 f8 mov -0x8(%rbp),%rax
113f: 0f b6 00 movzbl (%rax),%eax
1142: 84 c0 test %al,%al
1144: 74 12 je 1158 <strcmp+0x3d>
1146: 48 8b 45 f8 mov -0x8(%rbp),%rax
114a: 0f b6 10 movzbl (%rax),%edx
114d: 48 8b 45 f0 mov -0x10(%rbp),%rax
1151: 0f b6 00 movzbl (%rax),%eax
1154: 38 c2 cmp %al,%dl
1156: 74 d9 je 1131 <strcmp+0x16>
return (uchar)*p - (uchar)*q;
1158: 48 8b 45 f8 mov -0x8(%rbp),%rax
115c: 0f b6 00 movzbl (%rax),%eax
115f: 0f b6 d0 movzbl %al,%edx
1162: 48 8b 45 f0 mov -0x10(%rbp),%rax
1166: 0f b6 00 movzbl (%rax),%eax
1169: 0f b6 c0 movzbl %al,%eax
116c: 29 c2 sub %eax,%edx
116e: 89 d0 mov %edx,%eax
}
1170: c9 leaveq
1171: c3 retq
0000000000001172 <strlen>:
uint
strlen(char *s)
{
1172: f3 0f 1e fa endbr64
1176: 55 push %rbp
1177: 48 89 e5 mov %rsp,%rbp
117a: 48 83 ec 18 sub $0x18,%rsp
117e: 48 89 7d e8 mov %rdi,-0x18(%rbp)
int n;
for(n = 0; s[n]; n++)
1182: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%rbp)
1189: eb 04 jmp 118f <strlen+0x1d>
118b: 83 45 fc 01 addl $0x1,-0x4(%rbp)
118f: 8b 45 fc mov -0x4(%rbp),%eax
1192: 48 63 d0 movslq %eax,%rdx
1195: 48 8b 45 e8 mov -0x18(%rbp),%rax
1199: 48 01 d0 add %rdx,%rax
119c: 0f b6 00 movzbl (%rax),%eax
119f: 84 c0 test %al,%al
11a1: 75 e8 jne 118b <strlen+0x19>
;
return n;
11a3: 8b 45 fc mov -0x4(%rbp),%eax
}
11a6: c9 leaveq
11a7: c3 retq
00000000000011a8 <memset>:
void*
memset(void *dst, int c, uint n)
{
11a8: f3 0f 1e fa endbr64
11ac: 55 push %rbp
11ad: 48 89 e5 mov %rsp,%rbp
11b0: 48 83 ec 10 sub $0x10,%rsp
11b4: 48 89 7d f8 mov %rdi,-0x8(%rbp)
11b8: 89 75 f4 mov %esi,-0xc(%rbp)
11bb: 89 55 f0 mov %edx,-0x10(%rbp)
stosb(dst, c, n);
11be: 8b 55 f0 mov -0x10(%rbp),%edx
11c1: 8b 4d f4 mov -0xc(%rbp),%ecx
11c4: 48 8b 45 f8 mov -0x8(%rbp),%rax
11c8: 89 ce mov %ecx,%esi
11ca: 48 89 c7 mov %rax,%rdi
11cd: 48 b8 9a 10 00 00 00 movabs $0x109a,%rax
11d4: 00 00 00
11d7: ff d0 callq *%rax
return dst;
11d9: 48 8b 45 f8 mov -0x8(%rbp),%rax
}
11dd: c9 leaveq
11de: c3 retq
00000000000011df <strchr>:
char*
strchr(const char *s, char c)
{
11df: f3 0f 1e fa endbr64
11e3: 55 push %rbp
11e4: 48 89 e5 mov %rsp,%rbp
11e7: 48 83 ec 10 sub $0x10,%rsp
11eb: 48 89 7d f8 mov %rdi,-0x8(%rbp)
11ef: 89 f0 mov %esi,%eax
11f1: 88 45 f4 mov %al,-0xc(%rbp)
for(; *s; s++)
11f4: eb 17 jmp 120d <strchr+0x2e>
if(*s == c)
11f6: 48 8b 45 f8 mov -0x8(%rbp),%rax
11fa: 0f b6 00 movzbl (%rax),%eax
11fd: 38 45 f4 cmp %al,-0xc(%rbp)
1200: 75 06 jne 1208 <strchr+0x29>
return (char*)s;
1202: 48 8b 45 f8 mov -0x8(%rbp),%rax
1206: eb 15 jmp 121d <strchr+0x3e>
for(; *s; s++)
1208: 48 83 45 f8 01 addq $0x1,-0x8(%rbp)
120d: 48 8b 45 f8 mov -0x8(%rbp),%rax
1211: 0f b6 00 movzbl (%rax),%eax
1214: 84 c0 test %al,%al
1216: 75 de jne 11f6 <strchr+0x17>
return 0;
1218: b8 00 00 00 00 mov $0x0,%eax
}
121d: c9 leaveq
121e: c3 retq
000000000000121f <gets>:
char*
gets(char *buf, int max)
{
121f: f3 0f 1e fa endbr64
1223: 55 push %rbp
1224: 48 89 e5 mov %rsp,%rbp
1227: 48 83 ec 20 sub $0x20,%rsp
122b: 48 89 7d e8 mov %rdi,-0x18(%rbp)
122f: 89 75 e4 mov %esi,-0x1c(%rbp)
int i, cc;
char c;
for(i=0; i+1 < max; ){
1232: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%rbp)
1239: eb 4f jmp 128a <gets+0x6b>
cc = read(0, &c, 1);
123b: 48 8d 45 f7 lea -0x9(%rbp),%rax
123f: ba 01 00 00 00 mov $0x1,%edx
1244: 48 89 c6 mov %rax,%rsi
1247: bf 00 00 00 00 mov $0x0,%edi
124c: 48 b8 04 14 00 00 00 movabs $0x1404,%rax
1253: 00 00 00
1256: ff d0 callq *%rax
1258: 89 45 f8 mov %eax,-0x8(%rbp)
if(cc < 1)
125b: 83 7d f8 00 cmpl $0x0,-0x8(%rbp)
125f: 7e 36 jle 1297 <gets+0x78>
break;
buf[i++] = c;
1261: 8b 45 fc mov -0x4(%rbp),%eax
1264: 8d 50 01 lea 0x1(%rax),%edx
1267: 89 55 fc mov %edx,-0x4(%rbp)
126a: 48 63 d0 movslq %eax,%rdx
126d: 48 8b 45 e8 mov -0x18(%rbp),%rax
1271: 48 01 c2 add %rax,%rdx
1274: 0f b6 45 f7 movzbl -0x9(%rbp),%eax
1278: 88 02 mov %al,(%rdx)
if(c == '\n' || c == '\r')
127a: 0f b6 45 f7 movzbl -0x9(%rbp),%eax
127e: 3c 0a cmp $0xa,%al
1280: 74 16 je 1298 <gets+0x79>
1282: 0f b6 45 f7 movzbl -0x9(%rbp),%eax
1286: 3c 0d cmp $0xd,%al
1288: 74 0e je 1298 <gets+0x79>
for(i=0; i+1 < max; ){
128a: 8b 45 fc mov -0x4(%rbp),%eax
128d: 83 c0 01 add $0x1,%eax
1290: 39 45 e4 cmp %eax,-0x1c(%rbp)
1293: 7f a6 jg 123b <gets+0x1c>
1295: eb 01 jmp 1298 <gets+0x79>
break;
1297: 90 nop
break;
}
buf[i] = '\0';
1298: 8b 45 fc mov -0x4(%rbp),%eax
129b: 48 63 d0 movslq %eax,%rdx
129e: 48 8b 45 e8 mov -0x18(%rbp),%rax
12a2: 48 01 d0 add %rdx,%rax
12a5: c6 00 00 movb $0x0,(%rax)
return buf;
12a8: 48 8b 45 e8 mov -0x18(%rbp),%rax
}
12ac: c9 leaveq
12ad: c3 retq
00000000000012ae <stat>:
int
stat(char *n, struct stat *st)
{
12ae: f3 0f 1e fa endbr64
12b2: 55 push %rbp
12b3: 48 89 e5 mov %rsp,%rbp
12b6: 48 83 ec 20 sub $0x20,%rsp
12ba: 48 89 7d e8 mov %rdi,-0x18(%rbp)
12be: 48 89 75 e0 mov %rsi,-0x20(%rbp)
int fd;
int r;
fd = open(n, O_RDONLY);
12c2: 48 8b 45 e8 mov -0x18(%rbp),%rax
12c6: be 00 00 00 00 mov $0x0,%esi
12cb: 48 89 c7 mov %rax,%rdi
12ce: 48 b8 45 14 00 00 00 movabs $0x1445,%rax
12d5: 00 00 00
12d8: ff d0 callq *%rax
12da: 89 45 fc mov %eax,-0x4(%rbp)
if(fd < 0)
12dd: 83 7d fc 00 cmpl $0x0,-0x4(%rbp)
12e1: 79 07 jns 12ea <stat+0x3c>
return -1;
12e3: b8 ff ff ff ff mov $0xffffffff,%eax
12e8: eb 2f jmp 1319 <stat+0x6b>
r = fstat(fd, st);
12ea: 48 8b 55 e0 mov -0x20(%rbp),%rdx
12ee: 8b 45 fc mov -0x4(%rbp),%eax
12f1: 48 89 d6 mov %rdx,%rsi
12f4: 89 c7 mov %eax,%edi
12f6: 48 b8 6c 14 00 00 00 movabs $0x146c,%rax
12fd: 00 00 00
1300: ff d0 callq *%rax
1302: 89 45 f8 mov %eax,-0x8(%rbp)
close(fd);
1305: 8b 45 fc mov -0x4(%rbp),%eax
1308: 89 c7 mov %eax,%edi
130a: 48 b8 1e 14 00 00 00 movabs $0x141e,%rax
1311: 00 00 00
1314: ff d0 callq *%rax
return r;
1316: 8b 45 f8 mov -0x8(%rbp),%eax
}
1319: c9 leaveq
131a: c3 retq
000000000000131b <atoi>:
int
atoi(const char *s)
{
131b: f3 0f 1e fa endbr64
131f: 55 push %rbp
1320: 48 89 e5 mov %rsp,%rbp
1323: 48 83 ec 18 sub $0x18,%rsp
1327: 48 89 7d e8 mov %rdi,-0x18(%rbp)
int n;
n = 0;
132b: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%rbp)
while('0' <= *s && *s <= '9')
1332: eb 28 jmp 135c <atoi+0x41>
n = n*10 + *s++ - '0';
1334: 8b 55 fc mov -0x4(%rbp),%edx
1337: 89 d0 mov %edx,%eax
1339: c1 e0 02 shl $0x2,%eax
133c: 01 d0 add %edx,%eax
133e: 01 c0 add %eax,%eax
1340: 89 c1 mov %eax,%ecx
1342: 48 8b 45 e8 mov -0x18(%rbp),%rax
1346: 48 8d 50 01 lea 0x1(%rax),%rdx
134a: 48 89 55 e8 mov %rdx,-0x18(%rbp)
134e: 0f b6 00 movzbl (%rax),%eax
1351: 0f be c0 movsbl %al,%eax
1354: 01 c8 add %ecx,%eax
1356: 83 e8 30 sub $0x30,%eax
1359: 89 45 fc mov %eax,-0x4(%rbp)
while('0' <= *s && *s <= '9')
135c: 48 8b 45 e8 mov -0x18(%rbp),%rax
1360: 0f b6 00 movzbl (%rax),%eax
1363: 3c 2f cmp $0x2f,%al
1365: 7e 0b jle 1372 <atoi+0x57>
1367: 48 8b 45 e8 mov -0x18(%rbp),%rax
136b: 0f b6 00 movzbl (%rax),%eax
136e: 3c 39 cmp $0x39,%al
1370: 7e c2 jle 1334 <atoi+0x19>
return n;
1372: 8b 45 fc mov -0x4(%rbp),%eax
}
1375: c9 leaveq
1376: c3 retq
0000000000001377 <memmove>:
void*
memmove(void *vdst, void *vsrc, int n)
{
1377: f3 0f 1e fa endbr64
137b: 55 push %rbp
137c: 48 89 e5 mov %rsp,%rbp
137f: 48 83 ec 28 sub $0x28,%rsp
1383: 48 89 7d e8 mov %rdi,-0x18(%rbp)
1387: 48 89 75 e0 mov %rsi,-0x20(%rbp)
138b: 89 55 dc mov %edx,-0x24(%rbp)
char *dst, *src;
dst = vdst;
138e: 48 8b 45 e8 mov -0x18(%rbp),%rax
1392: 48 89 45 f8 mov %rax,-0x8(%rbp)
src = vsrc;
1396: 48 8b 45 e0 mov -0x20(%rbp),%rax
139a: 48 89 45 f0 mov %rax,-0x10(%rbp)
while(n-- > 0)
139e: eb 1d jmp 13bd <memmove+0x46>
*dst++ = *src++;
13a0: 48 8b 55 f0 mov -0x10(%rbp),%rdx
13a4: 48 8d 42 01 lea 0x1(%rdx),%rax
13a8: 48 89 45 f0 mov %rax,-0x10(%rbp)
13ac: 48 8b 45 f8 mov -0x8(%rbp),%rax
13b0: 48 8d 48 01 lea 0x1(%rax),%rcx
13b4: 48 89 4d f8 mov %rcx,-0x8(%rbp)
13b8: 0f b6 12 movzbl (%rdx),%edx
13bb: 88 10 mov %dl,(%rax)
while(n-- > 0)
13bd: 8b 45 dc mov -0x24(%rbp),%eax
13c0: 8d 50 ff lea -0x1(%rax),%edx
13c3: 89 55 dc mov %edx,-0x24(%rbp)
13c6: 85 c0 test %eax,%eax
13c8: 7f d6 jg 13a0 <memmove+0x29>
return vdst;
13ca: 48 8b 45 e8 mov -0x18(%rbp),%rax
}
13ce: c9 leaveq
13cf: c3 retq
00000000000013d0 <fork>:
mov $SYS_ ## name, %rax; \
mov %rcx, %r10 ;\
syscall ;\
ret
SYSCALL(fork)
13d0: 48 c7 c0 01 00 00 00 mov $0x1,%rax
13d7: 49 89 ca mov %rcx,%r10
13da: 0f 05 syscall
13dc: c3 retq
00000000000013dd <exit>:
SYSCALL(exit)
13dd: 48 c7 c0 02 00 00 00 mov $0x2,%rax
13e4: 49 89 ca mov %rcx,%r10
13e7: 0f 05 syscall
13e9: c3 retq
00000000000013ea <wait>:
SYSCALL(wait)
13ea: 48 c7 c0 03 00 00 00 mov $0x3,%rax
13f1: 49 89 ca mov %rcx,%r10
13f4: 0f 05 syscall
13f6: c3 retq
00000000000013f7 <pipe>:
SYSCALL(pipe)
13f7: 48 c7 c0 04 00 00 00 mov $0x4,%rax
13fe: 49 89 ca mov %rcx,%r10
1401: 0f 05 syscall
1403: c3 retq
0000000000001404 <read>:
SYSCALL(read)
1404: 48 c7 c0 05 00 00 00 mov $0x5,%rax
140b: 49 89 ca mov %rcx,%r10
140e: 0f 05 syscall
1410: c3 retq
0000000000001411 <write>:
SYSCALL(write)
1411: 48 c7 c0 10 00 00 00 mov $0x10,%rax
1418: 49 89 ca mov %rcx,%r10
141b: 0f 05 syscall
141d: c3 retq
000000000000141e <close>:
SYSCALL(close)
141e: 48 c7 c0 15 00 00 00 mov $0x15,%rax
1425: 49 89 ca mov %rcx,%r10
1428: 0f 05 syscall
142a: c3 retq
000000000000142b <kill>:
SYSCALL(kill)
142b: 48 c7 c0 06 00 00 00 mov $0x6,%rax
1432: 49 89 ca mov %rcx,%r10
1435: 0f 05 syscall
1437: c3 retq
0000000000001438 <exec>:
SYSCALL(exec)
1438: 48 c7 c0 07 00 00 00 mov $0x7,%rax
143f: 49 89 ca mov %rcx,%r10
1442: 0f 05 syscall
1444: c3 retq
0000000000001445 <open>:
SYSCALL(open)
1445: 48 c7 c0 0f 00 00 00 mov $0xf,%rax
144c: 49 89 ca mov %rcx,%r10
144f: 0f 05 syscall
1451: c3 retq
0000000000001452 <mknod>:
SYSCALL(mknod)
1452: 48 c7 c0 11 00 00 00 mov $0x11,%rax
1459: 49 89 ca mov %rcx,%r10
145c: 0f 05 syscall
145e: c3 retq
000000000000145f <unlink>:
SYSCALL(unlink)
145f: 48 c7 c0 12 00 00 00 mov $0x12,%rax
1466: 49 89 ca mov %rcx,%r10
1469: 0f 05 syscall
146b: c3 retq
000000000000146c <fstat>:
SYSCALL(fstat)
146c: 48 c7 c0 08 00 00 00 mov $0x8,%rax
1473: 49 89 ca mov %rcx,%r10
1476: 0f 05 syscall
1478: c3 retq
0000000000001479 <link>:
SYSCALL(link)
1479: 48 c7 c0 13 00 00 00 mov $0x13,%rax
1480: 49 89 ca mov %rcx,%r10
1483: 0f 05 syscall
1485: c3 retq
0000000000001486 <mkdir>:
SYSCALL(mkdir)
1486: 48 c7 c0 14 00 00 00 mov $0x14,%rax
148d: 49 89 ca mov %rcx,%r10
1490: 0f 05 syscall
1492: c3 retq
0000000000001493 <chdir>:
SYSCALL(chdir)
1493: 48 c7 c0 09 00 00 00 mov $0x9,%rax
149a: 49 89 ca mov %rcx,%r10
149d: 0f 05 syscall
149f: c3 retq
00000000000014a0 <dup>:
SYSCALL(dup)
14a0: 48 c7 c0 0a 00 00 00 mov $0xa,%rax
14a7: 49 89 ca mov %rcx,%r10
14aa: 0f 05 syscall
14ac: c3 retq
00000000000014ad <getpid>:
SYSCALL(getpid)
14ad: 48 c7 c0 0b 00 00 00 mov $0xb,%rax
14b4: 49 89 ca mov %rcx,%r10
14b7: 0f 05 syscall
14b9: c3 retq
00000000000014ba <sbrk>:
SYSCALL(sbrk)
14ba: 48 c7 c0 0c 00 00 00 mov $0xc,%rax
14c1: 49 89 ca mov %rcx,%r10
14c4: 0f 05 syscall
14c6: c3 retq
00000000000014c7 <sleep>:
SYSCALL(sleep)
14c7: 48 c7 c0 0d 00 00 00 mov $0xd,%rax
14ce: 49 89 ca mov %rcx,%r10
14d1: 0f 05 syscall
14d3: c3 retq
00000000000014d4 <uptime>:
SYSCALL(uptime)
14d4: 48 c7 c0 0e 00 00 00 mov $0xe,%rax
14db: 49 89 ca mov %rcx,%r10
14de: 0f 05 syscall
14e0: c3 retq
00000000000014e1 <dedup>:
SYSCALL(dedup)
14e1: 48 c7 c0 16 00 00 00 mov $0x16,%rax
14e8: 49 89 ca mov %rcx,%r10
14eb: 0f 05 syscall
14ed: c3 retq
00000000000014ee <freepages>:
SYSCALL(freepages)
14ee: 48 c7 c0 17 00 00 00 mov $0x17,%rax
14f5: 49 89 ca mov %rcx,%r10
14f8: 0f 05 syscall
14fa: c3 retq
00000000000014fb <putc>:
#include <stdarg.h>
static void
putc(int fd, char c)
{
14fb: f3 0f 1e fa endbr64
14ff: 55 push %rbp
1500: 48 89 e5 mov %rsp,%rbp
1503: 48 83 ec 10 sub $0x10,%rsp
1507: 89 7d fc mov %edi,-0x4(%rbp)
150a: 89 f0 mov %esi,%eax
150c: 88 45 f8 mov %al,-0x8(%rbp)
write(fd, &c, 1);
150f: 48 8d 4d f8 lea -0x8(%rbp),%rcx
1513: 8b 45 fc mov -0x4(%rbp),%eax
1516: ba 01 00 00 00 mov $0x1,%edx
151b: 48 89 ce mov %rcx,%rsi
151e: 89 c7 mov %eax,%edi
1520: 48 b8 11 14 00 00 00 movabs $0x1411,%rax
1527: 00 00 00
152a: ff d0 callq *%rax
}
152c: 90 nop
152d: c9 leaveq
152e: c3 retq
000000000000152f <print_x64>:
static char digits[] = "0123456789abcdef";
static void
print_x64(int fd, addr_t x)
{
152f: f3 0f 1e fa endbr64
1533: 55 push %rbp
1534: 48 89 e5 mov %rsp,%rbp
1537: 48 83 ec 20 sub $0x20,%rsp
153b: 89 7d ec mov %edi,-0x14(%rbp)
153e: 48 89 75 e0 mov %rsi,-0x20(%rbp)
int i;
for (i = 0; i < (sizeof(addr_t) * 2); i++, x <<= 4)
1542: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%rbp)
1549: eb 35 jmp 1580 <print_x64+0x51>
putc(fd, digits[x >> (sizeof(addr_t) * 8 - 4)]);
154b: 48 8b 45 e0 mov -0x20(%rbp),%rax
154f: 48 c1 e8 3c shr $0x3c,%rax
1553: 48 ba 40 21 00 00 00 movabs $0x2140,%rdx
155a: 00 00 00
155d: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax
1561: 0f be d0 movsbl %al,%edx
1564: 8b 45 ec mov -0x14(%rbp),%eax
1567: 89 d6 mov %edx,%esi
1569: 89 c7 mov %eax,%edi
156b: 48 b8 fb 14 00 00 00 movabs $0x14fb,%rax
1572: 00 00 00
1575: ff d0 callq *%rax
for (i = 0; i < (sizeof(addr_t) * 2); i++, x <<= 4)
1577: 83 45 fc 01 addl $0x1,-0x4(%rbp)
157b: 48 c1 65 e0 04 shlq $0x4,-0x20(%rbp)
1580: 8b 45 fc mov -0x4(%rbp),%eax
1583: 83 f8 0f cmp $0xf,%eax
1586: 76 c3 jbe 154b <print_x64+0x1c>
}
1588: 90 nop
1589: 90 nop
158a: c9 leaveq
158b: c3 retq
000000000000158c <print_x32>:
static void
print_x32(int fd, uint x)
{
158c: f3 0f 1e fa endbr64
1590: 55 push %rbp
1591: 48 89 e5 mov %rsp,%rbp
1594: 48 83 ec 20 sub $0x20,%rsp
1598: 89 7d ec mov %edi,-0x14(%rbp)
159b: 89 75 e8 mov %esi,-0x18(%rbp)
int i;
for (i = 0; i < (sizeof(uint) * 2); i++, x <<= 4)
159e: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%rbp)
15a5: eb 36 jmp 15dd <print_x32+0x51>
putc(fd, digits[x >> (sizeof(uint) * 8 - 4)]);
15a7: 8b 45 e8 mov -0x18(%rbp),%eax
15aa: c1 e8 1c shr $0x1c,%eax
15ad: 89 c2 mov %eax,%edx
15af: 48 b8 40 21 00 00 00 movabs $0x2140,%rax
15b6: 00 00 00
15b9: 89 d2 mov %edx,%edx
15bb: 0f b6 04 10 movzbl (%rax,%rdx,1),%eax
15bf: 0f be d0 movsbl %al,%edx
15c2: 8b 45 ec mov -0x14(%rbp),%eax
15c5: 89 d6 mov %edx,%esi
15c7: 89 c7 mov %eax,%edi
15c9: 48 b8 fb 14 00 00 00 movabs $0x14fb,%rax
15d0: 00 00 00
15d3: ff d0 callq *%rax
for (i = 0; i < (sizeof(uint) * 2); i++, x <<= 4)
15d5: 83 45 fc 01 addl $0x1,-0x4(%rbp)
15d9: c1 65 e8 04 shll $0x4,-0x18(%rbp)
15dd: 8b 45 fc mov -0x4(%rbp),%eax
15e0: 83 f8 07 cmp $0x7,%eax
15e3: 76 c2 jbe 15a7 <print_x32+0x1b>
}
15e5: 90 nop
15e6: 90 nop
15e7: c9 leaveq
15e8: c3 retq
00000000000015e9 <print_d>:
static void
print_d(int fd, int v)
{
15e9: f3 0f 1e fa endbr64
15ed: 55 push %rbp
15ee: 48 89 e5 mov %rsp,%rbp
15f1: 48 83 ec 30 sub $0x30,%rsp
15f5: 89 7d dc mov %edi,-0x24(%rbp)
15f8: 89 75 d8 mov %esi,-0x28(%rbp)
char buf[16];
int64 x = v;
15fb: 8b 45 d8 mov -0x28(%rbp),%eax
15fe: 48 98 cltq
1600: 48 89 45 f8 mov %rax,-0x8(%rbp)
if (v < 0)
1604: 83 7d d8 00 cmpl $0x0,-0x28(%rbp)
1608: 79 04 jns 160e <print_d+0x25>
x = -x;
160a: 48 f7 5d f8 negq -0x8(%rbp)
int i = 0;
160e: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%rbp)
do {
buf[i++] = digits[x % 10];
1615: 48 8b 4d f8 mov -0x8(%rbp),%rcx
1619: 48 ba 67 66 66 66 66 movabs $0x6666666666666667,%rdx
1620: 66 66 66
1623: 48 89 c8 mov %rcx,%rax
1626: 48 f7 ea imul %rdx
1629: 48 c1 fa 02 sar $0x2,%rdx
162d: 48 89 c8 mov %rcx,%rax
1630: 48 c1 f8 3f sar $0x3f,%rax
1634: 48 29 c2 sub %rax,%rdx
1637: 48 89 d0 mov %rdx,%rax
163a: 48 c1 e0 02 shl $0x2,%rax
163e: 48 01 d0 add %rdx,%rax
1641: 48 01 c0 add %rax,%rax
1644: 48 29 c1 sub %rax,%rcx
1647: 48 89 ca mov %rcx,%rdx
164a: 8b 45 f4 mov -0xc(%rbp),%eax
164d: 8d 48 01 lea 0x1(%rax),%ecx
1650: 89 4d f4 mov %ecx,-0xc(%rbp)
1653: 48 b9 40 21 00 00 00 movabs $0x2140,%rcx
165a: 00 00 00
165d: 0f b6 14 11 movzbl (%rcx,%rdx,1),%edx
1661: 48 98 cltq
1663: 88 54 05 e0 mov %dl,-0x20(%rbp,%rax,1)
x /= 10;
1667: 48 8b 4d f8 mov -0x8(%rbp),%rcx
166b: 48 ba 67 66 66 66 66 movabs $0x6666666666666667,%rdx
1672: 66 66 66
1675: 48 89 c8 mov %rcx,%rax
1678: 48 f7 ea imul %rdx
167b: 48 c1 fa 02 sar $0x2,%rdx
167f: 48 89 c8 mov %rcx,%rax
1682: 48 c1 f8 3f sar $0x3f,%rax
1686: 48 29 c2 sub %rax,%rdx
1689: 48 89 d0 mov %rdx,%rax
168c: 48 89 45 f8 mov %rax,-0x8(%rbp)
} while(x != 0);
1690: 48 83 7d f8 00 cmpq $0x0,-0x8(%rbp)
1695: 0f 85 7a ff ff ff jne 1615 <print_d+0x2c>
if (v < 0)
169b: 83 7d d8 00 cmpl $0x0,-0x28(%rbp)
169f: 79 32 jns 16d3 <print_d+0xea>
buf[i++] = '-';
16a1: 8b 45 f4 mov -0xc(%rbp),%eax
16a4: 8d 50 01 lea 0x1(%rax),%edx
16a7: 89 55 f4 mov %edx,-0xc(%rbp)
16aa: 48 98 cltq
16ac: c6 44 05 e0 2d movb $0x2d,-0x20(%rbp,%rax,1)
while (--i >= 0)
16b1: eb 20 jmp 16d3 <print_d+0xea>
putc(fd, buf[i]);
16b3: 8b 45 f4 mov -0xc(%rbp),%eax
16b6: 48 98 cltq
16b8: 0f b6 44 05 e0 movzbl -0x20(%rbp,%rax,1),%eax
16bd: 0f be d0 movsbl %al,%edx
16c0: 8b 45 dc mov -0x24(%rbp),%eax
16c3: 89 d6 mov %edx,%esi
16c5: 89 c7 mov %eax,%edi
16c7: 48 b8 fb 14 00 00 00 movabs $0x14fb,%rax
16ce: 00 00 00
16d1: ff d0 callq *%rax
while (--i >= 0)
16d3: 83 6d f4 01 subl $0x1,-0xc(%rbp)
16d7: 83 7d f4 00 cmpl $0x0,-0xc(%rbp)
16db: 79 d6 jns 16b3 <print_d+0xca>
}
16dd: 90 nop
16de: 90 nop
16df: c9 leaveq
16e0: c3 retq
00000000000016e1 <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, char *fmt, ...)
{
16e1: f3 0f 1e fa endbr64
16e5: 55 push %rbp
16e6: 48 89 e5 mov %rsp,%rbp
16e9: 48 81 ec f0 00 00 00 sub $0xf0,%rsp
16f0: 89 bd 1c ff ff ff mov %edi,-0xe4(%rbp)
16f6: 48 89 b5 10 ff ff ff mov %rsi,-0xf0(%rbp)
16fd: 48 89 95 60 ff ff ff mov %rdx,-0xa0(%rbp)
1704: 48 89 8d 68 ff ff ff mov %rcx,-0x98(%rbp)
170b: 4c 89 85 70 ff ff ff mov %r8,-0x90(%rbp)
1712: 4c 89 8d 78 ff ff ff mov %r9,-0x88(%rbp)
1719: 84 c0 test %al,%al
171b: 74 20 je 173d <printf+0x5c>
171d: 0f 29 45 80 movaps %xmm0,-0x80(%rbp)
1721: 0f 29 4d 90 movaps %xmm1,-0x70(%rbp)
1725: 0f 29 55 a0 movaps %xmm2,-0x60(%rbp)
1729: 0f 29 5d b0 movaps %xmm3,-0x50(%rbp)
172d: 0f 29 65 c0 movaps %xmm4,-0x40(%rbp)
1731: 0f 29 6d d0 movaps %xmm5,-0x30(%rbp)
1735: 0f 29 75 e0 movaps %xmm6,-0x20(%rbp)
1739: 0f 29 7d f0 movaps %xmm7,-0x10(%rbp)
va_list ap;
int i, c;
char *s;
va_start(ap, fmt);
173d: c7 85 20 ff ff ff 10 movl $0x10,-0xe0(%rbp)
1744: 00 00 00
1747: c7 85 24 ff ff ff 30 movl $0x30,-0xdc(%rbp)
174e: 00 00 00
1751: 48 8d 45 10 lea 0x10(%rbp),%rax
1755: 48 89 85 28 ff ff ff mov %rax,-0xd8(%rbp)
175c: 48 8d 85 50 ff ff ff lea -0xb0(%rbp),%rax
1763: 48 89 85 30 ff ff ff mov %rax,-0xd0(%rbp)
for (i = 0; (c = fmt[i] & 0xff) != 0; i++) {
176a: c7 85 4c ff ff ff 00 movl $0x0,-0xb4(%rbp)
1771: 00 00 00
1774: e9 41 03 00 00 jmpq 1aba <printf+0x3d9>
if (c != '%') {
1779: 83 bd 3c ff ff ff 25 cmpl $0x25,-0xc4(%rbp)
1780: 74 24 je 17a6 <printf+0xc5>
putc(fd, c);
1782: 8b 85 3c ff ff ff mov -0xc4(%rbp),%eax
1788: 0f be d0 movsbl %al,%edx
178b: 8b 85 1c ff ff ff mov -0xe4(%rbp),%eax
1791: 89 d6 mov %edx,%esi
1793: 89 c7 mov %eax,%edi
1795: 48 b8 fb 14 00 00 00 movabs $0x14fb,%rax
179c: 00 00 00
179f: ff d0 callq *%rax
continue;
17a1: e9 0d 03 00 00 jmpq 1ab3 <printf+0x3d2>
}
c = fmt[++i] & 0xff;
17a6: 83 85 4c ff ff ff 01 addl $0x1,-0xb4(%rbp)
17ad: 8b 85 4c ff ff ff mov -0xb4(%rbp),%eax
17b3: 48 63 d0 movslq %eax,%rdx
17b6: 48 8b 85 10 ff ff ff mov -0xf0(%rbp),%rax
17bd: 48 01 d0 add %rdx,%rax
17c0: 0f b6 00 movzbl (%rax),%eax
17c3: 0f be c0 movsbl %al,%eax
17c6: 25 ff 00 00 00 and $0xff,%eax
17cb: 89 85 3c ff ff ff mov %eax,-0xc4(%rbp)
if (c == 0)
17d1: 83 bd 3c ff ff ff 00 cmpl $0x0,-0xc4(%rbp)
17d8: 0f 84 0f 03 00 00 je 1aed <printf+0x40c>
break;
switch(c) {
17de: 83 bd 3c ff ff ff 25 cmpl $0x25,-0xc4(%rbp)
17e5: 0f 84 74 02 00 00 je 1a5f <printf+0x37e>
17eb: 83 bd 3c ff ff ff 25 cmpl $0x25,-0xc4(%rbp)
17f2: 0f 8c 82 02 00 00 jl 1a7a <printf+0x399>
17f8: 83 bd 3c ff ff ff 78 cmpl $0x78,-0xc4(%rbp)
17ff: 0f 8f 75 02 00 00 jg 1a7a <printf+0x399>
1805: 83 bd 3c ff ff ff 63 cmpl $0x63,-0xc4(%rbp)
180c: 0f 8c 68 02 00 00 jl 1a7a <printf+0x399>
1812: 8b 85 3c ff ff ff mov -0xc4(%rbp),%eax
1818: 83 e8 63 sub $0x63,%eax
181b: 83 f8 15 cmp $0x15,%eax
181e: 0f 87 56 02 00 00 ja 1a7a <printf+0x399>
1824: 89 c0 mov %eax,%eax
1826: 48 8d 14 c5 00 00 00 lea 0x0(,%rax,8),%rdx
182d: 00
182e: 48 b8 18 1e 00 00 00 movabs $0x1e18,%rax
1835: 00 00 00
1838: 48 01 d0 add %rdx,%rax
183b: 48 8b 00 mov (%rax),%rax
183e: 3e ff e0 notrack jmpq *%rax
case 'c':
putc(fd, va_arg(ap, int));
1841: 8b 85 20 ff ff ff mov -0xe0(%rbp),%eax
1847: 83 f8 2f cmp $0x2f,%eax
184a: 77 23 ja 186f <printf+0x18e>
184c: 48 8b 85 30 ff ff ff mov -0xd0(%rbp),%rax
1853: 8b 95 20 ff ff ff mov -0xe0(%rbp),%edx
1859: 89 d2 mov %edx,%edx
185b: 48 01 d0 add %rdx,%rax
185e: 8b 95 20 ff ff ff mov -0xe0(%rbp),%edx
1864: 83 c2 08 add $0x8,%edx
1867: 89 95 20 ff ff ff mov %edx,-0xe0(%rbp)
186d: eb 12 jmp 1881 <printf+0x1a0>
186f: 48 8b 85 28 ff ff ff mov -0xd8(%rbp),%rax
1876: 48 8d 50 08 lea 0x8(%rax),%rdx
187a: 48 89 95 28 ff ff ff mov %rdx,-0xd8(%rbp)
1881: 8b 00 mov (%rax),%eax
1883: 0f be d0 movsbl %al,%edx
1886: 8b 85 1c ff ff ff mov -0xe4(%rbp),%eax
188c: 89 d6 mov %edx,%esi
188e: 89 c7 mov %eax,%edi
1890: 48 b8 fb 14 00 00 00 movabs $0x14fb,%rax
1897: 00 00 00
189a: ff d0 callq *%rax
break;
189c: e9 12 02 00 00 jmpq 1ab3 <printf+0x3d2>
case 'd':
print_d(fd, va_arg(ap, int));
18a1: 8b 85 20 ff ff ff mov -0xe0(%rbp),%eax
18a7: 83 f8 2f cmp $0x2f,%eax
18aa: 77 23 ja 18cf <printf+0x1ee>
18ac: 48 8b 85 30 ff ff ff mov -0xd0(%rbp),%rax
18b3: 8b 95 20 ff ff ff mov -0xe0(%rbp),%edx
18b9: 89 d2 mov %edx,%edx
18bb: 48 01 d0 add %rdx,%rax
18be: 8b 95 20 ff ff ff mov -0xe0(%rbp),%edx
18c4: 83 c2 08 add $0x8,%edx
18c7: 89 95 20 ff ff ff mov %edx,-0xe0(%rbp)
18cd: eb 12 jmp 18e1 <printf+0x200>
18cf: 48 8b 85 28 ff ff ff mov -0xd8(%rbp),%rax
18d6: 48 8d 50 08 lea 0x8(%rax),%rdx
18da: 48 89 95 28 ff ff ff mov %rdx,-0xd8(%rbp)
18e1: 8b 10 mov (%rax),%edx
18e3: 8b 85 1c ff ff ff mov -0xe4(%rbp),%eax
18e9: 89 d6 mov %edx,%esi
18eb: 89 c7 mov %eax,%edi
18ed: 48 b8 e9 15 00 00 00 movabs $0x15e9,%rax
18f4: 00 00 00
18f7: ff d0 callq *%rax
break;
18f9: e9 b5 01 00 00 jmpq 1ab3 <printf+0x3d2>
case 'x':
print_x32(fd, va_arg(ap, uint));
18fe: 8b 85 20 ff ff ff mov -0xe0(%rbp),%eax
1904: 83 f8 2f cmp $0x2f,%eax
1907: 77 23 ja 192c <printf+0x24b>
1909: 48 8b 85 30 ff ff ff mov -0xd0(%rbp),%rax
1910: 8b 95 20 ff ff ff mov -0xe0(%rbp),%edx
1916: 89 d2 mov %edx,%edx
1918: 48 01 d0 add %rdx,%rax
191b: 8b 95 20 ff ff ff mov -0xe0(%rbp),%edx
1921: 83 c2 08 add $0x8,%edx
1924: 89 95 20 ff ff ff mov %edx,-0xe0(%rbp)
192a: eb 12 jmp 193e <printf+0x25d>
192c: 48 8b 85 28 ff ff ff mov -0xd8(%rbp),%rax
1933: 48 8d 50 08 lea 0x8(%rax),%rdx
1937: 48 89 95 28 ff ff ff mov %rdx,-0xd8(%rbp)
193e: 8b 10 mov (%rax),%edx
1940: 8b 85 1c ff ff ff mov -0xe4(%rbp),%eax
1946: 89 d6 mov %edx,%esi
1948: 89 c7 mov %eax,%edi
194a: 48 b8 8c 15 00 00 00 movabs $0x158c,%rax
1951: 00 00 00
1954: ff d0 callq *%rax
break;
1956: e9 58 01 00 00 jmpq 1ab3 <printf+0x3d2>
case 'p':
print_x64(fd, va_arg(ap, addr_t));
195b: 8b 85 20 ff ff ff mov -0xe0(%rbp),%eax
1961: 83 f8 2f cmp $0x2f,%eax
1964: 77 23 ja 1989 <printf+0x2a8>
1966: 48 8b 85 30 ff ff ff mov -0xd0(%rbp),%rax
196d: 8b 95 20 ff ff ff mov -0xe0(%rbp),%edx
1973: 89 d2 mov %edx,%edx
1975: 48 01 d0 add %rdx,%rax
1978: 8b 95 20 ff ff ff mov -0xe0(%rbp),%edx
197e: 83 c2 08 add $0x8,%edx
1981: 89 95 20 ff ff ff mov %edx,-0xe0(%rbp)
1987: eb 12 jmp 199b <printf+0x2ba>
1989: 48 8b 85 28 ff ff ff mov -0xd8(%rbp),%rax
1990: 48 8d 50 08 lea 0x8(%rax),%rdx
1994: 48 89 95 28 ff ff ff mov %rdx,-0xd8(%rbp)
199b: 48 8b 10 mov (%rax),%rdx
199e: 8b 85 1c ff ff ff mov -0xe4(%rbp),%eax
19a4: 48 89 d6 mov %rdx,%rsi
19a7: 89 c7 mov %eax,%edi
19a9: 48 b8 2f 15 00 00 00 movabs $0x152f,%rax
19b0: 00 00 00
19b3: ff d0 callq *%rax
break;
19b5: e9 f9 00 00 00 jmpq 1ab3 <printf+0x3d2>
case 's':
if ((s = va_arg(ap, char*)) == 0)
19ba: 8b 85 20 ff ff ff mov -0xe0(%rbp),%eax
19c0: 83 f8 2f cmp $0x2f,%eax
19c3: 77 23 ja 19e8 <printf+0x307>
19c5: 48 8b 85 30 ff ff ff mov -0xd0(%rbp),%rax
19cc: 8b 95 20 ff ff ff mov -0xe0(%rbp),%edx
19d2: 89 d2 mov %edx,%edx
19d4: 48 01 d0 add %rdx,%rax
19d7: 8b 95 20 ff ff ff mov -0xe0(%rbp),%edx
19dd: 83 c2 08 add $0x8,%edx
19e0: 89 95 20 ff ff ff mov %edx,-0xe0(%rbp)
19e6: eb 12 jmp 19fa <printf+0x319>
19e8: 48 8b 85 28 ff ff ff mov -0xd8(%rbp),%rax
19ef: 48 8d 50 08 lea 0x8(%rax),%rdx
19f3: 48 89 95 28 ff ff ff mov %rdx,-0xd8(%rbp)
19fa: 48 8b 00 mov (%rax),%rax
19fd: 48 89 85 40 ff ff ff mov %rax,-0xc0(%rbp)
1a04: 48 83 bd 40 ff ff ff cmpq $0x0,-0xc0(%rbp)
1a0b: 00
1a0c: 75 41 jne 1a4f <printf+0x36e>
s = "(null)";
1a0e: 48 b8 10 1e 00 00 00 movabs $0x1e10,%rax
1a15: 00 00 00
1a18: 48 89 85 40 ff ff ff mov %rax,-0xc0(%rbp)
while (*s)
1a1f: eb 2e jmp 1a4f <printf+0x36e>
putc(fd, *(s++));
1a21: 48 8b 85 40 ff ff ff mov -0xc0(%rbp),%rax
1a28: 48 8d 50 01 lea 0x1(%rax),%rdx
1a2c: 48 89 95 40 ff ff ff mov %rdx,-0xc0(%rbp)
1a33: 0f b6 00 movzbl (%rax),%eax
1a36: 0f be d0 movsbl %al,%edx
1a39: 8b 85 1c ff ff ff mov -0xe4(%rbp),%eax
1a3f: 89 d6 mov %edx,%esi
1a41: 89 c7 mov %eax,%edi
1a43: 48 b8 fb 14 00 00 00 movabs $0x14fb,%rax
1a4a: 00 00 00
1a4d: ff d0 callq *%rax
while (*s)
1a4f: 48 8b 85 40 ff ff ff mov -0xc0(%rbp),%rax
1a56: 0f b6 00 movzbl (%rax),%eax
1a59: 84 c0 test %al,%al
1a5b: 75 c4 jne 1a21 <printf+0x340>
break;
1a5d: eb 54 jmp 1ab3 <printf+0x3d2>
case '%':
putc(fd, '%');
1a5f: 8b 85 1c ff ff ff mov -0xe4(%rbp),%eax
1a65: be 25 00 00 00 mov $0x25,%esi
1a6a: 89 c7 mov %eax,%edi
1a6c: 48 b8 fb 14 00 00 00 movabs $0x14fb,%rax
1a73: 00 00 00
1a76: ff d0 callq *%rax
break;
1a78: eb 39 jmp 1ab3 <printf+0x3d2>
default:
// Print unknown % sequence to draw attention.
putc(fd, '%');
1a7a: 8b 85 1c ff ff ff mov -0xe4(%rbp),%eax
1a80: be 25 00 00 00 mov $0x25,%esi
1a85: 89 c7 mov %eax,%edi
1a87: 48 b8 fb 14 00 00 00 movabs $0x14fb,%rax
1a8e: 00 00 00
1a91: ff d0 callq *%rax
putc(fd, c);
1a93: 8b 85 3c ff ff ff mov -0xc4(%rbp),%eax
1a99: 0f be d0 movsbl %al,%edx
1a9c: 8b 85 1c ff ff ff mov -0xe4(%rbp),%eax
1aa2: 89 d6 mov %edx,%esi
1aa4: 89 c7 mov %eax,%edi
1aa6: 48 b8 fb 14 00 00 00 movabs $0x14fb,%rax
1aad: 00 00 00
1ab0: ff d0 callq *%rax
break;
1ab2: 90 nop
for (i = 0; (c = fmt[i] & 0xff) != 0; i++) {
1ab3: 83 85 4c ff ff ff 01 addl $0x1,-0xb4(%rbp)
1aba: 8b 85 4c ff ff ff mov -0xb4(%rbp),%eax
1ac0: 48 63 d0 movslq %eax,%rdx
1ac3: 48 8b 85 10 ff ff ff mov -0xf0(%rbp),%rax
1aca: 48 01 d0 add %rdx,%rax
1acd: 0f b6 00 movzbl (%rax),%eax
1ad0: 0f be c0 movsbl %al,%eax
1ad3: 25 ff 00 00 00 and $0xff,%eax
1ad8: 89 85 3c ff ff ff mov %eax,-0xc4(%rbp)
1ade: 83 bd 3c ff ff ff 00 cmpl $0x0,-0xc4(%rbp)
1ae5: 0f 85 8e fc ff ff jne 1779 <printf+0x98>
}
}
}
1aeb: eb 01 jmp 1aee <printf+0x40d>
break;
1aed: 90 nop
}
1aee: 90 nop
1aef: c9 leaveq
1af0: c3 retq
0000000000001af1 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
1af1: f3 0f 1e fa endbr64
1af5: 55 push %rbp
1af6: 48 89 e5 mov %rsp,%rbp
1af9: 48 83 ec 18 sub $0x18,%rsp
1afd: 48 89 7d e8 mov %rdi,-0x18(%rbp)
Header *bp, *p;
bp = (Header*)ap - 1;
1b01: 48 8b 45 e8 mov -0x18(%rbp),%rax
1b05: 48 83 e8 10 sub $0x10,%rax
1b09: 48 89 45 f0 mov %rax,-0x10(%rbp)
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
1b0d: 48 b8 70 21 00 00 00 movabs $0x2170,%rax
1b14: 00 00 00
1b17: 48 8b 00 mov (%rax),%rax
1b1a: 48 89 45 f8 mov %rax,-0x8(%rbp)
1b1e: eb 2f jmp 1b4f <free+0x5e>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
1b20: 48 8b 45 f8 mov -0x8(%rbp),%rax
1b24: 48 8b 00 mov (%rax),%rax
1b27: 48 39 45 f8 cmp %rax,-0x8(%rbp)
1b2b: 72 17 jb 1b44 <free+0x53>
1b2d: 48 8b 45 f0 mov -0x10(%rbp),%rax
1b31: 48 3b 45 f8 cmp -0x8(%rbp),%rax
1b35: 77 2f ja 1b66 <free+0x75>
1b37: 48 8b 45 f8 mov -0x8(%rbp),%rax
1b3b: 48 8b 00 mov (%rax),%rax
1b3e: 48 39 45 f0 cmp %rax,-0x10(%rbp)
1b42: 72 22 jb 1b66 <free+0x75>
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
1b44: 48 8b 45 f8 mov -0x8(%rbp),%rax
1b48: 48 8b 00 mov (%rax),%rax
1b4b: 48 89 45 f8 mov %rax,-0x8(%rbp)
1b4f: 48 8b 45 f0 mov -0x10(%rbp),%rax
1b53: 48 3b 45 f8 cmp -0x8(%rbp),%rax
1b57: 76 c7 jbe 1b20 <free+0x2f>
1b59: 48 8b 45 f8 mov -0x8(%rbp),%rax
1b5d: 48 8b 00 mov (%rax),%rax
1b60: 48 39 45 f0 cmp %rax,-0x10(%rbp)
1b64: 73 ba jae 1b20 <free+0x2f>
break;
if(bp + bp->s.size == p->s.ptr){
1b66: 48 8b 45 f0 mov -0x10(%rbp),%rax
1b6a: 8b 40 08 mov 0x8(%rax),%eax
1b6d: 89 c0 mov %eax,%eax
1b6f: 48 c1 e0 04 shl $0x4,%rax
1b73: 48 89 c2 mov %rax,%rdx
1b76: 48 8b 45 f0 mov -0x10(%rbp),%rax
1b7a: 48 01 c2 add %rax,%rdx
1b7d: 48 8b 45 f8 mov -0x8(%rbp),%rax
1b81: 48 8b 00 mov (%rax),%rax
1b84: 48 39 c2 cmp %rax,%rdx
1b87: 75 2d jne 1bb6 <free+0xc5>
bp->s.size += p->s.ptr->s.size;
1b89: 48 8b 45 f0 mov -0x10(%rbp),%rax
1b8d: 8b 50 08 mov 0x8(%rax),%edx
1b90: 48 8b 45 f8 mov -0x8(%rbp),%rax
1b94: 48 8b 00 mov (%rax),%rax
1b97: 8b 40 08 mov 0x8(%rax),%eax
1b9a: 01 c2 add %eax,%edx
1b9c: 48 8b 45 f0 mov -0x10(%rbp),%rax
1ba0: 89 50 08 mov %edx,0x8(%rax)
bp->s.ptr = p->s.ptr->s.ptr;
1ba3: 48 8b 45 f8 mov -0x8(%rbp),%rax
1ba7: 48 8b 00 mov (%rax),%rax
1baa: 48 8b 10 mov (%rax),%rdx
1bad: 48 8b 45 f0 mov -0x10(%rbp),%rax
1bb1: 48 89 10 mov %rdx,(%rax)
1bb4: eb 0e jmp 1bc4 <free+0xd3>
} else
bp->s.ptr = p->s.ptr;
1bb6: 48 8b 45 f8 mov -0x8(%rbp),%rax
1bba: 48 8b 10 mov (%rax),%rdx
1bbd: 48 8b 45 f0 mov -0x10(%rbp),%rax
1bc1: 48 89 10 mov %rdx,(%rax)
if(p + p->s.size == bp){
1bc4: 48 8b 45 f8 mov -0x8(%rbp),%rax
1bc8: 8b 40 08 mov 0x8(%rax),%eax
1bcb: 89 c0 mov %eax,%eax
1bcd: 48 c1 e0 04 shl $0x4,%rax
1bd1: 48 89 c2 mov %rax,%rdx
1bd4: 48 8b 45 f8 mov -0x8(%rbp),%rax
1bd8: 48 01 d0 add %rdx,%rax
1bdb: 48 39 45 f0 cmp %rax,-0x10(%rbp)
1bdf: 75 27 jne 1c08 <free+0x117>
p->s.size += bp->s.size;
1be1: 48 8b 45 f8 mov -0x8(%rbp),%rax
1be5: 8b 50 08 mov 0x8(%rax),%edx
1be8: 48 8b 45 f0 mov -0x10(%rbp),%rax
1bec: 8b 40 08 mov 0x8(%rax),%eax
1bef: 01 c2 add %eax,%edx
1bf1: 48 8b 45 f8 mov -0x8(%rbp),%rax
1bf5: 89 50 08 mov %edx,0x8(%rax)
p->s.ptr = bp->s.ptr;
1bf8: 48 8b 45 f0 mov -0x10(%rbp),%rax
1bfc: 48 8b 10 mov (%rax),%rdx
1bff: 48 8b 45 f8 mov -0x8(%rbp),%rax
1c03: 48 89 10 mov %rdx,(%rax)
1c06: eb 0b jmp 1c13 <free+0x122>
} else
p->s.ptr = bp;
1c08: 48 8b 45 f8 mov -0x8(%rbp),%rax
1c0c: 48 8b 55 f0 mov -0x10(%rbp),%rdx
1c10: 48 89 10 mov %rdx,(%rax)
freep = p;
1c13: 48 ba 70 21 00 00 00 movabs $0x2170,%rdx
1c1a: 00 00 00
1c1d: 48 8b 45 f8 mov -0x8(%rbp),%rax
1c21: 48 89 02 mov %rax,(%rdx)
}
1c24: 90 nop
1c25: c9 leaveq
1c26: c3 retq
0000000000001c27 <morecore>:
static Header*
morecore(uint nu)
{
1c27: f3 0f 1e fa endbr64
1c2b: 55 push %rbp
1c2c: 48 89 e5 mov %rsp,%rbp
1c2f: 48 83 ec 20 sub $0x20,%rsp
1c33: 89 7d ec mov %edi,-0x14(%rbp)
char *p;
Header *hp;
if(nu < 4096)
1c36: 81 7d ec ff 0f 00 00 cmpl $0xfff,-0x14(%rbp)
1c3d: 77 07 ja 1c46 <morecore+0x1f>
nu = 4096;
1c3f: c7 45 ec 00 10 00 00 movl $0x1000,-0x14(%rbp)
p = sbrk(nu * sizeof(Header));
1c46: 8b 45 ec mov -0x14(%rbp),%eax
1c49: 48 c1 e0 04 shl $0x4,%rax
1c4d: 48 89 c7 mov %rax,%rdi
1c50: 48 b8 ba 14 00 00 00 movabs $0x14ba,%rax
1c57: 00 00 00
1c5a: ff d0 callq *%rax
1c5c: 48 89 45 f8 mov %rax,-0x8(%rbp)
if(p == (char*)-1)
1c60: 48 83 7d f8 ff cmpq $0xffffffffffffffff,-0x8(%rbp)
1c65: 75 07 jne 1c6e <morecore+0x47>
return 0;
1c67: b8 00 00 00 00 mov $0x0,%eax
1c6c: eb 36 jmp 1ca4 <morecore+0x7d>
hp = (Header*)p;
1c6e: 48 8b 45 f8 mov -0x8(%rbp),%rax
1c72: 48 89 45 f0 mov %rax,-0x10(%rbp)
hp->s.size = nu;
1c76: 48 8b 45 f0 mov -0x10(%rbp),%rax
1c7a: 8b 55 ec mov -0x14(%rbp),%edx
1c7d: 89 50 08 mov %edx,0x8(%rax)
free((void*)(hp + 1));
1c80: 48 8b 45 f0 mov -0x10(%rbp),%rax
1c84: 48 83 c0 10 add $0x10,%rax
1c88: 48 89 c7 mov %rax,%rdi
1c8b: 48 b8 f1 1a 00 00 00 movabs $0x1af1,%rax
1c92: 00 00 00
1c95: ff d0 callq *%rax
return freep;
1c97: 48 b8 70 21 00 00 00 movabs $0x2170,%rax
1c9e: 00 00 00
1ca1: 48 8b 00 mov (%rax),%rax
}
1ca4: c9 leaveq
1ca5: c3 retq
0000000000001ca6 <malloc>:
void*
malloc(uint nbytes)
{
1ca6: f3 0f 1e fa endbr64
1caa: 55 push %rbp
1cab: 48 89 e5 mov %rsp,%rbp
1cae: 48 83 ec 30 sub $0x30,%rsp
1cb2: 89 7d dc mov %edi,-0x24(%rbp)
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
1cb5: 8b 45 dc mov -0x24(%rbp),%eax
1cb8: 48 83 c0 0f add $0xf,%rax
1cbc: 48 c1 e8 04 shr $0x4,%rax
1cc0: 83 c0 01 add $0x1,%eax
1cc3: 89 45 ec mov %eax,-0x14(%rbp)
if((prevp = freep) == 0){
1cc6: 48 b8 70 21 00 00 00 movabs $0x2170,%rax
1ccd: 00 00 00
1cd0: 48 8b 00 mov (%rax),%rax
1cd3: 48 89 45 f0 mov %rax,-0x10(%rbp)
1cd7: 48 83 7d f0 00 cmpq $0x0,-0x10(%rbp)
1cdc: 75 4a jne 1d28 <malloc+0x82>
base.s.ptr = freep = prevp = &base;
1cde: 48 b8 60 21 00 00 00 movabs $0x2160,%rax
1ce5: 00 00 00
1ce8: 48 89 45 f0 mov %rax,-0x10(%rbp)
1cec: 48 ba 70 21 00 00 00 movabs $0x2170,%rdx
1cf3: 00 00 00
1cf6: 48 8b 45 f0 mov -0x10(%rbp),%rax
1cfa: 48 89 02 mov %rax,(%rdx)
1cfd: 48 b8 70 21 00 00 00 movabs $0x2170,%rax
1d04: 00 00 00
1d07: 48 8b 00 mov (%rax),%rax
1d0a: 48 ba 60 21 00 00 00 movabs $0x2160,%rdx
1d11: 00 00 00
1d14: 48 89 02 mov %rax,(%rdx)
base.s.size = 0;
1d17: 48 b8 60 21 00 00 00 movabs $0x2160,%rax
1d1e: 00 00 00
1d21: c7 40 08 00 00 00 00 movl $0x0,0x8(%rax)
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
1d28: 48 8b 45 f0 mov -0x10(%rbp),%rax
1d2c: 48 8b 00 mov (%rax),%rax
1d2f: 48 89 45 f8 mov %rax,-0x8(%rbp)
if(p->s.size >= nunits){
1d33: 48 8b 45 f8 mov -0x8(%rbp),%rax
1d37: 8b 40 08 mov 0x8(%rax),%eax
1d3a: 39 45 ec cmp %eax,-0x14(%rbp)
1d3d: 77 65 ja 1da4 <malloc+0xfe>
if(p->s.size == nunits)
1d3f: 48 8b 45 f8 mov -0x8(%rbp),%rax
1d43: 8b 40 08 mov 0x8(%rax),%eax
1d46: 39 45 ec cmp %eax,-0x14(%rbp)
1d49: 75 10 jne 1d5b <malloc+0xb5>
prevp->s.ptr = p->s.ptr;
1d4b: 48 8b 45 f8 mov -0x8(%rbp),%rax
1d4f: 48 8b 10 mov (%rax),%rdx
1d52: 48 8b 45 f0 mov -0x10(%rbp),%rax
1d56: 48 89 10 mov %rdx,(%rax)
1d59: eb 2e jmp 1d89 <malloc+0xe3>
else {
p->s.size -= nunits;
1d5b: 48 8b 45 f8 mov -0x8(%rbp),%rax
1d5f: 8b 40 08 mov 0x8(%rax),%eax
1d62: 2b 45 ec sub -0x14(%rbp),%eax
1d65: 89 c2 mov %eax,%edx
1d67: 48 8b 45 f8 mov -0x8(%rbp),%rax
1d6b: 89 50 08 mov %edx,0x8(%rax)
p += p->s.size;
1d6e: 48 8b 45 f8 mov -0x8(%rbp),%rax
1d72: 8b 40 08 mov 0x8(%rax),%eax
1d75: 89 c0 mov %eax,%eax
1d77: 48 c1 e0 04 shl $0x4,%rax
1d7b: 48 01 45 f8 add %rax,-0x8(%rbp)
p->s.size = nunits;
1d7f: 48 8b 45 f8 mov -0x8(%rbp),%rax
1d83: 8b 55 ec mov -0x14(%rbp),%edx
1d86: 89 50 08 mov %edx,0x8(%rax)
}
freep = prevp;
1d89: 48 ba 70 21 00 00 00 movabs $0x2170,%rdx
1d90: 00 00 00
1d93: 48 8b 45 f0 mov -0x10(%rbp),%rax
1d97: 48 89 02 mov %rax,(%rdx)
return (void*)(p + 1);
1d9a: 48 8b 45 f8 mov -0x8(%rbp),%rax
1d9e: 48 83 c0 10 add $0x10,%rax
1da2: eb 4e jmp 1df2 <malloc+0x14c>
}
if(p == freep)
1da4: 48 b8 70 21 00 00 00 movabs $0x2170,%rax
1dab: 00 00 00
1dae: 48 8b 00 mov (%rax),%rax
1db1: 48 39 45 f8 cmp %rax,-0x8(%rbp)
1db5: 75 23 jne 1dda <malloc+0x134>
if((p = morecore(nunits)) == 0)
1db7: 8b 45 ec mov -0x14(%rbp),%eax
1dba: 89 c7 mov %eax,%edi
1dbc: 48 b8 27 1c 00 00 00 movabs $0x1c27,%rax
1dc3: 00 00 00
1dc6: ff d0 callq *%rax
1dc8: 48 89 45 f8 mov %rax,-0x8(%rbp)
1dcc: 48 83 7d f8 00 cmpq $0x0,-0x8(%rbp)
1dd1: 75 07 jne 1dda <malloc+0x134>
return 0;
1dd3: b8 00 00 00 00 mov $0x0,%eax
1dd8: eb 18 jmp 1df2 <malloc+0x14c>
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
1dda: 48 8b 45 f8 mov -0x8(%rbp),%rax
1dde: 48 89 45 f0 mov %rax,-0x10(%rbp)
1de2: 48 8b 45 f8 mov -0x8(%rbp),%rax
1de6: 48 8b 00 mov (%rax),%rax
1de9: 48 89 45 f8 mov %rax,-0x8(%rbp)
if(p->s.size >= nunits){
1ded: e9 41 ff ff ff jmpq 1d33 <malloc+0x8d>
}
}
1df2: c9 leaveq
1df3: c3 retq
|
||||
TheStack | 1d2da2e50f76c98dbf06b6763ea194bca9ebcd68 | Assemblycode:Assembly | {"size": 4232, "ext": "asm", "max_stars_repo_path": "kernel/compress/lz4.asm", "max_stars_repo_name": "TheMachine02/Sorcery", "max_stars_repo_stars_event_min_datetime": "2020-05-27T13:20:35.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-10T01:19:54.000Z", "max_issues_repo_path": "kernel/compress/lz4.asm", "max_issues_repo_name": "TheMachine02/Sorcery", "max_issues_repo_issues_event_min_datetime": "2020-06-12T20:53:03.000Z", "max_issues_repo_issues_event_max_datetime": "2021-03-21T23:11:44.000Z", "max_forks_repo_path": "kernel/compress/lz4.asm", "max_forks_repo_name": "TheMachine02/Sorcery", "max_forks_repo_forks_event_min_datetime": "2020-06-11T06:27:03.000Z", "max_forks_repo_forks_event_max_datetime": "2021-05-29T17:06:24.000Z"} | {"max_stars_count": 14, "max_issues_count": 10, "max_forks_count": 84, "avg_line_length": 20.643902439, "max_line_length": 95, "alphanum_fraction": 0.6784026465} | ;
; LZ4 decompression algorithm - Copyright (c) 2011-2015, Yann Collet
; All rights reserved.
; LZ4 implementation for z80 and compatible processors - Copyright (c) 2013-2015 Piotr Drapich
; All rights reserved.
; Heavily modified and ported to ez80 by TheMachine02
;
; Redistribution and use in source and binary forms, with or without modification,
; are permitted provided that the following conditions are met:
;
; * Redistributions of source code must retain the above copyright notice, this
; list of conditions and the following disclaimer.
;
; * Redistributions in binary form must reproduce the above copyright notice, this
; list of conditions and the following disclaimer in the documentation and/or
; other materials provided with the distribution.
;
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
; ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
; (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
; ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
define LZ4_VERSION4 4
define LZ4_VERSION3 3
define LZ4_VERSION2 2
lz4:
.decompress:
; hl : src, de : dest
; check the magic number
ld bc, 1
ld a, (hl)
inc hl
sub a, 2
jr z, .version_2_legacy
dec a
jr z, .version_3_legacy
dec a
jr z, .version_4
.version_not_supported:
ld a,2
ret
.version_4:
; check version 1.41 magic
ld a, (hl)
cp a, $22
jr nz, .version_not_supported
inc hl
ld a, (hl)
cp a, $4D
jr nz, .version_not_supported
inc hl
ld a, (hl)
cp a, $18
jr nz, .version_not_supported
inc hl
; parse version 1.41 spec header
ld a, (hl)
; check version bits for version 01
add a, a
jr c, .version_not_supported
jp p, .version_not_supported
inc hl
; is content size set?
bit 4, a
jr z, .no_content_size
; skip content size
ld c, 9
.no_content_size:
bit 1, a
jr z, .no_preset_dictionary
; skip dictionary id
inc c
inc c
inc c
inc c
.no_preset_dictionary:
ld a, (hl)
; strip reserved bits (and $70)
and $40
jr z, .version_not_supported
inc hl
; skip header checksum
jr .start_decompression
.version_3_legacy:
ld c, 9
.version_2_legacy:
ld a, (hl)
cp $21
jr nz, .version_not_supported
inc hl
ld a, (hl)
cp $4c
jr nz, .version_not_supported
inc hl
ld a, (hl)
cp $18
jr nz, .version_not_supported
.start_decompression:
add hl, bc
; load low 24 bit of compressed block size to bc
ld bc, (hl)
inc hl
inc hl
inc hl
inc hl
.decompress_raw:
if CONFIG_USE_LZ4_STRICT = 1
push hl
add hl, bc
ex (sp), hl
end if
ld bc, 0
jr .get_token
.matches:
if CONFIG_USE_LZ4_STRICT = 1
push bc
inc.s bc
ld c, (hl)
inc hl
ld b, (hl)
inc hl
end if
ld a, iyl
and a, $0F
add a, 4
push de
ex de, hl
sbc hl, bc
ex de, hl
ld b, 0
cp a, $13
jr nz, .matches_copy
.matches_lisc:
ld c, (hl)
inc hl
add a, c
jr nc, $+3
inc b
inc c
jr z, .matches_lisc
.matches_copy:
ld c, a
ex (sp), hl
ex de, hl
ldir
pop hl
.get_token:
ld a, (hl)
inc hl
ld iyl, a
.literals:
; unpack 4 high bits to get the length of literal
and a, $F0
jr z, .literals_null
rlca
rlca
rlca
rlca
; copy literals
cp a, $0F
jr nz, .literals_copy
.literals_lisc:
ld c, (hl)
inc hl
add a, c
jr nc, $+3
inc b
inc c
jr z, .literals_lisc
.literals_copy:
ld c, a
ldir
.literals_null:
if CONFIG_USE_LZ4_STRICT = 1
; check for end of compressed data
pop bc
or a, a
sbc hl, bc
add hl, bc
jr nz, .matches
else
ld c, (hl)
inc hl
ld b, (hl)
inc hl
ld a, c
or a, b
jr nz, .matches
end if
.decompress_success:
ret
|
||||
TheStack | da0dac616bd8b8cb48e6c4ec3ead786d95049345 | Assemblycode:Assembly | {"size": 5019, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_21829_1739.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_21829_1739.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_21829_1739.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 44.4159292035, "max_line_length": 2999, "alphanum_fraction": 0.6571030086} | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %rax
push %rbp
push %rdx
push %rsi
lea addresses_D_ht+0x2bd0, %r11
nop
nop
nop
nop
add %r13, %r13
movw $0x6162, (%r11)
cmp %r14, %r14
lea addresses_UC_ht+0xf970, %r11
nop
nop
nop
nop
add $3165, %r14
mov (%r11), %ebp
xor $5280, %rbp
lea addresses_UC_ht+0x12990, %rdx
nop
nop
nop
nop
nop
inc %rbp
movups (%rdx), %xmm0
vpextrq $1, %xmm0, %r11
nop
sub $49065, %r11
lea addresses_WT_ht+0x1bc50, %r11
nop
nop
nop
nop
nop
add $12546, %rsi
mov (%r11), %r14d
nop
nop
nop
nop
dec %rax
lea addresses_UC_ht+0x1bb1, %rax
nop
nop
nop
nop
nop
add %r14, %r14
movb $0x61, (%rax)
nop
nop
nop
nop
xor %r11, %r11
pop %rsi
pop %rdx
pop %rbp
pop %rax
pop %r14
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r15
push %r9
push %rax
push %rbp
push %rcx
push %rsi
// Faulty Load
mov $0x3b298700000006d0, %rsi
add %r15, %r15
movntdqa (%rsi), %xmm5
vpextrq $0, %xmm5, %r9
lea oracles, %rbp
and $0xff, %r9
shlq $12, %r9
mov (%rbp,%r9,1), %r9
pop %rsi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r15
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_NC', 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': True, 'AVXalign': False, 'size': 16, 'type': 'addresses_NC', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 2, 'type': 'addresses_D_ht', 'congruent': 6}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC_ht', 'congruent': 5}}
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_UC_ht', 'congruent': 3}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WT_ht', 'congruent': 7}}
{'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 0}, 'OP': 'STOR'}
{'00': 21829}
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 00 00 00 00 00 00 00 00 00 00
*/
|
||||
TheStack | 08c395ba731ccefa1050bebc6b75ba269a00a423 | Assemblycode:Assembly | {"size": 626, "ext": "asm", "max_stars_repo_path": "oeis/066/A066370.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/066/A066370.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/066/A066370.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 44.7142857143, "max_line_length": 491, "alphanum_fraction": 0.8626198083} | ; A066370: Quadruply triangular numbers.
; 0,1,231,26796,1186570,26357430,359026206,3413156131,24666759216,143717956515,703974775735,2989908659661,11270904497931,38398515291136,119929709686710,347357071281165,941718655098991,2408309883851256,5847191602173306,13551450210950905,30118700956190595,64449908476890321,133239813061852981,266912035718960226,519469758462957225,984487646463220900,1820552513270052276,3290987218115029356,5824817388998022646,10108859832104595045,17224773730019926455,28850233887208591606,47550449654348608506
add $0,1
bin $0,2
add $0,1
bin $0,2
add $0,1
bin $0,2
mov $1,$0
pow $0,2
add $0,$1
div $0,2
|
||||
TheStack | ec272c5d641db4adf4ac5276927a8522ba64f921 | Assemblycode:Assembly | {"size": 247, "ext": "asm", "max_stars_repo_path": "programs/oeis/106/A106832.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/106/A106832.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/106/A106832.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 27.4444444444, "max_line_length": 157, "alphanum_fraction": 0.6437246964} | ; A106832: 4*n-2 and 6*n alternatively.
; 2,6,6,12,10,18,14,24,18,30,22,36,26,42,30,48,34,54,38,60,42,66,46,72,50,78,54,84,58,90,62,96,66,102,70,108,74,114,78,120,82,126,86,132,90,138,94,144,98,150
mov $1,$0
mod $0,2
add $0,2
mul $1,$0
add $0,$1
|
||||
TheStack | c43f69ad753c56d1e3476b92bed8fb5906c40ef7 | Assemblycode:Assembly | {"size": 4466, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0.log_21829_884.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0.log_21829_884.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0.log_21829_884.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 54.4634146341, "max_line_length": 2999, "alphanum_fraction": 0.6587550381} | .global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r9
push %rax
push %rbx
push %rdx
push %rsi
// Store
lea addresses_normal+0x6ab5, %r13
nop
nop
nop
nop
dec %r9
movl $0x51525354, (%r13)
nop
cmp %r13, %r13
// Store
lea addresses_WC+0x22b5, %rax
nop
nop
cmp %r11, %r11
movl $0x51525354, (%rax)
nop
nop
nop
nop
nop
add %r9, %r9
// Store
lea addresses_UC+0x1c3b5, %r11
dec %r9
mov $0x5152535455565758, %rax
movq %rax, (%r11)
nop
nop
nop
nop
add %rbx, %rbx
// Faulty Load
lea addresses_WC+0x22b5, %r11
nop
sub $15170, %rdx
movups (%r11), %xmm7
vpextrq $0, %xmm7, %r13
lea oracles, %rbx
and $0xff, %r13
shlq $12, %r13
mov (%rbx,%r13,1), %r13
pop %rsi
pop %rdx
pop %rbx
pop %rax
pop %r9
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_normal', 'AVXalign': False, 'size': 4}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WC', 'AVXalign': False, 'size': 4}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_UC', 'AVXalign': False, 'size': 8}}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WC', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'54': 21829}
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 54 54 54 54 54 54 54 54 54 54 54 54 54 54
*/
|
||||
TheStack | 465d27659fd0cd4df64484b7e76ade40dd2edab9 | Assemblycode:Assembly | {"size": 917, "ext": "asm", "max_stars_repo_path": "_build/dispatcher/jmp_ippsGFpExp_63add795.asm", "max_stars_repo_name": "zyktrcn/ippcp", "max_stars_repo_stars_event_min_datetime": "2021-10-04T10:21:54.000Z", "max_stars_repo_stars_event_max_datetime": "2021-10-04T10:21:54.000Z", "max_issues_repo_path": "_build/dispatcher/jmp_ippsGFpExp_63add795.asm", "max_issues_repo_name": "zyktrcn/ippcp", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "_build/dispatcher/jmp_ippsGFpExp_63add795.asm", "max_forks_repo_name": "zyktrcn/ippcp", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.5128205128, "max_line_length": 68, "alphanum_fraction": 0.760087241} | extern m7_ippsGFpExp:function
extern n8_ippsGFpExp:function
extern y8_ippsGFpExp:function
extern e9_ippsGFpExp:function
extern l9_ippsGFpExp:function
extern n0_ippsGFpExp:function
extern k0_ippsGFpExp:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
segment .data
align 8
dq .Lin_ippsGFpExp
.Larraddr_ippsGFpExp:
dq m7_ippsGFpExp
dq n8_ippsGFpExp
dq y8_ippsGFpExp
dq e9_ippsGFpExp
dq l9_ippsGFpExp
dq n0_ippsGFpExp
dq k0_ippsGFpExp
segment .text
global ippsGFpExp:function (ippsGFpExp.LEndippsGFpExp - ippsGFpExp)
.Lin_ippsGFpExp:
db 0xf3, 0x0f, 0x1e, 0xfa
call ippcpSafeInit wrt ..plt
align 16
ippsGFpExp:
db 0xf3, 0x0f, 0x1e, 0xfa
mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc]
movsxd rax, dword [rax]
lea r11, [rel .Larraddr_ippsGFpExp]
mov r11, qword [r11+rax*8]
jmp r11
.LEndippsGFpExp:
|
||||
TheStack | 5d1eec3f93f5658588ee2b90d6f0d94499455afb | Assemblycode:Assembly | {"size": 427, "ext": "asm", "max_stars_repo_path": "oeis/122/A122196.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/122/A122196.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/122/A122196.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 28.4666666667, "max_line_length": 231, "alphanum_fraction": 0.5925058548} | ; A122196: Fractal sequence: count down by 2's from successive integers.
; Submitted by Jon Maiga
; 1,2,3,1,4,2,5,3,1,6,4,2,7,5,3,1,8,6,4,2,9,7,5,3,1,10,8,6,4,2,11,9,7,5,3,1,12,10,8,6,4,2,13,11,9,7,5,3,1,14,12,10,8,6,4,2,15,13,11,9,7,5,3,1,16,14,12,10,8,6,4,2,17,15,13,11,9,7,5,3,1,18,16,14,12,10,8,6,4,2,19,17,15,13,11,9,7,5,3,1
mov $3,1
lpb $0
mov $2,$3
mul $2,$0
add $3,2
trn $0,$3
lpe
mod $2,$3
mov $0,$2
add $0,1
|
||||
TheStack | bd5447638fb429ab7e43e46123c3795b5c5e24b3 | Assemblycode:Assembly | {"size": 296, "ext": "asm", "max_stars_repo_path": "ExamplePrograms/MemSet.asm", "max_stars_repo_name": "douaumont/i8008_emu", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "ExamplePrograms/MemSet.asm", "max_issues_repo_name": "douaumont/i8008_emu", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "ExamplePrograms/MemSet.asm", "max_forks_repo_name": "douaumont/i8008_emu", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 12.3333333333, "max_line_length": 103, "alphanum_fraction": 0.7398648649} | ;memset procedure
;HL - address of begining
;b - value to write, c - amount of 8-bit cells to be written, other registers must be saved elsewhere,
;otherwise they shall be corrupted!
lhi $01
lli $00
lci 16
lbi 1
cal memset
hlt
memset:
ldi 1
lei 0
loop:
lmb
lal
add
lla
ace
adh
lha
dcc
jfz loop |
||||
TheStack | 0904902349e97b8f7e7ad23d6bc9540096387167 | Assemblycode:Assembly | {"size": 8073, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2.log_11688_1260.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2.log_11688_1260.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2.log_11688_1260.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 34.6480686695, "max_line_length": 2999, "alphanum_fraction": 0.6530410009} | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x14318, %rcx
nop
add $33984, %r10
mov (%rcx), %bx
nop
add $56416, %rbx
lea addresses_A_ht+0x6c18, %rdx
clflush (%rdx)
nop
sub $22716, %r9
movw $0x6162, (%rdx)
nop
nop
nop
dec %r10
lea addresses_A_ht+0x147b0, %rsi
lea addresses_A_ht+0x15318, %rdi
nop
cmp $26740, %r14
mov $107, %rcx
rep movsb
nop
nop
nop
nop
nop
and $62949, %rdx
lea addresses_D_ht+0x9318, %rsi
lea addresses_A_ht+0x131d8, %rdi
clflush (%rsi)
nop
nop
nop
cmp $166, %r10
mov $46, %rcx
rep movsl
nop
add $57604, %rsi
lea addresses_A_ht+0x18b18, %rdi
nop
nop
sub $15192, %rcx
mov $0x6162636465666768, %r14
movq %r14, (%rdi)
nop
xor $24307, %r14
lea addresses_WT_ht+0xb138, %r14
xor %rbx, %rbx
vmovups (%r14), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $1, %xmm3, %rdx
nop
nop
nop
nop
xor %rdx, %rdx
lea addresses_normal_ht+0x19d98, %r9
nop
nop
nop
nop
nop
xor %r14, %r14
mov (%r9), %cx
cmp %rdi, %rdi
lea addresses_WC_ht+0x1e318, %rsi
lea addresses_UC_ht+0x9f18, %rdi
nop
nop
nop
nop
inc %r10
mov $93, %rcx
rep movsq
nop
and %rcx, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
// REPMOV
lea addresses_RW+0xb918, %rsi
lea addresses_PSE+0x90d8, %rdi
and $13702, %rbx
mov $24, %rcx
rep movsw
cmp %rsi, %rsi
// Store
lea addresses_normal+0x1c318, %rax
and %r14, %r14
movb $0x51, (%rax)
nop
xor %rbx, %rbx
// Store
lea addresses_A+0x17298, %rsi
nop
nop
nop
nop
nop
sub $34166, %rdi
mov $0x5152535455565758, %rbx
movq %rbx, %xmm0
vmovups %ymm0, (%rsi)
nop
cmp %rcx, %rcx
// Load
lea addresses_RW+0x11318, %rbx
cmp %rax, %rax
vmovups (%rbx), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $1, %xmm5, %r12
cmp $12740, %rbx
// Store
lea addresses_normal+0x15f18, %rdi
nop
cmp %rax, %rax
movb $0x51, (%rdi)
and %rsi, %rsi
// Store
lea addresses_WT+0x361c, %rcx
nop
nop
nop
nop
nop
add $26849, %r12
mov $0x5152535455565758, %rdi
movq %rdi, %xmm2
movups %xmm2, (%rcx)
nop
nop
dec %r12
// Store
lea addresses_RW+0x3518, %r14
nop
nop
nop
nop
cmp $31856, %rax
mov $0x5152535455565758, %r12
movq %r12, %xmm3
vmovups %ymm3, (%r14)
nop
cmp %r12, %r12
// Store
lea addresses_US+0x18dba, %rbx
xor %rsi, %rsi
mov $0x5152535455565758, %rcx
movq %rcx, %xmm3
vmovups %ymm3, (%rbx)
nop
nop
xor %rsi, %rsi
// Faulty Load
lea addresses_RW+0x11318, %rax
nop
sub $27793, %rsi
movb (%rax), %r14b
lea oracles, %rsi
and $0xff, %r14
shlq $12, %r14
mov (%rsi,%r14,1), %r14
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_RW', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_PSE', 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 1, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}}
{'32': 11688}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
|
||||
TheStack | 083c8ccce4d6768a2ba156ab59c84d8dc9d43f22 | Assemblycode:Assembly | {"size": 346, "ext": "asm", "max_stars_repo_path": "src/linemod.asm", "max_stars_repo_name": "chris03-dev/flathill-x64", "max_stars_repo_stars_event_min_datetime": "2020-08-09T14:44:48.000Z", "max_stars_repo_stars_event_max_datetime": "2020-08-24T21:30:57.000Z", "max_issues_repo_path": "src/linemod.asm", "max_issues_repo_name": "chris03-dev/flathill-x64", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/linemod.asm", "max_forks_repo_name": "chris03-dev/flathill-x64", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 3, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.7142857143, "max_line_length": 43, "alphanum_fraction": 0.6589595376} | format PE64 console
entry _start
section '.idata' data readable import
include "win64a.inc"
library kernel32, 'kernel32.dll', \
msvcrt, 'msvcrt.dll'
import kernel32, ExitProcess, 'ExitProcess'
import msvcrt, printf, 'printf', \
malloc, 'malloc', \
free, 'free'
section '.text' code readable executable
|
||||
TheStack | 8abdce3949bf6ebf9c7caf25009a1751194ef120 | Assemblycode:Assembly | {"size": 151, "ext": "asm", "max_stars_repo_path": "data/tilesets/water_tilesets.asm", "max_stars_repo_name": "opiter09/ASM-Machina", "max_stars_repo_stars_event_min_datetime": "2022-02-15T00:19:44.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-15T00:19:44.000Z", "max_issues_repo_path": "data/tilesets/water_tilesets.asm", "max_issues_repo_name": "opiter09/ASM-Machina", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "data/tilesets/water_tilesets.asm", "max_forks_repo_name": "opiter09/ASM-Machina", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 11.6153846154, "max_line_length": 21, "alphanum_fraction": 0.7284768212} | ; tilesets with water
WaterTilesets:
db OVERWORLD
db FOREST
db DOJO
db GYM
db SHIP
db SHIP_PORT
db CAVERN
db FACILITY
db PLATEAU
db -1 ; end
|
||||
TheStack | d546da359f3c36904dff093e800452dd86ae5191 | Assemblycode:Assembly | {"size": 491, "ext": "asm", "max_stars_repo_path": "oeis/099/A099399.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/099/A099399.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/099/A099399.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 23.380952381, "max_line_length": 196, "alphanum_fraction": 0.7250509165} | ; A099399: Denominators of rationals (in lowest terms) used in a certain high temperature expansion.
; Submitted by Simon Strandgaard
; 1,6,16,32,384,256,4096,24576,32768,65536,1572864,1048576,4194304,25165824,268435456,536870912,2147483648,4294967296,34359738368,68719476736,274877906944,549755813888,8796093022208,17592186044416
mul $0,2
mov $1,1
mov $3,1
lpb $0
mov $2,$0
sub $0,1
div $2,2
mul $3,$0
sub $0,1
mul $1,2
add $2,2
mul $1,$2
lpe
gcd $3,$1
div $1,$3
mov $0,$1
|
||||
TheStack | b33d3fb79b0e7e7aa4837913a731b442d5733bdc | Assemblycode:Assembly | {"size": 515, "ext": "asm", "max_stars_repo_path": "oeis/306/A306712.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/306/A306712.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/306/A306712.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 18.3928571429, "max_line_length": 201, "alphanum_fraction": 0.5262135922} | ; A306712: Decimal expansion of 3*sqrt(3)/Pi.
; Submitted by Jamie Morken(s4)
; 1,6,5,3,9,8,6,6,8,6,2,6,5,3,7,6,1,4,8,5,3,3,9,7,9,4,9,4,9,3,8,9,0,8,3,2,4,1,9,2,1,5,9,4,4,1,0,9,9,9,2,1,9,5,8,3,9,8,0,9,8,0,6,0,8,7,3,0,9,0,9,1,0,4,0,7,8,0,9,3,8,4,5,2,1,1,4,0,0,8,6,4,6,9,5,1,2,6,6,7
mov $1,1
mov $3,$0
mul $3,4
lpb $3
mov $6,$1
mul $1,2
mov $5,$3
cmp $5,0
add $3,$5
div $6,$3
add $1,$6
add $2,$1
mul $1,2
sub $3,1
lpe
mov $4,10
pow $4,$0
div $2,$4
cmp $5,0
add $2,$5
div $1,$2
mov $0,$1
mod $0,10
|
||||
TheStack | 1abe6b2a3b3b35c8adab28e9e74c3ce4aee88751 | Assemblycode:Assembly | {"size": 686, "ext": "asm", "max_stars_repo_path": "oeis/159/A159808.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/159/A159808.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/159/A159808.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 38.1111111111, "max_line_length": 476, "alphanum_fraction": 0.8134110787} | ; A159808: Numerator of Hermite(n, 5/22).
; Submitted by Christian Krause
; 1,5,-217,-3505,140017,4092925,-148955945,-6687706825,218892836705,14041864596725,-406539275359865,-36014008700873825,902137507503591505,109095368804855545325,-2292647754582021148105,-381078348283760693301625,6416919607713933301113025,1507619962593291070969457125,-18861107453168666245931699225,-6661498094322219236372613732625,53415881598058431216930884373425,32508730184509833260128104887772125,-108915859358783781143802229946885225,-173621058799124271182641041572233219625
add $0,1
mov $3,1
lpb $0
sub $0,1
add $2,$3
mov $3,$1
mov $1,$2
mul $2,5
mul $3,-1
mul $3,$0
mul $3,242
lpe
mov $0,$1
|
||||
TheStack | 87fec3689cec34d70307dc14ad08712f9ecd2d3b | Assemblycode:Assembly | {"size": 581, "ext": "asm", "max_stars_repo_path": "programs/oeis/338/A338200.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "programs/oeis/338/A338200.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/338/A338200.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 36.3125, "max_line_length": 206, "alphanum_fraction": 0.6970740103} | ; A338200: The number of similarity classes of pointed reflection spaces of residue two in an n-dimensional vector space over GF(2).
; 0,0,1,2,4,6,9,12,17,21,27,33,41,48,58,67,79,90,104,117,134,149,168,186,208,228,253,276,304,330,361,390,425,457,495,531,573,612,658,701,751,798,852,903,962,1017,1080,1140,1208,1272,1345,1414,1492,1566,1649
mov $2,$0
mov $4,$0
lpb $2,1
mov $0,$4
sub $2,1
sub $0,$2
add $0,4
cal $0,325691 ; Number of length-3 integer partitions of n whose largest part is not greater than the sum of the other two.
mov $3,$0
sub $3,1
add $1,$3
lpe
|
||||
TheStack | f8b76d820017ebd7653062a47c1f87f8b621ff58 | Assemblycode:Assembly | {"size": 1315, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_6_1642.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_6_1642.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_6_1642.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 16.4375, "max_line_length": 123, "alphanum_fraction": 0.6494296578} | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %rax
push %rbp
lea addresses_A_ht+0x19a86, %r12
nop
nop
nop
nop
dec %rax
movw $0x6162, (%r12)
nop
and $47861, %r15
pop %rbp
pop %rax
pop %r15
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %rax
push %rbp
push %rbx
push %rdi
push %rsi
// Store
lea addresses_D+0xa86, %r10
nop
nop
nop
nop
cmp %rbx, %rbx
mov $0x5152535455565758, %r14
movq %r14, %xmm0
vmovntdq %ymm0, (%r10)
nop
nop
cmp %rdi, %rdi
// Faulty Load
lea addresses_WT+0x1c286, %rbp
nop
nop
nop
nop
nop
dec %rax
movb (%rbp), %bl
lea oracles, %rax
and $0xff, %rbx
shlq $12, %rbx
mov (%rax,%rbx,1), %rbx
pop %rsi
pop %rdi
pop %rbx
pop %rbp
pop %rax
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': True}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 9, 'size': 2, 'same': False, 'NT': False}}
{'00': 6}
00 00 00 00 00 00
*/
|
||||
TheStack | c5b113fefd499683c6ec119f84cb5874332a1562 | Assemblycode:Assembly | {"size": 882, "ext": "asm", "max_stars_repo_path": "programs/oeis/161/A161511.asm", "max_stars_repo_name": "jmorken/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/161/A161511.asm", "max_issues_repo_name": "jmorken/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/161/A161511.asm", "max_forks_repo_name": "jmorken/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 73.5, "max_line_length": 664, "alphanum_fraction": 0.6258503401} | ; A161511: Number of 1...0 pairs in the binary representation of 2n.
; 0,1,2,2,3,3,4,3,4,4,5,4,6,5,6,4,5,5,6,5,7,6,7,5,8,7,8,6,9,7,8,5,6,6,7,6,8,7,8,6,9,8,9,7,10,8,9,6,10,9,10,8,11,9,10,7,12,10,11,8,12,9,10,6,7,7,8,7,9,8,9,7,10,9,10,8,11,9,10,7,11,10,11,9,12,10,11,8,13,11,12,9,13,10,11,7,12,11,12,10,13,11,12,9,14,12,13,10,14,11,12,8,15,13,14,11,15,12,13,9,16,13,14,10,15,11,12,7,8,8,9,8,10,9,10,8,11,10,11,9,12,10,11,8,12,11,12,10,13,11,12,9,14,12,13,10,14,11,12,8,13,12,13,11,14,12,13,10,15,13,14,11,15,12,13,9,16,14,15,12,16,13,14,10,17,14,15,11,16,12,13,8,14,13,14,12,15,13,14,11,16,14,15,12,16,13,14,10,17,15,16,13,17,14,15,11,18,15,16,12,17,13,14,9,18,16,17,14,18,15,16,12,19,16,17,13,18,14,15,10,20,17,18,14,19,15,16,11,20,16
lpb $0
mov $2,$0
cal $2,88512 ; Number of partitions of n into two parts whose xor-sum is n.
sub $0,$2
sub $0,1
pow $2,0
add $1,$2
lpe
|
||||
TheStack | 919172b7ae345b0428d885c3b664fd9eda2bd5db | Assemblycode:Assembly | {"size": 688, "ext": "asm", "max_stars_repo_path": "DeleteNumbersAndSpaces.asm", "max_stars_repo_name": "CallMeMengMeng/ASSEMBLY-LANGUAGE", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "DeleteNumbersAndSpaces.asm", "max_issues_repo_name": "CallMeMengMeng/ASSEMBLY-LANGUAGE", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "DeleteNumbersAndSpaces.asm", "max_forks_repo_name": "CallMeMengMeng/ASSEMBLY-LANGUAGE", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 16.380952381, "max_line_length": 98, "alphanum_fraction": 0.6308139535} | ; THERE IS A STRING (BYTE) WITH SEVERAL CHARACTERS IN 'STRING', TRY TO DELETE NUMBERS AND SPACES
; ON BOTH SIDES OF THE STRING.
DATA SEGMENT
STRING DB ' 1234HELLO 1234$'
LEN EQU $-STRING
TEM DB 50 DUP(0)
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START: MOV AX,DATA
MOV DS,AX
MOV AX,0
MOV CX,LEN
LEA SI,STRING
LEA DI,TEM
RECONG: MOV AL,[SI]
CMP AL,20H
JZ SKIP
CMP AL,30H
JL STORE
CMP AL,39H
JLE SKIP
STORE: MOV [DI],AX
INC DI
SKIP: INC SI
LOOP RECONG
LEA SI,STRING
LEA DI,TEM
MOV CX,LEN
RESTORE: MOV AL,[DI]
MOV [SI],AL
INC DI
INC SI
LOOP RESTORE
MOV AH,4CH
INT 21H
CODE ENDS
END START |
||||
TheStack | 2f7d57c7d15fac01df8ca12fb02c3612df7aad60 | Assemblycode:Assembly | {"size": 316, "ext": "asm", "max_stars_repo_path": "libsrc/graphics/gray/cpc/g_clg.asm", "max_stars_repo_name": "meesokim/z88dk", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "libsrc/graphics/gray/cpc/g_clg.asm", "max_issues_repo_name": "meesokim/z88dk", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "libsrc/graphics/gray/cpc/g_clg.asm", "max_forks_repo_name": "meesokim/z88dk", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 11.2857142857, "max_line_length": 63, "alphanum_fraction": 0.6107594937} | ;
; Amstrad CPC pseudo-Gray Library Functions
;
; Written by Stefano Bodrato - June 2004
;
; $Id: g_clg.asm,v 1.2 2015/01/19 01:32:49 pauloscustodio Exp $
;
;
;Usage: g_clg(GrayLevel)
PUBLIC g_clg
.g_clg
ld ix,0
add ix,sp
ld a,(ix+2) ;GrayLevel
call $BBE4
;jp $BC14
jp $BBDB
|
||||
TheStack | fcdd4d124694c7c66eebf8b24161e244f5079705 | Assemblycode:Assembly | {"size": 11263, "ext": "asm", "max_stars_repo_path": "uw2/include/uw2.asm", "max_stars_repo_name": "JohnGlassmyer/UltimaHacks", "max_stars_repo_stars_event_min_datetime": "2018-03-04T22:34:22.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-10T15:18:32.000Z", "max_issues_repo_path": "uw2/include/uw2.asm", "max_issues_repo_name": "ptrie/UltimaHacks", "max_issues_repo_issues_event_min_datetime": "2018-11-20T04:06:49.000Z", "max_issues_repo_issues_event_max_datetime": "2021-11-08T16:37:10.000Z", "max_forks_repo_path": "uw2/include/uw2.asm", "max_forks_repo_name": "ptrie/UltimaHacks", "max_forks_repo_forks_event_min_datetime": "2020-09-01T17:57:36.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-04T20:51:11.000Z"} | {"max_stars_count": 68, "max_issues_count": 19, "max_forks_count": 4, "avg_line_length": 37.4186046512, "max_line_length": 79, "alphanum_fraction": 0.6263872858} | ; =============================================================================
; Ultima Underworld II Hacks -- main
; -----------------------------------------------------------------------------
; by John Glassmyer
; github.com/JohnGlassmyer/UltimaHacks
; assuming that overlay 93 was expanded and moved to the end of the executable:
; java -jar UltimaPatcher.jar --exe=UW2.EXE --expand-overlay=93:0x2500 (...)
; =============================================================================
; length of executable to be patched, and of expanded overlay
; -----------------------------------------------------------------------------
; assuming that the expanded overlay has been moved to the end of the file
%assign ORIGINAL_EXE_LENGTH 0xA4D70
%assign EXPANDED_OVERLAY_LENGTH 0x2500
%assign ORIGINAL_EOP_LENGTH 0x0E2F
%assign EXE_LENGTH (ORIGINAL_EXE_LENGTH + EXPANDED_OVERLAY_LENGTH)
; =============================================================================
; data-segment offsets
; -----------------------------------------------------------------------------
; steal bytes from Borland's Turbo C++ copyright string
; (initialized in initializeRepurposedDsegBytes.asm)
dseg_isMouseLookEnabled EQU 0x0008
dseg_wasMouseLookEnabledIn3dView EQU 0x0009
dseg_cursorXDuringMouseLook EQU 0x000A
dseg_cursorYDuringMouseLook EQU 0x000C
dseg_isDrawingBehindPlayer EQU 0x000E
dseg_wasLastBindingKey EQU 0x000F
dseg_pn_lastKeyOrMouseBinding EQU 0x0010
dseg_lastKeyBindingTime EQU 0x0012
dseg_newlineString EQU 0x0016
dseg_trigScale EQU 0x0018
dseg_radianAngle EQU 0x001C
dseg_autoAttackType EQU 0x0020
dseg_haveWarnedAboutDrawQueueLimit EQU 0x0021
dseg_mouseLookOrientation EQU 0x0022
dseg_avatarMovementFlags EQU 0x00D2
dseg_pn_inputState EQU 0x00E4
dseg_cursorX EQU 0x0268
dseg_cursorY EQU 0x026A
dseg_isCursorVisible EQU 0x026E
dseg_currentCursorAreaMinX EQU 0x027A
dseg_mouseHand EQU 0x0285
dseg_lastKeyTime EQU 0x028D
dseg_currentAttackScancode EQU 0x0366
dseg_isGettingFromLook EQU 0x0389
dseg_movementType EQU 0x0773
dseg_rotationSpeedBase EQU 0x0775
dseg_forwardThrottle EQU 0x077C
dseg_rotationThrottle EQU 0x077E
dseg_movementScancodesArray EQU 0x0784
dseg_activePanelNumber EQU 0x079E
dseg_ps_shiftStates EQU 0x2128
dseg_ps_keyStates EQU 0x2138
dseg_ps_time EQU 0x2158
dseg_ps_perspective EQU 0x2168
dseg_cursorMinX EQU 0x233C
dseg_cursorMinY EQU 0x233E
dseg_cursorMaxX EQU 0x2396
dseg_cursorMaxY EQU 0x2398
dseg_currentCursorAreaMinY EQU 0x23A4
dseg_currentCursorAreaMaxX EQU 0x23D4
dseg_currentCursorAreaMaxY EQU 0x23D6
dseg_findItemThing EQU 0x24E4
dseg_ps_itemAtCursor EQU 0x24FC
dseg_cursorMode EQU 0x2506
dseg_gridViewFlags EQU 0x26EE
dseg_leftViewLimit EQU 0x2B5E
dseg_rightViewLimit EQU 0x2B6F
dseg_drawQueuing_currentColumn EQU 0x2C6A
dseg_drawQueuing_currentRow EQU 0x2C6C
dseg_pitch EQU 0x33D6
dseg_mapDungeonLevel EQU 0x36FA
dseg_mappedTerrain EQU 0x36FC
dseg_interfaceMode EQU 0x5D60
dseg_interfaceRoutinesSelector EQU 0x5D66
dseg_ps_cursorItem EQU 0x6B0C
dseg_pn_avatarData EQU 0x828A
dseg_ps_avatarItem EQU 0x828E
dseg_avatarDungeonLevel EQU 0x8292
dseg_heading EQU 0x8294
dseg_3dViewHeight EQU 0x829C
dseg_3dViewLeftX EQU 0x829E
dseg_3dViewBottomY EQU 0x8626
dseg_3dViewWidth EQU 0x862C
dseg_ps_drawQueueEnd EQU 0x8720
; =============================================================================
; procedure far-call addresses
; -----------------------------------------------------------------------------
defineSegment 4, 0x0020, 0x065C
defineSegment 5, 0x0028, 0x0E72
defineAddress 5, 0x1D1B, signedWordToString
defineAddress 5, 0x1D42, unsignedDwordToString
defineAddress 5, 0x27F3, strcat
defineSegment 9, 0x0048, 0x191C
defineSegment 11, 0x0058, 0x1AB4
defineAddress 11, 0x0082, bindMouse
defineAddress 11, 0x0104, bindKey
defineAddress 11, 0x02A0, tryKeyAndMouseBindings
defineSegment 13, 0x0068, 0x1B44
defineAddress 13, 0x00AE, setInterfaceRoutineBit
defineSegment 15, 0x0078, 0x1B6B
defineAddress 15, 0x018B, handleControlKey
defineSegment 16, 0x0080, 0x1B8F
defineAddress 16, 0x0074, eraseCursorIfVisible
defineAddress 16, 0x0745, setCursorImage
defineAddress 16, 0x07AB, updateCursorRegion
defineAddress 16, 0x0B70, savePixelsAroundCursor
defineAddress 16, 0x0C70, drawCursor
defineAddress 16, 0x0DA7, moveCursor
defineSegment 17, 0x0088, 0x1C86
defineAddress 17, 0x1DB2, playSoundEffect
defineSegment 21, 0x00A8, 0x1FCD
defineAddress 21, 0x000C, enqueueGridCoords
defineAddress 21, 0x00D0, enqueueDrawWithinLimits
defineAddress 21, 0x0D3C, enqueueDrawBlock
defineSegment 23, 0x00B8, 0x2110
defineAddress 23, 0x0EAE, sinAndCosInterpolated
defineSegment 26, 0x00D0, 0x22FC
defineAddress 26, 0x134B, attack
defineSegment 28, 0x00E0, 0x2529
defineAddress 28, 0x05E7, findItemAtCursor
defineAddress 28, 0x073F, describeClickedTerrain
defineAddress 28, 0x0AFB, talkModeProc
defineAddress 28, 0x0B19, lookModeProc
defineAddress 28, 0x0C3A, useModeProc
defineAddress 28, 0x112A, setInteractionMode
defineSegment 31, 0x00F8, 0x28A1
defineAddress 31, 0x0A87, isItemCharacter
defineSegment 34, 0x0110, 0x2CAE
defineAddress 34, 0x024A, clearDrawQueue
defineAddress 34, 0x039A, setupPerspective
defineAddress 34, 0x05B8, setupViewLimits
defineAddress 34, 0x1162, applyViewLimits
defineSegment 36, 0x0120, 0x2F20
defineAddress 36, 0x0465, enqueueDrawItems
defineSegment 37, 0x0128, 0x2FBE
defineAddress 37, 0x0056, move
defineAddress 37, 0x0350, easyMove
defineSegment 39, 0x0138, 0x30D3
defineAddress 39, 0x02C8, setPanelState
defineAddress 39, 0x0A06, animateSlidingPanel
defineAddress 39, 0x136B, slidePanel
defineSegment 41, 0x0148, 0x3265
defineAddress 41, 0x008E, getExternalizedString
defineAddress 41, 0x090B, strcat_far
defineSegment 45, 0x0168, 0x342C
defineAddress 45, 0x01A0, printStringToScroll
defineSegment 71, 0x0238, 0x60B9
defineSegment 93, 0x02E8, 0x6417, eop
defineAddress 93, 0x0061, varArgsEopDispatcher
defineAddress 93, 0x0066, byteArgEopDispatcher
defineAddress 93, 0x006B, byCallSiteEopDispatcher
defineSegment 94, 0x02F0, 0x641E
defineAddress 94, 0x00A7, changeMapLevel
defineSegment 96, 0x0300, 0x643D
defineSegment 97, 0x0308, 0x6448
defineAddress 97, 0x007A, clickOtherTrade
defineAddress 97, 0x008E, clickAvatarTrade
defineSegment 103, 0x0338, 0x6469
defineAddress 103, 0x003E, ark_say
defineAddress 103, 0x007A, selectConversationOption
defineSegment 108, 0x0360, 0x6488
defineSegment 112, 0x0380, 0x64BF
defineAddress 112, 0x004D, transitionToInterfaceMode
defineSegment 121, 0x03C8, 0x64F7
defineAddress 121, 0x0020, scrollInventoryDown
defineAddress 121, 0x002F, closeInventoryContainer
defineAddress 121, 0x0043, scrollInventoryUp
defineSegment 123, 0x03D8, 0x6504
defineAddress 123, 0x0020, tryToCast
defineAddress 123, 0x0034, clickRunePanel
defineSegment 137, 0x0448, 0x654A
defineAddress 137, 0x0020, clickCompass
defineAddress 137, 0x002A, clickFlasks
defineAddress 137, 0x0043, flipCharPanel
defineSegment 143, 0x0478, 0x656A
defineAddress 143, 0x004D, adjustPitch
defineAddress 143, 0x005C, printVersion
defineAddress 143, 0x0061, printDebug
defineSegment 147, 0x0498, 0x6578
defineSegment 154, 0x04D0, 0x6599
defineAddress 154, 0x0057, trainSkill
defineAddress 154, 0x0093, sleep
defineAddress 154, 0x009D, track
defineSegment 167, 0x0538, 0x65E0
defineAddress 167, 0x0052, toggleBool
defineSegment 168, 0x0540, 0x65E9, dseg
; =============================================================================
; structure offsets
; -----------------------------------------------------------------------------
InputState_relativeX EQU 0x00
InputState_relativeY EQU 0x02
InputState_mouseButton EQU 0x06
InputState_mode EQU 0x08
Perspective_x EQU 0x0A
Perspective_y EQU 0x12
Perspective_heading EQU 0x2C
ViewLimit_headingSin EQU 0x01
ViewLimit_headingCos EQU 0x03
ViewLimit_currentBlockX EQU 0x05
ViewLimit_intraBlockX EQU 0x06
ViewLimit_currentBlockY EQU 0x07
ViewLimit_intraBlockY EQU 0x08
ViewLimit_terrainGrid_ps EQU 0x09
ShiftStates_shift EQU 0
ShiftStates_alt EQU 1
ShiftStates_ctrl EQU 2
; =============================================================================
; enumerations
; -----------------------------------------------------------------------------
%assign MapControl_LEVEL_UP 0
%assign MapControl_LEVEL_DOWN 1
%assign MapControl_REALM_UP 2
%assign MapControl_REALM_DOWN 3
%assign MapControl_AVATAR_LEVEL 4
%assign ReducedHeading_NORTH 0
%assign ReducedHeading_EAST 1
%assign ReducedHeading_SOUTH 2
%assign ReducedHeading_WEST 3
%assign SoundNumber_ERROR 45
%assign StringColor_DEFAULT 0 ; brown
%assign StringColor_AVATAR_SPEECH 1 ; gold
%assign StringColor_NARRATION 2 ; black
%assign StringColor_WHITE 3
%assign StringColor_ERROR 4 ; red
%assign StringColor_BLUE 5
%assign StringColor_MENU 6 ; dark green
%assign InterfaceMode_NORMAL 1
%assign InterfaceMode_MAP 2
%assign InterfaceMode_CONVERSATION 4
; =============================================================================
; other values
; -----------------------------------------------------------------------------
; how far up or down the player is allowed to look
; (original value is 4 * 1024; too-large values allow the view to wrap around)
%assign pitchBound 12 * 1024
; key modifier bits
%assign S 0x080 ; Shift modifier bit
%assign C 0x100 ; Ctrl modifier bit
%assign A 0x200 ; Alt modifier bit
%assign H 0x400 ; High-bit scancode modifier bit
%assign MOUSE_LOOK_INVERT_Y 1
%assign MOUSE_LOOK_INVERT_X 2
|
||||
TheStack | 394ec5b6889d896836fd75b12f0ad59c9b4d7d54 | Assemblycode:Assembly | {"size": 5509, "ext": "asm", "max_stars_repo_path": "Code/CustomControl/RAHexEd/Test/FileIO.asm", "max_stars_repo_name": "CherryDT/FbEditMOD", "max_stars_repo_stars_event_min_datetime": "2016-12-03T16:35:42.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-26T06:02:53.000Z", "max_issues_repo_path": "Code/CustomControl/RAHexEd/Test/FileIO.asm", "max_issues_repo_name": "CherryDT/FbEditMOD", "max_issues_repo_issues_event_min_datetime": "2018-02-24T20:17:46.000Z", "max_issues_repo_issues_event_max_datetime": "2018-03-02T08:57:40.000Z", "max_forks_repo_path": "Code/CustomControl/RAHexEd/Test/FileIO.asm", "max_forks_repo_name": "CherryDT/FbEditMOD", "max_forks_repo_forks_event_min_datetime": "2018-10-19T01:14:55.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-11T18:51:48.000Z"} | {"max_stars_count": 11, "max_issues_count": 1, "max_forks_count": 4, "avg_line_length": 25.5046296296, "max_line_length": 104, "alphanum_fraction": 0.7551279724} | .code
StreamInProc proc hFile:DWORD,pBuffer:DWORD,NumBytes:DWORD,pBytesRead:DWORD
invoke ReadFile,hFile,pBuffer,NumBytes,pBytesRead,0
xor eax,1
ret
StreamInProc endp
StreamOutProc proc hFile:DWORD,pBuffer:DWORD,NumBytes:DWORD,pBytesWritten:DWORD
invoke WriteFile,hFile,pBuffer,NumBytes,pBytesWritten,0
xor eax,1
ret
StreamOutProc endp
SaveFile proc hWin:DWORD,lpFileName:DWORD
LOCAL hFile:DWORD
LOCAL editstream:EDITSTREAM
invoke CreateFile,lpFileName,GENERIC_WRITE,FILE_SHARE_READ,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,0
.if eax!=INVALID_HANDLE_VALUE
mov hFile,eax
;stream the text to the file
mov editstream.dwCookie,eax
mov editstream.pfnCallback,offset StreamOutProc
invoke SendMessage,hWin,EM_STREAMOUT,SF_TEXT,addr editstream
invoke CloseHandle,hFile
;Set the modify state to false
invoke SendMessage,hWin,EM_SETMODIFY,FALSE,0
mov eax,FALSE
.else
invoke MessageBox,hWnd,offset SaveFileFail,offset szAppName,MB_OK
mov eax,TRUE
.endif
ret
SaveFile endp
SaveEditAs proc hWin:DWORD,lpFileName:DWORD
LOCAL ofn:OPENFILENAME
LOCAL buffer[MAX_PATH]:BYTE
;Zero out the ofn struct
invoke RtlZeroMemory,addr ofn,sizeof ofn
;Setup the ofn struct
mov ofn.lStructSize,sizeof ofn
push hWnd
pop ofn.hwndOwner
push hInstance
pop ofn.hInstance
mov ofn.lpstrFilter,NULL
mov buffer[0],0
lea eax,buffer
mov ofn.lpstrFile,eax
mov ofn.nMaxFile,sizeof buffer
mov ofn.Flags,OFN_FILEMUSTEXIST or OFN_HIDEREADONLY or OFN_PATHMUSTEXIST or OFN_OVERWRITEPROMPT
mov ofn.lpstrDefExt,NULL
;Show save as dialog
invoke GetSaveFileName,addr ofn
.if eax
invoke SaveFile,hWin,addr buffer
.if !eax
;The file was saved
invoke lstrcpy,offset FileName,addr buffer
invoke SetWinCaption,offset FileName
invoke TabToolGetMem,hWin
invoke lstrcpy,addr [eax].TABMEM.filename,offset FileName
invoke TabToolGetInx,hWin
invoke TabToolSetText,eax,offset FileName
mov eax,FALSE
.endif
.else
mov eax,TRUE
.endif
ret
SaveEditAs endp
SaveEdit proc hWin:DWORD,lpFileName:DWORD
;Check if filrname is (Untitled)
invoke lstrcmp,lpFileName,offset NewFile
.if eax
invoke SaveFile,hWin,lpFileName
.else
invoke SaveEditAs,hWin,lpFileName
.endif
ret
SaveEdit endp
WantToSave proc hWin:DWORD,lpFileName:DWORD
LOCAL buffer[512]:BYTE
LOCAL buffer1[2]:BYTE
invoke SendMessage,hWin,EM_GETMODIFY,0,0
.if eax
invoke lstrcpy,addr buffer,offset WannaSave
invoke lstrcat,addr buffer,lpFileName
mov ax,'?'
mov word ptr buffer1,ax
invoke lstrcat,addr buffer,addr buffer1
invoke MessageBox,hWnd,addr buffer,offset szAppName,MB_YESNOCANCEL or MB_ICONQUESTION
.if eax==IDYES
invoke SaveEdit,hWin,lpFileName
.elseif eax==IDNO
mov eax,FALSE
.else
mov eax,TRUE
.endif
.endif
ret
WantToSave endp
LoadFile proc uses ebx esi,hWin:DWORD,lpFileName:DWORD
LOCAL hFile:DWORD
LOCAL editstream:EDITSTREAM
LOCAL chrg:CHARRANGE
;Open the file
invoke CreateFile,lpFileName,GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0
.if eax!=INVALID_HANDLE_VALUE
mov hFile,eax
;Copy buffer to FileName
invoke lstrcpy,offset FileName,lpFileName
;stream the text into the RAEdit control
push hFile
pop editstream.dwCookie
mov editstream.pfnCallback,offset StreamInProc
invoke SendMessage,hWin,EM_STREAMIN,SF_TEXT,addr editstream
invoke CloseHandle,hFile
invoke SendMessage,hWin,EM_SETMODIFY,FALSE,0
mov chrg.cpMin,0
mov chrg.cpMax,0
invoke SendMessage,hWin,EM_EXSETSEL,0,addr chrg
invoke SetWinCaption,offset FileName
mov eax,FALSE
.else
invoke MessageBox,hWnd,offset OpenFileFail,offset szAppName,MB_OK or MB_ICONERROR
mov eax,TRUE
.endif
ret
LoadFile endp
OpenEditFile proc lpFileName:DWORD
LOCAL fClose:DWORD
mov fClose,0
invoke lstrcmp,offset FileName,offset NewFile
.if !eax
invoke SendMessage,hREd,EM_GETMODIFY,0,0
.if !eax
mov eax,hREd
mov fClose,eax
.endif
.endif
invoke lstrcpy,offset FileName,lpFileName
invoke UpdateAll,IS_OPEN
.if !eax
invoke CreateRAHexEd
invoke TabToolAdd,hREd,offset FileName
invoke LoadCursor,0,IDC_WAIT
invoke SetCursor,eax
invoke LoadFile,hREd,offset FileName
invoke LoadCursor,0,IDC_ARROW
invoke SetCursor,eax
.if fClose
invoke TabToolDel,fClose
invoke DestroyWindow,fClose
.endif
.endif
invoke SetFocus,hREd
ret
OpenEditFile endp
OpenEdit proc
LOCAL ofn:OPENFILENAME
LOCAL buffer[MAX_PATH]:BYTE
;Zero out the ofn struct
invoke RtlZeroMemory,addr ofn,sizeof ofn
;Setup the ofn struct
mov ofn.lStructSize,sizeof ofn
push hWnd
pop ofn.hwndOwner
push hInstance
pop ofn.hInstance
mov ofn.lpstrFilter,offset ALLFilterString
mov buffer[0],0
lea eax,buffer
mov ofn.lpstrFile,eax
mov ofn.nMaxFile,sizeof buffer
mov ofn.lpstrDefExt,NULL
mov ofn.Flags,OFN_FILEMUSTEXIST or OFN_HIDEREADONLY or OFN_PATHMUSTEXIST
;Show the Open dialog
invoke GetOpenFileName,addr ofn
.if eax
invoke CreateFile,addr buffer,GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0
.if eax!=INVALID_HANDLE_VALUE
invoke CloseHandle,eax
invoke OpenEditFile,addr buffer
.else
invoke MessageBox,hWnd,offset OpenFileFail,offset szAppName,MB_OK or MB_ICONERROR
.endif
.endif
ret
OpenEdit endp
|
||||
TheStack | e9cc0fb9bd13213238a9b49746ace6f742a3d546 | Assemblycode:Assembly | {"size": 463, "ext": "asm", "max_stars_repo_path": "oeis/076/A076237.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/076/A076237.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/076/A076237.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 35.6153846154, "max_line_length": 209, "alphanum_fraction": 0.6414686825} | ; A076237: Remainder when 2nd order composite cc[n]=A050435[n] is divided by n.
; Submitted by Jamie Morken(s2)
; 0,0,0,0,3,3,3,1,8,8,10,9,8,8,8,7,6,6,7,8,7,6,5,4,5,4,3,4,5,4,3,4,3,2,2,2,2,1,0,0,40,0,0,43,43,44,44,45,45,45,47,48,49,50,50,50,53,53,53,55,55,55,55,55,56,56,56,56,56,56,57,58,59,59,60,62,63,63,64,65,65,65,67
add $0,1
lpb $0
mov $1,$0
seq $1,175251 ; Composites (A002808) with nonprime (A018252) subscripts.
mod $1,$0
mov $0,1
lpe
mov $0,$1
|
||||
TheStack | 72233100610e08a576b1f6ac5600e07b88209e26 | Assemblycode:Assembly | {"size": 448, "ext": "asm", "max_stars_repo_path": "data/wild/treemon_maps.asm", "max_stars_repo_name": "Trap-Master/spacworld97-thingy", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "data/wild/treemon_maps.asm", "max_issues_repo_name": "Trap-Master/spacworld97-thingy", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "data/wild/treemon_maps.asm", "max_forks_repo_name": "Trap-Master/spacworld97-thingy", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.3529411765, "max_line_length": 59, "alphanum_fraction": 0.6450892857} | treemon_map: MACRO
map_id \1
db \2 ; treemon set
ENDM
TreeMonMaps:
;treemon_map ROUTE_41, TREEMON_SET_CITY
;treemon_map ROUTE_42, TREEMON_SET_TOWN
;treemon_map ROUTE_44, TREEMON_SET_CANYON
treemon_map ROUTE_101, TREEMON_SET_CANYON
;treemon_map MAHOGANY_TOWN, TREEMON_SET_CITY
db -1
RockMonMaps:
treemon_map ROUTE_101, TREEMON_SET_ROCK
db -1
|
||||
TheStack | 0ee7b997b7ccbd21621594b4717e15c500fe7b29 | Assemblycode:Assembly | {"size": 10588, "ext": "asm", "max_stars_repo_path": "P6/data_P6_2/MDTest186.asm", "max_stars_repo_name": "alxzzhou/BUAA_CO_2020", "max_stars_repo_stars_event_min_datetime": "2022-01-23T09:24:47.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-23T09:24:47.000Z", "max_issues_repo_path": "P6/data_P6_2/MDTest186.asm", "max_issues_repo_name": "alxzzhou/BUAA_CO_2020", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "P6/data_P6_2/MDTest186.asm", "max_forks_repo_name": "alxzzhou/BUAA_CO_2020", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 11.8966292135, "max_line_length": 18, "alphanum_fraction": 0.5682848508} | ori $ra,$ra,0xf
mtlo $1
ori $4,$2,55864
div $4,$ra
sb $4,12($0)
ori $6,$2,26041
sb $1,8($0)
mult $4,$2
sll $5,$0,27
mthi $5
addu $6,$2,$6
ori $5,$2,31443
mfhi $2
mult $1,$1
mflo $5
addu $2,$2,$3
sll $1,$6,14
multu $5,$5
mtlo $1
lb $1,1($0)
sll $5,$4,23
srav $4,$2,$2
mfhi $4
multu $4,$6
mult $1,$1
divu $4,$ra
sll $0,$6,1
mthi $1
addiu $3,$2,27842
addiu $6,$0,26555
mfhi $4
mflo $3
srav $0,$0,$2
sb $3,1($0)
mfhi $2
addiu $4,$4,-15785
sll $5,$3,6
mtlo $6
lb $4,3($0)
ori $2,$2,15665
ori $2,$4,14282
divu $4,$ra
mtlo $2
lb $5,3($0)
sb $5,9($0)
lb $6,8($0)
addiu $4,$6,22073
addiu $4,$4,-10223
multu $4,$4
mtlo $0
mult $0,$0
mtlo $4
mult $5,$1
mult $3,$1
div $6,$ra
sll $1,$1,8
lui $5,34474
mthi $5
mtlo $1
lui $5,40739
mflo $6
lui $1,55670
addu $4,$4,$4
mfhi $4
addiu $4,$4,22225
srav $6,$2,$6
mflo $1
divu $5,$ra
divu $5,$ra
divu $1,$ra
mfhi $5
mult $3,$5
ori $4,$2,44591
multu $4,$2
mult $2,$2
lui $1,3353
addu $5,$2,$5
addu $4,$4,$4
addiu $1,$0,20580
mflo $0
divu $6,$ra
div $3,$ra
srav $6,$1,$2
addu $2,$2,$1
ori $1,$0,12259
divu $6,$ra
addiu $5,$4,-10215
mfhi $0
lb $6,4($0)
addu $2,$2,$4
divu $4,$ra
ori $6,$6,24643
mult $0,$0
sll $0,$5,11
mthi $4
lb $4,10($0)
div $2,$ra
divu $4,$ra
divu $5,$ra
multu $1,$1
mult $1,$2
ori $2,$6,1280
addu $2,$2,$2
srav $5,$2,$2
mfhi $2
mthi $4
mfhi $2
addiu $5,$4,23773
div $1,$ra
addiu $2,$5,-2982
mfhi $1
mtlo $4
divu $2,$ra
divu $2,$ra
mult $2,$2
mtlo $5
lui $5,9509
mthi $6
mtlo $6
sll $0,$4,4
mtlo $0
multu $4,$4
lui $1,53912
ori $5,$5,53772
srav $1,$2,$2
mult $4,$6
multu $2,$1
mflo $1
mthi $5
mult $2,$2
ori $1,$1,21444
sb $5,10($0)
mfhi $4
mtlo $4
sll $6,$2,28
mflo $6
srav $1,$5,$1
mthi $4
mtlo $5
mtlo $6
addiu $4,$4,-3355
addiu $5,$4,-31860
mflo $4
sb $4,5($0)
sb $5,13($0)
mfhi $5
ori $4,$5,23322
mflo $4
addiu $3,$2,-28195
mthi $2
mfhi $3
mult $2,$0
ori $2,$6,54509
mult $6,$6
mtlo $4
ori $3,$3,56674
mthi $1
mflo $5
addu $5,$1,$1
ori $4,$1,33104
mthi $4
ori $1,$0,55773
ori $0,$0,33392
mtlo $5
mthi $5
divu $4,$ra
addu $4,$1,$1
sb $4,4($0)
srav $3,$4,$3
sll $1,$1,8
addiu $4,$1,16880
mult $0,$4
mthi $1
mflo $2
srav $3,$3,$3
lui $2,43415
mflo $5
div $6,$ra
divu $4,$ra
ori $6,$5,14699
divu $0,$ra
multu $2,$2
mult $4,$2
lb $6,10($0)
div $5,$ra
divu $5,$ra
srav $6,$4,$4
lb $5,16($0)
div $1,$ra
div $4,$ra
mflo $1
mult $0,$4
addu $1,$0,$0
sb $4,1($0)
sll $4,$2,6
sll $4,$5,6
lui $1,32807
mflo $6
mtlo $6
divu $1,$ra
addiu $1,$2,24290
multu $5,$4
lb $4,16($0)
multu $5,$5
div $4,$ra
lb $4,1($0)
sll $4,$1,1
mthi $0
div $0,$ra
sll $4,$2,23
sll $5,$4,7
mthi $1
div $1,$ra
ori $4,$5,41677
mfhi $1
mthi $0
mult $6,$2
srav $1,$5,$5
addu $2,$2,$3
addu $4,$1,$5
addu $6,$2,$2
addiu $1,$6,-15448
mtlo $1
lui $3,55214
multu $6,$6
addiu $0,$5,18362
ori $4,$4,57837
mthi $5
divu $4,$ra
srav $4,$5,$4
sb $5,15($0)
mfhi $0
multu $0,$2
srav $3,$4,$3
mult $2,$2
lb $1,11($0)
addu $1,$2,$1
addu $5,$5,$3
mult $1,$4
div $5,$ra
mtlo $1
ori $4,$2,34286
addiu $4,$2,-24295
lui $4,39461
lb $4,7($0)
mult $6,$3
ori $2,$2,18043
lui $0,45170
addu $0,$5,$0
divu $4,$ra
addu $5,$3,$3
mfhi $5
addiu $5,$1,20466
sb $4,16($0)
div $6,$ra
mthi $4
lui $3,50227
lui $4,24421
mfhi $5
sb $2,0($0)
mthi $5
sll $5,$2,17
div $5,$ra
mflo $5
mthi $4
mthi $6
addiu $4,$4,-25704
mult $5,$4
sll $5,$1,16
multu $3,$0
ori $2,$1,62976
multu $3,$1
mfhi $1
div $4,$ra
divu $5,$ra
mflo $4
divu $1,$ra
divu $6,$ra
divu $5,$ra
divu $0,$ra
sb $2,4($0)
lb $1,15($0)
ori $3,$2,22758
div $4,$ra
sll $4,$4,27
addu $4,$1,$6
addu $4,$4,$1
mult $1,$1
mfhi $3
divu $5,$ra
addiu $1,$1,31542
addiu $5,$5,-22607
srav $1,$1,$1
mfhi $1
srav $4,$4,$3
srav $6,$5,$0
srav $2,$2,$2
divu $4,$ra
srav $4,$0,$5
sb $1,13($0)
lb $4,4($0)
mfhi $4
lui $4,12614
addiu $5,$2,15247
mflo $4
lui $2,63534
addiu $5,$0,-17991
mult $5,$5
mflo $5
divu $6,$ra
addu $1,$4,$4
ori $3,$3,23393
addu $6,$6,$6
sb $1,9($0)
addu $4,$4,$2
sll $2,$2,26
mflo $0
mfhi $5
mfhi $0
multu $5,$2
multu $5,$1
divu $3,$ra
mtlo $5
divu $5,$ra
addu $4,$4,$3
addu $0,$6,$0
divu $1,$ra
divu $4,$ra
addiu $6,$6,13294
sll $0,$0,1
addu $0,$1,$0
multu $5,$2
ori $4,$1,42926
mthi $5
mult $4,$1
lb $6,10($0)
mflo $1
mthi $2
sll $2,$2,13
mtlo $3
ori $1,$1,39513
sb $5,13($0)
ori $5,$5,2636
div $3,$ra
sll $5,$1,19
addiu $0,$4,-10743
lui $1,33482
divu $5,$ra
mflo $2
addiu $1,$1,-14246
sll $2,$0,10
addiu $4,$4,12141
lb $6,10($0)
div $4,$ra
divu $3,$ra
addu $5,$5,$1
ori $5,$5,2240
mthi $2
multu $5,$6
addu $4,$5,$4
multu $5,$3
sb $0,0($0)
mthi $4
addiu $5,$6,13686
srav $6,$6,$1
mult $1,$0
divu $6,$ra
addu $0,$0,$0
multu $0,$1
mfhi $0
lui $1,18014
mult $1,$5
addiu $6,$0,-13394
mflo $6
divu $4,$ra
sb $4,7($0)
mtlo $4
mthi $4
lui $5,3431
lui $0,21074
mtlo $1
multu $6,$1
mtlo $4
lui $3,16300
lui $4,29078
multu $2,$1
addiu $5,$5,20624
srav $2,$6,$2
sll $1,$2,16
addiu $4,$4,28316
sb $0,1($0)
mthi $2
mflo $4
mflo $2
multu $1,$2
srav $0,$4,$4
sll $2,$5,0
divu $3,$ra
mflo $3
lui $5,48824
divu $4,$ra
ori $4,$1,22247
mult $1,$1
mthi $4
mfhi $4
mtlo $5
addu $4,$3,$3
divu $2,$ra
addiu $6,$4,-25580
mult $1,$0
mult $4,$4
mfhi $4
mfhi $5
srav $2,$2,$2
srav $4,$5,$4
addu $2,$2,$2
lb $2,8($0)
divu $1,$ra
mult $0,$5
mfhi $3
ori $6,$4,49105
addiu $0,$4,14830
mult $6,$6
addu $6,$4,$2
mult $5,$5
mfhi $4
divu $1,$ra
mfhi $4
mult $4,$5
mtlo $4
lui $1,39335
sll $4,$4,27
lui $1,6062
mtlo $1
srav $6,$3,$3
lb $4,13($0)
ori $2,$2,65276
sll $1,$1,11
mfhi $3
mflo $1
mflo $1
lb $0,11($0)
div $5,$ra
srav $4,$4,$2
mthi $1
mfhi $5
mult $4,$4
srav $6,$4,$3
multu $4,$1
sb $4,7($0)
sll $1,$2,30
sb $4,15($0)
lb $4,14($0)
addu $2,$2,$2
addu $1,$0,$1
mtlo $2
addu $6,$6,$6
div $5,$ra
mthi $1
sb $1,6($0)
mfhi $5
mtlo $3
mfhi $4
lb $1,3($0)
sb $1,5($0)
ori $4,$6,58479
div $2,$ra
lui $1,53890
multu $4,$4
ori $5,$2,26155
addiu $5,$2,-7579
mflo $1
lui $4,35312
div $4,$ra
mfhi $0
mfhi $5
divu $5,$ra
sb $4,10($0)
mult $2,$2
mflo $5
mtlo $3
mflo $1
sb $4,12($0)
addu $6,$2,$2
mtlo $6
ori $4,$4,32393
sb $6,0($0)
srav $6,$4,$6
sll $4,$5,6
srav $1,$0,$4
lui $4,41348
lui $2,4585
lb $1,10($0)
srav $3,$3,$3
multu $4,$2
divu $4,$ra
mthi $1
lui $4,6250
ori $4,$2,19024
div $1,$ra
addu $4,$6,$6
divu $4,$ra
addiu $3,$2,-1531
mflo $1
mthi $5
srav $1,$2,$1
multu $5,$1
div $4,$ra
divu $6,$ra
mtlo $5
addiu $0,$4,-20444
mult $4,$4
mfhi $0
addu $5,$5,$3
addu $2,$1,$2
lui $5,60589
sll $2,$2,28
multu $5,$2
multu $1,$2
ori $5,$4,18738
sb $2,6($0)
addu $4,$2,$4
multu $5,$2
ori $5,$4,9217
sll $5,$5,29
sll $5,$5,22
mthi $5
srav $0,$0,$3
addiu $1,$1,19700
mfhi $5
mflo $5
sb $6,11($0)
mfhi $4
mthi $2
mtlo $4
div $4,$ra
mult $0,$2
divu $6,$ra
div $5,$ra
mflo $1
sll $1,$1,6
lb $3,12($0)
addiu $3,$5,25169
mthi $6
mult $0,$2
mflo $4
lb $4,16($0)
divu $4,$ra
lui $0,14764
mthi $4
mfhi $5
div $1,$ra
addiu $4,$2,13817
sb $2,5($0)
sll $1,$2,7
mult $1,$2
ori $3,$3,18539
multu $4,$2
srav $0,$0,$0
addiu $1,$1,-7916
divu $4,$ra
mflo $5
sb $4,8($0)
mtlo $0
ori $5,$4,62172
lui $3,26107
mflo $5
lui $4,47733
addu $4,$6,$4
multu $1,$2
addu $5,$6,$5
addu $2,$2,$2
addiu $1,$5,-11947
lui $4,57413
mflo $4
multu $4,$2
divu $4,$ra
srav $1,$2,$2
mflo $0
mtlo $5
ori $5,$2,35175
addu $4,$5,$3
multu $5,$6
srav $5,$2,$0
sb $5,5($0)
sb $6,12($0)
divu $0,$ra
mflo $1
mflo $5
divu $6,$ra
lui $5,27640
mfhi $1
lb $5,7($0)
div $6,$ra
mtlo $4
addu $4,$6,$3
multu $0,$4
div $4,$ra
mthi $3
multu $6,$6
mthi $4
divu $5,$ra
multu $4,$4
multu $1,$2
mflo $5
divu $0,$ra
mult $4,$4
sb $5,0($0)
div $5,$ra
mfhi $0
mthi $3
sll $2,$2,4
sb $5,3($0)
mflo $4
divu $5,$ra
addu $3,$6,$3
mult $5,$3
addiu $4,$2,-15092
divu $3,$ra
sll $1,$4,20
srav $1,$4,$4
multu $1,$1
div $3,$ra
mflo $1
srav $5,$4,$1
mtlo $5
mult $6,$4
lb $4,9($0)
mthi $5
divu $1,$ra
lui $4,38629
mflo $1
mthi $2
mult $6,$5
addu $4,$4,$4
addu $6,$5,$6
divu $5,$ra
divu $1,$ra
srav $4,$2,$3
mflo $4
multu $4,$4
sb $0,12($0)
mult $5,$2
mfhi $3
mthi $1
addu $3,$3,$3
lui $4,53525
sll $3,$1,1
mfhi $4
addu $4,$0,$3
sll $4,$6,28
mfhi $1
mult $5,$5
mfhi $0
addu $2,$2,$1
sll $1,$2,9
lui $0,3764
mthi $4
mult $1,$1
divu $4,$ra
lb $4,16($0)
addiu $5,$4,-20044
sll $5,$2,2
mfhi $6
mflo $1
addu $6,$6,$5
lb $0,14($0)
sll $5,$5,7
div $6,$ra
mflo $4
mthi $0
mthi $5
ori $2,$2,13476
addu $5,$1,$5
addu $3,$3,$3
mthi $4
lb $3,10($0)
div $5,$ra
multu $0,$3
mflo $1
mult $6,$5
mthi $5
mult $4,$4
divu $2,$ra
mthi $4
divu $1,$ra
ori $3,$4,18703
multu $4,$2
mflo $6
sll $4,$1,5
addiu $5,$6,474
mflo $1
mthi $4
addu $3,$5,$3
div $4,$ra
ori $0,$1,35697
sb $3,6($0)
addiu $5,$3,10322
lb $5,0($0)
mflo $4
addiu $5,$5,-2714
multu $1,$2
mflo $0
sll $4,$4,13
srav $5,$5,$5
mfhi $6
srav $3,$1,$3
sll $0,$2,13
mflo $4
mthi $1
multu $4,$4
sb $5,8($0)
sb $2,4($0)
mfhi $2
multu $4,$4
ori $5,$2,56779
multu $0,$0
addu $4,$4,$4
mthi $1
lb $4,7($0)
srav $4,$2,$2
srav $0,$2,$3
mult $2,$2
divu $0,$ra
srav $4,$2,$3
sll $0,$4,20
div $5,$ra
mthi $1
mtlo $2
addu $0,$6,$3
sll $3,$3,12
lui $3,5389
multu $1,$0
lb $5,0($0)
addiu $4,$1,16485
addu $5,$0,$1
lb $0,13($0)
sll $4,$4,1
addu $0,$0,$0
srav $2,$2,$4
ori $1,$0,35354
addiu $5,$5,-12949
addiu $1,$1,-15009
srav $0,$4,$0
lb $6,8($0)
sb $4,12($0)
div $3,$ra
lui $2,1257
sll $1,$3,15
ori $4,$6,18281
multu $6,$1
sb $4,10($0)
sll $2,$2,9
sll $6,$2,27
mflo $4
div $4,$ra
divu $1,$ra
lb $5,4($0)
div $2,$ra
mult $5,$0
addu $5,$5,$5
mult $4,$1
mfhi $3
divu $5,$ra
sll $4,$4,25
lui $1,18979
srav $4,$4,$1
mtlo $2
mtlo $5
mfhi $4
mfhi $4
srav $2,$2,$2
srav $5,$3,$3
div $1,$ra
addu $0,$6,$6
divu $1,$ra
mult $5,$4
div $4,$ra
mthi $0
ori $0,$0,4650
addiu $4,$1,14612
ori $1,$2,46473
div $6,$ra
ori $3,$1,18929
sb $0,7($0)
divu $4,$ra
sll $6,$0,8
mflo $2
lui $1,31352
srav $6,$1,$3
mult $5,$5
lb $1,13($0)
addu $5,$5,$2
lb $5,14($0)
divu $4,$ra
mflo $1
multu $4,$0
mult $4,$6
srav $4,$1,$3
div $5,$ra
mfhi $4
sll $6,$6,7
mtlo $5
mthi $1
lb $5,4($0)
sll $2,$2,28
mfhi $3
sll $3,$3,15
addu $1,$2,$2
multu $6,$2
mthi $5
sll $1,$0,3
sb $4,5($0)
divu $1,$ra
mtlo $6
mfhi $5
srav $3,$3,$3
addiu $4,$2,11943
lb $5,9($0)
sll $1,$2,31
addiu $6,$2,-30541
sll $3,$5,9
mfhi $0
div $5,$ra
div $5,$ra
mfhi $0
div $1,$ra
mfhi $4
div $4,$ra
mult $2,$2
mult $6,$2
multu $6,$5
multu $5,$1
ori $6,$1,20353
divu $4,$ra
addu $1,$2,$0
ori $1,$6,48474
mtlo $1
lb $4,14($0)
addiu $1,$1,5091
addiu $6,$6,29201
addiu $6,$4,-19097
addu $6,$6,$1
mfhi $5
lb $1,0($0)
addu $5,$1,$4
lb $3,13($0)
lb $2,8($0)
ori $5,$4,33852
addu $1,$5,$4
div $4,$ra
ori $4,$4,52775
multu $0,$0
sll $5,$2,18
mflo $5
mthi $6
divu $1,$ra
ori $3,$3,35124
mtlo $6
div $1,$ra
sb $2,12($0)
div $5,$ra
divu $6,$ra
mflo $4
mflo $4
mthi $1
srav $6,$6,$3
addiu $4,$1,16616
lb $4,10($0)
lb $4,5($0)
mflo $2
multu $5,$1
multu $4,$5
divu $0,$ra
div $1,$ra
divu $2,$ra
srav $4,$6,$3
mflo $3
mthi $5
lb $1,7($0)
mthi $4
divu $0,$ra
srav $1,$2,$5
lui $1,64737
lui $1,53288
divu $4,$ra
addu $4,$5,$3
mflo $3
mthi $4
|
||||
TheStack | 218879f93ab335bc307783266b4f1dfded05effe | Assemblycode:Assembly | {"size": 722, "ext": "asm", "max_stars_repo_path": "src/util/strg/filst.asm", "max_stars_repo_name": "olifink/qspread", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/util/strg/filst.asm", "max_issues_repo_name": "olifink/qspread", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/util/strg/filst.asm", "max_forks_repo_name": "olifink/qspread", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.5625, "max_line_length": 60, "alphanum_fraction": 0.4667590028} | ; fill string with one character 27/01-92 O.Fink
section string
include win1_keys_err
xdef st_filst ; fill a string
;+++
; fill a string with one character
; x,10 -> xxxxxxxxxx
;
; Entry Exit
; a0 ptr to string preserved
; d1.b character to fill with preserved
; d2.w fill length preserved
;---
r_filst reg a0/d2
st_filst
movem.l r_filst,-(sp)
move.w d2,(a0)+
bra.s fil_end
fil_lp
move.b d1,(a0)+
fil_end
dbra d2,fil_lp
fil_exit
movem.l (sp)+,r_filst
rts
end
|
||||
TheStack | 5e09c0e55374f75deb023ff76362d3707e951495 | Assemblycode:Assembly | {"size": 4574, "ext": "asm", "max_stars_repo_path": "test/paddw.asm", "max_stars_repo_name": "killvxk/AssemblyLine", "max_stars_repo_stars_event_min_datetime": "2021-09-01T03:52:49.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T16:59:58.000Z", "max_issues_repo_path": "test/paddw.asm", "max_issues_repo_name": "killvxk/AssemblyLine", "max_issues_repo_issues_event_min_datetime": "2021-09-10T07:03:36.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-03T23:30:58.000Z", "max_forks_repo_path": "test/paddw.asm", "max_forks_repo_name": "killvxk/AssemblyLine", "max_forks_repo_forks_event_min_datetime": "2021-09-09T10:54:44.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-18T19:56:45.000Z"} | {"max_stars_count": 147, "max_issues_count": 7, "max_forks_count": 19, "avg_line_length": 16.6934306569, "max_line_length": 18, "alphanum_fraction": 0.7715347617} | SECTION .text
GLOBAL test
test:
paddw xmm0, xmm0
paddw xmm0, xmm1
paddw xmm0, xmm2
paddw xmm0, xmm3
paddw xmm0, xmm4
paddw xmm0, xmm5
paddw xmm0, xmm6
paddw xmm0, xmm7
paddw xmm0, xmm8
paddw xmm0, xmm9
paddw xmm0, xmm10
paddw xmm0, xmm11
paddw xmm0, xmm12
paddw xmm0, xmm13
paddw xmm0, xmm14
paddw xmm0, xmm15
paddw xmm1, xmm0
paddw xmm1, xmm1
paddw xmm1, xmm2
paddw xmm1, xmm3
paddw xmm1, xmm4
paddw xmm1, xmm5
paddw xmm1, xmm6
paddw xmm1, xmm7
paddw xmm1, xmm8
paddw xmm1, xmm9
paddw xmm1, xmm10
paddw xmm1, xmm11
paddw xmm1, xmm12
paddw xmm1, xmm13
paddw xmm1, xmm14
paddw xmm1, xmm15
paddw xmm2, xmm0
paddw xmm2, xmm1
paddw xmm2, xmm2
paddw xmm2, xmm3
paddw xmm2, xmm4
paddw xmm2, xmm5
paddw xmm2, xmm6
paddw xmm2, xmm7
paddw xmm2, xmm8
paddw xmm2, xmm9
paddw xmm2, xmm10
paddw xmm2, xmm11
paddw xmm2, xmm12
paddw xmm2, xmm13
paddw xmm2, xmm14
paddw xmm2, xmm15
paddw xmm3, xmm0
paddw xmm3, xmm1
paddw xmm3, xmm2
paddw xmm3, xmm3
paddw xmm3, xmm4
paddw xmm3, xmm5
paddw xmm3, xmm6
paddw xmm3, xmm7
paddw xmm3, xmm8
paddw xmm3, xmm9
paddw xmm3, xmm10
paddw xmm3, xmm11
paddw xmm3, xmm12
paddw xmm3, xmm13
paddw xmm3, xmm14
paddw xmm3, xmm15
paddw xmm4, xmm0
paddw xmm4, xmm1
paddw xmm4, xmm2
paddw xmm4, xmm3
paddw xmm4, xmm4
paddw xmm4, xmm5
paddw xmm4, xmm6
paddw xmm4, xmm7
paddw xmm4, xmm8
paddw xmm4, xmm9
paddw xmm4, xmm10
paddw xmm4, xmm11
paddw xmm4, xmm12
paddw xmm4, xmm13
paddw xmm4, xmm14
paddw xmm4, xmm15
paddw xmm5, xmm0
paddw xmm5, xmm1
paddw xmm5, xmm2
paddw xmm5, xmm3
paddw xmm5, xmm4
paddw xmm5, xmm5
paddw xmm5, xmm6
paddw xmm5, xmm7
paddw xmm5, xmm8
paddw xmm5, xmm9
paddw xmm5, xmm10
paddw xmm5, xmm11
paddw xmm5, xmm12
paddw xmm5, xmm13
paddw xmm5, xmm14
paddw xmm5, xmm15
paddw xmm6, xmm0
paddw xmm6, xmm1
paddw xmm6, xmm2
paddw xmm6, xmm3
paddw xmm6, xmm4
paddw xmm6, xmm5
paddw xmm6, xmm6
paddw xmm6, xmm7
paddw xmm6, xmm8
paddw xmm6, xmm9
paddw xmm6, xmm10
paddw xmm6, xmm11
paddw xmm6, xmm12
paddw xmm6, xmm13
paddw xmm6, xmm14
paddw xmm6, xmm15
paddw xmm7, xmm0
paddw xmm7, xmm1
paddw xmm7, xmm2
paddw xmm7, xmm3
paddw xmm7, xmm4
paddw xmm7, xmm5
paddw xmm7, xmm6
paddw xmm7, xmm7
paddw xmm7, xmm8
paddw xmm7, xmm9
paddw xmm7, xmm10
paddw xmm7, xmm11
paddw xmm7, xmm12
paddw xmm7, xmm13
paddw xmm7, xmm14
paddw xmm7, xmm15
paddw xmm8, xmm0
paddw xmm8, xmm1
paddw xmm8, xmm2
paddw xmm8, xmm3
paddw xmm8, xmm4
paddw xmm8, xmm5
paddw xmm8, xmm6
paddw xmm8, xmm7
paddw xmm8, xmm8
paddw xmm8, xmm9
paddw xmm8, xmm10
paddw xmm8, xmm11
paddw xmm8, xmm12
paddw xmm8, xmm13
paddw xmm8, xmm14
paddw xmm8, xmm15
paddw xmm9, xmm0
paddw xmm9, xmm1
paddw xmm9, xmm2
paddw xmm9, xmm3
paddw xmm9, xmm4
paddw xmm9, xmm5
paddw xmm9, xmm6
paddw xmm9, xmm7
paddw xmm9, xmm8
paddw xmm9, xmm9
paddw xmm9, xmm10
paddw xmm9, xmm11
paddw xmm9, xmm12
paddw xmm9, xmm13
paddw xmm9, xmm14
paddw xmm9, xmm15
paddw xmm10, xmm0
paddw xmm10, xmm1
paddw xmm10, xmm2
paddw xmm10, xmm3
paddw xmm10, xmm4
paddw xmm10, xmm5
paddw xmm10, xmm6
paddw xmm10, xmm7
paddw xmm10, xmm8
paddw xmm10, xmm9
paddw xmm10, xmm10
paddw xmm10, xmm11
paddw xmm10, xmm12
paddw xmm10, xmm13
paddw xmm10, xmm14
paddw xmm10, xmm15
paddw xmm11, xmm0
paddw xmm11, xmm1
paddw xmm11, xmm2
paddw xmm11, xmm3
paddw xmm11, xmm4
paddw xmm11, xmm5
paddw xmm11, xmm6
paddw xmm11, xmm7
paddw xmm11, xmm8
paddw xmm11, xmm9
paddw xmm11, xmm10
paddw xmm11, xmm11
paddw xmm11, xmm12
paddw xmm11, xmm13
paddw xmm11, xmm14
paddw xmm11, xmm15
paddw xmm12, xmm0
paddw xmm12, xmm1
paddw xmm12, xmm2
paddw xmm12, xmm3
paddw xmm12, xmm4
paddw xmm12, xmm5
paddw xmm12, xmm6
paddw xmm12, xmm7
paddw xmm12, xmm8
paddw xmm12, xmm9
paddw xmm12, xmm10
paddw xmm12, xmm11
paddw xmm12, xmm12
paddw xmm12, xmm13
paddw xmm12, xmm14
paddw xmm12, xmm15
paddw xmm13, xmm0
paddw xmm13, xmm1
paddw xmm13, xmm2
paddw xmm13, xmm3
paddw xmm13, xmm4
paddw xmm13, xmm5
paddw xmm13, xmm6
paddw xmm13, xmm7
paddw xmm13, xmm8
paddw xmm13, xmm9
paddw xmm13, xmm10
paddw xmm13, xmm11
paddw xmm13, xmm12
paddw xmm13, xmm13
paddw xmm13, xmm14
paddw xmm13, xmm15
paddw xmm14, xmm0
paddw xmm14, xmm1
paddw xmm14, xmm2
paddw xmm14, xmm3
paddw xmm14, xmm4
paddw xmm14, xmm5
paddw xmm14, xmm6
paddw xmm14, xmm7
paddw xmm14, xmm8
paddw xmm14, xmm9
paddw xmm14, xmm10
paddw xmm14, xmm11
paddw xmm14, xmm12
paddw xmm14, xmm13
paddw xmm14, xmm14
paddw xmm14, xmm15
paddw xmm0, xmm0
paddw xmm0, xmm1
paddw xmm0, xmm2
paddw xmm0, xmm3
paddw xmm0, xmm4
paddw xmm0, xmm5
paddw xmm0, xmm6
paddw xmm0, xmm7
paddw xmm0, xmm8
paddw xmm0, xmm9
paddw xmm0, xmm10
paddw xmm0, xmm11
paddw xmm0, xmm12
paddw xmm0, xmm13
paddw xmm0, xmm14
paddw xmm0, xmm15 |
||||
TheStack | 1d2e41d6cc5945da3fa763d5d63ba1531316772c | Assemblycode:Assembly | {"size": 678, "ext": "asm", "max_stars_repo_path": "mem/dos/16bit/DosReallocSeg.asm", "max_stars_repo_name": "osfree-project/FamilyAPI", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "mem/dos/16bit/DosReallocSeg.asm", "max_issues_repo_name": "osfree-project/FamilyAPI", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "mem/dos/16bit/DosReallocSeg.asm", "max_forks_repo_name": "osfree-project/FamilyAPI", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.8421052632, "max_line_length": 69, "alphanum_fraction": 0.7182890855} | ;/*!
; @file
;
; @ingroup fapi
;
; @brief DosMemAvail DOS wrapper
;
; (c) osFree Project 2021, <http://www.osFree.org>
; for licence see licence.txt in root directory, or project website
;
; This is Family API implementation for DOS, used with BIND tools
; to link required API
;
; @author Yuri Prokushev ([email protected])
;
; Documentation: http://osfree.org/doku/en:docs:fapi:dosmemavail
;
;*/
.8086
INCLUDE GlobalVars.inc
EXTERN DOS16PREALLOCSEG: PROC
EXTERN DOS16RREALLOCSEG: PROC
_TEXT segment byte public 'CODE'
DOSREALLOCSEG PROC
CMP DPMI, 0FFFFH
JZ DOS16PREALLOCSEG
JMP DOS16RREALLOCSEG
DOSREALLOCSEG ENDP
_TEXT ends
end
|
||||
TheStack | d64849f7f7382752053fb6d8af8201a15606181f | Assemblycode:Assembly | {"size": 1775, "ext": "asm", "max_stars_repo_path": "Snippeturi/modele/2/1/thule.asm", "max_stars_repo_name": "DanBrezeanu/IOCLA", "max_stars_repo_stars_event_min_datetime": "2019-11-18T15:56:21.000Z", "max_stars_repo_stars_event_max_datetime": "2020-01-18T01:22:37.000Z", "max_issues_repo_path": "Snippeturi/modele/2/1/thule.asm", "max_issues_repo_name": "zatbogdan99/IOCLA", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Snippeturi/modele/2/1/thule.asm", "max_forks_repo_name": "zatbogdan99/IOCLA", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.9292929293, "max_line_length": 123, "alphanum_fraction": 0.6343661972} | %include "io.inc"
section .data
word_num1 dd 0xff543210
word_num2 dd 0x00111111
result_word resd 1
big_num1 dd 0x11111111, 0x22222222, 0x33333333
big_num2 dd 0xffffffff, 0x22222222, 0x33333333
result_4word resd 4
num_array1 dd 0x11111111, 0x22222222, 0x33333333, 0x12111211, 0x22232242, 0xff333333, 0xff123456, 0xff123456, 0xff123456
num_array2 dd 0xffffffff, 0x22922252, 0x33033338, 0x12111211, 0x22232242, 0xff333333, 0xff123456, 0xff123456, 0xff123456
result_array resd 12
length dd 3
section .text
global main
main:
push ebp
mov ebp, esp
mov eax, [word_num1]
add eax, [word_num2]
mov [result_word], eax
PRINT_HEX 4, [result_word]
NEWLINE
NEWLINE
xor ecx, ecx
pushfd
add_12_num:
popfd
mov eax, [big_num1 + ecx * 4]
adc eax, [big_num2 + ecx * 4]
mov [result_4word + ecx * 4], eax
pushfd
inc ecx
cmp ecx, 3
jne add_12_num
mov ecx, 3
print_12_num:
PRINT_HEX 4, [result_4word + (ecx - 1) * 4]
loop print_12_num
NEWLINE
NEWLINE
xor edx, edx
xor ebx, ebx
add_vect:
xor ecx, ecx
add_3:
mov eax, [num_array1 + ecx * 4 + edx]
add eax, [num_array2 + ecx * 4 + edx]
jnc put_result
add dword [result_array + ecx * 4 + ebx + 4], 1
put_result:
add [result_array + ecx * 4 + ebx], eax
inc ecx
cmp ecx, 3
jne add_3
add edx, 12
add ebx, 16
cmp edx, 36
jl add_vect
xor edx, edx
print_vect:
mov ecx, 3
cmp dword [result_array + edx + 12], 0
je print_3
PRINT_HEX 4, [result_array + edx + 12]
print_3:
PRINT_HEX 4, [result_array + (ecx - 1) * 4 + edx]
loop print_3
NEWLINE
add edx, 16
cmp edx, 48
jne print_vect
leave
ret
|
||||
TheStack | 9158a483b3e1762ad233fa96d7f96036e964aa82 | Assemblycode:Assembly | {"size": 1024, "ext": "asm", "max_stars_repo_path": "programs/oeis/254/A254729.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "programs/oeis/254/A254729.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/254/A254729.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 64.0, "max_line_length": 731, "alphanum_fraction": 0.80859375} | ; A254729: Number of numbers j + k*sqrt(2) of length n, where the length is the least number of steps to reach 0, the allowable steps being x -> x + 1 and x -> x*sqrt(2).
; 1,1,2,3,4,7,11,18,29,47,76,123,199,322,521,843,1364,2207,3571,5778,9349,15127,24476,39603,64079,103682,167761,271443,439204,710647,1149851,1860498,3010349,4870847,7881196,12752043,20633239,33385282,54018521,87403803,141422324,228826127,370248451,599074578,969323029,1568397607,2537720636,4106118243,6643838879,10749957122,17393796001,28143753123,45537549124,73681302247,119218851371,192900153618,312119004989,505019158607,817138163596,1322157322203,2139295485799,3461452808002,5600748293801,9062201101803,14662949395604,23725150497407,38388099893011,62113250390418,100501350283429,162614600673847,263115950957276,425730551631123,688846502588399,1114577054219522,1803423556807921,2918000611027443,4721424167835364,7639424778862807
mov $3,$0
sub $0,1
sub $3,2
lpb $0,1
add $2,2
trn $2,$0
sub $0,1
mov $1,$2
mov $2,$3
add $3,$1
lpe
add $1,1
|
||||
TheStack | 5e2ba22370e365a3b6c8eafe17bc07f5ef921de7 | Assemblycode:Assembly | {"size": 466, "ext": "asm", "max_stars_repo_path": "oeis/337/A337297.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "oeis/337/A337297.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "oeis/337/A337297.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.5263157895, "max_line_length": 218, "alphanum_fraction": 0.6266094421} | ; A337297: Sum of the coordinates of all pairs of divisors of n, (d1,d2), such that d1 < d2.
; 0,3,4,14,6,36,8,45,26,54,12,140,14,72,72,124,18,195,20,210,96,108,24,420,62,126,120,280,30,504,32,315,144,162,144,728,38,180,168,630,42,672,44,420,390,216,48,1116,114,465,216,490,54,840,216,840,240,270,60,1848,62,288
add $0,1
mov $2,$0
lpb $0
mov $3,$2
dif $3,$0
cmp $3,$2
cmp $3,0
add $1,$3
mul $3,$0
sub $0,1
add $4,$3
lpe
add $4,1
mul $1,$4
mov $0,$1
|
||||
TheStack | 413be728ab470e2070d12a4938aced0c5c2c3d51 | Assemblycode:Assembly | {"size": 573, "ext": "asm", "max_stars_repo_path": "programs/oeis/273/A273324.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/273/A273324.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/273/A273324.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 44.0769230769, "max_line_length": 361, "alphanum_fraction": 0.687609075} | ; A273324: Integers n such that n^2 + 3 is the sum of 4 but no fewer nonzero squares.
; 2,5,6,10,11,14,18,21,22,26,27,30,34,37,38,42,43,46,50,53,54,58,59,62,66,69,70,74,75,78,82,85,86,90,91,94,98,101,102,106,107,110,114,117,118,122,123,126,130,133,134,138,139,142,146,149,150,154,155,158,162,165,166,170,171,174,178,181,182,186,187,190,194,197,198,202,203,206,210,213,214,218,219,222,226,229,230,234,235,238,242,245,246,250,251,254,258,261,262,266
lpb $0
sub $0,1
mov $2,$0
max $2,0
seq $2,278536 ; First differences of A273324.
add $1,$2
lpe
add $1,2
mov $0,$1
|
||||
TheStack | 5beca10d95dfae1c55f2089f5798310a2e5740b7 | Assemblycode:Assembly | {"size": 363, "ext": "asm", "max_stars_repo_path": "programs/oeis/239/A239692.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/239/A239692.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/239/A239692.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 60.5, "max_line_length": 230, "alphanum_fraction": 0.6005509642} | ; A239692: Base 6 sum of digits of prime(n).
; 2,3,5,2,6,3,7,4,8,9,6,2,6,3,7,8,9,6,7,11,3,4,8,9,7,11,8,12,4,8,7,11,12,9,9,6,7,8,12,13,14,6,11,8,12,9,11,3,7,4,8,9,6,11,7,8,9,6,7,11,8,8,7,11,8,12,6,7,12,9,13,14,7,8,9,13,14,7,11,9,14,11,16,3,4,8,9,7,11,8,12,9,7,11,9,13,9,11,8,6
seq $0,40 ; The prime numbers.
seq $0,53827 ; Sum of digits of (n written in base 6).
|
||||
TheStack | 683a4e41afbc3db0c4a2929aa3ce2a90269eb2d6 | Assemblycode:Assembly | {"size": 1722, "ext": "asm", "max_stars_repo_path": "programs/oeis/215/A215885.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/215/A215885.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/215/A215885.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 114.8, "max_line_length": 1534, "alphanum_fraction": 0.8931475029} | ; A215885: a(n) = 3*a(n-1) - a(n-3), with a(0) = 3, a(1) = 3, and a(2) = 9.
; 3,3,9,24,69,198,570,1641,4725,13605,39174,112797,324786,935184,2692755,7753479,22325253,64283004,185095533,532961346,1534601034,4418707569,12723161361,36634883049,105485941578,303734663373,874569107070,2518221379632,7250929475523,20878219319499,60116436578865,173098380261072,498416921463717,1435134327812286,4132304603175786,11898496888063641,34260356336378637,98648764405960125,284047796329816734,817883032653071565,2355000333553254570,6780953204329946976,19524976580336769363,56219929407457053519,161878835018041213581,466111528473786871380,1342114656013903560621,3864465133023669468282,11127283870597221533466,32039736955777761039777,92254745734309613651049,265636953332331619419681,764871123041217097219266,2202358623389341678006749,6341438916835693414600566,18259445627465863146582432,52575978259008247761740547,151386495860189049870621075,435900041953101286465280793,1255124147600295611634101832,3613985946940697785031684421,10406057798868992068629772470,29963049249006680594255215578,86275161800079343997733962313,248419427601369039924572114469,715295233555100439179461127829,2059610538865221973540649421174,5930412188994296880697376149053,17075941333427790202912667319330,49168213461418148635197352536816,141574228195260149024894681461395,407646743252352656871771377064855,1173772016295639821980116778657749,3379741820691659316915455654511852,9731578718822625293874595586470701,28020964140172236059643669980754354,80683150599825048862015554287751210,232317873080652521292172067276782929,668932655101785327816872531849594433
mov $1,3
mov $3,3
lpb $0
sub $0,1
mov $2,$1
mov $1,$3
add $4,$3
add $2,$4
add $3,$2
lpe
mov $0,$1
|
||||
TheStack | 41480227f511b93bb5a229193ba48b74b83a7e10 | Assemblycode:Assembly | {"size": 50799, "ext": "asm", "max_stars_repo_path": "target/cos_117/disasm/iop_overlay1/XDISKB.asm", "max_stars_repo_name": "jrrk2/cray-sim", "max_stars_repo_stars_event_min_datetime": "2020-10-09T12:29:16.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-12T02:33:35.000Z", "max_issues_repo_path": "target/cos_117/disasm/iop_overlay1/XDISKB.asm", "max_issues_repo_name": "jrrk2/cray-sim", "max_issues_repo_issues_event_min_datetime": "2021-12-29T15:59:25.000Z", "max_issues_repo_issues_event_max_datetime": "2021-12-29T15:59:25.000Z", "max_forks_repo_path": "target/cos_117/disasm/iop_overlay1/XDISKB.asm", "max_forks_repo_name": "jrrk2/cray-sim", "max_forks_repo_forks_event_min_datetime": "2021-04-12T06:10:32.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-08T23:11:19.000Z"} | {"max_stars_count": 49, "max_issues_count": 1, "max_forks_count": 6, "avg_line_length": 79.7472527473, "max_line_length": 127, "alphanum_fraction": 0.4712297486} | 0x0000 (0x000000) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0001 (0x000002) 0x291A- f:00024 d: 282 | OR[282] = A
0x0002 (0x000004) 0x2118- f:00020 d: 280 | A = OR[280]
0x0003 (0x000006) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x0004 (0x000008) 0x2908- f:00024 d: 264 | OR[264] = A
0x0005 (0x00000A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0006 (0x00000C) 0x291B- f:00024 d: 283 | OR[283] = A
0x0007 (0x00000E) 0x2118- f:00020 d: 280 | A = OR[280]
0x0008 (0x000010) 0x1413- f:00012 d: 19 | A = A + 19 (0x0013)
0x0009 (0x000012) 0x2908- f:00024 d: 264 | OR[264] = A
0x000A (0x000014) 0x3108- f:00030 d: 264 | A = (OR[264])
0x000B (0x000016) 0x291C- f:00024 d: 284 | OR[284] = A
0x000C (0x000018) 0x2118- f:00020 d: 280 | A = OR[280]
0x000D (0x00001A) 0x1414- f:00012 d: 20 | A = A + 20 (0x0014)
0x000E (0x00001C) 0x2908- f:00024 d: 264 | OR[264] = A
0x000F (0x00001E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0010 (0x000020) 0x291D- f:00024 d: 285 | OR[285] = A
0x0011 (0x000022) 0x2118- f:00020 d: 280 | A = OR[280]
0x0012 (0x000024) 0x1415- f:00012 d: 21 | A = A + 21 (0x0015)
0x0013 (0x000026) 0x2908- f:00024 d: 264 | OR[264] = A
0x0014 (0x000028) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0015 (0x00002A) 0x291E- f:00024 d: 286 | OR[286] = A
0x0016 (0x00002C) 0x2118- f:00020 d: 280 | A = OR[280]
0x0017 (0x00002E) 0x1416- f:00012 d: 22 | A = A + 22 (0x0016)
0x0018 (0x000030) 0x2908- f:00024 d: 264 | OR[264] = A
0x0019 (0x000032) 0x3108- f:00030 d: 264 | A = (OR[264])
0x001A (0x000034) 0x291F- f:00024 d: 287 | OR[287] = A
0x001B (0x000036) 0x2118- f:00020 d: 280 | A = OR[280]
0x001C (0x000038) 0x1407- f:00012 d: 7 | A = A + 7 (0x0007)
0x001D (0x00003A) 0x2908- f:00024 d: 264 | OR[264] = A
0x001E (0x00003C) 0x3108- f:00030 d: 264 | A = (OR[264])
0x001F (0x00003E) 0x2920- f:00024 d: 288 | OR[288] = A
0x0020 (0x000040) 0x2118- f:00020 d: 280 | A = OR[280]
0x0021 (0x000042) 0x1417- f:00012 d: 23 | A = A + 23 (0x0017)
0x0022 (0x000044) 0x2908- f:00024 d: 264 | OR[264] = A
0x0023 (0x000046) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0024 (0x000048) 0x2921- f:00024 d: 289 | OR[289] = A
0x0025 (0x00004A) 0x2119- f:00020 d: 281 | A = OR[281]
0x0026 (0x00004C) 0x8405- f:00102 d: 5 | P = P + 5 (0x002B), A = 0
0x0027 (0x00004E) 0x2119- f:00020 d: 281 | A = OR[281]
0x0028 (0x000050) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x0029 (0x000052) 0x8402- f:00102 d: 2 | P = P + 2 (0x002B), A = 0
0x002A (0x000054) 0x700F- f:00070 d: 15 | P = P + 15 (0x0039)
0x002B (0x000056) 0x74BE- f:00072 d: 190 | R = P + 190 (0x00E9)
0x002C (0x000058) 0x2119- f:00020 d: 281 | A = OR[281]
0x002D (0x00005A) 0x8402- f:00102 d: 2 | P = P + 2 (0x002F), A = 0
0x002E (0x00005C) 0x7005- f:00070 d: 5 | P = P + 5 (0x0033)
0x002F (0x00005E) 0x1800-0x02C4 f:00014 d: 0 | A = 708 (0x02C4)
0x0031 (0x000062) 0x2922- f:00024 d: 290 | OR[290] = A
0x0032 (0x000064) 0x7004- f:00070 d: 4 | P = P + 4 (0x0036)
0x0033 (0x000066) 0x1800-0x02C5 f:00014 d: 0 | A = 709 (0x02C5)
0x0035 (0x00006A) 0x2922- f:00024 d: 290 | OR[290] = A
0x0036 (0x00006C) 0x7E03-0x0226 f:00077 d: 3 | R = OR[3]+550 (0x0226)
0x0038 (0x000070) 0x70A6- f:00070 d: 166 | P = P + 166 (0x00DE)
0x0039 (0x000072) 0x2119- f:00020 d: 281 | A = OR[281]
0x003A (0x000074) 0x1602- f:00013 d: 2 | A = A - 2 (0x0002)
0x003B (0x000076) 0x8402- f:00102 d: 2 | P = P + 2 (0x003D), A = 0
0x003C (0x000078) 0x70A0- f:00070 d: 160 | P = P + 160 (0x00DC)
0x003D (0x00007A) 0x2118- f:00020 d: 280 | A = OR[280]
0x003E (0x00007C) 0x140E- f:00012 d: 14 | A = A + 14 (0x000E)
0x003F (0x00007E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0040 (0x000080) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0041 (0x000082) 0x2923- f:00024 d: 291 | OR[291] = A
0x0042 (0x000084) 0x2118- f:00020 d: 280 | A = OR[280]
0x0043 (0x000086) 0x1410- f:00012 d: 16 | A = A + 16 (0x0010)
0x0044 (0x000088) 0x2908- f:00024 d: 264 | OR[264] = A
0x0045 (0x00008A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0046 (0x00008C) 0x2924- f:00024 d: 292 | OR[292] = A
0x0047 (0x00008E) 0x2124- f:00020 d: 292 | A = OR[292]
0x0048 (0x000090) 0x1A00-0x0200 f:00015 d: 0 | A = A & 512 (0x0200)
0x004A (0x000094) 0x2908- f:00024 d: 264 | OR[264] = A
0x004B (0x000096) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x004C (0x000098) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x004D (0x00009A) 0x8602- f:00103 d: 2 | P = P + 2 (0x004F), A # 0
0x004E (0x00009C) 0x700B- f:00070 d: 11 | P = P + 11 (0x0059)
0x004F (0x00009E) 0x1800-0x02D0 f:00014 d: 0 | A = 720 (0x02D0)
0x0051 (0x0000A2) 0x2922- f:00024 d: 290 | OR[290] = A
0x0052 (0x0000A4) 0x755E- f:00072 d: 350 | R = P + 350 (0x01B0)
0x0053 (0x0000A6) 0x211A- f:00020 d: 282 | A = OR[282]
0x0054 (0x0000A8) 0x9495- f:00112 d: 149 | R = P + 149 (0x00E9), A = 0
0x0055 (0x0000AA) 0x211A- f:00020 d: 282 | A = OR[282]
0x0056 (0x0000AC) 0xBE03-0x0226 f:00137 d: 3 | R = OR[3]+550 (0x0226), A # 0
0x0058 (0x0000B0) 0x7083- f:00070 d: 131 | P = P + 131 (0x00DB)
0x0059 (0x0000B2) 0x2124- f:00020 d: 292 | A = OR[292]
0x005A (0x0000B4) 0x1A00-0x1000 f:00015 d: 0 | A = A & 4096 (0x1000)
0x005C (0x0000B8) 0x2908- f:00024 d: 264 | OR[264] = A
0x005D (0x0000BA) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x005E (0x0000BC) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x005F (0x0000BE) 0x8402- f:00102 d: 2 | P = P + 2 (0x0061), A = 0
0x0060 (0x0000C0) 0x700B- f:00070 d: 11 | P = P + 11 (0x006B)
0x0061 (0x0000C2) 0x1800-0x0202 f:00014 d: 0 | A = 514 (0x0202)
0x0063 (0x0000C6) 0x2922- f:00024 d: 290 | OR[290] = A
0x0064 (0x0000C8) 0x754C- f:00072 d: 332 | R = P + 332 (0x01B0)
0x0065 (0x0000CA) 0x211A- f:00020 d: 282 | A = OR[282]
0x0066 (0x0000CC) 0x9483- f:00112 d: 131 | R = P + 131 (0x00E9), A = 0
0x0067 (0x0000CE) 0x211A- f:00020 d: 282 | A = OR[282]
0x0068 (0x0000D0) 0xBE03-0x0226 f:00137 d: 3 | R = OR[3]+550 (0x0226), A # 0
0x006A (0x0000D4) 0x7071- f:00070 d: 113 | P = P + 113 (0x00DB)
0x006B (0x0000D6) 0x2124- f:00020 d: 292 | A = OR[292]
0x006C (0x0000D8) 0x1240- f:00011 d: 64 | A = A & 64 (0x0040)
0x006D (0x0000DA) 0x2908- f:00024 d: 264 | OR[264] = A
0x006E (0x0000DC) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x006F (0x0000DE) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x0070 (0x0000E0) 0x8602- f:00103 d: 2 | P = P + 2 (0x0072), A # 0
0x0071 (0x0000E2) 0x700C- f:00070 d: 12 | P = P + 12 (0x007D)
0x0072 (0x0000E4) 0x211C- f:00020 d: 284 | A = OR[284]
0x0073 (0x0000E6) 0x2925- f:00024 d: 293 | OR[293] = A
0x0074 (0x0000E8) 0x1080- f:00010 d: 128 | A = 128 (0x0080)
0x0075 (0x0000EA) 0x291C- f:00024 d: 284 | OR[284] = A
0x0076 (0x0000EC) 0x7473- f:00072 d: 115 | R = P + 115 (0x00E9)
0x0077 (0x0000EE) 0x1800-0x02C9 f:00014 d: 0 | A = 713 (0x02C9)
0x0079 (0x0000F2) 0x2922- f:00024 d: 290 | OR[290] = A
0x007A (0x0000F4) 0x7E03-0x0226 f:00077 d: 3 | R = OR[3]+550 (0x0226)
0x007C (0x0000F8) 0x705F- f:00070 d: 95 | P = P + 95 (0x00DB)
0x007D (0x0000FA) 0x2124- f:00020 d: 292 | A = OR[292]
0x007E (0x0000FC) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x007F (0x0000FE) 0x2908- f:00024 d: 264 | OR[264] = A
0x0080 (0x000100) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0081 (0x000102) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x0082 (0x000104) 0x8602- f:00103 d: 2 | P = P + 2 (0x0084), A # 0
0x0083 (0x000106) 0x7008- f:00070 d: 8 | P = P + 8 (0x008B)
0x0084 (0x000108) 0x7465- f:00072 d: 101 | R = P + 101 (0x00E9)
0x0085 (0x00010A) 0x1800-0x02C7 f:00014 d: 0 | A = 711 (0x02C7)
0x0087 (0x00010E) 0x2922- f:00024 d: 290 | OR[290] = A
0x0088 (0x000110) 0x7E03-0x0226 f:00077 d: 3 | R = OR[3]+550 (0x0226)
0x008A (0x000114) 0x7051- f:00070 d: 81 | P = P + 81 (0x00DB)
0x008B (0x000116) 0x2123- f:00020 d: 291 | A = OR[291]
0x008C (0x000118) 0x1204- f:00011 d: 4 | A = A & 4 (0x0004)
0x008D (0x00011A) 0x2908- f:00024 d: 264 | OR[264] = A
0x008E (0x00011C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x008F (0x00011E) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x0090 (0x000120) 0x8602- f:00103 d: 2 | P = P + 2 (0x0092), A # 0
0x0091 (0x000122) 0x7008- f:00070 d: 8 | P = P + 8 (0x0099)
0x0092 (0x000124) 0x7457- f:00072 d: 87 | R = P + 87 (0x00E9)
0x0093 (0x000126) 0x1800-0x02C8 f:00014 d: 0 | A = 712 (0x02C8)
0x0095 (0x00012A) 0x2922- f:00024 d: 290 | OR[290] = A
0x0096 (0x00012C) 0x7E03-0x0226 f:00077 d: 3 | R = OR[3]+550 (0x0226)
0x0098 (0x000130) 0x7043- f:00070 d: 67 | P = P + 67 (0x00DB)
0x0099 (0x000132) 0x2123- f:00020 d: 291 | A = OR[291]
0x009A (0x000134) 0x1270- f:00011 d: 112 | A = A & 112 (0x0070)
0x009B (0x000136) 0x2908- f:00024 d: 264 | OR[264] = A
0x009C (0x000138) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x009D (0x00013A) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x009E (0x00013C) 0x8602- f:00103 d: 2 | P = P + 2 (0x00A0), A # 0
0x009F (0x00013E) 0x7023- f:00070 d: 35 | P = P + 35 (0x00C2)
0x00A0 (0x000140) 0x7449- f:00072 d: 73 | R = P + 73 (0x00E9)
0x00A1 (0x000142) 0x211A- f:00020 d: 282 | A = OR[282]
0x00A2 (0x000144) 0x8602- f:00103 d: 2 | P = P + 2 (0x00A4), A # 0
0x00A3 (0x000146) 0x7003- f:00070 d: 3 | P = P + 3 (0x00A6)
0x00A4 (0x000148) 0x1009- f:00010 d: 9 | A = 9 (0x0009)
0x00A5 (0x00014A) 0x291A- f:00024 d: 282 | OR[282] = A
0x00A6 (0x00014C) 0x2123- f:00020 d: 291 | A = OR[291]
0x00A7 (0x00014E) 0x1240- f:00011 d: 64 | A = A & 64 (0x0040)
0x00A8 (0x000150) 0x2908- f:00024 d: 264 | OR[264] = A
0x00A9 (0x000152) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00AA (0x000154) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x00AB (0x000156) 0x8602- f:00103 d: 2 | P = P + 2 (0x00AD), A # 0
0x00AC (0x000158) 0x7005- f:00070 d: 5 | P = P + 5 (0x00B1)
0x00AD (0x00015A) 0x1800-0x02CE f:00014 d: 0 | A = 718 (0x02CE)
0x00AF (0x00015E) 0x2922- f:00024 d: 290 | OR[290] = A
0x00B0 (0x000160) 0x700F- f:00070 d: 15 | P = P + 15 (0x00BF)
0x00B1 (0x000162) 0x2123- f:00020 d: 291 | A = OR[291]
0x00B2 (0x000164) 0x1220- f:00011 d: 32 | A = A & 32 (0x0020)
0x00B3 (0x000166) 0x2908- f:00024 d: 264 | OR[264] = A
0x00B4 (0x000168) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00B5 (0x00016A) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x00B6 (0x00016C) 0x8602- f:00103 d: 2 | P = P + 2 (0x00B8), A # 0
0x00B7 (0x00016E) 0x7005- f:00070 d: 5 | P = P + 5 (0x00BC)
0x00B8 (0x000170) 0x1800-0x02CC f:00014 d: 0 | A = 716 (0x02CC)
0x00BA (0x000174) 0x2922- f:00024 d: 290 | OR[290] = A
0x00BB (0x000176) 0x7004- f:00070 d: 4 | P = P + 4 (0x00BF)
0x00BC (0x000178) 0x1800-0x02CB f:00014 d: 0 | A = 715 (0x02CB)
0x00BE (0x00017C) 0x2922- f:00024 d: 290 | OR[290] = A
0x00BF (0x00017E) 0x7E03-0x0226 f:00077 d: 3 | R = OR[3]+550 (0x0226)
0x00C1 (0x000182) 0x701A- f:00070 d: 26 | P = P + 26 (0x00DB)
0x00C2 (0x000184) 0x2123- f:00020 d: 291 | A = OR[291]
0x00C3 (0x000186) 0x1280- f:00011 d: 128 | A = A & 128 (0x0080)
0x00C4 (0x000188) 0x2908- f:00024 d: 264 | OR[264] = A
0x00C5 (0x00018A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00C6 (0x00018C) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x00C7 (0x00018E) 0x8602- f:00103 d: 2 | P = P + 2 (0x00C9), A # 0
0x00C8 (0x000190) 0x700D- f:00070 d: 13 | P = P + 13 (0x00D5)
0x00C9 (0x000192) 0x7420- f:00072 d: 32 | R = P + 32 (0x00E9)
0x00CA (0x000194) 0x211A- f:00020 d: 282 | A = OR[282]
0x00CB (0x000196) 0x8602- f:00103 d: 2 | P = P + 2 (0x00CD), A # 0
0x00CC (0x000198) 0x7003- f:00070 d: 3 | P = P + 3 (0x00CF)
0x00CD (0x00019A) 0x1009- f:00010 d: 9 | A = 9 (0x0009)
0x00CE (0x00019C) 0x291A- f:00024 d: 282 | OR[282] = A
0x00CF (0x00019E) 0x1800-0x02CF f:00014 d: 0 | A = 719 (0x02CF)
0x00D1 (0x0001A2) 0x2922- f:00024 d: 290 | OR[290] = A
0x00D2 (0x0001A4) 0x7E03-0x0226 f:00077 d: 3 | R = OR[3]+550 (0x0226)
0x00D4 (0x0001A8) 0x7007- f:00070 d: 7 | P = P + 7 (0x00DB)
0x00D5 (0x0001AA) 0x7414- f:00072 d: 20 | R = P + 20 (0x00E9)
0x00D6 (0x0001AC) 0x1800-0x02C6 f:00014 d: 0 | A = 710 (0x02C6)
0x00D8 (0x0001B0) 0x2922- f:00024 d: 290 | OR[290] = A
0x00D9 (0x0001B2) 0x7E03-0x0226 f:00077 d: 3 | R = OR[3]+550 (0x0226)
0x00DB (0x0001B6) 0x7003- f:00070 d: 3 | P = P + 3 (0x00DE)
0x00DC (0x0001B8) 0x7C34- f:00076 d: 52 | R = OR[52]
0x00DD (0x0001BA) 0x0000- f:00000 d: 0 | PASS
0x00DE (0x0001BC) 0x2005- f:00020 d: 5 | A = OR[5]
0x00DF (0x0001BE) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x00E0 (0x0001C0) 0x2908- f:00024 d: 264 | OR[264] = A
0x00E1 (0x0001C2) 0x211A- f:00020 d: 282 | A = OR[282]
0x00E2 (0x0001C4) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00E3 (0x0001C6) 0x102A- f:00010 d: 42 | A = 42 (0x002A)
0x00E4 (0x0001C8) 0x2928- f:00024 d: 296 | OR[296] = A
0x00E5 (0x0001CA) 0x1128- f:00010 d: 296 | A = 296 (0x0128)
0x00E6 (0x0001CC) 0x5800- f:00054 d: 0 | B = A
0x00E7 (0x0001CE) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00E8 (0x0001D0) 0x7C09- f:00076 d: 9 | R = OR[9]
@ Here we exit
0x00E9 (0x0001D2) 0x1010- f:00010 d: 16 | A = 16 (0x0010)
0x00EA (0x0001D4) 0x2926- f:00024 d: 294 | OR[294] = A
0x00EB (0x0001D6) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00EC (0x0001D8) 0x291A- f:00024 d: 282 | OR[282] = A
0x00ED (0x0001DA) 0x2126- f:00020 d: 294 | A = OR[294]
0x00EE (0x0001DC) 0x8498- f:00102 d: 152 | P = P + 152 (0x0186), A = 0
0x00EF (0x0001DE) 0x2124- f:00020 d: 292 | A = OR[292]
0x00F0 (0x0001E0) 0x1240- f:00011 d: 64 | A = A & 64 (0x0040)
0x00F1 (0x0001E2) 0x2908- f:00024 d: 264 | OR[264] = A
0x00F2 (0x0001E4) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00F3 (0x0001E6) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x00F4 (0x0001E8) 0x8602- f:00103 d: 2 | P = P + 2 (0x00F6), A # 0
0x00F5 (0x0001EA) 0x7008- f:00070 d: 8 | P = P + 8 (0x00FD)
0x00F6 (0x0001EC) 0x1080- f:00010 d: 128 | A = 128 (0x0080)
0x00F7 (0x0001EE) 0xD80F- f:00154 d: 15 | io 0017, fn014 | **** Undefined function ****
0x00F8 (0x0001F0) 0x7491- f:00072 d: 145 | R = P + 145 (0x0189)
0x00F9 (0x0001F2) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x00FA (0x0001F4) 0xDE0F- f:00157 d: 15 | io 0017, fn017 | **** Undefined function ****
0x00FB (0x0001F6) 0x748E- f:00072 d: 142 | R = P + 142 (0x0189)
0x00FC (0x0001F8) 0x749D- f:00072 d: 157 | R = P + 157 (0x0199)
0x00FD (0x0001FA) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00FE (0x0001FC) 0x2923- f:00024 d: 291 | OR[291] = A
0x00FF (0x0001FE) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0100 (0x000200) 0x2924- f:00024 d: 292 | OR[292] = A
0x0101 (0x000202) 0x1100- f:00010 d: 256 | A = 256 (0x0100)
0x0102 (0x000204) 0xD80F- f:00154 d: 15 | io 0017, fn014 | **** Undefined function ****
0x0103 (0x000206) 0x7486- f:00072 d: 134 | R = P + 134 (0x0189)
0x0104 (0x000208) 0x211D- f:00020 d: 285 | A = OR[285]
0x0105 (0x00020A) 0xDC0F- f:00156 d: 15 | io 0017, fn016 | **** Undefined function ****
0x0106 (0x00020C) 0x7483- f:00072 d: 131 | R = P + 131 (0x0189)
0x0107 (0x00020E) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x0108 (0x000210) 0xDE0F- f:00157 d: 15 | io 0017, fn017 | **** Undefined function ****
0x0109 (0x000212) 0x7480- f:00072 d: 128 | R = P + 128 (0x0189)
0x010A (0x000214) 0x748F- f:00072 d: 143 | R = P + 143 (0x0199)
0x010B (0x000216) 0x211C- f:00020 d: 284 | A = OR[284]
0x010C (0x000218) 0xD80F- f:00154 d: 15 | io 0017, fn014 | **** Undefined function ****
0x010D (0x00021A) 0x747C- f:00072 d: 124 | R = P + 124 (0x0189)
0x010E (0x00021C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x010F (0x00021E) 0x2720- f:00023 d: 288 | A = A - OR[288]
0x0110 (0x000220) 0x1220- f:00011 d: 32 | A = A & 32 (0x0020)
0x0111 (0x000222) 0x290D- f:00024 d: 269 | OR[269] = A
0x0112 (0x000224) 0x211F- f:00020 d: 287 | A = OR[287]
0x0113 (0x000226) 0x1220- f:00011 d: 32 | A = A & 32 (0x0020)
0x0114 (0x000228) 0x0A05- f:00005 d: 5 | A = A < 5 (0x0005)
0x0115 (0x00022A) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x0116 (0x00022C) 0xDC0F- f:00156 d: 15 | io 0017, fn016 | **** Undefined function ****
0x0117 (0x00022E) 0x7472- f:00072 d: 114 | R = P + 114 (0x0189)
0x0118 (0x000230) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0119 (0x000232) 0x2720- f:00023 d: 288 | A = A - OR[288]
0x011A (0x000234) 0x121F- f:00011 d: 31 | A = A & 31 (0x001F)
0x011B (0x000236) 0x290D- f:00024 d: 269 | OR[269] = A
0x011C (0x000238) 0x211F- f:00020 d: 287 | A = OR[287]
0x011D (0x00023A) 0x121F- f:00011 d: 31 | A = A & 31 (0x001F)
0x011E (0x00023C) 0x0A05- f:00005 d: 5 | A = A < 5 (0x0005)
0x011F (0x00023E) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x0120 (0x000240) 0x290D- f:00024 d: 269 | OR[269] = A
0x0121 (0x000242) 0x211E- f:00020 d: 286 | A = OR[286]
0x0122 (0x000244) 0x121F- f:00011 d: 31 | A = A & 31 (0x001F)
0x0123 (0x000246) 0x0A0A- f:00005 d: 10 | A = A < 10 (0x000A)
0x0124 (0x000248) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x0125 (0x00024A) 0xDC0F- f:00156 d: 15 | io 0017, fn016 | **** Undefined function ****
0x0126 (0x00024C) 0x7463- f:00072 d: 99 | R = P + 99 (0x0189)
0x0127 (0x00024E) 0x2121- f:00020 d: 289 | A = OR[289]
0x0128 (0x000250) 0xDA0F- f:00155 d: 15 | io 0017, fn015 | **** Undefined function ****
0x0129 (0x000252) 0x7460- f:00072 d: 96 | R = P + 96 (0x0189)
0x012A (0x000254) 0x2123- f:00020 d: 291 | A = OR[291]
0x012B (0x000256) 0x8402- f:00102 d: 2 | P = P + 2 (0x012D), A = 0
0x012C (0x000258) 0x7058- f:00070 d: 88 | P = P + 88 (0x0184)
0x012D (0x00025A) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x012E (0x00025C) 0xDE0F- f:00157 d: 15 | io 0017, fn017 | **** Undefined function ****
0x012F (0x00025E) 0x745A- f:00072 d: 90 | R = P + 90 (0x0189)
0x0130 (0x000260) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0131 (0x000262) 0xCC0F- f:00146 d: 15 | io 0017, fn006 | **** Undefined function ****
0x0132 (0x000264) 0x2118- f:00020 d: 280 | A = OR[280]
0x0133 (0x000266) 0x1411- f:00012 d: 17 | A = A + 17 (0x0011)
0x0134 (0x000268) 0x2908- f:00024 d: 264 | OR[264] = A
0x0135 (0x00026A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0136 (0x00026C) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x0137 (0x00026E) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0138 (0x000270) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x0139 (0x000272) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x013A (0x000274) 0x0400- f:00002 d: 0 | I = 0
0x013B (0x000276) 0x0000- f:00000 d: 0 | PASS
0x013C (0x000278) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x013D (0x00027A) 0xCE0F- f:00147 d: 15 | io 0017, fn007 | **** Undefined function ****
0x013E (0x00027C) 0x2118- f:00020 d: 280 | A = OR[280]
0x013F (0x00027E) 0x1409- f:00012 d: 9 | A = A + 9 (0x0009)
0x0140 (0x000280) 0x2913- f:00024 d: 275 | OR[275] = A
0x0141 (0x000282) 0x1009- f:00010 d: 9 | A = 9 (0x0009)
0x0142 (0x000284) 0x2928- f:00024 d: 296 | OR[296] = A
0x0143 (0x000286) 0x2113- f:00020 d: 275 | A = OR[275]
0x0144 (0x000288) 0x2929- f:00024 d: 297 | OR[297] = A
0x0145 (0x00028A) 0x1064- f:00010 d: 100 | A = 100 (0x0064)
0x0146 (0x00028C) 0x292A- f:00024 d: 298 | OR[298] = A
0x0147 (0x00028E) 0x1128- f:00010 d: 296 | A = 296 (0x0128)
0x0148 (0x000290) 0x5800- f:00054 d: 0 | B = A
0x0149 (0x000292) 0x1800-0x2118 f:00014 d: 0 | A = 8472 (0x2118)
0x014B (0x000296) 0x7C09- f:00076 d: 9 | R = OR[9]
0x014C (0x000298) 0x2006- f:00020 d: 6 | A = OR[6]
0x014D (0x00029A) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x014E (0x00029C) 0x2908- f:00024 d: 264 | OR[264] = A
0x014F (0x00029E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0150 (0x0002A0) 0x2923- f:00024 d: 291 | OR[291] = A
0x0151 (0x0002A2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0152 (0x0002A4) 0xCE0F- f:00147 d: 15 | io 0017, fn007 | **** Undefined function ****
0x0153 (0x0002A6) 0x211B- f:00020 d: 283 | A = OR[283]
0x0154 (0x0002A8) 0xCA0F- f:00145 d: 15 | io 0017, fn005 | **** Undefined function ****
0x0155 (0x0002AA) 0x2118- f:00020 d: 280 | A = OR[280]
0x0156 (0x0002AC) 0x1411- f:00012 d: 17 | A = A + 17 (0x0011)
0x0157 (0x0002AE) 0x2908- f:00024 d: 264 | OR[264] = A
0x0158 (0x0002B0) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0159 (0x0002B2) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x015B (0x0002B6) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x015C (0x0002B8) 0x2123- f:00020 d: 291 | A = OR[291]
0x015D (0x0002BA) 0x8602- f:00103 d: 2 | P = P + 2 (0x015F), A # 0
0x015E (0x0002BC) 0x700D- f:00070 d: 13 | P = P + 13 (0x016B)
0x015F (0x0002BE) 0x2118- f:00020 d: 280 | A = OR[280]
0x0160 (0x0002C0) 0x1411- f:00012 d: 17 | A = A + 17 (0x0011)
0x0161 (0x0002C2) 0x2908- f:00024 d: 264 | OR[264] = A
0x0162 (0x0002C4) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0163 (0x0002C6) 0x0E01- f:00007 d: 1 | A = A << 1 (0x0001)
0x0164 (0x0002C8) 0x0A08- f:00005 d: 8 | A = A < 8 (0x0008)
0x0165 (0x0002CA) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x0166 (0x0002CC) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x0167 (0x0002CE) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0168 (0x0002D0) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x0169 (0x0002D2) 0xDE0F- f:00157 d: 15 | io 0017, fn017 | **** Undefined function ****
0x016A (0x0002D4) 0x701A- f:00070 d: 26 | P = P + 26 (0x0184)
0x016B (0x0002D6) 0x2118- f:00020 d: 280 | A = OR[280]
0x016C (0x0002D8) 0x140E- f:00012 d: 14 | A = A + 14 (0x000E)
0x016D (0x0002DA) 0x2908- f:00024 d: 264 | OR[264] = A
0x016E (0x0002DC) 0x3108- f:00030 d: 264 | A = (OR[264])
0x016F (0x0002DE) 0x2923- f:00024 d: 291 | OR[291] = A
0x0170 (0x0002E0) 0x2118- f:00020 d: 280 | A = OR[280]
0x0171 (0x0002E2) 0x1410- f:00012 d: 16 | A = A + 16 (0x0010)
0x0172 (0x0002E4) 0x2908- f:00024 d: 264 | OR[264] = A
0x0173 (0x0002E6) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0174 (0x0002E8) 0x2924- f:00024 d: 292 | OR[292] = A
0x0175 (0x0002EA) 0x2123- f:00020 d: 291 | A = OR[291]
0x0176 (0x0002EC) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0177 (0x0002EE) 0x2908- f:00024 d: 264 | OR[264] = A
0x0178 (0x0002F0) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0179 (0x0002F2) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x017A (0x0002F4) 0x8402- f:00102 d: 2 | P = P + 2 (0x017C), A = 0
0x017B (0x0002F6) 0x7009- f:00070 d: 9 | P = P + 9 (0x0184)
0x017C (0x0002F8) 0x2124- f:00020 d: 292 | A = OR[292]
0x017D (0x0002FA) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x017E (0x0002FC) 0x2908- f:00024 d: 264 | OR[264] = A
0x017F (0x0002FE) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0180 (0x000300) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x0181 (0x000302) 0x8402- f:00102 d: 2 | P = P + 2 (0x0183), A = 0
0x0182 (0x000304) 0x7002- f:00070 d: 2 | P = P + 2 (0x0184)
0x0183 (0x000306) 0x0200- f:00001 d: 0 | EXIT
0x0184 (0x000308) 0x2F26- f:00027 d: 294 | OR[294] = OR[294] - 1
0x0185 (0x00030A) 0x7298- f:00071 d: 152 | P = P - 152 (0x00ED)
0x0186 (0x00030C) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x0187 (0x00030E) 0x291A- f:00024 d: 282 | OR[282] = A
0x0188 (0x000310) 0x0200- f:00001 d: 0 | EXIT
0x0189 (0x000312) 0x1190- f:00010 d: 400 | A = 400 (0x0190)
0x018A (0x000314) 0x8405- f:00102 d: 5 | P = P + 5 (0x018F), A = 0
0x018B (0x000316) 0x420F- f:00041 d: 15 | C = 1, io 0017 = BZ
0x018C (0x000318) 0x8003- f:00100 d: 3 | P = P + 3 (0x018F), C = 0
0x018D (0x00031A) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x018E (0x00031C) 0x7204- f:00071 d: 4 | P = P - 4 (0x018A)
0x018F (0x00031E) 0x8402- f:00102 d: 2 | P = P + 2 (0x0191), A = 0
0x0190 (0x000320) 0x7003- f:00070 d: 3 | P = P + 3 (0x0193)
0x0191 (0x000322) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0192 (0x000324) 0x2923- f:00024 d: 291 | OR[291] = A
0x0193 (0x000326) 0x0200- f:00001 d: 0 | EXIT
0x0194 (0x000328) 0xC40F- f:00142 d: 15 | io 0017, fn002 | **** Undefined function ****
0x0195 (0x00032A) 0x760C- f:00073 d: 12 | R = P - 12 (0x0189)
0x0196 (0x00032C) 0xD00F- f:00150 d: 15 | io 0017, fn010 | **** Undefined function ****
0x0197 (0x00032E) 0x2924- f:00024 d: 292 | OR[292] = A
0x0198 (0x000330) 0x0200- f:00001 d: 0 | EXIT
0x0199 (0x000332) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x019A (0x000334) 0x2927- f:00024 d: 295 | OR[295] = A
0x019B (0x000336) 0x2127- f:00020 d: 295 | A = OR[295]
0x019C (0x000338) 0x8413- f:00102 d: 19 | P = P + 19 (0x01AF), A = 0
0x019D (0x00033A) 0xC20F- f:00141 d: 15 | io 0017, fn001 | **** Undefined function ****
0x019E (0x00033C) 0x7615- f:00073 d: 21 | R = P - 21 (0x0189)
0x019F (0x00033E) 0xD00F- f:00150 d: 15 | io 0017, fn010 | **** Undefined function ****
0x01A0 (0x000340) 0x2927- f:00024 d: 295 | OR[295] = A
0x01A1 (0x000342) 0x2127- f:00020 d: 295 | A = OR[295]
0x01A2 (0x000344) 0x1A00-0x8000 f:00015 d: 0 | A = A & 32768 (0x8000)
0x01A4 (0x000348) 0x2908- f:00024 d: 264 | OR[264] = A
0x01A5 (0x00034A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01A6 (0x00034C) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x01A7 (0x00034E) 0x8602- f:00103 d: 2 | P = P + 2 (0x01A9), A # 0
0x01A8 (0x000350) 0x7004- f:00070 d: 4 | P = P + 4 (0x01AC)
0x01A9 (0x000352) 0x7E03-0x020B f:00077 d: 3 | R = OR[3]+523 (0x020B)
0x01AB (0x000356) 0x7003- f:00070 d: 3 | P = P + 3 (0x01AE)
0x01AC (0x000358) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01AD (0x00035A) 0x2927- f:00024 d: 295 | OR[295] = A
0x01AE (0x00035C) 0x7213- f:00071 d: 19 | P = P - 19 (0x019B)
0x01AF (0x00035E) 0x0200- f:00001 d: 0 | EXIT
0x01B0 (0x000360) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x01B1 (0x000362) 0xCE0F- f:00147 d: 15 | io 0017, fn007 | **** Undefined function ****
0x01B2 (0x000364) 0x2118- f:00020 d: 280 | A = OR[280]
0x01B3 (0x000366) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x01B4 (0x000368) 0x2913- f:00024 d: 275 | OR[275] = A
0x01B5 (0x00036A) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x01B6 (0x00036C) 0x2928- f:00024 d: 296 | OR[296] = A
0x01B7 (0x00036E) 0x1800-0x002F f:00014 d: 0 | A = 47 (0x002F)
0x01B9 (0x000372) 0x2929- f:00024 d: 297 | OR[297] = A
0x01BA (0x000374) 0x2122- f:00020 d: 290 | A = OR[290]
0x01BB (0x000376) 0x292A- f:00024 d: 298 | OR[298] = A
0x01BC (0x000378) 0x2113- f:00020 d: 275 | A = OR[275]
0x01BD (0x00037A) 0x292B- f:00024 d: 299 | OR[299] = A
0x01BE (0x00037C) 0x1128- f:00010 d: 296 | A = 296 (0x0128)
0x01BF (0x00037E) 0x5800- f:00054 d: 0 | B = A
0x01C0 (0x000380) 0x1800-0x2118 f:00014 d: 0 | A = 8472 (0x2118)
0x01C2 (0x000384) 0x7C09- f:00076 d: 9 | R = OR[9]
0x01C3 (0x000386) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01C4 (0x000388) 0xCE0F- f:00147 d: 15 | io 0017, fn007 | **** Undefined function ****
0x01C5 (0x00038A) 0x211B- f:00020 d: 283 | A = OR[283]
0x01C6 (0x00038C) 0xCA0F- f:00145 d: 15 | io 0017, fn005 | **** Undefined function ****
0x01C7 (0x00038E) 0x2118- f:00020 d: 280 | A = OR[280]
0x01C8 (0x000390) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x01C9 (0x000392) 0x2908- f:00024 d: 264 | OR[264] = A
0x01CA (0x000394) 0x3108- f:00030 d: 264 | A = (OR[264])
0x01CB (0x000396) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x01CC (0x000398) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x01CD (0x00039A) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x01CE (0x00039C) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01CF (0x00039E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01D0 (0x0003A0) 0x2927- f:00024 d: 295 | OR[295] = A
0x01D1 (0x0003A2) 0x2127- f:00020 d: 295 | A = OR[295]
0x01D2 (0x0003A4) 0x8629- f:00103 d: 41 | P = P + 41 (0x01FB), A # 0
0x01D3 (0x0003A6) 0x763F- f:00073 d: 63 | R = P - 63 (0x0194)
0x01D4 (0x0003A8) 0x2124- f:00020 d: 292 | A = OR[292]
0x01D5 (0x0003AA) 0x1A00-0x0A00 f:00015 d: 0 | A = A & 2560 (0x0A00)
0x01D7 (0x0003AE) 0x2908- f:00024 d: 264 | OR[264] = A
0x01D8 (0x0003B0) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01D9 (0x0003B2) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x01DA (0x0003B4) 0x8402- f:00102 d: 2 | P = P + 2 (0x01DC), A = 0
0x01DB (0x0003B6) 0x700B- f:00070 d: 11 | P = P + 11 (0x01E6)
0x01DC (0x0003B8) 0x2124- f:00020 d: 292 | A = OR[292]
0x01DD (0x0003BA) 0x1A00-0x1000 f:00015 d: 0 | A = A & 4096 (0x1000)
0x01DF (0x0003BE) 0x2908- f:00024 d: 264 | OR[264] = A
0x01E0 (0x0003C0) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01E1 (0x0003C2) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x01E2 (0x0003C4) 0x8602- f:00103 d: 2 | P = P + 2 (0x01E4), A # 0
0x01E3 (0x0003C6) 0x7003- f:00070 d: 3 | P = P + 3 (0x01E6)
0x01E4 (0x0003C8) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x01E5 (0x0003CA) 0x2927- f:00024 d: 295 | OR[295] = A
0x01E6 (0x0003CC) 0x2118- f:00020 d: 280 | A = OR[280]
0x01E7 (0x0003CE) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x01E8 (0x0003D0) 0x2908- f:00024 d: 264 | OR[264] = A
0x01E9 (0x0003D2) 0x3108- f:00030 d: 264 | A = (OR[264])
0x01EA (0x0003D4) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x01EB (0x0003D6) 0x291A- f:00024 d: 282 | OR[282] = A
0x01EC (0x0003D8) 0x211A- f:00020 d: 282 | A = OR[282]
0x01ED (0x0003DA) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x01EE (0x0003DC) 0x8405- f:00102 d: 5 | P = P + 5 (0x01F3), A = 0
0x01EF (0x0003DE) 0x211A- f:00020 d: 282 | A = OR[282]
0x01F0 (0x0003E0) 0x1604- f:00013 d: 4 | A = A - 4 (0x0004)
0x01F1 (0x0003E2) 0x8402- f:00102 d: 2 | P = P + 2 (0x01F3), A = 0
0x01F2 (0x0003E4) 0x7006- f:00070 d: 6 | P = P + 6 (0x01F8)
0x01F3 (0x0003E6) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01F4 (0x0003E8) 0x291A- f:00024 d: 282 | OR[282] = A
0x01F5 (0x0003EA) 0x7E03-0x0275 f:00077 d: 3 | R = OR[3]+629 (0x0275)
0x01F7 (0x0003EE) 0x7003- f:00070 d: 3 | P = P + 3 (0x01FA)
0x01F8 (0x0003F0) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x01F9 (0x0003F2) 0x2927- f:00024 d: 295 | OR[295] = A
0x01FA (0x0003F4) 0x7229- f:00071 d: 41 | P = P - 41 (0x01D1)
0x01FB (0x0003F6) 0x2118- f:00020 d: 280 | A = OR[280]
0x01FC (0x0003F8) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x01FD (0x0003FA) 0x2908- f:00024 d: 264 | OR[264] = A
0x01FE (0x0003FC) 0x3108- f:00030 d: 264 | A = (OR[264])
0x01FF (0x0003FE) 0x0E01- f:00007 d: 1 | A = A << 1 (0x0001)
0x0200 (0x000400) 0x0A08- f:00005 d: 8 | A = A < 8 (0x0008)
0x0201 (0x000402) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x0202 (0x000404) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x0203 (0x000406) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0204 (0x000408) 0x0200- f:00001 d: 0 | EXIT
@ This routine get called once as well
0x0205 (0x00040A) 0x2118- f:00020 d: 280 | A = OR[280]
0x0206 (0x00040C) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x0207 (0x00040E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0208 (0x000410) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0209 (0x000412) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x020A (0x000414) 0x291A- f:00024 d: 282 | OR[282] = A
0x020B (0x000416) 0x2118- f:00020 d: 280 | A = OR[280]
0x020C (0x000418) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x020D (0x00041A) 0x2908- f:00024 d: 264 | OR[264] = A
0x020E (0x00041C) 0x3108- f:00030 d: 264 | A = (OR[264])
0x020F (0x00041E) 0x0E01- f:00007 d: 1 | A = A << 1 (0x0001)
0x0210 (0x000420) 0x0A08- f:00005 d: 8 | A = A < 8 (0x0008)
0x0211 (0x000422) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x0212 (0x000424) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x0213 (0x000426) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0214 (0x000428) 0x211A- f:00020 d: 282 | A = OR[282]
0x0215 (0x00042A) 0x1604- f:00013 d: 4 | A = A - 4 (0x0004)
0x0216 (0x00042C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0218), A = 0
0x0217 (0x00042E) 0x7004- f:00070 d: 4 | P = P + 4 (0x021B)
0x0218 (0x000430) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0219 (0x000432) 0x291A- f:00024 d: 282 | OR[282] = A
0x021A (0x000434) 0x7005- f:00070 d: 5 | P = P + 5 (0x021F)
0x021B (0x000436) 0x211A- f:00020 d: 282 | A = OR[282]
0x021C (0x000438) 0x8602- f:00103 d: 2 | P = P + 2 (0x021E), A # 0
0x021D (0x00043A) 0x7002- f:00070 d: 2 | P = P + 2 (0x021F)
0x021E (0x00043C) 0x7340- f:00071 d: 320 | P = P - 320 (0x00DE)
0x021F (0x00043E) 0x0200- f:00001 d: 0 | EXIT
@ This seems to be a function, called a lot internally
0x0220 (0x000440) 0x2118- f:00020 d: 280 | A = OR[280]
0x0221 (0x000442) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x0222 (0x000444) 0x2913- f:00024 d: 275 | OR[275] = A
0x0223 (0x000446) 0x211C- f:00020 d: 284 | A = OR[284]
0x0224 (0x000448) 0x8402- f:00102 d: 2 | P = P + 2 (0x0226), A = 0
0x0225 (0x00044A) 0x7006- f:00070 d: 6 | P = P + 6 (0x022B)
0x0226 (0x00044C) 0x2003- f:00020 d: 3 | A = OR[3]
0x0227 (0x00044E) 0x1C00-0x028C f:00016 d: 0 | A = A + 652 (0x028C)
0x0229 (0x000452) 0x2914- f:00024 d: 276 | OR[276] = A
0x022A (0x000454) 0x700F- f:00070 d: 15 | P = P + 15 (0x0239)
0x022B (0x000456) 0x211C- f:00020 d: 284 | A = OR[284]
0x022C (0x000458) 0x1E00-0x0700 f:00017 d: 0 | A = A - 1792 (0x0700)
0x022E (0x00045C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0230), A = 0
0x022F (0x00045E) 0x7006- f:00070 d: 6 | P = P + 6 (0x0235)
0x0230 (0x000460) 0x2003- f:00020 d: 3 | A = OR[3]
0x0231 (0x000462) 0x1C00-0x0288 f:00016 d: 0 | A = A + 648 (0x0288)
0x0233 (0x000466) 0x2914- f:00024 d: 276 | OR[276] = A
0x0234 (0x000468) 0x7005- f:00070 d: 5 | P = P + 5 (0x0239)
0x0235 (0x00046A) 0x2003- f:00020 d: 3 | A = OR[3]
0x0236 (0x00046C) 0x1C00-0x0290 f:00016 d: 0 | A = A + 656 (0x0290)
0x0238 (0x000470) 0x2914- f:00024 d: 276 | OR[276] = A
0x0239 (0x000472) 0x211A- f:00020 d: 282 | A = OR[282]
0x023A (0x000474) 0x8402- f:00102 d: 2 | P = P + 2 (0x023C), A = 0
0x023B (0x000476) 0x7004- f:00070 d: 4 | P = P + 4 (0x023F)
0x023C (0x000478) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x023D (0x00047A) 0x2915- f:00024 d: 277 | OR[277] = A
0x023E (0x00047C) 0x7005- f:00070 d: 5 | P = P + 5 (0x0243)
0x023F (0x00047E) 0x2003- f:00020 d: 3 | A = OR[3]
0x0240 (0x000480) 0x1C00-0x0295 f:00016 d: 0 | A = A + 661 (0x0295)
0x0242 (0x000484) 0x2915- f:00024 d: 277 | OR[277] = A
0x0243 (0x000486) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x0244 (0x000488) 0xCE0F- f:00147 d: 15 | io 0017, fn007 | **** Undefined function ****
0x0245 (0x00048A) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x0246 (0x00048C) 0x2928- f:00024 d: 296 | OR[296] = A
0x0247 (0x00048E) 0x1800-0x002F f:00014 d: 0 | A = 47 (0x002F)
0x0249 (0x000492) 0x2929- f:00024 d: 297 | OR[297] = A
0x024A (0x000494) 0x2122- f:00020 d: 290 | A = OR[290]
0x024B (0x000496) 0x292A- f:00024 d: 298 | OR[298] = A
0x024C (0x000498) 0x2113- f:00020 d: 275 | A = OR[275]
0x024D (0x00049A) 0x292B- f:00024 d: 299 | OR[299] = A
0x024E (0x00049C) 0x2114- f:00020 d: 276 | A = OR[276]
0x024F (0x00049E) 0x292C- f:00024 d: 300 | OR[300] = A
0x0250 (0x0004A0) 0x2115- f:00020 d: 277 | A = OR[277]
0x0251 (0x0004A2) 0x292D- f:00024 d: 301 | OR[301] = A
0x0252 (0x0004A4) 0x1128- f:00010 d: 296 | A = 296 (0x0128)
0x0253 (0x0004A6) 0x5800- f:00054 d: 0 | B = A
0x0254 (0x0004A8) 0x1800-0x2118 f:00014 d: 0 | A = 8472 (0x2118)
0x0256 (0x0004AC) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0257 (0x0004AE) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x0258 (0x0004B0) 0x2928- f:00024 d: 296 | OR[296] = A
0x0259 (0x0004B2) 0x1800-0x002F f:00014 d: 0 | A = 47 (0x002F)
0x025B (0x0004B6) 0x2929- f:00024 d: 297 | OR[297] = A
0x025C (0x0004B8) 0x1800-0x02C3 f:00014 d: 0 | A = 707 (0x02C3)
0x025E (0x0004BC) 0x292A- f:00024 d: 298 | OR[298] = A
0x025F (0x0004BE) 0x211D- f:00020 d: 285 | A = OR[285]
0x0260 (0x0004C0) 0x292B- f:00024 d: 299 | OR[299] = A
0x0261 (0x0004C2) 0x211E- f:00020 d: 286 | A = OR[286]
0x0262 (0x0004C4) 0x292C- f:00024 d: 300 | OR[300] = A
0x0263 (0x0004C6) 0x211F- f:00020 d: 287 | A = OR[287]
0x0264 (0x0004C8) 0x292D- f:00024 d: 301 | OR[301] = A
0x0265 (0x0004CA) 0x1128- f:00010 d: 296 | A = 296 (0x0128)
0x0266 (0x0004CC) 0x5800- f:00054 d: 0 | B = A
0x0267 (0x0004CE) 0x1800-0x2118 f:00014 d: 0 | A = 8472 (0x2118)
0x0269 (0x0004D2) 0x7C09- f:00076 d: 9 | R = OR[9]
0x026A (0x0004D4) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x026B (0x0004D6) 0xCE0F- f:00147 d: 15 | io 0017, fn007 | **** Undefined function ****
0x026C (0x0004D8) 0x211B- f:00020 d: 283 | A = OR[283]
0x026D (0x0004DA) 0xCA0F- f:00145 d: 15 | io 0017, fn005 | **** Undefined function ****
0x026E (0x0004DC) 0x0200- f:00001 d: 0 | EXIT
@ Here's another routine, that's called only once
0x026F (0x0004DE) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x0270 (0x0004E0) 0xCE0F- f:00147 d: 15 | io 0017, fn007 | **** Undefined function ****
0x0271 (0x0004E2) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x0272 (0x0004E4) 0x2928- f:00024 d: 296 | OR[296] = A
0x0273 (0x0004E6) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0274 (0x0004E8) 0x2929- f:00024 d: 297 | OR[297] = A
0x0275 (0x0004EA) 0x1128- f:00010 d: 296 | A = 296 (0x0128)
0x0276 (0x0004EC) 0x5800- f:00054 d: 0 | B = A
0x0277 (0x0004EE) 0x1800-0x2118 f:00014 d: 0 | A = 8472 (0x2118)
0x0279 (0x0004F2) 0x7C09- f:00076 d: 9 | R = OR[9]
0x027A (0x0004F4) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x027B (0x0004F6) 0xCE0F- f:00147 d: 15 | io 0017, fn007 | **** Undefined function ****
0x027C (0x0004F8) 0x211B- f:00020 d: 283 | A = OR[283]
0x027D (0x0004FA) 0xCA0F- f:00145 d: 15 | io 0017, fn005 | **** Undefined function ****
0x027E (0x0004FC) 0x0200- f:00001 d: 0 | EXIT
0x027F (0x0004FE) 0x0000- f:00000 d: 0 | PASS
0x0280 (0x000500) 0x0000- f:00000 d: 0 | PASS
0x0281 (0x000502) 0x0000- f:00000 d: 0 | PASS
@ String 'WRITE'
0x0282 (0x000504) 0x5752- f:00053 d: 338 | A = A - B | **** non-standard encoding with D:0x0152 ****
0x0283 (0x000506) 0x4954- f:00044 d: 340 | A = A > B | **** non-standard encoding with D:0x0154 ****
0x0284 (0x000508) 0x4500- f:00042 d: 256 | C = 1, IOB = DN | **** non-standard encoding with D:0x0100 ****
0x0285 (0x00050A) 0x0000- f:00000 d: 0 | PASS
@ String 'READ'
0x0286 (0x00050C) 0x5245- f:00051 d: 69 | A = A & B | **** non-standard encoding with D:0x0045 ****
0x0287 (0x00050E) 0x4144- f:00040 d: 324 | C = 1, io 0504 = DN
0x0288 (0x000510) 0x0000- f:00000 d: 0 | PASS
0x0289 (0x000512) 0x0000- f:00000 d: 0 | PASS
@ String 'FORMAT'
0x028A (0x000514) 0x464F- f:00043 d: 79 | C = 1, IOB = BZ | **** non-standard encoding with D:0x004F ****
0x028B (0x000516) 0x524D- f:00051 d: 77 | A = A & B | **** non-standard encoding with D:0x004D ****
0x028C (0x000518) 0x4154- f:00040 d: 340 | C = 1, io 0524 = DN
0x028D (0x00051A) 0x0000- f:00000 d: 0 | PASS
0x028E (0x00051C) 0x0000- f:00000 d: 0 | PASS
@ String 'UN'
0x028F (0x00051E) 0x554E- f:00052 d: 334 | A = A + B | **** non-standard encoding with D:0x014E ****
0x0290 (0x000520) 0x0000- f:00000 d: 0 | PASS
0x0291 (0x000522) 0x0000- f:00000 d: 0 | PASS
0x0292 (0x000524) 0x0000- f:00000 d: 0 | PASS
0x0293 (0x000526) 0x0000- f:00000 d: 0 | PASS
|
||||
TheStack | 64c812f016440cb25b416e6c07dc68df51db78b9 | Assemblycode:Assembly | {"size": 519, "ext": "asm", "max_stars_repo_path": "programs/oeis/020/A020901.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/020/A020901.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/020/A020901.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 74.1428571429, "max_line_length": 356, "alphanum_fraction": 0.7013487476} | ; A020901: Greatest k such that k-th prime < 3 times n-th prime.
; 3,4,6,8,11,12,15,16,19,23,24,29,30,31,34,37,40,42,46,47,47,51,53,56,61,62,63,66,66,68,75,77,80,80,86,87,91,93,95,97,99,100,105,106,107,108,115,121,123,124,125,127,128,133,136,138,139,141,145,146,146,151,157,158,159,161,167,169,175,175,177,180,184,187,189,189,192,195,197,200,204,205,210,211,214,217,217,219,221,221,222,227,232,233,238,239,241,246,247,257
seq $0,40 ; The prime numbers.
mul $0,3
seq $0,230980 ; Number of primes <= n, starting at n=0.
|
||||
TheStack | f152a1e7479e3cc1ec5a4ef6eeaa989e0c635380 | Assemblycode:Assembly | {"size": 372, "ext": "asm", "max_stars_repo_path": "solutions/61 - Lazy Pathways/size-11_speed-346.asm", "max_stars_repo_name": "michaelgundlach/7billionhumans", "max_stars_repo_stars_event_min_datetime": "2018-09-05T04:56:59.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-22T08:57:26.000Z", "max_issues_repo_path": "solutions/61 - Lazy Pathways/size-11_speed-346.asm", "max_issues_repo_name": "michaelgundlach/7billionhumans", "max_issues_repo_issues_event_min_datetime": "2018-09-01T11:34:26.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-19T23:20:49.000Z", "max_forks_repo_path": "solutions/61 - Lazy Pathways/size-11_speed-346.asm", "max_forks_repo_name": "michaelgundlach/7billionhumans", "max_forks_repo_forks_event_min_datetime": "2018-09-01T07:44:19.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-10T19:07:35.000Z"} | {"max_stars_count": 45, "max_issues_count": 36, "max_forks_count": 36, "avg_line_length": 14.88, "max_line_length": 39, "alphanum_fraction": 0.6182795699} | -- 7 Billion Humans (2145) --
-- 61: Lazy Pathways --
-- Author: landfillbaby
-- Size: 11
-- Speed: 346
a:
step nw,w,sw,n,s,e
if c == datacube:
mem2 = foreachdir nw,w,sw,n,s,ne,e,se:
if mem2 == datacube and
mem2 < mem1 or
mem1 != datacube:
mem1 = set mem2
endif
endfor
mem1 = calc mem1 + 1
if c > mem1:
pickup c
write mem1
drop
endif
endif
jump a |
||||
TheStack | cea8d4cd1b3f8e5ec8ebc0c982c72f7f19bddd42 | Assemblycode:Assembly | {"size": 1478, "ext": "asm", "max_stars_repo_path": "programs/oeis/257/A257932.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/257/A257932.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/257/A257932.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 246.3333333333, "max_line_length": 1349, "alphanum_fraction": 0.8937753721} | ; A257932: Expansion of 1/(1-x-x^2-x^3+x^5+x^7).
; 1,1,2,4,7,12,22,38,67,118,207,363,638,1119,1964,3447,6049,10615,18629,32691,57369,100676,176674,310041,544085,954802,1675561,2940405,5160051,9055258,15890871,27886534,48937456,85879249,150707576,264473359,464118392,814471000,1429296968,2508241328,4401656688,7724369016,13555322673,23787933017,41744912378,73257214412,128557449463,225602596892,395904958734,694764770038,1219227178235,2139594545166,3754726682135,6589085997339,11563039857710,20291720400215,35609486940060,62490293337615,109662820135385,192444833873215,337717140948661,592652268159491,1040032229243537,1825129331276244,3202878701468442,5620660300904177,9863571231616157,17309360863796578,30375810796881177,53305831961581933,93545213990079267,164160406815457778,288081431602418223,505547670379457934,887174315971955424,1556882393166871137,2732138140741244784,4794568204287573855,8413880661000774064,14765331258455219056,25911350060197237904,45471249522940030816,79796480244138042784,140033061025533292656,245740891329868573345,431245201878341896817,756782573452348512946,1328060836356223702420,2330584301138440788711,4089890339373006387948,7177257213963795689606,12595208389693025779974,22103049904795262258291,38788148633861294426214,68068455752620352374111,119451812776174672580299,209623318433590287212702,367863279843626254219215,645555054029836893806028,1132870146649637820605543
mul $0,2
seq $0,233522 ; Expansion of 1 / (1 - x - x^4 + x^9) in powers of x.
|
||||
TheStack | 562bbfc81ddc90ee4ce78c3d434e1fe2a1a36bad | Assemblycode:Assembly | {"size": 867, "ext": "asm", "max_stars_repo_path": "examples/scasw.asm", "max_stars_repo_name": "AbdulrahmanAbumdas/emu8086", "max_stars_repo_stars_event_min_datetime": "2015-10-01T20:34:49.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T09:19:39.000Z", "max_issues_repo_path": "examples/scasw.asm", "max_issues_repo_name": "BurunluVoldi/emu8086", "max_issues_repo_issues_event_min_datetime": "2017-06-13T17:22:24.000Z", "max_issues_repo_issues_event_max_datetime": "2021-01-29T23:40:11.000Z", "max_forks_repo_path": "examples/scasw.asm", "max_forks_repo_name": "BurunluVoldi/emu8086", "max_forks_repo_forks_event_min_datetime": "2015-09-13T09:40:53.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-29T14:15:16.000Z"} | {"max_stars_count": 287, "max_issues_count": 6, "max_forks_count": 239, "avg_line_length": 14.9482758621, "max_line_length": 74, "alphanum_fraction": 0.6193771626} | ; this sample shows how to use scasw instruction to find a word (2 bytes).
org 100h
jmp start
dat1 dw 1234h, 5678h, 9075h, 3456h
find_what equ 9075h
s_found db '"yes" - found!', 0Dh,0Ah, '$'
s_not db '"no" - not found!', 0Dh,0Ah, '$'
start:
; set forward direction:
cld
; set counter to data size:
mov cx, 4
; load string address into es:di
mov ax, cs
mov es, ax
lea di, dat1
; we will look for the word in data string:
mov ax, find_what
repne scasw
jz found
not_found:
; "no" - not found!
mov dx, offset s_not
mov ah, 9
int 21h
jmp exit_here
found:
; "yes" - found!
mov dx, offset s_found
mov ah, 9
int 21h
; di contains the address of searched word:
dec di
; wait for any key press...
mov ah, 0
int 16h
exit_here:
ret ; return control to operating system...
|
||||
TheStack | 6901642fadc7290e24d1c42e022ecfe875cc9c46 | Assemblycode:Assembly | {"size": 48130, "ext": "asm", "max_stars_repo_path": "ioq3/build/release-js-js/baseq3/ui/ui_sppostgame.asm", "max_stars_repo_name": "RawTechnique/quake-port", "max_stars_repo_stars_event_min_datetime": "2021-12-31T10:26:58.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-31T10:26:58.000Z", "max_issues_repo_path": "ioq3/build/release-js-js/baseq3/ui/ui_sppostgame.asm", "max_issues_repo_name": "unfriendly/quake-port", "max_issues_repo_issues_event_min_datetime": "2019-03-05T20:45:07.000Z", "max_issues_repo_issues_event_max_datetime": "2019-03-05T20:45:57.000Z", "max_forks_repo_path": "ioq3/build/release-js-js/baseq3/ui/ui_sppostgame.asm", "max_forks_repo_name": "unfriendly/quake-port", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": 28, "max_forks_count": null, "avg_line_length": 12.6159895151, "max_line_length": 54, "alphanum_fraction": 0.8344691461} | data
export ui_medalNames
align 4
LABELV ui_medalNames
address $69
address $70
address $71
address $72
address $73
address $74
export ui_medalPicNames
align 4
LABELV ui_medalPicNames
address $75
address $76
address $77
address $78
address $79
address $80
export ui_medalSounds
align 4
LABELV ui_medalSounds
address $81
address $82
address $83
address $84
address $85
address $86
code
proc UI_SPPostgameMenu_AgainEvent 0 8
ADDRFP4 4
INDIRI4
CNSTI4 3
EQI4 $88
ADDRGP4 $87
JUMPV
LABELV $88
ADDRGP4 UI_PopMenu
CALLV
pop
CNSTI4 2
ARGI4
ADDRGP4 $90
ARGP4
ADDRGP4 trap_Cmd_ExecuteText
CALLV
pop
LABELV $87
endproc UI_SPPostgameMenu_AgainEvent 0 8
proc UI_SPPostgameMenu_NextEvent 36 4
ADDRFP4 4
INDIRI4
CNSTI4 3
EQI4 $92
ADDRGP4 $91
JUMPV
LABELV $92
ADDRGP4 UI_PopMenu
CALLV
pop
ADDRGP4 postgameMenuInfo+868
INDIRI4
CNSTI4 0
NEI4 $94
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRGP4 $95
JUMPV
LABELV $94
ADDRLP4 4
ADDRGP4 postgameMenuInfo+860
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $95
ADDRLP4 8
ADDRLP4 4
INDIRI4
CNSTI4 4
DIVI4
ASGNI4
ADDRLP4 20
ADDRGP4 UI_GetCurrentGame
CALLI4
ASGNI4
ADDRLP4 0
ADDRLP4 20
INDIRI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 -1
NEI4 $98
ADDRLP4 0
ADDRGP4 postgameMenuInfo+860
INDIRI4
ASGNI4
LABELV $98
ADDRLP4 16
ADDRLP4 0
INDIRI4
CNSTI4 4
DIVI4
ASGNI4
ADDRLP4 8
INDIRI4
ADDRLP4 16
INDIRI4
GTI4 $103
ADDRLP4 28
ADDRGP4 UI_GetNumSPTiers
CALLI4
ASGNI4
ADDRLP4 8
INDIRI4
ADDRLP4 28
INDIRI4
NEI4 $101
LABELV $103
ADDRLP4 4
ADDRLP4 0
INDIRI4
ASGNI4
LABELV $101
ADDRLP4 4
INDIRI4
ARGI4
ADDRLP4 32
ADDRGP4 UI_GetArenaInfoByNumber
CALLP4
ASGNP4
ADDRLP4 12
ADDRLP4 32
INDIRP4
ASGNP4
ADDRLP4 12
INDIRP4
CVPU4 4
CNSTU4 0
NEU4 $104
ADDRGP4 $91
JUMPV
LABELV $104
ADDRLP4 12
INDIRP4
ARGP4
ADDRGP4 UI_SPArena_Start
CALLV
pop
LABELV $91
endproc UI_SPPostgameMenu_NextEvent 36 4
proc UI_SPPostgameMenu_MenuEvent 0 8
ADDRFP4 4
INDIRI4
CNSTI4 3
EQI4 $107
ADDRGP4 $106
JUMPV
LABELV $107
ADDRGP4 UI_PopMenu
CALLV
pop
CNSTI4 2
ARGI4
ADDRGP4 $109
ARGP4
ADDRGP4 trap_Cmd_ExecuteText
CALLV
pop
LABELV $106
endproc UI_SPPostgameMenu_MenuEvent 0 8
proc UI_SPPostgameMenu_MenuKey 8 8
ADDRFP4 0
ADDRFP4 0
INDIRI4
ASGNI4
ADDRGP4 uis+4
INDIRI4
ADDRGP4 postgameMenuInfo+556
INDIRI4
GEI4 $111
CNSTI4 0
RETI4
ADDRGP4 $110
JUMPV
LABELV $111
ADDRGP4 postgameMenuInfo+552
INDIRI4
CNSTI4 1
NEI4 $115
CNSTI4 2
ARGI4
ADDRGP4 $118
ARGP4
ADDRGP4 trap_Cmd_ExecuteText
CALLV
pop
ADDRGP4 postgameMenuInfo+552
CNSTI4 2
ASGNI4
ADDRGP4 postgameMenuInfo+560
ADDRGP4 uis+4
INDIRI4
ASGNI4
ADDRGP4 postgameMenuInfo+556
ADDRGP4 uis+4
INDIRI4
CNSTI4 250
ADDI4
ASGNI4
CNSTI4 0
RETI4
ADDRGP4 $110
JUMPV
LABELV $115
ADDRGP4 postgameMenuInfo+552
INDIRI4
CNSTI4 2
NEI4 $124
ADDRGP4 postgameMenuInfo+552
CNSTI4 3
ASGNI4
ADDRGP4 postgameMenuInfo+560
ADDRGP4 uis+4
INDIRI4
ASGNI4
ADDRGP4 postgameMenuInfo+556
ADDRGP4 uis+4
INDIRI4
CNSTI4 250
ADDI4
ASGNI4
CNSTI4 0
RETI4
ADDRGP4 $110
JUMPV
LABELV $124
ADDRFP4 0
INDIRI4
CNSTI4 27
EQI4 $134
ADDRFP4 0
INDIRI4
CNSTI4 179
NEI4 $132
LABELV $134
CNSTI4 0
RETI4
ADDRGP4 $110
JUMPV
LABELV $132
ADDRGP4 postgameMenuInfo
ARGP4
ADDRFP4 0
INDIRI4
ARGI4
ADDRLP4 4
ADDRGP4 Menu_DefaultKey
CALLI4
ASGNI4
ADDRLP4 4
INDIRI4
RETI4
LABELV $110
endproc UI_SPPostgameMenu_MenuKey 8 8
data
align 4
LABELV medalLocations
byte 4 144
byte 4 448
byte 4 88
byte 4 504
byte 4 32
byte 4 560
code
proc UI_SPPostgameMenu_DrawAwardsMedals 48 20
ADDRFP4 0
ADDRFP4 0
INDIRI4
ASGNI4
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $139
JUMPV
LABELV $136
ADDRLP4 36
CNSTI4 2
ASGNI4
ADDRLP4 40
ADDRLP4 0
INDIRI4
ADDRLP4 36
INDIRI4
LSHI4
ASGNI4
ADDRLP4 8
ADDRLP4 40
INDIRI4
ADDRGP4 medalLocations
ADDP4
INDIRI4
ASGNI4
ADDRLP4 12
CNSTI4 64
ASGNI4
ADDRLP4 4
ADDRLP4 40
INDIRI4
ADDRGP4 postgameMenuInfo+876
ADDP4
INDIRI4
ASGNI4
ADDRLP4 32
ADDRLP4 40
INDIRI4
ADDRGP4 postgameMenuInfo+900
ADDP4
INDIRI4
ASGNI4
ADDRLP4 8
INDIRI4
CVIF4 4
ARGF4
ADDRLP4 12
INDIRI4
CVIF4 4
ARGF4
ADDRLP4 44
CNSTF4 1111490560
ASGNF4
ADDRLP4 44
INDIRF4
ARGF4
ADDRLP4 44
INDIRF4
ARGF4
ADDRLP4 4
INDIRI4
ADDRLP4 36
INDIRI4
LSHI4
ADDRGP4 ui_medalPicNames
ADDP4
INDIRP4
ARGP4
ADDRGP4 UI_DrawNamedPic
CALLV
pop
ADDRLP4 4
INDIRI4
CNSTI4 0
NEI4 $142
ADDRLP4 16
ARGP4
CNSTI4 16
ARGI4
ADDRGP4 $144
ARGP4
ADDRLP4 32
INDIRI4
ARGI4
ADDRGP4 Com_sprintf
CALLI4
pop
ADDRGP4 $143
JUMPV
LABELV $142
ADDRLP4 32
INDIRI4
CNSTI4 1
NEI4 $145
ADDRGP4 $137
JUMPV
LABELV $145
ADDRLP4 16
ARGP4
CNSTI4 16
ARGI4
ADDRGP4 $147
ARGP4
ADDRLP4 32
INDIRI4
ARGI4
ADDRGP4 Com_sprintf
CALLI4
pop
LABELV $143
ADDRLP4 8
INDIRI4
CNSTI4 24
ADDI4
ARGI4
ADDRLP4 12
INDIRI4
CNSTI4 52
ADDI4
ARGI4
ADDRLP4 16
ARGP4
CNSTI4 1
ARGI4
ADDRGP4 color_yellow
ARGP4
ADDRGP4 UI_DrawString
CALLV
pop
LABELV $137
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $139
ADDRLP4 0
INDIRI4
ADDRFP4 0
INDIRI4
LTI4 $136
LABELV $135
endproc UI_SPPostgameMenu_DrawAwardsMedals 48 20
proc UI_SPPostgameMenu_DrawAwardsPresentation 48 20
ADDRLP4 24
ADDRFP4 0
INDIRI4
ASGNI4
ADDRLP4 28
CNSTI4 2000
ASGNI4
ADDRLP4 0
ADDRLP4 24
INDIRI4
ADDRLP4 28
INDIRI4
DIVI4
ASGNI4
ADDRLP4 20
ADDRLP4 24
INDIRI4
ADDRLP4 28
INDIRI4
MODI4
ASGNI4
ADDRLP4 32
CNSTF4 1065353216
ASGNF4
ADDRLP4 4+8
ADDRLP4 32
INDIRF4
ASGNF4
ADDRLP4 4+4
ADDRLP4 32
INDIRF4
ASGNF4
ADDRLP4 4
ADDRLP4 32
INDIRF4
ASGNF4
ADDRLP4 4+12
CNSTI4 2000
ADDRLP4 20
INDIRI4
SUBI4
CVIF4 4
CNSTF4 1157234688
DIVF4
ASGNF4
CNSTI4 320
ARGI4
CNSTI4 64
ARGI4
ADDRLP4 36
CNSTI4 2
ASGNI4
ADDRLP4 0
INDIRI4
ADDRLP4 36
INDIRI4
LSHI4
ADDRGP4 postgameMenuInfo+876
ADDP4
INDIRI4
ADDRLP4 36
INDIRI4
LSHI4
ADDRGP4 ui_medalNames
ADDP4
INDIRP4
ARGP4
CNSTI4 1
ARGI4
ADDRLP4 4
ARGP4
ADDRGP4 UI_DrawProportionalString
CALLV
pop
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ARGI4
ADDRGP4 UI_SPPostgameMenu_DrawAwardsMedals
CALLV
pop
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 postgameMenuInfo+924
ADDP4
INDIRI4
CNSTI4 0
NEI4 $153
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 postgameMenuInfo+924
ADDP4
CNSTI4 1
ASGNI4
ADDRLP4 40
CNSTI4 2
ASGNI4
ADDRLP4 0
INDIRI4
ADDRLP4 40
INDIRI4
LSHI4
ADDRGP4 postgameMenuInfo+876
ADDP4
INDIRI4
ADDRLP4 40
INDIRI4
LSHI4
ADDRGP4 ui_medalSounds
ADDP4
INDIRP4
ARGP4
CNSTI4 0
ARGI4
ADDRLP4 44
ADDRGP4 trap_S_RegisterSound
CALLI4
ASGNI4
ADDRLP4 44
INDIRI4
ARGI4
CNSTI4 7
ARGI4
ADDRGP4 trap_S_StartLocalSound
CALLV
pop
LABELV $153
LABELV $148
endproc UI_SPPostgameMenu_DrawAwardsPresentation 48 20
proc UI_SPPostgameMenu_MenuDrawScoreLine 1100 20
ADDRFP4 0
ADDRFP4 0
INDIRI4
ASGNI4
ADDRFP4 0
INDIRI4
ADDRGP4 postgameMenuInfo+864
INDIRI4
CNSTI4 1
ADDI4
LEI4 $159
ADDRFP4 0
ADDRFP4 0
INDIRI4
ADDRGP4 postgameMenuInfo+864
INDIRI4
CNSTI4 2
ADDI4
SUBI4
ASGNI4
LABELV $159
ADDRFP4 0
INDIRI4
ADDRGP4 postgameMenuInfo+864
INDIRI4
LTI4 $163
ADDRGP4 $158
JUMPV
LABELV $163
ADDRLP4 64
ADDRFP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 postgameMenuInfo+604
ADDP4
INDIRI4
ASGNI4
ADDRLP4 64
INDIRI4
CNSTI4 16384
BANDI4
CNSTI4 0
EQI4 $167
CNSTI4 392
ARGI4
ADDRFP4 4
INDIRI4
ARGI4
ADDRGP4 $169
ARGP4
CNSTI4 16
ARGI4
ADDRGP4 color_white
ARGP4
ADDRGP4 UI_DrawString
CALLV
pop
ADDRLP4 64
ADDRLP4 64
INDIRI4
CNSTI4 -16385
BANDI4
ASGNI4
LABELV $167
ADDRFP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 postgameMenuInfo+572
ADDP4
INDIRI4
CNSTI4 544
ADDI4
ARGI4
ADDRLP4 68
ARGP4
CNSTI4 1024
ARGI4
ADDRGP4 trap_GetConfigString
CALLI4
pop
ADDRLP4 68
ARGP4
ADDRGP4 $171
ARGP4
ADDRLP4 1092
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 0
ARGP4
ADDRLP4 1092
INDIRP4
ARGP4
CNSTI4 64
ARGI4
ADDRGP4 Q_strncpyz
CALLV
pop
ADDRLP4 0
ARGP4
ADDRGP4 Q_CleanStr
CALLP4
pop
ADDRGP4 $172
ARGP4
ADDRLP4 64
INDIRI4
CNSTI4 1
ADDI4
ARGI4
ADDRLP4 0
ARGP4
ADDRFP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 postgameMenuInfo+636
ADDP4
INDIRI4
ARGI4
ADDRLP4 1096
ADDRGP4 va
CALLP4
ASGNP4
CNSTI4 440
ARGI4
ADDRFP4 4
INDIRI4
ARGI4
ADDRLP4 1096
INDIRP4
ARGP4
CNSTI4 16
ARGI4
ADDRGP4 color_white
ARGP4
ADDRGP4 UI_DrawString
CALLV
pop
LABELV $158
endproc UI_SPPostgameMenu_MenuDrawScoreLine 1100 20
proc UI_SPPostgameMenu_MenuDraw 1060 20
CNSTI4 1
ARGI4
ADDRLP4 8
ARGP4
CNSTI4 1024
ARGI4
ADDRGP4 trap_GetConfigString
CALLI4
pop
ADDRLP4 8
ARGP4
ADDRGP4 $175
ARGP4
ADDRLP4 1036
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 1036
INDIRP4
ARGP4
ADDRLP4 1040
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 1032
ADDRLP4 1040
INDIRI4
ASGNI4
ADDRLP4 1032
INDIRI4
ADDRGP4 postgameMenuInfo+568
INDIRI4
EQI4 $176
ADDRGP4 UI_PopMenu
CALLV
pop
ADDRGP4 $174
JUMPV
LABELV $176
ADDRGP4 postgameMenuInfo+864
INDIRI4
CNSTI4 2
LEI4 $179
CNSTI4 510
ARGI4
CNSTI4 389
ARGI4
ADDRGP4 postgameMenuInfo+668+128
ARGP4
CNSTI4 1
ARGI4
ADDRGP4 color_white
ARGP4
ADDRGP4 UI_DrawProportionalString
CALLV
pop
LABELV $179
CNSTI4 130
ARGI4
CNSTI4 389
ARGI4
ADDRGP4 postgameMenuInfo+668+64
ARGP4
CNSTI4 1
ARGI4
ADDRGP4 color_white
ARGP4
ADDRGP4 UI_DrawProportionalString
CALLV
pop
CNSTI4 320
ARGI4
CNSTI4 362
ARGI4
ADDRGP4 postgameMenuInfo+668
ARGP4
CNSTI4 1
ARGI4
ADDRGP4 color_white
ARGP4
ADDRGP4 UI_DrawProportionalString
CALLV
pop
ADDRGP4 postgameMenuInfo+552
INDIRI4
CNSTI4 1
NEI4 $187
ADDRLP4 0
ADDRGP4 uis+4
INDIRI4
ADDRGP4 postgameMenuInfo+560
INDIRI4
SUBI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 1000
LTI4 $192
ADDRGP4 postgameMenuInfo+952
INDIRI4
CNSTI4 0
EQI4 $192
ADDRGP4 postgameMenuInfo+952
INDIRI4
ARGI4
CNSTI4 7
ARGI4
ADDRGP4 trap_S_StartLocalSound
CALLV
pop
ADDRGP4 postgameMenuInfo+952
CNSTI4 0
ASGNI4
LABELV $192
ADDRLP4 0
INDIRI4
CNSTI4 5000
GEI4 $197
ADDRGP4 $174
JUMPV
LABELV $197
ADDRGP4 postgameMenuInfo+552
CNSTI4 2
ASGNI4
ADDRGP4 postgameMenuInfo+560
ADDRGP4 uis+4
INDIRI4
ASGNI4
LABELV $187
ADDRGP4 postgameMenuInfo+552
INDIRI4
CNSTI4 2
NEI4 $202
ADDRLP4 0
ADDRGP4 uis+4
INDIRI4
ADDRGP4 postgameMenuInfo+560
INDIRI4
SUBI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 2000
ADDRGP4 postgameMenuInfo+872
INDIRI4
MULI4
LTI4 $207
ADDRLP4 0
INDIRI4
CNSTI4 5000
GEI4 $210
ADDRGP4 $174
JUMPV
LABELV $210
ADDRGP4 postgameMenuInfo+552
CNSTI4 3
ASGNI4
ADDRGP4 postgameMenuInfo+560
ADDRGP4 uis+4
INDIRI4
ASGNI4
ADDRGP4 $208
JUMPV
LABELV $207
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 UI_SPPostgameMenu_DrawAwardsPresentation
CALLV
pop
LABELV $208
LABELV $202
ADDRGP4 postgameMenuInfo+552
INDIRI4
CNSTI4 3
NEI4 $215
ADDRGP4 uis+11444
INDIRI4
CNSTI4 0
EQI4 $218
ADDRGP4 postgameMenuInfo+868
INDIRI4
CNSTI4 1
NEI4 $219
CNSTI4 8
ARGI4
ADDRLP4 1044
ADDRGP4 UI_ShowTierVideo
CALLI4
ASGNI4
ADDRLP4 1044
INDIRI4
CNSTI4 0
EQI4 $219
ADDRGP4 $224
ARGP4
ADDRGP4 $225
ARGP4
ADDRGP4 trap_Cvar_Set
CALLV
pop
CNSTI4 2
ARGI4
ADDRGP4 $226
ARGP4
ADDRGP4 trap_Cmd_ExecuteText
CALLV
pop
ADDRGP4 $174
JUMPV
LABELV $218
ADDRGP4 postgameMenuInfo+868
INDIRI4
CNSTI4 -1
LEI4 $227
ADDRGP4 postgameMenuInfo+868
INDIRI4
CNSTI4 1
ADDI4
ARGI4
ADDRLP4 1044
ADDRGP4 UI_ShowTierVideo
CALLI4
ASGNI4
ADDRLP4 1044
INDIRI4
CNSTI4 0
EQI4 $227
ADDRGP4 postgameMenuInfo+868
INDIRI4
ADDRGP4 postgameMenuInfo+948
INDIRI4
NEI4 $231
ADDRGP4 $224
ARGP4
ADDRGP4 $225
ARGP4
ADDRGP4 trap_Cvar_Set
CALLV
pop
CNSTI4 2
ARGI4
ADDRGP4 $235
ARGP4
ADDRGP4 trap_Cmd_ExecuteText
CALLV
pop
ADDRGP4 $174
JUMPV
LABELV $231
ADDRGP4 $236
ARGP4
ADDRGP4 postgameMenuInfo+868
INDIRI4
CNSTI4 2
LSHI4
CVIF4 4
ARGF4
ADDRGP4 trap_Cvar_SetValue
CALLV
pop
ADDRGP4 $224
ARGP4
ADDRGP4 $238
ARGP4
ADDRGP4 trap_Cvar_Set
CALLV
pop
ADDRGP4 $239
ARGP4
ADDRGP4 postgameMenuInfo+868
INDIRI4
CNSTI4 1
ADDI4
ARGI4
ADDRLP4 1048
ADDRGP4 va
CALLP4
ASGNP4
CNSTI4 2
ARGI4
ADDRLP4 1048
INDIRP4
ARGP4
ADDRGP4 trap_Cmd_ExecuteText
CALLV
pop
ADDRGP4 $174
JUMPV
LABELV $227
LABELV $219
ADDRLP4 1048
ADDRGP4 postgameMenuInfo+288+44
ASGNP4
ADDRLP4 1048
INDIRP4
ADDRLP4 1048
INDIRP4
INDIRU4
CNSTU4 4294950911
BANDU4
ASGNU4
ADDRLP4 1052
ADDRGP4 postgameMenuInfo+376+44
ASGNP4
ADDRLP4 1052
INDIRP4
ADDRLP4 1052
INDIRP4
INDIRU4
CNSTU4 4294950911
BANDU4
ASGNU4
ADDRLP4 1056
ADDRGP4 postgameMenuInfo+464+44
ASGNP4
ADDRLP4 1056
INDIRP4
ADDRLP4 1056
INDIRP4
INDIRU4
CNSTU4 4294950911
BANDU4
ASGNU4
ADDRGP4 postgameMenuInfo+872
INDIRI4
ARGI4
ADDRGP4 UI_SPPostgameMenu_DrawAwardsMedals
CALLV
pop
ADDRGP4 postgameMenuInfo
ARGP4
ADDRGP4 Menu_Draw
CALLV
pop
LABELV $215
ADDRGP4 $250
ARGP4
ADDRLP4 1044
ADDRGP4 trap_Cvar_VariableValue
CALLF4
ASGNF4
ADDRLP4 1044
INDIRF4
CNSTF4 0
NEF4 $248
ADDRGP4 $174
JUMPV
LABELV $248
ADDRLP4 0
ADDRGP4 uis+4
INDIRI4
ADDRGP4 postgameMenuInfo+564
INDIRI4
SUBI4
ASGNI4
ADDRGP4 postgameMenuInfo+864
INDIRI4
CNSTI4 3
GTI4 $253
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRGP4 $254
JUMPV
LABELV $253
ADDRLP4 4
ADDRLP4 0
INDIRI4
CNSTI4 1500
DIVI4
ADDRGP4 postgameMenuInfo+864
INDIRI4
CNSTI4 2
ADDI4
MODI4
ASGNI4
LABELV $254
ADDRLP4 4
INDIRI4
ARGI4
CNSTI4 0
ARGI4
ADDRGP4 UI_SPPostgameMenu_MenuDrawScoreLine
CALLV
pop
ADDRLP4 4
INDIRI4
CNSTI4 1
ADDI4
ARGI4
CNSTI4 16
ARGI4
ADDRGP4 UI_SPPostgameMenu_MenuDrawScoreLine
CALLV
pop
ADDRLP4 4
INDIRI4
CNSTI4 2
ADDI4
ARGI4
CNSTI4 32
ARGI4
ADDRGP4 UI_SPPostgameMenu_MenuDrawScoreLine
CALLV
pop
LABELV $174
endproc UI_SPPostgameMenu_MenuDraw 1060 20
export UI_SPPostgameMenu_Cache
proc UI_SPPostgameMenu_Cache 12 8
ADDRGP4 $258
ARGP4
ADDRLP4 8
ADDRGP4 trap_Cvar_VariableValue
CALLF4
ASGNF4
ADDRLP4 4
ADDRLP4 8
INDIRF4
CVFI4 4
ASGNI4
ADDRGP4 $259
ARGP4
ADDRGP4 trap_R_RegisterShaderNoMip
CALLI4
pop
ADDRGP4 $260
ARGP4
ADDRGP4 trap_R_RegisterShaderNoMip
CALLI4
pop
ADDRGP4 $261
ARGP4
ADDRGP4 trap_R_RegisterShaderNoMip
CALLI4
pop
ADDRGP4 $262
ARGP4
ADDRGP4 trap_R_RegisterShaderNoMip
CALLI4
pop
ADDRGP4 $263
ARGP4
ADDRGP4 trap_R_RegisterShaderNoMip
CALLI4
pop
ADDRGP4 $264
ARGP4
ADDRGP4 trap_R_RegisterShaderNoMip
CALLI4
pop
ADDRLP4 0
CNSTI4 0
ASGNI4
LABELV $265
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 ui_medalPicNames
ADDP4
INDIRP4
ARGP4
ADDRGP4 trap_R_RegisterShaderNoMip
CALLI4
pop
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 ui_medalSounds
ADDP4
INDIRP4
ARGP4
CNSTI4 0
ARGI4
ADDRGP4 trap_S_RegisterSound
CALLI4
pop
LABELV $266
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 6
LTI4 $265
ADDRLP4 4
INDIRI4
CNSTI4 0
EQI4 $269
ADDRGP4 $271
ARGP4
CNSTI4 0
ARGI4
ADDRGP4 trap_S_RegisterSound
CALLI4
pop
ADDRGP4 $272
ARGP4
CNSTI4 0
ARGI4
ADDRGP4 trap_S_RegisterSound
CALLI4
pop
ADDRGP4 $273
ARGP4
CNSTI4 0
ARGI4
ADDRGP4 trap_S_RegisterSound
CALLI4
pop
LABELV $269
LABELV $257
endproc UI_SPPostgameMenu_Cache 12 8
proc UI_SPPostgameMenu_Init 0 8
ADDRGP4 postgameMenuInfo+276
CNSTI4 1
ASGNI4
ADDRGP4 postgameMenuInfo+272
ADDRGP4 UI_SPPostgameMenu_MenuKey
ASGNP4
ADDRGP4 postgameMenuInfo+268
ADDRGP4 UI_SPPostgameMenu_MenuDraw
ASGNP4
ADDRGP4 postgameMenuInfo+556
ADDRGP4 uis+4
INDIRI4
CNSTI4 1500
ADDI4
ASGNI4
ADDRGP4 UI_SPPostgameMenu_Cache
CALLV
pop
ADDRGP4 postgameMenuInfo+464
CNSTI4 6
ASGNI4
ADDRGP4 postgameMenuInfo+464+4
ADDRGP4 $259
ASGNP4
ADDRGP4 postgameMenuInfo+464+44
CNSTU4 16644
ASGNU4
ADDRGP4 postgameMenuInfo+464+12
CNSTI4 0
ASGNI4
ADDRGP4 postgameMenuInfo+464+16
CNSTI4 416
ASGNI4
ADDRGP4 postgameMenuInfo+464+48
ADDRGP4 UI_SPPostgameMenu_MenuEvent
ASGNP4
ADDRGP4 postgameMenuInfo+464+8
CNSTI4 12
ASGNI4
ADDRGP4 postgameMenuInfo+464+76
CNSTI4 128
ASGNI4
ADDRGP4 postgameMenuInfo+464+80
CNSTI4 64
ASGNI4
ADDRGP4 postgameMenuInfo+464+60
ADDRGP4 $260
ASGNP4
ADDRGP4 postgameMenuInfo+288
CNSTI4 6
ASGNI4
ADDRGP4 postgameMenuInfo+288+4
ADDRGP4 $261
ASGNP4
ADDRGP4 postgameMenuInfo+288+44
CNSTU4 16648
ASGNU4
ADDRGP4 postgameMenuInfo+288+12
CNSTI4 320
ASGNI4
ADDRGP4 postgameMenuInfo+288+16
CNSTI4 416
ASGNI4
ADDRGP4 postgameMenuInfo+288+48
ADDRGP4 UI_SPPostgameMenu_AgainEvent
ASGNP4
ADDRGP4 postgameMenuInfo+288+8
CNSTI4 10
ASGNI4
ADDRGP4 postgameMenuInfo+288+76
CNSTI4 128
ASGNI4
ADDRGP4 postgameMenuInfo+288+80
CNSTI4 64
ASGNI4
ADDRGP4 postgameMenuInfo+288+60
ADDRGP4 $262
ASGNP4
ADDRGP4 postgameMenuInfo+376
CNSTI4 6
ASGNI4
ADDRGP4 postgameMenuInfo+376+4
ADDRGP4 $263
ASGNP4
ADDRGP4 postgameMenuInfo+376+44
CNSTU4 16656
ASGNU4
ADDRGP4 postgameMenuInfo+376+12
CNSTI4 640
ASGNI4
ADDRGP4 postgameMenuInfo+376+16
CNSTI4 416
ASGNI4
ADDRGP4 postgameMenuInfo+376+48
ADDRGP4 UI_SPPostgameMenu_NextEvent
ASGNP4
ADDRGP4 postgameMenuInfo+376+8
CNSTI4 11
ASGNI4
ADDRGP4 postgameMenuInfo+376+76
CNSTI4 128
ASGNI4
ADDRGP4 postgameMenuInfo+376+80
CNSTI4 64
ASGNI4
ADDRGP4 postgameMenuInfo+376+60
ADDRGP4 $264
ASGNP4
ADDRGP4 postgameMenuInfo
ARGP4
ADDRGP4 postgameMenuInfo+464
ARGP4
ADDRGP4 Menu_AddItem
CALLV
pop
ADDRGP4 postgameMenuInfo
ARGP4
ADDRGP4 postgameMenuInfo+288
ARGP4
ADDRGP4 Menu_AddItem
CALLV
pop
ADDRGP4 postgameMenuInfo
ARGP4
ADDRGP4 postgameMenuInfo+376
ARGP4
ADDRGP4 Menu_AddItem
CALLV
pop
LABELV $274
endproc UI_SPPostgameMenu_Init 0 8
proc Prepname 1104 12
ADDRFP4 0
ADDRFP4 0
INDIRI4
ASGNI4
ADDRFP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 postgameMenuInfo+572
ADDP4
INDIRI4
CNSTI4 544
ADDI4
ARGI4
ADDRLP4 68
ARGP4
CNSTI4 1024
ARGI4
ADDRGP4 trap_GetConfigString
CALLI4
pop
ADDRLP4 68
ARGP4
ADDRGP4 $171
ARGP4
ADDRLP4 1092
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 4
ARGP4
ADDRLP4 1092
INDIRP4
ARGP4
CNSTI4 64
ARGI4
ADDRGP4 Q_strncpyz
CALLV
pop
ADDRLP4 4
ARGP4
ADDRGP4 Q_CleanStr
CALLP4
pop
ADDRLP4 4
ARGP4
ADDRLP4 1096
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 0
ADDRLP4 1096
INDIRU4
CVUI4 4
ASGNI4
ADDRGP4 $343
JUMPV
LABELV $342
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
SUBI4
ASGNI4
ADDRLP4 0
INDIRI4
ADDRLP4 4
ADDP4
CNSTI1 0
ASGNI1
LABELV $343
ADDRLP4 0
INDIRI4
CNSTI4 0
EQI4 $345
ADDRLP4 4
ARGP4
ADDRLP4 1100
ADDRGP4 UI_ProportionalStringWidth
CALLI4
ASGNI4
ADDRLP4 1100
INDIRI4
CNSTI4 256
GTI4 $342
LABELV $345
ADDRFP4 0
INDIRI4
CNSTI4 6
LSHI4
ADDRGP4 postgameMenuInfo+668
ADDP4
ARGP4
ADDRLP4 4
ARGP4
CNSTI4 64
ARGI4
ADDRGP4 Q_strncpyz
CALLV
pop
LABELV $340
endproc Prepname 1104 12
export UI_SPPostgameMenu_f
proc UI_SPPostgameMenu_f 1248 12
ADDRGP4 postgameMenuInfo
ARGP4
CNSTI4 0
ARGI4
CNSTU4 956
ARGU4
ADDRGP4 qk_memset
CALLP4
pop
CNSTI4 1
ARGI4
ADDRLP4 36
ARGP4
CNSTI4 1024
ARGI4
ADDRGP4 trap_GetConfigString
CALLI4
pop
ADDRLP4 36
ARGP4
ADDRGP4 $175
ARGP4
ADDRLP4 1136
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 1136
INDIRP4
ARGP4
ADDRLP4 1140
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 postgameMenuInfo+568
ADDRLP4 1140
INDIRI4
ASGNI4
CNSTI4 0
ARGI4
ADDRLP4 36
ARGP4
CNSTI4 1024
ARGI4
ADDRGP4 trap_GetConfigString
CALLI4
pop
ADDRLP4 36
ARGP4
ADDRGP4 $350
ARGP4
ADDRLP4 1144
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 1064
ARGP4
ADDRLP4 1144
INDIRP4
ARGP4
CNSTI4 64
ARGI4
ADDRGP4 Q_strncpyz
CALLV
pop
ADDRLP4 1064
ARGP4
ADDRLP4 1148
ADDRGP4 UI_GetArenaInfoByMap
CALLP4
ASGNP4
ADDRLP4 1060
ADDRLP4 1148
INDIRP4
ASGNP4
ADDRLP4 1060
INDIRP4
CVPU4 4
CNSTU4 0
NEU4 $351
ADDRGP4 $348
JUMPV
LABELV $351
ADDRGP4 arenainfo
ARGP4
ADDRLP4 1060
INDIRP4
ARGP4
CNSTI4 1024
ARGI4
ADDRGP4 Q_strncpyz
CALLV
pop
ADDRGP4 arenainfo
ARGP4
ADDRGP4 $354
ARGP4
ADDRLP4 1152
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 1152
INDIRP4
ARGP4
ADDRLP4 1156
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 postgameMenuInfo+860
ADDRLP4 1156
INDIRI4
ASGNI4
CNSTI4 1
ARGI4
ADDRLP4 1160
ADDRGP4 UI_Argv
CALLP4
ASGNP4
ADDRLP4 1160
INDIRP4
ARGP4
ADDRLP4 1164
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 postgameMenuInfo+864
ADDRLP4 1164
INDIRI4
ASGNI4
CNSTI4 2
ARGI4
ADDRLP4 1168
ADDRGP4 UI_Argv
CALLP4
ASGNP4
ADDRLP4 1168
INDIRP4
ARGP4
ADDRLP4 1172
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 28
ADDRLP4 1172
INDIRI4
ASGNI4
ADDRLP4 1176
CNSTI4 8
ASGNI4
ADDRLP4 32
ADDRLP4 1176
INDIRI4
ASGNI4
ADDRGP4 postgameMenuInfo+864
INDIRI4
ADDRLP4 1176
INDIRI4
LEI4 $356
ADDRGP4 postgameMenuInfo+864
CNSTI4 8
ASGNI4
LABELV $356
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $363
JUMPV
LABELV $360
CNSTI4 3
ADDRLP4 0
INDIRI4
MULI4
CNSTI4 8
ADDI4
CNSTI4 1
ADDI4
ARGI4
ADDRLP4 1184
ADDRGP4 UI_Argv
CALLP4
ASGNP4
ADDRLP4 1184
INDIRP4
ARGP4
ADDRLP4 1188
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 postgameMenuInfo+572
ADDP4
ADDRLP4 1188
INDIRI4
ASGNI4
ADDRLP4 1196
CNSTI4 2
ASGNI4
CNSTI4 3
ADDRLP4 0
INDIRI4
MULI4
CNSTI4 8
ADDI4
ADDRLP4 1196
INDIRI4
ADDI4
ARGI4
ADDRLP4 1200
ADDRGP4 UI_Argv
CALLP4
ASGNP4
ADDRLP4 1200
INDIRP4
ARGP4
ADDRLP4 1204
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
ADDRLP4 1196
INDIRI4
LSHI4
ADDRGP4 postgameMenuInfo+604
ADDP4
ADDRLP4 1204
INDIRI4
ASGNI4
ADDRLP4 1208
CNSTI4 3
ASGNI4
ADDRLP4 1208
INDIRI4
ADDRLP4 0
INDIRI4
MULI4
CNSTI4 8
ADDI4
ADDRLP4 1208
INDIRI4
ADDI4
ARGI4
ADDRLP4 1216
ADDRGP4 UI_Argv
CALLP4
ASGNP4
ADDRLP4 1216
INDIRP4
ARGP4
ADDRLP4 1220
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 postgameMenuInfo+636
ADDP4
ADDRLP4 1220
INDIRI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 postgameMenuInfo+572
ADDP4
INDIRI4
ADDRLP4 28
INDIRI4
NEI4 $368
ADDRLP4 32
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 postgameMenuInfo+604
ADDP4
INDIRI4
CNSTI4 -16385
BANDI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $368
LABELV $361
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $363
ADDRLP4 0
INDIRI4
ADDRGP4 postgameMenuInfo+864
INDIRI4
LTI4 $360
ADDRGP4 postgameMenuInfo+860
INDIRI4
ARGI4
ADDRLP4 32
INDIRI4
ARGI4
ADDRGP4 UI_SetBestScore
CALLV
pop
CNSTI4 3
ARGI4
ADDRLP4 1180
ADDRGP4 UI_Argv
CALLP4
ASGNP4
ADDRLP4 1180
INDIRP4
ARGP4
ADDRLP4 1184
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 4
ADDRLP4 1184
INDIRI4
ASGNI4
CNSTI4 4
ARGI4
ADDRLP4 1188
ADDRGP4 UI_Argv
CALLP4
ASGNP4
ADDRLP4 1188
INDIRP4
ARGP4
ADDRLP4 1192
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 4+4
ADDRLP4 1192
INDIRI4
ASGNI4
CNSTI4 5
ARGI4
ADDRLP4 1196
ADDRGP4 UI_Argv
CALLP4
ASGNP4
ADDRLP4 1196
INDIRP4
ARGP4
ADDRLP4 1200
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 4+8
ADDRLP4 1200
INDIRI4
ASGNI4
CNSTI4 6
ARGI4
ADDRLP4 1204
ADDRGP4 UI_Argv
CALLP4
ASGNP4
ADDRLP4 1204
INDIRP4
ARGP4
ADDRLP4 1208
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 4+12
ADDRLP4 1208
INDIRI4
ASGNI4
CNSTI4 7
ARGI4
ADDRLP4 1212
ADDRGP4 UI_Argv
CALLP4
ASGNP4
ADDRLP4 1212
INDIRP4
ARGP4
ADDRLP4 1216
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 4+16
ADDRLP4 1216
INDIRI4
ASGNI4
CNSTI4 8
ARGI4
ADDRLP4 1220
ADDRGP4 UI_Argv
CALLP4
ASGNP4
ADDRLP4 1220
INDIRP4
ARGP4
ADDRLP4 1224
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 4+20
ADDRLP4 1224
INDIRI4
ASGNI4
ADDRGP4 postgameMenuInfo+872
CNSTI4 0
ASGNI4
ADDRLP4 4
INDIRI4
CNSTI4 50
LTI4 $379
CNSTI4 0
ARGI4
CNSTI4 1
ARGI4
ADDRGP4 UI_LogAwardData
CALLV
pop
ADDRGP4 postgameMenuInfo+872
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 postgameMenuInfo+876
ADDP4
CNSTI4 0
ASGNI4
ADDRGP4 postgameMenuInfo+872
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 postgameMenuInfo+900
ADDP4
ADDRLP4 4
INDIRI4
ASGNI4
ADDRLP4 1228
ADDRGP4 postgameMenuInfo+872
ASGNP4
ADDRLP4 1228
INDIRP4
ADDRLP4 1228
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $379
ADDRLP4 4+4
INDIRI4
CNSTI4 0
EQI4 $386
CNSTI4 1
ARGI4
ADDRLP4 4+4
INDIRI4
ARGI4
ADDRGP4 UI_LogAwardData
CALLV
pop
ADDRGP4 postgameMenuInfo+872
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 postgameMenuInfo+876
ADDP4
CNSTI4 1
ASGNI4
ADDRGP4 postgameMenuInfo+872
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 postgameMenuInfo+900
ADDP4
ADDRLP4 4+4
INDIRI4
ASGNI4
ADDRLP4 1228
ADDRGP4 postgameMenuInfo+872
ASGNP4
ADDRLP4 1228
INDIRP4
ADDRLP4 1228
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $386
ADDRLP4 4+8
INDIRI4
CNSTI4 0
EQI4 $396
CNSTI4 2
ARGI4
ADDRLP4 4+8
INDIRI4
ARGI4
ADDRGP4 UI_LogAwardData
CALLV
pop
ADDRLP4 1228
CNSTI4 2
ASGNI4
ADDRGP4 postgameMenuInfo+872
INDIRI4
ADDRLP4 1228
INDIRI4
LSHI4
ADDRGP4 postgameMenuInfo+876
ADDP4
ADDRLP4 1228
INDIRI4
ASGNI4
ADDRGP4 postgameMenuInfo+872
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 postgameMenuInfo+900
ADDP4
ADDRLP4 4+8
INDIRI4
ASGNI4
ADDRLP4 1232
ADDRGP4 postgameMenuInfo+872
ASGNP4
ADDRLP4 1232
INDIRP4
ADDRLP4 1232
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $396
ADDRLP4 4+12
INDIRI4
CNSTI4 0
EQI4 $406
CNSTI4 3
ARGI4
ADDRLP4 4+12
INDIRI4
ARGI4
ADDRGP4 UI_LogAwardData
CALLV
pop
ADDRGP4 postgameMenuInfo+872
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 postgameMenuInfo+876
ADDP4
CNSTI4 3
ASGNI4
ADDRGP4 postgameMenuInfo+872
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 postgameMenuInfo+900
ADDP4
ADDRLP4 4+12
INDIRI4
ASGNI4
ADDRLP4 1228
ADDRGP4 postgameMenuInfo+872
ASGNP4
ADDRLP4 1228
INDIRP4
ADDRLP4 1228
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $406
CNSTI4 4
ARGI4
ADDRLP4 1228
ADDRGP4 UI_GetAwardLevel
CALLI4
ASGNI4
ADDRLP4 1132
ADDRLP4 1228
INDIRI4
CNSTI4 100
DIVI4
ASGNI4
CNSTI4 4
ARGI4
ADDRLP4 4+16
INDIRI4
ARGI4
ADDRGP4 UI_LogAwardData
CALLV
pop
CNSTI4 4
ARGI4
ADDRLP4 1232
ADDRGP4 UI_GetAwardLevel
CALLI4
ASGNI4
ADDRLP4 1128
ADDRLP4 1232
INDIRI4
CNSTI4 100
DIVI4
ASGNI4
ADDRLP4 1128
INDIRI4
ADDRLP4 1132
INDIRI4
LEI4 $417
ADDRGP4 postgameMenuInfo+872
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 postgameMenuInfo+876
ADDP4
CNSTI4 4
ASGNI4
ADDRGP4 postgameMenuInfo+872
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 postgameMenuInfo+900
ADDP4
CNSTI4 100
ADDRLP4 1128
INDIRI4
MULI4
ASGNI4
ADDRLP4 1236
ADDRGP4 postgameMenuInfo+872
ASGNP4
ADDRLP4 1236
INDIRP4
ADDRLP4 1236
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $417
ADDRLP4 4+20
INDIRI4
CNSTI4 0
EQI4 $424
CNSTI4 5
ARGI4
CNSTI4 1
ARGI4
ADDRGP4 UI_LogAwardData
CALLV
pop
ADDRGP4 postgameMenuInfo+872
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 postgameMenuInfo+876
ADDP4
CNSTI4 5
ASGNI4
ADDRGP4 postgameMenuInfo+872
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 postgameMenuInfo+900
ADDP4
CNSTI4 1
ASGNI4
ADDRLP4 1236
ADDRGP4 postgameMenuInfo+872
ASGNP4
ADDRLP4 1236
INDIRP4
ADDRLP4 1236
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $424
ADDRLP4 32
INDIRI4
CNSTI4 1
NEI4 $432
ADDRGP4 postgameMenuInfo+860
INDIRI4
ARGI4
ADDRLP4 1236
ADDRGP4 UI_TierCompleted
CALLI4
ASGNI4
ADDRGP4 postgameMenuInfo+868
ADDRLP4 1236
INDIRI4
ASGNI4
ADDRGP4 $433
JUMPV
LABELV $432
ADDRGP4 postgameMenuInfo+868
CNSTI4 -1
ASGNI4
LABELV $433
ADDRGP4 postgameMenuInfo+560
ADDRGP4 uis+4
INDIRI4
ASGNI4
ADDRGP4 postgameMenuInfo+564
ADDRGP4 uis+4
INDIRI4
ASGNI4
CNSTI4 2
ARGI4
ADDRGP4 trap_Key_SetCatcher
CALLV
pop
ADDRGP4 uis+16
CNSTI4 0
ASGNI4
ADDRGP4 UI_SPPostgameMenu_Init
CALLV
pop
ADDRGP4 postgameMenuInfo
ARGP4
ADDRGP4 UI_PushMenu
CALLV
pop
ADDRLP4 32
INDIRI4
CNSTI4 1
NEI4 $442
ADDRGP4 postgameMenuInfo
ARGP4
ADDRGP4 postgameMenuInfo+376
ARGP4
ADDRGP4 Menu_SetCursorToItem
CALLV
pop
ADDRGP4 $443
JUMPV
LABELV $442
ADDRGP4 postgameMenuInfo
ARGP4
ADDRGP4 postgameMenuInfo+288
ARGP4
ADDRGP4 Menu_SetCursorToItem
CALLV
pop
LABELV $443
CNSTI4 0
ARGI4
ADDRGP4 Prepname
CALLV
pop
CNSTI4 1
ARGI4
ADDRGP4 Prepname
CALLV
pop
CNSTI4 2
ARGI4
ADDRGP4 Prepname
CALLV
pop
ADDRLP4 32
INDIRI4
CNSTI4 1
EQI4 $446
ADDRGP4 $449
ARGP4
ADDRGP4 postgameMenuInfo+668
ARGP4
ADDRLP4 1236
ADDRGP4 va
CALLP4
ASGNP4
ADDRLP4 1236
INDIRP4
ARGP4
CNSTI4 0
ARGI4
ADDRLP4 1240
ADDRGP4 trap_S_RegisterSound
CALLI4
ASGNI4
ADDRGP4 postgameMenuInfo+952
ADDRLP4 1240
INDIRI4
ASGNI4
CNSTI4 2
ARGI4
ADDRGP4 $451
ARGP4
ADDRGP4 trap_Cmd_ExecuteText
CALLV
pop
ADDRGP4 $447
JUMPV
LABELV $446
ADDRGP4 $273
ARGP4
CNSTI4 0
ARGI4
ADDRLP4 1236
ADDRGP4 trap_S_RegisterSound
CALLI4
ASGNI4
ADDRGP4 postgameMenuInfo+952
ADDRLP4 1236
INDIRI4
ASGNI4
CNSTI4 2
ARGI4
ADDRGP4 $453
ARGP4
ADDRGP4 trap_Cmd_ExecuteText
CALLV
pop
LABELV $447
ADDRGP4 postgameMenuInfo+552
CNSTI4 1
ASGNI4
ADDRLP4 1236
ADDRGP4 UI_GetNumSPTiers
CALLI4
ASGNI4
ADDRGP4 postgameMenuInfo+948
ADDRLP4 1236
INDIRI4
ASGNI4
ADDRGP4 $458
ARGP4
ADDRLP4 1240
ADDRGP4 UI_GetSpecialArenaInfo
CALLP4
ASGNP4
ADDRLP4 1240
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $456
ADDRLP4 1244
ADDRGP4 postgameMenuInfo+948
ASGNP4
ADDRLP4 1244
INDIRP4
ADDRLP4 1244
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $456
LABELV $348
endproc UI_SPPostgameMenu_f 1248 12
bss
align 1
LABELV arenainfo
skip 1024
align 4
LABELV postgameMenuInfo
skip 956
import UI_RankStatusMenu
import RankStatus_Cache
import UI_SignupMenu
import Signup_Cache
import UI_LoginMenu
import Login_Cache
import UI_RankingsMenu
import Rankings_Cache
import Rankings_DrawPassword
import Rankings_DrawName
import Rankings_DrawText
import UI_InitGameinfo
import UI_SPUnlockMedals_f
import UI_SPUnlock_f
import UI_GetAwardLevel
import UI_LogAwardData
import UI_NewGame
import UI_GetCurrentGame
import UI_CanShowTierVideo
import UI_ShowTierVideo
import UI_TierCompleted
import UI_SetBestScore
import UI_GetBestScore
import UI_GetNumBots
import UI_GetBotInfoByName
import UI_GetBotInfoByNumber
import UI_GetNumSPTiers
import UI_GetNumSPArenas
import UI_GetNumArenas
import UI_GetSpecialArenaInfo
import UI_GetArenaInfoByMap
import UI_GetArenaInfoByNumber
import UI_NetworkOptionsMenu
import UI_NetworkOptionsMenu_Cache
import UI_SoundOptionsMenu
import UI_SoundOptionsMenu_Cache
import UI_DisplayOptionsMenu
import UI_DisplayOptionsMenu_Cache
import UI_SaveConfigMenu
import UI_SaveConfigMenu_Cache
import UI_LoadConfigMenu
import UI_LoadConfig_Cache
import UI_TeamOrdersMenu_Cache
import UI_TeamOrdersMenu_f
import UI_TeamOrdersMenu
import UI_RemoveBotsMenu
import UI_RemoveBots_Cache
import UI_AddBotsMenu
import UI_AddBots_Cache
import trap_SetPbClStatus
import trap_VerifyCDKey
import trap_SetCDKey
import trap_GetCDKey
import trap_MemoryRemaining
import trap_LAN_GetPingInfo
import trap_LAN_GetPing
import trap_LAN_ClearPing
import trap_LAN_ServerStatus
import trap_LAN_GetPingQueueCount
import trap_LAN_GetServerInfo
import trap_LAN_GetServerAddressString
import trap_LAN_GetServerCount
import trap_GetConfigString
import trap_GetGlconfig
import trap_GetClientState
import trap_GetClipboardData
import trap_Key_SetCatcher
import trap_Key_GetCatcher
import trap_Key_ClearStates
import trap_Key_SetOverstrikeMode
import trap_Key_GetOverstrikeMode
import trap_Key_IsDown
import trap_Key_SetBinding
import trap_Key_GetBindingBuf
import trap_Key_KeynumToStringBuf
import trap_S_RegisterSound
import trap_S_StartLocalSound
import trap_CM_LerpTag
import trap_UpdateScreen
import trap_R_DrawStretchPic
import trap_R_SetColor
import trap_R_RenderScene
import trap_R_AddLightToScene
import trap_R_AddPolyToScene
import trap_R_AddRefEntityToScene
import trap_R_ClearScene
import trap_R_RegisterShaderNoMip
import trap_R_RegisterSkin
import trap_R_RegisterModel
import trap_FS_Seek
import trap_FS_GetFileList
import trap_FS_FCloseFile
import trap_FS_Write
import trap_FS_Read
import trap_FS_FOpenFile
import trap_Cmd_ExecuteText
import trap_Argv
import trap_Argc
import trap_Cvar_InfoStringBuffer
import trap_Cvar_Create
import trap_Cvar_Reset
import trap_Cvar_SetValue
import trap_Cvar_VariableStringBuffer
import trap_Cvar_VariableValue
import trap_Cvar_Set
import trap_Cvar_Update
import trap_Cvar_Register
import trap_Milliseconds
import trap_Error
import trap_Print
import UI_SPSkillMenu_Cache
import UI_SPSkillMenu
import UI_SPArena_Start
import UI_SPLevelMenu_ReInit
import UI_SPLevelMenu_f
import UI_SPLevelMenu
import UI_SPLevelMenu_Cache
import uis
import m_entersound
import UI_StartDemoLoop
import UI_Cvar_VariableString
import UI_Argv
import UI_ForceMenuOff
import UI_PopMenu
import UI_PushMenu
import UI_SetActiveMenu
import UI_IsFullscreen
import UI_DrawTextBox
import UI_AdjustFrom640
import UI_CursorInRect
import UI_DrawChar
import UI_DrawString
import UI_ProportionalStringWidth
import UI_DrawProportionalString_AutoWrapped
import UI_DrawProportionalString
import UI_ProportionalSizeScale
import UI_DrawBannerString
import UI_LerpColor
import UI_SetColor
import UI_UpdateScreen
import UI_DrawRect
import UI_FillRect
import UI_DrawHandlePic
import UI_DrawNamedPic
import UI_ClampCvar
import UI_ConsoleCommand
import UI_Refresh
import UI_MouseEvent
import UI_KeyEvent
import UI_Shutdown
import UI_Init
import UI_RegisterClientModelname
import UI_PlayerInfo_SetInfo
import UI_PlayerInfo_SetModel
import UI_DrawPlayer
import DriverInfo_Cache
import GraphicsOptions_Cache
import UI_GraphicsOptionsMenu
import ServerInfo_Cache
import UI_ServerInfoMenu
import UI_BotSelectMenu_Cache
import UI_BotSelectMenu
import ServerOptions_Cache
import StartServer_Cache
import UI_StartServerMenu
import ArenaServers_Cache
import UI_ArenaServersMenu
import SpecifyServer_Cache
import UI_SpecifyServerMenu
import SpecifyLeague_Cache
import UI_SpecifyLeagueMenu
import Preferences_Cache
import UI_PreferencesMenu
import PlayerSettings_Cache
import UI_PlayerSettingsMenu
import PlayerModel_Cache
import UI_PlayerModelMenu
import UI_CDKeyMenu_f
import UI_CDKeyMenu_Cache
import UI_CDKeyMenu
import UI_ModsMenu_Cache
import UI_ModsMenu
import UI_CinematicsMenu_Cache
import UI_CinematicsMenu_f
import UI_CinematicsMenu
import Demos_Cache
import UI_DemosMenu
import Controls_Cache
import UI_ControlsMenu
import UI_DrawConnectScreen
import TeamMain_Cache
import UI_TeamMainMenu
import UI_SetupMenu
import UI_SetupMenu_Cache
import UI_Message
import UI_ConfirmMenu_Style
import UI_ConfirmMenu
import ConfirmMenu_Cache
import UI_InGameMenu
import InGame_Cache
import UI_CreditMenu
import UI_UpdateCvars
import UI_RegisterCvars
import UI_MainMenu
import MainMenu_Cache
import MenuField_Key
import MenuField_Draw
import MenuField_Init
import MField_Draw
import MField_CharEvent
import MField_KeyDownEvent
import MField_Clear
import text_color_highlight
import text_color_normal
import text_color_disabled
import listbar_color
import list_color
import name_color
import color_dim
import color_red
import color_orange
import color_blue
import color_yellow
import color_white
import color_black
import menu_dim_color
import menu_black_color
import menu_red_color
import menu_highlight_color
import menu_dark_color
import menu_grayed_color
import menu_text_color
import weaponChangeSound
import menu_null_sound
import menu_buzz_sound
import menu_out_sound
import menu_move_sound
import menu_in_sound
import ScrollList_Key
import ScrollList_Draw
import Bitmap_Draw
import Bitmap_Init
import Menu_DefaultKey
import Menu_SetCursorToItem
import Menu_SetCursor
import Menu_ActivateItem
import Menu_ItemAtCursor
import Menu_Draw
import Menu_AdjustCursor
import Menu_AddItem
import Menu_Focus
import Menu_Cache
import ui_ioq3
import ui_cdkeychecked
import ui_cdkey
import ui_server16
import ui_server15
import ui_server14
import ui_server13
import ui_server12
import ui_server11
import ui_server10
import ui_server9
import ui_server8
import ui_server7
import ui_server6
import ui_server5
import ui_server4
import ui_server3
import ui_server2
import ui_server1
import ui_marks
import ui_drawCrosshairNames
import ui_drawCrosshair
import ui_brassTime
import ui_browserShowEmpty
import ui_browserShowFull
import ui_browserSortKey
import ui_browserGameType
import ui_browserMaster
import ui_spSelection
import ui_spSkill
import ui_spVideos
import ui_spAwards
import ui_spScores5
import ui_spScores4
import ui_spScores3
import ui_spScores2
import ui_spScores1
import ui_botsFile
import ui_arenasFile
import ui_ctf_friendly
import ui_ctf_timelimit
import ui_ctf_capturelimit
import ui_team_friendly
import ui_team_timelimit
import ui_team_fraglimit
import ui_tourney_timelimit
import ui_tourney_fraglimit
import ui_ffa_timelimit
import ui_ffa_fraglimit
import BG_PlayerTouchesItem
import BG_PlayerStateToEntityStateExtraPolate
import BG_PlayerStateToEntityState
import BG_TouchJumpPad
import BG_AddPredictableEventToPlayerstate
import BG_EvaluateTrajectoryDelta
import BG_EvaluateTrajectory
import BG_CanItemBeGrabbed
import BG_FindItemForHoldable
import BG_FindItemForPowerup
import BG_FindItemForWeapon
import BG_FindItem
import bg_numItems
import bg_itemlist
import Pmove
import PM_UpdateViewAngles
import Com_Printf
import Com_Error
import Info_NextPair
import Info_Validate
import Info_SetValueForKey_Big
import Info_SetValueForKey
import Info_RemoveKey_Big
import Info_RemoveKey
import Info_ValueForKey
import Com_TruncateLongString
import va
import Q_CountChar
import Q_CleanStr
import Q_PrintStrlen
import Q_strcat
import Q_strncpyz
import Q_stristr
import Q_strupr
import Q_strlwr
import Q_stricmpn
import Q_strncmp
import Q_stricmp
import Q_isintegral
import Q_isanumber
import Q_isalpha
import Q_isupper
import Q_islower
import Q_isprint
import Com_RandomBytes
import Com_SkipCharset
import Com_SkipTokens
import Com_sprintf
import Com_HexStrToInt
import Parse3DMatrix
import Parse2DMatrix
import Parse1DMatrix
import SkipRestOfLine
import SkipBracedSection
import COM_MatchToken
import COM_ParseWarning
import COM_ParseError
import COM_Compress
import COM_ParseExt
import COM_Parse
import COM_GetCurrentParseLine
import COM_BeginParseSession
import COM_DefaultExtension
import COM_CompareExtension
import COM_StripExtension
import COM_GetExtension
import COM_SkipPath
import Com_Clamp
import PerpendicularVector
import AngleVectors
import MatrixMultiply
import MakeNormalVectors
import RotateAroundDirection
import RotatePointAroundVector
import ProjectPointOnPlane
import PlaneFromPoints
import AngleDelta
import AngleNormalize180
import AngleNormalize360
import AnglesSubtract
import AngleSubtract
import LerpAngle
import AngleMod
import BoundsIntersectPoint
import BoundsIntersectSphere
import BoundsIntersect
import BoxOnPlaneSide
import SetPlaneSignbits
import AxisCopy
import AxisClear
import AnglesToAxis
import vectoangles
import Q_crandom
import Q_random
import Q_rand
import Q_acos
import Q_log2
import VectorRotate
import Vector4Scale
import VectorNormalize2
import VectorNormalize
import CrossProduct
import VectorInverse
import VectorNormalizeFast
import DistanceSquared
import Distance
import VectorLengthSquared
import VectorLength
import VectorCompare
import AddPointToBounds
import ClearBounds
import RadiusFromBounds
import NormalizeColor
import ColorBytes4
import ColorBytes3
import _VectorMA
import _VectorScale
import _VectorCopy
import _VectorAdd
import _VectorSubtract
import _DotProduct
import ByteToDir
import DirToByte
import ClampShort
import ClampChar
import Q_rsqrt
import Q_fabs
import Q_isnan
import axisDefault
import vec3_origin
import g_color_table
import colorDkGrey
import colorMdGrey
import colorLtGrey
import colorWhite
import colorCyan
import colorMagenta
import colorYellow
import colorBlue
import colorGreen
import colorRed
import colorBlack
import bytedirs
import Hunk_AllocDebug
import FloatSwap
import LongSwap
import ShortSwap
import CopyLongSwap
import CopyShortSwap
import qk_acos
import qk_fabs
import qk_abs
import qk_tan
import qk_atan2
import qk_cos
import qk_sin
import qk_sqrt
import qk_floor
import qk_ceil
import qk_memcpy
import qk_memset
import qk_memmove
import qk_sscanf
import qk_vsnprintf
import qk_strtol
import qk_atoi
import qk_strtod
import qk_atof
import qk_toupper
import qk_tolower
import qk_strncpy
import qk_strstr
import qk_strrchr
import qk_strchr
import qk_strcmp
import qk_strcpy
import qk_strcat
import qk_strlen
import qk_rand
import qk_srand
import qk_qsort
lit
align 1
LABELV $458
byte 1 102
byte 1 105
byte 1 110
byte 1 97
byte 1 108
byte 1 0
align 1
LABELV $453
byte 1 109
byte 1 117
byte 1 115
byte 1 105
byte 1 99
byte 1 32
byte 1 109
byte 1 117
byte 1 115
byte 1 105
byte 1 99
byte 1 47
byte 1 119
byte 1 105
byte 1 110
byte 1 10
byte 1 0
align 1
LABELV $451
byte 1 109
byte 1 117
byte 1 115
byte 1 105
byte 1 99
byte 1 32
byte 1 109
byte 1 117
byte 1 115
byte 1 105
byte 1 99
byte 1 47
byte 1 108
byte 1 111
byte 1 115
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $449
byte 1 115
byte 1 111
byte 1 117
byte 1 110
byte 1 100
byte 1 47
byte 1 112
byte 1 108
byte 1 97
byte 1 121
byte 1 101
byte 1 114
byte 1 47
byte 1 97
byte 1 110
byte 1 110
byte 1 111
byte 1 117
byte 1 110
byte 1 99
byte 1 101
byte 1 47
byte 1 37
byte 1 115
byte 1 95
byte 1 119
byte 1 105
byte 1 110
byte 1 115
byte 1 46
byte 1 119
byte 1 97
byte 1 118
byte 1 0
align 1
LABELV $354
byte 1 110
byte 1 117
byte 1 109
byte 1 0
align 1
LABELV $350
byte 1 109
byte 1 97
byte 1 112
byte 1 110
byte 1 97
byte 1 109
byte 1 101
byte 1 0
align 1
LABELV $273
byte 1 115
byte 1 111
byte 1 117
byte 1 110
byte 1 100
byte 1 47
byte 1 112
byte 1 108
byte 1 97
byte 1 121
byte 1 101
byte 1 114
byte 1 47
byte 1 97
byte 1 110
byte 1 110
byte 1 111
byte 1 117
byte 1 110
byte 1 99
byte 1 101
byte 1 47
byte 1 121
byte 1 111
byte 1 117
byte 1 119
byte 1 105
byte 1 110
byte 1 46
byte 1 119
byte 1 97
byte 1 118
byte 1 0
align 1
LABELV $272
byte 1 109
byte 1 117
byte 1 115
byte 1 105
byte 1 99
byte 1 47
byte 1 119
byte 1 105
byte 1 110
byte 1 46
byte 1 119
byte 1 97
byte 1 118
byte 1 0
align 1
LABELV $271
byte 1 109
byte 1 117
byte 1 115
byte 1 105
byte 1 99
byte 1 47
byte 1 108
byte 1 111
byte 1 115
byte 1 115
byte 1 46
byte 1 119
byte 1 97
byte 1 118
byte 1 0
align 1
LABELV $264
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 97
byte 1 114
byte 1 116
byte 1 47
byte 1 110
byte 1 101
byte 1 120
byte 1 116
byte 1 95
byte 1 49
byte 1 0
align 1
LABELV $263
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 97
byte 1 114
byte 1 116
byte 1 47
byte 1 110
byte 1 101
byte 1 120
byte 1 116
byte 1 95
byte 1 48
byte 1 0
align 1
LABELV $262
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 97
byte 1 114
byte 1 116
byte 1 47
byte 1 114
byte 1 101
byte 1 112
byte 1 108
byte 1 97
byte 1 121
byte 1 95
byte 1 49
byte 1 0
align 1
LABELV $261
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 97
byte 1 114
byte 1 116
byte 1 47
byte 1 114
byte 1 101
byte 1 112
byte 1 108
byte 1 97
byte 1 121
byte 1 95
byte 1 48
byte 1 0
align 1
LABELV $260
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 97
byte 1 114
byte 1 116
byte 1 47
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 95
byte 1 49
byte 1 0
align 1
LABELV $259
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 97
byte 1 114
byte 1 116
byte 1 47
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 95
byte 1 48
byte 1 0
align 1
LABELV $258
byte 1 99
byte 1 111
byte 1 109
byte 1 95
byte 1 98
byte 1 117
byte 1 105
byte 1 108
byte 1 100
byte 1 115
byte 1 99
byte 1 114
byte 1 105
byte 1 112
byte 1 116
byte 1 0
align 1
LABELV $250
byte 1 117
byte 1 105
byte 1 95
byte 1 115
byte 1 112
byte 1 83
byte 1 99
byte 1 111
byte 1 114
byte 1 101
byte 1 98
byte 1 111
byte 1 97
byte 1 114
byte 1 100
byte 1 0
align 1
LABELV $239
byte 1 100
byte 1 105
byte 1 115
byte 1 99
byte 1 111
byte 1 110
byte 1 110
byte 1 101
byte 1 99
byte 1 116
byte 1 59
byte 1 32
byte 1 99
byte 1 105
byte 1 110
byte 1 101
byte 1 109
byte 1 97
byte 1 116
byte 1 105
byte 1 99
byte 1 32
byte 1 116
byte 1 105
byte 1 101
byte 1 114
byte 1 37
byte 1 105
byte 1 46
byte 1 82
byte 1 111
byte 1 81
byte 1 10
byte 1 0
align 1
LABELV $238
byte 1 108
byte 1 101
byte 1 118
byte 1 101
byte 1 108
byte 1 115
byte 1 101
byte 1 108
byte 1 101
byte 1 99
byte 1 116
byte 1 0
align 1
LABELV $236
byte 1 117
byte 1 105
byte 1 95
byte 1 115
byte 1 112
byte 1 83
byte 1 101
byte 1 108
byte 1 101
byte 1 99
byte 1 116
byte 1 105
byte 1 111
byte 1 110
byte 1 0
align 1
LABELV $235
byte 1 100
byte 1 105
byte 1 115
byte 1 99
byte 1 111
byte 1 110
byte 1 110
byte 1 101
byte 1 99
byte 1 116
byte 1 59
byte 1 32
byte 1 99
byte 1 105
byte 1 110
byte 1 101
byte 1 109
byte 1 97
byte 1 116
byte 1 105
byte 1 99
byte 1 32
byte 1 101
byte 1 110
byte 1 100
byte 1 46
byte 1 82
byte 1 111
byte 1 81
byte 1 10
byte 1 0
align 1
LABELV $226
byte 1 100
byte 1 105
byte 1 115
byte 1 99
byte 1 111
byte 1 110
byte 1 110
byte 1 101
byte 1 99
byte 1 116
byte 1 59
byte 1 32
byte 1 99
byte 1 105
byte 1 110
byte 1 101
byte 1 109
byte 1 97
byte 1 116
byte 1 105
byte 1 99
byte 1 32
byte 1 100
byte 1 101
byte 1 109
byte 1 111
byte 1 69
byte 1 110
byte 1 100
byte 1 46
byte 1 82
byte 1 111
byte 1 81
byte 1 10
byte 1 0
align 1
LABELV $225
byte 1 0
align 1
LABELV $224
byte 1 110
byte 1 101
byte 1 120
byte 1 116
byte 1 109
byte 1 97
byte 1 112
byte 1 0
align 1
LABELV $175
byte 1 115
byte 1 118
byte 1 95
byte 1 115
byte 1 101
byte 1 114
byte 1 118
byte 1 101
byte 1 114
byte 1 105
byte 1 100
byte 1 0
align 1
LABELV $172
byte 1 35
byte 1 37
byte 1 105
byte 1 58
byte 1 32
byte 1 37
byte 1 45
byte 1 49
byte 1 54
byte 1 115
byte 1 32
byte 1 37
byte 1 50
byte 1 105
byte 1 0
align 1
LABELV $171
byte 1 110
byte 1 0
align 1
LABELV $169
byte 1 40
byte 1 116
byte 1 105
byte 1 101
byte 1 41
byte 1 0
align 1
LABELV $147
byte 1 37
byte 1 105
byte 1 0
align 1
LABELV $144
byte 1 37
byte 1 105
byte 1 37
byte 1 37
byte 1 0
align 1
LABELV $118
byte 1 97
byte 1 98
byte 1 111
byte 1 114
byte 1 116
byte 1 95
byte 1 112
byte 1 111
byte 1 100
byte 1 105
byte 1 117
byte 1 109
byte 1 10
byte 1 0
align 1
LABELV $109
byte 1 100
byte 1 105
byte 1 115
byte 1 99
byte 1 111
byte 1 110
byte 1 110
byte 1 101
byte 1 99
byte 1 116
byte 1 59
byte 1 32
byte 1 108
byte 1 101
byte 1 118
byte 1 101
byte 1 108
byte 1 115
byte 1 101
byte 1 108
byte 1 101
byte 1 99
byte 1 116
byte 1 10
byte 1 0
align 1
LABELV $90
byte 1 109
byte 1 97
byte 1 112
byte 1 95
byte 1 114
byte 1 101
byte 1 115
byte 1 116
byte 1 97
byte 1 114
byte 1 116
byte 1 32
byte 1 48
byte 1 10
byte 1 0
align 1
LABELV $86
byte 1 115
byte 1 111
byte 1 117
byte 1 110
byte 1 100
byte 1 47
byte 1 102
byte 1 101
byte 1 101
byte 1 100
byte 1 98
byte 1 97
byte 1 99
byte 1 107
byte 1 47
byte 1 112
byte 1 101
byte 1 114
byte 1 102
byte 1 101
byte 1 99
byte 1 116
byte 1 46
byte 1 119
byte 1 97
byte 1 118
byte 1 0
align 1
LABELV $85
byte 1 115
byte 1 111
byte 1 117
byte 1 110
byte 1 100
byte 1 47
byte 1 102
byte 1 101
byte 1 101
byte 1 100
byte 1 98
byte 1 97
byte 1 99
byte 1 107
byte 1 47
byte 1 102
byte 1 114
byte 1 97
byte 1 103
byte 1 115
byte 1 46
byte 1 119
byte 1 97
byte 1 118
byte 1 0
align 1
LABELV $84
byte 1 115
byte 1 111
byte 1 117
byte 1 110
byte 1 100
byte 1 47
byte 1 102
byte 1 101
byte 1 101
byte 1 100
byte 1 98
byte 1 97
byte 1 99
byte 1 107
byte 1 47
byte 1 103
byte 1 97
byte 1 117
byte 1 110
byte 1 116
byte 1 108
byte 1 101
byte 1 116
byte 1 46
byte 1 119
byte 1 97
byte 1 118
byte 1 0
align 1
LABELV $83
byte 1 115
byte 1 111
byte 1 117
byte 1 110
byte 1 100
byte 1 47
byte 1 102
byte 1 101
byte 1 101
byte 1 100
byte 1 98
byte 1 97
byte 1 99
byte 1 107
byte 1 47
byte 1 101
byte 1 120
byte 1 99
byte 1 101
byte 1 108
byte 1 108
byte 1 101
byte 1 110
byte 1 116
byte 1 95
byte 1 97
byte 1 46
byte 1 119
byte 1 97
byte 1 118
byte 1 0
align 1
LABELV $82
byte 1 115
byte 1 111
byte 1 117
byte 1 110
byte 1 100
byte 1 47
byte 1 102
byte 1 101
byte 1 101
byte 1 100
byte 1 98
byte 1 97
byte 1 99
byte 1 107
byte 1 47
byte 1 105
byte 1 109
byte 1 112
byte 1 114
byte 1 101
byte 1 115
byte 1 115
byte 1 105
byte 1 118
byte 1 101
byte 1 95
byte 1 97
byte 1 46
byte 1 119
byte 1 97
byte 1 118
byte 1 0
align 1
LABELV $81
byte 1 115
byte 1 111
byte 1 117
byte 1 110
byte 1 100
byte 1 47
byte 1 102
byte 1 101
byte 1 101
byte 1 100
byte 1 98
byte 1 97
byte 1 99
byte 1 107
byte 1 47
byte 1 97
byte 1 99
byte 1 99
byte 1 117
byte 1 114
byte 1 97
byte 1 99
byte 1 121
byte 1 46
byte 1 119
byte 1 97
byte 1 118
byte 1 0
align 1
LABELV $80
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 109
byte 1 101
byte 1 100
byte 1 97
byte 1 108
byte 1 115
byte 1 47
byte 1 109
byte 1 101
byte 1 100
byte 1 97
byte 1 108
byte 1 95
byte 1 118
byte 1 105
byte 1 99
byte 1 116
byte 1 111
byte 1 114
byte 1 121
byte 1 0
align 1
LABELV $79
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 109
byte 1 101
byte 1 100
byte 1 97
byte 1 108
byte 1 115
byte 1 47
byte 1 109
byte 1 101
byte 1 100
byte 1 97
byte 1 108
byte 1 95
byte 1 102
byte 1 114
byte 1 97
byte 1 103
byte 1 115
byte 1 0
align 1
LABELV $78
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 109
byte 1 101
byte 1 100
byte 1 97
byte 1 108
byte 1 115
byte 1 47
byte 1 109
byte 1 101
byte 1 100
byte 1 97
byte 1 108
byte 1 95
byte 1 103
byte 1 97
byte 1 117
byte 1 110
byte 1 116
byte 1 108
byte 1 101
byte 1 116
byte 1 0
align 1
LABELV $77
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 109
byte 1 101
byte 1 100
byte 1 97
byte 1 108
byte 1 115
byte 1 47
byte 1 109
byte 1 101
byte 1 100
byte 1 97
byte 1 108
byte 1 95
byte 1 101
byte 1 120
byte 1 99
byte 1 101
byte 1 108
byte 1 108
byte 1 101
byte 1 110
byte 1 116
byte 1 0
align 1
LABELV $76
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 109
byte 1 101
byte 1 100
byte 1 97
byte 1 108
byte 1 115
byte 1 47
byte 1 109
byte 1 101
byte 1 100
byte 1 97
byte 1 108
byte 1 95
byte 1 105
byte 1 109
byte 1 112
byte 1 114
byte 1 101
byte 1 115
byte 1 115
byte 1 105
byte 1 118
byte 1 101
byte 1 0
align 1
LABELV $75
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 109
byte 1 101
byte 1 100
byte 1 97
byte 1 108
byte 1 115
byte 1 47
byte 1 109
byte 1 101
byte 1 100
byte 1 97
byte 1 108
byte 1 95
byte 1 97
byte 1 99
byte 1 99
byte 1 117
byte 1 114
byte 1 97
byte 1 99
byte 1 121
byte 1 0
align 1
LABELV $74
byte 1 80
byte 1 101
byte 1 114
byte 1 102
byte 1 101
byte 1 99
byte 1 116
byte 1 0
align 1
LABELV $73
byte 1 70
byte 1 114
byte 1 97
byte 1 103
byte 1 115
byte 1 0
align 1
LABELV $72
byte 1 71
byte 1 97
byte 1 117
byte 1 110
byte 1 116
byte 1 108
byte 1 101
byte 1 116
byte 1 0
align 1
LABELV $71
byte 1 69
byte 1 120
byte 1 99
byte 1 101
byte 1 108
byte 1 108
byte 1 101
byte 1 110
byte 1 116
byte 1 0
align 1
LABELV $70
byte 1 73
byte 1 109
byte 1 112
byte 1 114
byte 1 101
byte 1 115
byte 1 115
byte 1 105
byte 1 118
byte 1 101
byte 1 0
align 1
LABELV $69
byte 1 65
byte 1 99
byte 1 99
byte 1 117
byte 1 114
byte 1 97
byte 1 99
byte 1 121
byte 1 0
|
||||
TheStack | a0b6160a60d37ddb97217c3bafb4bf26640ca9a1 | Assemblycode:Assembly | {"size": 391, "ext": "asm", "max_stars_repo_path": "programs/oeis/080/A080585.asm", "max_stars_repo_name": "jmorken/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/080/A080585.asm", "max_issues_repo_name": "jmorken/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/080/A080585.asm", "max_forks_repo_name": "jmorken/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.0, "max_line_length": 217, "alphanum_fraction": 0.5703324808} | ; A080585: Partial sums of A080584.
; 0,0,0,1,2,3,3,3,3,3,3,3,4,5,6,7,8,9,9,9,9,9,9,9,9,9,9,9,9,9,10,11,12,13,14,15,16,17,18,19,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37
mov $2,2
lpb $0
trn $0,$2
add $1,$0
sub $2,1
sub $0,$2
trn $0,2
sub $1,$0
sub $0,1
trn $2,$1
add $2,$1
add $2,2
lpe
|
||||
TheStack | 72bc6a542f098dd31a5bc1505b228dc11c073694 | Assemblycode:Assembly | {"size": 2669, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_27_894.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_27_894.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_27_894.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 19.3405797101, "max_line_length": 125, "alphanum_fraction": 0.6395653803} | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r8
push %rax
push %rdi
lea addresses_D_ht+0x17c5c, %r13
nop
nop
add %r14, %r14
mov $0x6162636465666768, %rdi
movq %rdi, %xmm3
movups %xmm3, (%r13)
nop
nop
nop
nop
nop
add $17362, %rdi
lea addresses_WC_ht+0x1653c, %r13
nop
nop
sub %r8, %r8
movups (%r13), %xmm4
vpextrq $0, %xmm4, %rax
sub $26375, %rdi
pop %rdi
pop %rax
pop %r8
pop %r14
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r14
push %r15
push %rbp
push %rcx
// Load
lea addresses_UC+0x961c, %r15
nop
nop
sub %r13, %r13
movb (%r15), %r11b
nop
inc %r14
// Load
lea addresses_US+0x1de78, %r12
nop
nop
nop
nop
nop
xor %rcx, %rcx
mov (%r12), %r14w
add %r11, %r11
// Store
lea addresses_UC+0x1affc, %r15
add %r14, %r14
mov $0x5152535455565758, %rcx
movq %rcx, %xmm1
movups %xmm1, (%r15)
nop
nop
nop
xor %r13, %r13
// Load
lea addresses_UC+0x1affc, %rcx
nop
and %r13, %r13
mov (%rcx), %r15d
nop
nop
nop
nop
nop
and $26527, %r15
// Store
lea addresses_UC+0x1affc, %r12
nop
nop
nop
dec %rbp
mov $0x5152535455565758, %r14
movq %r14, %xmm4
vmovups %ymm4, (%r12)
and %r13, %r13
// Faulty Load
lea addresses_UC+0x1affc, %r11
nop
nop
nop
nop
add %rbp, %rbp
movups (%r11), %xmm7
vpextrq $1, %xmm7, %r15
lea oracles, %r11
and $0xff, %r15
shlq $12, %r15
mov (%r11,%r15,1), %r15
pop %rcx
pop %rbp
pop %r15
pop %r14
pop %r13
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': True, 'congruent': 3}}
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_UC', 'same': True, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_UC', 'same': True, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_UC', 'same': True, 'AVXalign': False, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_UC', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'00': 27}
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
*/
|
||||
TheStack | f13bfb2b0c35e016ae232385242177bd8207b724 | Assemblycode:Assembly | {"size": 147, "ext": "asm", "max_stars_repo_path": "other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/英語_PAL/pal_asm/zel_bms1.asm", "max_stars_repo_name": "prismotizm/gigaleak", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/英語_PAL/pal_asm/zel_bms1.asm", "max_issues_repo_name": "prismotizm/gigaleak", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/英語_PAL/pal_asm/zel_bms1.asm", "max_forks_repo_name": "prismotizm/gigaleak", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.0, "max_line_length": 47, "alphanum_fraction": 0.8163265306} | Name: zel_bms1.asm
Type: file
Size: 119231
Last-Modified: '2016-05-13T04:25:37Z'
SHA-1: 490CAF5277B752A4AC48BBE8CC454C5E9542C275
Description: null
|
||||
TheStack | 9a8d2990dc39a33b74359dcbeefe3eb7d1808535 | Assemblycode:Assembly | {"size": 755, "ext": "asm", "max_stars_repo_path": "oeis/181/A181418.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/181/A181418.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/181/A181418.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 75.5, "max_line_length": 473, "alphanum_fraction": 0.8490066225} | ; A181418: a(n) = A000984(n)*A000172(n), which is the term-wise product of the Central binomial coefficients and Franel numbers, respectively.
; Submitted by Christian Krause
; 1,4,60,1120,24220,567504,14030016,360222720,9513014940,256758913840,7051260776560,196403499277440,5535202897806400,157551884911456000,4522682234563776000,130783762623673221120,3806221127760278029980,111400119894099124796400,3276826963768987404190800,96820251554964712331356800,2872284278445948936846996720,85520280866073123132721538880,2554738041962211273007911052800,76547907723454126645427952537600,2299958281537484085320466892737600,69280269509511296256825727099317504
mov $1,$0
mul $0,2
bin $0,$1
seq $1,172 ; Franel number a(n) = Sum_{k = 0..n} binomial(n,k)^3.
mul $0,$1
|
||||
TheStack | 94307551af2b652b17e61878695ac8b60db32d76 | Assemblycode:Assembly | {"size": 4307, "ext": "asm", "max_stars_repo_path": "msu.asm", "max_stars_repo_name": "joshuadhowe/z3randomizer", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "msu.asm", "max_issues_repo_name": "joshuadhowe/z3randomizer", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "msu.asm", "max_forks_repo_name": "joshuadhowe/z3randomizer", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.0325581395, "max_line_length": 42, "alphanum_fraction": 0.6872533086} | ;=======================================
;
; MSU-1 Enhanced Audio Patch
; Zelda no Densetsu - Kamigami no Triforce
; Modified for VT Randomizer
;
; Author: qwertymodo
;
; Free space used: 0x77DDD-0x77F8A
;
;=======================================
!REG_MSU_STATUS = $2000
!REG_MSU_ID_0 = $2002
!REG_MSU_ID_1 = $2003
!REG_MSU_ID_2 = $2004
!REG_MSU_ID_3 = $2005
!REG_MSU_ID_4 = $2006
!REG_MSU_ID_5 = $2007
!REG_MSU_ID_01 = $2002
!REG_MSU_ID_23 = $2004
!REG_MSU_ID_45 = $2006
!VAL_MSU_ID_0 = #$53 ; 'S'
!VAL_MSU_ID_1 = #$2D ; '-'
!VAL_MSU_ID_2 = #$4D ; 'M'
!VAL_MSU_ID_3 = #$53 ; 'S'
!VAL_MSU_ID_4 = #$55 ; 'U'
!VAL_MSU_ID_5 = #$31 ; '1'
!VAL_MSU_ID_01 = #$2D53 ; 'S-'
!VAL_MSU_ID_23 = #$534D ; 'MS'
!VAL_MSU_ID_45 = #$3155 ; 'U1'
!REG_MSU_TRACK = $2004
!REG_MSU_TRACK_LO = $2004
!REG_MSU_TRACK_HI = $2005
!REG_MSU_VOLUME = $2006
!REG_MSU_CONTROL = $2007
!FLAG_MSU_PLAY = #$01
!FLAG_MSU_REPEAT = #$02
!FLAG_MSU_STATUS_TRACK_MISSING = #$08
!FLAG_MSU_STATUS_AUDIO_PLAYING = #$10
!FLAG_MSU_STATUS_AUDIO_REPEATING = #$20
!FLAG_MSU_STATUS_AUDIO_BUSY = #$40
!FLAG_MSU_STATUS_DATA_BUSY = #$80
!REG_CURRENT_VOLUME = $0127
!REG_TARGET_VOLUME = $0129
!REG_CURRENT_MSU_TRACK = $012B
!REG_MUSIC_CONTROL = $012C
!REG_CURRENT_TRACK = $0130
!REG_CURRENT_COMMAND = $0133
!REG_MSU_LOAD_FLAG = $7F509B
!REG_SPC_CONTROL = $2140
!REG_NMI_FLAGS = $4210
!VAL_COMMAND_FADE_OUT = #$F1
!VAL_COMMAND_FADE_HALF = #$F2
!VAL_COMMAND_FULL_VOLUME = #$F3
!VAL_COMMAND_LOAD_NEW_BANK = #$FF
!VAL_VOLUME_INCREMENT = #$10
!VAL_VOLUME_DECREMENT = #$02
!VAL_VOLUME_HALF = #$80
!VAL_VOLUME_FULL = #$FF
msu_main:
SEP #$20 ; set 8-bit accumulator
LDA $4210 ; thing we wrote over
REP #$20 ; set 16-bit accumulator
LDA !REG_MSU_ID_01
CMP !VAL_MSU_ID_01
BEQ .continue
.nomsu
SEP #$30
JML spc_continue
.continue
LDA !REG_MSU_ID_23
CMP !VAL_MSU_ID_23
BNE .nomsu
LDA !REG_MSU_ID_45
CMP !VAL_MSU_ID_45
BNE .nomsu
SEP #$30
LDX !REG_MUSIC_CONTROL
BNE command_ff
LDA !REG_MSU_LOAD_FLAG
BEQ do_fade
msu_check_busy:
LDA !REG_MSU_STATUS
BIT !FLAG_MSU_STATUS_AUDIO_BUSY
BEQ .ready
JML spc_continue
.ready
LDA !REG_MSU_STATUS
BIT !FLAG_MSU_STATUS_TRACK_MISSING
BNE spc_fallback
LDA !VAL_VOLUME_FULL
STA !REG_TARGET_VOLUME
STA !REG_CURRENT_VOLUME
STA !REG_MSU_VOLUME
LDA !REG_MSU_LOAD_FLAG
STA !REG_MSU_CONTROL
LDA #$00
STA !REG_MSU_LOAD_FLAG
JML spc_continue
spc_fallback:
STZ !REG_MSU_CONTROL
STZ !REG_CURRENT_MSU_TRACK
STZ !REG_TARGET_VOLUME
STZ !REG_CURRENT_VOLUME
STZ !REG_MSU_VOLUME
JML spc_continue
do_fade:
LDA !REG_CURRENT_VOLUME
CMP !REG_TARGET_VOLUME
BNE .continue
JML spc_continue
.continue
BCC .increment
.decrement
SBC !VAL_VOLUME_DECREMENT
BCS .set
.mute
STZ !REG_CURRENT_VOLUME
STZ !REG_MSU_CONTROL
STZ !REG_CURRENT_MSU_TRACK
BRA .set
.increment
ADC !VAL_VOLUME_INCREMENT
BCC .set
LDA !VAL_VOLUME_FULL
.set
STA !REG_CURRENT_VOLUME
STA !REG_MSU_VOLUME
JML spc_continue
command_ff:
CPX !VAL_COMMAND_LOAD_NEW_BANK
BNE command_f3
JML spc_continue
command_f3:
CPX !VAL_COMMAND_FULL_VOLUME
BNE command_f2
STX !REG_SPC_CONTROL
LDA !VAL_VOLUME_FULL
STA !REG_TARGET_VOLUME
JML spc_continue
command_f2:
CPX !VAL_COMMAND_FADE_HALF
BNE command_f1
STX !REG_SPC_CONTROL
LDA !VAL_VOLUME_HALF
STA !REG_TARGET_VOLUME
JML spc_continue
command_f1:
CPX !VAL_COMMAND_FADE_OUT
BNE load_track
STX !REG_SPC_CONTROL
STZ !REG_TARGET_VOLUME
JML spc_continue
load_track:
CPX !REG_CURRENT_MSU_TRACK
BNE .continue
CPX #$1B
BEQ .continue
JML spc_continue
.continue
STX !REG_MSU_TRACK_LO
STZ !REG_MSU_TRACK_HI
STZ !REG_MSU_CONTROL
LDA.l MSUTrackList,x
STA !REG_MSU_LOAD_FLAG
STX !REG_CURRENT_MSU_TRACK
JML spc_continue
ending_wait:
rep #$20
lda !REG_MSU_ID_01
cmp !VAL_MSU_ID_01
bne .done
lda !REG_MSU_ID_23
cmp !VAL_MSU_ID_23
bne .done
lda !REG_MSU_ID_45
cmp !VAL_MSU_ID_45
bne .done
sep #$20
.wait
lda !REG_MSU_STATUS
bit !FLAG_MSU_STATUS_AUDIO_PLAYING
bne .wait
.done
sep #$20
lda #$22
rtl
|
||||
TheStack | c18a32f4e7b5604b007b3cc74ef975582bec78bf | Assemblycode:Assembly | {"size": 1024, "ext": "asm", "max_stars_repo_path": "Src/Q14.asm", "max_stars_repo_name": "OferMon/MIPS-Assembly-Exercises", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Src/Q14.asm", "max_issues_repo_name": "OferMon/MIPS-Assembly-Exercises", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Src/Q14.asm", "max_forks_repo_name": "OferMon/MIPS-Assembly-Exercises", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.9649122807, "max_line_length": 50, "alphanum_fraction": 0.6240234375} | .data 0x10020000
array: .space 80 # 20 words
str_to_print: .asciiz "Enter a number: "
.text
li $a0, 0x10020000
jal init_array
la $a0, str_to_print
li $v0, 4 # print string
syscall
li $v0, 5
syscall
li $a0, 0x10020000
add $a1, $v0, $zero
jal get_occurrences_in_array
add $a0, $v0, $zero
li $v0, 1 # print integer
syscall
b end
#------------------------#
init_array:
add $t2, $a0, $zero
li $t3, 0
_init_array_loop_start:
li $v0, 42
li $a0, 0
li $a1, 101
syscall
subi $a0, $a0, 50
sw $a0, ($t2)
addi $t2, $t2, 4
addi $t3, $t3, 1
bne $t3, 20, _init_array_loop_start
subi $t2, $t2, 80
jr $ra
#------------------------#
get_occurrences_in_array:
add $t0, $a0, $zero # address of array
add $t6, $a1, $zero
li $t1, 0 # start from index 0
li $t4, 0
_get_occurrences_in_array_loop_start:
lw $t3, ($t0)
bne $t3, $t6, _skip_occurrence
add $t4, $t4, 1
_skip_occurrence:
addi $t0, $t0, 4
addi $t1, $t1, 1
bne $t1, 20, _get_occurrences_in_array_loop_start
add $v0, $t4, $zero
jr $ra
#------------------------#
end:
|
||||
TheStack | b644d45eafc1fd97e808f60f1f0d921c3ca174f6 | Assemblycode:Assembly | {"size": 6677, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NC/_st_zr_un_sm_/i9-9900K_12_0xca_notsx.log_19_1476.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NC/_st_zr_un_sm_/i9-9900K_12_0xca_notsx.log_19_1476.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NC/_st_zr_un_sm_/i9-9900K_12_0xca_notsx.log_19_1476.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 20.9968553459, "max_line_length": 151, "alphanum_fraction": 0.6435524936} | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x53ec, %rsi
lea addresses_WC_ht+0x8054, %rdi
clflush (%rdi)
and $28585, %rbx
mov $8, %rcx
rep movsw
xor $7291, %r8
lea addresses_A_ht+0x1c0dc, %r15
clflush (%r15)
and $57161, %r10
movb (%r15), %cl
nop
nop
add %r8, %r8
lea addresses_WT_ht+0xf9b1, %rsi
lea addresses_D_ht+0xfaac, %rdi
cmp $7896, %r14
mov $116, %rcx
rep movsl
nop
nop
nop
nop
nop
sub $48160, %r14
lea addresses_WT_ht+0x1ea59, %r14
nop
nop
nop
and %rsi, %rsi
movups (%r14), %xmm6
vpextrq $1, %xmm6, %rdi
nop
nop
nop
nop
cmp %rbx, %rbx
lea addresses_UC_ht+0xefb6, %rsi
lea addresses_WT_ht+0x1e7ec, %rdi
clflush (%rdi)
nop
nop
sub $27600, %r8
mov $12, %rcx
rep movsq
nop
dec %r10
lea addresses_D_ht+0x7fec, %rbx
nop
nop
cmp $4294, %rcx
movw $0x6162, (%rbx)
nop
and $23168, %rcx
lea addresses_normal_ht+0x1876c, %rdi
nop
nop
nop
add %r15, %r15
mov $0x6162636465666768, %r10
movq %r10, %xmm2
movups %xmm2, (%rdi)
nop
add %r8, %r8
lea addresses_UC_ht+0xe3ec, %r10
nop
nop
nop
nop
inc %r15
mov $0x6162636465666768, %rdi
movq %rdi, %xmm0
and $0xffffffffffffffc0, %r10
movntdq %xmm0, (%r10)
and $1137, %rdi
lea addresses_normal_ht+0x148ec, %rcx
nop
and %r8, %r8
mov (%rcx), %esi
nop
nop
nop
and %rdi, %rdi
lea addresses_D_ht+0xc1ec, %rsi
lea addresses_WT_ht+0xfdec, %rdi
nop
nop
nop
nop
nop
and %r14, %r14
mov $54, %rcx
rep movsq
sub %r8, %r8
lea addresses_UC_ht+0x1b3ec, %r8
nop
nop
nop
nop
cmp %rsi, %rsi
movb (%r8), %r14b
nop
and $13578, %rdi
lea addresses_D_ht+0x1622c, %rsi
lea addresses_normal_ht+0xe96c, %rdi
nop
nop
nop
nop
nop
cmp $2896, %rbx
mov $32, %rcx
rep movsb
and %rdi, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r15
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r15
push %r8
push %rax
push %rdi
push %rsi
// Load
lea addresses_normal+0x16b70, %r15
nop
nop
inc %r11
vmovups (%r15), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $0, %xmm5, %rdi
nop
nop
nop
cmp %rax, %rax
// Store
lea addresses_WC+0x17dec, %rsi
nop
nop
add %r10, %r10
movl $0x51525354, (%rsi)
and %r10, %r10
// Store
lea addresses_normal+0xd98c, %rdi
nop
nop
nop
nop
xor %r15, %r15
mov $0x5152535455565758, %r8
movq %r8, (%rdi)
nop
nop
sub $30099, %rdi
// Store
mov $0x42d01500000003f3, %r15
nop
dec %rsi
movw $0x5152, (%r15)
nop
nop
nop
nop
sub %rax, %rax
// Store
lea addresses_WT+0xa19c, %r15
clflush (%r15)
nop
nop
nop
sub %rdi, %rdi
mov $0x5152535455565758, %rax
movq %rax, %xmm5
movups %xmm5, (%r15)
nop
nop
nop
add %r11, %r11
// Load
lea addresses_UC+0x1d6ec, %r8
nop
nop
nop
nop
add $38051, %rax
movb (%r8), %r15b
nop
nop
nop
and $41141, %rax
// Store
mov $0x15f5dc00000003ec, %r10
nop
nop
nop
nop
nop
xor %r8, %r8
mov $0x5152535455565758, %r11
movq %r11, %xmm3
movups %xmm3, (%r10)
nop
nop
nop
nop
nop
xor $14024, %r10
// Store
lea addresses_US+0x86a1, %r11
nop
sub %rax, %rax
movb $0x51, (%r11)
nop
add %rsi, %rsi
// Store
lea addresses_normal+0x1b7ac, %rsi
nop
and $21834, %rdi
mov $0x5152535455565758, %r10
movq %r10, (%rsi)
nop
nop
nop
nop
nop
xor %rax, %rax
// Store
mov $0x7ec, %r15
nop
nop
nop
nop
inc %rax
movl $0x51525354, (%r15)
nop
nop
xor %r15, %r15
// Faulty Load
mov $0x15f5dc00000003ec, %r15
inc %r10
mov (%r15), %edi
lea oracles, %r8
and $0xff, %rdi
shlq $12, %rdi
mov (%r8,%rdi,1), %rdi
pop %rsi
pop %rdi
pop %rax
pop %r8
pop %r15
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC', 'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 1}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_US', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal', 'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_P', 'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 10}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_WC_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 2}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_D_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}}
{'OP': 'REPM', 'src': {'same': True, 'congruent': 1, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}}
{'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 11}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': True, 'congruent': 7, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_WT_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_normal_ht'}}
{'00': 1, '58': 15, '10': 3}
58 10 58 58 58 58 00 58 10 58 58 58 10 58 58 58 58 58 58
*/
|
||||
TheStack | 65c2fe9531d45848a02e773d914167482cd999e4 | Assemblycode:Assembly | {"size": 675, "ext": "asm", "max_stars_repo_path": "oeis/048/A048879.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/048/A048879.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/048/A048879.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 45.0, "max_line_length": 489, "alphanum_fraction": 0.837037037} | ; A048879: Generalized Pellian with second term of 10.
; Submitted by Jamie Morken(s4)
; 1,10,41,174,737,3122,13225,56022,237313,1005274,4258409,18038910,76414049,323695106,1371194473,5808472998,24605086465,104228818858,441520361897,1870310266446,7922761427681,33561355977170,142168185336361,602234097322614,2551104574626817,10806652395829882,45777714157946345,193917509027615262,821447750268407393,3479708510101244834,14740281790673386729,62440835672794791750,264503624481852553729,1120455333600205006666,4746324958882672580393,20105755169130895328238,85169345635406253893345
mov $1,6
mov $3,1
lpb $0
sub $0,1
mov $2,$3
mul $3,4
add $3,$1
mov $1,$2
lpe
mov $0,$3
|
||||
TheStack | c44f84206225ecc1b2371147678ff63c1e7f8e52 | Assemblycode:Assembly | {"size": 31244, "ext": "asm", "max_stars_repo_path": "Library/SpecUI/CommonUI/CMain/cmainDocLowDisk.asm", "max_stars_repo_name": "steakknife/pcgeos", "max_stars_repo_stars_event_min_datetime": "2018-11-18T03:35:53.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-29T01:02:51.000Z", "max_issues_repo_path": "Library/SpecUI/CommonUI/CMain/cmainDocLowDisk.asm", "max_issues_repo_name": "steakknife/pcgeos", "max_issues_repo_issues_event_min_datetime": "2018-11-19T21:06:50.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-06T10:26:48.000Z", "max_forks_repo_path": "Library/SpecUI/CommonUI/CMain/cmainDocLowDisk.asm", "max_forks_repo_name": "steakknife/pcgeos", "max_forks_repo_forks_event_min_datetime": "2018-11-19T20:46:53.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-29T00:59:26.000Z"} | {"max_stars_count": 504, "max_issues_count": 96, "max_forks_count": 73, "avg_line_length": 25.6308449549, "max_line_length": 96, "alphanum_fraction": 0.6250800154} | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1993 -- All Rights Reserved
PROJECT:
MODULE:
FILE: cmainDocLowDisk.asm
AUTHOR: Adam de Boor, Jun 7, 1993
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
Adam 6/ 7/93 Initial revision
DESCRIPTION:
Functions to cope with recovering from disk-full situations.
$Id: cmainDocLowDisk.asm,v 1.1 97/04/07 10:51:58 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ifdef NIKE_DUTCH
_NIKE_DUTCH = TRUE
else
_NIKE_DUTCH = FALSE
endif
ifdef NIKE_GERMAN
_NIKE_GERMAN = TRUE
else
_NIKE_GERMAN = FALSE
endif
DocDiskFull segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLDocumentShowLowDiskError
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Put up the dialog saying we're out of disk space and
offering the user the chance to clean up.
CALLED BY: (EXTERNAL) OLDocumentDetach
PASS: *ds:si = GenDocument object
ax = message to send to ourself when we are done
RETURN: nothing
DESTROYED: ax, bx, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
Setup required:
1) duplicate resource
2) replace \1 in MessageTextText with doc name
3) replace \1 in DeleteDocTrigger's moniker with doc
name
4) replace \1 in MoveDocTrigger's moniker with doc
name
5) change to be run by same thread as app obj
6) attach dialog as child of app
7) set moniker for box to match app's text moniker
8) initiate interaction
9) add document object to filesystem change list
10) set file selector for deleting to be in same dir
as document
11) initialize free space display
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 6/ 7/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
OLDocumentShowLowDiskError proc far
uses si, es
.enter
;
; Save the response message
;
push ax
mov ax, TEMP_OL_DOCUMENT_NO_DISK_SPACE_MESSAGE
mov cx, size word
call ObjVarAddData
pop ds:[bx]
;
; Make a copy of our beloved resource.
;
mov bx, handle LowDiskUI
; clr ax ; owned by current process
mov ax, handle ui ; owned by global UI thread
; (see below)
clr cx ; run by current thread (for now)
call ObjDuplicateResource
mov di, ds:[si]
add di, ds:[di].OLDocument_offset
mov ds:[di].OLDI_saveErrorRes, bx
;
; Lock down the duplicate so we can mangle it in various ways.
;
mov di, ds:[si]
add di, ds:[di].GenDocument_offset
lea dx, ds:[di].GDI_fileName ; ds:dx <- doc name
if HANDLE_DISK_FULL_ON_SAVE_AS
push bx ; save ui block
mov ax, TEMP_OL_DOCUMENT_SAVE_AS_DISK_FULL
call ObjVarFindData
jnc haveDocName
lea dx, ds:[bx].DCP_name ; ds:dx = save as name
haveDocName:
pop bx ; bx = ui block
endif
push si, bx
call ObjLockObjBlock
mov es, ax
mov bx, ds:[LMBH_handle]
;
; Change the obj block's output to the document object.
;
push ds
mov ds, ax
call ObjBlockSetOutput
pop ds
;
; Replace \1 with the document name in the three relevant places.
;
push si ; save GenDocument chunk
mov si, offset MessageTextText
clr bx ; look for \1 from start
call OLDocInsertDocName
if not NO_LOW_DISK_DELETE_CURRENT
mov si, offset DeleteDocMoniker
mov bx, offset VM_data.VMT_text ; look for \1 in mkr text
call OLDocInsertDocName
if _NIKE_GERMAN or _NIKE_DUTCH
mov bx, es:[si] ; es:bx = VisMoniker
mov es:[bx].VM_width, 0 ; recompute moniker
; width
endif
endif
if not NO_LOW_DISK_MOVE
mov si, offset MoveDocMoniker
mov bx, offset VM_data.VMT_text ; look for \1 in mkr text
call OLDocInsertDocName
if _NIKE_GERMAN or _NIKE_DUTCH
mov bx, es:[si] ; es:bx = VisMoniker
mov es:[bx].VM_width, 0 ; recompute moniker
; width
endif
endif
pop si ; restore GenDocument chunk
;
; Fetch the text moniker for the app object.
;
mov bp, (VMS_TEXT shl offset VMSF_STYLE)
stc ;check app's moniker list
call GenFindMoniker ; ^lcx:dx <- moniker
;
; Copy it into the object block, calling the thread that runs the
; application object to perform the copy while we remain blocked.
;
if 0
clr bx
call GeodeGetAppObject
mov ax, MGIT_EXEC_THREAD
call MemGetInfo
mov_tr bx, ax ; bx <- thread to call
CheckHack <size CopyChunkOutFrame eq 10>
CheckHack <offset CCOF_dest eq 6 and size CCOF_dest eq 4>
CheckHack <offset CCOF_source eq 2 and size CCOF_source eq 4>
CheckHack <offset CCOF_copyFlags eq 0 and size CCOF_copyFlags eq 2>
mov ax, CCM_OPTR shl offset CCF_MODE
push es:[LMBH_handle], si, ; CCOF_dest
cx, dx, ; CCOF_source
ax ; CCOF_copyFlags
mov bp, sp
mov dx, size CopyChunkOutFrame
mov di, mask MF_CALL or mask MF_FIXUP_DS or \
mask MF_FIXUP_ES or mask MF_STACK
mov ax, MSG_PROCESS_COPY_CHUNK_OUT
call ObjMessage ; ax <- new chunk
add sp, size CopyChunkOutFrame
else
;
; the above only works for single threaded apps, copy into temporary
; global block instead - brianc 7/6/93
; ^lcx:dx = moniker to copy into object block
; es:[LMBH_handle] = object block
;
CheckHack <size CopyChunkOutFrame eq 10>
CheckHack <offset CCOF_dest eq 6 and size CCOF_dest eq 4>
CheckHack <offset CCOF_source eq 2 and size CCOF_source eq 4>
CheckHack <offset CCOF_copyFlags eq 0 and size CCOF_copyFlags eq 2>
mov ax, CCM_HPTR shl offset CCF_MODE
push ax, ax, ; CCOF_dest (not used)
cx, dx, ; CCOF_source
ax ; CCOF_copyFlags
mov bp, sp
mov dx, size CopyChunkOutFrame
call UserHaveProcessCopyChunkOut ; ax = block, cx = size
add sp, size CopyChunkOutFrame
push ax ; save block handle
EC < push cx ; save size >
CheckHack <size CopyChunkInFrame eq 8>
CheckHack <offset CCIF_destBlock eq 6 and size CCIF_destBlock eq 2>
CheckHack <offset CCIF_source eq 2 and size CCIF_source eq 4>
CheckHack <offset CCIF_copyFlags eq 0 and size CCIF_copyFlags eq 2>
mov dx, 0
ornf cx, CCM_HPTR shl offset CCF_MODE ; size + flags
push es:[LMBH_handle], ; CCIF_destBlock
ax, dx, ; CCIF_source
cx ; CCIF_copyFlags
mov bp, sp
mov dx, size CopyChunkInFrame
call UserHaveProcessCopyChunkIn ; ax = chunk, cx = size
add sp, size CopyChunkInFrame
EC < pop bx ; verify size >
EC < cmp bx, cx >
EC < ERROR_NE OL_ERROR >
pop bx
call MemFree ; free temp block
endif
mov_tr cx, ax ; cx = chunk
;
; Make dialog have the same moniker.
;
pop bx
mov si, offset LowDiskBox
mov ax, MSG_GEN_USE_VIS_MONIKER
mov dl, VUM_MANUAL
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
pop si
call MemUnlock
;
; Change the block to be run by the ui's app object's thread.
;
push bx, si
mov bx, handle ui
call GeodeGetAppObject
mov ax, MGIT_EXEC_THREAD
call MemGetInfo
movdw cxdx, bxsi
pop bx, si
call MemModifyOtherInfo
;done at ObjDuplicateResource call so we get added to correct process' saved
;block list - brianc 7/22/93
; ;
; ; change owner to be global UI thread
; ; so queue flushing will be happy (block is run by global
; ; UI thread) - brianc 7/20/93
; ;
; mov ax, handle ui
; call HandleModifyOwner
;
; Add the root as the first child of the application object.
;
push si
xchg bx, cx ; ^lbx:si <- ui app obj
mov si, dx
mov dx, offset LowDiskBox ; ^lcx:dx <- dialog
mov ax, MSG_GEN_ADD_CHILD_UPWARD_LINK_ONLY
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
;
; Bring it up on-screen & beep.
;
movdw bxsi, cxdx
mov ax, MSG_GEN_SET_USABLE
mov dl, VUM_MANUAL
mov di, mask MF_FIXUP_DS
call ObjMessage
mov ax, MSG_GEN_INTERACTION_INITIATE
mov di, mask MF_FIXUP_DS
call ObjMessage
mov ax, SST_ERROR
call UserStandardSound
pop si
;
; Add the document object to the filesystem change list so we know to
; retry the save when something gets deleted.
;
push bx
mov cx, ds:[LMBH_handle]
mov dx, si
mov bx, MANUFACTURER_ID_GEOWORKS
mov ax, GCNSLT_FILE_SYSTEM
call GCNListAdd
pop bx
;
; Set the path of the file selector to match that of the document.
;
mov di, offset DeleteFilesFS ; ^lbx:di <- fsel
call OLDCCopyPathToFS
if not NO_LOW_DISK_MOVE
mov di, offset MoveFileFS ; ^lbx:di <- fsel
call OLDCCopyPathToFS
endif
;
; Update the free-space display for that disk.
;
call OLDocUpdateFreeSpaceDisplay
.leave
ret
OLDocumentShowLowDiskError endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLDocInsertDocName
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Replace a single \1 in a text string with the name of
the current document.
CALLED BY: (INTERNAL) OLDocumentShowLowDiskError
PASS: ds:dx = document filename
*es:si = chunk in which to search
bx = offset within chunk from which to start search
RETURN: nothing
DESTROYED: ax, bx, di
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 6/ 7/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
OLDocInsertDocName proc near
uses cx, si
.enter
;
; Find the length of the text in the filename.
;
push es
segmov es, ds
mov di, dx
LocalClrChar ax
mov cx, -1
LocalFindChar
not cx
dec cx ; cx <- length w/o null
pop es
push cx
;
; Locate the \1 in the string.
;
mov di, es:[si]
inc ax ; al <- 1 (1-char inst)
ChunkSizePtr es, di, cx
add di, bx
sub cx, bx
DBCS< shr cx, 1 ; #bytes -> #chars >
LocalFindChar
pop cx ; cx <- length of file name
jne done ; => no \1, so nothing to insert
;
; Insert enough room there in the string for the file name
;
push ds
segmov ds, es
LocalPrevChar esdi ; point to \1
sub di, ds:[si] ; figure offset from base of chunk
; for insertion
mov bx, di
mov ax, si
dec cx ; reduce by 1 char to account for
; overwriting \1
DBCS < shl cx, 1 ; #chars -> #bytes >
call LMemInsertAt
pop ds
;
; Now copy the text from the file name into the string
;
mov di, bx ; di <- offset
add di, es:[si] ; es:di <- insertion point
push si
mov si, dx ; ds:si <- filename
DBCS < shr cx, 1 ; #bytes -> #chars >
inc cx ; account for previous reduction
LocalCopyNString
pop si
done:
.leave
ret
OLDocInsertDocName endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLDocUpdateFreeSpaceDisplay
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Update the number of bytes free on the drive to which the
file selector for deleting things is set
CALLED BY: (INTERNAL)
PASS: *ds:si = document object
RETURN: nothing
DESTROYED: ax, cx, dx
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 6/ 7/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
OLDocUpdateFreeSpaceDisplay proc near
uses bx, si, di, bp, es
.enter
push si
mov di, ds:[si]
add di, ds:[di].OLDocument_offset
mov bx, ds:[di].OLDI_saveErrorRes
mov si, offset DeleteFilesFS
mov ax, MSG_GEN_PATH_GET_DISK_HANDLE
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage ; cx <- disk handle
pop si
push bx
push cx
mov ax, TEMP_OL_DOCUMENT_FREE_SPACE_DRIVE
mov cx, size word
call ObjVarAddData
pop cx
mov ds:[bx], cx
test cx, DISK_IS_STD_PATH_MASK
jz notStdPath ; not std path
mov ax, SGIT_SYSTEM_DISK ; else, use system disk
call SysGetInfo
mov ds:[bx], ax
notStdPath:
mov bx, cx
call DiskGetVolumeFreeSpace
pop bx
jnc haveSpace
clrdw dxax
haveSpace:
sub sp, UHTA_NULL_TERM_BUFFER_SIZE
mov cx, mask UHTAF_NULL_TERMINATE
segmov es, ss
mov di, sp
call UtilHex32ToAscii
mov dx, ss
mov bp, sp
clr cx ; null-terminated
mov si, offset DeleteFilesFreeSpace
mov ax, MSG_VIS_TEXT_REPLACE_ALL_PTR
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
add sp, UHTA_NULL_TERM_BUFFER_SIZE
.leave
ret
OLDocUpdateFreeSpaceDisplay endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLDocNotifyFileChange
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Attempt to save the file again if change is deletion.
CALLED BY: MSG_NOTIFY_FILE_CHANGE
PASS: dx = FileChangeNotificationType
bp = FileChangeNotificationData block
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 6/ 7/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
OLDocNotifyFileChange method dynamic OLDocumentClass, MSG_NOTIFY_FILE_CHANGE
push dx, bp
call OLDocMarkBusy
;
; check for flag
;
mov ax, TEMP_OL_DOCUMENT_DISK_FULL_RESOLVED
call ObjVarFindData
LONG jc passItOnNoUpdate ; don't delete, no need for more
; MSG_NOTIFY_FILE_CHANGEs
; (removed when OLDoc
; destoryed)
clr cx
call OLDocLookForDelete
jnc passItOn
push cx
if HANDLE_DISK_FULL_ON_SAVE_AS
mov ax, TEMP_OL_DOCUMENT_SAVE_AS_DISK_FULL
call ObjVarFindData
jnc notSaveAs
mov dx, bx ; save data
mov ax, TEMP_OL_DOCUMENT_IGNORE_NEXT_DELETE
call ObjVarFindData
jnc trySaveAsAgain
call ObjVarDeleteDataAt
stc ; simulate error
jmp short checkIfSuccessful
trySaveAsAgain:
mov bx, dx ; ds:bx = save as data
mov dx, size DocumentCommonParams
sub sp, dx
mov di, sp
push es, si
segmov es, ss ; es:di = dest
mov si, bx ; ds:si = source
mov cx, dx ; cx = size
rep movsb
pop es, si ; *ds:si = OLDocument
mov bp, sp ; ss:bp = DocumentCommonParams
mov ax, MSG_GEN_DOCUMENT_SAVE_AS
call ObjCallInstanceNoLock
; preserve flags
lea sp, ss:[bp][size DocumentCommonParams]
jnc checkIfSuccessful
;
; if we failed the SAVE_AS, a delete notification will be
; coming in for the save-as file. We want to ignore that,
; otherwise, we'll keep looping here. There is a chance
; that we'll ignore a delete from some other thread, but
; the right thing (stop retrying SAVE_AS) will eventually
; happen.
;
mov ax, TEMP_OL_DOCUMENT_IGNORE_NEXT_DELETE
clr cx
call ObjVarAddData
stc ; indicate error in SAVE_AS
jmp short checkIfSuccessful
notSaveAs:
endif
call OLDocumentSaveOrUpdate
checkIfSuccessful::
pop cx
jnc takeDownBoxes
passItOn:
jcxz passItOnNoUpdate
call OLDocUpdateFreeSpaceDisplay
passItOnNoUpdate:
pop dx, bp
mov ax, MSG_NOTIFY_FILE_CHANGE
mov di, offset OLDocumentClass
call ObjCallSuperNoLock
call OLDocMarkNotBusy
ret
takeDownBoxes:
mov ax, TEMP_OL_DOCUMENT_NO_DISK_SPACE_MESSAGE
call ObjVarFindData
EC < ERROR_NC OL_ERROR >
cmp {word} ds:[bx], MSG_META_ACK
jz detaching
if HANDLE_DISK_FULL_ON_SAVE_AS
cmp {word} ds:[bx], MSG_OL_DOCUMENT_CONTINUE_SAVE_AS_AFTER_DISK_FULL
je detaching
endif
; we're closing the file
mov di, ds:[si]
add di, ds:[di].Gen_offset
andnf ds:[di].GDI_attrs, not mask GDA_CLOSING
clr bp
mov ax, MSG_GEN_DOCUMENT_CLOSE
call ObjCallInstanceNoLock
detaching:
call OLDocFinishSaveError
jmp passItOnNoUpdate
OLDocNotifyFileChange endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLDocFinishSaveError
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Perform the necessary clean up after save error has been
resolved, one way or another.
CALLED BY: (INTERNAL) OLDocNotifyFileChange,
OLDocumentDeleteAfterSaveError
PASS: *ds:si = document object
RETURN: nothing
DESTROYED: ax, bx, cx, dx, di, bp
SIDE EFFECTS: removed from FCN list and a message is queued. Doc must
continue to exist for a queue delay
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 6/ 8/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
OLDocFinishSaveError proc near
.enter
;
; add flag
;
mov ax, TEMP_OL_DOCUMENT_DISK_FULL_RESOLVED
mov cx, 0
call ObjVarAddData
mov cx, ds:[LMBH_handle]
mov dx, si
mov bx, MANUFACTURER_ID_GEOWORKS
mov ax, GCNSLT_FILE_SYSTEM
call GCNListRemove
mov ax, MSG_OL_DOCUMENT_SAVE_ERROR_RESOLVED
mov bx, cx
mov di, mask MF_FORCE_QUEUE
call ObjMessage
.leave
ret
OLDocFinishSaveError endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLDocLookForDelete
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Check the notification to see if it involves deleting
anything, or anything that would affect the free space
on the disk.
CALLED BY: (INTERNAL) OLDocNotifyFileChange
PASS: dx = FileChangeNotificationType
^hbp = FileChangeNotificationData
RETURN: carry set if anything deleted
cx = non-zero if any disk space change
DESTROYED:
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 6/ 7/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
OLDocLookForDelete proc near
uses es, dx, bp
.enter
mov bx, bp
call MemLock
mov es, ax
clr di
call OLDocLookForDeleteLow
call MemUnlock
mov ax, cx
clr ch ; cx <- non-zero if space change
sahf ; CF <- 1 if delete
.leave
ret
OLDocLookForDelete endp
OLDocLookForDeleteLow proc near
class OLDocumentClass
uses bx
.enter
mov bx, dx
shl bx
call cs:[notificationTable][bx]
.leave
ret
notificationTable nptr.near \
notifyCreate, ; FCNT_CREATE
notifyRename, ; FCNT_RENAME
notifyOpen, ; FCNT_OPEN
notifyDelete, ; FCNT_DELETE
notifyContents, ; FCNT_CONTENTS
notifyAttributes, ; FCNT_ATTRIBUTES
notifyFormat, ; FCNT_DISK_FORMAT
notifyClose, ; FCNT_CLOSE
notifyBatch, ; FCNT_BATCH
notifySPAdd, ; FCNT_ADD_SP_DIRECTORY
notifySPDelete, ; FCNT_DELETE_SP_DIRECTORY
notifyUnread, ; FCNT_FILE_UNREAD
notifyRead ; FCNT_FILE_READ
.assert ($-notificationTable)/2 eq FileChangeNotificationType
notifyDelete:
ornf ch, mask CPU_CARRY ; something deleted
notifyContents:
notifyCreate:
ornf cl, 1 ; disk-space change
retn
notifySPAdd:
notifySPDelete:
notifyFormat:
notifyRename:
notifyOpen:
notifyClose:
notifyAttributes:
notifyUnread:
notifyRead:
retn
;--------------------
notifyBatch:
;
; Process the batch o' notifications one at a time.
;
mov bx, es:[FCBND_end]
mov di, offset FCBND_items
batchLoop:
cmp di, bx ; done with all entries?
jae batchLoopDone
;
; Perform another notification. Fetch the type out
;
mov dx, es:[di].FCBNI_type
push di, dx
;
; Point to the start of the stuff that resembles a
; FileChangeNotificationData structure and recurse
;
add di, offset FCBNI_disk
call OLDocLookForDeleteLow
pop di, dx
;
; Advance pointer, accounting to variable-sized nature of the thing.
;
add di, size FileChangeBatchNotificationItem
CheckHack <FCNT_CREATE eq 0 and FCNT_RENAME eq 1>
cmp dx, FCNT_RENAME
ja batchLoop ; => no name
add di, size FileLongName
jmp batchLoop
batchLoopDone:
retn
OLDocLookForDeleteLow endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLDocSaveErrorResolved
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Finish up this whole mess of resolving a save error at
detach time.
CALLED BY: MSG_OL_DOCUMENT_SAVE_ERROR_RESOLVED
PASS: *ds:si = document object
ds:di = OLDocumentInstance
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: MSG_META_ACK is called on ourselves
OLDI_saveErrorRes is cleared
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 6/ 7/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
OLDocSaveErrorResolved method dynamic OLDocumentClass,
MSG_OL_DOCUMENT_SAVE_ERROR_RESOLVED
.enter
;
; Bring down and destroy the block holding the dialog box.
;
clr bx
xchg bx, ds:[di].OLDI_saveErrorRes
push si
mov si, offset LowDiskBox
mov ax, MSG_GEN_DESTROY_AND_FREE_BLOCK
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
pop si
;
; Send ourselves the final message needed (either a MSG_ACK to
; continue the app's detaching or CLOSE to continue closing)
;
mov ax, TEMP_OL_DOCUMENT_NO_DISK_SPACE_MESSAGE
call ObjVarFindData
EC < ERROR_NC OL_ERROR >
push ds:[bx]
call ObjVarDeleteData
pop ax
call ObjCallInstanceNoLock
.leave
ret
OLDocSaveErrorResolved endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLDocDeleteSelectedFile
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Attempt to delete the file selected in the file selector
CALLED BY: MSG_OL_DOCUMENT_DELETE_SELECTED_FILE
PASS: *ds:si = OLDocument
ds:di = OLDocumentInstance
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: File may be deleted & FCN sent. Receipt of the FCN causes
another attempt at saving the document and possibly the removal
of the box.
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 6/ 7/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
OLDocDeleteSelectedFile method dynamic OLDocumentClass, MSG_OL_DOCUMENT_DELETE_SELECTED_FILE
pathName local PathName
.enter
mov bx, ds:[di].OLDI_saveErrorRes
mov si, offset DeleteFilesFS
mov cx, ss
lea dx, ss:[pathName]
push bp
mov ax, MSG_GEN_FILE_SELECTOR_GET_FULL_SELECTION_PATH
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
mov bx, bp
pop bp
CheckHack <GFSET_FILE eq 0>
test bx, mask GFSEF_TYPE
jnz done
;
; Change to the root of the thing's disk.
;
call FilePushDir
mov_tr bx, ax
push ds
segmov ds, cs
mov dx, offset rootPath
call FileSetCurrentPath
;
; Now delete the S.O.B.
;
segmov ds, ss
lea dx, ss:[pathName]
call FileDelete
pop ds
jnc donePopDir
;
; For now, just honk. Perhaps we should have a text object for
; displaying an error message?
;
mov ax, SST_ERROR
call UserStandardSound
donePopDir:
call FilePopDir
done:
.leave
ret
rootPath char '\\', 0
OLDocDeleteSelectedFile endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLDocDeleteFilesFSNotify
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: if changed drives, update free space
CALLED BY: MSG_OL_DOCUMENT_DELETE_FILES_FS_NOTIFY
PASS: *ds:si = OLDocumentClass object
ds:di = OLDocumentClass instance data
es = segment of OLDocumentClass
ax = MSG_OL_DOCUMENT_DELETE_FILES_FS_NOTIFY
RETURN: nothing
ALLOWED TO DESTROY:
ax, cx, dx, bp
bx, si, di, ds, es
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 7/13/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
OLDocDeleteFilesFSNotify method dynamic OLDocumentClass, MSG_OL_DOCUMENT_DELETE_FILES_FS_NOTIFY
push si
mov di, ds:[si]
add di, ds:[di].OLDocument_offset
mov bx, ds:[di].OLDI_saveErrorRes
mov si, offset DeleteFilesFS
mov ax, MSG_GEN_PATH_GET_DISK_HANDLE
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage ; cx <- disk handle
pop si
test cx, DISK_IS_STD_PATH_MASK
jz notStdPath ; not std path
mov ax, SGIT_SYSTEM_DISK ; else, use system disk
call SysGetInfo
mov cx, ax
notStdPath:
mov ax, TEMP_OL_DOCUMENT_FREE_SPACE_DRIVE
call ObjVarFindData
jnc update
cmp ds:[bx], cx ; already have it?
je done ; yes, don't do it again
update:
call OLDocUpdateFreeSpaceDisplay
done:
ret
OLDocDeleteFilesFSNotify endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLDocumentDeleteAfterSaveError
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: User has decided to just biff the document, rather than
struggle on any further.
CALLED BY: MSG_OL_DOCUMENT_DELETE_AFTER_SAVE_ERROR
PASS: *ds:si = document
ds:di = OLDocumentInstance
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 6/ 8/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if not NO_LOW_DISK_DELETE_CURRENT
OLDocumentDeleteAfterSaveError method dynamic OLDocumentClass,
MSG_OL_DOCUMENT_DELETE_AFTER_SAVE_ERROR
.enter
;
; if we have already finished, don't bother with trying again
; - brianc 1/25/94
;
mov ax, TEMP_OL_DOCUMENT_DISK_FULL_RESOLVED
call ObjVarFindData
jc done
call OLDocFinishSaveError
mov cx, TRUE ; delete doc
call OLDocDestroyDocument
done:
.leave
ret
OLDocumentDeleteAfterSaveError endm
endif
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLDocumentRevertAfterSaveError
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: User has decided to just discard changes, rather than
struggle on any further.
CALLED BY: MSG_OL_DOCUMENT_REVERT_AFTER_SAVE_ERROR
PASS: *ds:si = document
ds:di = OLDocumentInstance
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 3/15/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
OLDocumentRevertAfterSaveError method dynamic OLDocumentClass,
MSG_OL_DOCUMENT_REVERT_AFTER_SAVE_ERROR
.enter
;
; if we have already finished, don't bother with trying again
; - brianc 1/25/94
;
mov ax, TEMP_OL_DOCUMENT_DISK_FULL_RESOLVED
call ObjVarFindData
jc done
;
; signal that document needs to be reverted before being closed
;
mov di, ds:[si]
add di, ds:[di].OLDocument_offset
ornf ds:[di].OLDI_attrs, mask OLDA_REVERT_BEFORE_CLOSE
call OLDocFinishSaveError
clr cx ; don't delete doc
call OLDocDestroyDocument
done:
.leave
ret
OLDocumentRevertAfterSaveError endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLDocMoveAfterErrorFeedback
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Update the dialog box to reflect the destination of the move.
CALLED BY: MSG_OL_DOCUMENT_MOVE_AFTER_ERROR_FEEDBACK
PASS: *ds:si = document object
cx = entry #
bp = GenFileSelectorEntryFlags
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 6/ 8/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if not NO_LOW_DISK_MOVE
OLDocMoveAfterErrorFeedback method dynamic OLDocumentClass,
MSG_OL_DOCUMENT_MOVE_AFTER_ERROR_FEEDBACK
.enter
test bp, mask GFSEF_ERROR
jnz done
mov bx, ds:[di].OLDI_saveErrorRes
mov cx, offset MoveFileFS
mov dx, offset MoveFileDestText
call SetDirText ; cmainUIDocOperations.asm
done:
.leave
ret
OLDocMoveAfterErrorFeedback endm
endif
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLDocMoveAfterSaveError
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Move the document someplace else to clear up the save
error.
CALLED BY: MSG_OL_DOCUMENT_MOVE_AFTER_SAVE_ERROR
PASS: *ds:si = document object
ds:di = OLDocumentInstance
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
Unfortunately, we can't use the handy GetPathFromFileSelector
because that expects either to have a file, or to have a
text object with a name, and we use our own name, instead.
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 6/ 8/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if not NO_LOW_DISK_MOVE
OLDocMoveAfterSaveError method dynamic OLDocumentClass, MSG_OL_DOCUMENT_MOVE_AFTER_SAVE_ERROR
.enter
sub sp, size DocumentCommonParams
mov bp, sp
;
; Fetch the destination directory from the file selector.
;
push bp, si
mov dx, ss
add bp, offset DCP_path
mov cx, size DCP_path
mov bx, ds:[di].OLDI_saveErrorRes
mov si, offset MoveFileFS
mov ax, MSG_GEN_FILE_SELECTOR_GET_DESTINATION_PATH
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
pop bp, si
mov ss:[bp].DCP_diskHandle, cx
;
; Fetch the filename from our instance data.
;
push si
mov si, ds:[si]
add si, ds:[si].GenDocument_offset
add si, offset GDI_fileName
segmov es, ss
lea di, ss:[bp].DCP_name
mov cx, size GDI_fileName
rep movsb
pop si
;
; No special behaviour for anything else. If the destination
; already exists, the app object should fail the dialog request and
; we just receive an error back...
;
mov ss:[bp].DCP_connection, 0
mov ss:[bp].DCP_docAttrs, 0
mov ss:[bp].DCP_flags, 0
;
; clear GDA_CLOSING so SAVE_AS doesn't close and destroy
; document, we do that ourselves, below
;
mov di, ds:[si]
add di, ds:[di].Gen_offset
andnf ds:[di].GDI_attrs, not mask GDA_CLOSING
mov ax, MSG_GEN_DOCUMENT_SAVE_AS
mov dx, size DocumentCommonParams
call ObjCallInstanceNoLock
jnc resolution
mov ax, SST_ERROR
call UserStandardSound
done:
add sp, size DocumentCommonParams
.leave
ret
resolution:
call OLDocFinishSaveError
clr cx ; don't delete doc, as it's the new
; save-as'ed one.
call OLDocDestroyDocument
jmp done
OLDocMoveAfterSaveError endm
endif
DocDiskFull ends
|
||||
TheStack | b32a4a88e99902daa719901cbc86e3c2eef35e9a | Assemblycode:Assembly | {"size": 607, "ext": "asm", "max_stars_repo_path": "libsrc/_DEVELOPMENT/arch/cpm/z80/asm_cpm_get_offset.asm", "max_stars_repo_name": "jpoikela/z88dk", "max_stars_repo_stars_event_min_datetime": "2017-01-14T23:33:45.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T11:28:42.000Z", "max_issues_repo_path": "libsrc/_DEVELOPMENT/arch/cpm/z80/asm_cpm_get_offset.asm", "max_issues_repo_name": "jpoikela/z88dk", "max_issues_repo_issues_event_min_datetime": "2017-01-15T16:12:02.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T12:11:12.000Z", "max_forks_repo_path": "libsrc/_DEVELOPMENT/arch/cpm/z80/asm_cpm_get_offset.asm", "max_forks_repo_name": "jpoikela/z88dk", "max_forks_repo_forks_event_min_datetime": "2017-01-17T10:43:03.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-23T17:25:02.000Z"} | {"max_stars_count": 640, "max_issues_count": 1600, "max_forks_count": 215, "avg_line_length": 17.8529411765, "max_line_length": 65, "alphanum_fraction": 0.410214168} |
; ===============================================================
; 2015
; ===============================================================
;
; unsigned long cpm_get_offset(void *p)
;
; Return the three-byte little endian value at address p.
;
; ===============================================================
SECTION code_clib
SECTION code_arch
PUBLIC asm_cpm_get_offset
asm_cpm_get_offset:
; enter : hl = void *p
;
; exit : dehl = three-byte little endian value at p
;
; uses : de, hl
ld e,(hl)
inc hl
ld d,(hl)
inc hl
ld l,(hl)
ld h,0
ex de,hl
ret
|
||||
TheStack | 90bd77cc34bf782e8e3e167f77c4e27cb6e393d5 | Assemblycode:Assembly | {"size": 374, "ext": "asm", "max_stars_repo_path": "oeis/081/A081126.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/081/A081126.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/081/A081126.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"} | {"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 22.0, "max_line_length": 191, "alphanum_fraction": 0.7299465241} | ; A081126: Duplicate of A018191.
; Submitted by Jamie Morken(s2)
; 1,2,5,16,53,206,817,3620,16361,80218,401501,2139512,11641885,66599846,388962953,2367284236,14700573137,94523836850,619674301621,4186249123808,28809504493061,203556335785342,1463877667140065
mul $0,2
mov $1,1
mov $3,2
lpb $0
mul $1,$0
sub $0,2
mov $2,$1
mov $1,$3
add $3,$2
lpe
mov $0,$3
div $0,2
|
||||
TheStack | c81de4eb304a69253ba364162f3bedbac92a4274 | Assemblycode:Assembly | {"size": 105649, "ext": "asm", "max_stars_repo_path": "timeit.asm", "max_stars_repo_name": "ILW8/gwnum", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "timeit.asm", "max_issues_repo_name": "ILW8/gwnum", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "timeit.asm", "max_forks_repo_name": "ILW8/gwnum", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 44.4089953762, "max_line_length": 153, "alphanum_fraction": 0.7144412157} | ; Copyright 1995-2020 Mersenne Research, Inc. All rights reserved
; Author: George Woltman
; Email: [email protected]
;
; Time low-level operations for optimizing macros and comparing CPUs
;
TITLE setup
IFNDEF X86_64
.686
.XMM
.MODEL FLAT
ENDIF
INCLUDE unravel.mac
INCLUDE extrn.mac
INCLUDE memory.mac
INCLUDE pfa.mac
INCLUDE lucas.mac
INCLUDE xarch.mac
INCLUDE xbasics.mac
INCLUDE xmult.mac
INCLUDE hg.mac
INCLUDE r4.mac
IFDEF X86_64
X87_CASES EQU 0
ELSE
X87_CASES EQU 13
ENDIF
SSE2_CASES EQU 216
AVX_CASES EQU 300
IFDEF X86_64
AVX512_CASES EQU 140
ELSE
AVX512_CASES EQU 0
ENDIF
IACA_TEST_CASE EQU 999
loopent MACRO y,z ; Create a entry in the loop entry table
DP &y&z
ENDM
looptab MACRO y, cnt ; Create the loop entry table
x = 0
REPT cnt
loopent y, %x
x = x + 1
ENDM
ENDM
;; Macros from p4notes.doc
read1 MACRO mem, c ;; Bytes to read
LOCAL loop1, loop2
cnt = mem/64 ;; Read 64 bytes per iteration
mov edx, c
loop2: mov ecx, cnt
loop1: mov eax, [rsi] ;; Read one cache line
mov eax, [rsi+4] ;; 4 bytes at a time
mov eax, [rsi+8]
mov eax, [rsi+12]
mov eax, [rsi+16]
mov eax, [rsi+20]
mov eax, [rsi+24]
mov eax, [rsi+28]
mov eax, [rsi+32]
mov eax, [rsi+36]
mov eax, [rsi+40]
mov eax, [rsi+44]
mov eax, [rsi+48]
mov eax, [rsi+52]
mov eax, [rsi+56]
mov eax, [rsi+60]
lea rsi, [rsi+64] ; Next cache line
sub ecx, 1
jnz loop1
lea rsi, [rsi-mem] ; Restore esi
dec edx
jnz loop2
ENDM
read2 MACRO mem, c ;; Bytes to read
LOCAL loop1, loop2
cnt = mem/64 ; 64 bytes per iteration
mov edx, c
loop2: mov ecx, cnt
loop1: movapd xmm1, [rsi] ; Read one cache line
movapd xmm1, [rsi+16] ; 16 bytes at a time
movapd xmm1, [rsi+32]
movapd xmm1, [rsi+48]
lea rsi, [rsi+64] ; Next cache line
sub ecx, 1
jnz loop1
lea rsi, [rsi-mem]
dec edx
jnz loop2
ENDM
read4 MACRO mem, c ;; Bytes to read
LOCAL loop1, loop2
cnt = mem/(4*64) ;; 4 cache lines per iteration
mov edx, c
loop2: mov ecx, cnt
loop1: vmovapd ymm0, [rsi] ;; Read cache lines
vmovapd ymm1, [rsi+32]
vmovapd ymm2, [rsi+64]
vmovapd ymm3, [rsi+96]
vmovapd ymm4, [rsi+128]
vmovapd ymm5, [rsi+160]
vmovapd ymm6, [rsi+192]
vmovapd ymm7, [rsi+224]
add rsi, 4*64 ;; Next cache lines
sub ecx, 1
jnz loop1
sub rsi, cnt*4*64
dec edx
jnz loop2
ENDM
read8 MACRO mem, c ;; Bytes to read
LOCAL loop1, loop2
cnt = mem/(4*64) ;; 4 cache lines per iteration
mov edx, c
loop2: mov ecx, cnt
loop1: vmovapd zmm0, [rsi] ;; Read cache lines
vmovapd zmm1, [rsi+64]
vmovapd zmm2, [rsi+128]
vmovapd zmm3, [rsi+192]
add rsi, 4*64 ;; Next cache lines
sub ecx, 1
jnz loop1
sub rsi, cnt*4*64
dec edx
jnz loop2
ENDM
write1 MACRO mem, c ;; Bytes to write
LOCAL loop1, loop2
cnt = mem/64 ; 64 bytes per iteration
mov edx, c
loop2: mov ecx, cnt
loop1: movapd [rsi], xmm1 ; Write one cache line
movapd [rsi+16], xmm1 ; 16 bytes at a time
movapd [rsi+32], xmm1
movapd [rsi+48], xmm1
lea rsi, [rsi+64] ; Next cache line
sub ecx, 1
jnz loop1
lea rsi, [rsi-mem]
dec edx
jnz loop2
ENDM
write2 MACRO mem, c ;; Bytes to write
LOCAL loop1, loop2
cnt = mem/(4*128) ; 128 bytes per iteration
dist = 64
mov edx, c
sub ebx, ebx
loop2: mov ecx, cnt
loop1: movapd [rsi+0*dist], xmm1 ; Write 8 cache lines
movapd [rsi+1*dist], xmm1
movapd [rsi+2*dist], xmm1
movapd [rsi+3*dist], xmm1
movapd [rsi+4*dist], xmm1
movapd [rsi+5*dist], xmm1
movapd [rsi+6*dist], xmm1
movapd [rsi+7*dist], xmm1
lea rsi, [rsi+16] ; Same cache lines
add bl, 256/4 ; 4 inner loop iterations
jnc loop1
lea rsi, [rsi-4*16+8*dist] ; Next set of 8 cache lines
sub ecx, 1
jnz loop1
lea rsi, [rsi-mem]
dec edx
jnz loop2
ENDM
write4 MACRO mem, c ;; Bytes to write
LOCAL loop1, loop2
cnt = mem/(4*64) ;; 4 cache lines per iteration
mov edx, c
loop2: mov ecx, cnt
loop1: vmovapd [rsi], ymm0 ;; Write cache lines
vmovapd [rsi+32], ymm1
vmovapd [rsi+64], ymm2
vmovapd [rsi+96], ymm3
vmovapd [rsi+128], ymm4
vmovapd [rsi+160], ymm5
vmovapd [rsi+192], ymm6
vmovapd [rsi+224], ymm7
add rsi, 4*64 ;; Next cache lines
sub ecx, 1
jnz loop1
sub rsi, cnt*4*64
dec edx
jnz loop2
ENDM
write8 MACRO mem, c ;; Bytes to write
LOCAL loop1, loop2
cnt = mem/(4*64) ;; 4 cache lines per iteration
mov edx, c
loop2: mov ecx, cnt
loop1: vmovapd [rsi], zmm0 ;; Write cache lines
vmovapd [rsi+64], zmm1
vmovapd [rsi+128], zmm2
vmovapd [rsi+192], zmm3
add rsi, 4*64 ;; Next cache lines
sub ecx, 1
jnz loop1
sub rsi, cnt*4*64
dec edx
jnz loop2
ENDM
readwrite1 MACRO mem, c ;; Bytes to write
LOCAL loop1, loop2
cnt = mem/64
mov edx, c
loop2: mov ecx, cnt
loop1: movapd xmm0, [rsi] ; Read one cache line
movapd xmm1, [rsi+16]
movapd xmm2, [rsi+32]
movapd xmm3, [rsi+48]
subpd xmm0, xmm0 ; Operate on the data
pxor xmm1, xmm1
subpd xmm2, xmm2
pxor xmm3, xmm3
movapd [rsi], xmm0 ; Write the cache line
movapd [rsi+16], xmm1
movapd [rsi+32], xmm2
movapd [rsi+48], xmm3
lea rsi, [rsi+64] ; Next cache line
sub ecx, 1
jnz loop1
lea rsi, [rsi-mem]
dec edx
jnz loop2
ENDM
readwrite4 MACRO mem, c ;; Bytes to read/write
LOCAL loop1, loop2
cnt = mem/(4*64) ;; 4 cache lines per iteration
mov edx, c
loop2: mov ecx, cnt
loop1: vmovapd ymm0, [rsi] ;; Read cache lines
vmovapd ymm1, [rsi+32]
vmovapd ymm2, [rsi+64]
vmovapd ymm3, [rsi+96]
vmovapd ymm4, [rsi+128]
vmovapd ymm5, [rsi+160]
vmovapd ymm6, [rsi+192]
vmovapd ymm7, [rsi+224]
vmovapd [rsi], ymm0 ;; Write cache lines
vmovapd [rsi+32], ymm1
vmovapd [rsi+64], ymm2
vmovapd [rsi+96], ymm3
vmovapd [rsi+128], ymm4
vmovapd [rsi+160], ymm5
vmovapd [rsi+192], ymm6
vmovapd [rsi+224], ymm7
add rsi, 4*64 ;; Next cache lines
sub ecx, 1
jnz loop1
sub rsi, cnt*4*64
dec edx
jnz loop2
ENDM
readwrite8 MACRO mem, c ;; Bytes to read/write
LOCAL loop1, loop2
cnt = mem/(4*64) ;; 4 cache lines per iteration
mov edx, c
loop2: mov ecx, cnt
loop1: vmovapd zmm0, [rsi] ;; Read cache lines
vmovapd zmm2, [rsi+64]
vmovapd zmm4, [rsi+128]
vmovapd zmm6, [rsi+192]
vmovapd [rsi], zmm0 ;; Write cache lines
vmovapd [rsi+64], zmm2
vmovapd [rsi+128], zmm4
vmovapd [rsi+192], zmm6
add rsi, 4*64 ;; Next cache lines
sub ecx, 1
jnz loop1
sub rsi, cnt*4*64 ;; Restore source pointer
dec edx
jnz loop2
ENDM
clocks50 MACRO
REPEAT 50
vpandq zmm0, zmm0, zmm1
ENDM
ENDM
sequential_readwrite8 MACRO mem, c ;; Bytes to read/write
LOCAL loop1, loop2, loop3
cnt = mem/(4*64) ;; 4 cache lines per iteration -- equivalent to clm=2
cnt1 = 1280 / 2 ;; Assumes pass 1 size of 1280, which equals 640 cache line pairs
cnt2 = cnt / cnt1 ;; This is number of pass 1 blocks
dist = 7680*16 + 29*64 ;; Assumes pass 2 does 7680 * 16 bytes + 29*64 pad bytes
mov edx, c
loop3: mov ecx, cnt1
loop2: mov ebx, cnt2
loop1: vmovapd zmm0, [rsi] ;; Read cache lines
vmovapd zmm2, [rsi+64]
vmovapd zmm4, [rsi+128]
vmovapd zmm6, [rsi+192]
prefetcht0 [rsi+4*64+0]
prefetcht0 [rsi+4*64+64]
; clocks50
prefetcht0 [rsi+4*64+128]
prefetcht0 [rsi+4*64+192]
clocks50
vmovapd [rsi], zmm0 ;; Write cache lines
vmovapd [rsi+64], zmm2
vmovapd [rsi+128], zmm4
vmovapd [rsi+192], zmm6
; vmovntpd [rsi], zmm0 ;; Write cache lines
; vmovntpd [rsi+64], zmm2
; vmovntpd [rsi+128], zmm4
; vmovntpd [rsi+192], zmm6
add rsi, 4*64 ;; Next cache lines
sub ebx, 1
jnz loop1
sub ecx, 1
jnz loop2
sub rsi, cnt2*cnt1*4*64 ;; Restore source pointer
dec edx
jnz loop3
ENDM
scatter_readwrite8 MACRO mem, c ;; Bytes to read/write
LOCAL loop1, loop2, loop3
cnt = mem/(4*64) ;; 4 cache lines per iteration -- equivalent to clm=2
cnt1 = 1280 / 2 ;; Assumes pass 1 size of 1280, which equals 640 cache line pairs
cnt2 = cnt / cnt1 ;; This is number of pass 1 blocks
dist = 7680*16 + 29*64 ;; Assumes pass 2 does 7680 * 16 bytes + 29*64 pad bytes
mov edx, c
loop3: mov ecx, cnt2
loop2: mov ebx, cnt1
loop1: vmovapd zmm0, [rsi] ;; Read cache lines
vmovapd zmm2, [rsi+64]
vmovapd zmm4, [rsi+128]
vmovapd zmm6, [rsi+192]
prefetcht0 [rsi+dist+0]
prefetcht0 [rsi+dist+64]
; clocks50
prefetcht0 [rsi+dist+128]
prefetcht0 [rsi+dist+192]
clocks50
vmovapd [rsi], zmm0 ;; Write cache lines
vmovapd [rsi+64], zmm2
vmovapd [rsi+128], zmm4
vmovapd [rsi+192], zmm6
; vmovntpd [rsi], zmm0 ;; Write cache lines
; vmovntpd [rsi+64], zmm2
; vmovntpd [rsi+128], zmm4
; vmovntpd [rsi+192], zmm6
add rsi, dist ;; Next cache lines
sub ebx, 1
jnz loop1
add rsi, -cnt1*dist+4*64 ;; Next cache lines
sub ecx, 1
jnz loop2
sub rsi, cnt2*4*64 ;; Restore source pointer
dec edx
jnz loop3
ENDM
;;newer version simulating half as many large strides
scatter_readwrite8 MACRO mem, c ;; Bytes to read/write
LOCAL loop1, loop2, loop3
cnt = mem/(8*64) ;; 4 cache lines per iteration -- equivalent to clm=4
cnt1 = 1280 / 2 ;; Assumes pass 1 size of 1280, which equals 640 cache line pairs
cnt2 = cnt / cnt1 ;; This is number of pass 1 blocks
dist = 7680*16 + 29*64 ;; Assumes pass 2 does 7680 * 16 bytes + 29*64 pad bytes
mov edx, c
loop3: mov ecx, cnt2
loop2: mov ebx, cnt1
loop1: vmovapd zmm0, [rsi] ;; Read cache lines
vmovapd zmm2, [rsi+64]
vmovapd zmm4, [rsi+128]
vmovapd zmm6, [rsi+192]
prefetcht0 [rsi+dist+0]
prefetcht0 [rsi+dist+64]
prefetcht0 [rsi+dist+128]
prefetcht0 [rsi+dist+192]
clocks50
vmovapd [rsi], zmm0 ;; Write cache lines
vmovapd [rsi+64], zmm2
vmovapd [rsi+128], zmm4
vmovapd [rsi+192], zmm6
vmovapd zmm0, [rsi+256] ;; Read cache lines
vmovapd zmm2, [rsi+256+64]
vmovapd zmm4, [rsi+256+128]
vmovapd zmm6, [rsi+256+192]
prefetcht0 [rsi+dist+256+0]
prefetcht0 [rsi+dist+256+64]
prefetcht0 [rsi+dist+256+128]
prefetcht0 [rsi+dist+256+192]
clocks50
vmovapd [rsi+256], zmm0 ;; Write cache lines
vmovapd [rsi+256+64], zmm2
vmovapd [rsi+256+128], zmm4
vmovapd [rsi+256+192], zmm6
add rsi, dist ;; Next cache lines
sub ebx, 1
jnz loop1
add rsi, -cnt1*dist+8*64 ;; Next cache lines
sub ecx, 1
jnz loop2
sub rsi, cnt2*8*64 ;; Restore source pointer
dec edx
jnz loop3
ENDM
sequential_read_scatter_write8 MACRO mem, c ;; Bytes to read/write
LOCAL loop1, loop2, loop3
cnt = mem/(4*64) ;; 4 cache lines per iteration -- equivalent to clm=2
cnt1 = 1280 / 2 ;; Assumes pass 1 size of 1280, which equals 640 cache line pairs
cnt2 = cnt / cnt1 ;; This is number of pass 1 blocks
dist = 7680*16 + 29*64 ;; Assumes pass 2 does 7680 * 16 bytes + 29*64 pad bytes
lea rdi, [rsi+96*1024*1024] ;; write to separate mem address 96MB away
mov edx, c
loop3: mov ecx, cnt2
loop2: mov ebx, cnt1
loop1: vmovapd zmm0, [rsi] ;; Read cache lines
vmovapd zmm2, [rsi+64]
vmovapd zmm4, [rsi+128]
vmovapd zmm6, [rsi+192]
prefetcht0 [rsi+4*64+0]
prefetcht0 [rsi+4*64+64]
; clocks50
prefetcht0 [rsi+4*64+128]
prefetcht0 [rsi+4*64+192]
clocks50
; vmovapd [rdi], zmm0 ;; Write cache lines
; vmovapd [rdi+64], zmm2
; vmovapd [rdi+128], zmm4
; vmovapd [rdi+192], zmm6
vmovntpd [rdi], zmm0 ;; Write cache lines
vmovntpd [rdi+64], zmm2
vmovntpd [rdi+128], zmm4
vmovntpd [rdi+192], zmm6
add rsi, 4*64 ;; Next cache lines
add rdi, dist ;; Next cache lines
sub ebx, 1
jnz loop1
add rdi, -cnt1*dist+4*64 ;; Next cache lines
sub ecx, 1
jnz loop2
sub rsi, cnt1*cnt2*4*64 ;; Restore source pointer
sub rdi, cnt2*4*64 ;; Restore dest pointer
dec edx
jnz loop3
ENDM
scatter_read_sequential_write8 MACRO mem, c ;; Bytes to read/write
LOCAL loop1, loop2, loop3
cnt = mem/(4*64) ;; 4 cache lines per iteration -- equivalent to clm=2
cnt1 = 1280 / 2 ;; Assumes pass 1 size of 1280, which equals 640 cache line pairs
cnt2 = cnt / cnt1 ;; This is number of pass 1 blocks
dist = 7680*16 + 29*64 ;; Assumes pass 2 does 7680 * 16 bytes + 29*64 pad bytes
lea rdi, [rsi+96*1024*1024] ;; write to separate mem address 96MB away
mov edx, c
loop3: mov ecx, cnt2
loop2: mov ebx, cnt1
loop1: vmovapd zmm0, [rsi] ;; Read cache lines
vmovapd zmm2, [rsi+64]
vmovapd zmm4, [rsi+128]
vmovapd zmm6, [rsi+192]
prefetcht0 [rsi+dist+0]
prefetcht0 [rsi+dist+64]
; clocks50
prefetcht0 [rsi+dist+128]
prefetcht0 [rsi+dist+192]
clocks50
; vmovapd [rdi], zmm0 ;; Write cache lines
; vmovapd [rdi+64], zmm2
; vmovapd [rdi+128], zmm4
; vmovapd [rdi+192], zmm6
vmovntpd [rdi], zmm0 ;; Write cache lines
vmovntpd [rdi+64], zmm2
vmovntpd [rdi+128], zmm4
vmovntpd [rdi+192], zmm6
add rsi, dist ;; Next cache lines
add rdi, 4*64 ;; Next cache lines
sub ebx, 1
jnz loop1
add rsi, -cnt1*dist+4*64 ;; Next cache lines
sub ecx, 1
jnz loop2
sub rsi, cnt2*4*64 ;; Restore source pointer
sub rdi, cnt1*cnt2*4*64 ;; Restore dest pointer
dec edx
jnz loop3
ENDM
x4cl_empty MACRO srcreg,srcinc,d1,d2,screg,scoff
xload xmm0, [srcreg+0]
xload xmm1, [srcreg+32]
xload xmm2, [srcreg+d1+0]
xload xmm3, [srcreg+d1+32]
xload xmm4, [srcreg+d2+0]
xload xmm5, [srcreg+d2+32]
xload xmm6, [srcreg+d2+d1+0]
xload xmm7, [srcreg+d2+d1+32]
xstore [srcreg+0], xmm0
xstore [srcreg+32], xmm1
xload xmm0, [srcreg+0+16]
xload xmm1, [srcreg+32+16]
xstore [srcreg+16], xmm2
xstore [srcreg+48], xmm3
xload xmm2, [srcreg+d1+0+16]
xload xmm3, [srcreg+d1+32+16]
xstore [srcreg+d1], xmm4
xstore [srcreg+d1+16], xmm5
xstore [srcreg+d1+32], xmm6
xstore [srcreg+d1+48], xmm7
xload xmm4, [srcreg+d2+0+16]
xload xmm5, [srcreg+d2+32+16]
xload xmm6, [srcreg+d2+d1+0+16]
xload xmm7, [srcreg+d2+d1+32+16]
xstore [srcreg+d2], xmm0
xstore [srcreg+d2+16], xmm1
xstore [srcreg+d2+32], xmm2
xstore [srcreg+d2+48], xmm3
xstore [srcreg+d2+d1], xmm4
xstore [srcreg+d2+d1+16], xmm5
xstore [srcreg+d2+d1+32], xmm6
xstore [srcreg+d2+d1+48], xmm7
bump srcreg, srcinc
ENDM
g4cl_empty MACRO srcreg,srcinc,d1,d2,dstreg,dstinc,e1,e2,screg,scoff
xload xmm0, [srcreg+0]
xload xmm1, [srcreg+32]
xload xmm2, [srcreg+d1+0]
xload xmm3, [srcreg+d1+32]
xload xmm4, [srcreg+d2+0]
xload xmm5, [srcreg+d2+32]
xload xmm6, [srcreg+d2+d1+0]
xload xmm7, [srcreg+d2+d1+32]
xstore [dstreg+0], xmm0
xstore [dstreg+32], xmm1
xload xmm0, [srcreg+0+16]
xload xmm1, [srcreg+32+16]
xstore [dstreg+16], xmm2
xstore [dstreg+48], xmm3
xload xmm2, [srcreg+d1+0+16]
xload xmm3, [srcreg+d1+32+16]
xstore [dstreg+e1], xmm4
xstore [dstreg+e1+16], xmm5
xstore [dstreg+e1+32], xmm6
xstore [dstreg+e1+48], xmm7
xload xmm4, [srcreg+d2+0+16]
xload xmm5, [srcreg+d2+32+16]
xload xmm6, [srcreg+d2+d1+0+16]
xload xmm7, [srcreg+d2+d1+32+16]
bump srcreg, srcinc
xstore [dstreg+e2], xmm0
xstore [dstreg+e2+16], xmm1
xstore [dstreg+e2+32], xmm2
xstore [dstreg+e2+48], xmm3
xstore [dstreg+e2+e1], xmm4
xstore [dstreg+e2+e1+16], xmm5
xstore [dstreg+e2+e1+32], xmm6
xstore [dstreg+e2+e1+48], xmm7
bump dstreg, dstinc
ENDM
g4cl_empty_nt MACRO srcreg,srcinc,d1,d2,dstreg,dstinc,e1,e2,screg,scoff
xload xmm0, [srcreg+0]
xload xmm1, [srcreg+32]
xload xmm2, [srcreg+d1+0]
xload xmm3, [srcreg+d1+32]
xload xmm4, [srcreg+d2+0]
xload xmm5, [srcreg+d2+32]
xload xmm6, [srcreg+d2+d1+0]
xload xmm7, [srcreg+d2+d1+32]
movntpd [dstreg+0], xmm0
movntpd [dstreg+32], xmm1
xload xmm0, [srcreg+0+16]
xload xmm1, [srcreg+32+16]
movntpd [dstreg+16], xmm2
movntpd [dstreg+48], xmm3
xload xmm2, [srcreg+d1+0+16]
xload xmm3, [srcreg+d1+32+16]
movntpd [dstreg+e1], xmm4
movntpd [dstreg+e1+16], xmm5
movntpd [dstreg+e1+32], xmm6
movntpd [dstreg+e1+48], xmm7
xload xmm4, [srcreg+d2+0+16]
xload xmm5, [srcreg+d2+32+16]
xload xmm6, [srcreg+d2+d1+0+16]
xload xmm7, [srcreg+d2+d1+32+16]
bump srcreg, srcinc
movntpd [dstreg+e2], xmm0
movntpd [dstreg+e2+16], xmm1
movntpd [dstreg+e2+32], xmm2
movntpd [dstreg+e2+48], xmm3
movntpd [dstreg+e2+e1], xmm4
movntpd [dstreg+e2+e1+16], xmm5
movntpd [dstreg+e2+e1+32], xmm6
movntpd [dstreg+e2+e1+48], xmm7
bump dstreg, dstinc
ENDM
;; Time one of the basic FFT building blocks
x87mac MACRO memused, memarea, ops:vararg
LOCAL ss0a, ss0b
inner_iters = memarea / (memused)
outer_iters = 10000 / inner_iters
mov eax, outer_iters
mov SRCARG, rdi ;; Save work buf addr
ss0a: mov rdi, SRCARG ;; Reload work buf addr
lea rsi, [rdi+4096]
mov ecx, inner_iters
ss0b: disp &ops
lea rsi, [rsi+memused] ;; Next source pointer
lea rdi, [rdi+SCD] ;; Next sine/cosine pointer
dec ecx
jnz ss0b
dec eax
jnz ss0a
ENDM
sse2mac MACRO lab, memused, memarea, ops:vararg
LOCAL ss0a, ss0b
inner_iters = memarea / (memused)
outer_iters = 10000 / inner_iters
odd_iters = 10000 - inner_iters * outer_iters
IF odd_iters EQ 0
odd_iters = inner_iters
ELSE
outer_iters = outer_iters + 1
ENDIF
lab: mov rbx, 0 ;; Offset for some sse2 macros (s.b. non-zero for with_mult macros)
mov rbp, 524288+256 ;; Offset for mulf sse2 macros
mov eax, outer_iters
mov ecx, odd_iters
mov SRCARG, rdi ;; Save work buf addr
ss0a: mov rdi, SRCARG ;; Reload work buf addr (sincos data)
lea rsi, [rdi+262144+4096+64] ;; Source & dest ptr
lea rdx, [rsi+524288+256] ;; Destination for "g" macros
ss0b: &ops
IF memused NE 192
lea rdi, [rdi+2*XMM_SCD] ;; Next sine/cosine pointer
ELSE
lea rdi, [rdi+XMM_SCD1] ;; Next sine/cosine pointer
ENDIF
dec ecx
jnz ss0b
mov ecx, inner_iters
dec eax
jnz ss0a
jmp exit
ENDM
sse2macbx MACRO lab, memused, memarea, ops:vararg
LOCAL ss0a, ss0b
inner_iters = memarea / (memused)
outer_iters = 10000 / inner_iters
odd_iters = 10000 - inner_iters * outer_iters
IF odd_iters EQ 0
odd_iters = inner_iters
ELSE
outer_iters = outer_iters + 1
ENDIF
lab: mov rbx, 262144+128 ;; Offset for some sse2 macros (s.b. non-zero for with_mult macros)
mov rbp, 524288+256 ;; Offset for mulf sse2 macros
mov eax, outer_iters
mov ecx, odd_iters
mov SRCARG, rdi ;; Save work buf addr
ss0a: mov rdi, SRCARG ;; Reload work buf addr (sincos data)
lea rsi, [rdi+262144+4096+64] ;; Source & dest ptr
lea rdx, [rsi+524288+256] ;; Destination for "g" macros
ss0b: &ops
IF memused NE 192
lea rdi, [rdi+2*XMM_SCD] ;; Next sine/cosine pointer
ELSE
lea rdi, [rdi+XMM_SCD1] ;; Next sine/cosine pointer
ENDIF
dec ecx
jnz ss0b
mov ecx, inner_iters
dec eax
jnz ss0a
jmp exit
ENDM
avxmac MACRO memused, memarea, rdi_incr, ops:vararg
LOCAL avxlabel
avxlabel CATSTR <avcase>,%avx_case_num
avx_case_num = avx_case_num + 1
avxmac1 avxlabel, memused, memarea, rdi_incr, ops
ENDM
avxmac1 MACRO lab, memused, memarea, rdi_incr, ops:vararg
LOCAL av00, av0a, av0b
inner_iters = memarea / (memused)
outer_iters = 10000 / inner_iters
odd_iters = 10000 - inner_iters * outer_iters
IF odd_iters EQ 0
odd_iters = inner_iters
ELSE
outer_iters = outer_iters + 1
ENDIF
lab: mov rbx, 0 ;; Offset for some avx macros (s.b. non-zero for with_mult macros)
mov rbp, 524288+256 ;; Offset for mulf avx macros
mov eax, outer_iters
mov ecx, odd_iters
IFDEF X86_64
mov r8, 0 ;; yr4 and yr8 macros use this for optional distance between the two destination registers
ENDIF
mov SRCARG, rdi ;; Save work buf addr
av0a: mov rdi, SRCARG ;; Reload work buf addr (sincos data)
lea rsi, [rdi+262144+4096+64] ;; Source & dest ptr
lea rdx, [rsi+524288+256] ;; Destination for "g" macros
av0b: &ops
bump rdi, rdi_incr ;; Next sine/cosine pointer
dec ecx
jnz av0b
mov ecx, inner_iters
dec eax
jnz av0a
jmp exit
ENDM
avxmacbx MACRO memused, memarea, rdi_incr, ops:vararg
LOCAL avxlabel
avxlabel CATSTR <avcase>,%avx_case_num
avx_case_num = avx_case_num + 1
avxmacbx1 avxlabel, memused, memarea, rdi_incr, ops
ENDM
avxmacbx1 MACRO lab, memused, memarea, rdi_incr, ops:vararg
LOCAL av0a, av0b
inner_iters = memarea / (memused)
outer_iters = 10000 / inner_iters
odd_iters = 10000 - inner_iters * outer_iters
IF odd_iters EQ 0
odd_iters = inner_iters
ELSE
outer_iters = outer_iters + 1
ENDIF
lab: mov rbx, 262144+128 ;; Offset for some sse2 macros (s.b. non-zero for with_mult macros)
mov rbp, 524288+256 ;; Offset for mulf sse2 macros
mov eax, outer_iters
mov ecx, odd_iters
mov SRCARG, rdi ;; Save work buf addr
av0a: mov rdi, SRCARG ;; Reload work buf addr (sincos data)
lea rsi, [rdi+262144+4096+64] ;; Source & dest ptr
lea rdx, [rsi+524288+256] ;; Destination for "g" macros
av0b: &ops
bump rdi, rdi_incr ;; Next sine/cosine pointer
dec ecx
jnz av0b
mov ecx, inner_iters
dec eax
jnz av0a
jmp exit
ENDM
ynormmac MACRO memused, memarea, ops:vararg
LOCAL avxlabel
avxlabel CATSTR <avcase>,%avx_case_num
avx_case_num = avx_case_num + 1
ynormmac1 avxlabel, memused, memarea, ops
ENDM
ynormmac1 MACRO lab, memused, memarea, ops:vararg
LOCAL av00, av0a, av0b
inner_iters = memarea / (memused)
outer_iters = 10000 / inner_iters
odd_iters = 10000 - inner_iters * outer_iters
IF odd_iters EQ 0
odd_iters = inner_iters
ELSE
outer_iters = outer_iters + 1
ENDIF
lab: mov edx, outer_iters
mov ebx, odd_iters
mov SRCARG, rdi ;; Save work buf addr
av0a: mov rsi, SRCARG ;; Reload work buf addr (FFT data)
lea rbp, [rsi+524288+256] ;; Addr of the multipliers
; mov rdi, norm_biglit_array ;; Addr of the big/little flags array
lea rdi, [rsi+5000000]
av0b: &ops
bump rsi, 64 ;; Next cache line
bump rbp, 128 ;; Next set of 8 multipliers
bump rdi, 2 ;; Next big/little flags
dec ebx
jnz av0b
mov ebx, inner_iters
dec edx
jnz av0a
jmp exit
ENDM
ynormwpnmac MACRO memused, memarea, ops:vararg
LOCAL avxlabel
avxlabel CATSTR <avcase>,%avx_case_num
avx_case_num = avx_case_num + 1
ynormwpnmac1 avxlabel, memused, memarea, ops
ENDM
ynormwpnmac1 MACRO lab, memused, memarea, ops:vararg
LOCAL av00, av0a, av0b
inner_iters = memarea / (memused)
outer_iters = 10000 / inner_iters
odd_iters = 10000 - inner_iters * outer_iters
IF odd_iters EQ 0
odd_iters = inner_iters
ELSE
outer_iters = outer_iters + 1
ENDIF
lab:
mov COPYZERO, outer_iters
mov ebp, odd_iters
mov SRCARG, rdi ;; Save work buf addr
av0a: mov rsi, SRCARG ;; Reload work buf addr (FFT data)
mov rdx, norm_grp_mults ;; Addr of the group multipliers
mov rdi, norm_biglit_array ;; Addr of the big/little flags array
IFDEF X86_64
lea r9, [rdx+2*YMM_GMD] ;; Prefetch pointer for group multipliers
ENDIF
movzx rbx, WORD PTR [rdi] ;; Preload 4 big vs. little & fudge flags
av0b: &ops
bump rsi, 64 ;; Next cache line
bump rdi, 2 ;; Next big/little flags
; bump rdx, 2*YMM_GMD ;; Next set of group multipliers
bump rdx, 64
dec rbp
jnz av0b
mov ebp, inner_iters
dec COPYZERO
jnz av0a
jmp exit
ENDM
IFNDEF X86_64
ynormwpn4mac MACRO memused, memarea, ops:vararg
ynormwpnmac memused, memarea, ops
ENDM
ELSE
ynormwpn4mac MACRO memused, memarea, ops:vararg
LOCAL avxlabel
avxlabel CATSTR <avcase>,%avx_case_num
avx_case_num = avx_case_num + 1
ynormwpn4mac1 avxlabel, memused, memarea, ops
ENDM
ynormwpn4mac1 MACRO lab, memused, memarea, ops:vararg
LOCAL av00, av0a, av0b
inner_iters = memarea / (memused)
outer_iters = 10000 / inner_iters
odd_iters = 10000 - inner_iters * outer_iters
IF odd_iters EQ 0
odd_iters = inner_iters
ELSE
outer_iters = outer_iters + 1
ENDIF
lab:
mov COPYZERO, outer_iters
mov ebp, odd_iters
mov SRCARG, rdi ;; Save work buf addr
av0a: mov rsi, SRCARG ;; Reload work buf addr (FFT data)
lea r13, [rsi+8192+256] ;; Source ptr #2
mov r12, norm_grp_mults ;; Addr of the group multipliers
lea r15, [r12+2*YMM_GMD] ;; Addr of the group multipliers #2
lea r9, [r15+2*YMM_GMD] ;; Prefetch pointer for group multipliers
mov rdi, norm_biglit_array ;; Addr of the big/little flags array
lea r14, [rdi+4096+128] ;; Addr of the big/little flags array #2
movzx rbx, WORD PTR [rdi] ;; Preload 4 big vs. little & fudge flags
movzx rcx, WORD PTR [r14] ;; Preload 4 big vs. little & fudge flags
av0b: &ops
bump rsi, 64 ;; Next cache line
bump rdi, 2 ;; Next big/little flags
bump r13, 64 ;; Next cache line
bump r14, 2 ;; Next big/little flags
; bump r12, 4*YMM_GMD ;; Next set of group multipliers
bump r12, 64
bump r15, 64
dec rbp
jnz av0b
mov ebp, inner_iters
dec COPYZERO
jnz av0a
jmp exit
ENDM
ENDIF
avx512mac MACRO memused, memarea, rdi_incr, ops:vararg
LOCAL avx512label
avx512label CATSTR <av512case>,%avx512_case_num
avx512mac1 avx512label, memused, memarea, rdi_incr, ops
avx512_case_num = avx512_case_num + 1
ENDM
avx512mac1 MACRO lab, memused, memarea, rdi_incr, ops:vararg
LOCAL av00, av0a, av0b
inner_iters = memarea / (memused)
outer_iters = 10000 / inner_iters
odd_iters = 10000 - inner_iters * outer_iters
IF odd_iters EQ 0
odd_iters = inner_iters
ELSE
outer_iters = outer_iters + 1
ENDIF
lab: mov rbx, 0 ;; Offset for some avx macros (s.b. non-zero for with_mult macros)
mov rbp, 524288+256 ;; Offset for mulf avx macros
mov r12, norm_grp_mults
mov r13, r12
IF (avx512_case_num GE 108 AND avx512_case_num LT 116)
mov r8, 128 ;; d1reg for "rsc" macros
mov r9, 384 ;; d3reg for "rsc" macros
ELSE
mov r8, 0 ;; zr64 macros use this for optional distance between the two destination registers
mov r9, 0 ;; unused by any macro
ENDIF
mov eax, outer_iters
mov ecx, odd_iters
mov SRCARG, rdi ;; Save work buf addr
av0a: mov rdi, SRCARG ;; Reload work buf addr (sincos data)
lea rsi, [rdi+262144+4096+64] ;; Source & dest ptr
lea rdx, [rsi+524288+8192+256] ;; Destination for "rsc" macros
lea r10, [rdx+512] ;; src4reg/dst4reg for "rsc" macros
lea r15, [rdx+262144+256+64] ;; s/c data for first macros
IF avx512_case_num-1 EQ IACA_TEST_CASE
IACA_START
ENDIF
av0b: &ops
bump rdi, rdi_incr ;; Next sine/cosine pointer
dec ecx
jnz av0b
IF avx512_case_num-1 EQ IACA_TEST_CASE
IACA_END
ENDIF
mov ecx, inner_iters
dec eax
jnz av0a
jmp exit
ENDM
avx512znormmac MACRO memused, memarea, rdi_incr, ops:vararg
LOCAL avx512label
avx512label CATSTR <av512case>,%avx512_case_num
avx512_case_num = avx512_case_num + 1
avx512znormmac1 avx512label, memused, memarea, rdi_incr, ops
ENDM
avx512znormmac1 MACRO lab, memused, memarea, rdi_incr, ops:vararg
LOCAL av00, av0a, av0b
inner_iters = memarea / (memused)
outer_iters = 10000 / inner_iters
odd_iters = 10000 - inner_iters * outer_iters
IF odd_iters EQ 0
odd_iters = inner_iters
ELSE
outer_iters = outer_iters + 1
ENDIF
lab: mov rbx, 0 ;; Offset for some avx macros (s.b. non-zero for with_mult macros)
mov rbp, 524288+256 ;; Offset for mulf avx macros
mov r12, norm_grp_mults
mov r13, r12
mov eax, outer_iters
mov ecx, odd_iters
mov SRCARG, rdi ;; Save work buf addr
av0a: mov rdi, SRCARG ;; Reload work buf addr (sincos data)
lea rsi, [rdi+262144+4096+64] ;; Source & dest ptr
mov r14, 262144+4096+64
lea r13, [rsi+r14*2]
lea r8, [rdi+4096]
lea r10, [r8+4096+64]
sub rdx, rdx
IF avx512_case_num-1 EQ IACA_TEST_CASE
IACA_START
ENDIF
av0b: &ops
bump rsi, 128
bump r13, 128
bump rdi, 1
dec ecx
jnz av0b
IF avx512_case_num-1 EQ IACA_TEST_CASE
IACA_END
ENDIF
mov ecx, inner_iters
dec eax
jnz av0a
jmp exit
ENDM
do2 MACRO ops:vararg
&ops
&ops
ENDM
do5 MACRO ops:vararg
do2 &ops
do2 &ops
&ops
ENDM
do10 MACRO ops:vararg
do2 do5 &ops
ENDM
fiveclocks MACRO
vaddpd ymm0, ymm0, ymm0
vaddpd ymm1, ymm1, ymm1
vaddpd ymm2, ymm2, ymm2
vaddpd ymm3, ymm3, ymm3
vaddpd ymm4, ymm4, ymm4
vaddpd ymm5, ymm5, ymm5
vaddpd ymm6, ymm6, ymm6
vaddpd ymm7, ymm7, ymm7
vaddpd ymm8, ymm8, ymm8
vaddpd ymm9, ymm9, ymm9
ENDM
tenclocks MACRO
fiveclocks
fiveclocks
ENDM
hundredclocks MACRO
do10 tenclocks
ENDM
fiveclocks512 MACRO
vaddpd zmm0, zmm0, zmm0
vaddpd zmm1, zmm1, zmm1
vaddpd zmm2, zmm2, zmm2
vaddpd zmm3, zmm3, zmm3
vaddpd zmm4, zmm4, zmm4
vaddpd zmm5, zmm5, zmm5
vaddpd zmm6, zmm6, zmm6
vaddpd zmm7, zmm7, zmm7
vaddpd zmm8, zmm8, zmm8
vaddpd zmm9, zmm9, zmm9
ENDM
tenclocks512 MACRO
fiveclocks512
fiveclocks512
ENDM
hundredclocks512 MACRO
do10 tenclocks512
ENDM
_TEXT SEGMENT
x87table: looptab case, X87_CASES
sse2table: looptab sscase, SSE2_CASES
avxtable: looptab avcase, AVX_CASES
avx512table: looptab av512case, AVX512_CASES
; gwtimeit (asm_data)
; Time a mini benchmark
; Windows 32-bit (_gwtimeit)
; Linux 32-bit (gwtimeit)
; Parameter asm_data = [esp+4]
; Windows 64-bit (gwtimeit)
; Parameter asm_data = rcx
; Linux 64-bit (gwtimeit)
; Parameter asm_data = rdi
PROCFL gwtimeit
ad_prolog 0,0,rbx,rbp,rsi,rdi,r8,r9,r10,r11,r12,r13,r14,r15,xmm6,xmm7,xmm8,xmm9,xmm10,xmm11,xmm12,xmm13,xmm14,xmm15
mov rdi, PPTR [AD_BASE] ; Load work buf address
mov rsi, rdi
mov edx, DPTR [AD_BASE+8] ; Load n (which test to run)
sub ebx, ebx ; Clear registers
sub ecx, ecx
sub ebp, ebp
mov eax, X87_CASES
cmp edx, -1 ; -1 = get num x87 cases
je exit
mov eax, SSE2_CASES
cmp edx, -2 ; -2 = get num sse2 cases
je exit
mov eax, AVX_CASES
cmp edx, -3 ; -3 = get num avx cases
je exit
mov eax, AVX512_CASES
cmp edx, -4 ; -4 = get num avx512 cases
je exit
cmp edx, 1000 ; Tests below 1000 are x87 code
jl x87
cmp edx, 2000 ; Tests below 2000 are SSE2 code
jl short sse2
cmp edx, 3000 ; Tests below 3000 are AVX code
jl short avx
; Init registers and jump to desired AVX test case
vzeroall ; Clear ZMM registers
sub rdx, 3000
mov rax, OFFSET avx512table
mov rax, [rax+rdx*SZPTR]; Get address of test to execute
jmp rax
; Init registers and jump to desired AVX test case
avx: vzeroall ; Clear YMM registers
sub rdx, 2000
mov rax, OFFSET avxtable
mov rax, [rax+rdx*SZPTR]; Get address of test to execute
jmp rax
; Init registers and jump to desired SSE2 test case
sse2: subpd xmm0, xmm0 ; Clear XMM registers
subpd xmm1, xmm1
subpd xmm2, xmm2
subpd xmm3, xmm3
subpd xmm4, xmm4
subpd xmm5, xmm5
subpd xmm6, xmm6
subpd xmm7, xmm7
IFDEF X86_64
subpd xmm8, xmm8
subpd xmm9, xmm9
subpd xmm10, xmm10
subpd xmm11, xmm11
subpd xmm12, xmm12
subpd xmm13, xmm13
subpd xmm14, xmm14
subpd xmm15, xmm15
ENDIF
sub rdx, 1000
mov rax, OFFSET sse2table
mov rax, [rax+rdx*SZPTR]; Get address of test to execute
jmp rax
; Jump to desired x87 test case
x87: mov rax, OFFSET x87table
mov rax, [rax+rdx*SZPTR]; Get address of test to execute
jmp rax
; Time the "do-nothing" case.
IFNDEF X86_64
case0:
jmp exit
; Time the loop of "do-nothing" case. 1000 iterations.
case1:
mov ecx, 1000
c1a: dec ecx
jnz c1a
jmp exit
; This code reads a contiguous block of memory.
; Timings are done on 3 memory size. 4KB will read from the L1 cache
; only, 96KB will read from the L2 cache only, and 2MB will test reading
; from main memory.
case2: read1 4096, 1000 ; Read 4KB
jmp exit
case3: read1 96*1024, 100 ; Read 96KB
jmp exit
case4: read1 2048*1024, 2 ; Read 2MB
jmp exit
case5: x87mac 64, 4096, eight_reals_fft, 8, 16, 32
jmp exit
case6: x87mac 64, 100000, eight_reals_fft, 8, 16, 32
jmp exit
case7: x87mac 64, 4096, eight_reals_unfft, 8, 16, 32
jmp exit
case8: x87mac 64, 100000, eight_reals_unfft, 8, 16, 32
jmp exit
case9: x87mac 64, 4096, four_complex_fft, 8, 16, 32
jmp exit
case10: x87mac 64, 100000, four_complex_fft, 8, 16, 32
jmp exit
case11: x87mac 64, 4096, four_complex_unfft, 8, 16, 32
jmp exit
case12: x87mac 64, 100000, four_complex_unfft, 8, 16, 32
jmp exit
ENDIF
; This code reads a contiguous block of memory.
; Timings are done on 3 memory size. 4KB will read from the L1 cache
; only, 96KB will read from the L2 cache only, and 32MB will test reading
; from main memory.
sscase0:
read2 4096, 1000 ; Read 4KB
jmp exit
sscase1:
read2 96*1024, 100 ; Read 96KB
jmp exit
sscase2:
read2 32768*1024, 2 ; Read 32MB
jmp exit
; This code writes a contiguous block of memory.
; Timings are done on 3 memory size. 4KB will write to the L1 cache
; only, 96KB will write to L2 cache only, and 32MB will test writing
; to main memory.
sscase3:
write1 4096, 1000 ; Write 4KB
jmp exit
sscase4:
write1 96*1024, 100 ; Write 96KB
jmp exit
sscase5:
write1 32768*1024, 2 ; Write 32MB
jmp exit
; This code writes a block of memory non-contiguously.
; Timings are done on 3 memory size. 4KB will write to the L1 cache
; only, 96KB will write to L2 cache only, and 32MB will test writing
; to main memory.
sscase6:
write2 4096, 1000 ; Read 4KB
jmp exit
sscase7:
write2 96*1024, 100 ; Read 96KB
jmp exit
sscase8:
write2 32768*1024, 2 ; Read 32MB
jmp exit
; This code reads & writes a block of memory.
; Timings are done on 3 memory size. 4KB will write to the L1 cache
; only, 96KB will write to L2 cache only, and 32MB will test writing
; to main memory.
sscase9:
readwrite1 4096, 1000 ; Read 4KB
jmp exit
sscase10:
readwrite1 96*1024, 100 ; Read 96KB
jmp exit
sscase11:
readwrite1 32768*1024, 2 ; Read 32MB
jmp exit
; Time ~10000 iterations of the SSE2 macros in L1 and L2 caches
sse2mac sscase12, 128, 4096, x2cl_eight_reals_fft rsi, 2*64, 64
sse2mac sscase13, 128, 100000, x2cl_eight_reals_fft rsi, 2*64, 64
sse2mac sscase14, 128, 4096, x2cl_eight_reals_first_fft rsi, 2*64, 64
sse2mac sscase15, 128, 100000, x2cl_eight_reals_first_fft rsi, 2*64, 64
sse2mac sscase16, 128, 4096, x2cl_eight_reals_fft_2 rsi, 2*64, 64
sse2mac sscase17, 128, 100000, x2cl_eight_reals_fft_2 rsi, 2*64, 64
sse2mac sscase18, 128, 4096, x2cl_eight_reals_fft_1 rsi, 2*64, 64
sse2mac sscase19, 128, 100000, x2cl_eight_reals_fft_1 rsi, 2*64, 64
sse2mac sscase20, 128, 4096, s2cl_eight_reals_first_fft rsi, 2*64, 64
sse2mac sscase21, 128, 100000, s2cl_eight_reals_first_fft rsi, 2*64, 64
sse2mac sscase22, 128, 4096, s2cl_eight_reals_fft_1 rsi, 2*64, 64
sse2mac sscase23, 128, 100000, s2cl_eight_reals_fft_1 rsi, 2*64, 64
sse2mac sscase24, 128, 4096, s2cl_eight_reals_with_square_2 rsi, 2*64, 64
sse2mac sscase25, 128, 100000, s2cl_eight_reals_with_square_2 rsi, 2*64, 64
sse2mac sscase26, 128, 4096, s2cl_eight_reals_fft_2_final rsi, 2*64, 64
sse2mac sscase27, 128, 100000, s2cl_eight_reals_fft_2_final rsi, 2*64, 64
sse2mac sscase28, 128, 4096, s2cl_eight_reals_with_square_2 rsi, 2*64, 64
sse2mac sscase29, 128, 100000, s2cl_eight_reals_with_square_2 rsi, 2*64, 64
sse2macbx sscase30, 128, 4096, s2cl_eight_reals_with_mult_2 rsi, 2*64, 64
sse2macbx sscase31, 128, 100000, s2cl_eight_reals_with_mult_2 rsi, 2*64, 64
sse2macbx sscase32, 128, 4096, s2cl_eight_reals_with_mulf_2 rsi, 2*64, 64
sse2macbx sscase33, 128, 100000, s2cl_eight_reals_with_mulf_2 rsi, 2*64, 64
sse2mac sscase34, 256, 4096, x4cl_eight_reals_fft_2 rsi, 4*64, 64, 2*64, rdi
sse2mac sscase35, 256, 100000, x4cl_eight_reals_fft_2 rsi, 4*64, 64, 2*64, rdi
sse2mac sscase36, 256, 4096, g4cl_eight_reals_fft_2 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64
sse2mac sscase37, 256, 100000, g4cl_eight_reals_fft_2 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64
sse2mac sscase38, 128, 4096, x2cl_eight_reals_unfft_2 rsi, 2*64, 64
sse2mac sscase39, 128, 100000, x2cl_eight_reals_unfft_2 rsi, 2*64, 64
sse2mac sscase40, 128, 4096, x2cl_half_eight_reals_unfft_2 rsi, 2*64, 64
sse2mac sscase41, 128, 100000, x2cl_half_eight_reals_unfft_2 rsi, 2*64, 64
sse2mac sscase42, 128, 4096, g2cl_eight_reals_unfft_2 rsi, 2*64, 64, rdx, 2*64, 64
sse2mac sscase43, 128, 100000, g2cl_eight_reals_unfft_2 rsi, 2*64, 64, rdx, 2*64, 64
sse2mac sscase44, 256, 4096, x4cl_eight_reals_last_unfft rsi, 4*64, 64, 2*64
sse2mac sscase45, 256, 100000, x4cl_eight_reals_last_unfft rsi, 4*64, 64, 2*64
sse2mac sscase46, 256, 4096, x4cl_eight_reals_unfft_2 rsi, 4*64, 64, 2*64
sse2mac sscase47, 256, 100000, x4cl_eight_reals_unfft_2 rsi, 4*64, 64, 2*64
sse2mac sscase48, 256, 4096, s4cl_eight_reals_unfft_1 rsi, 4*64, 64, 2*64
sse2mac sscase49, 256, 100000, s4cl_eight_reals_unfft_1 rsi, 4*64, 64, 2*64
sse2mac sscase50, 128, 4096, x2cl_two_complex_fft rsi, 2*64, 64, rdi
sse2mac sscase51, 128, 100000, x2cl_two_complex_fft rsi, 2*64, 64, rdi
sse2mac sscase52, 128, 4096, x2cl_two_complex_fft_in_place rsi, 2*64, 64, rdi
sse2mac sscase53, 128, 100000, x2cl_two_complex_fft_in_place rsi, 2*64, 64, rdi
sse2mac sscase54, 128, 4096, x2cl_two_complex_unfft rsi, 2*64, 64
sse2mac sscase55, 128, 100000, x2cl_two_complex_unfft rsi, 2*64, 64
sse2mac sscase56, 128, 4096, x2cl_four_complex_fft rsi, 2*64, 64
sse2mac sscase57, 128, 100000, x2cl_four_complex_fft rsi, 2*64, 64
sse2mac sscase58, 128, 4096, x2cl_four_complex_first_fft rsi, 2*64, 64
sse2mac sscase59, 128, 100000, x2cl_four_complex_first_fft rsi, 2*64, 64
sse2mac sscase60, 128, 4096, s2cl_four_complex_gpm_fft rsi, 2*64, 64
sse2mac sscase61, 128, 100000, s2cl_four_complex_gpm_fft rsi, 2*64, 64
sse2mac sscase62, 128, 4096, s2cl_four_complex_first_fft rsi, 2*64, 64
sse2mac sscase63, 128, 100000, s2cl_four_complex_first_fft rsi, 2*64, 64
sse2mac sscase64, 128, 4096, s2cl_four_complex_fft_final rsi, 2*64, 64
sse2mac sscase65, 128, 100000, s2cl_four_complex_fft_final rsi, 2*64, 64
sse2mac sscase66, 128, 4096, s2cl_four_complex_with_square rsi, 2*64, 64
sse2mac sscase67, 128, 100000, s2cl_four_complex_with_square rsi, 2*64, 64
sse2macbx sscase68, 128, 4096, s2cl_four_complex_with_mult rsi, 2*64, 64
sse2macbx sscase69, 128, 100000, s2cl_four_complex_with_mult rsi, 2*64, 64
sse2macbx sscase70, 128, 4096, s2cl_four_complex_with_mulf rsi, 2*64, 64
sse2macbx sscase71, 128, 100000, s2cl_four_complex_with_mulf rsi, 2*64, 64
sse2mac sscase72, 256, 4096, x4cl_four_complex_fft rsi, 4*64, 64, 2*64, rdi
sse2mac sscase73, 256, 100000, x4cl_four_complex_fft rsi, 4*64, 64, 2*64, rdi
sse2mac sscase74, 256, 4096, x4cl_four_complex_cpm_fft rsi, 4*64, 64, 2*64, 0
sse2mac sscase75, 256, 100000, x4cl_four_complex_cpm_fft rsi, 4*64, 64, 2*64, 0
sse2mac sscase76, 256, 4096, g4cl_four_complex_fft rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64
sse2mac sscase77, 256, 100000, g4cl_four_complex_fft rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64
sse2mac sscase78, 256, 4096, x4cl_four_complex_with_square rsi, 4*64, 64, 2*64
sse2mac sscase79, 256, 100000, x4cl_four_complex_with_square rsi, 4*64, 64, 2*64
sse2macbx sscase80, 256, 4096, x4cl_four_complex_with_mult rsi, 4*64, 64, 2*64
sse2macbx sscase81, 256, 100000, x4cl_four_complex_with_mult rsi, 4*64, 64, 2*64
sse2macbx sscase82, 256, 4096, x4cl_four_complex_with_mulf rsi, 4*64, 64, 2*64
sse2macbx sscase83, 256, 100000, x4cl_four_complex_with_mulf rsi, 4*64, 64, 2*64
sse2mac sscase84, 128, 4096, x2cl_four_complex_unfft rsi, 2*64, 64
sse2mac sscase85, 128, 100000, x2cl_four_complex_unfft rsi, 2*64, 64
sse2mac sscase86, 128, 4096, g2cl_four_complex_unfft rsi, 2*64, 64, rdx, 2*64, 64
sse2mac sscase87, 128, 100000, g2cl_four_complex_unfft rsi, 2*64, 64, rdx, 2*64, 64
sse2mac sscase88, 256, 4096, x4cl_four_complex_unfft rsi, 4*64, 64, 2*64, rdi
sse2mac sscase89, 256, 100000, x4cl_four_complex_unfft rsi, 4*64, 64, 2*64, rdi
sse2mac sscase90, 256, 4096, x4cl_four_complex_last_unfft rsi, 4*64, 64, 2*64, 0
sse2mac sscase91, 256, 100000, x4cl_four_complex_last_unfft rsi, 4*64, 64, 2*64, 0
sse2mac sscase92, 256, 4096, s4cl_four_complex_gpm_unfft rsi, 4*64, 64, 2*64, 0
sse2mac sscase93, 256, 100000, s4cl_four_complex_gpm_unfft rsi, 4*64, 64, 2*64, 0
sse2mac sscase94, 256, 4096, x4cl_four_complex_cpm_unfft rsi, 4*64, 64, 2*64
sse2mac sscase95, 256, 100000, x4cl_four_complex_cpm_unfft rsi, 4*64, 64, 2*64
sse2mac sscase96, 192, 4096, x3cl_six_reals_first_fft rsi, 3*64, 64
sse2mac sscase97, 192, 100000, x3cl_six_reals_first_fft rsi, 3*64, 64
sse2mac sscase98, 192, 4096, g3cl_six_reals_first_fft rsi, 3*64, 64, rdx, 3*64, 64
sse2mac sscase99, 192, 100000, g3cl_six_reals_first_fft rsi, 3*64, 64, rdx, 3*64, 64
sse2mac sscase100, 192, 4096, s3cl_six_reals_first_fft rsi, 3*64, 64
sse2mac sscase101, 192, 100000, s3cl_six_reals_first_fft rsi, 3*64, 64
sse2mac sscase102, 192, 4096, x3cl_six_reals_last_unfft rsi, 3*64, 64
sse2mac sscase103, 192, 100000, x3cl_six_reals_last_unfft rsi, 3*64, 64
sse2mac sscase104, 192, 4096, x3cl_three_complex_first_fft rsi, 3*64, 64
sse2mac sscase105, 192, 100000, x3cl_three_complex_first_fft rsi, 3*64, 64
sse2mac sscase106, 192, 4096, s3cl_three_complex_first_fft rsi, 3*64, 64
sse2mac sscase107, 192, 100000, s3cl_three_complex_first_fft rsi, 3*64, 64
sse2mac sscase108, 192, 4096, x3cl_three_complex_last_unfft rsi, 3*64, 64
sse2mac sscase109, 192, 100000, x3cl_three_complex_last_unfft rsi, 3*64, 64
sse2mac sscase110, 320, 4096, x5cl_five_reals_first_fft rsi, 5*64, 64
sse2mac sscase111, 320, 100000, x5cl_five_reals_first_fft rsi, 5*64, 64
sse2mac sscase112, 320, 4096, g5cl_five_reals_first_fft rsi, 5*64, 64, rdx, 5*64, 64
sse2mac sscase113, 320, 100000, g5cl_five_reals_first_fft rsi, 5*64, 64, rdx, 5*64, 64
sse2mac sscase114, 320, 4096, s5cl_five_reals_first_fft rsi, 5*64, 64
sse2mac sscase115, 320, 100000, s5cl_five_reals_first_fft rsi, 5*64, 64
sse2mac sscase116, 320, 4096, x5cl_five_reals_last_unfft rsi, 5*64, 64
sse2mac sscase117, 320, 100000, x5cl_five_reals_last_unfft rsi, 5*64, 64
sse2mac sscase118, 448, 4096, x7cl_seven_reals_first_fft rsi, 7*64, 64
sse2mac sscase119, 448, 100000, x7cl_seven_reals_first_fft rsi, 7*64, 64
sse2mac sscase120, 448, 4096, g7cl_seven_reals_first_fft rsi, 7*64, 64, rdx, 7*64, 64
sse2mac sscase121, 448, 100000, g7cl_seven_reals_first_fft rsi, 7*64, 64, rdx, 7*64, 64
sse2mac sscase122, 448, 4096, s7cl_seven_reals_first_fft rsi, 7*64, 64
sse2mac sscase123, 448, 100000, s7cl_seven_reals_first_fft rsi, 7*64, 64
sse2mac sscase124, 448, 4096, x7cl_seven_reals_last_unfft rsi, 7*64, 64
sse2mac sscase125, 448, 100000, x7cl_seven_reals_last_unfft rsi, 7*64, 64
sse2mac sscase126, 256, 4096, x4cl_empty rsi, 4*64, 64, 2*64, rdi, 0
sse2mac sscase127, 256, 100000, x4cl_empty rsi, 4*64, 64, 2*64, rdi, 0
sse2mac sscase128, 256, 4096, g4cl_empty rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, 0
sse2mac sscase129, 256, 100000, g4cl_empty rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, 0
sse2mac sscase130, 256, 4096, g4cl_empty_nt rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, 0
sse2mac sscase131, 256, 100000, g4cl_empty_nt rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, 0
sse2mac sscase132, 128, 4096, r4_x2cl_four_complex_first_fft4_scratch rsi, 2*64, 64, rdi
sse2mac sscase133, 128, 100000, r4_x2cl_four_complex_first_fft4_scratch rsi, 2*64, 64, rdi
sse2mac sscase134, 256, 4096, r4_x4cl_four_complex_last_unfft4 rsi, 4*64, 64, 2*64, rdi, 0
sse2mac sscase135, 256, 100000, r4_x4cl_four_complex_last_unfft4 rsi, 4*64, 64, 2*64, rdi, 0
sse2mac sscase136, 256, 4096, r4_x4cl_four_complex_fft_final rsi, 4*64, 64, 2*64
sse2mac sscase137, 256, 100000, r4_x4cl_four_complex_fft_final rsi, 4*64, 64, 2*64
sse2mac sscase138, 256, 4096, r4_x4cl_four_complex_with_square rsi, 4*64, 64, 2*64
sse2mac sscase139, 256, 100000, r4_x4cl_four_complex_with_square rsi, 4*64, 64, 2*64
sse2macbx sscase140, 256, 4096, r4_x4cl_four_complex_with_mult rsi, 4*64, 64, 2*64
sse2macbx sscase141, 256, 100000, r4_x4cl_four_complex_with_mult rsi, 4*64, 64, 2*64
sse2macbx sscase142, 256, 4096, r4_x4cl_four_complex_with_mulf rsi, 4*64, 64, 2*64
sse2macbx sscase143, 256, 100000, r4_x4cl_four_complex_with_mulf rsi, 4*64, 64, 2*64
sse2mac sscase144, 128, 4096, r2_x2cl_two_complex_fft rsi, 2*64, 64, rdi
sse2mac sscase145, 128, 100000, r2_x2cl_two_complex_fft rsi, 2*64, 64, rdi
sse2mac sscase146, 128, 4096, r2_x2cl_two_complex_unfft rsi, 2*64, 64, rdi, 0
sse2mac sscase147, 128, 100000, r2_x2cl_two_complex_unfft rsi, 2*64, 64, rdi, 0
sse2mac sscase148, 128, 4096, r4_x2cl_four_complex_first_djbfft_scratch rsi, 2*64, 64, rdi, rdi
sse2mac sscase149, 128, 100000, r4_x2cl_four_complex_first_djbfft_scratch rsi, 2*64, 64, rdi, rdi
sse2mac sscase150, 256, 4096, r4_x4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi
sse2mac sscase151, 256, 100000, r4_x4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi
sse2mac sscase152, 256, 4096, r4_x4cl_wpn_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi
sse2mac sscase153, 256, 100000, r4_x4cl_wpn_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi
sse2mac sscase154, 256, 4096, r4_sg4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi
sse2mac sscase155, 256, 100000, r4_sg4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi
sse2macbx sscase156, 128, 4096, r4_f2cl_four_complex_djbfft rsi, 2*64, 64, rdi
sse2macbx sscase157, 128, 100000, r4_f2cl_four_complex_djbfft rsi, 2*64, 64, rdi
sse2mac sscase158, 256, 4096, r4_x4cl_four_complex_last_djbunfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, 0
sse2mac sscase159, 256, 100000, r4_x4cl_four_complex_last_djbunfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, 0
sse2mac sscase160, 256, 4096, r4_x4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, 0
sse2mac sscase161, 256, 100000, r4_x4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, 0
sse2mac sscase162, 256, 4096, r4_x4cl_wpn_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, 0
sse2mac sscase163, 256, 100000, r4_x4cl_wpn_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, 0
sse2mac sscase164, 128, 4096, r4_sg2cl_four_complex_djbunfft rsi, 2*64, 64, rdx, 2*64, 64, rdi
sse2mac sscase165, 128, 100000, r4_sg2cl_four_complex_djbunfft rsi, 2*64, 64, rdx, 2*64, 64, rdi
sse2mac sscase166, 256, 4096, r4_sg4cl_four_complex_fft4 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi
sse2mac sscase167, 256, 100000, r4_sg4cl_four_complex_fft4 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi
sse2mac sscase168, 128, 4096, r4_sg2cl_four_complex_unfft4 rsi, 2*64, 64, rdx, 2*64, 64, rdi
sse2mac sscase169, 128, 100000, r4_sg2cl_four_complex_unfft4 rsi, 2*64, 64, rdx, 2*64, 64, rdi
sse2mac sscase170, 128, 4096, r4_x2cl_eight_reals_first_fft_scratch rsi, 2*64, 64, rdi
sse2mac sscase171, 128, 100000, r4_x2cl_eight_reals_first_fft_scratch rsi, 2*64, 64, rdi
sse2mac sscase172, 256, 4096, r4_x4cl_eight_reals_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, rdi
sse2mac sscase173, 256, 100000, r4_x4cl_eight_reals_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, rdi
sse2mac sscase174, 256, 4096, r4_x4cl_wpn_eight_reals_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, rdi
sse2mac sscase175, 256, 100000, r4_x4cl_wpn_eight_reals_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, rdi
sse2mac sscase176, 256, 4096, r4_sg4cl_eight_reals_four_complex_fft4 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, rdi
sse2mac sscase177, 256, 100000, r4_sg4cl_eight_reals_four_complex_fft4 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, rdi
sse2mac sscase178, 256, 4096, r4_x4cl_eight_reals_last_unfft rsi, 4*64, 64, 2*64, rdi, 0
sse2mac sscase179, 256, 100000, r4_x4cl_eight_reals_last_unfft rsi, 4*64, 64, 2*64, rdi, 0
sse2mac sscase180, 256, 4096, r4_x4cl_eight_reals_unfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, 0
sse2mac sscase181, 256, 100000, r4_x4cl_eight_reals_unfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, 0
sse2mac sscase182, 128, 4096, r4_sg2cl_eight_reals_unfft4 rsi, 2*64, 64, rdx, 2*64, 64, rdi, rdi
sse2mac sscase183, 128, 100000, r4_sg2cl_eight_reals_unfft4 rsi, 2*64, 64, rdx, 2*64, 64, rdi, rdi
sse2mac sscase184, 192, 4096, r3_x3cl_six_reals_three_complex_djbfft rsi, 3*64, 64, rdi, rdi
sse2mac sscase185, 192, 100000, r3_x3cl_six_reals_three_complex_djbfft rsi, 3*64, 64, rdi, rdi
sse2mac sscase186, 192, 4096, r3_x3cl_six_reals_unfft rsi, 3*64, 64, rdi, 0, rdi, 0
sse2mac sscase187, 192, 100000, r3_x3cl_six_reals_unfft rsi, 3*64, 64, rdi, 0, rdi, 0
sse2mac sscase188, 192, 4096, r3_x3cl_three_complex_djbfft rsi, 3*64, 64, rdi
sse2mac sscase189, 192, 100000, r3_x3cl_three_complex_djbfft rsi, 3*64, 64, rdi
sse2mac sscase190, 192, 4096, r3_x3cl_three_complex_djbunfft rsi, 3*64, 64, rdi, 0
sse2mac sscase191, 192, 100000, r3_x3cl_three_complex_djbunfft rsi, 3*64, 64, rdi, 0
sse2mac sscase192, 320, 4096, r5_x5cl_20_reals_first_fft_scratch rsi, 5*64, 64, rdi
sse2mac sscase193, 320, 100000, r5_x5cl_20_reals_first_fft_scratch rsi, 5*64, 64, rdi
sse2mac sscase194, 640, 4096, r5_x10cl_20_reals_last_unfft rsi, 10*64, 64, rdi, 8*XMM_SCD9
sse2mac sscase195, 640, 100000, r5_x10cl_20_reals_last_unfft rsi, 10*64, 64, rdi, 8*XMM_SCD9
sse2mac sscase196, 320, 4096, r5_x5cl_five_complex_djbfft rsi, 5*64, 64, rdi
sse2mac sscase197, 320, 100000, r5_x5cl_five_complex_djbfft rsi, 5*64, 64, rdi
sse2mac sscase198, 320, 4096, r5_x5cl_five_complex_djbunfft rsi, 5*64, 64, rdi, 0
sse2mac sscase199, 320, 100000, r5_x5cl_five_complex_djbunfft rsi, 5*64, 64, rdi, 0
sse2mac sscase200, 448, 4096, r7_x7cl_28_reals_first_fft_scratch rsi, 7*64, 64, rdi
sse2mac sscase201, 448, 100000, r7_x7cl_28_reals_first_fft_scratch rsi, 7*64, 64, rdi
sse2mac sscase202, 896, 4096, r7_x14cl_28_reals_last_unfft rsi, 14*64, 64, rdi, 8*XMM_SCD13
sse2mac sscase203, 896, 100000, r7_x14cl_28_reals_last_unfft rsi, 14*64, 64, rdi, 8*XMM_SCD13
sse2mac sscase204, 512, 4096, r8_x8cl_eight_complex_fft_final rsi, 8*64, 64, 2*64, 4*64
sse2mac sscase205, 512, 100000, r8_x8cl_eight_complex_fft_final rsi, 8*64, 64, 2*64, 4*64
sse2mac sscase206, 512, 4096, r8_x8cl_eight_complex_with_square rsi, 8*64, 64, 2*64, 4*64
sse2mac sscase207, 512, 100000, r8_x8cl_eight_complex_with_square rsi, 8*64, 64, 2*64, 4*64
sse2macbx sscase208, 512, 4096, r8_x8cl_eight_complex_with_mult rsi, 8*64, 64, 2*64, 4*64
sse2macbx sscase209, 512, 100000, r8_x8cl_eight_complex_with_mult rsi, 8*64, 64, 2*64, 4*64
sse2macbx sscase210, 512, 4096, r8_x8cl_eight_complex_with_mulf rsi, 8*64, 64, 2*64, 4*64
sse2macbx sscase211, 512, 100000, r8_x8cl_eight_complex_with_mulf rsi, 8*64, 64, 2*64, 4*64
sse2mac sscase212, 512, 4096, r8_sg8cl_eight_complex_fft8 rsi, 8*64, 64, 2*64, 4*64, rdx, 8*64, 64, 2*64, 4*64, rdi
sse2mac sscase213, 512, 100000, r8_sg8cl_eight_complex_fft8 rsi, 8*64, 64, 2*64, 4*64, rdx, 8*64, 64, 2*64, 4*64, rdi
sse2mac sscase214, 256, 4096, r8_sg4cl_eight_complex_unfft8 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi
sse2mac sscase215, 256, 100000, r8_sg4cl_eight_complex_unfft8 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi
; need 16 reals cases
; Time ~10000 iterations of the AVX macros in L1 and L2 caches
INCLUDE yarch.mac
INCLUDE ybasics.mac
INCLUDE ymult.mac
INCLUDE yr4.mac
INCLUDE ynormal.mac
IFDEF X86_64
EXTRNP ycomplex_mult_opcode1
EXTRNP ycomplex_mult_opcode2
EXTRNP ycomplex_mult_opcode3
EXTRNP ycomplex_mult_opcode4
EXTRNP ycomplex_mult_opcode5
EXTRNP ycomplex_mult_opcode6
EXTRNP ycomplex_mulf_opcode1
EXTRNP ycomplex_mulf_opcode2
EXTRNP ycomplex_mulf_opcode3
EXTRNP ycomplex_mulf_opcode4
EXTRNP ycomplex_mulf_opcode5
EXTRNP ycomplex_mulf_opcode6
EXTRN y8complex_mult_opcode1:PROC
EXTRN y8complex_mult_opcode2:PROC
EXTRN y8complex_mult_opcode3:PROC
EXTRN y8complex_mult_opcode4:PROC
EXTRN y8complex_mulf_opcode1:PROC
EXTRN y8complex_mulf_opcode2:PROC
EXTRN y8complex_mulf_opcode3:PROC
EXTRN y8complex_mulf_opcode4:PROC
ENDIF
; This code reads/writes 64MB (1M cache lines) in contiguous blocks. Timings are done
; on 4 memory sizes. 4KB will operate on the L1 cache only, 128KB will operate on the
; L2 cache only, 1MB will operate on the L3 cache and 32MB will operate on main memory.
avcase0: read4 4096, 16384 ; Read 4KB
jmp exit
avcase1: read4 128*1024, 512 ; Read 128KB
jmp exit
avcase2: read4 1024*1024, 64 ; Read 1MB
jmp exit
avcase3: read4 32768*1024, 2 ; Read 32MB
jmp exit
avcase4: write4 4096, 16384 ; Write 4KB
jmp exit
avcase5: write4 128*1024, 512 ; Write 128KB
jmp exit
avcase6: write4 1024*1024, 64 ; Write 1MB
jmp exit
avcase7: write4 32768*1024, 2 ; Write 32MB
jmp exit
avcase8: readwrite4 4096, 16384 ; Read/write 4KB
jmp exit
avcase9: readwrite4 128*1024, 512 ; Read/write 128KB
jmp exit
avcase10: readwrite4 1024*1024, 64 ; Read/write 1MB
jmp exit
avcase11: readwrite4 32768*1024, 2 ; Read/write 32MB
jmp exit
yloop_init 32 ;; Dummy call to yloop_init
avx_case_num = 12
;;12
avxmac 256*1, 8192, 0, yr4_4cl_eight_reals_fft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 1
avxmac 256*2, 8192, 0, yr4_4cl_eight_reals_fft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 2
avxmac 256*1, 100000, 0, yr4_4cl_eight_reals_fft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 1
avxmac 256*2, 100000, 0, yr4_4cl_eight_reals_fft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 2
avxmac 256*1, 8192, 0, yr4_s4cl_eight_reals_fft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 1
avxmac 256*1, 100000, 0, yr4_s4cl_eight_reals_fft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 1
avxmacbx 256*1, 8192, 0, yr4_fs4cl_eight_reals_fft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 1
avxmacbx 256*1, 100000, 0, yr4_fs4cl_eight_reals_fft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 1
avxmac 256, 8192, 0, yr4_b4cl_csc_wpn_eight_reals_fft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND4, 1
avxmac 256, 100000, 0, yr4_b4cl_csc_wpn_eight_reals_fft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND4, 1
avxmac 256*1, 8192, 0, yr4_sg4cl_2sc_eight_reals_fft4 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, YMM_SCD4, rdi, YMM_SCD2, 1
avxmac 256*1, 100000, 0, yr4_sg4cl_2sc_eight_reals_fft4 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, YMM_SCD4, rdi, YMM_SCD2, 1
;;24
avxmac 256*1, 8192, 0, yr4_4cl_eight_reals_unfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 1
avxmac 256*2, 8192, 0, yr4_4cl_eight_reals_unfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 2
avxmac 256*1, 100000, 0, yr4_4cl_eight_reals_unfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 1
avxmac 256*2, 100000, 0, yr4_4cl_eight_reals_unfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 2
avxmac 256*1, 8192, 0, yr4_s4cl_eight_reals_unfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 1
avxmac 256*1, 100000, 0, yr4_s4cl_eight_reals_unfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 1
avxmac 256, 8192, 0, yr4_b4cl_csc_wpn_eight_reals_unfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND4, 1
avxmac 256, 100000, 0, yr4_b4cl_csc_wpn_eight_reals_unfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND4, 1
avxmac 256, 8192, 0, yr4_sg4cl_2sc_eight_reals_unfft4 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, YMM_SCD4, rdi, YMM_SCD2, 1
avxmac 256, 100000, 0, yr4_sg4cl_2sc_eight_reals_unfft4 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, YMM_SCD4, rdi, YMM_SCD2, 1
;;34
avxmac 256*1, 8192, 0, yr4_4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 1 ;;, L1PREFETCH_ALL, 2*256*1
avxmac 256*2, 8192, 0, yr4_4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 2 ;;, L1PREFETCH_ALL, 2*256*2
avxmac 256*3, 8192, 0, yr4_4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 3 ;;, L1PREFETCH_ALL, 2*256*3
avxmac 256*4, 8192, 0, yr4_4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 4 ;;, L1PREFETCH_ALL, 2*256*4
avxmac 256*5, 8192, 0, yr4_4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 5 ;;, L1PREFETCH_ALL, 2*256*5
avxmac 256*1, 100000, 0, yr4_4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 1
avxmac 256*2, 100000, 0, yr4_4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 2
avxmac 256*1, 8192, 0, yr4_b4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2/4, 1
avxmac 256*2, 8192, 0, yr4_b4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2/4, 2
avxmac 256*3, 8192, 0, yr4_b4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2/4, 3
avxmac 256*4, 8192, 0, yr4_b4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2/4, 4
avxmac 256*5, 8192, 0, yr4_b4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2/4, 5
avxmac 256*1, 100000, 0, yr4_b4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2/4, 1
avxmac 256*2, 100000, 0, yr4_b4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2/4, 2
avxmac 256*1, 8192, 0, yr4_rb4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 1
avxmac 256*2, 8192, 0, yr4_rb4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 2
avxmac 256*1, 100000, 0, yr4_rb4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 1
avxmac 256*2, 100000, 0, yr4_rb4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 2
;;52
avxmac 256*1, 8192, 0, yr4_s4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 1
avxmac 256*2, 8192, 0, yr4_s4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 2
avxmac 256*3, 8192, 0, yr4_s4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 3
avxmac 256*4, 8192, 0, yr4_s4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 4
avxmac 256*1, 100000, 0, yr4_s4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 1
avxmac 256*2, 100000, 0, yr4_s4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 2
avxmacbx 256*1, 8192, 0, yr4_fs4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 1
avxmacbx 256*2, 8192, 0, yr4_fs4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 2
avxmacbx 256*1, 100000, 0, yr4_fs4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 1
avxmacbx 256*2, 100000, 0, yr4_fs4cl_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 2
;;62
avxmac 256*1, 8192, 0, yr4_b4cl_wpn_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND2, 1
avxmac 256*2, 8192, 0, yr4_b4cl_wpn_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND2, 2
avxmac 256*1, 100000, 0, yr4_b4cl_wpn_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND2, 1
avxmac 256*2, 100000, 0, yr4_b4cl_wpn_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND2, 2
avxmac 256*1, 8192, 0, yr4_sg4cl_four_complex_fft4 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, YMM_SCD4, 1
avxmac 256*1, 100000, 0, yr4_sg4cl_four_complex_fft4 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, YMM_SCD4, 1
;;68
avxmac 256*1, 8192, 0, yr4_4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 1
avxmac 256*2, 8192, 0, yr4_4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 2
avxmac 256*3, 8192, 0, yr4_4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 3
avxmac 256*4, 8192, 0, yr4_4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 4
avxmac 256*5, 8192, 0, yr4_4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 5
avxmac 256*1, 100000, 0, yr4_4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 1
avxmac 256*2, 100000, 0, yr4_4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 2
avxmac 256*1, 8192, 0, yr4_b4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2/4, 1
avxmac 256*2, 8192, 0, yr4_b4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2/4, 2
avxmac 256*3, 8192, 0, yr4_b4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2/4, 3
avxmac 256*4, 8192, 0, yr4_b4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2/4, 4
avxmac 256*5, 8192, 0, yr4_b4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2/4, 5
avxmac 256*1, 100000, 0, yr4_b4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2/4, 1
avxmac 256*2, 100000, 0, yr4_b4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2/4, 2
;; 82
avxmac 256*1, 8192, 0, yr4_s4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 1
avxmac 256*2, 8192, 0, yr4_s4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 2
avxmac 256*3, 8192, 0, yr4_s4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 3
avxmac 256*4, 8192, 0, yr4_s4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 4
avxmac 256*1, 100000, 0, yr4_s4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 1
avxmac 256*2, 100000, 0, yr4_s4cl_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD2, 2
avxmac 256*1, 8192, 0, yr4_b4cl_wpn_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND2, 1
avxmac 256*2, 8192, 0, yr4_b4cl_wpn_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND2, 2
avxmac 256*1, 100000, 0, yr4_b4cl_wpn_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND2, 1
avxmac 256*2, 100000, 0, yr4_b4cl_wpn_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND2, 2
avxmac 256*1, 8192, 0, yr4_sg4cl_four_complex_unfft4 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, YMM_SCD4, 1
avxmac 256*1, 100000, 0, yr4_sg4cl_four_complex_unfft4 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, YMM_SCD4, 1
;;94
avxmac 256*1, 8192, 0, yr4_4cl_csc_four_complex_first_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD6, 1
avxmac 256*2, 8192, 0, yr4_4cl_csc_four_complex_first_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD6, 2
avxmac 256*1, 100000, 0, yr4_4cl_csc_four_complex_first_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD6, 1
avxmac 256*2, 100000, 0, yr4_4cl_csc_four_complex_first_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD6, 2
avxmac 256*1, 8192, 0, yr4_fs4cl_four_complex_first_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD4, 1
avxmac 256*1, 100000, 0, yr4_fs4cl_four_complex_first_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD4, 1
avxmacbx 256*1, 8192, 0, yr4_fs4cl_four_complex_first_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD4, 1
avxmacbx 256*1, 100000, 0, yr4_fs4cl_four_complex_first_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD4, 1
;;102
avxmac 256*1, 8192, 0, yr4_4cl_csc_four_complex_last_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD6, 1
avxmac 256*2, 8192, 0, yr4_4cl_csc_four_complex_last_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD6, 2
avxmac 256*1, 100000, 0, yr4_4cl_csc_four_complex_last_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD6, 1
avxmac 256*2, 100000, 0, yr4_4cl_csc_four_complex_last_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD6, 2
avxmac 256*1, 8192, 0, yr4_s4cl_four_complex_last_unfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD4, 1
avxmac 256*1, 100000, 0, yr4_s4cl_four_complex_last_unfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD4, 1
;;108
avxmac 256, 8192, 0, yr4_4cl_four_complex_fft_final rsi, 4*64, 64, 2*64
avxmac 256, 100000, 0, yr4_4cl_four_complex_fft_final rsi, 4*64, 64, 2*64
avxmac 256*1, 8192, 0, yr4_4cl_four_complex_with_square rsi, 4*64, 64, 2*64, 1
avxmac 256*2, 8192, 0, yr4_4cl_four_complex_with_square rsi, 4*64, 64, 2*64, 2
avxmac 256*1, 100000, 0, yr4_4cl_four_complex_with_square rsi, 4*64, 64, 2*64, 1
avxmac 256*2, 100000, 0, yr4_4cl_four_complex_with_square rsi, 4*64, 64, 2*64, 2
avxmacbx 256, 8192, 0, yr4_4cl_four_complex_with_mult rsi, 4*64, 64, 2*64
avxmacbx 256, 100000, 0, yr4_4cl_four_complex_with_mult rsi, 4*64, 64, 2*64
avxmacbx 256, 8192, 0, yr4_4cl_four_complex_with_mulf rsi, 4*64, 64, 2*64
avxmacbx 256, 100000, 0, yr4_4cl_four_complex_with_mulf rsi, 4*64, 64, 2*64
;;118
avxmac 256, 8192, 0, yr4_4cl_eight_reals_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 1
avxmac 256, 100000, 0, yr4_4cl_eight_reals_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 1
avxmac 256, 8192, 0, yr4_4cl_eight_reals_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 1
avxmac 256, 100000, 0, yr4_4cl_eight_reals_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, YMM_SCD3, 1
;;122
avxmac 256, 8192, 0, yr4_4cl_eight_reals_four_complex_fft_final rsi, 4*64, 64, 2*64
avxmac 256, 100000, 0, yr4_4cl_eight_reals_four_complex_fft_final rsi, 4*64, 64, 2*64
avxmac 256, 8192, 0, yr4_4cl_eight_reals_four_complex_with_square rsi, 4*64, 64, 2*64
avxmac 256, 100000, 0, yr4_4cl_eight_reals_four_complex_with_square rsi, 4*64, 64, 2*64
avxmacbx 256, 8192, 0, yr4_4cl_eight_reals_four_complex_with_mult rsi, 4*64, 64, 2*64
avxmacbx 256, 100000, 0, yr4_4cl_eight_reals_four_complex_with_mult rsi, 4*64, 64, 2*64
avxmacbx 256, 8192, 0, yr4_4cl_eight_reals_four_complex_with_mulf rsi, 4*64, 64, 2*64
avxmacbx 256, 100000, 0, yr4_4cl_eight_reals_four_complex_with_mulf rsi, 4*64, 64, 2*64
;;130
avxmac 192*1, 8192, 0, yr3_3cl_three_complex_djbfft rsi, 3*64, 64, rdi, YMM_SCD1, 1
avxmac 192*2, 8192, 0, yr3_3cl_three_complex_djbfft rsi, 3*64, 64, rdi, YMM_SCD1, 2
avxmac 192*3, 8192, 0, yr3_3cl_three_complex_djbfft rsi, 3*64, 64, rdi, YMM_SCD1, 3
avxmac 192*4, 8192, 0, yr3_3cl_three_complex_djbfft rsi, 3*64, 64, rdi, YMM_SCD1, 4
avxmac 192*5, 8192, 0, yr3_3cl_three_complex_djbfft rsi, 3*64, 64, rdi, YMM_SCD1, 5
avxmac 192*1, 100000, 0, yr3_3cl_three_complex_djbfft rsi, 3*64, 64, rdi, YMM_SCD1, 1
avxmac 192*2, 100000, 0, yr3_3cl_three_complex_djbfft rsi, 3*64, 64, rdi, YMM_SCD1, 2
avxmacbx 192*1, 8192, 0, yr3_f3cl_three_complex_djbfft rsi, 3*64, 64, rdi, YMM_SCD1, 1
avxmacbx 192*2, 8192, 0, yr3_f3cl_three_complex_djbfft rsi, 3*64, 64, rdi, YMM_SCD1, 2
avxmacbx 192*1, 100000, 0, yr3_f3cl_three_complex_djbfft rsi, 3*64, 64, rdi, YMM_SCD1, 1
avxmacbx 192*2, 100000, 0, yr3_f3cl_three_complex_djbfft rsi, 3*64, 64, rdi, YMM_SCD1, 2
avxmac 192*1, 8192, 0, yr3_b3cl_three_complex_djbfft rsi, 3*64, 64, rdi, YMM_SCD1/4, 1
avxmac 192*2, 8192, 0, yr3_b3cl_three_complex_djbfft rsi, 3*64, 64, rdi, YMM_SCD1/4, 2
avxmac 192*3, 8192, 0, yr3_b3cl_three_complex_djbfft rsi, 3*64, 64, rdi, YMM_SCD1/4, 3
avxmac 192*4, 8192, 0, yr3_b3cl_three_complex_djbfft rsi, 3*64, 64, rdi, YMM_SCD1/4, 4
avxmac 192*5, 8192, 0, yr3_b3cl_three_complex_djbfft rsi, 3*64, 64, rdi, YMM_SCD1/4, 5
avxmac 192*1, 100000, 0, yr3_b3cl_three_complex_djbfft rsi, 3*64, 64, rdi, YMM_SCD1/4, 1
avxmac 192*2, 100000, 0, yr3_b3cl_three_complex_djbfft rsi, 3*64, 64, rdi, YMM_SCD1/4, 2
;;148
avxmac 192*1, 8192, 0, yr3_3cl_three_complex_djbunfft rsi, 3*64, 64, rdi, YMM_SCD1, 1
avxmac 192*2, 8192, 0, yr3_3cl_three_complex_djbunfft rsi, 3*64, 64, rdi, YMM_SCD1, 2
avxmac 192*3, 8192, 0, yr3_3cl_three_complex_djbunfft rsi, 3*64, 64, rdi, YMM_SCD1, 3
avxmac 192*4, 8192, 0, yr3_3cl_three_complex_djbunfft rsi, 3*64, 64, rdi, YMM_SCD1, 4
avxmac 192*5, 8192, 0, yr3_3cl_three_complex_djbunfft rsi, 3*64, 64, rdi, YMM_SCD1, 5
avxmac 192*1, 100000, 0, yr3_3cl_three_complex_djbunfft rsi, 3*64, 64, rdi, YMM_SCD1, 1
avxmac 192*2, 100000, 0, yr3_3cl_three_complex_djbunfft rsi, 3*64, 64, rdi, YMM_SCD1, 2
avxmac 192*1, 8192, 0, yr3_b3cl_three_complex_djbunfft rsi, 3*64, 64, rdi, YMM_SCD1/4, 1
avxmac 192*2, 8192, 0, yr3_b3cl_three_complex_djbunfft rsi, 3*64, 64, rdi, YMM_SCD1/4, 2
avxmac 192*3, 8192, 0, yr3_b3cl_three_complex_djbunfft rsi, 3*64, 64, rdi, YMM_SCD1/4, 3
avxmac 192*4, 8192, 0, yr3_b3cl_three_complex_djbunfft rsi, 3*64, 64, rdi, YMM_SCD1/4, 4
avxmac 192*5, 8192, 0, yr3_b3cl_three_complex_djbunfft rsi, 3*64, 64, rdi, YMM_SCD1/4, 5
avxmac 192*1, 100000, 0, yr3_b3cl_three_complex_djbunfft rsi, 3*64, 64, rdi, YMM_SCD1/4, 1
avxmac 192*2, 100000, 0, yr3_b3cl_three_complex_djbunfft rsi, 3*64, 64, rdi, YMM_SCD1/4, 2
;;162
avxmac 192*1, 8192, 0, yr3_3cl_six_reals_fft rsi, 3*64, 64, rdi, YMM_SCD2, 1
avxmac 192*4, 8192, 0, yr3_3cl_six_reals_fft rsi, 3*64, 64, rdi, YMM_SCD2, 4
avxmacbx 192*1, 8192, 0, yr3_f3cl_six_reals_fft rsi, 3*64, 64, rdi, YMM_SCD2, 1
avxmacbx 192*1, 100000, 0, yr3_f3cl_six_reals_fft rsi, 3*64, 64, rdi, YMM_SCD2, 1
avxmac 192*1, 8192, 0, yr3_3cl_six_reals_unfft rsi, 3*64, 64, rdi, YMM_SCD2, 1
avxmac 192*4, 8192, 0, yr3_3cl_six_reals_unfft rsi, 3*64, 64, rdi, YMM_SCD2, 4
;;168
avxmac 192, 8192, 0, yr3_3cl_six_reals_three_complex_djbfft rsi, 3*64, 64, rdi, YMM_SCD2, 1
avxmac 192, 100000, 0, yr3_3cl_six_reals_three_complex_djbfft rsi, 3*64, 64, rdi, YMM_SCD2, 1
avxmac 192, 8192, 0, yr3_3cl_six_reals_three_complex_djbunfft rsi, 3*64, 64, rdi, YMM_SCD2, 1
avxmac 192, 100000, 0, yr3_3cl_six_reals_three_complex_djbunfft rsi, 3*64, 64, rdi, YMM_SCD2, 1
;;172
avxmac 320*1, 8192, 0, yr5_5cl_five_complex_djbfft rsi, 5*64, 64, rdi, YMM_SCD2, 1
avxmac 320*2, 8192, 0, yr5_5cl_five_complex_djbfft rsi, 5*64, 64, rdi, YMM_SCD2, 2
avxmac 320*1, 100000, 0, yr5_5cl_five_complex_djbfft rsi, 5*64, 64, rdi, YMM_SCD2, 1
avxmac 320*2, 100000, 0, yr5_5cl_five_complex_djbfft rsi, 5*64, 64, rdi, YMM_SCD2, 2
avxmacbx 320*1, 8192, 0, yr5_f5cl_five_complex_djbfft rsi, 5*64, 64, rdi, YMM_SCD2, 1
avxmacbx 320*1, 100000, 0, yr5_f5cl_five_complex_djbfft rsi, 5*64, 64, rdi, YMM_SCD2, 1
avxmac 320*1, 8192, 0, yr5_b5cl_five_complex_djbfft rsi, 5*64, 64, rdi, YMM_SCD2/4, 1
avxmac 320*2, 8192, 0, yr5_b5cl_five_complex_djbfft rsi, 5*64, 64, rdi, YMM_SCD2/4, 2
avxmac 320*1, 100000, 0, yr5_b5cl_five_complex_djbfft rsi, 5*64, 64, rdi, YMM_SCD2/4, 1
avxmac 320*2, 100000, 0, yr5_b5cl_five_complex_djbfft rsi, 5*64, 64, rdi, YMM_SCD2/4, 2
;;182
avxmac 320*1, 8192, 0, yr5_5cl_five_complex_djbunfft rsi, 5*64, 64, rdi, YMM_SCD2, 1
avxmac 320*2, 8192, 0, yr5_5cl_five_complex_djbunfft rsi, 5*64, 64, rdi, YMM_SCD2, 2
avxmac 320*1, 100000, 0, yr5_5cl_five_complex_djbunfft rsi, 5*64, 64, rdi, YMM_SCD2, 1
avxmac 320*2, 100000, 0, yr5_5cl_five_complex_djbunfft rsi, 5*64, 64, rdi, YMM_SCD2, 2
avxmac 320*1, 8192, 0, yr5_b5cl_five_complex_djbunfft rsi, 5*64, 64, rdi, YMM_SCD2/4, 1
avxmac 320*2, 8192, 0, yr5_b5cl_five_complex_djbunfft rsi, 5*64, 64, rdi, YMM_SCD2/4, 2
avxmac 320*1, 100000, 0, yr5_b5cl_five_complex_djbunfft rsi, 5*64, 64, rdi, YMM_SCD2/4, 1
avxmac 320*2, 100000, 0, yr5_b5cl_five_complex_djbunfft rsi, 5*64, 64, rdi, YMM_SCD2/4, 2
;;190
avxmac 192, 8192, 0, yr5_5cl_ten_reals_fft rsi, 5*64, 64, rdi, YMM_SCD4, 1
avxmac 192, 100000, 0, yr5_5cl_ten_reals_fft rsi, 5*64, 64, rdi, YMM_SCD4, 1
avxmacbx 192, 8192, 0, yr5_f5cl_ten_reals_fft rsi, 5*64, 64, rdi, YMM_SCD4, 1
avxmacbx 192, 100000, 0, yr5_f5cl_ten_reals_fft rsi, 5*64, 64, rdi, YMM_SCD4, 1
avxmac 192, 8192, 0, yr5_5cl_ten_reals_unfft rsi, 5*64, 64, rdi, YMM_SCD4, 1
avxmac 192, 100000, 0, yr5_5cl_ten_reals_unfft rsi, 5*64, 64, rdi, YMM_SCD4, 1
;;196
avxmac 320, 8192, 0, yr5_5cl_ten_reals_five_complex_djbfft rsi, 5*64, 64, rdi, YMM_SCD4, 1
avxmac 320, 100000, 0, yr5_5cl_ten_reals_five_complex_djbfft rsi, 5*64, 64, rdi, YMM_SCD4, 1
avxmac 320, 8192, 0, yr5_5cl_ten_reals_five_complex_djbunfft rsi, 5*64, 64, rdi, YMM_SCD4, 1
avxmac 320, 100000, 0, yr5_5cl_ten_reals_five_complex_djbunfft rsi, 5*64, 64, rdi, YMM_SCD4, 1
;;200
avxmac 512*1, 8192, 0, yr8_sg8cl_eight_complex_fft8 rsi, 8*64, 64, 2*64, 4*64, rdx, 8*64, 64, 2*64, 4*64, rdi, YMM_SCD8, 1
avxmac 512*1, 100000, 0, yr8_sg8cl_eight_complex_fft8 rsi, 8*64, 64, 2*64, 4*64, rdx, 8*64, 64, 2*64, 4*64, rdi, YMM_SCD8, 1
avxmac 512*1, 8192, 0, yr8_sg8cl_eight_complex_unfft8 rsi, 8*64, 64, 2*64, 4*64, rdx, 8*64, 64, 2*64, 4*64, rdi, YMM_SCD8, 1
avxmac 512*1, 100000, 0, yr8_sg8cl_eight_complex_unfft8 rsi, 8*64, 64, 2*64, 4*64, rdx, 8*64, 64, 2*64, 4*64, rdi, YMM_SCD8, 1
;;204
avxmac 512, 8192, 0, yr8_8cl_eight_complex_fft_final rsi, 8*64, 64, 2*64, 4*64
avxmac 512, 100000, 0, yr8_8cl_eight_complex_fft_final rsi, 8*64, 64, 2*64, 4*64
avxmac 512, 8192, 0, yr8_8cl_eight_complex_with_square rsi, 8*64, 64, 2*64, 4*64
avxmac 512, 100000, 0, yr8_8cl_eight_complex_with_square rsi, 8*64, 64, 2*64, 4*64
avxmacbx 512, 8192, 0, yr8_8cl_eight_complex_with_mult rsi, 8*64, 64, 2*64, 4*64
avxmacbx 512, 100000, 0, yr8_8cl_eight_complex_with_mult rsi, 8*64, 64, 2*64, 4*64
avxmacbx 512, 8192, 0, yr8_8cl_eight_complex_with_mulf rsi, 8*64, 64, 2*64, 4*64
avxmacbx 512, 100000, 0, yr8_8cl_eight_complex_with_mulf rsi, 8*64, 64, 2*64, 4*64
;;212
avxmac 512*1, 8192, 0, yr8_sg8cl_2sc_sixteen_reals_fft8 rsi, 8*64, 64, 2*64, 4*64, rdx, 8*64, 64, 2*64, 4*64, rdi, 0, rdi, YMM_SCD8, 1
avxmac 512*1, 100000, 0, yr8_sg8cl_2sc_sixteen_reals_fft8 rsi, 8*64, 64, 2*64, 4*64, rdx, 8*64, 64, 2*64, 4*64, rdi, 0, rdi, YMM_SCD8, 1
avxmac 512*1, 8192, 0, yr8_sg8cl_2sc_sixteen_reals_unfft8 rsi, 8*64, 64, 2*64, 4*64, rdx, 8*64, 64, 2*64, 4*64, rdi, 0, rdi, YMM_SCD8, 1
avxmac 512*1, 100000, 0, yr8_sg8cl_2sc_sixteen_reals_unfft8 rsi, 8*64, 64, 2*64, 4*64, rdx, 8*64, 64, 2*64, 4*64, rdi, 0, rdi, YMM_SCD8, 1
;;216
avxmac 512*1, 8192, 0, yr8_8cl_16_reals_fft rsi, 8*64, 64, 128, 256, rdi, YMM_SCD7, 1
avxmac 512*1, 100000, 0, yr8_8cl_16_reals_fft rsi, 8*64, 64, 128, 256, rdi, YMM_SCD7, 1
avxmac 512*1, 8192, 0, yr8_8cl_16_reals_unfft rsi, 8*64, 64, 128, 256, rdi, YMM_SCD7, 1
avxmac 512*1, 100000, 0, yr8_8cl_16_reals_unfft rsi, 8*64, 64, 128, 256, rdi, YMM_SCD7, 1
;;220
avxmac 640*1, 8192, 0, yr5_10cl_20_reals_fft rsi, 10*64, 64, 128, rdi, YMM_SCD9, 1
avxmac 640*1, 100000, 0, yr5_10cl_20_reals_fft rsi, 10*64, 64, 128, rdi, YMM_SCD9, 1
avxmac 640*1, 8192, 0, yr5_10cl_20_reals_unfft rsi, 10*64, 64, 128, rdi, YMM_SCD9, 1
avxmac 640*1, 100000, 0, yr5_10cl_20_reals_unfft rsi, 10*64, 64, 128, rdi, YMM_SCD9, 1
;;224
avxmac 768*1, 8192, 0, yr6_12cl_24_reals_fft rsi, 12*64, 64, 128, rdi, YMM_SCD11, 1
avxmac 768*1, 100000, 0, yr6_12cl_24_reals_fft rsi, 12*64, 64, 128, rdi, YMM_SCD11, 1
avxmac 768*1, 8192, 0, yr6_12cl_24_reals_unfft rsi, 12*64, 64, 128, rdi, YMM_SCD11, 1
avxmac 768*1, 100000, 0, yr6_12cl_24_reals_unfft rsi, 12*64, 64, 128, rdi, YMM_SCD11, 1
;;228
avxmac 896*1, 8192, 0, yr7_14cl_28_reals_fft rsi, 14*64, 64, 128, rdi, YMM_SCD13, 1
avxmac 896*1, 100000, 0, yr7_14cl_28_reals_fft rsi, 14*64, 64, 128, rdi, YMM_SCD13, 1
avxmac 896*1, 8192, 0, yr7_14cl_28_reals_unfft rsi, 14*64, 64, 128, rdi, YMM_SCD13, 1
avxmac 896*1, 100000, 0, yr7_14cl_28_reals_unfft rsi, 14*64, 64, 128, rdi, YMM_SCD13, 1
;;232
ynormmac 64, 8192, ynorm_1d exec, exec, noexec, noexec, noexec ;; base2 ttp (the most common case)
ynormmac 64, 8192, ynorm_1d exec, exec, noexec, exec, noexec ;; base2 ttp echk
ynormmac 64, 8192, ynorm_1d exec, exec, noexec, noexec, exec ;; base2 ttp const
ynormmac 64, 8192, ynorm_1d exec, exec, noexec, exec, exec ;; base2 ttp const echk
ynormmac 64, 8192, ynorm_1d noexec, exec, noexec, noexec, noexec ;; base2 nottp
ynormmac 64, 8192, ynorm_1d exec, noexec, noexec, noexec, noexec ;; nobase2 ttp
ynormmac 64, 8192, ynorm_1d exec, noexec, noexec, exec, noexec ;; nobase2 ttp echk
ynormmac 64, 8192, ynorm_1d exec, noexec, noexec, noexec, exec ;; nobase2 ttp const
ynormmac 64, 8192, ynorm_1d exec, noexec, noexec, exec, exec ;; nobase2 ttp const echk
ynormmac 64, 8192, ynorm_1d noexec, noexec, noexec, noexec, noexec ;; nobase2 nottp
;;242
ynormmac 64, 8192, ynorm_1d_zpad exec, exec, noexec, noexec, noexec, exec, noexec ;; base2 ttp c1 (the most common case)
ynormmac 64, 8192, ynorm_1d_zpad exec, exec, exec, noexec, noexec, exec, noexec ;; base2 ttp c1 echk
ynormmac 64, 8192, ynorm_1d_zpad exec, exec, noexec, exec, noexec, noexec, noexec ;; base2 ttp const
ynormmac 64, 8192, ynorm_1d_zpad exec, exec, exec, exec, noexec, noexec, noexec ;; base2 ttp const echk
ynormmac 64, 8192, ynorm_1d_zpad exec, exec, noexec, noexec, noexec, exec, noexec ;; base2 ttp c1 khi
ynormmac 64, 8192, ynorm_1d_zpad exec, noexec, noexec, noexec, noexec, exec, noexec ;; nobase2 ttp c1 (the most common case)
ynormmac 64, 8192, ynorm_1d_zpad exec, noexec, exec, noexec, noexec, exec, noexec ;; nobase2 ttp c1 echk
ynormmac 64, 8192, ynorm_1d_zpad exec, noexec, noexec, exec, noexec, noexec, noexec ;; nobase2 ttp const
ynormmac 64, 8192, ynorm_1d_zpad exec, noexec, exec, exec, noexec, noexec, noexec ;; nobase2 ttp const echk
ynormmac 64, 8192, ynorm_1d_zpad exec, noexec, noexec, noexec, noexec, exec, noexec ;; nobase2 ttp c1 khi
;;252
ynormwpn4mac 64, 8192, ynorm_wpn exec, exec, noexec, noexec, noexec ;; base2 ttp (the most common case)
ynormwpn4mac 64, 8192, ynorm_wpn exec, exec, noexec, exec, noexec ;; base2 ttp echk
ynormwpn4mac 64, 8192, ynorm_wpn exec, exec, noexec, noexec, exec ;; base2 ttp const
ynormwpn4mac 64, 8192, ynorm_wpn exec, exec, noexec, exec, exec ;; base2 ttp const echk
ynormwpn4mac 64, 8192, ynorm_wpn noexec, exec, noexec, noexec, noexec ;; base2 nottp
ynormwpn4mac 64, 8192, ynorm_wpn exec, noexec, noexec, noexec, noexec ;; nobase2 ttp
ynormwpn4mac 64, 8192, ynorm_wpn exec, noexec, noexec, exec, noexec ;; nobase2 ttp echk
ynormwpn4mac 64, 8192, ynorm_wpn exec, noexec, noexec, noexec, exec ;; nobase2 ttp const
ynormwpn4mac 64, 8192, ynorm_wpn exec, noexec, noexec, exec, exec ;; nobase2 ttp const echk
ynormwpn4mac 64, 8192, ynorm_wpn noexec, noexec, noexec, noexec, noexec ;; nobase2 nottp
;;262
ynormwpn4mac 64, 8192, ynorm_wpn_zpad exec, exec, noexec, noexec, noexec, exec, noexec ;; base2 ttp c1 (the most common case)
ynormwpn4mac 64, 8192, ynorm_wpn_zpad exec, exec, exec, noexec, noexec, exec, noexec ;; base2 ttp c1 echk
ynormwpn4mac 64, 8192, ynorm_wpn_zpad exec, exec, noexec, exec, noexec, noexec, noexec ;; base2 ttp const
ynormwpn4mac 64, 8192, ynorm_wpn_zpad exec, exec, exec, exec, noexec, noexec, noexec ;; base2 ttp const echk
ynormwpn4mac 64, 8192, ynorm_wpn_zpad exec, exec, noexec, noexec, noexec, exec, noexec ;; base2 ttp c1 khi
ynormwpn4mac 64, 8192, ynorm_wpn_zpad exec, noexec, noexec, noexec, noexec, exec, noexec ;; nobase2 ttp c1 (the most common case)
ynormwpn4mac 64, 8192, ynorm_wpn_zpad exec, noexec, exec, noexec, noexec, exec, noexec ;; nobase2 ttp c1 echk
ynormwpn4mac 64, 8192, ynorm_wpn_zpad exec, noexec, noexec, exec, noexec, noexec, noexec ;; nobase2 ttp const
ynormwpn4mac 64, 8192, ynorm_wpn_zpad exec, noexec, exec, exec, noexec, noexec, noexec ;; nobase2 ttp const echk
ynormwpn4mac 64, 8192, ynorm_wpn_zpad exec, noexec, noexec, noexec, noexec, exec, noexec ;; nobase2 ttp c1 khi
;;272
avxmac 256, 8192, 0, yr4_b4cl_csc_wpn4_eight_reals_fft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND4, 1
avxmac 256, 100000, 0, yr4_b4cl_csc_wpn4_eight_reals_fft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND4, 1
avxmac 256, 8192, 0, yr4_b4cl_csc_wpn4_eight_reals_unfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND4, 1
avxmac 256, 100000, 0, yr4_b4cl_csc_wpn4_eight_reals_unfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND4, 1
avxmac 256*1, 8192, 0, yr4_b4cl_wpn4_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND2, 1
avxmac 256*2, 8192, 0, yr4_b4cl_wpn4_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND2, 2
avxmac 256*1, 100000, 0, yr4_b4cl_wpn4_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND2, 1
avxmac 256*2, 100000, 0, yr4_b4cl_wpn4_four_complex_djbfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND2, 2
avxmac 256*1, 8192, 0, yr4_b4cl_wpn4_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND2, 1
avxmac 256*2, 8192, 0, yr4_b4cl_wpn4_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND2, 2
avxmac 256*1, 100000, 0, yr4_b4cl_wpn4_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND2, 1
avxmac 256*2, 100000, 0, yr4_b4cl_wpn4_four_complex_djbunfft rsi, 4*64, 64, 2*64, rdi, 0, rdi, YMM_SCND2, 2
;;284
avxmac 256*1, 8192, 0, yr4_rsc_sg4cl_four_complex_fft4 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, YMM_SCD4, 1
avxmac 256*1, 100000, 0, yr4_rsc_sg4cl_four_complex_fft4 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, YMM_SCD4, 1
avxmac 256*1, 8192, 0, yr4_rsc_sg4cl_four_complex_unfft4 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, YMM_SCD4, 1
avxmac 256*1, 100000, 0, yr4_rsc_sg4cl_four_complex_unfft4 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, YMM_SCD4, 1
avxmac 256*1, 8192, 0, yr4_rsc_sg4cl_2sc_eight_reals_fft4 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, YMM_SCD4, rdi, YMM_SCD2, 1
avxmac 256*1, 100000, 0, yr4_rsc_sg4cl_2sc_eight_reals_fft4 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, YMM_SCD4, rdi, YMM_SCD2, 1
avxmac 256*1, 8192, 0, yr4_rsc_sg4cl_2sc_eight_reals_unfft4 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, YMM_SCD4, rdi, YMM_SCD2, 1
avxmac 256*1, 100000, 0, yr4_rsc_sg4cl_2sc_eight_reals_unfft4 rsi, 4*64, 64, 2*64, rdx, 4*64, 64, 2*64, rdi, YMM_SCD4, rdi, YMM_SCD2, 1
;;292
avxmac 512*1, 8192, 0, yr8_rsc_sg8cl_eight_complex_fft8 rsi, 8*64, 64, 2*64, 4*64, rdx, 8*64, 64, 2*64, 4*64, rdi, YMM_SCD8, 1
avxmac 512*1, 100000, 0, yr8_rsc_sg8cl_eight_complex_fft8 rsi, 8*64, 64, 2*64, 4*64, rdx, 8*64, 64, 2*64, 4*64, rdi, YMM_SCD8, 1
avxmac 512*1, 8192, 0, yr8_rsc_sg8cl_eight_complex_unfft8 rsi, 8*64, 64, 2*64, 4*64, rdx, 8*64, 64, 2*64, 4*64, rdi, YMM_SCD8, 1
avxmac 512*1, 100000, 0, yr8_rsc_sg8cl_eight_complex_unfft8 rsi, 8*64, 64, 2*64, 4*64, rdx, 8*64, 64, 2*64, 4*64, rdi, YMM_SCD8, 1
avxmac 512*1, 8192, 0, yr8_rsc_sg8cl_2sc_sixteen_reals_fft8 rsi, 8*64, 64, 2*64, 4*64, rdx, 8*64, 64, 2*64, 4*64, rdi, 0, rdi, YMM_SCD8, 1
avxmac 512*1, 100000, 0, yr8_rsc_sg8cl_2sc_sixteen_reals_fft8 rsi, 8*64, 64, 2*64, 4*64, rdx, 8*64, 64, 2*64, 4*64, rdi, 0, rdi, YMM_SCD8, 1
avxmac 512*1, 8192, 0, yr8_rsc_sg8cl_2sc_sixteen_reals_unfft8 rsi, 8*64, 64, 2*64, 4*64, rdx, 8*64, 64, 2*64, 4*64, rdi, 0, rdi, YMM_SCD8, 1
avxmac 512*1, 100000, 0, yr8_rsc_sg8cl_2sc_sixteen_reals_unfft8 rsi, 8*64, 64, 2*64, 4*64, rdx, 8*64, 64, 2*64, 4*64, rdi, 0, rdi, YMM_SCD8, 1
; Time ~10000 iterations of the AVX-512 macros in L1 and L2 caches
IFDEF X86_64
ARCH EQU SKX
INCLUDE zarch.mac
INCLUDE zbasics.mac
INCLUDE zmult.mac
INCLUDE zonepass.mac
INCLUDE zr4.mac
INCLUDE znormal.mac
INCLUDE znormal_zpad.mac
EXTRN zcomplex_square_opcode:PROC
EXTRN zcomplex_mult_opcode:PROC
EXTRN zcomplex_mulf_opcode:PROC
FMApenalty_test1 MACRO ;; Test if latency is really 4 clocks, ideal macro timing is 4 clocks
zfmaddpd zmm0, zmm0, zmm0, zmm0
zfmaddpd zmm1, zmm1, zmm1, zmm1
zfmaddpd zmm2, zmm2, zmm2, zmm2
zfmaddpd zmm3, zmm3, zmm3, zmm3
zfmaddpd zmm4, zmm4, zmm4, zmm4
zfmaddpd zmm5, zmm5, zmm5, zmm5
zfmaddpd zmm6, zmm6, zmm6, zmm6
zfmaddpd zmm7, zmm7, zmm7, zmm7
ENDM
FMApenalty_test2 MACRO ;; Test if *average* latency is really 5 clocks, ideal macro timing is 5 clocks
zfmaddpd zmm0, zmm0, zmm0, zmm0
zfmaddpd zmm1, zmm1, zmm1, zmm1
zfmaddpd zmm2, zmm2, zmm2, zmm2
zfmaddpd zmm3, zmm3, zmm3, zmm3
zfmaddpd zmm4, zmm4, zmm4, zmm4
zfmaddpd zmm5, zmm5, zmm5, zmm5
zfmaddpd zmm6, zmm6, zmm6, zmm6
zfmaddpd zmm7, zmm7, zmm7, zmm7
zfmaddpd zmm8, zmm8, zmm8, zmm8
zfmaddpd zmm9, zmm9, zmm9, zmm9
ENDM
FMApenalty_test3 MACRO ;; Test if *average* latency is 6 clocks, ideal macro timing is 6 clocks
zfmaddpd zmm0, zmm0, zmm0, zmm0
zfmaddpd zmm1, zmm1, zmm1, zmm1
zfmaddpd zmm2, zmm2, zmm2, zmm2
zfmaddpd zmm3, zmm3, zmm3, zmm3
zfmaddpd zmm4, zmm4, zmm4, zmm4
zfmaddpd zmm5, zmm5, zmm5, zmm5
zfmaddpd zmm6, zmm6, zmm6, zmm6
zfmaddpd zmm7, zmm7, zmm7, zmm7
zfmaddpd zmm8, zmm8, zmm8, zmm8
zfmaddpd zmm9, zmm9, zmm9, zmm9
zfmaddpd zmm10, zmm10, zmm10, zmm10
zfmaddpd zmm11, zmm11, zmm11, zmm11
ENDM
FMApenalty_test4 MACRO ;; Test if there is a penalty switching between FMA and add/sub/mul, ideal macro timing is 6 clocks
zfmaddpd zmm0, zmm0, zmm0, zmm0
zfmaddpd zmm1, zmm1, zmm1, zmm1
zfmaddpd zmm2, zmm2, zmm2, zmm2
zfmaddpd zmm3, zmm3, zmm3, zmm3
zfmaddpd zmm12, zmm12, zmm12, zmm12
zfmaddpd zmm13, zmm13, zmm13, zmm13
vaddpd zmm4, zmm4, zmm4
vaddpd zmm5, zmm5, zmm5
vaddpd zmm6, zmm6, zmm6
vaddpd zmm7, zmm7, zmm7
vaddpd zmm16, zmm16, zmm16
vaddpd zmm17, zmm17, zmm17
ENDM
FMApenalty_test5 MACRO ;; Test if there is a penalty using FMA vs. add/sub/mul, ideal macro timing is 6 clocks
vaddpd zmm0, zmm0, zmm0
vaddpd zmm1, zmm1, zmm1
vaddpd zmm2, zmm2, zmm2
vaddpd zmm3, zmm3, zmm3
vaddpd zmm12, zmm12, zmm12
vaddpd zmm13, zmm13, zmm13
vaddpd zmm4, zmm4, zmm4
vaddpd zmm5, zmm5, zmm5
vaddpd zmm6, zmm6, zmm6
vaddpd zmm7, zmm7, zmm7
vaddpd zmm16, zmm16, zmm16
vaddpd zmm17, zmm17, zmm17
ENDM
do_nothing MACRO srcreg,srcinc,d1,d2,d4,screg,scinc,maxrpt,L1pt,L1pd
vmovapd zmm1, [srcreg+d1] ;; R2
vmovapd zmm2, [srcreg+d4+d1] ;; R6
vmovapd zmm3, [srcreg+d2+d1+64] ;; I4
vmovapd zmm4, [srcreg+d4+d2+d1+64] ;; I8
vmovapd zmm5, [srcreg+d2+d1] ;; R4
vmovapd zmm6, [srcreg+d4+d2+d1] ;; R8
vmovapd zmm7, [srcreg+d1+64] ;; I2
vmovapd zmm8, [srcreg+d4+d1+64] ;; I6
vmovapd zmm9, [srcreg] ;; R1
vmovapd zmm10, [srcreg+d4] ;; R5
vmovapd zmm11, [srcreg+d2] ;; R3
vmovapd zmm12, [srcreg+d4+d2] ;; R7
vmovapd zmm13, [srcreg+64] ;; I1
vmovapd zmm14, [srcreg+d4+64] ;; I5
vmovapd zmm15, [srcreg+d2+64] ;; I3
vmovapd zmm16, [srcreg+d4+d2+64] ;; I7
zstore [srcreg], zmm1 ;; Store R1
zstore [srcreg+d1], zmm2 ;; Store R2
zstore [srcreg+d2], zmm3 ;; Store R3
zstore [srcreg+d2+d1], zmm4 ;; Store R4
zstore [srcreg+d4], zmm5 ;; Store R5
zstore [srcreg+d4+d1], zmm6 ;; Store R6
zstore [srcreg+d4+d2], zmm7 ;; Store R7
zstore [srcreg+d4+d2+d1], zmm8 ;; Store R8
zstore [srcreg+64], zmm9 ;; Store I1
zstore [srcreg+d1+64], zmm10 ;; Store I2
zstore [srcreg+d2+64], zmm11 ;; Store I3
zstore [srcreg+d2+d1+64], zmm12 ;; Store I4
zstore [srcreg+d4+64], zmm13 ;; Store I5
zstore [srcreg+d4+d1+64], zmm14 ;; Store I6
zstore [srcreg+d4+d2+64], zmm15 ;; Store I7
zstore [srcreg+d4+d2+d1+64], zmm16 ;; Store I8
bump srcreg, srcinc
ENDM
do_nothing_plus_sincos MACRO srcreg,srcinc,d1,d2,d4,screg,scinc,maxrpt,L1pt,L1pd
vmovapd zmm1, [srcreg+d1] ;; R2
vmovapd zmm2, [srcreg+d4+d1] ;; R6
vmovapd zmm3, [srcreg+d2+d1+64] ;; I4
vmovapd zmm4, [srcreg+d4+d2+d1+64] ;; I8
vmovapd zmm5, [srcreg+d2+d1] ;; R4
vmovapd zmm6, [srcreg+d4+d2+d1] ;; R8
vmovapd zmm7, [srcreg+d1+64] ;; I2
vmovapd zmm8, [srcreg+d4+d1+64] ;; I6
vmovapd zmm9, [srcreg] ;; R1
vmovapd zmm10, [srcreg+d4] ;; R5
vmovapd zmm11, [srcreg+d2] ;; R3
vmovapd zmm12, [srcreg+d4+d2] ;; R7
vmovapd zmm13, [srcreg+64] ;; I1
vmovapd zmm14, [srcreg+d4+64] ;; I5
vmovapd zmm15, [srcreg+d2+64] ;; I3
vmovapd zmm16, [srcreg+d4+d2+64] ;; I7
vmovapd zmm17, [screg+1*128] ;; sine for R3/I3 and R4/I4
vmovapd zmm17, [screg+3*128+64] ;; cosine/sine for R2/I2
vmovapd zmm17, [screg+2*128+64] ;; cosine/sine for R7/I7 and R6/I6
vmovapd zmm17, [screg+0*128+64] ;; cosine/sine for R5/I5 and R8/I8
vmovapd zmm17, [screg+1*128+64] ;; cosine/sine for R3/I3 and R4/I4
vmovapd zmm17, [screg+3*128] ;; sine for R2/I2
vmovapd zmm17, [screg+2*128] ;; sine for R7/I7 and R6/I6
vmovapd zmm17, [screg+0*128] ;; sine for R5/I5 and R8/I8
bump screg, scinc
zstore [srcreg], zmm1 ;; Store R1
zstore [srcreg+d1], zmm2 ;; Store R2
zstore [srcreg+d2], zmm3 ;; Store R3
zstore [srcreg+d2+d1], zmm4 ;; Store R4
zstore [srcreg+d4], zmm5 ;; Store R5
zstore [srcreg+d4+d1], zmm6 ;; Store R6
zstore [srcreg+d4+d2], zmm7 ;; Store R7
zstore [srcreg+d4+d2+d1], zmm8 ;; Store R8
zstore [srcreg+64], zmm9 ;; Store I1
zstore [srcreg+d1+64], zmm10 ;; Store I2
zstore [srcreg+d2+64], zmm11 ;; Store I3
zstore [srcreg+d2+d1+64], zmm12 ;; Store I4
zstore [srcreg+d4+64], zmm13 ;; Store I5
zstore [srcreg+d4+d1+64], zmm14 ;; Store I6
zstore [srcreg+d4+d2+64], zmm15 ;; Store I7
zstore [srcreg+d4+d2+d1+64], zmm16 ;; Store I8
bump srcreg, srcinc
ENDM
do_nothing_plus_L1prefetch MACRO srcreg,srcinc,d1,d2,d4,screg,scinc,maxrpt,L1pt,L1pd
L1prefetchw srcreg+L1pd, L1pt
L1prefetchw srcreg+64+L1pd, L1pt
L1prefetchw srcreg+d1+L1pd, L1pt
L1prefetchw srcreg+d1+64+L1pd, L1pt
L1prefetchw srcreg+d2+L1pd, L1pt
L1prefetchw srcreg+d2+64+L1pd, L1pt
L1prefetchw srcreg+d2+d1+L1pd, L1pt
L1prefetchw srcreg+d2+d1+64+L1pd, L1pt
L1prefetchw srcreg+d4+L1pd, L1pt
L1prefetchw srcreg+d4+64+L1pd, L1pt
L1prefetchw srcreg+d4+d1+L1pd, L1pt
L1prefetchw srcreg+d4+d1+64+L1pd, L1pt
L1prefetchw srcreg+d4+d2+L1pd, L1pt
L1prefetchw srcreg+d4+d2+64+L1pd, L1pt
L1prefetchw srcreg+d4+d2+d1+L1pd, L1pt
L1prefetchw srcreg+d4+d2+d1+64+L1pd, L1pt
vmovapd zmm1, [srcreg+d1] ;; R2
vmovapd zmm2, [srcreg+d4+d1] ;; R6
vmovapd zmm3, [srcreg+d2+d1+64] ;; I4
vmovapd zmm4, [srcreg+d4+d2+d1+64] ;; I8
vmovapd zmm5, [srcreg+d2+d1] ;; R4
vmovapd zmm6, [srcreg+d4+d2+d1] ;; R8
vmovapd zmm7, [srcreg+d1+64] ;; I2
vmovapd zmm8, [srcreg+d4+d1+64] ;; I6
vmovapd zmm9, [srcreg] ;; R1
vmovapd zmm10, [srcreg+d4] ;; R5
vmovapd zmm11, [srcreg+d2] ;; R3
vmovapd zmm12, [srcreg+d4+d2] ;; R7
vmovapd zmm13, [srcreg+64] ;; I1
vmovapd zmm14, [srcreg+d4+64] ;; I5
vmovapd zmm15, [srcreg+d2+64] ;; I3
vmovapd zmm16, [srcreg+d4+d2+64] ;; I7
zstore [srcreg], zmm1 ;; Store R1
zstore [srcreg+d1], zmm2 ;; Store R2
zstore [srcreg+d2], zmm3 ;; Store R3
zstore [srcreg+d2+d1], zmm4 ;; Store R4
zstore [srcreg+d4], zmm5 ;; Store R5
zstore [srcreg+d4+d1], zmm6 ;; Store R6
zstore [srcreg+d4+d2], zmm7 ;; Store R7
zstore [srcreg+d4+d2+d1], zmm8 ;; Store R8
zstore [srcreg+64], zmm9 ;; Store I1
zstore [srcreg+d1+64], zmm10 ;; Store I2
zstore [srcreg+d2+64], zmm11 ;; Store I3
zstore [srcreg+d2+d1+64], zmm12 ;; Store I4
zstore [srcreg+d4+64], zmm13 ;; Store I5
zstore [srcreg+d4+d1+64], zmm14 ;; Store I6
zstore [srcreg+d4+d2+64], zmm15 ;; Store I7
zstore [srcreg+d4+d2+d1+64], zmm16 ;; Store I8
bump srcreg, srcinc
ENDM
; this code reads/writes 64MB (1M cache lines) in contiguous blocks. Timings are done
; on 4 memory sizes. 4KB will operate on the L1 cache only, 128KB will operate on the
; L2 cache only, 2MB will operate on the L3 cache and 32MB will operate on main memory.
av512case0: read8 4096, 16384 ; Read 4KB
jmp exit
av512case1: read8 128*1024, 512 ; Read 128KB
jmp exit
av512case2: read8 2048*1024, 32 ; Read 2MB
jmp exit
av512case3: read8 32768*1024, 2 ; Read 32MB
jmp exit
av512case4: write8 4096, 16384 ; Write 4KB
jmp exit
av512case5: write8 128*1024, 512 ; Write 128KB
jmp exit
av512case6: write8 2048*1024, 32 ; Write 2MB
jmp exit
av512case7: write8 32768*1024, 2 ; Write 32MB
jmp exit
av512case8: readwrite8 4096, 16384 ; Read/write 4KB
jmp exit
av512case9: readwrite8 128*1024, 512 ; Read/write 128KB
jmp exit
av512case10: readwrite8 2048*1024, 32 ; Read/write 2MB
jmp exit
av512case11: readwrite8 32768*1024, 2 ; Read/write 32MB
jmp exit
;; Simulate various ways to implement a 9600K FFT, pass 1 = 1280, pass 2 = 7680.
;; Our AVX512 implementation is much, much slower in pass 1 with it's scatter reads
;; and scatter writes vs. pass 2 with its sequential reads and sequential writes.
;; Optimal, but not possible - sequential read and write.
av512case12: sequential_readwrite8 1280*7680*8, 5 ; Read/write 78MB
jmp exit
;; Scatter read and scatter write -- simulates pass 1 with clm = 2
av512case13: scatter_readwrite8 1280*7680*8, 5 ; Read/write 78MB
jmp exit
;; Sequential read and scatter write -- simulates rewritten pass 1 & 2
av512case14: sequential_read_scatter_write8 1280*7680*8, 5 ; Read/write 78MB
jmp exit
;; For completeness, scatter read and sequential write
av512case15: scatter_read_sequential_write8 1280*7680*8, 5 ; Read/write 78MB
jmp exit
zloop_init 32 ;; Dummy call to zloop_init
avx512_case_num = 16
;;16
avx512mac 1, 10000, 0, tenclocks ; Macro that should take exactly 10 clocks (for calibration purposes)
avx512mac 1, 10000, 0, hundredclocks ; Macro that should take exactly 100 clocks (for calibration purposes)
avx512mac 1, 10000, 0, hundredclocks512 ; compare 100 clocks of zmm vs ymm
avx512mac 1, 10000, 0, do5 do5 FMApenalty_test1
avx512mac 1, 10000, 0, do2 do10 FMApenalty_test2
avx512mac 1, 10000, 0, do2 do10 FMApenalty_test3
avx512mac 1, 10000, 0, do2 do10 FMApenalty_test4
avx512mac 1, 10000, 0, do2 do10 FMApenalty_test5
;;24 ; Macros that do nothing but load and store -- tests best case scenario
avx512mac 10240, 16384, 0, do10 do_nothing rsi, 8*128, 128, 2*128, 4*128, rdi, ZMM_SCD4, 1 ;; Fastest possible L1 cache macro
avx512mac 10240, 262144, 0, do10 do_nothing rsi, 8*128, 128, 2*128, 4*128, rdi, ZMM_SCD4, 1 ;; Fastest possible L2 cache macro
avx512mac 10240, 4194304, 0, do10 do_nothing rsi, 8*128, 128, 2*128, 4*128, rdi, ZMM_SCD4, 1 ;; Fastest possible L3 cache macro
avx512mac 10240, 32768*1024, 0, do10 do_nothing rsi, 8*128, 128, 2*128, 4*128, rdi, ZMM_SCD4, 1 ;; Fastest possible memory macro
avx512mac 10240, 16384, 0, do10 do_nothing_plus_sincos rsi, 8*128, 128, 2*128, 4*128, rdi, ZMM_SCD4, 1
avx512mac 10240, 262144, 0, do10 do_nothing_plus_sincos rsi, 8*128, 128, 2*128, 4*128, rdi, ZMM_SCD4, 1
avx512mac 10240, 262144, 0, do10 do_nothing_plus_L1prefetch rsi, 8*128, 128, 2*128, 4*128, rdi, ZMM_SCD4, 1, L1PREFETCH_ALL, 1*8*128
avx512mac 10240, 262144, 0, do10 do_nothing_plus_L1prefetch rsi, 8*128, 128, 2*128, 4*128, rdi, ZMM_SCD4, 1, L1PREFETCH_ALL, 2*8*128
avx512mac 10240, 262144, 0, do10 do_nothing_plus_L1prefetch rsi, 8*128, 128, 2*128, 4*128, rdi, ZMM_SCD4, 1, L1PREFETCH_ALL, 3*8*128
avx512mac 10240, 262144, 0, do10 do_nothing_plus_L1prefetch rsi, 8*128, 128, 2*128, 4*128, rdi, ZMM_SCD4, 1, L1PREFETCH_ALL, 4*8*128
;;34
avx512mac 1024, 16384, 0, zr8_eight_complex_djbfft rsi, 8*128, 128, 2*128, 4*128, rdi, ZMM_SCD4, 1
avx512mac 1024, 262144, 0, zr8_eight_complex_djbfft rsi, 8*128, 128, 2*128, 4*128, rdi, ZMM_SCD4, 1
avx512mac 1024, 262144, 0, zr8_eight_complex_djbfft rsi, 8*128, 128, 2*128, 4*128, rdi, ZMM_SCD4, 1, L1PREFETCH_ALL, 1*8*128
avx512mac 1024, 262144, 0, zr8_eight_complex_djbfft rsi, 8*128, 128, 2*128, 4*128, rdi, ZMM_SCD4, 1, L1PREFETCH_ALL, 2*8*128
avx512mac 1024, 16384, 0, zr8_eight_complex_djbunfft rsi, 8*128, 128, 2*128, 4*128, rdi, ZMM_SCD4, 1
avx512mac 1024, 262144, 0, zr8_eight_complex_djbunfft rsi, 8*128, 128, 2*128, 4*128, rdi, ZMM_SCD4, 1
;;40
avx512mac 640, 16384, 0, zr5_five_complex_djbfft rsi, 5*128, 128, rdi, ZMM_SCD2, 1
avx512mac 640, 262144, 0, zr5_five_complex_djbfft rsi, 5*128, 128, rdi, ZMM_SCD2, 1
avx512mac 640, 16384, 0, zr5_five_complex_djbunfft rsi, 5*128, 128, rdi, ZMM_SCD2, 1
avx512mac 640, 262144, 0, zr5_five_complex_djbunfft rsi, 5*128, 128, rdi, ZMM_SCD2, 1
avx512mac 768, 16384, 0, zr6_six_complex_djbfft rsi, 6*128, 128, rdi, ZMM_SCD3, 1
avx512mac 768, 262144, 0, zr6_six_complex_djbfft rsi, 6*128, 128, rdi, ZMM_SCD3, 1
avx512mac 768, 16384, 0, zr6_six_complex_djbunfft rsi, 6*128, 128, rdi, ZMM_SCD3, 1
avx512mac 768, 262144, 0, zr6_six_complex_djbunfft rsi, 6*128, 128, rdi, ZMM_SCD3, 1
avx512mac 896, 16384, 0, zr7_seven_complex_djbfft rsi, 7*128, 128, rdi, ZMM_SCD3, 1
avx512mac 896, 262144, 0, zr7_seven_complex_djbfft rsi, 7*128, 128, rdi, ZMM_SCD3, 1
avx512mac 896, 16384, 0, zr7_seven_complex_djbunfft rsi, 7*128, 128, rdi, ZMM_SCD3, 1
avx512mac 896, 262144, 0, zr7_seven_complex_djbunfft rsi, 7*128, 128, rdi, ZMM_SCD3, 1
avx512mac 1536, 16384, 0, zr12_twelve_complex_djbfft rsi, 12*128, 128, 2*128, 4*128, rdi, ZMM_SCD6, 1
avx512mac 1536, 262144, 0, zr12_twelve_complex_djbfft rsi, 12*128, 128, 2*128, 4*128, rdi, ZMM_SCD6, 1
avx512mac 1536, 16384, 0, zr12_twelve_complex_djbunfft rsi, 12*128, 128, 2*128, 4*128, rdi, ZMM_SCD6, 1
avx512mac 1536, 262144, 0, zr12_twelve_complex_djbunfft rsi, 12*128, 128, 2*128, 4*128, rdi, ZMM_SCD6, 1
avx512mac 2048, 16384, 0, zr16_sixteen_complex_djbfft rsi, 16*128, 128, 2*128, 4*128, 8*128, rdi, ZMM_SCD8, 1
avx512mac 2048, 262144, 0, zr16_sixteen_complex_djbfft rsi, 16*128, 128, 2*128, 4*128, 8*128, rdi, ZMM_SCD8, 1
avx512mac 2048, 16384, 0, zr16_sixteen_complex_djbunfft rsi, 16*128, 128, 2*128, 4*128, 8*128, rdi, ZMM_SCD8, 1
avx512mac 2048, 262144, 0, zr16_sixteen_complex_djbunfft rsi, 16*128, 128, 2*128, 4*128, 8*128, rdi, ZMM_SCD8, 1
;;60
avx512mac 640, 16384, 0, zr5_csc_ten_reals_fft rsi, 5*128, 128, rdi, ZMM_SCD5, 1
avx512mac 640, 262144, 0, zr5_csc_ten_reals_fft rsi, 5*128, 128, rdi, ZMM_SCD5, 1
avx512mac 640, 16384, 0, zr5_csc_ten_reals_unfft rsi, 5*128, 128, rdi, ZMM_SCD5, 1
avx512mac 640, 262144, 0, zr5_csc_ten_reals_unfft rsi, 5*128, 128, rdi, ZMM_SCD5, 1
avx512mac 768, 16384, 0, zr6_csc_twelve_reals_fft rsi, 6*128, 128, rdi, ZMM_SCD6, 1
avx512mac 768, 262144, 0, zr6_csc_twelve_reals_fft rsi, 6*128, 128, rdi, ZMM_SCD6, 1
avx512mac 768, 16384, 0, zr6_csc_twelve_reals_unfft rsi, 6*128, 128, rdi, ZMM_SCD6, 1
avx512mac 768, 262144, 0, zr6_csc_twelve_reals_unfft rsi, 6*128, 128, rdi, ZMM_SCD6, 1
avx512mac 896, 16384, 0, zr7_csc_fourteen_reals_fft rsi, 7*128, 128, rdi, ZMM_SCD7, 1
avx512mac 896, 262144, 0, zr7_csc_fourteen_reals_fft rsi, 7*128, 128, rdi, ZMM_SCD7, 1
avx512mac 896, 16384, 0, zr7_csc_fourteen_reals_unfft rsi, 7*128, 128, rdi, ZMM_SCD7, 1
avx512mac 896, 262144, 0, zr7_csc_fourteen_reals_unfft rsi, 7*128, 128, rdi, ZMM_SCD7, 1
avx512mac 1024, 16384, 0, zr8_csc_sixteen_reals_fft rsi, 8*128, 128, 2*128, 4*128, rdi, ZMM_SCD8, 1
avx512mac 1024, 262144, 0, zr8_csc_sixteen_reals_fft rsi, 8*128, 128, 2*128, 4*128, rdi, ZMM_SCD8, 1
avx512mac 1024, 16384, 0, zr8_csc_sixteen_reals_unfft rsi, 8*128, 128, 2*128, 4*128, rdi, ZMM_SCD8, 1
avx512mac 1024, 262144, 0, zr8_csc_sixteen_reals_unfft rsi, 8*128, 128, 2*128, 4*128, rdi, ZMM_SCD8, 1
avx512mac 1536, 16384, 0, zr12_csc_twentyfour_reals_fft rsi, 12*128, 128, 2*128, 4*128, rdi, ZMM_SCD12, 1
avx512mac 1536, 262144, 0, zr12_csc_twentyfour_reals_fft rsi, 12*128, 128, 2*128, 4*128, rdi, ZMM_SCD12, 1
avx512mac 1536, 16384, 0, zr12_csc_twentyfour_reals_unfft rsi, 12*128, 128, 2*128, 4*128, rdi, ZMM_SCD12, 1
avx512mac 1536, 262144, 0, zr12_csc_twentyfour_reals_unfft rsi, 12*128, 128, 2*128, 4*128, rdi, ZMM_SCD12, 1
avx512mac 2048, 16384, 0, zr16_csc_thirtytwo_reals_fft rsi, 16*128, 128, 2*128, 4*128, 8*128, rdi, ZMM_SCD16, 1
avx512mac 2048, 262144, 0, zr16_csc_thirtytwo_reals_fft rsi, 16*128, 128, 2*128, 4*128, 8*128, rdi, ZMM_SCD16, 1
avx512mac 2048, 16384, 0, zr16_csc_thirtytwo_reals_unfft rsi, 16*128, 128, 2*128, 4*128, 8*128, rdi, ZMM_SCD16, 1
avx512mac 2048, 262144, 0, zr16_csc_thirtytwo_reals_unfft rsi, 16*128, 128, 2*128, 4*128, 8*128, rdi, ZMM_SCD16, 1
;;84
zr64_sixtyfour_complex_fft_final_preload
avx512mac 1024, 16384, 0, zr64_sixtyfour_complex_fft_final rsi, 8*128, 1*128, 2*128, 4*128, rdi, 0, 1
avx512mac 1024, 262144, 0, zr64_sixtyfour_complex_fft_final rsi, 8*128, 1*128, 2*128, 4*128, rdi, 0, 1
zr64_sixtyfour_complex_with_square_preload
avx512mac 1024, 16384, 0, zr64_sixtyfour_complex_with_square rsi, 8*128, 1*128, 2*128, 4*128, rdi, 0, 1
avx512mac 1024, 262144, 0, zr64_sixtyfour_complex_with_square rsi, 8*128, 1*128, 2*128, 4*128, rdi, 0, 1
zr64_sixtyfour_complex_with_mult_preload
avx512mac 1024, 16384, 0, zr64_sixtyfour_complex_with_mult rsi, 8*128, 1*128, 2*128, 4*128, rdi, 0, 1
avx512mac 1024, 262144, 0, zr64_sixtyfour_complex_with_mult rsi, 8*128, 1*128, 2*128, 4*128, rdi, 0, 1
zr64f_sixtyfour_complex_with_mulf_preload
avx512mac 1024, 16384, 0, zr64f_sixtyfour_complex_with_mulf rsi, 8*128, 1*128, 2*128, 4*128, rdi, 0, 1
avx512mac 1024, 262144, 0, zr64f_sixtyfour_complex_with_mulf rsi, 8*128, 1*128, 2*128, 4*128, rdi, 0, 1
;;92
zr8_csc_wpn_eight_complex_first_djbfft_preload
avx512mac 1024, 16384, 0, zr8_csc_wpn_eight_complex_first_djbfft rsi, 8*128, 128, 2*128, 4*128, r15, 0, rdi, 16, rdx, 0, 1
avx512mac 1024, 262144, 0, zr8_csc_wpn_eight_complex_first_djbfft rsi, 8*128, 128, 2*128, 4*128, r15, 0, rdi, 16, rdx, 0, 1
zr8_csc_wpn_eight_complex_last_djbunfft_preload
avx512mac 1024, 16384, 0, zr8_csc_wpn_eight_complex_last_djbunfft rsi, 8*128, 128, 2*128, 4*128, r15, 0, rdi, 16, rdx, 0, 1
avx512mac 1024, 262144, 0, zr8_csc_wpn_eight_complex_last_djbunfft rsi, 8*128, 128, 2*128, 4*128, r15, 0, rdi, 16, rdx, 0, 1
;;96
zr8_wpn_sixteen_reals_first_fft_preload
avx512mac 1024, 16384, 0, zr8_wpn_sixteen_reals_first_fft rsi, 8*128, 128, 2*128, 4*128, r15, 0, rdi, 16, rdx, 0, 1
avx512mac 1024, 262144, 0, zr8_wpn_sixteen_reals_first_fft rsi, 8*128, 128, 2*128, 4*128, r15, 0, rdi, 16, rdx, 0, 1
zr8_wpn_sixteen_reals_last_unfft_preload
avx512mac 1024, 16384, 0, zr8_wpn_sixteen_reals_last_unfft rsi, 8*128, 128, 2*128, 4*128, r15, 0, rdi, 16, rdx, 0, 1
avx512mac 1024, 262144, 0, zr8_wpn_sixteen_reals_last_unfft rsi, 8*128, 128, 2*128, 4*128, r15, 0, rdi, 16, rdx, 0, 1
;;100
zr12_csc_wpn_twelve_complex_first_djbfft_preload
avx512mac 1536, 16384, 0, zr12_csc_wpn_twelve_complex_first_djbfft rsi, 12*128, 128, 2*128, 4*128, r15, 0, rdi, 16, rdx, 0, 1
avx512mac 1536, 262144, 0, zr12_csc_wpn_twelve_complex_first_djbfft rsi, 12*128, 128, 2*128, 4*128, r15, 0, rdi, 16, rdx, 0, 1
zr12_csc_wpn_twelve_complex_last_djbunfft_preload
avx512mac 1536, 16384, 0, zr12_csc_wpn_twelve_complex_last_djbunfft rsi, 12*128, 128, 2*128, 4*128, r15, 0, rdi, 16, rdx, 0, 1
avx512mac 1536, 262144, 0, zr12_csc_wpn_twelve_complex_last_djbunfft rsi, 12*128, 128, 2*128, 4*128, r15, 0, rdi, 16, rdx, 0, 1
;;104
zr12_wpn_twentyfour_reals_first_fft_preload
avx512mac 1536, 16384, 0, zr12_wpn_twentyfour_reals_first_fft rsi, 12*128, 128, 2*128, 4*128, r15, 0, rdi, 16, rdx, 0, 1
avx512mac 1536, 262144, 0, zr12_wpn_twentyfour_reals_first_fft rsi, 12*128, 128, 2*128, 4*128, r15, 0, rdi, 16, rdx, 0, 1
zr12_wpn_twentyfour_reals_last_unfft_preload
avx512mac 1536, 16384, 0, zr12_wpn_twentyfour_reals_last_unfft rsi, 12*128, 128, 2*128, 4*128, r15, 0, rdi, 16, rdx, 0, 1
avx512mac 1536, 262144, 0, zr12_wpn_twentyfour_reals_last_unfft rsi, 12*128, 128, 2*128, 4*128, r15, 0, rdi, 16, rdx, 0, 1
;;108
avx512mac 1024, 8192, 0, zr8_rsc_wpn_sgreg_eight_complex_fft8 rsi, 1024, 128, 256, 512, rdx, 1024, r8, r9, r10, rdi, ZMM_SCD8, 1
avx512mac 1024, 262144, 0, zr8_rsc_wpn_sgreg_eight_complex_fft8 rsi, 1024, 128, 256, 512, rdx, 1024, r8, r9, r10, rdi, ZMM_SCD8, 1
avx512mac 1024, 8192, 0, zr8_rsc_wpn_sgreg_eight_complex_unfft8 rdx, 1024, r8, r9, r10, rsi, 1024, 128, 256, 512, rdi, ZMM_SCD8, 1
avx512mac 1024, 262144, 0, zr8_rsc_wpn_sgreg_eight_complex_unfft8 rdx, 1024, r8, r9, r10, rsi, 1024, 128, 256, 512, rdi, ZMM_SCD8, 1
avx512mac 1024, 8192, 0, zr8_rsc_wpn_sgreg_2sc_sixteen_reals_fft8 rsi, 1024, 128, 256, 512, rdx, 1024, r8, r9, r10, rdi, 0, rdi, 0, rdi, ZMM_SCD8, 1
avx512mac 1024, 262144, 0, zr8_rsc_wpn_sgreg_2sc_sixteen_reals_fft8 rsi, 1024, 128, 256, 512, rdx, 1024, r8, r9, r10, rdi, 0, rdi, 0, rdi, ZMM_SCD8, 1
avx512mac 1024, 8192, 0, zr8_rsc_wpn_sgreg_2sc_sixteen_reals_unfft8 rdx, 1024, r8, r9, r10, rsi, 1024, 128, 256, 512, rdi, 0, rdi, 0, rdi, ZMM_SCD8, 1
avx512mac 1024, 262144, 0, zr8_rsc_wpn_sgreg_2sc_sixteen_reals_unfft8 rdx, 1024, r8, r9, r10, rsi, 1024, 128, 256, 512, rdi, 0, rdi, 0, rdi, ZMM_SCD8, 1
;;116
zsf_onepass_real_fft_wrapper_preload
avx512mac 1024, 16384, 0, zsf_onepass_real_fft_wrapper rsi, 8*128, 128, 2*128, 4*128, r15, 0, rdi, 14, rdx, 0, 1
avx512mac 1024, 262144, 0, zsf_onepass_real_fft_wrapper rsi, 8*128, 128, 2*128, 4*128, r15, 0, rdi, 14, rdx, 0, 1
zs_onepass_real_unfft_wrapper_preload
avx512mac 1024, 16384, 0, zs_onepass_real_unfft_wrapper rsi, 8*128, 128, 2*128, 4*128, r15, 0, rdi, 14, 1
avx512mac 1024, 262144, 0, zs_onepass_real_unfft_wrapper rsi, 8*128, 128, 2*128, 4*128, r15, 0, rdi, 14, 1
zsf_onepass_complex_fft_wrapper_preload
avx512mac 1024, 16384, 0, zsf_onepass_complex_fft_wrapper rsi, 8*128, 128, 2*128, 4*128, r15, 0, rdi, 14, rdx, 0, 1
avx512mac 1024, 262144, 0, zsf_onepass_complex_fft_wrapper rsi, 8*128, 128, 2*128, 4*128, r15, 0, rdi, 14, rdx, 0, 1
zs_onepass_complex_unfft_wrapper_preload
avx512mac 1024, 16384, 0, zs_onepass_complex_unfft_wrapper rsi, 8*128, 128, 2*128, 4*128, r15, 0, r15, 0, rdi, 14, 1
avx512mac 1024, 262144, 0, zs_onepass_complex_unfft_wrapper rsi, 8*128, 128, 2*128, 4*128, r15, 0, r15, 0, rdi, 14, 1
;;124
znorm_wpn_preload noexec, noexec, noexec, noexec ;; ttp, zero, echk, const
avx512znormmac 1536, 16384, 0, znorm_wpn noexec, noexec, noexec, noexec
avx512znormmac 1536, 262144, 0, znorm_wpn noexec, noexec, noexec, noexec
znorm_wpn_preload noexec, noexec, exec, noexec ;; ttp, zero, echk, const
avx512znormmac 1536, 16384, 0, znorm_wpn noexec, noexec, exec, noexec
avx512znormmac 1536, 262144, 0, znorm_wpn noexec, noexec, exec, noexec
znorm_wpn_preload noexec, noexec, noexec, exec ;; ttp, zero, echk, const
avx512znormmac 1536, 16384, 0, znorm_wpn noexec, noexec, noexec, exec
avx512znormmac 1536, 262144, 0, znorm_wpn noexec, noexec, noexec, exec
znorm_wpn_preload noexec, noexec, exec, exec ;; ttp, zero, echk, const
avx512znormmac 1536, 16384, 0, znorm_wpn noexec, noexec, exec, exec
avx512znormmac 1536, 262144, 0, znorm_wpn noexec, noexec, exec, exec
;;132
znorm_wpn_preload exec, noexec, noexec, noexec ;; ttp, zero, echk, const
avx512znormmac 1536, 16384, 0, znorm_wpn exec, noexec, noexec, noexec
avx512znormmac 1536, 262144, 0, znorm_wpn exec, noexec, noexec, noexec
znorm_wpn_preload exec, noexec, exec, noexec ;; ttp, zero, echk, const
avx512znormmac 1536, 16384, 0, znorm_wpn exec, noexec, exec, noexec
avx512znormmac 1536, 262144, 0, znorm_wpn exec, noexec, exec, noexec
znorm_wpn_preload exec, noexec, noexec, exec ;; ttp, zero, echk, const
avx512znormmac 1536, 16384, 0, znorm_wpn exec, noexec, noexec, exec
avx512znormmac 1536, 262144, 0, znorm_wpn exec, noexec, noexec, exec
znorm_wpn_preload exec, noexec, exec, exec ;; ttp, zero, echk, const
avx512znormmac 1536, 16384, 0, znorm_wpn exec, noexec, exec, exec
avx512znormmac 1536, 262144, 0, znorm_wpn exec, noexec, exec, exec
ENDIF
; Exit the timing code
exit: ad_epilog 0,0,rbx,rbp,rsi,rdi,r8,r9,r10,r11,r12,r13,r14,r15,xmm6,xmm7,xmm8,xmm9,xmm10,xmm11,xmm12,xmm13,xmm14,xmm15
gwtimeit ENDP
_TEXT ENDS
END
|
||||
TheStack | d50eae502b6102cf9a13d2fd77f7ea30a64486f8 | Assemblycode:Assembly | {"size": 248, "ext": "asm", "max_stars_repo_path": "Jahr 1/MC/Programmierung/LEDLauflicht/LEDLauflicht/main.asm", "max_stars_repo_name": "BackInBash/Technikerschule", "max_stars_repo_stars_event_min_datetime": "2021-01-20T16:16:41.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-12T15:37:53.000Z", "max_issues_repo_path": "Jahr 1/MC/Programmierung/LEDLauflicht/LEDLauflicht/main.asm", "max_issues_repo_name": "BackInBash/Technikerschule", "max_issues_repo_issues_event_min_datetime": "2020-06-17T21:55:24.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-08T20:40:41.000Z", "max_forks_repo_path": "Jahr 1/MC/Programmierung/LEDLauflicht/LEDLauflicht/main.asm", "max_forks_repo_name": "BackInBash/Technikerschule", "max_forks_repo_forks_event_min_datetime": "2020-12-28T13:03:34.000Z", "max_forks_repo_forks_event_max_datetime": "2020-12-28T13:03:34.000Z"} | {"max_stars_count": 2, "max_issues_count": 2, "max_forks_count": 1, "avg_line_length": 11.2727272727, "max_line_length": 36, "alphanum_fraction": 0.6653225806} | ;
; LEDLauflicht.asm
;
; Created: 19/03/2021 13:45:34
; Author : Markus
;
; Replace with your application code
.INCLUDE "m16def.inc"
init:
LDI R18, 1
LDI R17, 0xff
out DDRA, R17
main:
out PORTA, R18
ADD R18, R18
CBI PORTA, 0
jmp main
|
||||
TheStack | dedbe8a0f36979c7408716be0463bc6ad1c77912 | Assemblycode:Assembly | {"size": 1315, "ext": "asm", "max_stars_repo_path": "Driver/IFS/DOS/MSNet/msnetStrings.asm", "max_stars_repo_name": "steakknife/pcgeos", "max_stars_repo_stars_event_min_datetime": "2018-11-18T03:35:53.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-29T01:02:51.000Z", "max_issues_repo_path": "Driver/IFS/DOS/MSNet/msnetStrings.asm", "max_issues_repo_name": "steakknife/pcgeos", "max_issues_repo_issues_event_min_datetime": "2018-11-19T21:06:50.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-06T10:26:48.000Z", "max_forks_repo_path": "Driver/IFS/DOS/MSNet/msnetStrings.asm", "max_forks_repo_name": "steakknife/pcgeos", "max_forks_repo_forks_event_min_datetime": "2018-11-19T20:46:53.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-29T00:59:26.000Z"} | {"max_stars_count": 504, "max_issues_count": 96, "max_forks_count": 73, "avg_line_length": 24.8113207547, "max_line_length": 79, "alphanum_fraction": 0.6068441065} | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: netwareStrings.asm
AUTHOR: Adam de Boor, Mar 29, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
Adam 3/29/92 Initial revision
DESCRIPTION:
Strings specific to the Novell NetWare IFS Driver.
$Id: msnetStrings.asm,v 1.1 97/04/10 11:55:26 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DriverExtendedInfo segment lmem LMEM_TYPE_GENERAL
DriverExtendedInfoTable <
{}, ; lmem header added by Esp
length fsNameTable, ; Number of supported "devices"
offset fsNameTable, ; Names of supported "devices"
offset fsInfoTable ; FSDFlags
>
fsNameTable lptr.char lantast40,
nwlite1x,
lantast41,
msnetCompat
lptr.char 0 ; terminate table
lantast40 chunk.char "LANtastic 4.0", 0
lantast41 chunk.char "LANtastic 4.1", 0
nwlite1x chunk.char "NetWare Lite 1.x", 0
msnetCompat chunk.char "MS-Net Compatible", 0
fsInfoTable word FSD_FLAGS, ; lantast40
FSD_FLAGS, ; nwlite1x
FSD_FLAGS, ; lantast41
FSD_FLAGS ; msnetCompat
DriverExtendedInfo ends
|
||||
TheStack | 9d056f8603708bf3c891fb77b9789e0f968f31a3 | Assemblycode:Assembly | {"size": 4353, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0x84_notsx.log_48_432.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0x84_notsx.log_48_432.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0x84_notsx.log_48_432.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 18.5234042553, "max_line_length": 147, "alphanum_fraction": 0.6432345509} | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r15
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x7f89, %rax
nop
nop
nop
nop
inc %r10
movl $0x61626364, (%rax)
nop
xor $62415, %rdx
lea addresses_A_ht+0x1a007, %r15
nop
and $36089, %r14
movb (%r15), %r12b
nop
nop
cmp $54918, %rax
lea addresses_D_ht+0xb607, %rdx
nop
nop
nop
nop
nop
cmp $25139, %r10
movw $0x6162, (%rdx)
nop
inc %rax
lea addresses_D_ht+0x19da7, %rsi
lea addresses_UC_ht+0x1c527, %rdi
sub %r15, %r15
mov $58, %rcx
rep movsb
nop
nop
nop
nop
add %rdi, %rdi
lea addresses_D_ht+0x1e07, %r14
nop
cmp $43924, %rsi
mov (%r14), %r10w
nop
nop
add $49758, %r12
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r15
pop %r14
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r8
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_normal+0x16ba7, %r10
nop
and $35175, %r9
movw $0x5152, (%r10)
nop
nop
nop
nop
nop
sub %rdi, %rdi
// Store
lea addresses_D+0x1d447, %r8
nop
nop
dec %rbx
movb $0x51, (%r8)
nop
nop
nop
nop
nop
and $35872, %r8
// Store
lea addresses_WC+0xbda0, %r10
nop
nop
nop
nop
nop
add $34630, %r9
movb $0x51, (%r10)
nop
nop
nop
nop
add %rax, %rax
// REPMOV
lea addresses_WT+0x12e07, %rsi
lea addresses_D+0x16c07, %rdi
nop
nop
nop
xor $49342, %rbx
mov $119, %rcx
rep movsl
nop
nop
nop
nop
nop
inc %rax
// Store
lea addresses_PSE+0x13803, %rdi
nop
nop
nop
nop
xor %rax, %rax
movw $0x5152, (%rdi)
nop
inc %rax
// Store
lea addresses_A+0xfce7, %rcx
nop
and %r9, %r9
mov $0x5152535455565758, %r8
movq %r8, (%rcx)
nop
xor $63242, %r9
// Store
lea addresses_UC+0x14027, %rbx
nop
nop
nop
nop
nop
xor %rcx, %rcx
mov $0x5152535455565758, %rax
movq %rax, %xmm2
vmovaps %ymm2, (%rbx)
nop
nop
nop
dec %rsi
// Store
lea addresses_RW+0x12e07, %rcx
nop
nop
nop
nop
nop
xor %rsi, %rsi
mov $0x5152535455565758, %r10
movq %r10, %xmm4
vmovups %ymm4, (%rcx)
nop
nop
nop
nop
sub $9322, %rdi
// Faulty Load
lea addresses_A+0x1be07, %rdx
nop
nop
nop
nop
nop
dec %r10
movups (%rdx), %xmm0
vpextrq $1, %xmm0, %r9
lea oracles, %rcx
and $0xff, %r9
shlq $12, %r9
mov (%rcx,%r9,1), %r9
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r8
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_A', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_normal', 'same': False, 'size': 2, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_D', 'same': False, 'size': 1, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WC', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WT', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_D', 'congruent': 8, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_PSE', 'same': False, 'size': 2, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_A', 'same': False, 'size': 8, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_UC', 'same': False, 'size': 32, 'congruent': 5, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_RW', 'same': False, 'size': 32, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_A', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 4, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 1, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 2, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 2, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'00': 48}
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
*/
|
||||
TheStack | 74a2bc8c863caa9a24e2b0b1a129a970ec831262 | Assemblycode:Assembly | {"size": 150, "ext": "asm", "max_stars_repo_path": "other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/英語_PAL/pal_asm/zel_obj_grph.asm", "max_stars_repo_name": "prismotizm/gigaleak", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/英語_PAL/pal_asm/zel_obj_grph.asm", "max_issues_repo_name": "prismotizm/gigaleak", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/英語_PAL/pal_asm/zel_obj_grph.asm", "max_forks_repo_name": "prismotizm/gigaleak", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null} | {"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.4285714286, "max_line_length": 47, "alphanum_fraction": 0.82} | Name: zel_obj_grph.asm
Type: file
Size: 18949
Last-Modified: '2016-05-13T04:25:37Z'
SHA-1: C734EDF7581ADE914AAEECA8EC1DD2689DED419E
Description: null
|
||||
TheStack | fe1f3c4dc8340a8046a94b2bda71ee724c79013e | Assemblycode:Assembly | {"size": 6929, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2762.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2762.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2762.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"} | {"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 35.3520408163, "max_line_length": 2999, "alphanum_fraction": 0.660412758} | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x14ec9, %rsi
lea addresses_WT_ht+0x1ea11, %rdi
nop
nop
nop
nop
nop
add %r10, %r10
mov $76, %rcx
rep movsq
nop
nop
nop
nop
nop
cmp $8468, %rbx
lea addresses_A_ht+0x7751, %rsi
cmp %r8, %r8
mov $0x6162636465666768, %rbx
movq %rbx, (%rsi)
nop
nop
cmp $22425, %r10
lea addresses_D_ht+0xea45, %rsi
lea addresses_A_ht+0x3211, %rdi
nop
dec %rdx
mov $106, %rcx
rep movsw
nop
nop
nop
add $33324, %rbx
lea addresses_UC_ht+0x4211, %rbx
nop
nop
and %rdx, %rdx
mov $0x6162636465666768, %r8
movq %r8, %xmm7
vmovups %ymm7, (%rbx)
xor $52702, %r10
lea addresses_WT_ht+0x9a11, %rsi
lea addresses_WC_ht+0xa931, %rdi
nop
nop
nop
and %rbx, %rbx
mov $57, %rcx
rep movsw
cmp $30092, %rsi
lea addresses_A_ht+0xb831, %rsi
lea addresses_UC_ht+0x17ed1, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
xor $49332, %r8
mov $83, %rcx
rep movsl
nop
nop
nop
nop
add %rbx, %rbx
lea addresses_normal_ht+0x8a95, %rdi
nop
nop
nop
nop
add $25381, %r8
mov (%rdi), %dx
nop
nop
xor $35394, %rcx
lea addresses_A_ht+0x1da11, %rcx
nop
nop
nop
dec %r8
mov (%rcx), %r10
nop
nop
xor %rcx, %rcx
lea addresses_UC_ht+0x6e11, %rsi
lea addresses_normal_ht+0x8211, %rdi
clflush (%rdi)
nop
nop
nop
nop
sub $64435, %r15
mov $41, %rcx
rep movsw
nop
sub %rdi, %rdi
lea addresses_UC_ht+0x1b211, %rsi
lea addresses_A_ht+0xdb57, %rdi
nop
nop
nop
sub %rdx, %rdx
mov $69, %rcx
rep movsb
nop
nop
nop
nop
nop
add $60934, %r10
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r15
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r8
push %r9
push %rcx
push %rdx
// Store
lea addresses_UC+0x114d1, %r11
nop
nop
nop
sub %r10, %r10
mov $0x5152535455565758, %rcx
movq %rcx, %xmm6
movups %xmm6, (%r11)
nop
nop
inc %r9
// Faulty Load
lea addresses_D+0x16a11, %rcx
nop
nop
cmp %r8, %r8
movups (%rcx), %xmm4
vpextrq $1, %xmm4, %r9
lea oracles, %r13
and $0xff, %r9
shlq $12, %r9
mov (%r13,%r9,1), %r9
pop %rdx
pop %rcx
pop %r9
pop %r8
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 6, 'size': 16, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 6, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 11, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': True}, 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
|
||||
TheStack | fef33db82c1d585ebfed413cb708429bd3db5f2a | Assemblycode:Assembly | {"size": 326, "ext": "asm", "max_stars_repo_path": "programs/oeis/329/A329506.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/329/A329506.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/329/A329506.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 25.0769230769, "max_line_length": 171, "alphanum_fraction": 0.4969325153} | ; A329506: Expansion of (1 + x)*(1 + 2*x + 2*x^2 - 2*x^3) / (1 - x).
; 1,4,8,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6
sub $0,1
sub $1,$0
add $1,3
mul $1,3
dif $1,2
trn $1,1
add $1,6
mod $1,10
mov $0,$1
|
||||
TheStack | dea8f544cd590b6cb53241400edd471a91b54bff | Assemblycode:Assembly | {"size": 371, "ext": "asm", "max_stars_repo_path": "libsrc/_DEVELOPMENT/adt/p_forward_list/c/sccz80/p_forward_list_pop_back.asm", "max_stars_repo_name": "jpoikela/z88dk", "max_stars_repo_stars_event_min_datetime": "2017-01-14T23:33:45.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T11:28:42.000Z", "max_issues_repo_path": "libsrc/_DEVELOPMENT/adt/p_forward_list/c/sccz80/p_forward_list_pop_back.asm", "max_issues_repo_name": "jpoikela/z88dk", "max_issues_repo_issues_event_min_datetime": "2017-01-15T16:12:02.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T12:11:12.000Z", "max_forks_repo_path": "libsrc/_DEVELOPMENT/adt/p_forward_list/c/sccz80/p_forward_list_pop_back.asm", "max_forks_repo_name": "jpoikela/z88dk", "max_forks_repo_forks_event_min_datetime": "2017-01-17T10:43:03.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-23T17:25:02.000Z"} | {"max_stars_count": 640, "max_issues_count": 1600, "max_forks_count": 215, "avg_line_length": 19.5263157895, "max_line_length": 58, "alphanum_fraction": 0.8787061995} |
; void *p_forward_list_pop_back(p_forward_list_t *list)
SECTION code_clib
SECTION code_adt_p_forward_list
PUBLIC p_forward_list_pop_back
EXTERN asm_p_forward_list_pop_back
defc p_forward_list_pop_back = asm_p_forward_list_pop_back
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _p_forward_list_pop_back
defc _p_forward_list_pop_back = p_forward_list_pop_back
ENDIF
|
||||
TheStack | 81bd3ef311c115ad35e6bce08fcd157097a725db | Assemblycode:Assembly | {"size": 339, "ext": "asm", "max_stars_repo_path": "programs/oeis/005/A005609.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/005/A005609.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/005/A005609.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"} | {"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 33.9, "max_line_length": 203, "alphanum_fraction": 0.8259587021} | ; A005609: Number of Boolean functions realized by cascades of n gates.
; 64,1744,48784,1365904,38245264,1070867344,29984285584,839559996304,23507679896464,658215037100944,18430021038826384,516040589087138704,14449136494439883664,404575821844316742544,11328123011640868791184
mov $1,28
pow $1,$0
div $1,27
mul $1,1680
add $1,64
mov $0,$1
|
||||
TheStack | 4f065ce9fad6860651b0890a0cebe5f8682df70e | Assemblycode:Assembly | {"size": 2629, "ext": "asm", "max_stars_repo_path": "1581/64tass/vects.asm", "max_stars_repo_name": "silverdr/assembly", "max_stars_repo_stars_event_min_datetime": "2015-03-23T15:16:57.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-18T12:43:42.000Z", "max_issues_repo_path": "1581/64tass/vects.asm", "max_issues_repo_name": "silverdr/assembly", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "1581/64tass/vects.asm", "max_forks_repo_name": "silverdr/assembly", "max_forks_repo_forks_event_min_datetime": "2016-04-13T11:19:35.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-22T07:39:00.000Z"} | {"max_stars_count": 23, "max_issues_count": null, "max_forks_count": 8, "avg_line_length": 19.4740740741, "max_line_length": 72, "alphanum_fraction": 0.515405097} |
.text '(C)1987 COMMODORE ELECTRONICS LTD., ALL RIGHTS RESERVED'
*=$ff00
jidle
jmp (vidle) ; IDLE ROUTINE
jirq
jmp (virq) ; IRQ VECTOR
jnmi
jmp (vnmi) ; NMI VECTOR
jverdir
jmp (vverdir) ; Validate
jintdrv
jmp (vintdrv) ; Initial Drive
jpart
jmp (vpart) ; Partitioning
jmem
jmp (vmem) ; MEMORY READ/WRITE/EXECUTE
jblock
jmp (vblock) ; BLOCK ALLOCATE/FREE/EXECUTE
juser
jmp (vuser) ; USER COMMANDS
jrecord
jmp (vrecord) ; RELATIVE FILE RECORD COMMAND
jutlodr
jmp (vutlodr) ; UTILITY LOADER
jdskcpy
jmp (vdskcpy) ; COPY
jrename
jmp (vrename) ; RENAME
jscrtch
jmp (vscrtch) ; SCRATCH
jnew
jmp (vnew) ; NEW
error
jmp (verror) ; ERROR HANDLER
jatnsrv
jmp (vatnsrv) ; ATTENTION SERVER
jtalk
jmp (vtalk) ; SERIAL BUS TALK
jlisten
jmp (vlisten) ; SERIAL BUS LISTEN
jlcc
jmp (vlcc) ; LCC VECTOR
jtrans_ts
jmp (vtrans_ts) ; TRACK & SECTOR TRANSLATION
cmder2
jmp (vcmder2) ; CMD ERROR
*=*+18
jstrobe_controller
jmp strobe_controller
jcbmboot
jmp cbmboot
jcbmbootrtn
jmp cbmbootrtn
jsignature
jmp signature
jdejavu
jmp vujade
newvect ; label
jspinout
jmp spinout
jallocbuf
jmp allocbuf
jintdsk
jmp intdsk
jdumptrk
jmp dumptrk
newvecoff=*-newvect
*=*+18-newvecoff
vects .word idle
.word irq
.word diagok
.word verdir
.word intdrv
.word part
.word mem
.word block
.word user
.word record
.word utlodr
.word dskcpy
.word rename
.word scrtch
.word new
.word jerror
.word atnsrv
.word talk
.word listen
.word lcc
.word trans_ts
.word jcmder2
lenv=*-vects
*=*+12
vectors
ldy #lenv-1
- lda vects,y
sta svects,y
dey
bpl -
lda #$4c
sta jhandsk
lda #<handsk
sta jhandsk+1
lda #>handsk
sta jhandsk+2 ; just in case they want to xmt a different way
rts
*=$ffea
ublock .word ublkrd
.word ublkwt
.word $0500 ; links to buffer #2
.word $0503
.word $0506
.word $0509
.word $050c
.word $050f
*=$fffa
.word nnmi
.word dskint
.word jirq
|