hexsha
stringlengths
40
40
size
int64
6
1.05M
ext
stringclasses
3 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
232
max_stars_repo_name
stringlengths
7
106
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
7
max_stars_count
int64
1
33.5k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
232
max_issues_repo_name
stringlengths
7
106
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
7
max_issues_count
int64
1
37.5k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
232
max_forks_repo_name
stringlengths
7
106
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
7
max_forks_count
int64
1
12.6k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
6
1.05M
avg_line_length
float64
1.16
19.7k
max_line_length
int64
2
938k
alphanum_fraction
float64
0
1
36ef652b5d44eda34cbd10aaeecf1027e16be58b
12,528
asm
Assembly
P6/data_P6_2/ALUTest105.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
1
2022-01-23T09:24:47.000Z
2022-01-23T09:24:47.000Z
P6/data_P6_2/ALUTest105.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
P6/data_P6_2/ALUTest105.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
slt $3,$5,$3 subu $4,$3,$3 slt $4,$3,$3 lhu $3,0($0) nor $6,$5,$3 or $3,$6,$3 sw $4,0($0) slt $1,$1,$3 sw $3,4($0) and $4,$4,$3 addu $3,$4,$3 or $5,$5,$3 slt $0,$0,$3 subu $3,$3,$3 slti $5,$4,24876 sltu $6,$4,$3 lhu $4,4($0) slti $3,$0,23161 srl $3,$3,9 addu $3,$3,$3 sll $4,$0,23 addiu $3,$3,-27639 sltiu $3,$1,27602 addiu $3,$1,9649 sltiu $3,$5,27264 addu $0,$3,$3 addu $4,$3,$3 addiu $3,$3,-26948 sh $1,12($0) xori $4,$0,56255 lw $6,12($0) lb $4,11($0) sw $5,0($0) subu $1,$3,$3 sltiu $4,$1,21375 sw $4,8($0) sltu $5,$3,$3 lhu $0,2($0) addiu $3,$3,1757 and $5,$5,$3 srl $3,$1,17 subu $4,$1,$3 srav $3,$4,$3 sllv $4,$4,$3 sh $6,8($0) nor $1,$1,$3 sltiu $4,$0,32644 lhu $0,12($0) slt $4,$1,$3 addiu $3,$5,28818 sll $1,$1,15 addiu $5,$4,-20220 slti $3,$4,16507 lhu $0,6($0) srav $4,$4,$3 lw $2,0($0) addu $4,$6,$3 nor $3,$5,$3 srl $3,$6,27 sltiu $6,$4,20637 sra $4,$3,15 lhu $3,14($0) xor $3,$3,$3 or $3,$3,$3 xori $4,$4,36954 lbu $5,15($0) or $4,$5,$3 srl $3,$4,7 sw $1,16($0) xori $5,$5,2033 ori $5,$4,37401 lbu $3,16($0) addu $3,$1,$3 sll $1,$3,11 sh $0,14($0) srl $3,$2,24 subu $1,$6,$3 sltiu $5,$5,14254 and $3,$3,$3 or $1,$3,$3 sh $6,14($0) sra $5,$5,1 srlv $5,$2,$3 subu $3,$3,$3 lhu $6,16($0) sllv $6,$6,$3 addu $2,$2,$3 sw $2,8($0) lh $4,2($0) sll $3,$1,1 sb $1,1($0) srav $6,$3,$3 sltiu $4,$6,-32392 ori $3,$0,13629 and $0,$2,$3 slt $3,$3,$3 addiu $4,$4,6094 sra $0,$3,27 xor $0,$4,$3 lh $3,0($0) sltu $5,$3,$3 xor $4,$5,$3 sb $5,9($0) lw $0,8($0) lbu $3,9($0) sllv $3,$3,$3 addu $3,$2,$3 slti $3,$3,-8066 or $3,$4,$3 xor $4,$4,$3 ori $4,$5,25467 sw $4,16($0) andi $3,$4,1799 sra $3,$4,3 addu $3,$2,$3 xor $1,$3,$3 ori $5,$3,56362 sltu $3,$3,$3 addiu $3,$3,25752 lb $3,11($0) addiu $3,$3,-10537 addiu $3,$5,-28486 lh $4,0($0) ori $1,$3,19104 and $3,$3,$3 sltiu $6,$6,21233 xor $1,$1,$3 sw $3,0($0) slt $0,$4,$3 xor $3,$3,$3 subu $4,$3,$3 and $4,$1,$3 xori $4,$4,56842 sw $3,8($0) lb $3,5($0) addiu $4,$4,-1484 lh $0,16($0) lbu $4,7($0) ori $1,$6,35430 xor $4,$1,$3 sw $3,12($0) lb $5,9($0) addu $3,$1,$3 addiu $6,$4,-12832 and $4,$1,$3 and $3,$5,$3 sllv $3,$1,$3 lhu $3,6($0) slt $3,$1,$3 lw $3,12($0) sw $4,12($0) addu $3,$2,$3 ori $1,$3,3512 srlv $4,$3,$3 slti $0,$6,-15045 or $0,$3,$3 sw $0,16($0) andi $3,$0,62243 slt $3,$2,$3 lw $1,16($0) addiu $5,$4,9772 lh $6,12($0) addiu $6,$3,-12585 xor $4,$4,$3 lb $3,15($0) sb $3,7($0) addiu $1,$3,16692 sllv $3,$1,$3 sltu $3,$3,$3 srav $4,$4,$3 lhu $6,8($0) addu $3,$4,$3 andi $3,$5,57231 addu $3,$4,$3 srl $3,$1,14 lh $4,2($0) xor $3,$4,$3 srl $4,$4,8 lbu $4,15($0) lw $4,16($0) lh $5,4($0) addiu $3,$3,-17387 lbu $3,4($0) sllv $3,$5,$3 sb $5,11($0) srav $5,$3,$3 addu $4,$1,$3 subu $4,$4,$3 lw $3,8($0) xor $6,$6,$3 xor $5,$6,$3 sra $4,$3,3 lb $1,4($0) sra $5,$4,29 sb $5,8($0) sh $0,12($0) srl $3,$5,6 srav $4,$1,$3 lw $1,0($0) xor $4,$4,$3 and $3,$4,$3 lhu $5,0($0) srlv $1,$1,$3 slti $3,$0,22818 slt $3,$6,$3 addiu $4,$5,-30 xori $6,$5,46274 sra $3,$5,3 srlv $5,$1,$3 or $5,$3,$3 sra $5,$3,10 slti $1,$6,29729 lw $0,0($0) lh $3,0($0) ori $5,$5,34415 lbu $4,5($0) ori $6,$3,20370 nor $4,$1,$3 andi $4,$5,52966 lw $5,16($0) subu $5,$3,$3 sra $3,$5,28 xori $4,$3,20821 sra $1,$1,7 addu $6,$4,$3 lb $3,10($0) srav $6,$6,$3 sllv $3,$3,$3 and $1,$0,$3 sllv $4,$1,$3 sltu $3,$5,$3 addu $1,$5,$3 lh $4,2($0) sb $0,0($0) srav $0,$3,$3 addu $4,$1,$3 ori $5,$2,48915 sb $1,9($0) slti $4,$4,20102 ori $3,$5,49684 sb $3,4($0) lh $4,12($0) sh $1,10($0) addiu $3,$0,-21448 addu $0,$2,$3 xori $3,$3,56436 subu $0,$3,$3 lw $1,16($0) lw $4,16($0) sb $1,8($0) sltiu $4,$6,-5769 subu $4,$4,$3 sltiu $3,$1,24590 srav $1,$2,$3 lhu $3,16($0) slt $3,$1,$3 subu $4,$3,$3 slti $0,$4,24198 ori $1,$5,32253 addu $4,$3,$3 xori $0,$6,14396 lh $4,4($0) sllv $5,$3,$3 or $3,$3,$3 addiu $4,$6,13408 andi $0,$6,41143 sw $3,4($0) addu $4,$3,$3 nor $4,$6,$3 srl $3,$5,13 lh $5,10($0) slt $1,$1,$3 subu $0,$0,$3 subu $1,$5,$3 sh $3,8($0) sltu $4,$0,$3 subu $5,$3,$3 slt $3,$1,$3 lb $5,16($0) nor $3,$5,$3 andi $3,$3,25644 ori $3,$1,29245 and $4,$1,$3 slti $6,$3,9433 slti $1,$5,-24534 srav $4,$4,$3 addu $4,$3,$3 addiu $4,$4,17902 lhu $3,14($0) sll $1,$2,21 sb $4,12($0) lbu $1,6($0) sll $5,$5,14 addiu $4,$1,15049 srl $3,$1,10 ori $1,$1,30816 sltiu $3,$0,-30955 xori $4,$4,50163 lhu $5,2($0) sb $3,3($0) srl $1,$4,16 sltu $4,$4,$3 addiu $3,$6,18627 addiu $0,$3,15269 xor $3,$5,$3 sh $4,10($0) lw $3,16($0) srl $1,$4,21 or $5,$3,$3 lw $1,12($0) sra $0,$5,27 srlv $5,$5,$3 lhu $4,14($0) addu $3,$3,$3 sw $4,4($0) lbu $3,5($0) lw $5,12($0) addiu $4,$4,25098 lw $3,4($0) sltiu $5,$4,-4981 lhu $3,16($0) sltiu $4,$4,-14813 slt $5,$5,$3 addu $1,$5,$3 subu $5,$5,$3 xor $3,$4,$3 xori $5,$0,55305 slti $5,$2,27843 xori $1,$0,29361 sw $3,0($0) sra $3,$3,24 xor $5,$0,$3 sh $3,8($0) lh $3,14($0) sltu $3,$3,$3 lbu $4,14($0) lh $3,6($0) srlv $3,$4,$3 addu $1,$4,$3 sra $5,$5,25 ori $1,$4,2317 slti $6,$4,-19142 sb $1,2($0) xor $3,$4,$3 subu $1,$3,$3 lbu $5,5($0) nor $5,$5,$3 lh $5,12($0) lbu $3,7($0) sllv $4,$4,$3 addiu $4,$5,13981 or $0,$6,$3 xor $0,$1,$3 addu $3,$3,$3 sw $5,8($0) srav $3,$0,$3 subu $4,$4,$3 nor $0,$1,$3 subu $3,$3,$3 xor $3,$4,$3 addu $3,$4,$3 slti $5,$6,16446 sltu $3,$0,$3 lb $4,10($0) sb $1,3($0) sra $4,$3,21 sb $3,0($0) srl $3,$4,5 sh $3,16($0) and $3,$5,$3 nor $5,$4,$3 addiu $4,$3,22712 lh $6,16($0) lhu $1,4($0) xori $3,$4,55588 lbu $3,2($0) sll $3,$2,17 slt $3,$3,$3 srav $3,$5,$3 addiu $4,$3,29934 addiu $6,$3,-3072 sllv $4,$4,$3 lb $4,10($0) sllv $3,$1,$3 and $3,$3,$3 lhu $4,16($0) addiu $0,$4,22034 srav $3,$5,$3 slt $4,$3,$3 nor $0,$5,$3 lb $4,9($0) sb $6,9($0) sltiu $5,$3,-19287 sll $3,$4,30 nor $4,$1,$3 sra $3,$2,22 sltiu $1,$1,-5372 lh $3,6($0) or $3,$0,$3 ori $0,$0,21205 andi $3,$6,26117 sllv $4,$4,$3 ori $5,$5,55072 lhu $3,14($0) xor $4,$5,$3 sll $0,$3,2 nor $1,$1,$3 or $1,$6,$3 or $5,$6,$3 lbu $3,2($0) subu $1,$0,$3 andi $6,$6,25015 sh $1,0($0) or $2,$2,$3 lbu $3,1($0) lhu $5,14($0) ori $1,$3,10482 xor $3,$3,$3 sh $5,4($0) lb $4,15($0) lb $4,0($0) sltiu $4,$1,-28081 lhu $0,10($0) sw $4,4($0) srav $5,$1,$3 addiu $6,$3,-15257 sltiu $5,$1,9163 sll $4,$5,15 srlv $6,$6,$3 xori $4,$4,43707 srl $1,$5,3 slti $3,$4,-5183 srav $1,$5,$3 xor $3,$5,$3 lhu $3,12($0) sltu $5,$3,$3 addu $5,$1,$3 lw $1,4($0) sll $5,$3,3 sll $3,$5,18 lhu $4,0($0) srlv $4,$4,$3 sw $3,16($0) or $4,$4,$3 nor $0,$3,$3 ori $0,$0,44330 sltiu $4,$4,21277 lb $3,14($0) lh $3,4($0) sra $1,$1,14 lb $3,5($0) sra $5,$0,24 and $1,$4,$3 sb $3,6($0) sw $3,8($0) addu $0,$5,$3 addu $1,$3,$3 lb $4,1($0) sra $1,$4,1 andi $3,$5,23737 srlv $6,$3,$3 xor $5,$6,$3 lw $0,8($0) xori $5,$6,41701 xori $3,$5,7279 xori $3,$3,4448 sll $4,$4,20 xor $6,$2,$3 and $4,$5,$3 addiu $3,$4,30822 srlv $3,$1,$3 sltiu $4,$6,-16565 sh $3,0($0) xori $3,$4,23502 addu $1,$3,$3 subu $4,$4,$3 subu $6,$3,$3 addu $5,$3,$3 srav $1,$4,$3 sb $3,13($0) subu $3,$1,$3 andi $4,$5,63936 lbu $3,2($0) subu $4,$2,$3 srlv $4,$1,$3 sll $4,$4,0 sllv $6,$3,$3 srl $4,$3,2 addu $4,$5,$3 addu $5,$4,$3 lb $3,11($0) addiu $5,$5,11864 subu $3,$3,$3 ori $3,$3,25341 xor $4,$3,$3 addu $1,$3,$3 subu $3,$3,$3 addiu $3,$3,23614 lb $3,1($0) srl $5,$0,16 ori $4,$5,49070 subu $3,$3,$3 xor $4,$4,$3 sra $0,$4,12 slti $6,$3,-14291 sllv $0,$3,$3 sra $5,$5,29 addiu $3,$5,28407 srlv $4,$4,$3 sw $0,4($0) lhu $6,10($0) ori $4,$3,681 srlv $3,$4,$3 lw $0,0($0) slti $3,$5,-27595 sll $3,$3,29 slt $1,$4,$3 slt $6,$1,$3 or $5,$3,$3 nor $3,$1,$3 sltu $3,$2,$3 sw $3,12($0) xor $1,$3,$3 andi $3,$3,10591 lh $0,10($0) srav $6,$4,$3 sw $4,4($0) srav $1,$1,$3 xori $3,$3,39546 and $3,$4,$3 subu $1,$5,$3 sltu $1,$4,$3 addu $4,$6,$3 sra $3,$6,30 lhu $0,6($0) srav $5,$3,$3 addu $3,$1,$3 subu $0,$3,$3 srlv $4,$5,$3 lb $1,6($0) sltu $4,$4,$3 addu $3,$3,$3 andi $0,$5,5306 sra $5,$6,9 srlv $2,$2,$3 sb $1,3($0) lhu $0,14($0) sh $6,16($0) sllv $4,$3,$3 srav $3,$5,$3 srav $1,$2,$3 sra $4,$4,30 addiu $4,$3,-6658 ori $3,$6,9843 addiu $4,$4,26476 sltu $1,$4,$3 lhu $1,6($0) or $3,$3,$3 slti $0,$4,4485 subu $4,$3,$3 or $3,$3,$3 addu $4,$3,$3 ori $1,$1,19445 srlv $3,$5,$3 and $4,$4,$3 addiu $1,$3,-30785 sll $4,$3,3 srav $4,$3,$3 sltiu $3,$4,-21175 sltu $4,$4,$3 addu $4,$2,$3 sra $4,$4,18 slt $3,$3,$3 addu $5,$5,$3 lb $4,14($0) ori $3,$4,14482 sra $3,$3,27 sltu $3,$3,$3 addiu $5,$5,1746 addiu $3,$3,30866 lb $4,8($0) addu $4,$2,$3 sb $5,3($0) nor $4,$4,$3 srav $3,$3,$3 srl $3,$1,15 addu $3,$4,$3 ori $3,$0,11401 lw $0,0($0) slti $3,$4,18280 addiu $3,$4,23239 lh $3,8($0) xori $6,$0,29103 andi $3,$3,3360 andi $4,$5,15402 nor $0,$0,$3 srlv $3,$3,$3 nor $3,$4,$3 sra $3,$1,14 addu $6,$3,$3 sra $1,$1,8 srlv $6,$6,$3 subu $3,$5,$3 srlv $6,$4,$3 lw $0,12($0) sw $5,0($0) slt $5,$4,$3 nor $0,$3,$3 xor $3,$1,$3 srl $5,$3,1 lh $4,4($0) addiu $0,$5,-15412 addu $1,$3,$3 subu $4,$0,$3 lbu $4,0($0) andi $6,$5,11908 addu $4,$1,$3 addu $6,$4,$3 and $4,$2,$3 andi $0,$3,23785 addiu $6,$3,-18232 xori $4,$6,56191 slti $1,$5,-9985 addiu $0,$3,-8681 sltiu $5,$1,6236 slt $5,$3,$3 subu $3,$3,$3 lb $1,7($0) srl $5,$1,31 andi $4,$6,47173 subu $1,$5,$3 andi $5,$3,37596 lb $4,1($0) sh $1,4($0) sll $0,$3,0 or $4,$4,$3 sll $5,$1,6 lh $3,2($0) subu $6,$3,$3 sra $3,$1,12 subu $3,$3,$3 lw $3,4($0) addu $5,$5,$3 andi $1,$1,19733 sltiu $3,$1,-12031 lw $1,16($0) xori $5,$5,52029 sra $3,$5,3 nor $5,$3,$3 srlv $3,$1,$3 addu $5,$3,$3 lhu $1,6($0) sll $0,$3,29 slt $1,$3,$3 andi $0,$4,7159 subu $3,$6,$3 andi $6,$3,47937 subu $5,$5,$3 subu $1,$4,$3 lbu $4,8($0) lh $3,0($0) lb $4,3($0) ori $4,$4,49541 sra $3,$3,31 and $1,$4,$3 sra $5,$5,0 lh $4,8($0) nor $3,$0,$3 slt $3,$6,$3 sh $4,10($0) sltiu $5,$5,-4304 addiu $5,$3,22513 addu $3,$3,$3 addu $4,$1,$3 nor $0,$0,$3 lb $4,16($0) ori $4,$4,42210 addiu $5,$5,7630 and $1,$4,$3 addiu $6,$4,-24818 sltu $4,$4,$3 sltiu $4,$0,-30683 lb $3,8($0) sllv $5,$5,$3 slti $1,$4,-5319 srl $3,$5,8 slt $3,$3,$3 sh $5,2($0) sltiu $3,$3,15225 subu $6,$0,$3 subu $0,$0,$3 lw $6,8($0) lw $3,4($0) addiu $1,$3,-26363 lh $3,12($0) andi $3,$3,3287 sra $6,$1,4 subu $0,$5,$3 lb $4,9($0) srlv $0,$3,$3 srlv $1,$1,$3 lhu $3,12($0) slti $3,$1,-9760 andi $5,$6,19841 ori $1,$3,19728 andi $4,$5,49302 subu $1,$3,$3 subu $3,$3,$3 or $0,$0,$3 xori $3,$4,5816 srlv $3,$6,$3 lb $1,13($0) lw $5,4($0) xori $5,$4,29917 sra $6,$6,19 sltu $3,$0,$3 lbu $5,5($0) lhu $1,14($0) sw $1,4($0) srav $3,$3,$3 slti $5,$5,-21926 sra $4,$4,27 sltu $4,$4,$3 srlv $3,$3,$3 srav $5,$2,$3 sll $5,$3,18 sltu $1,$5,$3 sltiu $0,$0,6621 sra $1,$1,7 lb $6,14($0) sb $0,8($0) sw $4,16($0) addu $4,$4,$3 or $5,$2,$3 sllv $6,$4,$3 srlv $0,$0,$3 xori $6,$6,38134 sltu $1,$1,$3 addu $5,$5,$3 xor $5,$4,$3 addu $4,$4,$3 nor $3,$5,$3 andi $4,$4,29744 addiu $0,$0,29184 sh $1,0($0) subu $6,$5,$3 xor $6,$3,$3 or $5,$5,$3 subu $3,$1,$3 srlv $3,$4,$3 srav $1,$5,$3 addu $4,$3,$3 lbu $0,15($0) lh $4,14($0) lh $3,0($0) xori $5,$3,12319 xor $3,$5,$3 slt $4,$0,$3 sw $1,8($0) lw $0,0($0) lhu $0,8($0) nor $0,$1,$3 srav $3,$3,$3 sh $5,8($0) and $1,$3,$3 and $4,$1,$3 lb $6,7($0) slt $3,$3,$3 lb $4,4($0) sll $3,$3,26 addiu $4,$4,30147 slt $1,$1,$3 sw $4,0($0) nor $1,$3,$3 lb $1,5($0) sltu $3,$4,$3 slt $1,$3,$3 slt $3,$2,$3 sb $4,11($0) or $6,$4,$3 xor $3,$4,$3 subu $0,$6,$3 sh $3,0($0) lb $3,7($0) xor $1,$1,$3 addu $3,$3,$3 slti $3,$1,-25190 srl $3,$5,29 addiu $5,$1,-18463 subu $5,$3,$3 subu $1,$3,$3 ori $4,$3,38849 sltiu $4,$3,24866 srl $3,$3,30 srlv $5,$4,$3 sw $3,4($0) lbu $0,10($0) addiu $6,$6,13586 addiu $3,$1,10678 xori $2,$2,60868 sltiu $0,$0,-31153 sltiu $5,$0,-26485 slt $6,$3,$3 xori $3,$6,22758 lhu $3,8($0) sw $1,4($0) lh $1,16($0) andi $1,$4,60715 addiu $3,$2,2095 addiu $0,$3,-9635 sll $6,$1,0 slt $4,$5,$3 sltu $0,$1,$3 ori $3,$5,26393 sltiu $0,$0,19347 srav $3,$5,$3 sll $3,$1,18 sra $3,$0,3 lhu $3,0($0) xori $1,$1,30954 lbu $3,0($0) srlv $3,$4,$3 and $4,$5,$3 slti $1,$1,11865 sh $3,10($0) srlv $3,$3,$3 lw $6,8($0) srl $0,$4,15 srl $5,$3,19 lw $5,12($0) andi $4,$4,48323 sllv $6,$4,$3 andi $3,$2,9011 addiu $5,$1,-30439 or $3,$3,$3 sra $1,$6,31 addu $1,$4,$3 slt $5,$3,$3 sltiu $3,$3,4628 lh $1,4($0) subu $1,$4,$3 lbu $3,12($0) sh $4,6($0) lbu $1,13($0) addiu $6,$1,-32543 sra $3,$3,30 subu $3,$5,$3 subu $4,$3,$3 nor $1,$3,$3 sb $4,16($0) subu $4,$4,$3 nor $4,$5,$3 slti $5,$6,23178 subu $3,$3,$3 srlv $3,$4,$3 slt $6,$4,$3 slt $1,$3,$3 xor $4,$4,$3 nor $0,$0,$3 addiu $4,$5,-16526 sllv $3,$3,$3 and $4,$4,$3 lh $3,2($0) sra $4,$5,4 lb $4,2($0) subu $4,$4,$3 addiu $6,$6,-20780 xor $4,$3,$3 lhu $4,0($0) sll $4,$4,13 lhu $6,0($0) addiu $4,$3,23957 addiu $5,$4,-23586 sltiu $4,$6,-12002 nor $4,$4,$3 ori $5,$5,23300 or $3,$3,$3 lbu $0,16($0) addu $0,$3,$3 addu $4,$0,$3 addiu $1,$3,26752 addu $4,$5,$3 sltiu $5,$5,-3174 lhu $5,4($0) lbu $6,10($0) or $4,$1,$3 sllv $3,$2,$3 lb $4,11($0)
14.092238
18
0.522909
d2bb29a533dd916a9bb38c9244359586cb0ae94c
7,010
asm
Assembly
Cameras/SOTTR/InjectableGenericCameraSystem/Interceptor.asm
valdisiljuconoks/InjectableGenericCameraSystem
e6d518729b986bd62474b1bfe54d94cd44446d53
[ "BSD-2-Clause" ]
7
2020-02-02T09:34:11.000Z
2021-05-15T03:22:11.000Z
Cameras/SOTTR/InjectableGenericCameraSystem/Interceptor.asm
valdisiljuconoks/InjectableGenericCameraSystem
e6d518729b986bd62474b1bfe54d94cd44446d53
[ "BSD-2-Clause" ]
null
null
null
Cameras/SOTTR/InjectableGenericCameraSystem/Interceptor.asm
valdisiljuconoks/InjectableGenericCameraSystem
e6d518729b986bd62474b1bfe54d94cd44446d53
[ "BSD-2-Clause" ]
5
2020-02-03T16:27:17.000Z
2021-02-22T08:49:49.000Z
;//////////////////////////////////////////////////////////////////////////////////////////////////////// ;// Part of Injectable Generic Camera System ;// Copyright(c) 2017, Frans Bouma ;// All rights reserved. ;// https://github.com/FransBouma/InjectableGenericCameraSystem ;// ;// 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. ;//////////////////////////////////////////////////////////////////////////////////////////////////////// ;--------------------------------------------------------------- ; Game specific asm file to intercept execution flow to obtain addresses, prevent writes etc. ;--------------------------------------------------------------- ;--------------------------------------------------------------- ; Public definitions so the linker knows which names are present in this file PUBLIC cameraStructInterceptor PUBLIC cameraWrite1Interceptor ;--------------------------------------------------------------- ;--------------------------------------------------------------- ; Externs which are used and set by the system. Read / write these ; values in asm to communicate with the system EXTERN g_cameraEnabled: byte EXTERN g_cameraStructAddress: qword ;--------------------------------------------------------------- ;--------------------------------------------------------------- ; Own externs, defined in InterceptorHelper.cpp EXTERN _cameraStructInterceptionContinue: qword EXTERN _cameraWrite1InterceptionContinue: qword .data ;--------------------------------------------------------------- ; Scratch pad .code cameraStructInterceptor PROC ;SOTTR.exe+853FC4E - 48 8D AC 24 B8FFFFFF - lea rbp,[rsp-00000048] ;SOTTR.exe+853FC56 - 48 81 EC 48010000 - sub rsp,00000148 { 328 } ;SOTTR.exe+853FC5D - 41 B1 01 - mov r9l,01 { 1 } ;SOTTR.exe+853FC60 - 31 DB - xor ebx,ebx ;SOTTR.exe+853FC62 - 89 59 28 - mov [rcx+28],ebx << INTERCEPT HERE ;SOTTR.exe+853FC65 - 45 31 C0 - xor r8d,r8d ;SOTTR.exe+853FC68 - 0F28 82 80000000 - movaps xmm0,[rdx+00000080] << Camera struct address in rdx. ;SOTTR.exe+853FC6F - 49 89 CF - mov r15,rcx ;SOTTR.exe+853FC72 - 41 0FB6 D1 - movzx edx,r9l << CONTINUE HERE ;SOTTR.exe+853FC76 - 0F29 44 24 60 - movaps [rsp+60],xmm0 ;SOTTR.exe+853FC7B - E8 0060F1F7 - call SOTTR.exe+455C80 ;SOTTR.exe+853FC80 - 49 8B 8F E0070000 - mov rcx,[r15+000007E0] ;SOTTR.exe+853FC87 - 49 89 C5 - mov r13,rax ;SOTTR.exe+853FC8A - 48 89 44 24 48 - mov [rsp+48],rax ; ; Alternative (but on very HOT path) ; ;SOTTR.exe+5D3F16A - 48 85 C0 - test rax,rax ;SOTTR.exe+5D3F16D - 0F84 74010000 - je SOTTR.exe+5D3F2E7 ;SOTTR.exe+5D3F173 - 0F28 50 30 - movaps xmm2,[rax+30] ;SOTTR.exe+5D3F177 - 41 0F5C 94 24 80000000 - subps xmm2,[r12+00000080] << Camera struct address in r12 ;SOTTR.exe+5D3F180 - 49 8B 87 60060000 - mov rax,[r15+00000660] ;SOTTR.exe+5D3F187 - 0F59 D2 - mulps xmm2,xmm2 ;SOTTR.exe+5D3F18A - 0F28 CA - movaps xmm1,xmm2 ;SOTTR.exe+5D3F18D - 0F28 C2 - movaps xmm0,xmm2 ;SOTTR.exe+5D3F190 - 0FC6 CA 02 - shufps xmm1,xmm202 { 2 } ;SOTTR.exe+5D3F194 - 0FC6 C2 01 - shufps xmm0,xmm201 { 1 } ;SOTTR.exe+5D3F198 - F3 0F58 C1 - addss xmm0,xmm1 ;SOTTR.exe+5D3F19C - F3 0F10 88 D0000000 - movss xmm1,[rax+000000D0] ;SOTTR.exe+5D3F1A4 - F3 0F59 C9 - mulss xmm1,xmm1 mov [rcx+28h],ebx xor r8d,r8d mov [g_cameraStructAddress], rdx movaps xmm0, xmmword ptr [rdx+00000080h] mov r15,rcx jmp qword ptr [_cameraStructInterceptionContinue] ; jmp back into the original game code, which is the location after the original statements above. cameraStructInterceptor ENDP cameraWrite1Interceptor PROC ; Write is used by many paths / targets, only block writes for the camera address we found (if any) ;SOTTR.exe+5EE33C8 - 66 0F7F 41 60 - movdqa [rcx+60],xmm0 ;SOTTR.exe+5EE33CD - 0F28 4A 70 - movaps xmm1,[rdx+70] ;SOTTR.exe+5EE33D1 - 66 0F7F 49 70 - movdqa [rcx+70],xmm1 ;SOTTR.exe+5EE33D6 - 0F28 82 80000000 - movaps xmm0,[rdx+00000080] ;SOTTR.exe+5EE33DD - 66 0F7F 81 80000000 - movdqa [rcx+00000080],xmm0 << INTERCEPT HERE << WRITE COORDS ;SOTTR.exe+5EE33E5 - 0F28 8A A0000000 - movaps xmm1,[rdx+000000A0] ;SOTTR.exe+5EE33EC - 0F29 89 A0000000 - movaps [rcx+000000A0],xmm1 << WRITE QUATERNION ;SOTTR.exe+5EE33F3 - 8B 82 B0000000 - mov eax,[rdx+000000B0] << WRITE FOV ;SOTTR.exe+5EE33F9 - 89 81 B0000000 - mov [rcx+000000B0],eax ;SOTTR.exe+5EE33FF - 8B 82 B4000000 - mov eax,[rdx+000000B4] << CONTINUE HERE ;SOTTR.exe+5EE3405 - 89 81 B4000000 - mov [rcx+000000B4],eax ;SOTTR.exe+5EE340B - 8B 82 B8000000 - mov eax,[rdx+000000B8] ;SOTTR.exe+5EE3411 - 89 81 B8000000 - mov [rcx+000000B8],eax ;SOTTR.exe+5EE3417 - 8B 82 BC000000 - mov eax,[rdx+000000BC] ;SOTTR.exe+5EE341D - 89 81 BC000000 - mov [rcx+000000BC],eax ;SOTTR.exe+5EE3423 - 0F28 82 C0000000 - movaps xmm0,[rdx+000000C0] ;SOTTR.exe+5EE342A - 66 0F7F 81 C0000000 - movdqa [rcx+000000C0],xmm0 ;SOTTR.exe+5EE3432 - 0F28 8A D0000000 - movaps xmm1,[rdx+000000D0] cmp byte ptr [g_cameraEnabled], 1 jne originalCode cmp qword ptr rcx, [g_cameraStructAddress] je exit originalCode: movdqa xmmword ptr [rcx+00000080h],xmm0 movaps xmm1, xmmword ptr [rdx+000000A0h] movaps xmmword ptr [rcx+000000A0h],xmm1 mov eax,[rdx+000000B0h] mov [rcx+000000B0h],eax exit: jmp qword ptr [_cameraWrite1InterceptionContinue] ; jmp back into the original game code, which is the location after the original statements above. cameraWrite1Interceptor ENDP END
52.313433
149
0.627817
a93dd07c1759b1b542377fcf106ec2b6176fea70
459
asm
Assembly
CS300s/CS310/Handouts/AssemblerExamples/Sum.asm
AndrewZurn/sju-compsci-archive
3ea0e4f0db8453a011fc7511140df788dde5aae2
[ "Apache-2.0" ]
null
null
null
CS300s/CS310/Handouts/AssemblerExamples/Sum.asm
AndrewZurn/sju-compsci-archive
3ea0e4f0db8453a011fc7511140df788dde5aae2
[ "Apache-2.0" ]
null
null
null
CS300s/CS310/Handouts/AssemblerExamples/Sum.asm
AndrewZurn/sju-compsci-archive
3ea0e4f0db8453a011fc7511140df788dde5aae2
[ "Apache-2.0" ]
null
null
null
DATA PROGRAM #Read(n); IMLO R10 0xFE IMLO R11 0xFF LOAD R3 [R10] #R3 is n #sum=0; IMLO R4 0 #R4 is sum #index=1; IMLO R5 1 #R5 is index #while(index<=n) { While SUB SCR R3 R5 #Calculate R3-R5=n-index BRNG Print #When difference is negative # jump out of loop # sum=sum+index; ADD R4 R4 R5 # index=index+1; ADD R5 R5 ONE JUMP While #Go back to the while beginning #} #Print(sum); Print STOR [R11] R4 HALT END
18.36
49
0.625272
66c741eabc7e3fc8a09fb5175ce56c6164b89e5a
4,410
asm
Assembly
z80unlze.asm
uniabis/z80depacker
a5dc3a0a7d3cb07a814490463b93fa42b3e66c68
[ "MIT" ]
25
2019-08-16T11:03:39.000Z
2022-03-23T23:22:46.000Z
z80unlze.asm
uniabis/z80depacker
a5dc3a0a7d3cb07a814490463b93fa42b3e66c68
[ "MIT" ]
null
null
null
z80unlze.asm
uniabis/z80depacker
a5dc3a0a7d3cb07a814490463b93fa42b3e66c68
[ "MIT" ]
1
2021-04-04T01:07:24.000Z
2021-04-04T01:07:24.000Z
; Decompression routine for LZEXE-compressed streams, v1.1 ; ; Copyright © 2020 Pedro Gimeno Fortea ; ; This is a decompressor for LZEXE-compressed streams. Copying, distribution ; and modification of this package or parts of it are permitted, under two ; conditions: that any copyright notices and this notice are preserved, and ; that any modified version is clearly marked as such. This package is offered ; as-is, without any warranty express or implied. ; ; Input: HL=source, DE=destination ; Output: HL=last source address read+1 ( = initial source address + length of compressed stream) ; : DE=last dest address written+1 ( = initial destination address + length of decompressed stream) ; Clobbers: AF, AF', BC ; Changes: ; 1.1 156/112 bytes 11-06-2020 : Moved getbit_routine to bottom ; 1.1 156/112 bytes 10-06-2020 : Very tiny optimization; also optimizing for size saves 10 more bytes ; 1.0 157/122 bytes 09-06-2020 : Original version ; Set OPTIMIZE to either SPEED or SIZE. ; Optimizing for speed makes the getbit code be inlined, at the cost of ; decompressor memory (156 bytes as of this writing). ; Optimizing for size (112 bytes as of this writing) makes the code a bit ; slower due to the calls to getbit and the relative jumps. SIZE equ 0 SPEED equ 1 ; Change this to select what to optimize for IF !defined OPTIMIZE OPTIMIZE equ SPEED ENDIF getbit_code macro ; Get the next bit from the bitstream into the carry flag local gotbit srl b rr c ex af,af' dec a IF OPTIMIZE=SPEED jp nz,gotbit ELSE jr nz,gotbit ENDIF ld c,(hl) inc hl ld b,(hl) inc hl ld a,16 gotbit: ex af,af' endm unlze proc IF OPTIMIZE=SPEED ; Optimize for speed getbit macro getbit_code endm j macro x jp x endm jc macro x,y jp x,y endm ELSE ; Optimize for size local getbit_routine ; moved getbit_routine to bottom getbit macro call getbit_routine endm j macro x jr x endm jc macro x,y jr x,y endm ENDIF local mainloop local not_literal local long_match local got_length local clean_up_and_loop local clean_up_and_ret ld a,16 ex af,af' ld c,(hl) inc hl ld b,(hl) inc hl ; Bitstream codes: ; 1 = copy next byte verbatim ; 00cc = next 2 bits are count reduced by 2, ; i.e. cc=00 represents 2 and cc=11 represents 5; ; the next byte is the offset in two's complement ; 01 = get little endian word from byte stream ; where the low byte is the lower 8 bits of the ; offset, and the high byte is encoded as follows: ; oooooxxx ; where ooooo are bits 8-12 of the offset ; and xxx is either length - 2 if nonzero, ; or 0 to read the next byte as an extended length ; or code. If that next code is 0, it means end of ; the stream. If that code is 1, it should be ignored ; (it's used for avoiding going off a segment in x86, ; so it can handle files > 64K). If that code is 2 or ; more, the actual length is the code + 1. mainloop: getbit jc nc,not_literal ; 1 = copy next byte verbatim ld a,(hl) inc hl ld (de),a inc de j mainloop not_literal: getbit jc c,long_match ; Short match getbit rla getbit rla and 3 add a,2 ; Length push bc ld c,a ld a,(hl) ; Offset in two's complement (always negative) inc hl push hl ld b,0 ; Length in BC add a,e ; HL = DE + offset (offset is always negative) ld l,a ld a,-1 adc a,d ld h,a ldir pop hl pop bc j mainloop long_match: push bc ld c,(hl) inc hl ld b,(hl) ld a,b ; Carry is assumed to be set here! (saves 1 cycle) rr b sra b sra b inc hl and 7 jc nz,got_length ld a,(hl) inc hl ; Check special codes cp 1 jc z,clean_up_and_loop ; equal to 1, ignore jc c,clean_up_and_ret ; less than 1, must be 0, exit ; Actual lenght is A + 1, but we add 2 when falling through ; so we compensate here: dec a ; Fall through got_length: ; Apply offset push hl ld h,d ld l,e add hl,bc ; HL = DE + offset (negative) ld c,a ld b,0 inc c ; This one never overflows so inc only C inc bc ; This one could overflow so inc as a pair ldir pop hl clean_up_and_loop: pop bc j mainloop clean_up_and_ret: pop bc ret IF OPTIMIZE=SPEED ELSE getbit_routine: getbit_code ret ENDIF endp
20.322581
105
0.670975
102b998e8c64c80777c5187330a0ca7d6a1acab5
1,146
asm
Assembly
programs/oeis/098/A098352.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/098/A098352.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/098/A098352.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A098352: Multiplication table of the even numbers read by antidiagonals. ; 4,8,8,12,16,12,16,24,24,16,20,32,36,32,20,24,40,48,48,40,24,28,48,60,64,60,48,28,32,56,72,80,80,72,56,32,36,64,84,96,100,96,84,64,36,40,72,96,112,120,120,112,96,72,40,44,80,108,128,140,144,140,128,108,80,44,48,88,120,144,160,168,168,160,144,120,88,48,52,96,132,160,180,192,196,192,180,160,132,96,52,56,104,144,176,200,216,224,224,216,200,176,144,104,56,60,112,156,192,220,240,252,256,252,240,220,192,156,112,60,64,120,168,208,240,264,280,288,288,280,264,240,208,168,120,64,68,128,180,224,260,288,308,320,324,320,308,288,260,224,180,128,68,72,136,192,240,280,312,336,352,360,360,352,336,312,280,240,192,136,72,76,144,204,256,300,336,364,384,396,400,396,384,364,336,300,256,204,144,76,80,152,216,272,320,360,392,416,432,440,440,432,416,392,360,320,272,216,152,80,84,160,228,288,340,384,420,448,468,480,484,480,468,448,420,384,340,288,228,160,84,88,168,240,304,360,408,448,480,504,520,528,528,520,504,480,448,408,360,304 add $0,1 mov $1,1 lpb $0,1 sub $0,$1 lpb $0,1 add $0,1 add $2,$1 sub $1,2 lpe add $1,$2 add $1,1 lpe sub $1,2 mul $1,4 add $1,4
60.315789
919
0.69808
964e7e9d0f1160d56cbb88514392e26d5b052461
455
asm
Assembly
programs/oeis/000/A000593.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/000/A000593.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/000/A000593.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A000593: Sum of odd divisors of n. ; 1,1,4,1,6,4,8,1,13,6,12,4,14,8,24,1,18,13,20,6,32,12,24,4,31,14,40,8,30,24,32,1,48,18,48,13,38,20,56,6,42,32,44,12,78,24,48,4,57,31,72,14,54,40,72,8,80,30,60,24,62,32,104,1,84,48,68,18,96,48,72,13,74,38,124,20,96,56,80,6,121,42,84,32,108,44,120,12,90,78,112,24,128,48,120,4,98,57,156,31 lpb $0 sub $0,1 mul $0,2 dif $0,4 lpe seq $0,203 ; a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n).
45.5
288
0.637363
7c0433965c64241c62bc79db497cbfd3ef69d2f5
1,044
asm
Assembly
UFAL/OAC/Lista 1/Q6.asm
NelsonGomesNeto/ProgramC
e743b1b869f58f7f3022d18bac00c5e0b078562e
[ "MIT" ]
3
2018-12-18T13:39:42.000Z
2021-06-23T18:05:18.000Z
UFAL/OAC/Lista 1/Q6.asm
NelsonGomesNeto/ProgramC
e743b1b869f58f7f3022d18bac00c5e0b078562e
[ "MIT" ]
1
2018-11-02T21:32:40.000Z
2018-11-02T22:47:12.000Z
UFAL/OAC/Lista 1/Q6.asm
NelsonGomesNeto/ProgramC
e743b1b869f58f7f3022d18bac00c5e0b078562e
[ "MIT" ]
6
2018-10-27T14:07:52.000Z
2019-11-14T13:49:29.000Z
# Main addi $a0, $zero, 7 # n = 7 jal fib # fib(7) add $s0, $zero, $v0 # s0 = fib(n) j END # Functions fib: addi $sp, $sp, -12 # prepare stack sw $ra, 8($sp) # save return address sw $a0, 0($sp) # save n addi $t1, $zero, 2 # t1 = 2 slt $t0, $a0, $t1 # t0 = (a < 2) beq $t0, $zero, continue # if (a >= 2) goto continue # addi $v0, $zero, 1 # v0 = 1 (IF FIRST FIB == 1) add $v0, $zero, $a0 # v0 = a0 (IF FIRST FIB == 0) jr $ra # return(1) continue: addi $a0, $a0, -1 # n -= 1 jal fib # fib(n - 1) addi $sp, $sp, 12 # pop stack add $t2, $zero, $v0 # t2 = fib(n - 1) sw $t2, 4($sp) # save return of fib(n - 1) lw $a0, 0($sp) # load prev n addi $a0, $a0, -2 # n -= 2 jal fib # fib(n - 2) addi $sp, $sp, 12 # pop stack lw $t2, 4($sp) # load return of fib(n - 1) lw $ra, 8($sp) # load prev return address add $v0, $v0, $t2 # v0 = fib(n - 2) + fib(n - 1) jr $ra # return(fib(n - 1) + fib(n - 2)) END: nop
29
57
0.464559
f5897aa2d5480b812fddccf4a61e0ed64f79f3d7
1,417
asm
Assembly
programs/oeis/185/A185270.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/185/A185270.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/185/A185270.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A185270: a(n) = 648 * n^6. ; 0,648,41472,472392,2654208,10125000,30233088,76236552,169869312,344373768,648000000,1147971528,1934917632,3127772232,4879139328,7381125000,10871635968,15641144712,22039921152,30485730888,41472000000,55576446408,73470177792,95927256072,123834728448,158203125000,200177422848,251048476872,312264916992,385445512008,472392000000,575102385288,695784701952,836871243912,1001033261568,1191196125000,1410554953728,1662590713032,1951086776832,2280145957128,2654208000000,3078067548168,3556892570112,4096243255752,4702091378688,5380840125000,6139344388608,6984931533192,7925422620672,8969154106248,10125000000000,11402394495048,12811355062272,14362506011592,16067102519808,17937055125000,19984954687488,22224097817352,24668512768512,27332985799368,30233088000000,33385202585928,36806552658432,40515229431432,44530220924928,48871441125000,53559759610368,58617031645512,64066128740352,69930969676488,76236552000000,83008983980808,90275517038592,98064578635272,106405805634048,115330078125000,124869553717248,135057702297672,145929341256192,157520671177608,169869312000000,183014339639688,196996323082752,211857361943112,227641124487168,244392886125000,262159568368128,280989778253832,300933848236032,322043876542728,344373768000000,367979275322568,392918040870912,419249638874952,447035618124288,476339545125000,507227047723008,539765859193992,574025862799872,610079136811848 pow $0,6 mul $0,648
236.166667
1,366
0.91108
f038f70ebc1ae1437cb45750ec02f7d372591db2
3,535
asm
Assembly
Driver/Printer/DotMatrix/Red64/red64Manager.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Driver/Printer/DotMatrix/Red64/red64Manager.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Driver/Printer/DotMatrix/Red64/red64Manager.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: Canon Redwood 64-jet printer driver FILE: red64Manager.asm AUTHOR: Dave Durran REVISION HISTORY: Name Date Description ---- ---- ----------- Dave 11/92 Initial version DESCRIPTION: This file contains the source for the canon 64-pin printer driver $Id: red64Manager.asm,v 1.1 97/04/18 11:55:01 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%} ;-------------------------------------- ; Include files ;-------------------------------------- include printcomInclude.def include initfile.def include timedate.def include Internal/redPrint.def ;------------------------------------------------------------------------------ ; Constants and Macros ;------------------------------------------------------------------------------ include red64Constant.def include printcomMacro.def include printcom1ASF.rdef ;------------------------------------------------------------------------------ ; Driver Info Table ;------------------------------------------------------------------------------ idata segment ; MODULE_FIXED DriverTable DriverExtendedInfoStruct \ < <Entry:DriverStrategy, ; DIS_strategy mask DA_HAS_EXTENDED_INFO, ; DIS_driverAttributes DRIVER_TYPE_PRINTER >, ; DIS_driverType handle DriverInfo ; DEIS_resource > public DriverTable idata ends ;------------------------------------------------------------------------------ ; Entry Code ;------------------------------------------------------------------------------ Entry segment resource ; MODULE_FIXED include printcomEntry.asm ; entry point, misc bookeeping routines include printcomInfo.asm ; various info getting/setting routines include printcomAdmin.asm ; misc init routines include printcomTables.asm ; module jump table for driver calls include red64EscapeTab.asm ; module jump table for driver escape calls Entry ends ;------------------------------------------------------------------------------ ; Driver code ;------------------------------------------------------------------------------ CommonCode segment resource ; MODULE_STANDARD include printcomNoStyles.asm ; code to implement Style setting routines include printcomNoColor.asm ; code to implement Color routines include printcomPaperOnlyDialog.asm ; code to implement UI setting include red64Stream.asm ; code to talk with the stream driver include red64Cursor.asm ; code for CanonBJ Cursor routines include red64Job.asm ; StartJob/EndJob/SetPaperpath routines include red64Page.asm ; code to implement Page routines include red64Graphics.asm ; code for Canon BJ graphics routines include red64Text.asm ; Text setting routines include red64Buffer.asm ; code to deal with graphic print buffers include red64ControlCodes.asm ; Escape and control codes include red64Escapes.asm ;routines to do the escape calls CommonCode ends ;------------------------------------------------------------------------------ ; Device Info Resources (each in their own resource) ;------------------------------------------------------------------------------ include red64DriverInfo.asm ; overall driver info include red64BaseInfo.asm ; specific info for base printer end
33.990385
80
0.521641
7f8f8829bc49d6e8e9dd9d9e05386b2b4423f6bc
11,519
asm
Assembly
sha256_mb/sha256_mb_x4_avx.asm
intelkevinputnam/isa-l_crypto
99d3b44924279c4f82108a035dc8d91062a54446
[ "BSD-3-Clause" ]
178
2019-05-07T21:09:12.000Z
2022-03-24T06:17:51.000Z
sha256_mb/sha256_mb_x4_avx.asm
intelkevinputnam/isa-l_crypto
99d3b44924279c4f82108a035dc8d91062a54446
[ "BSD-3-Clause" ]
761
2019-05-13T09:35:59.000Z
2022-03-31T18:18:06.000Z
sha256_mb/sha256_mb_x4_avx.asm
intelkevinputnam/isa-l_crypto
99d3b44924279c4f82108a035dc8d91062a54446
[ "BSD-3-Clause" ]
57
2019-05-30T13:41:29.000Z
2022-02-20T17:13:01.000Z
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2016 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 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 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 ; OWNER 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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; %include "sha256_mb_mgr_datastruct.asm" %include "reg_sizes.asm" [bits 64] default rel section .text ;; code to compute quad SHA256 using AVX ;; Logic designed/laid out by JDG ; transpose r0, r1, r2, r3, t0, t1 ; "transpose" data in {r0..r3} using temps {t0..t3} ; Input looks like: {r0 r1 r2 r3} ; r0 = {a3 a2 a1 a0} ; r1 = {b3 b2 b1 b0} ; r2 = {c3 c2 c1 c0} ; r3 = {d3 d2 d1 d0} ; ; output looks like: {t0 r1 r0 r3} ; t0 = {d0 c0 b0 a0} ; r1 = {d1 c1 b1 a1} ; r0 = {d2 c2 b2 a2} ; r3 = {d3 c3 b3 a3} ; %macro TRANSPOSE 6 %define %%r0 %1 %define %%r1 %2 %define %%r2 %3 %define %%r3 %4 %define %%t0 %5 %define %%t1 %6 vshufps %%t0, %%r0, %%r1, 0x44 ; t0 = {b1 b0 a1 a0} vshufps %%r0, %%r0, %%r1, 0xEE ; r0 = {b3 b2 a3 a2} vshufps %%t1, %%r2, %%r3, 0x44 ; t1 = {d1 d0 c1 c0} vshufps %%r2, %%r2, %%r3, 0xEE ; r2 = {d3 d2 c3 c2} vshufps %%r1, %%t0, %%t1, 0xDD ; r1 = {d1 c1 b1 a1} vshufps %%r3, %%r0, %%r2, 0xDD ; r3 = {d3 c3 b3 a3} vshufps %%r0, %%r0, %%r2, 0x88 ; r0 = {d2 c2 b2 a2} vshufps %%t0, %%t0, %%t1, 0x88 ; t0 = {d0 c0 b0 a0} %endmacro %define TABLE K256_4_MB %define SZ 4 %define SZ4 4*SZ %define ROUNDS 64*SZ4 %define a xmm0 %define b xmm1 %define c xmm2 %define d xmm3 %define e xmm4 %define f xmm5 %define g xmm6 %define h xmm7 %define a0 xmm8 %define a1 xmm9 %define a2 xmm10 %define TT0 xmm14 %define TT1 xmm13 %define TT2 xmm12 %define TT3 xmm11 %define TT4 xmm10 %define TT5 xmm9 %define T1 xmm14 %define TMP xmm15 %macro ROTATE_ARGS 0 %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, TMP %endmacro ; PRORD_nd dst, src, amt %macro PRORD_nd 3 PRORD_nd %1, %3, TMP, %2 %endmacro ;; arguments passed implicitly in preprocessor symbols i, a...h %macro ROUND_00_15 2 %define %%T1 %1 %define %%i %2 PRORD_nd a0, e, (11-6) ; sig1: a0 = (e >> 5) vpxor a2, f, g ; ch: a2 = f^g vpand a2, e ; ch: a2 = (f^g)&e vpxor a2, g ; a2 = ch PRORD_nd a1, e, 25 ; sig1: a1 = (e >> 25) vmovdqa [SZ4*(%%i&0xf) + rsp], %%T1 vpaddd %%T1, %%T1, [TBL + ROUND] ; T1 = W + K vpxor a0, a0, e ; sig1: a0 = e ^ (e >> 5) PRORD a0, 6 ; sig1: a0 = (e >> 6) ^ (e >> 11) vpaddd h, h, a2 ; h = h + ch PRORD_nd a2, a, (13-2) ; sig0: a2 = (a >> 11) vpaddd h, h, %%T1 ; h = h + ch + W + K vpxor a0, a0, a1 ; a0 = sigma1 PRORD_nd a1, a, 22 ; sig0: a1 = (a >> 22) vpxor %%T1, a, c ; maj: T1 = a^c add ROUND, SZ4 ; ROUND++ vpand %%T1, %%T1, b ; maj: T1 = (a^c)&b vpaddd h, h, a0 vpaddd d, d, h vpxor a2, a2, a ; sig0: a2 = a ^ (a >> 11) PRORD a2, 2 ; sig0: a2 = (a >> 2) ^ (a >> 13) vpxor a2, a2, a1 ; a2 = sig0 vpand a1, a, c ; maj: a1 = a&c vpor a1, a1, %%T1 ; a1 = maj vpaddd h, h, a1 ; h = h + ch + W + K + maj vpaddd h, h, a2 ; h = h + ch + W + K + maj + sigma0 ROTATE_ARGS %endm ;; arguments passed implicitly in preprocessor symbols i, a...h %macro ROUND_16_XX 2 %define %%T1 %1 %define %%i %2 vmovdqa %%T1, [SZ4*((%%i-15)&0xf) + rsp] vmovdqa a1, [SZ4*((%%i-2)&0xf) + rsp] vmovdqa a0, %%T1 PRORD %%T1, 18-7 vmovdqa a2, a1 PRORD a1, 19-17 vpxor %%T1, %%T1, a0 PRORD %%T1, 7 vpxor a1, a1, a2 PRORD a1, 17 vpsrld a0, a0, 3 vpxor %%T1, %%T1, a0 vpsrld a2, a2, 10 vpxor a1, a1, a2 vpaddd %%T1, %%T1, [SZ4*((%%i-16)&0xf) + rsp] vpaddd a1, a1, [SZ4*((%%i-7)&0xf) + rsp] vpaddd %%T1, %%T1, a1 ROUND_00_15 %%T1, %%i %endm %define DIGEST_SIZE 8*SZ4 %define DATA 16*SZ4 %define ALIGNMENT 1*8 ; ALIGNMENT makes FRAMESZ + pushes an odd multiple of 8 %define FRAMESZ (DATA + DIGEST_SIZE + ALIGNMENT) %define _DIGEST (DATA) %define VMOVPS vmovups %define inp0 r8 %define inp1 r9 %define inp2 r10 %define inp3 r11 %ifidn __OUTPUT_FORMAT__, elf64 ; Linux definitions %define arg1 rdi %define arg2 rsi %else ; Windows definitions %define arg1 rcx %define arg2 rdx %endif ; Common definitions %define IDX rax %define ROUND rbx %define TBL r12 ;; void sha256_mb_x4_avx(SHA256_MB_ARGS_X8 *args, uint64_t len); ;; arg 1 : arg1 : pointer args (only 4 of the 8 lanes used) ;; arg 2 : arg2 : size of data in blocks (assumed >= 1) ;; ;; Clobbers registers: arg2, rax, rbx, r8-r12, xmm0-xmm15 ;; mk_global sha256_mb_x4_avx, function, internal align 32 sha256_mb_x4_avx: endbranch sub rsp, FRAMESZ ;; Initialize digests vmovdqa a,[arg1+0*SZ4] vmovdqa b,[arg1+1*SZ4] vmovdqa c,[arg1+2*SZ4] vmovdqa d,[arg1+3*SZ4] vmovdqa e,[arg1+4*SZ4] vmovdqa f,[arg1+5*SZ4] vmovdqa g,[arg1+6*SZ4] vmovdqa h,[arg1+7*SZ4] lea TBL,[TABLE] ;; transpose input onto stack mov inp0,[arg1 + _data_ptr + 0*8] mov inp1,[arg1 + _data_ptr + 1*8] mov inp2,[arg1 + _data_ptr + 2*8] mov inp3,[arg1 + _data_ptr + 3*8] xor IDX, IDX lloop: xor ROUND, ROUND ;; save old digest vmovdqa [rsp + _DIGEST + 0*SZ4], a vmovdqa [rsp + _DIGEST + 1*SZ4], b vmovdqa [rsp + _DIGEST + 2*SZ4], c vmovdqa [rsp + _DIGEST + 3*SZ4], d vmovdqa [rsp + _DIGEST + 4*SZ4], e vmovdqa [rsp + _DIGEST + 5*SZ4], f vmovdqa [rsp + _DIGEST + 6*SZ4], g vmovdqa [rsp + _DIGEST + 7*SZ4], h %assign i 0 %rep 4 vmovdqa TMP, [PSHUFFLE_BYTE_FLIP_MASK] VMOVPS TT2,[inp0+IDX+i*16] VMOVPS TT1,[inp1+IDX+i*16] VMOVPS TT4,[inp2+IDX+i*16] VMOVPS TT3,[inp3+IDX+i*16] TRANSPOSE TT2, TT1, TT4, TT3, TT0, TT5 vpshufb TT0, TT0, TMP vpshufb TT1, TT1, TMP vpshufb TT2, TT2, TMP vpshufb TT3, TT3, TMP ROUND_00_15 TT0,(i*4+0) ROUND_00_15 TT1,(i*4+1) ROUND_00_15 TT2,(i*4+2) ROUND_00_15 TT3,(i*4+3) %assign i (i+1) %endrep add IDX, 4*4*4 %assign i (i*4) jmp Lrounds_16_xx align 16 Lrounds_16_xx: %rep 16 ROUND_16_XX T1, i %assign i (i+1) %endrep cmp ROUND,ROUNDS jb Lrounds_16_xx ;; add old digest vpaddd a, a, [rsp + _DIGEST + 0*SZ4] vpaddd b, b, [rsp + _DIGEST + 1*SZ4] vpaddd c, c, [rsp + _DIGEST + 2*SZ4] vpaddd d, d, [rsp + _DIGEST + 3*SZ4] vpaddd e, e, [rsp + _DIGEST + 4*SZ4] vpaddd f, f, [rsp + _DIGEST + 5*SZ4] vpaddd g, g, [rsp + _DIGEST + 6*SZ4] vpaddd h, h, [rsp + _DIGEST + 7*SZ4] sub arg2, 1 jne lloop ; write digests out vmovdqa [arg1+0*SZ4],a vmovdqa [arg1+1*SZ4],b vmovdqa [arg1+2*SZ4],c vmovdqa [arg1+3*SZ4],d vmovdqa [arg1+4*SZ4],e vmovdqa [arg1+5*SZ4],f vmovdqa [arg1+6*SZ4],g vmovdqa [arg1+7*SZ4],h ; update input pointers add inp0, IDX mov [arg1 + _data_ptr + 0*8], inp0 add inp1, IDX mov [arg1 + _data_ptr + 1*8], inp1 add inp2, IDX mov [arg1 + _data_ptr + 2*8], inp2 add inp3, IDX mov [arg1 + _data_ptr + 3*8], inp3 ;;;;;;;;;;;;;;;; ;; Postamble add rsp, FRAMESZ ret section .data align=64 align 64 TABLE: dq 0x428a2f98428a2f98, 0x428a2f98428a2f98 dq 0x7137449171374491, 0x7137449171374491 dq 0xb5c0fbcfb5c0fbcf, 0xb5c0fbcfb5c0fbcf dq 0xe9b5dba5e9b5dba5, 0xe9b5dba5e9b5dba5 dq 0x3956c25b3956c25b, 0x3956c25b3956c25b dq 0x59f111f159f111f1, 0x59f111f159f111f1 dq 0x923f82a4923f82a4, 0x923f82a4923f82a4 dq 0xab1c5ed5ab1c5ed5, 0xab1c5ed5ab1c5ed5 dq 0xd807aa98d807aa98, 0xd807aa98d807aa98 dq 0x12835b0112835b01, 0x12835b0112835b01 dq 0x243185be243185be, 0x243185be243185be dq 0x550c7dc3550c7dc3, 0x550c7dc3550c7dc3 dq 0x72be5d7472be5d74, 0x72be5d7472be5d74 dq 0x80deb1fe80deb1fe, 0x80deb1fe80deb1fe dq 0x9bdc06a79bdc06a7, 0x9bdc06a79bdc06a7 dq 0xc19bf174c19bf174, 0xc19bf174c19bf174 dq 0xe49b69c1e49b69c1, 0xe49b69c1e49b69c1 dq 0xefbe4786efbe4786, 0xefbe4786efbe4786 dq 0x0fc19dc60fc19dc6, 0x0fc19dc60fc19dc6 dq 0x240ca1cc240ca1cc, 0x240ca1cc240ca1cc dq 0x2de92c6f2de92c6f, 0x2de92c6f2de92c6f dq 0x4a7484aa4a7484aa, 0x4a7484aa4a7484aa dq 0x5cb0a9dc5cb0a9dc, 0x5cb0a9dc5cb0a9dc dq 0x76f988da76f988da, 0x76f988da76f988da dq 0x983e5152983e5152, 0x983e5152983e5152 dq 0xa831c66da831c66d, 0xa831c66da831c66d dq 0xb00327c8b00327c8, 0xb00327c8b00327c8 dq 0xbf597fc7bf597fc7, 0xbf597fc7bf597fc7 dq 0xc6e00bf3c6e00bf3, 0xc6e00bf3c6e00bf3 dq 0xd5a79147d5a79147, 0xd5a79147d5a79147 dq 0x06ca635106ca6351, 0x06ca635106ca6351 dq 0x1429296714292967, 0x1429296714292967 dq 0x27b70a8527b70a85, 0x27b70a8527b70a85 dq 0x2e1b21382e1b2138, 0x2e1b21382e1b2138 dq 0x4d2c6dfc4d2c6dfc, 0x4d2c6dfc4d2c6dfc dq 0x53380d1353380d13, 0x53380d1353380d13 dq 0x650a7354650a7354, 0x650a7354650a7354 dq 0x766a0abb766a0abb, 0x766a0abb766a0abb dq 0x81c2c92e81c2c92e, 0x81c2c92e81c2c92e dq 0x92722c8592722c85, 0x92722c8592722c85 dq 0xa2bfe8a1a2bfe8a1, 0xa2bfe8a1a2bfe8a1 dq 0xa81a664ba81a664b, 0xa81a664ba81a664b dq 0xc24b8b70c24b8b70, 0xc24b8b70c24b8b70 dq 0xc76c51a3c76c51a3, 0xc76c51a3c76c51a3 dq 0xd192e819d192e819, 0xd192e819d192e819 dq 0xd6990624d6990624, 0xd6990624d6990624 dq 0xf40e3585f40e3585, 0xf40e3585f40e3585 dq 0x106aa070106aa070, 0x106aa070106aa070 dq 0x19a4c11619a4c116, 0x19a4c11619a4c116 dq 0x1e376c081e376c08, 0x1e376c081e376c08 dq 0x2748774c2748774c, 0x2748774c2748774c dq 0x34b0bcb534b0bcb5, 0x34b0bcb534b0bcb5 dq 0x391c0cb3391c0cb3, 0x391c0cb3391c0cb3 dq 0x4ed8aa4a4ed8aa4a, 0x4ed8aa4a4ed8aa4a dq 0x5b9cca4f5b9cca4f, 0x5b9cca4f5b9cca4f dq 0x682e6ff3682e6ff3, 0x682e6ff3682e6ff3 dq 0x748f82ee748f82ee, 0x748f82ee748f82ee dq 0x78a5636f78a5636f, 0x78a5636f78a5636f dq 0x84c8781484c87814, 0x84c8781484c87814 dq 0x8cc702088cc70208, 0x8cc702088cc70208 dq 0x90befffa90befffa, 0x90befffa90befffa dq 0xa4506ceba4506ceb, 0xa4506ceba4506ceb dq 0xbef9a3f7bef9a3f7, 0xbef9a3f7bef9a3f7 dq 0xc67178f2c67178f2, 0xc67178f2c67178f2 PSHUFFLE_BYTE_FLIP_MASK: dq 0x0405060700010203, 0x0c0d0e0f08090a0b
26.664352
72
0.697543
3d8623b2b0b246bf61d9a347f93e8d3e2831d368
531
asm
Assembly
oeis/111/A111230.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/111/A111230.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/111/A111230.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A111230: Numbers n such that 5*n + 14 is prime. ; Submitted by Jon Maiga ; 1,3,9,13,15,19,25,27,33,37,43,45,51,67,69,73,75,79,81,85,87,93,97,99,111,117,121,129,139,141,145,151,159,163,165,169,181,183,199,201,205,207,211,219,223,243,247,249,253,255,261,277,279,283,285,289,295,297 mov $1,8 mov $2,$0 add $2,2 pow $2,2 lpb $2 add $1,10 sub $2,1 mov $3,$1 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 sub $0,11 div $0,5
23.086957
206
0.638418
673de186237f453367cb85c5c9c4d59eeae4f64c
844
asm
Assembly
oeis/142/A142325.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142325.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142325.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142325: Primes congruent to 26 mod 45. ; Submitted by Simon Strandgaard ; 71,251,431,521,701,881,971,1061,1151,1511,1601,1871,2141,2411,2591,2861,3041,3221,3491,3581,3671,3761,3851,4211,4391,4481,4751,4931,5021,5381,5471,5651,5741,6011,6101,6551,6911,7001,7451,7541,7901,8081,8171,9161,9341,9431,9521,9791,10061,10151,10331,10601,10691,10781,11321,11411,11681,12041,12401,12491,12671,12941,13121,13751,13841,13931,14561,14741,14831,15101,15461,15551,15641,15731,16001,16091,16361,16451,16631,16811,16901,17351,17891,17981,18251,18341,18521,18701,19421,19961,20051,20231 mov $1,35 mov $2,$0 add $2,2 pow $2,2 lpb $2 sub $2,2 mov $3,$1 mul $3,2 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,45 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 sub $0,80 mul $0,2 add $0,71
33.76
497
0.726303
ee58008cfbcb32d924463e199e433c2b86796900
595
asm
Assembly
oeis/049/A049637.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/049/A049637.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/049/A049637.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A049637: Congruent to 2, 3, 6, 8, 10 or 12 mod 13, but not equal to 3. ; Submitted by Jamie Morken(s4) ; 2,6,8,10,12,15,16,19,21,23,25,28,29,32,34,36,38,41,42,45,47,49,51,54,55,58,60,62,64,67,68,71,73,75,77,80,81,84,86,88,90,93,94,97,99,101,103,106,107,110,112,114,116,119,120,123,125,127,129,132,133,136,138,140,142,145,146,149,151,153,155,158,159,162,164,166,168,171,172,175,177,179,181,184,185,188,190,192,194,197,198,201,203,205,207,210,211,214,216,218 add $0,1 mov $1,$0 lpb $1 mov $2,$1 mov $1,1 mul $2,2 seq $2,187323 ; Floor(n/2)+floor(n/3)+floor(n/4). lpe mov $0,$2 add $0,2
39.666667
353
0.665546
13d404554f2b1d3eda9cc0cb22834ce8f32f0c59
13,518
asm
Assembly
spriteRoutines.asm
RevolutionSoftware/Juego
31c1706e41713e9bcf631f369b89ce1f94bef0d5
[ "Unlicense" ]
1
2021-09-18T21:02:45.000Z
2021-09-18T21:02:45.000Z
spriteRoutines.asm
RevolutionSoftware/Juego
31c1706e41713e9bcf631f369b89ce1f94bef0d5
[ "Unlicense" ]
null
null
null
spriteRoutines.asm
RevolutionSoftware/Juego
31c1706e41713e9bcf631f369b89ce1f94bef0d5
[ "Unlicense" ]
null
null
null
;playerSprite: pointer to first sprite. each player direction has 3 sprites and 3 masks, all 16x16. ;playerDir: direction value between 0 & 3 ;playerY: player's y coordinate on screen (range between $10-$20) ;playerX: x coord (range: $10-$40 or $20-$30, haven't decided yet) drawPlayer: call drawPlayer_call ;check if the tile below is a masked tile or not ld a,(mapWidth) ld h,a ld a,(playerY) ;tile at player's head ld e,a call multEH ld de,mapBuffer add hl,de ld de,(playerX) ld d,0 add hl,de ;hl = location in map push hl ;find position in gbuf exx ld hl,yCoord ld a,(playerY) sub (hl) add a,a add a,a add a,a add a,a ;x 16 ld e,a ;de = y offset on screen ld d,0 ld hl,xCoord ld a,(playerX) sub (hl) add a,a ld l,e ld h,d add hl,hl add hl,de add hl,hl add hl,de add hl,hl ;x14 ld e,a add hl,de ld de,gbuf add hl,de ld de,13 exx ;check if it's a bridge-masked brush call retrieveBrush ld a,(hl) bit 3,a call nz,drawTileMask check2ndTile: pop hl ;map location push hl inc hl ;next map square exx inc hl inc hl ;move two bytes over in gbuf exx call retrieveBrush ld a,(hl) bit 3,a call nz,drawTileMask ;checkTileLeftFeet pop hl ld de,(mapWidth) ld d,0 add hl,de push hl exx ld bc,(14*16)-2 add hl,bc ;next row in gbuf exx call retrieveBrush ld a,(hl) and %1100 call nz,drawTileMask pop hl inc hl exx inc hl inc hl exx call retrieveBrush ld a,(hl) and %1100 ret z drawTileMask: exx push hl exx inc hl ld e,(hl) ;sprite id inc hl xor a ld bc,maskTiles ld l,(hl) ;mask ld h,a ;h=0 add hl,hl ;x2 add hl,hl ;x4 add hl,hl ;x8 add hl,hl ;x16 add hl,hl ;x32 add hl,bc ;points to first byte in mask push hl pop ix ;ix=first byte in mask ld bc,(tileData_inout) ld l,e ;sprite id ld h,a ;h=0 add hl,hl ;x2 add hl,hl ;x4 add hl,hl ;x8 add hl,hl ;x16 add hl,hl ;x32 add hl,bc ;points to first byte in sprite ld b,16 ;16 filas en sprite ;hl = sprite ;ix = mask ;hl' = gbuf drawSpriteMasked: ld a,(ix) inc ix exx ;change to shadow vars and (hl) ;mask the gbuf exx or (hl) ;tilesprite inc hl exx ld (hl),a inc hl ;proximo byte en gbuf exx ld a,(ix) inc ix exx and (hl) ;mask exx or (hl) ;tileSprite inc hl ;2nd set (pixels are 16x16: 2 bytes wide) exx ld (hl),a add hl,de ;bajar a la proxima fila exx djnz drawSpriteMasked exx pop hl ;restore gbuf location exx ret drawPlayer_call: ex af,af' xor a ;offset Y del jugador a añadir ex af,af' ld hl,playerAnimation ld a,(flechaPulsada) ;si una flecha está pulsada o no inc (hl) or a jr nz,$+4 ;si no flecha pulsada ld (hl),2 jr z,pNoMove ld hl,(battleCounter) ;count down to a wild battle ld a,(pulsado) ld c,a ld b,0 sbc hl,bc jr nc,$+3 inc hl ld (battleCounter),hl pNoMove: ld a,(playerAnimation) ld bc,64 ;cada sprite = 64 bytes ld hl,playerSprite and %00001100 ;sólo nos importan estos dos bits bit 2,a ;esencialmente: %1000 y %0000 mostraremos la postura "normal" jr z,normalStance ; %0100 mostraremos la primera animación, y %1100 la segunda. add hl,bc ;1ª animacion así, mostramos 1. %0000 normal, 2. %0100 primera animación ex af,af' ; 3. %1000 postura normal, y 4. %1100 segunda animación. dec a ex af,af' bit 3,a jr z,$+3 add hl,bc ;2ª (recuerda, bc= 64, cada sprite con su máscara = 64 bytes normalStance: push hl pop ix ;dirección de sprite en ix ld a,(playerDir) ld b,a ld de,32*2*3 ;cada direccion tiene 3 sprites con sus mascaras or a jp z,$+7 ;si playerDir=0, saltar el djnz add ix,de djnz $-2 ld hl,yCoord ld a,(playerY) sub (hl) add a,a add a,a add a,a add a,a ;x16 ld b,a ld a,(playerYOff) add a,b ld e,a ex af,af' add a,e ;más arriba hay un xor a y luego un dec a. el dec a pondrá a a -1 sólo cuando ld e,a ; el personaje está en una de las animaciones (1ª o 2ª) ex af,af' call revYFuera jp m,endPlayerSprite ;esto a lo mejor no es necesario porque no creo que se salga nunca completamente de la pantalla, pero... ;revYFuera deja h y d con un valor de cero ld l,e add hl,hl ;y*2 add hl,de ;y*3 add hl,hl ;y*6 add hl,de ;y*7 add hl,hl ;y*14 ld de,gbuf+2 ;86EC add hl,de ld a,(xCoord) ld b,a ld a,(playerX) sub b ;playerX-xCoord ld e,a sla e ld a,(playerXOff) cp 8 jr c,$+3 inc e ;if XOff >= 8, move one byte over ld d,0 add hl,de ;hl = starting point in gbuf and $7 ld b,a call drawPlayerSprite endPlayerSprite: ret ;entrada: ; e = y coord ;salida: ; c = número de filas del sprite a dibujar ; ix = primera fila a dibuja ; e = y coord (0) ;destruye: ; h = 0 ; d = 0 ; a revYFuera: ld h,0 ld d,h ;ld d,0 ld c,16 ;c=altura de sprite, en pixeles ld a,e ;a=y coord or a ret p ;saltar si y coord es positivo dec c add a,c ;si el sprite está fuera de pantalla... ret m ;...no dibujar inc a ;porque c tenía que ser 16, pero no quería comprobar si a era negativo o cero ld c,a ;16-número de pixeles fuera de la pantalla ld a,e ;cargar de nuevo valor y neg ;*-1 add a,a ;x2, porque cada fila del sprite tiene dos bytes ld e,a add ix,de ;saltar al primer byte del sprite a mostrar ld e,h ;e=0, no queremos dibujar el sprite fuera de la pantalla ret ;ix = player sprite ;ix+32 = player sprite mask ;b = x ;e = y dibSprite: call revYFuera ;revisar y coord para ver si está fuera de pantalla ret m ;si es negativo, está completamente fuera de la pantalla dS_positive ; y * 12 ld l,e ;hl=de add hl, hl ; 2 add hl, de ; 3 add hl, hl ; 6 add hl, hl ; 12 ; x / 8 ld a,b srl b srl b srl b ld e,b add hl, de ; A present on a le decalage dans hl ld de,gbuf+2 ; Prendre le debut du graphbuffer add hl, de ; Puis ajouter le decalage and $07 ld b,a ;b=xoff drawPlayerSprite: drawPlayerSpriteLoop: push bc drawPlayerRow ld d,(ix+32) ;sprite mask ld e,(ix+33) ld a,$ff dec b \ inc b \ jr z,skipMaskClip ;si b=0 scf \ rr d \ rr e \ rra \ djnz $-6 ;rotate mask skipMaskClip: and (hl) ld (hl),a dec hl ld a,(hl) and e ld (hl),a dec hl ld a,(hl) and d ld (hl),a pop bc inc hl inc hl push bc ld d,(ix) ;sprite ld e,(ix+1) xor a cp b jp z,skipSpriteClip srl d \ rr e \ rra \ djnz $-5 ;rotate sprite skipSpriteClip: or (hl) ld (hl),a dec hl ld a,(hl) or e ld (hl),a dec hl ld a,(hl) or d ld (hl),a inc ix inc ix ld de,16 add hl,de pop bc dec c jp nz, drawPlayerSpriteLoop ret ; a = x ; e = y ; ix = sprite ; (b = hauteur du sprite) putSprite: ld b, 8 ; Sprite 8 de hauteur putSprite_var: ;adjust for the x/yOffset ld c,a ld a,(yOff) add a,e ld e,a ld a,(xOff) add a,c ld h,0 ld d,h ;d & h = 0 ; y * 14 ld l,e add hl, hl ; 2 add hl, de ; 3 add hl, hl ; 6 add hl, de ; 7 add hl, hl ; 14 ; x / 8 ld e, a srl e srl e srl e add hl,de ; A present on a le decalage dans hl ld de,gbuf ; Prendre le debut du graphbuffer add hl,de ; Puis ajouter le decalage and $07 ; %0000111 pour en tirer l'offset x ld c,a ; Sauver dans c or a ; aligné ? jr nz,dso_non_aligne dso_aligne: ld de,14 dso_aligne_loop: ld a,(ix) xor (hl) ;hl = octet dans gbuf ld (hl),a ;écrire le nouvel octet ! inc ix ;prochain octet du sprite add hl,de ;prochain rang dans gbuf djnz dso_aligne_loop ret ; a= decalage dso_non_aligne: ld de,13 dso_non_aligne_loop: push bc ld b, c ; On va utiliser le nombre de rotations comme compteur ld a, (ix) ; L'octet qu'il faut decaler inc ix ld c, d ; mettre c à 0 dso_shift_loop: ; carry = 0 (regarder le inc ix) rra ; Decaler a vers la droite et ce qui sort va en carry rr c ; Injecter la carry dans c djnz dso_shift_loop xor (hl) ld (hl), a ; Ecrire le premier octet inc hl ; Avancer d'un cran ld a, c xor (hl) ld (hl), a ; Ecrire le second octet add hl, de ; prochain rang du gbuf pop bc djnz dso_non_aligne_loop ret ;l = y ;a = x ;ix = sprite putSpriteMasked: ld b,7 putSpriteMasked_var: ld h,0 ld e,l ld d,h ;ld de,hl add hl, hl ;x2 add hl, de ;x3 add hl, hl ;x6 add hl, de ;x7 add hl, hl ;x14 ld e,a ;guardar e en a para sacar el offset x srl e srl e srl e ;/8 add hl,de ld de,gbuf add hl,de ld (cursorGbufLoc),hl push hl push bc ex af,af' ;copy the bytes beneath the cursor ld a,b ;sprite height ld de,cursorGbufSave ldi ;load gbuf into gbuf buffer (:P) ldi ;guardar dos bytes debajo del cursor ld bc,12 add hl,bc ;próxima fila del gbuf dec a jr nz,$-9 ex af,af' pop bc pop hl and $07 ;x offset ld c,a or a ;si x offset=0, significa que el sprite está alineado jr nz,maskedNotAlignedLoop ld de,14 maskedAlignedLoop: ld a,(hl) and (ix+7) xor (ix) ld (hl),a ;guardar inc ix ;próximo byte add hl,de ;próxima fila del gbuf djnz maskedAlignedLoop ret maskedNotAlignedLoop: push bc ;b = número de iteraciones restantes, c = xoffset ld b,c ld a,(ix+7) ;máscara ld c,$FF ;dummy byte ld d,(ix) ld e,0 mNARotate: scf rra ;a = mask rr c ;c = overflow srl d ;d = sprite byte rr e ;e = sprite overflow djnz mNARotate ;mask = ac ;sprite = de and (hl) xor d ld (hl),a ;primer byte inc hl ld a,c and (hl) xor e ld (hl),a ;segundo byte del sprite ld de,13 add hl,de ;próxima fila inc ix pop bc djnz maskedNotAlignedLoop ret ;a = sprite height restoreGbuf: ld hl,cursorGbufSave ld de,(cursorGbufLoc) ldi ;load gbuf into gbuf buffer (:P) ldi ;guardar dos bytes debajo del cursor ld bc,12 ex de,hl add hl,bc ;próxima fila del gbuf ex de,hl dec a jr nz,$-11 ret playerSprite: ;########################_izquierda################################# .db $0F,$E0,$10,$10,$38,$08,$3F,$F8,$2F,$F8,$33,$F8,$21,$F8,$13,$EC .db $0F,$68,$07,$40,$0C,$C0,$0C,$A0,$13,$10,$10,$08,$1C,$18,$0F,$F0 ;mascara .db $F0,$1F,$E0,$0F,$C0,$07,$C0,$07,$C0,$07,$C0,$07,$C0,$07,$E0,$13 .db $F0,$97,$F8,$BF,$F0,$3F,$F0,$1F,$E0,$0F,$E0,$07,$E0,$07,$F0,$0F ;izq 1 .db $0F,$E0,$10,$10,$38,$08,$3F,$F8,$2F,$F8,$33,$F8,$21,$F8,$13,$E4 .db $0E,$D0,$15,$20,$1B,$20,$08,$D0,$10,$18,$28,$14,$24,$24,$1B,$D8 ;mascara .db $F0,$1F,$E0,$0F,$C0,$07,$C0,$07,$C0,$07,$C0,$07,$C0,$07,$E0,$1B .db $F0,$2F,$E0,$1F,$E0,$1F,$F0,$0F,$E0,$07,$C0,$03,$C0,$03,$E4,$27 ;izq 2 .db $0F,$E0,$10,$10,$38,$08,$3F,$F8,$2F,$F8,$33,$FA,$21,$FC,$13,$F0 .db $0E,$68,$13,$D0,$12,$30,$0C,$10,$10,$18,$28,$14,$24,$24,$1B,$D8 ;mascara .db $F0,$1F,$E0,$0F,$C0,$07,$C0,$07,$C0,$07,$C0,$05,$C0,$03,$E0,$0F .db $F0,$17,$E0,$0F,$E0,$0F,$F0,$0F,$E0,$07,$C0,$03,$C0,$03,$E4,$27 ;########################_derecha_################################## .db $07,$F0,$08,$08,$10,$1C,$1F,$FC,$1F,$F4,$1F,$CC,$1F,$84,$37,$C8 .db $16,$F0,$02,$E0,$03,$30,$05,$30,$08,$C8,$10,$08,$18,$38,$0F,$F0 ;mascara .db $F8,$0F,$F0,$07,$E0,$03,$E0,$03,$E0,$03,$E0,$03,$E0,$03,$C8,$07 .db $E9,$0F,$FD,$1F,$FC,$0F,$F8,$0F,$F0,$07,$E0,$07,$E0,$07,$F0,$0F ;der 1 .db $07,$F0,$08,$08,$10,$1C,$1F,$FC,$1F,$F4,$1F,$CC,$1F,$84,$27,$C8 .db $0B,$70,$04,$A8,$04,$D8,$0B,$10,$18,$08,$28,$14,$24,$24,$1B,$D8 ;mascara .db $F8,$0F,$F0,$07,$E0,$03,$E0,$03,$E0,$03,$E0,$03,$E0,$03,$D8,$07 .db $F4,$0F,$F8,$07,$F8,$07,$F0,$0F,$E0,$07,$C0,$03,$C0,$03,$E4,$27 ;der 2 .db $07,$F0,$08,$08,$10,$1C,$1F,$FC,$1F,$F4,$5F,$CC,$3F,$84,$0F,$C8 .db $16,$70,$0B,$C8,$0C,$48,$08,$30,$18,$08,$28,$14,$24,$24,$1B,$D8 ;mascara .db $F8,$0F,$F0,$07,$E0,$03,$E0,$03,$E0,$03,$A0,$03,$C0,$03,$F0,$07 .db $E8,$0F,$F0,$07,$F0,$07,$F0,$0F,$E0,$07,$C0,$03,$C0,$03,$E4,$27 ;########################_abajo_#################################### .db $0F,$F0,$10,$08,$27,$E4,$38,$1C,$32,$4C,$30,$0C,$39,$9E,$67,$E2 .db $5A,$58,$27,$E4,$24,$24,$18,$18,$08,$10,$10,$08,$08,$F0,$07,$60 ;mascara .db $F0,$0F,$E0,$07,$C0,$03,$C0,$03,$C0,$03,$C0,$03,$C0,$01,$98,$1D .db $A4,$27,$C0,$03,$C0,$03,$E0,$07,$F0,$0F,$E0,$07,$F0,$0F,$F8,$9F ;abajo 1 .db $0F,$F0,$10,$08,$27,$E4,$38,$1C,$32,$4C,$30,$0E,$28,$9E,$17,$F2 .db $0E,$49,$17,$C8,$14,$30,$08,$90,$08,$50,$13,$D0,$14,$A0,$0B,$00 ;mascara .db $F0,$0F,$E0,$07,$C0,$03,$C0,$03,$C0,$03,$C0,$01,$D0,$01,$E8,$0D .db $F0,$06,$E0,$07,$E0,$0F,$F0,$0F,$F0,$0F,$E0,$0F,$E0,$5F,$F4,$FF ;abajo 2 .db $0F,$F0,$10,$08,$27,$E4,$38,$1C,$32,$4C,$30,$0C,$79,$14,$4F,$E8 .db $92,$70,$13,$E8,$0C,$28,$04,$90,$09,$08,$09,$E8,$06,$90,$00,$60 ;mascara .db $F0,$0F,$E0,$07,$C0,$03,$C0,$03,$C0,$03,$C0,$03,$80,$0B,$B0,$17 .db $60,$0F,$E0,$07,$F0,$07,$F8,$0F,$F0,$07,$F0,$07,$F9,$0F,$FF,$9F ;########################_arriba_################################### .db $0F,$F0,$10,$08,$20,$04,$38,$1C,$3F,$FE,$7F,$FE,$7F,$FE,$6F,$FE .db $4D,$7A,$0D,$30,$14,$28,$14,$38,$08,$10,$10,$08,$10,$78,$0F,$F0 ;mascara .db $F0,$0F,$E0,$07,$C0,$03,$C0,$03,$C0,$01,$80,$01,$80,$01,$90,$01 .db $B0,$05,$F0,$0F,$E0,$07,$E0,$07,$F0,$0F,$E0,$07,$E0,$07,$F0,$0F ;arr 1 .db $0F,$F0,$10,$08,$20,$04,$38,$1C,$3F,$FC,$3F,$FE,$7F,$FE,$6F,$F9 .db $2F,$64,$09,$20,$09,$20,$06,$90,$05,$08,$08,$68,$08,$90,$07,$60 ;mascara .db $F0,$0F,$E0,$07,$C0,$03,$C0,$03,$C0,$03,$C0,$01,$80,$01,$90,$06 .db $D0,$1B,$F0,$1F,$F0,$1F,$F8,$0F,$F8,$07,$F0,$07,$F0,$0F,$F8,$9F ;arr 2 .db $0F,$F0,$10,$08,$20,$04,$38,$1C,$3F,$FC,$7F,$FC,$7F,$FE,$9F,$F6 .db $26,$F4,$04,$90,$04,$90,$09,$60,$10,$A0,$16,$10,$09,$10,$06,$E0 ;mascara .db $F0,$0F,$E0,$07,$C0,$03,$C0,$03,$C0,$03,$80,$03,$80,$01,$60,$09 .db $D8,$0B,$F8,$0F,$F8,$0F,$F0,$1F,$E0,$1F,$E0,$0F,$F0,$0F,$F9,$1F
22.911864
126
0.595798
376a408f75fab238be35577a6740eccca84be7f3
1,126
asm
Assembly
programs/oeis/129/A129771.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/129/A129771.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/129/A129771.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A129771: Evil odd numbers. ; 3,5,9,15,17,23,27,29,33,39,43,45,51,53,57,63,65,71,75,77,83,85,89,95,99,101,105,111,113,119,123,125,129,135,139,141,147,149,153,159,163,165,169,175,177,183,187,189,195,197,201,207,209,215,219,221,225,231,235,237,243,245,249,255,257,263,267,269,275,277,281,287,291,293,297,303,305,311,315,317,323,325,329,335,337,343,347,349,353,359,363,365,371,373,377,383,387,389,393,399,401,407,411,413,417,423,427,429,435,437,441,447,449,455,459,461,467,469,473,479,483,485,489,495,497,503,507,509,513,519,523,525,531,533,537,543,547,549,553,559,561,567,571,573,579,581,585,591,593,599,603,605,609,615,619,621,627,629,633,639,643,645,649,655,657,663,667,669,673,679,683,685,691,693,697,703,705,711,715,717,723,725,729,735,739,741,745,751,753,759,763,765,771,773,777,783,785,791,795,797,801,807,811,813,819,821,825,831,833,839,843,845,851,853,857,863,867,869,873,879,881,887,891,893,897,903,907,909,915,917,921,927,931,933,937,943,945,951,955,957,963,965,969,975,977,983,987,989,993,999 mov $2,$0 lpb $0 mov $5,$0 div $0,2 add $3,$5 lpe gcd $3,2 mul $3,2 mov $1,$3 sub $1,1 mov $4,$2 mul $4,4 add $1,$4
66.235294
973
0.71492
4fdb3d68276d98ca2c900c7b1855cb1726315830
675
asm
Assembly
oeis/064/A064170.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/064/A064170.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/064/A064170.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A064170: a(1) = 1; a(n+1) = product of numerator and denominator in Sum_{k=1..n} 1/a(k). ; 1,1,2,10,65,442,3026,20737,142130,974170,6677057,45765226,313679522,2149991425,14736260450,101003831722,692290561601,4745030099482,32522920134770,222915410843905,1527884955772562,10472279279564026,71778070001175617,491974210728665290,3372041405099481410,23112315624967704577,158414167969674450626,1085786860162753449802,7442093853169599697985,51008870112024444436090,349619996931001511354642,2396331108404986135046401,16424697761903901433970162,112576553224922323902744730 trn $0,1 seq $0,1906 ; F(2n) = bisection of Fibonacci sequence: a(n) = 3*a(n-1) - a(n-2). pow $0,2 add $0,1
84.375
474
0.828148
994a2b2ecf0484b07ef7c7cd089535037c8c7fae
8,175
asm
Assembly
maps/Route41.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
maps/Route41.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
maps/Route41.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
object_const_def ; object_event constants const ROUTE41_OLIVINE_RIVAL1 const ROUTE41_OLIVINE_RIVAL2 const ROUTE41_OLIVINE_RIVAL3 const ROUTE41_OLIVINE_RIVAL4 const ROUTE41_OLIVINE_RIVAL5 const ROUTE41_SWIMMER_GIRL1 const ROUTE41_SWIMMER_GIRL2 const ROUTE41_SWIMMER_GIRL3 const ROUTE41_SWIMMER_GIRL4 const ROUTE41_SWIMMER_GIRL5 Route41_MapScripts: db 0 ; scene scripts db 0 ; callbacks TrainerSwimmerfKaylee: trainer SWIMMERF, KAYLEE, EVENT_BEAT_SWIMMERF_KAYLEE, SwimmerfKayleeSeenText, SwimmerfKayleeBeatenText, 0, .Script .Script: endifjustbattled opentext writetext SwimmerfKayleeAfterBattleText waitbutton closetext end TrainerSwimmerfSusie: trainer SWIMMERF, SUSIE, EVENT_BEAT_SWIMMERF_SUSIE, SwimmerfSusieSeenText, SwimmerfSusieBeatenText, 0, .Script .Script: endifjustbattled opentext writetext SwimmerfSusieAfterBattleText waitbutton closetext end TrainerSwimmerfDenise: trainer SWIMMERF, DENISE, EVENT_BEAT_SWIMMERF_DENISE, SwimmerfDeniseSeenText, SwimmerfDeniseBeatenText, 0, .Script .Script: endifjustbattled opentext writetext SwimmerfDeniseAfterBattleText waitbutton closetext end TrainerSwimmerfKara: trainer SWIMMERF, KARA, EVENT_BEAT_SWIMMERF_KARA, SwimmerfKaraSeenText, SwimmerfKaraBeatenText, 0, .Script .Script: endifjustbattled opentext writetext SwimmerfKaraAfterBattleText waitbutton closetext end TrainerSwimmerfWendy: trainer SWIMMERF, WENDY, EVENT_BEAT_SWIMMERF_WENDY, SwimmerfWendySeenText, SwimmerfWendyBeatenText, 0, .Script .Script: endifjustbattled opentext writetext SwimmerfWendyAfterBattleText waitbutton closetext end TrainerSwimmermCharlie: trainer SWIMMERM, CHARLIE, EVENT_BEAT_SWIMMERM_CHARLIE, SwimmermCharlieSeenText, SwimmermCharlieBeatenText, 0, .Script .Script: endifjustbattled opentext writetext SwimmermCharlieAfterBattleText waitbutton closetext end TrainerSwimmermGeorge: trainer SWIMMERM, GEORGE, EVENT_BEAT_SWIMMERM_GEORGE, SwimmermGeorgeSeenText, SwimmermGeorgeBeatenText, 0, .Script .Script: endifjustbattled opentext writetext SwimmermGeorgeAfterBattleText waitbutton closetext end TrainerSwimmermBerke: trainer SWIMMERM, BERKE, EVENT_BEAT_SWIMMERM_BERKE, SwimmermBerkeSeenText, SwimmermBerkeBeatenText, 0, .Script .Script: endifjustbattled opentext writetext SwimmermBerkeAfterBattleText waitbutton closetext end TrainerSwimmermKirk: trainer SWIMMERM, KIRK, EVENT_BEAT_SWIMMERM_KIRK, SwimmermKirkSeenText, SwimmermKirkBeatenText, 0, .Script .Script: endifjustbattled opentext writetext SwimmermKirkAfterBattleText waitbutton closetext end TrainerSwimmermMathew: trainer SWIMMERM, MATHEW, EVENT_BEAT_SWIMMERM_MATHEW, SwimmermMathewSeenText, SwimmermMathewBeatenText, 0, .Script .Script: endifjustbattled opentext writetext SwimmermMathewAfterBattleText waitbutton closetext end Route41Rock: ; unused jumpstd smashrock Route41HiddenMaxEther: hiddenitem MAX_ETHER, EVENT_ROUTE_41_HIDDEN_MAX_ETHER SwimmermCharlieSeenText: text "The water's warm" line "here. I'm loose" cont "and limber." para "Sure, I'll take" line "you on!" done SwimmermCharlieBeatenText: text "Yikes! I've got" line "prune skin!" done SwimmermCharlieAfterBattleText: text "Isn't it relaxing" line "just floating like" cont "this?" done SwimmermGeorgeSeenText: text "I'm a bit tired." line "If I win, lend me" cont "your #MON." done SwimmermGeorgeBeatenText: text "Pant, pant…" done SwimmermGeorgeAfterBattleText: text "It's so far to" line "CIANWOOD." para "But it's no easy" line "return trip to" cont "OLIVINE either." para "What should I do?" done SwimmermBerkeSeenText: text "See those islands" line "that are blocked" cont "by whirlpools?" para "There just has to" line "be a secret!" done SwimmermBerkeBeatenText: text "What's the secret" line "to your strength?" done SwimmermBerkeAfterBattleText: text "It was a dark and" line "stormy night…" para "I saw this giant" line "#MON flying" cont "from the islands." para "It was scattering" line "feathers from its" cont "silver wings." done SwimmermKirkSeenText: text "The waves are wild" line "here." para "They tire you out" line "while you swim." done SwimmermKirkBeatenText: text "I'm beat!" done SwimmermKirkAfterBattleText: text "The currents keep" line "me from reaching" cont "that island." done SwimmermMathewSeenText: text "Are you seeking" line "the secrets of" cont "WHIRL ISLANDS?" done SwimmermMathewBeatenText: text "Ooh, you've got" line "great endurance!" done SwimmermMathewAfterBattleText: text "A secret about" line "WHIRL ISLANDS…" para "It's pitch-black" line "inside!" done SwimmerfKayleeSeenText: text "I'm on my way to" line "WHIRL ISLANDS." para "I'm going explor-" line "ing with friends." done SwimmerfKayleeBeatenText: text "Is that how you do" line "it?" done SwimmerfKayleeAfterBattleText: text "There's supposed" line "to be a big #-" cont "MON deep beneath" cont "WHIRL ISLANDS." para "I wonder what it" line "could be?" done SwimmerfSusieSeenText: text "You look so ele-" line "gant, riding your" cont "#MON." done SwimmerfSusieBeatenText: text "I'm crushed…" done SwimmerfSusieAfterBattleText: text "Wasn't there a hit" line "song about a boy" cont "riding a LAPRAS?" done SwimmerfDeniseSeenText: text "The weather is so" line "beautiful, I'm in" cont "a daze!" done SwimmerfDeniseBeatenText: text "Ohhh!" done SwimmerfDeniseAfterBattleText: text "A sunburn is the" line "worst for skin." para "But I don't use a" line "sunblock." para "I won't pollute" line "the water." done SwimmerfKaraSeenText: text "If you need to" line "rest, just tread" cont "water." para "You'll get your" line "wind back, so you" para "can keep on going" line "strong." done SwimmerfKaraBeatenText: text "Oh! You have more" line "energy than I do." done SwimmerfKaraAfterBattleText: text "I heard roars from" line "deep inside the" cont "ISLANDS." done SwimmerfWendySeenText: text "At night, STARYU" line "gather near the" cont "water's surface." done SwimmerfWendyBeatenText: text "Oh, dear…" done SwimmerfWendyAfterBattleText: text "The clusters of" line "STARYU light up" cont "at the same time." para "It's so beautiful," line "it's scary." done Route41_MapEvents: db 0, 0 ; filler db 4 ; warp events warp_event 12, 17, WHIRL_ISLAND_NW, 1 warp_event 36, 19, WHIRL_ISLAND_NE, 1 warp_event 12, 37, WHIRL_ISLAND_SW, 1 warp_event 36, 45, WHIRL_ISLAND_SE, 1 db 0 ; coord events db 1 ; bg events bg_event 9, 35, BGEVENT_ITEM, Route41HiddenMaxEther db 10 ; object events object_event 32, 6, SPRITE_OLIVINE_RIVAL, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 3, TrainerSwimmermCharlie, -1 object_event 46, 8, SPRITE_OLIVINE_RIVAL, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 3, TrainerSwimmermGeorge, -1 object_event 20, 26, SPRITE_OLIVINE_RIVAL, SPRITEMOVEDATA_SPINCOUNTERCLOCKWISE, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 3, TrainerSwimmermBerke, -1 object_event 32, 30, SPRITE_OLIVINE_RIVAL, SPRITEMOVEDATA_SPINCLOCKWISE, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 3, TrainerSwimmermKirk, -1 object_event 19, 46, SPRITE_OLIVINE_RIVAL, SPRITEMOVEDATA_SPINCOUNTERCLOCKWISE, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 3, TrainerSwimmermMathew, -1 object_event 17, 4, SPRITE_SWIMMER_GIRL, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_TRAINER, 3, TrainerSwimmerfKaylee, -1 object_event 23, 19, SPRITE_SWIMMER_GIRL, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_TRAINER, 3, TrainerSwimmerfSusie, -1 object_event 27, 34, SPRITE_SWIMMER_GIRL, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_TRAINER, 3, TrainerSwimmerfDenise, -1 object_event 44, 28, SPRITE_SWIMMER_GIRL, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_TRAINER, 4, TrainerSwimmerfKara, -1 object_event 9, 50, SPRITE_SWIMMER_GIRL, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_TRAINER, 2, TrainerSwimmerfWendy, -1
22.275204
156
0.782508
439d31c0755e1e761d66d8696c9dac51717eae32
50
asm
Assembly
src/main/fragment/mos6502-common/vwsm1=vwsm1_minus_1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/vwsm1=vwsm1_minus_1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/vwsm1=vwsm1_minus_1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
sec lda {m1} sbc #1 sta {m1} bcs !+ dec {m1}+1 !:
6.25
10
0.52
ae9d1920b37964507a634892b36d096856792a37
871
asm
Assembly
oeis/142/A142629.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142629.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142629.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142629: Primes congruent to 39 mod 55. ; Submitted by Jamie Morken(s4) ; 149,479,809,919,1249,1579,2129,2239,2459,2789,3119,3229,3449,3559,3779,3889,4219,4549,5099,5209,5869,6089,6199,6529,7079,8069,8179,8839,9059,9719,9829,10159,10709,11149,11369,11699,12689,12799,13679,13789,14009,14449,14669,14779,15329,15439,16319,16649,16759,16979,17419,17749,18959,19069,19289,19949,20389,20719,20939,21269,21379,21599,21929,22039,22259,22369,22699,23029,23689,23909,24019,24239,25229,25339,25889,25999,26879,27539,28309,28859,29629,29959,30509,30839,30949,32159,33149,33479,33589 mov $1,-7 mov $2,$0 add $2,2 pow $2,2 lpb $2 add $1,26 sub $2,1 mov $3,$1 add $1,3 mul $4,2 mul $3,$4 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,26 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 mul $0,2 sub $0,57
32.259259
500
0.717566
132ae6e8844e498b12eb650a62f631d60a1cdda2
199
asm
Assembly
factorial.asm
danielzy95/x86-funz
67763837b7ed236379359f51ab87d8200d141bd6
[ "MIT" ]
null
null
null
factorial.asm
danielzy95/x86-funz
67763837b7ed236379359f51ab87d8200d141bd6
[ "MIT" ]
null
null
null
factorial.asm
danielzy95/x86-funz
67763837b7ed236379359f51ab87d8200d141bd6
[ "MIT" ]
null
null
null
mov eax, 1 ; fact = 1 mov ebx, 6 ; n = 6 mov ecx, 1 ; for i = 1 loop: cmp ebx, ecx jl show_result imul eax, ecx ; fact = fact * i inc ecx jmp loop show_result: #show eax ; EasyASM directive
13.266667
32
0.628141
78d33176765bc4d481774134565102126794b1f7
1,241
asm
Assembly
kernel/arch/x86_64/utility.asm
jasonwer/WingOS
1e3b8b272bc93542fda48ed1cf3226e63c923f39
[ "BSD-2-Clause" ]
549
2020-08-19T12:03:58.000Z
2022-03-31T18:04:39.000Z
kernel/arch/x86_64/utility.asm
jasonwer/WingOS
1e3b8b272bc93542fda48ed1cf3226e63c923f39
[ "BSD-2-Clause" ]
8
2020-08-29T18:05:13.000Z
2021-02-01T23:15:27.000Z
kernel/arch/x86_64/utility.asm
jasonwer/WingOS
1e3b8b272bc93542fda48ed1cf3226e63c923f39
[ "BSD-2-Clause" ]
32
2021-02-15T17:19:00.000Z
2022-02-08T18:41:10.000Z
global reload_cr3 reload_cr3: mov rax, cr3 mov cr3, rax ret global read_pit_counter global sse_init ; sse 1 and 2 should be supported on any 64bit processor sse_init: mov rax, cr0 and rax, ~(1<<2) or rax, (1<<1) mov cr0, rax mov rax, cr4 or rax, 3 << 9 mov cr4, rax ret global enable_xsave enable_xsave: mov rax, cr4 or rax, (1<<18) mov cr4, rax push rax push rcx push rdx xor rax,rax xor rcx, rcx mov rdx, 0 or rax, 3 xsetbv pop rdx pop rcx pop rax ret global avx_init avx_init: push rax push rcx push rdx xor rax,rax xor rcx, rcx mov rdx, 0 or rax, 7 xsetbv pop rdx pop rcx pop rax ret global asm_sse_save asm_sse_save: mov rax, rdi fxsave [rax] ret global asm_sse_load asm_sse_load: mov rax, rdi fxrstor [rax] ret global asm_avx_save asm_avx_save: mov eax, 0xffffffff mov edx, 0xffffffff xsave64 [rdi] ret global asm_avx_load asm_avx_load: mov eax, 0xffffffff mov edx, 0xffffffff xrstor64 [rdi] ret read_pit_counter: mov al, 0x0 out 0x43, al in al, 0x40 mov ah, al in al, 0x40 rol ax, 8 ret
13.788889
56
0.605157
82ff15cd5e97b15d1f046b137a7dfd7312923b23
381
asm
Assembly
oeis/107/A107298.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/107/A107298.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/107/A107298.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A107298: a(n) = 3*a(n-1)-a(n-2)-2*a(n-3)+a(n-4), n>5. ; Submitted by Jon Maiga ; 3,2,5,10,25,56,128,288,649,1459,3280,7371,16564,37220,83634,187925,422265,948822,2131985,4790528,10764220,24186984,54347661,122118087,274396852,616564131 mov $3,1 lpb $0 sub $0,1 add $1,$2 add $2,$3 mov $4,$3 mov $3,$1 add $1,$4 add $2,2 mov $4,$3 lpe cmp $0,$4 add $0,$3 add $0,1
20.052632
155
0.627297
6badba747e38a4bb52c38d0d04fb6cf7397d3480
2,886
asm
Assembly
examples/loader.asm
jblang/ColecoController
9c9056b6cd2dda5379e7fdf64fc563caa42c0915
[ "Unlicense" ]
12
2019-01-29T12:41:39.000Z
2022-02-06T23:21:45.000Z
examples/loader.asm
jblang/ColecoController
9c9056b6cd2dda5379e7fdf64fc563caa42c0915
[ "Unlicense" ]
null
null
null
examples/loader.asm
jblang/ColecoController
9c9056b6cd2dda5379e7fdf64fc563caa42c0915
[ "Unlicense" ]
3
2019-08-13T08:28:50.000Z
2020-10-12T16:02:29.000Z
; ColecoVision Game Loader for CP/M on RC2014 ; ; Works with RomWBW 512K RAM/ROM Board ; Incompatible with 64KB Pageable ROM Board due to port conflicts ; ; Assemble with sjasm. ColecoVision BIOS ROM must be in "coleco.rom" ; in the same directory where loader.asm is assembled. ; ; CP/M file loader code from https://github.com/MMaciocia/RC2014-YM2149 ; Modified to load ColecoVision games by J.B. Langston boot: equ 0 ; boot location bdos: equ 5 ; bdos entry point fcb: equ $5c ; file control block fcbcr: equ fcb+$20 ; fcb current record buff: equ $80 ; DMA buffer printf: equ 9 ; BDOS print string function openf: equ 15 ; BDOS open file function closef: equ 16 ; BDOS close file function readf: equ 20 ; BDOS sequential read function gametop: equ $ffff ; top of game cartridge location gamelen: equ $8000 ; length of game cartridge bioslen: equ $2000 ; length of BIOS cr: equ $0d ; carriage return lf: equ $0a ; line feed eos: equ '$' ; end of string marker org $100 ld (oldsp),sp ; save old stack pointer ld sp,stack ; set new stack pointer ld de,fcb ; try to open file specified on command line call open inc a ; 255 indicates failure jr z,badfile ld a,0 ; clear current record ld (fcbcr),a ld de,gameaddr ; set destination address ld (dest),de loop: ld de,fcb ; read from file call read or a jr nz,eof ; non-zero accumulator means EOF ld hl,buff ; copy from DMA buffer to destination ld de,(dest) ld bc,$80 ldir ld (dest),de ; increment next destination address jr loop eof: ld de,fcb ; close the file call close ld de,success ; tell user that game was loaded call print jp rungame ; copy the game to the final location and run badfile: ld de,nofile ; print error if file is not found call print ld sp,(oldsp) ; restore stack pointer ret ; return to CP/M open: ld c,openf ; BDOS call to open file jp bdos close: ld c,closef ; BDOS call to close file jp bdos read: ld c,readf ; BDOS call to read file jp bdos print: ld c,printf ; BDOS call to print string jp bdos nofile: defb "file not found",cr,lf,eos success: defb "game loaded",eos dest: defw gameaddr ; destination pointer oldsp: defw 0 ; original stack pointer defs $40 ; space for stack stack: ; top of stack bios: incbin "coleco.rom" ; include ColecoVision BIOS in program rungame: di ; don't need interrupts anymore ld bc,gamelen ; copy game to $8000-$FFFF ld hl,gameaddr+gamelen-1 ld de,gametop lddr ld bc,bioslen ; copy ColecoVision BIOS to $0000-$1FFF ld hl,bios ld de,boot ldir jp boot ; jump to BIOS entry point gameaddr: ; temporarily load game at end of program
26.477064
72
0.656965
06e3376fceb0637fe00dc04fc1331f32c9e6bbb8
620
asm
Assembly
oeis/314/A314108.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/314/A314108.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/314/A314108.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A314108: Coordination sequence Gal.6.198.6 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; Submitted by Christian Krause ; 1,5,11,16,21,26,30,34,39,44,49,55,60,65,71,76,81,86,90,94,99,104,109,115,120,125,131,136,141,146,150,154,159,164,169,175,180,185,191,196,201,206,210,214,219,224,229,235,240,245 mov $1,$0 seq $0,313717 ; Coordination sequence Gal.6.151.6 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. add $1,4 div $1,3 add $0,$1 sub $0,1
56.363636
182
0.743548
e7905d4c87afbe6f5ee4dfdb6e6ba1228d043ceb
2,176
asm
Assembly
programs/oeis/143/A143938.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/143/A143938.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/143/A143938.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A143938: The Wiener index of a benzenoid consisting of a linear chain of n hexagons. ; 27,109,279,569,1011,1637,2479,3569,4939,6621,8647,11049,13859,17109,20831,25057,29819,35149,41079,47641,54867,62789,71439,80849,91051,102077,113959,126729,140419,155061,170687,187329,205019,223789,243671,264697,286899,310309,334959,360881,388107,416669,446599,477929,510691,544917,580639,617889,656699,697101,739127,782809,828179,875269,924111,974737,1027179,1081469,1137639,1195721,1255747,1317749,1381759,1447809,1515931,1586157,1658519,1733049,1809779,1888741,1969967,2053489,2139339,2227549,2318151,2411177,2506659,2604629,2705119,2808161,2913787,3022029,3132919,3246489,3362771,3481797,3603599,3728209,3855659,3985981,4119207,4255369,4394499,4536629,4681791,4830017,4981339,5135789,5293399,5454201,5618227,5785509,5956079,6129969,6307211,6487837,6671879,6859369,7050339,7244821,7442847,7644449,7849659,8058509,8271031,8487257,8707219,8930949,9158479,9389841,9625067,9864189,10107239,10354249,10605251,10860277,11119359,11382529,11649819,11921261,12196887,12476729,12760819,13049189,13341871,13638897,13940299,14246109,14556359,14871081,15190307,15514069,15842399,16175329,16512891,16855117,17202039,17553689,17910099,18271301,18637327,19008209,19383979,19764669,20150311,20540937,20936579,21337269,21743039,22153921,22569947,22991149,23417559,23849209,24286131,24728357,25175919,25628849,26087179,26550941,27020167,27494889,27975139,28460949,28952351,29449377,29952059,30460429,30974519,31494361,32019987,32551429,33088719,33631889,34180971,34735997,35296999,35864009,36437059,37016181,37601407,38192769,38790299,39394029,40003991,40620217,41242739,41871589,42506799,43148401,43796427,44450909,45111879,45779369,46453411,47134037,47821279,48515169,49215739,49923021,50637047,51357849,52085459,52819909,53561231,54309457,55064619,55826749,56595879,57372041,58155267,58945589,59743039,60547649,61359451,62178477,63004759,63838329,64679219,65527461,66383087,67246129,68116619,68994589,69880071,70773097,71673699,72581909,73497759,74421281,75352507,76291469,77238199,78192729,79155091,80125317,81103439,82089489,83083499,84085501 add $0,2 mul $0,4 bin $0,3 sub $0,2 mov $1,$0 div $1,2
217.6
2,032
0.863511
777026e14568270449cc2f2a5f0d5e20ba0f7dbe
712
asm
Assembly
Src/Q12.asm
OferMon/MIPS-Assembly-Exercises
6f5699f2d1f5c3312467af038679eab238d33866
[ "Apache-2.0" ]
null
null
null
Src/Q12.asm
OferMon/MIPS-Assembly-Exercises
6f5699f2d1f5c3312467af038679eab238d33866
[ "Apache-2.0" ]
null
null
null
Src/Q12.asm
OferMon/MIPS-Assembly-Exercises
6f5699f2d1f5c3312467af038679eab238d33866
[ "Apache-2.0" ]
null
null
null
.data 0x10020000 array: .space 80 # 20 words .text li $a0, 0x10020000 jal init_array li $a0, 0x10020000 jal multiply_array_by_two 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 #------------------------# multiply_array_by_two: add $t0, $a0, $zero li $t1, 0 _multiply_array_by_two_loop_start: lw $t2, ($t0) sll $t2, $t2, 1 # multiply by 2 sw $t2, ($t0) addi $t0, $t0, 4 addi $t1, $t1, 1 bne $t1, 20, _multiply_array_by_two_loop_start jr $ra #------------------------# end:
16.55814
47
0.592697
f6125fe79a8e5d30541cbce742b60280ca83cb91
399
asm
Assembly
programs/oeis/037/A037646.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/037/A037646.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/037/A037646.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A037646: Base 4 digits are, in order, the first n terms of the periodic sequence with initial period 3,0,1. ; 3,12,49,199,796,3185,12743,50972,203889,815559,3262236,13048945,52195783,208783132,835132529,3340530119,13362120476,53448481905,213793927623,855175710492,3420702841969,13682811367879,54731245471516,218924981886065,875699927544263,3502799710177052 mov $1,4 pow $1,$0 mul $1,56 div $1,18
49.875
248
0.817043
45e895ebd39e8b091b2014e45ca6aeb98ffcd68f
287
asm
Assembly
libsrc/_DEVELOPMENT/arch/sms/vram/c/sccz80/sms_copy_vram_to_mem.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/sms/vram/c/sccz80/sms_copy_vram_to_mem.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/sms/vram/c/sccz80/sms_copy_vram_to_mem.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void *sms_copy_vram_to_mem(void *dst, unsigned int n) SECTION code_clib SECTION code_crt_common PUBLIC sms_copy_vram_to_mem EXTERN asm_sms_copy_vram_to_mem sms_copy_vram_to_mem: pop af pop bc pop hl push hl push bc push af jp asm_sms_copy_vram_to_mem
13.666667
55
0.752613
8c0ff301c6097d26ceae9c13fd87751a89df99db
615
asm
Assembly
oeis/005/A005998.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/005/A005998.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/005/A005998.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A005998: Number of paraffins. ; 1,2,7,14,29,48,79,116,169,230,311,402,517,644,799,968,1169,1386,1639,1910,2221,2552,2927,3324,3769,4238,4759,5306,5909,6540,7231,7952,8737,9554,10439,11358,12349,13376,14479,15620,16841,18102,19447,20834,22309,23828,25439,27096,28849,30650,32551,34502,36557,38664,40879,43148,45529,47966,50519,53130,55861,58652,61567,64544,67649,70818,74119,77486,80989,84560,88271,92052,95977,99974,104119,108338,112709,117156,121759,126440,131281,136202,141287,146454,151789,157208,162799,168476,174329,180270 mov $1,$0 pow $0,2 div $0,2 add $1,2 add $0,$1 sub $1,2 mul $0,$1 div $0,2 add $0,1
47.307692
497
0.772358
dba9f51859902310c0bc88fefe61568b1d085abb
1,129
asm
Assembly
test-roms/multiply.asm
martinkauppinen/gibberish
7dcfb34751b6ded467a1757212a52adee3b79bd0
[ "MIT" ]
1
2022-02-11T18:30:21.000Z
2022-02-11T18:30:21.000Z
test-roms/multiply.asm
martinkauppinen/gibberish
7dcfb34751b6ded467a1757212a52adee3b79bd0
[ "MIT" ]
null
null
null
test-roms/multiply.asm
martinkauppinen/gibberish
7dcfb34751b6ded467a1757212a52adee3b79bd0
[ "MIT" ]
null
null
null
SECTION "Header", ROM0[$100] jp start ds $150 - @, 0 ; Header start: ld de, $dead ; Values to check that stack ld hl, $beef ; popping works as intended ld a, $0 ld b, $1 call multiply ld a, $2 ld b, $2 call multiply ld a, $5 ld b, $3 call multiply ld a, $F ld b, $F call multiply di ; Enable V-Blank interrupt ld hl, $FFFF ld a, 1 ld [hl], a ; Request V-Blank interrupt ld hl, $FF0F ld [hl], a ld hl, $0040 ld a, $D3 ; Invalid opcode ld [hl], a ei ; This will crash the emulator nop ; Multiply A with B through repeated addition ; Result is stored in A multiply: ; Early quit if one factor is zero push hl ld h, $0 cp h pop hl ret z call swap_ab push hl ld h, $0 cp h pop hl ret z push de ld d, a ld a, $0 loop: add a, b dec d jp nz, loop pop de ret ; Swap contents of registers A and B swap_ab: push de ld d, a ld a, b ld b, d pop de ret
14.291139
50
0.501329
d49a3ce4d673073e78932405839c89d864ba9d85
16,622
asm
Assembly
src/lib/g5_math.asm
Prashant446/GFCC
6feb2e95d2a8e2f2499b2cb4a66921e4b769c822
[ "MIT" ]
1
2021-06-11T03:51:00.000Z
2021-06-11T03:51:00.000Z
src/lib/g5_math.asm
Debarsho/GFCC
0b51d14d8010bc06952984f3554a56d60d3886cb
[ "MIT" ]
null
null
null
src/lib/g5_math.asm
Debarsho/GFCC
0b51d14d8010bc06952984f3554a56d60d3886cb
[ "MIT" ]
1
2021-06-11T03:50:07.000Z
2021-06-11T03:50:07.000Z
.text .globl g5_abs # int g5_abs(int x); g5_abs: sw $ra, -4($sp) # return address sw $fp, -8($sp) # frame pointer of caller move $fp, $sp # begin new frame subu $sp, $sp, 44 # expad frame - expect address of formatter sw $s0, -12($fp) # callee saved register sw $s1, -16($fp) # callee saved register sw $s2, -20($fp) # callee saved register sw $s3, -24($fp) # callee saved register sw $s4, -28($fp) # callee saved register sw $s5, -32($fp) # callee saved register sw $s6, -36($fp) # callee saved register sw $s7, -40($fp) # callee saved register lw $t0, 0($sp) # $t0 = x; bge $t0, $0, g5_abs_ret # x >= 0 (so do nothing) subu $t0, $0, $t0 # x = -x g5_abs_ret: move $v0, $t0 lw $s7, -40($fp) # restore callee saved register lw $s6, -36($fp) # restore callee saved register lw $s5, -32($fp) # restore callee saved register lw $s4, -28($fp) # restore callee saved register lw $s3, -24($fp) # restore callee saved register lw $s2, -20($fp) # restore callee saved register lw $s1, -16($fp) # restore callee saved register lw $s0, -12($fp) # restore frame pointer of caller move $sp, $fp # close current frame lw $fp, -8($sp) # restore frame pointer of caller lw $ra, -4($sp) # restore return address jr $ra # return to caller .globl g5_fact # int g5_fact(int x); g5_fact: sw $ra, -4($sp) # return address sw $fp, -8($sp) # frame pointer of caller move $fp, $sp # begin new frame subu $sp, $sp, 44 # expad frame - expect address of formatter sw $s0, -12($fp) # callee saved register sw $s1, -16($fp) # callee saved register sw $s2, -20($fp) # callee saved register sw $s3, -24($fp) # callee saved register sw $s4, -28($fp) # callee saved register sw $s5, -32($fp) # callee saved register sw $s6, -36($fp) # callee saved register sw $s7, -40($fp) # callee saved register lw $s0, 0($sp) # $t0 = x; blt $s0, $0, g5_fact_ret_0 # x < 0 ble $s0, 1, g5_fact_ret_1 # x <= 1 move $s1, $s0 # $s1 = $s0 = x subu $s1, $s1, 1 # $s1 = x - 1 sw $s1, -44($sp) # load parameter (x-1) as argument (function call) jal g5_fact # recursive call # now, $v0 = g5_fact(x-1) mul $v0, $s0, $v0 # $v0 = x * g5_fabs(x-1) = g5_fabs(x) b g5_fact_ret g5_fact_ret_0: # return 0 li $v0, 0 b g5_fact_ret g5_fact_ret_1: # return 1 li $v0, 1 b g5_fact_ret g5_fact_ret: lw $s7, -40($fp) # restore callee saved register lw $s6, -36($fp) # restore callee saved register lw $s5, -32($fp) # restore callee saved register lw $s4, -28($fp) # restore callee saved register lw $s3, -24($fp) # restore callee saved register lw $s2, -20($fp) # restore callee saved register lw $s1, -16($fp) # restore callee saved register lw $s0, -12($fp) # restore frame pointer of caller move $sp, $fp # close current frame lw $fp, -8($sp) # restore frame pointer of caller lw $ra, -4($sp) # restore return address jr $ra # return to caller .globl g5_fib # int g5_fib(int x); g5_fib: sw $ra, -4($sp) # return address sw $fp, -8($sp) # frame pointer of caller move $fp, $sp # begin new frame subu $sp, $sp, 44 # expad frame - expect address of formatter sw $s0, -12($fp) # callee saved register sw $s1, -16($fp) # callee saved register sw $s2, -20($fp) # callee saved register sw $s3, -24($fp) # callee saved register sw $s4, -28($fp) # callee saved register sw $s5, -32($fp) # callee saved register sw $s6, -36($fp) # callee saved register sw $s7, -40($fp) # callee saved register lw $s0, 0($sp) # $t0 = x; blt $s0, $0, g5_fib_neg # x < 0 ble $s0, 1, g5_fib_01 # x <= 1 # $t0 = y, $t1 = y_1, $t2 = y_2, $t3 = tmp, $t4 = curr li $t2, 0 # y_2 = 0 li $t1, 1 # y_1 = 1 li $t0, 1 # y = 1 li $t4, 2 # curr = 2 g5_fib_loop: # while loop beq $t4, $s0, g5_fib_reg_ret # curr == x addu $t3, $t1, $t0 # tmp = y_1 + y move $t2, $t1 # y_2 = y_1 move $t1, $t0 # y_1 = y move $t0, $t3 # y = tmp addi $t4, $t4, 1 # curr++ b g5_fib_loop # goto while-loop condition check g5_fib_reg_ret: move $v0, $t0 # $v0 = $t0 = y b g5_fib_ret # return y g5_fib_neg: # x < 0 subu $s1, $0, $s0 # $s1 = -x sw $s1, -44($sp) # load func param (-x) jal g5_fib # now, $v0 = fib(-x) andi $t0, $s0, 0x1 # $t0 = isOdd(x) beq $t0, 1, g5_fib_ret # return fib(-x) subu $v0, $0, $v0 # $v0 = -fib(-x) b g5_fib_ret # return -fib(-x) g5_fib_01: # x <= 1 move $v0, $s0 # $v0 = x b g5_fib_ret # return x g5_fib_ret: lw $s7, -40($fp) # restore callee saved register lw $s6, -36($fp) # restore callee saved register lw $s5, -32($fp) # restore callee saved register lw $s4, -28($fp) # restore callee saved register lw $s3, -24($fp) # restore callee saved register lw $s2, -20($fp) # restore callee saved register lw $s1, -16($fp) # restore callee saved register lw $s0, -12($fp) # restore frame pointer of caller move $sp, $fp # close current frame lw $fp, -8($sp) # restore frame pointer of caller lw $ra, -4($sp) # restore return address jr $ra # return to caller .globl g5_intpow # float g5_intpow(float x, int N); g5_intpow: sw $ra, -4($sp) # return address sw $fp, -8($sp) # frame pointer of caller move $fp, $sp # begin new frame subu $sp, $sp, 44 # expad frame - expect address of formatter sw $s0, -12($fp) # callee saved register sw $s1, -16($fp) # callee saved register sw $s2, -20($fp) # callee saved register sw $s3, -24($fp) # callee saved register sw $s4, -28($fp) # callee saved register sw $s5, -32($fp) # callee saved register sw $s6, -36($fp) # callee saved register sw $s7, -40($fp) # callee saved register lw $s0, -4($sp) # $s0 = N; l.s $f0, 0($sp) # $f0 = x; (float) cvt.d.s $f0, $f0 # $f0 = x; (double) li.d $f8, 1.0 # $f8 = ret = 1.0 beq $s0, $0, g5_intpow_ret_1 # N == 0 bgt $s0, $0, g5_intpow_loop # N > 0 # reached here : means N < 0 subu $s0, $0, $s0 # N = -N div.d $f0, $f8, $f0 # x = 1.0 / x g5_intpow_loop: # while loop beq $s0, 0, g5_intpow_reg_ret # N == 0 => exit while loop mul.d $f8, $f8, $f0 # ret *= x subu $s0, $s0, 1 # N-- b g5_intpow_loop # goto while-loop condition check g5_intpow_reg_ret: mov.d $f0, $f8 # $f0 = ret (double) cvt.s.d $f0, $f0 # $f0 = ret (float) b g5_intpow_ret # return ret g5_intpow_ret_1: li.s $f0, 1.0 # $f0 = 1.0 (float) b g5_intpow_ret # return 1.0 (float) g5_intpow_ret: lw $s7, -40($fp) # restore callee saved register lw $s6, -36($fp) # restore callee saved register lw $s5, -32($fp) # restore callee saved register lw $s4, -28($fp) # restore callee saved register lw $s3, -24($fp) # restore callee saved register lw $s2, -20($fp) # restore callee saved register lw $s1, -16($fp) # restore callee saved register lw $s0, -12($fp) # restore frame pointer of caller move $sp, $fp # close current frame lw $fp, -8($sp) # restore frame pointer of caller lw $ra, -4($sp) # restore return address jr $ra # return to caller .globl g5_fabs # float g5_fabs(float x); g5_fabs: sw $ra, -4($sp) # return address sw $fp, -8($sp) # frame pointer of caller move $fp, $sp # begin new frame subu $sp, $sp, 44 # expad frame - expect address of formatter sw $s0, -12($fp) # callee saved register sw $s1, -16($fp) # callee saved register sw $s2, -20($fp) # callee saved register sw $s3, -24($fp) # callee saved register sw $s4, -28($fp) # callee saved register sw $s5, -32($fp) # callee saved register sw $s6, -36($fp) # callee saved register sw $s7, -40($fp) # callee saved register l.s $f0, 0($sp) # $f0 = x; (float) cvt.d.s $f0, $f0 # $f0 = x; (double) abs.d $f0, $f0 # $f0 = abs(x) (double) cvt.s.d $f0, $f0 # $f0 = abs(x) (float) g5_fabs_ret: lw $s7, -40($fp) # restore callee saved register lw $s6, -36($fp) # restore callee saved register lw $s5, -32($fp) # restore callee saved register lw $s4, -28($fp) # restore callee saved register lw $s3, -24($fp) # restore callee saved register lw $s2, -20($fp) # restore callee saved register lw $s1, -16($fp) # restore callee saved register lw $s0, -12($fp) # restore frame pointer of caller move $sp, $fp # close current frame lw $fp, -8($sp) # restore frame pointer of caller lw $ra, -4($sp) # restore return address jr $ra # return to caller .globl g5_sqrt # float g5_sqrt(float x); g5_sqrt: sw $ra, -4($sp) # return address sw $fp, -8($sp) # frame pointer of caller move $fp, $sp # begin new frame subu $sp, $sp, 44 # expad frame - expect address of formatter sw $s0, -12($fp) # callee saved register sw $s1, -16($fp) # callee saved register sw $s2, -20($fp) # callee saved register sw $s3, -24($fp) # callee saved register sw $s4, -28($fp) # callee saved register sw $s5, -32($fp) # callee saved register sw $s6, -36($fp) # callee saved register sw $s7, -40($fp) # callee saved register li $s0, 0 # $s0 = count = 0; l.s $f2, 0($sp) # $f2 = x; (float) cvt.d.s $f2, $f2 # $f2 = x; (double) li.d $f0, 0.0 # $f0 = 0.0 (double) for comparison l.s $f12, global___GFCC_M_PREC__ # $f12 = precision (float) cvt.d.s $f12, $f12 # $f12 = precision (double) li.d $f10, 2.0 # $f10 = 2.0 (double) for division c.le.d $f2, $f0 # x <= 0.0 : then return 0.0 bc1t g5_sqrt_ret_0 mov.d $f4, $f2 # ($f4 = r) = ($f2 = x) g5_sqrt_loop: mul.d $f6, $f4, $f4 # r * r sub.d $f6, $f2, $f6 # x - r * r abs.d $f6, $f6 # |x - r*r| c.le.d $f6, $f12 # |x - r*r| <= precision bc1t g5_sqrt_reg_ret # return r normally move $s1, $s0 # $s1 = count (copied) addu $s0, $s0, 1 # count++ bgt $s0, 1024, g5_sqrt_reg_ret # return r normally div.d $f6, $f2, $f4 # $f6 = x / r add.d $f6, $f4, $f6 # $f6 = r + (x / r) div.d $f4, $f6, $f10 # r = (r + (x/r))/2.0 b g5_sqrt_loop g5_sqrt_reg_ret: mov.d $f0, $f4 # $f0 = r (double) cvt.s.d $f0, $f0 # $f0 = r (float) b g5_sqrt_ret # return ret g5_sqrt_ret_0: li.s $f0, 0.0 # $f0 = 0.0 (float) b g5_sqrt_ret # return 0.0 (float) g5_sqrt_ret: lw $s7, -40($fp) # restore callee saved register lw $s6, -36($fp) # restore callee saved register lw $s5, -32($fp) # restore callee saved register lw $s4, -28($fp) # restore callee saved register lw $s3, -24($fp) # restore callee saved register lw $s2, -20($fp) # restore callee saved register lw $s1, -16($fp) # restore callee saved register lw $s0, -12($fp) # restore frame pointer of caller move $sp, $fp # close current frame lw $fp, -8($sp) # restore frame pointer of caller lw $ra, -4($sp) # restore return address jr $ra # return to caller .globl g5_exp # float g5_exp(float x); g5_exp: sw $ra, -4($sp) # return address sw $fp, -8($sp) # frame pointer of caller move $fp, $sp # begin new frame subu $sp, $sp, 44 # expad frame - expect address of formatter sw $s0, -12($fp) # callee saved register sw $s1, -16($fp) # callee saved register sw $s2, -20($fp) # callee saved register sw $s3, -24($fp) # callee saved register sw $s4, -28($fp) # callee saved register sw $s5, -32($fp) # callee saved register sw $s6, -36($fp) # callee saved register sw $s7, -40($fp) # callee saved register li.d $f0, 0.0 # $f0 = 0.0 (double) for comparison l.s $f12, global___GFCC_M_PREC__ # $f12 = precision (float) cvt.d.s $f12, $f12 # $f12 = precision (double) li.d $f14, 500.0 # $f14 = 500.0 (double) for comparison li.d $f16, 1.0 # $f16 = 1.0 (double) for incrementing N l.s $f2, 0($sp) # $f2 = x; (float) cvt.d.s $f2, $f2 # $f2 = x; (double) c.lt.d $f2, $f0 # x < 0.0 bc1t g5_exp_neg c.le.d $f2, $f14 # x <= 500.0 bc1f g5_exp_ret_500 # x > 500.0 : then return INFINITY # $f2 = x, $f4 = ret, $f6 = term_N, $f8 = N li.d $f4, 0.0 # $f4 = ret = 0.0 (double) li.d $f6, 1.0 # $f6 = term_N = 1.0 (double) li.d $f8, 0.0 # $f8 = N = 0.0 (double) g5_exp_loop: c.le.d $f6, $f12 bc1t g5_exp_reg_ret add.d $f4, $f4, $f6 # ret += term_N add.d $f8, $f8, $f16 # ++N mul.d $f6, $f6, $f2 # term_N *= x div.d $f6, $f6, $f8 # term_N /= N b g5_exp_loop g5_exp_reg_ret: mov.d $f0, $f4 # $f0 = ret (double) cvt.s.d $f0, $f0 # $f0 = ret (float) b g5_exp_ret # return ret g5_exp_ret_0: li.s $f0, 0.0 # $f0 = 0.0 (float) b g5_exp_ret # return 0.0 (float) g5_exp_neg: sub.d $f2, $f0, $f2 # $f2 = -x (double) cvt.s.d $f2, $f2 # $f2 = x (float) s.s $f2, -44($sp) # load func param (-x) jal g5_exp # $f0 = g5_exp(-x) (float) cvt.d.s $f0, $f0 # $f0 = g5_exp(-x) (double) div.d $f0, $f16, $f0 # $f0 = 1.0 / g5_exp(-x) (double) cvt.s.d $f0, $f0 # $f0 = 1.0 / g5_exp(-x) (float) b g5_exp_ret g5_exp_ret_500: l.s $f0, global___GFCC_M_INFTY__ b g5_exp_ret # return INFINITY g5_exp_ret: lw $s7, -40($fp) # restore callee saved register lw $s6, -36($fp) # restore callee saved register lw $s5, -32($fp) # restore callee saved register lw $s4, -28($fp) # restore callee saved register lw $s3, -24($fp) # restore callee saved register lw $s2, -20($fp) # restore callee saved register lw $s1, -16($fp) # restore callee saved register lw $s0, -12($fp) # restore frame pointer of caller move $sp, $fp # close current frame lw $fp, -8($sp) # restore frame pointer of caller lw $ra, -4($sp) # restore return address jr $ra # return to caller # .globl g5_sin # float g5_sin(float x); # g5_sin: # sw $ra, -4($sp) # return address # sw $fp, -8($sp) # frame pointer of caller # move $fp, $sp # begin new frame # subu $sp, $sp, 44 # expad frame - expect address of formatter # sw $s0, -12($fp) # callee saved register # sw $s1, -16($fp) # callee saved register # sw $s2, -20($fp) # callee saved register # sw $s3, -24($fp) # callee saved register # sw $s4, -28($fp) # callee saved register # sw $s5, -32($fp) # callee saved register # sw $s6, -36($fp) # callee saved register # sw $s7, -40($fp) # callee saved register # li.d $f0, 0.0 # $f0 = 0.0 (double) for comparison # l.s $f12, global___GFCC_M_PREC__ # $f12 = precision (float) # cvt.d.s $f12, $f12 # $f12 = precision (double) # l.s $f2, 0($sp) # $f2 = x; (float) # cvt.d.s $f2, $f2 # $f2 = x; (double) # c.lt.d $f2, $f0 # x < 0.0 # bc1t g5_sin_neg # # $f2 = x, $f4 = ret, $f6 = term_N, $s0 = N # li.d $f4, 0.0 # $f4 = ret = 0.0 (double) # mov.d $f6, $f2 # $f6 = term_N = x (double) # li $s0, 0 # $s0 = N = 0 (int) # g5_sin_loop: # c.le.d $f6, $f12 # bc1t g5_sin_reg_ret # andi $s1, $s0, 0x1 # $s1 = isOdd(N) # beq $s1, 1, g5_sin_minus # mov.d $f8, $f6 # $f8 = term_N (if N is even) # b g5_sin_add_to_ret # g5_sin_minus: # sub.d $f8, $f0, $f6 # $f8 = -term_N (if N is odd) # b g5_sin_add_to_ret # g5_sin_add_to_ret: # add.d $f4, $f4, $f8 # ret += $f8 # addi $s0, $s0, 1 # N++; # mul $s1, $s0, 2 # $s1 = 2N # addi $s2, $s1, 1 # $s2 = 2N + 1 # mul $s1, $s1, $s2 # $s1 = 2N(2N+1) # mtc1.d $s1, $f20 # $f20 = 2N(2N+1) (double) # mul.d $f18, $f2, $f2 # $f18 = x * x # div.d $f18, $f18, $f20 # $f18 = x*x / 2N(2N+1) # mul.d $f6, $f6, $f18 # term_N *= (x * x) / (2N(2N+1)) # b g5_sin_loop # g5_sin_reg_ret: # mov.d $f0, $f4 # $f0 = ret (double) # cvt.s.d $f0, $f0 # $f0 = ret (float) # b g5_sin_ret # return ret # g5_sin_neg: # sub.d $f2, $f0, $f2 # $f2 = -x (double) # cvt.s.d $f2, $f2 # $f2 = x (float) # s.s $f2, -44($sp) # load func param (-x) # jal g5_sin # $f0 = g5_sin(-x) (float) # cvt.d.s $f0, $f0 # $f0 = g5_sin(-x) (double) # li.d $f2, 0.0 # $f0 = 0.0 (double) for subtraction # sub.d $f0, $f2, $f0 # $f0 = -g5_sin(-x) (double) # cvt.s.d $f0, $f0 # $f0 = -g5_sin(-x) (float) # b g5_sin_ret # g5_sin_ret: # lw $s7, -40($fp) # restore callee saved register # lw $s6, -36($fp) # restore callee saved register # lw $s5, -32($fp) # restore callee saved register # lw $s4, -28($fp) # restore callee saved register # lw $s3, -24($fp) # restore callee saved register # lw $s2, -20($fp) # restore callee saved register # lw $s1, -16($fp) # restore callee saved register # lw $s0, -12($fp) # restore frame pointer of caller # move $sp, $fp # close current frame # lw $fp, -8($sp) # restore frame pointer of caller # lw $ra, -4($sp) # restore return address # jr $ra # return to caller
34.629167
74
0.579112
4e2025762b6d4cab5dc8fdd17c797bea4536d00f
251
asm
Assembly
libsrc/_DEVELOPMENT/compress/zx1/c/sdcc/dzx1_smart_rcs_callee.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/compress/zx1/c/sdcc/dzx1_smart_rcs_callee.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/compress/zx1/c/sdcc/dzx1_smart_rcs_callee.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void dzx1_smart_rcs_callee(void *src, void *dst) SECTION code_clib SECTION code_compress_zx1 PUBLIC _dzx1_smart_rcs_callee EXTERN asm_dzx1_smart_rcs _dzx1_smart_rcs_callee: pop af pop hl pop de push af jp asm_dzx1_smart_rcs
13.210526
50
0.772908
783ff8bfb33f0eefaac66ed82c9b48b48d9de1bc
731
asm
Assembly
oeis/097/A097262.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/097/A097262.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/097/A097262.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A097262: Numbers whose set of base 16 digits is {0,F}, where F base 16 = 15 base 10. ; Submitted by Jamie Morken(s3) ; 0,15,240,255,3840,3855,4080,4095,61440,61455,61680,61695,65280,65295,65520,65535,983040,983055,983280,983295,986880,986895,987120,987135,1044480,1044495,1044720,1044735,1048320,1048335,1048560,1048575,15728640,15728655,15728880,15728895,15732480,15732495,15732720,15732735,15790080,15790095,15790320,15790335,15793920,15793935,15794160,15794175,16711680,16711695,16711920,16711935,16715520,16715535,16715760,16715775,16773120,16773135,16773360,16773375,16776960,16776975,16777200,16777215,251658240 mov $2,1 lpb $0 mov $3,$0 div $0,2 mod $3,2 mul $3,$2 add $1,$3 mul $2,16 lpe mov $0,$1 mul $0,15
45.6875
500
0.78249
8243e2eb845cb47ba84fab180f4741a019566ecf
1,021
asm
Assembly
sbsext/ut/write.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
sbsext/ut/write.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
sbsext/ut/write.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
* Write out bits and pieces  Tony Tebby QJUMP * section utils * xdef ut_trap3 xdef ut_trp3r xdef ut_wrta1 xdef ut_wrtst xdef ut_wrtnl xdef ut_wrtch * include dev8_sbsext_ext_keys * ut_wrtnl moveq #$a,d1 newline ut_wrtch moveq #io.sbyte,d0 send one character bra.s ut_trap3 * ut_wrta1 move.w (a6,a1.l),d2 get character count addq.l #2,a1 move pointer on ut_wrtst moveq #io.sstrg,d0 send string * * trap #4 then trap #3 * ut_trp3r trap #4 relative a6 * * trap #3 preserving d3 * ut_trap3 move.l d3,-(sp) save d3 moveq #-1,d3 set infinite timeout trap #3 do trap move.l (sp)+,d3 restore d3 tst.l d0 test error return rts end
24.902439
60
0.458374
ee989b639809237d38f3b3816698229597fec3a4
4,401
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_ht_un_/i9-9900K_12_0xa0_notsx.log_275_504.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_ht_un_/i9-9900K_12_0xa0_notsx.log_275_504.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_ht_un_/i9-9900K_12_0xa0_notsx.log_275_504.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x3788, %rbx nop nop nop sub %rax, %rax mov $0x6162636465666768, %rbp movq %rbp, (%rbx) nop nop nop nop nop cmp %rbx, %rbx lea addresses_UC_ht+0x11410, %r10 nop dec %r14 movl $0x61626364, (%r10) nop nop nop inc %r14 lea addresses_WC_ht+0xf6c8, %rcx sub $3071, %rsi movups (%rcx), %xmm3 vpextrq $0, %xmm3, %rbx nop nop nop nop cmp %rbp, %rbp lea addresses_WT_ht+0x1b4fa, %r14 nop nop nop add $58175, %rbx movl $0x61626364, (%r14) add %rbp, %rbp lea addresses_UC_ht+0x125c8, %rbx nop nop nop nop add %rsi, %rsi movw $0x6162, (%rbx) xor $63383, %rsi lea addresses_A_ht+0x1d5c8, %rsi lea addresses_A_ht+0x22c8, %rdi nop nop nop nop dec %r10 mov $100, %rcx rep movsq nop nop cmp %r14, %r14 lea addresses_WC_ht+0x1d36c, %rsi lea addresses_WT_ht+0x1eec8, %rdi clflush (%rsi) nop nop nop add %r14, %r14 mov $104, %rcx rep movsb nop nop nop xor %rax, %rax lea addresses_A_ht+0xa48, %r14 nop nop nop and $54045, %rbx mov $0x6162636465666768, %rcx movq %rcx, (%r14) nop nop inc %r10 pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r8 push %rax push %rcx push %rdi push %rdx // Load lea addresses_WC+0x1de3a, %rdx nop nop nop nop sub $60051, %r8 vmovaps (%rdx), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $0, %xmm5, %rax nop nop nop nop and %rdx, %rdx // Load lea addresses_PSE+0x1c9c8, %rcx nop nop nop nop nop and $12579, %rdi movb (%rcx), %dl nop nop nop nop nop xor $34830, %r12 // Faulty Load mov $0x6b4d4a0000000dc8, %rdi clflush (%rdi) nop nop xor $37789, %r8 vmovntdqa (%rdi), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $0, %xmm3, %rdx lea oracles, %rax and $0xff, %rdx shlq $12, %rdx mov (%rax,%rdx,1), %rdx pop %rdx pop %rdi pop %rcx pop %rax pop %r8 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 8, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC', 'AVXalign': True, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 32, 'NT': True, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 6}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 2}} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 5}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 1}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 11}} {'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 7}} {'1f': 2, '16': 91, '45': 54, '91': 4, '60': 123, '70': 1} 16 16 60 60 60 45 60 45 60 60 16 16 16 60 16 45 45 60 60 45 16 16 16 60 60 16 45 60 91 60 45 60 45 45 45 60 60 45 60 60 60 60 45 60 91 60 60 60 16 16 60 45 16 60 16 1f 45 16 16 16 16 16 60 16 45 60 60 45 91 16 45 60 16 60 45 16 60 60 60 60 16 45 60 16 60 16 45 45 60 45 60 16 16 16 16 60 60 45 45 60 16 60 16 60 45 60 60 16 60 16 16 16 60 60 60 16 45 16 60 45 60 60 60 16 60 16 60 60 60 60 45 16 60 60 16 60 45 16 60 60 16 16 16 45 60 16 45 60 45 60 45 60 60 60 16 60 60 60 16 16 16 16 60 16 60 60 45 45 16 60 16 60 45 16 45 60 45 60 45 60 60 60 60 60 16 16 16 60 16 45 45 16 16 60 60 16 16 16 45 16 60 16 60 60 1f 60 16 45 60 16 16 16 60 16 60 45 60 60 16 60 16 45 45 60 60 60 60 16 16 16 16 16 60 60 16 60 45 60 60 16 70 16 45 16 16 60 45 16 60 16 60 60 91 60 16 16 60 60 45 16 60 60 45 45 60 45 45 16 60 60 16 60 60 60 60 */
23.789189
824
0.649625
11903f77e9eee69563e21604ff195ef7da778dac
253
asm
Assembly
ESEMPI/13 PROGRAMMA MAX.asm
Porchetta/py-pdp8-tk
5eba6bb2cf72b97602bfa2239e7bf44c454794e0
[ "MIT" ]
8
2019-06-07T10:38:41.000Z
2022-03-24T13:05:12.000Z
ESEMPI/13 PROGRAMMA MAX.asm
Porchetta/py-pdp8-tk
5eba6bb2cf72b97602bfa2239e7bf44c454794e0
[ "MIT" ]
2
2015-07-14T12:22:33.000Z
2018-05-11T08:35:24.000Z
ESEMPI/13 PROGRAMMA MAX.asm
Porchetta/py-pdp8-tk
5eba6bb2cf72b97602bfa2239e7bf44c454794e0
[ "MIT" ]
9
2015-05-06T14:35:08.000Z
2021-03-23T14:27:21.000Z
ORG 400 /Mette in RIS il più grande tra A,B,C,D LDA A CMA INC ADD B SPA BUN H ADD A STA A H, LDA C CMA INC ADD D SPA BUN K ADD C STA C K, LDA A CMA INC ADD C SPA BUN S ADD A STA A S, LDA A STA RIS HLT A, DEC 10 B, DEC 5 C, DEC 3 D, DEC 7 RIS, DEC 0 END
7.228571
47
0.664032
e77b8d73d5f6af82bb3bcd60779ef4670940eef3
636
asm
Assembly
libsrc/_DEVELOPMENT/math/float/am9511/lam32/z80/asm_hypotf.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/am9511/lam32/z80/asm_hypotf.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/am9511/lam32/z80/asm_hypotf.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; float _hypotf (float left, float right) __z88dk_callee SECTION code_clib SECTION code_fp_am9511 PUBLIC asm_hypotf EXTERN asm_am9511_hypot_callee ; find the hypotenuse of two sccz80 floats ; ; enter : stack = sccz80_float left, ret ; DEHL = sccz80_float right ; ; exit : DEHL = sccz80_float(left+right) ; ; uses : af, bc, de, hl, af', bc', de', hl' DEFC asm_hypotf = asm_am9511_hypot_callee ; enter stack = IEEE-754 float left ; DEHL = IEEE-754 float right ; return DEHL = IEEE-754 float
27.652174
80
0.575472
2309746327bf7e41c6ce69a6be257535b115647a
4,898
asm
Assembly
Transynther/x86/_processed/US/_ht_st_zr_un_/i7-7700_9_0xca.log_21829_1006.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_ht_st_zr_un_/i7-7700_9_0xca.log_21829_1006.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_ht_st_zr_un_/i7-7700_9_0xca.log_21829_1006.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_UC_ht+0x189fd, %rsi lea addresses_WC_ht+0xbd8d, %rdi nop nop nop nop cmp %r13, %r13 mov $62, %rcx rep movsl add %rcx, %rcx lea addresses_WC_ht+0xb085, %r9 nop nop and $50190, %rax mov (%r9), %r11 nop nop nop xor %r11, %r11 lea addresses_WC_ht+0x1c0fd, %r13 clflush (%r13) sub %rsi, %rsi movw $0x6162, (%r13) nop and %rcx, %rcx lea addresses_WC_ht+0x37d, %rcx nop nop nop nop nop inc %r11 movb $0x61, (%rcx) nop nop nop and %rdi, %rdi pop %rsi pop %rdi pop %rcx pop %rax pop %r9 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r15 push %r8 push %rbx // Faulty Load lea addresses_US+0x179fd, %r15 nop xor $54247, %r13 vmovups (%r15), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $0, %xmm1, %r12 lea oracles, %rbx and $0xff, %r12 shlq $12, %r12 mov (%rbx,%r12,1), %r12 pop %rbx pop %r8 pop %r15 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 32, 'NT': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 10, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': True, 'same': True, 'size': 2, 'NT': False, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WC_ht'}} {'79': 14, 'f0': 136, '47': 2136, '00': 5834, 'ff': 11897, '53': 1772, '10': 40} ff ff ff ff 00 ff ff 00 ff ff ff 47 00 53 ff ff 00 ff ff ff ff ff ff 00 ff 00 ff ff 00 00 00 ff ff ff 47 00 53 ff ff ff ff ff ff ff 00 ff 00 ff ff 47 00 47 ff 47 47 ff ff ff 53 ff 00 ff ff 00 ff 53 ff 00 ff ff ff ff 00 ff ff ff 00 53 00 ff ff ff ff 00 ff 47 00 ff 53 ff ff ff ff 47 00 ff 00 47 00 00 ff ff 53 ff ff ff ff 00 ff 00 ff ff 00 47 00 ff ff 00 53 ff 00 ff ff ff 00 00 ff 00 00 ff ff ff 00 00 00 ff ff 53 ff ff 00 00 47 47 ff ff 00 00 00 00 ff ff ff ff ff ff 53 47 ff 00 47 00 ff 47 ff ff ff 00 ff 53 ff ff 00 ff ff ff 00 ff 53 ff 47 00 ff 47 00 53 ff 00 ff ff ff ff 47 ff ff 00 ff 00 00 ff 00 47 ff 00 ff 00 ff 00 ff ff 00 00 ff 00 ff 47 ff 47 47 ff 53 47 ff 00 ff ff ff 00 ff 00 00 47 ff ff 00 ff ff ff 00 ff ff 00 53 00 ff 00 00 47 ff 00 ff ff ff ff 00 00 ff ff 47 47 ff 47 00 ff 53 00 ff 47 ff 47 ff ff 00 ff ff ff 53 ff 47 00 53 ff ff 47 00 ff ff ff ff ff ff ff 00 ff 53 ff ff 00 ff ff ff 00 ff 53 47 ff 53 ff 53 ff ff 53 ff 47 00 47 ff 00 00 47 ff 00 ff 00 ff ff 00 ff ff 00 00 ff 53 47 ff 53 ff 47 00 00 ff 53 00 ff ff ff ff ff ff ff ff ff 47 00 ff 00 ff 47 ff ff 00 00 00 ff ff ff 47 47 ff ff 00 00 ff 00 ff ff ff 00 00 00 00 ff 47 53 ff ff ff ff ff 00 00 00 ff ff ff 00 00 53 ff 00 00 ff 47 00 ff ff ff ff ff 53 ff ff 00 ff 00 00 ff ff ff ff ff 00 ff ff ff 00 00 53 ff ff ff ff 00 ff ff ff 00 ff ff 00 47 ff ff ff 53 ff ff ff 00 ff ff ff ff 47 ff ff ff ff ff ff 00 ff ff 00 ff ff ff ff ff 47 00 ff 53 ff ff 00 ff ff 47 53 53 00 ff ff 00 ff ff ff ff 53 ff 00 53 ff ff 00 ff ff 53 ff ff ff ff ff ff ff ff ff 00 00 00 00 ff 00 47 ff 47 ff ff 00 00 47 00 ff ff 00 ff 53 00 ff 53 ff 53 00 ff ff ff 00 00 ff 53 ff 47 00 00 00 00 ff 00 ff ff 00 47 ff ff ff 00 00 00 ff ff 00 ff ff ff 47 47 ff ff 00 ff ff 53 ff 00 ff ff 00 53 ff ff ff ff ff ff ff 00 00 53 00 ff ff 47 00 00 ff ff ff ff ff ff ff ff ff 00 47 47 53 53 00 ff ff ff ff 47 ff ff ff 00 ff 00 00 ff ff 00 00 00 00 ff ff 00 ff ff 00 00 00 ff 00 00 ff 47 ff 00 47 00 ff ff 53 ff ff 00 ff ff ff 00 47 ff 53 47 53 00 ff ff ff 00 ff ff 00 ff 00 47 00 53 ff 00 47 00 00 00 00 ff 47 ff 53 47 ff ff 00 ff ff ff 00 47 53 ff ff ff 00 ff 47 00 47 00 ff 00 ff ff ff ff 00 53 47 ff 00 ff ff 00 ff 00 ff 00 ff ff 00 ff 00 ff ff ff ff ff ff 00 ff ff 00 00 00 00 53 47 00 ff 00 ff 00 00 ff 47 00 ff ff 00 ff ff 47 00 ff 00 ff ff ff 00 ff ff 00 ff ff ff 00 47 00 ff ff ff 00 00 53 ff 53 ff ff ff 00 ff ff ff ff 47 ff 53 ff 00 ff 00 ff 53 00 ff ff ff ff 00 00 ff ff ff ff 00 ff ff 00 ff 47 ff 00 53 ff 00 ff ff ff ff 00 47 ff ff 53 00 00 00 47 ff ff ff 00 ff ff 00 ff 00 00 ff ff 00 00 47 00 00 00 ff 53 ff ff ff 47 47 ff 00 ff 00 00 ff 47 ff ff ff 00 00 00 ff 00 ff 47 ff ff ff ff 53 00 53 47 00 ff 53 ff ff ff 00 ff ff 47 00 00 00 ff 53 ff 00 00 ff ff ff 00 ff 00 ff ff 00 ff 00 00 ff ff ff ff 00 00 47 ff ff ff 00 ff ff 53 ff ff 00 ff ff 53 47 00 ff 47 47 ff ff 47 47 ff 00 ff 00 ff ff 00 ff ff ff 47 00 47 ff ff 47 ff ff ff 53 47 00 00 ff ff ff ff 00 00 ff ff ff ff 00 00 00 00 00 53 ff ff ff ff ff ff ff 47 53 ff ff ff 47 00 ff ff 00 ff 00 00 */
51.020833
2,999
0.656799
f067995cdbfffd56ac17d5a361a309d2edf13bcc
5,282
asm
Assembly
coffee_machine/mpu/HALCoGen_EMAC_Driver_with_lwIP_Demonstration/v00.03.00/TMS570LC43x/HALCoGen-TMS570LC43x/source/HL_sys_pmu.asm
daeroro/IntegrationProject
3b37f31e172cf4411ad0c2481e154e5facfb4d1e
[ "MIT" ]
null
null
null
coffee_machine/mpu/HALCoGen_EMAC_Driver_with_lwIP_Demonstration/v00.03.00/TMS570LC43x/HALCoGen-TMS570LC43x/source/HL_sys_pmu.asm
daeroro/IntegrationProject
3b37f31e172cf4411ad0c2481e154e5facfb4d1e
[ "MIT" ]
null
null
null
coffee_machine/mpu/HALCoGen_EMAC_Driver_with_lwIP_Demonstration/v00.03.00/TMS570LC43x/HALCoGen-TMS570LC43x/source/HL_sys_pmu.asm
daeroro/IntegrationProject
3b37f31e172cf4411ad0c2481e154e5facfb4d1e
[ "MIT" ]
2
2019-04-29T01:05:25.000Z
2019-04-29T02:45:44.000Z
;------------------------------------------------------------------------------- ; HL_sys_pmu.asm ; ; (c) Texas Instruments 2009-2013, All rights reserved. ; .text .arm ;------------------------------------------------------------------------------- ; Initialize Pmu ; Note: It will reset all counters .def _pmuInit_ .asmfunc _pmuInit_ stmfd sp!, {r0} ; set control register mrc p15, #0, r0, c9, c12, #0 orr r0, r0, #(1 << 4) + 6 + 1 mcr p15, #0, r0, c9, c12, #0 ; clear flags mov r0, #0 sub r1, r1, #1 mcr p15, #0, r0, c9, c12, #3 ; select counter 0 event mcr p15, #0, r0, c9, c12, #5 ; select counter mov r0, #0x11 mcr p15, #0, r0, c9, c13, #1 ; select event ; select counter 1 event mov r0, #1 mcr p15, #0, r0, c9, c12, #5 ; select counter mov r0, #0x11 mcr p15, #0, r0, c9, c13, #1 ; select event ; select counter 2 event mov r0, #2 mcr p15, #0, r0, c9, c12, #5 ; select counter mov r0, #0x11 mcr p15, #0, r0, c9, c13, #1 ; select event ldmfd sp!, {r0} bx lr .endasmfunc ;------------------------------------------------------------------------------- ; Enable Counters Global [Cycle, Event [0..2]] ; Note: It will reset all counters .def _pmuEnableCountersGlobal_ .asmfunc _pmuEnableCountersGlobal_ stmfd sp!, {r0} mrc p15, #0, r0, c9, c12, #0 orr r0, r0, #7 mcr p15, #0, r0, c9, c12, #0 ldmfd sp!, {r0} bx lr .endasmfunc ;------------------------------------------------------------------------------- ; Disable Counters Global [Cycle, Event [0..2]] .def _pmuDisableCountersGlobal_ .asmfunc _pmuDisableCountersGlobal_ stmfd sp!, {r0} mrc p15, #0, r0, c9, c12, #0 bic r0, r0, #1 mcr p15, #0, r0, c9, c12, #0 ldmfd sp!, {r0} bx lr .endasmfunc ;------------------------------------------------------------------------------- ; Reset Cycle Counter .def _pmuResetCycleCounter_ .asmfunc _pmuResetCycleCounter_ stmfd sp!, {r0} mrc p15, #0, r0, c9, c12, #0 orr r0, r0, #4 mcr p15, #0, r0, c9, c12, #0 ldmfd sp!, {r0} bx lr .endasmfunc ;------------------------------------------------------------------------------- ; Reset Event Counters [0..2] .def _pmuResetEventCounters_ .asmfunc _pmuResetEventCounters_ stmfd sp!, {r0} mrc p15, #0, r0, c9, c12, #0 orr r0, r0, #2 mcr p15, #0, r0, c9, c12, #0 ldmfd sp!, {r0} bx lr .endasmfunc ;------------------------------------------------------------------------------- ; Reset Cycle Counter abd Event Counters [0..2] .def _pmuResetCounters_ .asmfunc _pmuResetCounters_ stmfd sp!, {r0} mrc p15, #0, r0, c9, c12, #0 orr r0, r0, #6 mcr p15, #0, r0, c9, c12, #0 ldmfd sp!, {r0} bx lr .endasmfunc ;------------------------------------------------------------------------------- ; Start Counters [Cycle, 0..2] .def _pmuStartCounters_ .asmfunc _pmuStartCounters_ mcr p15, #0, r0, c9, c12, #1 bx lr .endasmfunc ;------------------------------------------------------------------------------- ; Stop Counters [Cycle, 0..2] .def _pmuStopCounters_ .asmfunc _pmuStopCounters_ mcr p15, #0, r0, c9, c12, #2 bx lr .endasmfunc ;------------------------------------------------------------------------------- ; Set Count event .def _pmuSetCountEvent_ .asmfunc _pmuSetCountEvent_ lsr r0, r0, #1 mcr p15, #0, r0, c9, c12, #5 ; select counter mcr p15, #0, r1, c9, c13, #1 ; select event bx lr .endasmfunc ;------------------------------------------------------------------------------- ; Get Cycle Count .def _pmuGetCycleCount_ .asmfunc _pmuGetCycleCount_ mrc p15, #0, r0, c9, c13, #0 bx lr .endasmfunc ;------------------------------------------------------------------------------- ; Get Event Counter Count Value .def _pmuGetEventCount_ .asmfunc _pmuGetEventCount_ lsr r0, r0, #1 mcr p15, #0, r0, c9, c12, #5 ; select counter mrc p15, #0, r0, c9, c13, #2 ; read event counter bx lr .endasmfunc ;------------------------------------------------------------------------------- ; Get Overflow Flags .def _pmuGetOverflow_ .asmfunc _pmuGetOverflow_ mrc p15, #0, r0, c9, c12, #3 ; read overflow mov r1, #0 sub r1, r1, #1 mcr p15, #0, r1, c9, c12, #3 ; clear flags bx lr .endasmfunc ;-------------------------------------------------------------------------------
23.580357
81
0.380159
9f57f4ea9ddcd3b2693ef6c3146a995af3e4acbb
375
asm
Assembly
asm/x64/lm_start.asm
icebit/modulon
c7e75e2e5ce1676b9493340ce7d92ce80731fe5a
[ "Apache-2.0" ]
5
2016-02-24T05:05:14.000Z
2016-04-13T23:15:27.000Z
asm/x64/lm_start.asm
modulon/kernel
c7e75e2e5ce1676b9493340ce7d92ce80731fe5a
[ "Apache-2.0" ]
null
null
null
asm/x64/lm_start.asm
modulon/kernel
c7e75e2e5ce1676b9493340ce7d92ce80731fe5a
[ "Apache-2.0" ]
null
null
null
;;------------------------------------------------------------------------------------------------ ;;`arch/x64/lm_start.asm` ;; ;;First 64 bit file to be called, calls kmain(). ;;------------------------------------------------------------------------------------------------ global lm_start extern kmain extern kb_handler section .text bits 64 lm_start: call kmain hlt
22.058824
98
0.346667
3d2649877de785975648f57e7604b19aaa9a7624
9,673
asm
Assembly
titlescreen.asm
adamsmasher/bustfree
446d6777f42d3baa57f29ec9e4613a3e5cd4afe9
[ "MIT" ]
null
null
null
titlescreen.asm
adamsmasher/bustfree
446d6777f42d3baa57f29ec9e4613a3e5cd4afe9
[ "MIT" ]
null
null
null
titlescreen.asm
adamsmasher/bustfree
446d6777f42d3baa57f29ec9e4613a3e5cd4afe9
[ "MIT" ]
null
null
null
INCLUDE "font.inc" INCLUDE "input.inc" STATE_SCROLLING1 EQU 0 STATE_SCROLLING2 EQU 1 STATE_FADING EQU 2 STATE_WAITING EQU 3 FADE_DELAY EQU 5 FLASH_DELAY EQU 45 BUST_FIRST_TILE_ADDR EQU $8B00 FREE_FIRST_TILE_ADDR EQU $8E20 KATAKANA_FIRST_TILE_ADDR EQU $9200 BUST_FIRST_TILE EQU (BUST_FIRST_TILE_ADDR & $0FF0) >> 4 FREE_FIRST_TILE EQU (FREE_FIRST_TILE_ADDR & $0FF0) >> 4 KATAKANA_FIRST_TILE EQU (KATAKANA_FIRST_TILE_ADDR & $0FF0) >> 4 BUST_POS EQU $9800 FREE_POS EQU $9900 PRESS_START_POS EQU $9A25 KATAKANA_POS EQU $984B INITIAL_SCROLL_X EQU $60 FINAL_SCROLL_X2 EQU $D8 FREE_SCROLL_ADJ_Y EQU 20 PRESS_START_SCROLL_ADJ_Y EQU 24 SCROLL_SPEED EQU 4 FLASH_TIME EQU 24 FREE_LINE EQU 45 PRESS_START_LINE EQU 90 SECTION "TitleScreenRAM", WRAM0 TitleScreenState: DS 1 TitleScreenScrollX1: DS 1 TitleScreenScrollX2: DS 1 TitleScreenPalette: DS 1 PressStartPalette: DS 1 Delay: DS 1 SECTION "TitleScreenData", ROMX PUSHC SETCHARMAP Font PressStartTxt: DB "PRESS START" .end POPC BustLogo: INCBIN "bust.gfx" .end FreeLogo: INCBIN "free.gfx" .end KatakanaLogo: INCBIN "basutofurii.gfx" .end _DrawPressStart: LD HL, PressStartTxt LD DE, PRESS_START_POS LD B, PressStartTxt.end - PressStartTxt .loop LD A, [HLI] LD [DE], A INC E DEC B JR NZ, .loop RET LoadBustLogo: LD HL, BustLogo LD DE, BUST_FIRST_TILE_ADDR LD BC, BustLogo.end - BustLogo .loop LD A, [HLI] LD [DE], A INC DE DEC BC LD A, B OR C JR NZ, .loop RET LoadFreeLogo: LD HL, FreeLogo LD DE, FREE_FIRST_TILE_ADDR LD BC, FreeLogo.end - FreeLogo .loop LD A, [HLI] LD [DE], A INC DE DEC BC LD A, B OR C JR NZ, .loop RET LoadKatakanaLogo: LD HL, KatakanaLogo LD DE, KATAKANA_FIRST_TILE_ADDR LD B, KatakanaLogo.end - KatakanaLogo .loop LD A, [HLI] LD [DE], A INC DE DEC B JR NZ, .loop RET _LoadTitleGfx: CALL LoadFont CALL LoadBustLogo CALL LoadFreeLogo CALL LoadKatakanaLogo RET SECTION "TitleScreen", ROM0 BUST_WIDTH EQU 10 BUST_HEIGHT EQU 5 FREE_WIDTH EQU 12 FREE_HEIGHT EQU 5 KATAKANA_WIDTH EQU 6 KATAKANA_HEIGHT EQU 2 DrawPressStart: LD A, BANK(_DrawPressStart) LD [$2000], A JP _DrawPressStart LoadTitleGfx: LD A, BANK(_LoadTitleGfx) LD [$2000], A JP _LoadTitleGfx DrawBustLogo: LD HL, BUST_POS LD A, BUST_FIRST_TILE LD B, BUST_HEIGHT .row LD C, BUST_WIDTH .loop LD [HLI], A INC A DEC C JR NZ, .loop LD D, A LD A, L ADD 32 - BUST_WIDTH LD L, A LD A, D DEC B JR NZ, .row RET DrawFreeLogo: LD HL, FREE_POS LD A, FREE_FIRST_TILE LD B, FREE_HEIGHT .row LD C, FREE_WIDTH .loop LD [HLI], A INC A DEC C JR NZ, .loop LD D, A LD A, L ADD 32 - FREE_WIDTH LD L, A LD A, D DEC B JR NZ, .row RET DrawKatakanaLogo: LD HL, KATAKANA_POS LD A, KATAKANA_FIRST_TILE LD B, KATAKANA_HEIGHT .row LD C, KATAKANA_WIDTH .loop LD [HLI], A INC A DEC C JR NZ, .loop LD D, A LD A, L ADD 32 - KATAKANA_WIDTH LD L, A LD A, D DEC B JR NZ, .row RET ClearBG: LD A, $7F LD B, 32 LD HL, $9800 .row LD C, 32 .loop LD [HLI], A DEC C JR NZ, .loop DEC B JR NZ, .row RET DrawTitleScreen: CALL ClearBG CALL DrawBustLogo CALL DrawFreeLogo RET InitHandlers: LD HL, VBlankHandler LD A, LOW(VBlank) LD [HLI], A LD [HL], HIGH(VBlank) LD A, %01000000 LDH [$41], A LD HL, $FFFF SET 1, [HL] RET StartTitleScreen:: LD A, STATE_SCROLLING1 LD [TitleScreenState], A LD A, INITIAL_SCROLL_X LD [TitleScreenScrollX1], A LD [TitleScreenScrollX2], A LD A, $E4 LD [TitleScreenPalette], A LD [PressStartPalette], A CALL InitHandlers CALL LoadTitleGfx CALL DrawTitleScreen CALL TurnOnScreen LD HL, GameLoopPtr LD A, LOW(TitleScreen) LD [HLI], A LD [HL], HIGH(TitleScreen) RET StartWaiting: LD B, FLASH_TIME .loop CALL WaitForVBlank DEC B JR NZ, .loop CALL TurnOffScreen CALL DrawPressStart CALL DrawKatakanaLogo LD A, $E4 LD [TitleScreenPalette], A LD [PressStartPalette], A LD A, FLASH_DELAY LD [Delay], A CALL TurnOnScreen LD A, STATE_WAITING LD [TitleScreenState], A RET StartScroll2: LD A, STATE_SCROLLING2 LD [TitleScreenState], A RET StartFading: XOR A LD [TitleScreenScrollX1], A LD A, FINAL_SCROLL_X2 LD [TitleScreenScrollX2], A LD A, STATE_FADING LD [TitleScreenState], A LD A, FADE_DELAY LD [Delay], A RET HandleScrolling1: LD HL, TitleScreenScrollX1 LD A, [HL] SUB SCROLL_SPEED LD [HL], A JP Z, StartScroll2 LD A, [KeysPressed] BIT INPUT_START, A JP NZ, StartFading RET HandleScrolling2: LD HL, TitleScreenScrollX2 LD A, [HL] ADD SCROLL_SPEED LD [HL], A LD A, [HL] CP FINAL_SCROLL_X2 JP Z, StartFading LD A, [KeysPressed] BIT INPUT_START, A RET Z CALL StartFading RET StepFade: LD HL, TitleScreenPalette LD A, [HL] SLA A SLA A LD [HL], A JP Z, StartWaiting RET HandleFading: LD HL, Delay DEC [HL] RET NZ CALL StepFade LD A, FADE_DELAY LD [Delay], A RET FlashText: LD A, FLASH_DELAY LD [Delay], A LD HL, PressStartPalette LD A, [HL] XOR %11000000 LD [HL], A RET HandleWaiting: LD HL, Delay DEC [HL] CALL Z, FlashText LD A, [KeysPressed] BIT INPUT_START, A RET Z CALL TurnOffScreen CALL ClearVRAM CALL StartGame RET TitleScreen: LD A, [TitleScreenState] CP STATE_SCROLLING1 JP Z, HandleScrolling1 CP STATE_SCROLLING2 JP Z, HandleScrolling2 CP STATE_FADING JP Z, HandleFading CP STATE_WAITING JP Z, HandleWaiting RET TurnOnScreen: ; enable display ; BG tiles at $8800 ; map at $9800 ; bg enabled LD A, %10000001 LDH [$40], A RET VBlank: LD A, [TitleScreenPalette] LDH [$47], A LD A, [TitleScreenScrollX1] LDH [$43], A XOR A LDH [$42], A LD HL, StatHandler LD A, LOW(Stat1) LD [HLI], A LD [HL], HIGH(Stat1) LD A, FREE_LINE LDH [$45], A RET Stat1: LD A, [TitleScreenScrollX2] LDH [$43], A LD A, FREE_SCROLL_ADJ_Y LDH [$42], A LD HL, StatHandler LD A, LOW(Stat2) LD [HLI], A LD [HL], HIGH(Stat2) LD A, PRESS_START_LINE LDH [$45], A RET Stat2: LD A, PRESS_START_SCROLL_ADJ_Y LDH [$42], A XOR A LDH [$43], A LD A, [PressStartPalette] LDH [$47], A RET
26.356948
66
0.439367
27ac9b7e9dfdb0631b17058df3d2ae4bd49629b9
517
asm
Assembly
Kernel/asm/temperature.asm
inesmarca/2TP_SO
7174f27d68e7fc381dff00207a7ae0e1d5b09aed
[ "BSD-3-Clause" ]
null
null
null
Kernel/asm/temperature.asm
inesmarca/2TP_SO
7174f27d68e7fc381dff00207a7ae0e1d5b09aed
[ "BSD-3-Clause" ]
null
null
null
Kernel/asm/temperature.asm
inesmarca/2TP_SO
7174f27d68e7fc381dff00207a7ae0e1d5b09aed
[ "BSD-3-Clause" ]
null
null
null
GLOBAL getTempTargetInfo GLOBAL getTempOffsetInfo getTempTargetInfo: push rbp mov rbp,rsp mov ecx,1A2h; setear la direc de memoria para temperature_status ;rdmsr; me tira la info de la temp en edx:eax mov eax,0x5640000 mov rsp, rbp pop rbp ret getTempOffsetInfo: push rbp mov rbp,rsp mov ecx,19Ch; setear la direc de memoria para temperature_status ;rdmsr; me tira la info de la temp en edx:eax mov eax,0x884C2808 mov rsp, rbp pop rbp ret
19.148148
70
0.682785
8cfc491e07034191fa872fcfe61a2a760971fd52
10
asm
Assembly
programs/templates/call.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/templates/call.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
69
2021-08-28T10:34:30.000Z
2022-03-20T19:16:19.000Z
programs/templates/call.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
cal $0,-1
5
9
0.5
784d41624006d834f8d1914187f9af2377ee4a63
617
asm
Assembly
programs/oeis/157/A157990.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/157/A157990.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/157/A157990.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A157990: a(n) = 288*n + 1. ; 289,577,865,1153,1441,1729,2017,2305,2593,2881,3169,3457,3745,4033,4321,4609,4897,5185,5473,5761,6049,6337,6625,6913,7201,7489,7777,8065,8353,8641,8929,9217,9505,9793,10081,10369,10657,10945,11233,11521,11809,12097,12385,12673,12961,13249,13537,13825,14113,14401,14689,14977,15265,15553,15841,16129,16417,16705,16993,17281,17569,17857,18145,18433,18721,19009,19297,19585,19873,20161,20449,20737,21025,21313,21601,21889,22177,22465,22753,23041,23329,23617,23905,24193,24481,24769,25057,25345,25633,25921,26209,26497,26785,27073,27361,27649,27937,28225,28513,28801 mul $0,288 add $0,289
102.833333
564
0.795786
7d9bf79c15ce174973c0550c333440ab3ff24452
371
asm
Assembly
programs/oeis/187/A187468.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/187/A187468.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/187/A187468.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A187468: Sum of the squares modulo 2^n of the odd numbers less than 2^n. ; 1,2,4,40,208,928,3904,16000,64768,260608,1045504,4188160,16764928,67084288,268386304,1073643520,4294770688,17179475968,68718690304,274876334080,1099508482048,4398040219648,17592173461504,70368719011840,281474926379008 mov $1,2 pow $1,$0 sub $1,1 mov $2,1 add $2,$1 trn $1,3 add $1,1 mul $1,$2
30.916667
219
0.77628
8c5d58ac9838002800ec7577e572eff7e615ec3e
7,710
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_sm_/i3-7100_9_0x84_notsx.log_21829_2458.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_sm_/i3-7100_9_0x84_notsx.log_21829_2458.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_sm_/i3-7100_9_0x84_notsx.log_21829_2458.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r14 push %r15 push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x4d6b, %r15 nop nop nop cmp %r10, %r10 mov (%r15), %r14 nop nop nop nop and $64607, %rbx lea addresses_WC_ht+0xf36b, %rsi lea addresses_WT_ht+0x7921, %rdi nop nop nop nop xor $62698, %r11 mov $101, %rcx rep movsw add $38214, %r11 lea addresses_UC_ht+0x1c56b, %r11 nop nop nop cmp $16397, %rsi mov $0x6162636465666768, %rdi movq %rdi, (%r11) nop nop xor $681, %rdi lea addresses_UC_ht+0x16b, %r10 nop nop nop nop nop sub $12599, %rdi vmovups (%r10), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $0, %xmm0, %rbx cmp %rcx, %rcx lea addresses_normal_ht+0x88a4, %r10 nop add $45143, %rcx movl $0x61626364, (%r10) nop nop nop and %r14, %r14 lea addresses_D_ht+0x4b2b, %rsi lea addresses_WC_ht+0x4d6b, %rdi nop nop nop nop dec %r10 mov $122, %rcx rep movsw nop nop nop nop add %rsi, %rsi lea addresses_WC_ht+0xe3bb, %rdi cmp $29696, %r10 movb (%rdi), %r14b nop nop nop nop xor %rcx, %rcx lea addresses_WT_ht+0x1319d, %rdi nop nop nop nop sub %r14, %r14 mov (%rdi), %r15w nop nop nop nop and %rcx, %rcx lea addresses_D_ht+0x716b, %rdi nop nop nop nop nop cmp %rsi, %rsi mov (%rdi), %r11w nop add %rbx, %rbx lea addresses_normal_ht+0xa3b, %rsi lea addresses_WC_ht+0xf17b, %rdi nop add $53296, %r15 mov $63, %rcx rep movsl nop nop sub $22991, %r15 lea addresses_A_ht+0x8ce3, %rsi nop nop nop nop add %r14, %r14 mov $0x6162636465666768, %rbx movq %rbx, %xmm0 movups %xmm0, (%rsi) and %r15, %r15 pop %rsi pop %rdi pop %rcx pop %rbx pop %r15 pop %r14 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r15 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi // Store lea addresses_WT+0x1146b, %r11 nop nop xor $59487, %rax mov $0x5152535455565758, %r9 movq %r9, (%r11) cmp %rcx, %rcx // Store lea addresses_PSE+0xaa6b, %rax nop nop nop nop nop sub $29717, %rbp movb $0x51, (%rax) inc %r9 // REPMOV lea addresses_A+0x8be3, %rsi lea addresses_UC+0x17d0b, %rdi nop nop and %r15, %r15 mov $84, %rcx rep movsb nop cmp $61079, %rcx // Store lea addresses_A+0x356b, %rsi dec %rbp movw $0x5152, (%rsi) nop nop nop nop cmp $30955, %rsi // Faulty Load lea addresses_A+0x356b, %rdi nop nop add %rsi, %rsi movb (%rdi), %al lea oracles, %r9 and $0xff, %rax shlq $12, %rax mov (%r9,%rax,1), %rax pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r15 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_A', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WT', 'same': False, 'size': 8, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_PSE', 'same': False, 'size': 1, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_A', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_UC', 'congruent': 5, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_A', 'same': True, 'size': 2, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_A', 'same': True, 'size': 1, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 8, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 8, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 4, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 2, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 2, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 16, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'52': 21829} 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 */
33.376623
2,999
0.653956
bee1ff43a90f25513cc49200941ffc4dff99da43
4,915
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_182.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_182.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_182.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r8 push %rax push %rcx push %rdx lea addresses_normal_ht+0x1113d, %rdx nop nop nop nop sub $62267, %r14 movups (%rdx), %xmm6 vpextrq $0, %xmm6, %rax nop nop nop nop nop and $65025, %r10 lea addresses_D_ht+0x1587d, %r8 nop nop nop xor %rdx, %rdx vmovups (%r8), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $1, %xmm0, %rcx nop nop nop xor $24737, %rdx pop %rdx pop %rcx pop %rax pop %r8 pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r8 push %rax push %rbp push %rbx push %rdx // Store lea addresses_UC+0xda65, %rax nop nop cmp $24446, %rbx mov $0x5152535455565758, %rdx movq %rdx, (%rax) nop sub $39183, %rax // Store lea addresses_UC+0x173d, %rax add %r13, %r13 movw $0x5152, (%rax) nop nop nop sub $27733, %rbx // Faulty Load lea addresses_D+0x373d, %rdx nop nop nop cmp $37158, %rbp vmovups (%rdx), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $0, %xmm2, %r8 lea oracles, %rbp and $0xff, %r8 shlq $12, %r8 mov (%rbp,%r8,1), %r8 pop %rdx pop %rbx pop %rbp pop %rax pop %r8 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 3}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 11}} [Faulty Load] {'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'} {'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 */
46.367925
2,999
0.6588
631403a84e079b68098f5d1e2ff28590a1e6e93a
2,223
asm
Assembly
static/files/attiny10_analog.asm
AlanFromJapan/alanWebSites
d1c98f69c10814f0746fa1be5d2a27fa729d4bf7
[ "MIT" ]
1
2019-10-05T18:34:27.000Z
2019-10-05T18:34:27.000Z
static/files/attiny10_analog.asm
AlanFromJapan/alanWebSites
d1c98f69c10814f0746fa1be5d2a27fa729d4bf7
[ "MIT" ]
null
null
null
static/files/attiny10_analog.asm
AlanFromJapan/alanWebSites
d1c98f69c10814f0746fa1be5d2a27fa729d4bf7
[ "MIT" ]
1
2015-09-10T09:32:22.000Z
2015-09-10T09:32:22.000Z
; ; for using the ADC ; Set up a variable voltage divider and connect ; it to pin 3 (PB1). ; connect an LED to pin 1 (PB0) ; If voltage is more than 2.5V, LED is on ; less than 2.5V, LED is off ; ; variables .DEF rsreg = r23 ; to save status register .CSEG ; code section .ORG $0000 ; the address ; interrupt vectors rjmp main ; reset vector reti ; external interrupt 0 reti ; pin change reti ; timer input capture reti ; timer overflow reti ; timer compare match A reti ; timer compare match B reti ; analog comparator reti ; watchdog timer reti ; Vcc voltage level monitor rjmp isr_adcconv ; ADC conversion complete ; interrupt service routines isr_adcconv: in rsreg, SREG ; save the status register ldi r16, 0x00 sbic ADCL, 7 ; if the value is less than 1/2*Vcc, set pin 1 low, else high ldi r16, 1<<PB0 out PORTB, r16 out SREG, rsreg ; restore the status register reti ; return and enable int main: ; set up the stack ldi r16, HIGH(RAMEND) out SPH, r16 ldi r16, LOW(RAMEND) out SPL, r16 ; setup pins ldi r16, 1<<PB0 ; PB0 is output out DDRB, r16 ; set up the ADC ; ADCSRA contains [ADEN, ADSC, ADATE, ADIF, ADIE, ADPS2, ADPS1, ADPS0] ; which means: enable, start, trigger enable, int flag, int enable, clock prescaler ; ; ADCSRB contains [-,-,-,-,-,ADTS2, ADTS1, ADTS0] ; means: auto trigger soure 0=free running, 1=analog comparator, 2=int0, 3,5=timer comp. A,B, ; 4=tmer overflow, 6=pinchange int, 7=timer capture ; ; ADMUX contains [-,-,-,-,-,-,MUX1,MUX0] ; sets the channel(pin) for conversion ; ; DIDR0 contains [-,-,-,-,ADC3D to ADC0D] ; disables the digital input, not necessary, but uses less power ; ldi r17, (1<<ADC1D) ; disable digital on pin 3 PB1 out DIDR0, r17 ldi r18, (1<<MUX0) ; pin 3 PB1 out ADMUX, r18 ldi r19, 0x00 ; free running out ADCSRB, r19 ldi r20, (1<<ADEN)|(1<<ADSC)|(1<<ADATE)|(1<<ADIE) ; enable, start, trigger, int enable, prescaler=2(min) out ADCSRA, r20 ; enable sleep mode, ADC noise reduction mode ldi r16, (1<<SM0)|(1<<SE) out SMCR, r16 sei ; interrupts enabled ; main loop loop: sleep ; go to idle mode nop ; just wait for ADC conversion to finish, everything is done in the interrupt routine nop rjmp loop
26.464286
105
0.690508
b461e38ba3faaedf8a92741a282f4ab480647b83
146
asm
Assembly
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/Doppler-p.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/Doppler-p.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/Doppler-p.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: Doppler-p.asm Type: file Size: 8962 Last-Modified: '1992-07-30T05:00:31Z' SHA-1: 53F56F95B99AF3C624101EB8FD2D9BBF914855A9 Description: null
20.857143
47
0.808219
09ddb78cc16a8d2a1080d6daec33990920a46485
5,950
asm
Assembly
dino/lcs/enemy/7D.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
6
2020-10-14T15:29:10.000Z
2022-02-12T18:58:54.000Z
dino/lcs/enemy/7D.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
dino/lcs/enemy/7D.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
1
2020-12-17T08:59:10.000Z
2020-12-17T08:59:10.000Z
copyright zengfr site:http://github.com/zengfr/romhack 00492A move.b D0, ($7d,A6) 00492E move.b D0, ($87,A6) 011F2C tst.b ($7d,A3) [enemy+6C] 011F30 bpl $11f3a [enemy+7D] 02AC30 tst.b ($7d,A6) 02AC34 bmi $2ac6e 02B0EE tst.b ($7d,A6) 02B0F2 bpl $2b150 03246C move.b ($7d,A1), D0 032470 bmi $324ce [enemy+7D] 03393A move.b D0, ($7d,A6) 03393E move.b D0, ($87,A6) 033982 move.b #$0, ($7d,A6) 033988 rts 033F62 move.b #$0, ($7d,A6) [enemy+7B] 033F68 bsr $35172 033FEE move.b #$0, ($7d,A6) [enemy+ 4, enemy+ 6] 033FF4 move.w #$12c, ($b2,A6) 034102 move.b #$0, ($7d,A6) 034108 bsr $35812 034270 move.b #$1, ($7d,A6) [enemy+ 6] 034276 moveq #$1, D0 [enemy+7D] 034632 move.b #$0, ($7d,A6) [enemy+ 7] 034638 moveq #$6, D0 0353FC move.b #$0, ($7d,A6) 035402 moveq #$4, D5 035A08 move.b D0, ($7d,A6) 035A0C move.b #$c8, ($72,A6) 035A40 move.b #$0, ($7d,A6) 035A46 move.b #$0, ($63,A6) 035D7C move.b #$0, ($7d,A6) 035D82 move.b #$0, ($b8,A6) 03B2BC move.b #$ff, ($7d,A6) [enemy+ 0] 03B2C2 move.b #$10, ($25,A6) [enemy+7D] 03B3EE move.b #$ff, ($7d,A6) 03B3F4 move.b #$1, ($2f,A6) [enemy+7D] 03B88A move.b D0, ($7d,A6) 03B88E move.b D0, ($87,A6) 03B8B0 move.b #$0, ($7d,A6) 03B8B6 bra $3b91a 03BC48 move.b #$0, ($7d,A6) 03BC4E tst.b ($7a,A6) 03BCB8 move.b #$0, ($7d,A6) [enemy+A2] 03BCBE tst.b ($51,A6) 03C002 move.b #$1, ($7d,A6) [enemy+A0] 03C008 jsr $119c.l [enemy+7D] 03CE18 cmpi.b #$1, ($7d,A6) 03CE1E beq $3ce42 [enemy+7D] 03DEAC move.b D0, ($7d,A6) 03DEB0 move.b #$c8, ($72,A6) 03DF0C move.b #$0, ($7d,A6) 03DF12 jsr $32c5e.l 03DF24 move.b #$0, ($7d,A6) [enemy+ 4, enemy+ 6] 03DF2A jsr $32c5e.l 03E436 cmpi.b #$e, ($7d,A6) 03E43C beq $3e446 03E51C move.b #$0, ($7d,A6) 03E522 jsr $32c5e.l 040372 move.b D0, ($7d,A6) 040376 move.b #$c8, ($72,A6) 0403A4 move.b #$0, ($7d,A6) 0403AA move.b #$0, ($63,A6) 0403B8 move.b #$0, ($7d,A6) [enemy+ 4, enemy+ 6] 0403BE jsr $32d90.l 040912 move.b #$0, ($7d,A6) 040918 jsr $32d90.l 041F3C move.b #$ff, ($7d,A6) [enemy+25] 041F42 clr.b ($59,A6) [enemy+7D] 04210C move.b #$ff, ($7d,A6) [enemy+ 4] 042112 move.b #$ff, ($63,A6) [enemy+7D] 0423BE move.b #$ff, ($7d,A6) [enemy+ 0] 0423C4 move.l #$42516, ($40,A6) [enemy+7D] 042646 move.b D0, ($7d,A6) 04264A move.b D0, ($b1,A6) 044EF2 move.b #$ff, ($7d,A6) 044EF8 rts [enemy+7D] 044EFA move.b #$0, ($7d,A6) 044F00 rts 045844 move.b D0, ($7d,A6) 045848 move.b D0, ($87,A6) 045876 move.b #$0, ($7d,A6) 04587C jsr $326f8.l 045D84 move.b #$0, ($7d,A6) 045D8A tst.b ($7a,A6) 045DDA move.b #$0, ($7d,A6) [enemy+A0] 045DE0 tst.b ($51,A6) 04636C move.b #$1, ($7d,A6) [enemy+AC] 046372 move.b ($59,A6), D0 [enemy+7D] 048434 move.b #$ff, ($7d,A6) 04843A moveq #$0, D0 [enemy+7D] 0491BE tst.b ($7d,A1) 0491C2 bmi $491ec 04D952 move.b D0, ($7d,A6) 04D956 move.b D0, ($87,A6) 04D966 move.b #$ff, ($7d,A6) 04D96C addq.b #2, ($4,A6) [enemy+7D] 04DD5C move.b D0, ($7d,A6) 04DD60 move.b D0, ($a4,A6) 04DDB4 move.b #$ff, ($7d,A6) 04DDBA cmpi.b #$4, ($4d9,A5) [enemy+7D] 04FDB8 move.b D0, ($7d,A6) 04FDBC move.b D0, ($87,A6) 04FDD8 move.b #$ff, ($7d,A6) 04FDDE move.b D0, ($bb,A6) [enemy+7D] 050FFC move.b D0, ($7d,A6) 051000 move.b D0, ($87,A6) 051012 move.b #$ff, ($7d,A6) 051018 addq.b #2, ($4,A6) [enemy+7D] 0512DC move.b #$ff, ($7d,A6) [enemy+ 0] 0512E2 moveq #$0, D0 [enemy+7D] 053508 move.b #$ff, ($7d,A6) 05350E moveq #$0, D0 [enemy+7D] 0558BC move.b #$ff, ($7d,A6) [enemy+ 0] 0558C2 move.b #$2, ($4,A6) [enemy+7D] 055B4C move.b #$ff, ($7d,A6) 055B52 bsr $55e9a [enemy+7D] 056586 move.b #$ff, ($7d,A6) [enemy+ 0] 05658C move.b #$0, ($5,A6) [enemy+7D] 056944 move.b #$ff, ($7d,A6) 05694A move.l #$56a56, ($40,A6) [enemy+7D] 056A98 move.b #$ff, ($7d,A6) [enemy+23] 056A9E move.l ($10,A6), ($c,A6) [enemy+7D] 056CA8 move.b #$ff, ($7d,A6) [enemy+23] 056CAE clr.w ($a0,A6) [enemy+7D] 0572D2 move.b #$ff, ($7d,A6) 0572D8 jsr $3140c.l [enemy+7D] 0578EA move.b D0, ($7d,A6) 0578EE move.b D0, ($87,A6) 05793E move.b #$ff, ($7d,A6) 057944 addq.b #2, ($4,A6) [enemy+7D] 057E8A move.b #$ff, ($7d,A6) 057E90 jsr $12cb4.l [enemy+7D] 058000 move.b #$ff, ($7d,A6) [enemy+25] 058006 move.b #$ff, ($63,A6) [enemy+7D] 058104 move.b #$ff, ($7d,A6) [enemy+ 0] 05810A move.b #$ff, ($63,A6) [enemy+7D] 05851C move.b #$ff, ($7d,A6) 058522 move.b #$1e, ($72,A6) [enemy+7D] 0585F8 move.b #$ff, ($7d,A6) 0585FE move.b #$2, ($63,A6) [enemy+7D] 058DC0 move.b #$ff, ($7d,A6) 058DC6 move.w #$14, ($ae,A6) [enemy+7D] 05A496 move.b #$ff, ($7d,A6) [enemy+ 0] 05A49C move.b #$ff, ($63,A6) [enemy+7D] 05AB12 move.b D0, ($7d,A6) 05AB16 move.b #$c8, ($72,A6) 05AB34 move.b #$0, ($7d,A6) 05AB3A move.l #$2000000, ($4,A6) 05AB42 move.b #$0, ($7d,A6) [enemy+ 4, enemy+ 6] 05AB48 move.b #$0, ($63,A6) 05B0D4 move.b D0, ($7d,A6) 05B0D8 move.b D0, ($87,A6) 05B94C move.b #$ff, ($7d,A6) 05B952 move.b D0, ($87,A6) [enemy+7D] 05C3F4 move.b #$0, ($7d,A6) 05C3FA move.b D0, ($87,A6) 05EE30 move.b #$ff, ($7d,A6) 05EE36 move.b #$1, ($a2,A6) [enemy+7D] 05F204 move.b #$ff, ($7d,A6) 05F20A move.b D0, ($87,A6) [enemy+7D] 05F63A move.b D0, ($7d,A6) 05F63E move.b D0, ($87,A6) 05F660 move.b #$0, ($7d,A6) 05F666 bra $5f75c 05F85C move.b #$0, ($7d,A6) 05F862 tst.b ($7a,A6) 05F8A4 move.b #$0, ($7d,A6) [enemy+ 4, enemy+ 6] 05F8AA bsr $5fb18 05FF76 move.b #$ff, ($7d,A6) 05FF7C move.b D0, ($87,A6) [enemy+7D] 06A256 move.b #$ff, ($7d,A6) [enemy+25] 06A25C move.b #$ff, ($63,A6) [enemy+7D] 07BF7A cmpi.b #-$1, ($7d,A0) 07BF80 bne $7bf8a [enemy+7D] copyright zengfr site:http://github.com/zengfr/romhack
33.240223
54
0.563193
3dbcb0618c2f49cf5f43800816e068d06757722a
383
asm
Assembly
infraestrutura-de-hardware/lista2/JoaoDowsley-2.asm
kbcvcbk/cesar-school
b857ac651175bd08551303a7e82d16c4a9f621d8
[ "MIT" ]
2
2020-05-14T00:29:38.000Z
2022-03-08T23:28:02.000Z
infraestrutura-de-hardware/lista2/JoaoDowsley-2.asm
kbcvcbk/cesar-school
b857ac651175bd08551303a7e82d16c4a9f621d8
[ "MIT" ]
1
2022-03-02T11:26:37.000Z
2022-03-02T11:26:37.000Z
infraestrutura-de-hardware/lista2/JoaoDowsley-2.asm
kbcvcbk/cesar-school
b857ac651175bd08551303a7e82d16c4a9f621d8
[ "MIT" ]
2
2020-11-03T09:36:27.000Z
2022-03-08T23:28:14.000Z
.data str: .asciiz "Arrakis" .text j main # Start program strlen: li $v0, 0 # Start string count as zero loop: lb $t0, ($a0) # Load char beqz $t0, endloop # If char == \0 endloop; Else pass; addi $v0, $v0, 1 # v0 += 1 addi $a0, $a0, 1 # Point to the next char j loop # Repeat procedure endloop: jr $ra main: la $a0, str jal strlen
22.529412
58
0.56658
600a5340778c3908914ec485d647fe9f9c68855e
3,389
asm
Assembly
programs/oeis/136/A136008.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/136/A136008.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/136/A136008.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A136008: a(n) = n^6 - n^2. ; 0,0,60,720,4080,15600,46620,117600,262080,531360,999900,1771440,2985840,4826640,7529340,11390400,16776960,24137280,34011900,47045520,63999600,85765680,113379420,148035360,191102400,244140000,308915100,387419760,481889520,594822480,728999100,887502720,1073740800,1291466880,1544803260,1838264400,2176781040,2565725040,3010934940,3518742240,4095998400,4750102560,5489029980,6321361200,7256311920,8303763600,9474294780,10779213120,12230588160,13841284800,15624997500,17596285200,19770606960,22164358320,24794908380,27680637600,30840976320,34296444000,38068689180,42180530160,46655996400,51520370640,56800231740,62523498240,68719472640,75418886400,82653945660,90458377680,98867478000,107918158320,117648995100,128100278880,139314064320,151334220960,164206484700,177978510000,192699922800,208422374160,225199594620,243087449280,262143993600,282429529920,304006664700,326940366480,351298024560,377149508400,404567227740,433626193440,464404079040,496981283040,531440991900,567869243760,606354992880,646990174800,689869772220,735091881600,782757780480,832971995520,885842371260,941480139600,999999990000,1061520140400,1126162408860,1194052285920,1265319007680,1340095629600,1418519101020,1500730340400,1586874311280,1677100098960,1771560987900,1870414539840,1973822672640,2081951739840,2194972610940,2313060752400,2436396309360,2565164188080,2699554139100,2839760841120,2985983985600,3138428362080,3297303944220,3462825976560,3635215062000,3814697250000,4001504125500,4195872898560,4398046494720,4608273646080,4826808983100,5053913127120,5289852783600,5534900836080,5789336440860,6053445122400,6327518869440,6611856231840,6906762418140,7212549393840,7529535980400,7858047954960,8198418150780,8550986558400,8916100427520,9294114369600,9685390461180,10090298347920,10509215349360,10942526564400,11390624977500,11853911565600,12332795405760,12827693783520,13339032301980,13867244991600,14412774420720,14976071806800,15557597128380,16157819237760,16777215974400,17416274279040,18075490308540,18755369551440,19456426944240,20179186988400,20924183868060,21691961568480,22483073995200,23298085093920,24137568971100,25002110015280,25892303019120,26808753302160,27752076834300,28722900360000,29721861523200,30749608992960,31806802589820,32894113412880,34012223967600,35161828294320,36343632097500,37558352875680,38806720052160,40089475106400,41407371706140,42761175840240,44151665952240,45579633074640,47045880963900,48551226236160,50096498503680,51682540512000,53310208277820,54980371227600,56693912336880,58451728270320,60254729522460,62103840559200,63999999960000,65944160560800,67937289597660,69980368851120,72074394791280,74220378723600,76419346935420,78672340843200,80980417140480,83344647946560,85766120955900,88245939588240,90785223139440,93385106933040,96046742472540,98771297594400,101559956621760,104413920518880,107334407046300,110322650916720,113379903951600,116507435238480,119706531289020,122978496197760,126324651801600,129746337840000,133244912115900,136821750657360,140478247879920,144215816749680,148035888947100,151939915031520,155929364606400,160005726485280,164170508858460,168425239460400,172771465737840,177210755018640,181744694681340,186374892325440,191102975942400,195930594087360,200859416051580,205891132035600,211027453323120,216270112455600,221620863407580,227081481762720,232653764890560,238339532124000 pow $0,2 mov $1,$0 pow $1,3 sub $1,$0
423.625
3,320
0.915314
49890ed7af627166eb372c7543ea938744c85cb9
31
nasm
Assembly
Gargoyle/gadget.nasm
fengjixuchui/ProcessInjection
6d89cee0f274b3fac1381c6e99ed18ef4ab899f2
[ "MIT" ]
167
2019-02-26T13:01:25.000Z
2022-03-30T08:27:09.000Z
Gargoyle/gadget.nasm
decay88/ProcessInjection
6d89cee0f274b3fac1381c6e99ed18ef4ab899f2
[ "MIT" ]
null
null
null
Gargoyle/gadget.nasm
decay88/ProcessInjection
6d89cee0f274b3fac1381c6e99ed18ef4ab899f2
[ "MIT" ]
49
2019-03-16T15:59:06.000Z
2022-02-24T02:20:12.000Z
BITS 32 pop eax pop esp ret
6.2
8
0.677419
2f89231fd71d8c0a09620b5cc45943ee59c49b79
724
asm
Assembly
oeis/160/A160072.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/160/A160072.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/160/A160072.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A160072: Numerator of Hermite(n, 7/26). ; Submitted by Christian Krause ; 1,7,-289,-6755,245761,10853087,-339364481,-24385611803,632237079425,70364353871287,-1430714718511841,-247846519114532947,3584471689625294209,1030356783355922692495,-8537671120722083906881,-4935411996685280768234507,8738108605264000030245121,26751874838310846394823929703,137053951822328980589979042655,-161799028853526886601978935014467,-2012753680577684919562697957031679,1079672159285797958992438714998575167,21844230739740993272003101104000883711,-7875532561271006670163752577001398755835 add $0,1 mov $3,1 lpb $0 sub $0,1 add $2,$3 mov $3,$1 mov $1,$2 mul $2,8 sub $2,$1 mul $1,2 mul $3,-169 mul $3,$0 lpe mov $0,$1 div $0,2
36.2
493
0.809392
abce38b0459c92889b1e7b7a65ac6161ac1667b8
5,402
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_18079_1760.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_18079_1760.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_18079_1760.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x359a, %rsi lea addresses_A_ht+0xd0aa, %rdi nop nop nop xor %rax, %rax mov $25, %rcx rep movsl nop nop nop sub $42449, %r12 lea addresses_WC_ht+0x6f6a, %rsi nop nop add %rax, %rax mov (%rsi), %rdi nop nop nop nop cmp $33829, %rsi lea addresses_D_ht+0x7c6a, %r11 nop nop nop nop nop cmp %rsi, %rsi mov $0x6162636465666768, %rdi movq %rdi, %xmm2 movups %xmm2, (%r11) nop nop nop nop dec %rax lea addresses_UC_ht+0x479a, %rsi lea addresses_UC_ht+0xa4b2, %rdi nop add %rbp, %rbp mov $106, %rcx rep movsl nop nop inc %rcx lea addresses_A_ht+0x909a, %rax nop nop cmp $21405, %rsi mov (%rax), %r12 nop nop nop nop nop and %r12, %r12 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r15 push %rdi push %rdx push %rsi // Load lea addresses_WT+0x1581a, %rdi nop nop nop nop nop and %r15, %r15 mov (%rdi), %r11w nop nop nop nop cmp %r10, %r10 // Faulty Load lea addresses_WC+0xc79a, %r10 nop cmp $35412, %rdx mov (%r10), %r11d lea oracles, %r10 and $0xff, %r11 shlq $12, %r11 mov (%r10,%r11,1), %r11 pop %rsi pop %rdx pop %rdi pop %r15 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 8, 'same': True}, 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'00': 18079} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
40.014815
2,999
0.659015
ccbf05e44b53c4010b20716470acf4177f0eb764
556
asm
Assembly
kPrlll.asm
satadriver/LiunuxOS_t
c6222f04b6e734002cbf1aa366eb62e51f0ebbe5
[ "Apache-2.0" ]
null
null
null
kPrlll.asm
satadriver/LiunuxOS_t
c6222f04b6e734002cbf1aa366eb62e51f0ebbe5
[ "Apache-2.0" ]
null
null
null
kPrlll.asm
satadriver/LiunuxOS_t
c6222f04b6e734002cbf1aa366eb62e51f0ebbe5
[ "Apache-2.0" ]
null
null
null
.386p Kernel Segment public para use32 assume cs:Kernel __kParallelProc proc pushad mov ebp,esp add ebp,32 push dword ptr ICW2_MASTER_INT_NO + 7 push dword ptr 0 push dword ptr [ebp] push dword ptr [ebp + 4] push dword ptr [ebp + 8] test dword ptr [ebp + 4],3 jz _kParallelKernelModeInt push dword ptr [ebp + 12] push dword ptr [ebp + 16] jmp _kParallelShowExpInfo _kParallelKernelModeInt: push dword ptr 0 push dword ptr 0 _kParallelShowExpInfo: call __exceptionInfo add esp,28 mov al,20h out 20h,al popad iretd __kParallelProc endp Kernel ends
14.25641
37
0.77518
8e089ab90380ca4d967f2b8893f9814391d566d4
329
asm
Assembly
programs/oeis/070/A070465.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/070/A070465.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/070/A070465.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A070465: a(n) = n^2 mod 43. ; 0,1,4,9,16,25,36,6,21,38,14,35,15,40,24,10,41,31,23,17,13,11,11,13,17,23,31,41,10,24,40,15,35,14,38,21,6,36,25,16,9,4,1,0,1,4,9,16,25,36,6,21,38,14,35,15,40,24,10,41,31,23,17,13,11,11,13,17,23,31,41,10,24,40,15,35,14,38,21,6,36,25,16,9,4,1,0,1,4,9,16,25,36,6,21,38,14,35,15,40 pow $0,2 mod $0,43
54.833333
278
0.620061
d3d82d64aae1f7f22993690e5ab64257d000f995
240
asm
Assembly
programs/oeis/011/A011850.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/011/A011850.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/011/A011850.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A011850: a(n) = floor(binomial(n,4)/4). ; 0,0,0,0,0,1,3,8,17,31,52,82,123,178,250,341,455,595,765,969,1211,1496,1828,2213,2656,3162,3737,4387,5118,5937,6851,7866,8990,10230,11594,13090,14726,16511,18453,20562 bin $0,4 div $0,4 mov $1,$0
34.285714
168
0.695833
f8d33114cc5253ec856b465cd1af2c0a7ba3af02
858
asm
Assembly
encapsulation/rle.asm
jephthai/EvilVM
429fcc9df6f1168d38c21f37b377c36cf7bcc957
[ "MIT" ]
141
2019-05-18T20:46:47.000Z
2022-02-28T05:10:43.000Z
encapsulation/rle.asm
jephthai/EvilVM
429fcc9df6f1168d38c21f37b377c36cf7bcc957
[ "MIT" ]
6
2019-06-04T15:33:21.000Z
2021-05-07T15:27:58.000Z
encapsulation/rle.asm
jephthai/EvilVM
429fcc9df6f1168d38c21f37b377c36cf7bcc957
[ "MIT" ]
21
2019-05-22T02:48:30.000Z
2021-11-03T05:34:48.000Z
BITS 64 default rel global main %include "defines.asm" section .text main: xor edi, edi mov esi, edi mov edx, edi ;; final length of shellcode mov di, orig_len mov si, short_len base: lea rbx, [$ + code - base] mov ecx, esi ; get count for total bytes to process add rsi, rbx ; put source register at end of code add rdi, rbx ; end of final add rdi, slack - 1 loop: dec rsi ; move window mov al, [rsi] ; get a byte and al, al ; test for zeros jz repl ; found some mov [rdi], al ; dec rdi ; ... loop loop ; xor ecx, ecx jmp code + slack ; repl: dec rsi mov ah, [rsi] ; get count for zeros dec rcx .lp: and ah, ah ; check for end jz .done ; ... mov BYTE [rdi], 0 ; write a zero dec rdi dec ah ; tick the loop counter jmp .lp ; ... .done: loop loop xor ecx, ecx jmp code + slack %include "rled.asm"
18.255319
53
0.629371
cce86e0b8fd926ef11e0eed486a9d5d103905b32
697
asm
Assembly
oeis/123/A123011.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/123/A123011.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/123/A123011.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A123011: a(n) = 2*a(n-1) + 5*a(n-2) for n > 1; a(0) = 1, a(1) = 5. ; Submitted by Jamie Morken(s4) ; 1,5,15,55,185,645,2215,7655,26385,91045,314015,1083255,3736585,12889445,44461815,153370855,529050785,1824955845,6295165615,21715110455,74906048985,258387650245,891305545415,3074549342055,10605626411185,36583999532645,126196131121215,435312259905655,1501605175417385,5179771650363045,17867569177813015,61633996607441255,212605839103947585,733381661245101445,2529792518009940815,8726493342245388855,30101949274540481785,103836365260307907845,358182476893318224615,1235546780088175988455 mov $1,1 mov $3,1 lpb $0 sub $0,1 mov $2,$3 mul $2,5 mul $3,2 add $3,$1 mov $1,$2 lpe mov $0,$1
43.5625
486
0.787661
d070a476bbfa9ea26d0e0136efa21c2316aa4945
3,625
asm
Assembly
vpx_scale/arm/neon/vp8_vpxyv12_copy_y_neon.asm
tizenorg/platform.upstream.libvpx
fa8ddbf339415d2af2323d21b7fda2737db81fdd
[ "BSD-3-Clause" ]
49
2015-01-07T04:37:04.000Z
2022-03-25T08:37:14.000Z
src/third_party/libvpx/source/libvpx/vpx_scale/arm/neon/vp8_vpxyv12_copy_y_neon.asm
mcanthony/Chromium-WebCL
41baee31a8e6e3241e097db4047025a3ecbfc9f4
[ "MIT" ]
1
2020-11-24T03:13:47.000Z
2020-11-25T12:57:59.000Z
src/third_party/libvpx/source/libvpx/vpx_scale/arm/neon/vp8_vpxyv12_copy_y_neon.asm
mcanthony/Chromium-WebCL
41baee31a8e6e3241e097db4047025a3ecbfc9f4
[ "MIT" ]
8
2015-06-29T21:53:18.000Z
2019-11-01T21:22:47.000Z
; ; Copyright (c) 2010 The WebM project authors. All Rights Reserved. ; ; Use of this source code is governed by a BSD-style license ; that can be found in the LICENSE file in the root of the source ; tree. An additional intellectual property rights grant can be found ; in the file PATENTS. All contributing project authors may ; be found in the AUTHORS file in the root of the source tree. ; EXPORT |vpx_yv12_copy_y_neon| ARM REQUIRE8 PRESERVE8 INCLUDE vpx_scale_asm_offsets.asm AREA ||.text||, CODE, READONLY, ALIGN=2 ;void vpx_yv12_copy_y_neon(const YV12_BUFFER_CONFIG *src_ybc, ; YV12_BUFFER_CONFIG *dst_ybc) |vpx_yv12_copy_y_neon| PROC push {r4 - r11, lr} vpush {d8-d15} ldr r4, [r0, #yv12_buffer_config_y_height] ldr r5, [r0, #yv12_buffer_config_y_width] ldr r6, [r0, #yv12_buffer_config_y_stride] ldr r7, [r1, #yv12_buffer_config_y_stride] ldr r2, [r0, #yv12_buffer_config_y_buffer] ;srcptr1 ldr r3, [r1, #yv12_buffer_config_y_buffer] ;dstptr1 ; copy two rows at one time mov lr, r4, lsr #1 cp_src_to_dst_height_loop1 mov r8, r2 mov r9, r3 add r10, r2, r6 add r11, r3, r7 movs r12, r5, lsr #7 ble extra_copy_needed ; y_width < 128 cp_src_to_dst_width_loop1 vld1.8 {q0, q1}, [r8]! vld1.8 {q8, q9}, [r10]! vld1.8 {q2, q3}, [r8]! vld1.8 {q10, q11}, [r10]! vld1.8 {q4, q5}, [r8]! vld1.8 {q12, q13}, [r10]! vld1.8 {q6, q7}, [r8]! vld1.8 {q14, q15}, [r10]! subs r12, r12, #1 vst1.8 {q0, q1}, [r9]! vst1.8 {q8, q9}, [r11]! vst1.8 {q2, q3}, [r9]! vst1.8 {q10, q11}, [r11]! vst1.8 {q4, q5}, [r9]! vst1.8 {q12, q13}, [r11]! vst1.8 {q6, q7}, [r9]! vst1.8 {q14, q15}, [r11]! bne cp_src_to_dst_width_loop1 subs lr, lr, #1 add r2, r2, r6, lsl #1 add r3, r3, r7, lsl #1 bne cp_src_to_dst_height_loop1 extra_copy_needed ands r10, r5, #0x7f ;check to see if extra copy is needed sub r11, r5, r10 ldr r2, [r0, #yv12_buffer_config_y_buffer] ;srcptr1 ldr r3, [r1, #yv12_buffer_config_y_buffer] ;dstptr1 bne extra_cp_src_to_dst_width1 end_of_cp_src_to_dst1 vpop {d8 - d15} pop {r4-r11, pc} ;============================= extra_cp_src_to_dst_width1 add r2, r2, r11 add r3, r3, r11 add r0, r8, r6 add r11, r9, r7 mov lr, r4, lsr #1 extra_cp_src_to_dst_height_loop1 mov r8, r2 mov r9, r3 add r0, r8, r6 add r11, r9, r7 mov r12, r10 extra_cp_src_to_dst_width_loop1 vld1.8 {q0}, [r8]! vld1.8 {q1}, [r0]! subs r12, r12, #16 vst1.8 {q0}, [r9]! vst1.8 {q1}, [r11]! bne extra_cp_src_to_dst_width_loop1 subs lr, lr, #1 add r2, r2, r6, lsl #1 add r3, r3, r7, lsl #1 bne extra_cp_src_to_dst_height_loop1 b end_of_cp_src_to_dst1 ENDP END
29.233871
89
0.492966
1c19f00cf870199a375929d101ba133ba63996de
420
asm
Assembly
libs/Libmy/ASM/src/asm_strchr.asm
DarkyZShadow/my_printf
4d1b3519dc430e347dd57ed2d1b2460fc16bb3c4
[ "MIT" ]
null
null
null
libs/Libmy/ASM/src/asm_strchr.asm
DarkyZShadow/my_printf
4d1b3519dc430e347dd57ed2d1b2460fc16bb3c4
[ "MIT" ]
null
null
null
libs/Libmy/ASM/src/asm_strchr.asm
DarkyZShadow/my_printf
4d1b3519dc430e347dd57ed2d1b2460fc16bb3c4
[ "MIT" ]
null
null
null
; ; char *strchr (const char *str, char c); ; BITS 64 SECTION .text GLOBAL asm_strchr asm_strchr: PUSH RCX MOV RCX, -1 ; Init counter _loop: ; Basic while INC RCX CMP BYTE [RDI + RCX], SIL JE _finded CMP BYTE [RDI + RCX], 0 JNE _loop MOV RCX, 0 _end: MOV RAX, RCX ; Return counter POP RCX RET _finded: ADD RCX, RDI JMP _end
13.548387
54
0.542857
94dae0ec71a45676aeb8e64dacaab2e1747414a6
870
asm
Assembly
oeis/326/A326136.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
null
null
null
oeis/326/A326136.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
null
null
null
oeis/326/A326136.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
null
null
null
; A326136: a(n) = sigma(n) - sigma(A028234(n)), where sigma is the sum of divisors of n, and A028234 gives n without any occurrence of its smallest prime factor. ; Submitted by Jamie Morken(w2) ; 0,2,3,6,5,8,7,14,12,12,11,24,13,16,18,30,17,26,19,36,24,24,23,56,30,28,39,48,29,48,31,62,36,36,40,78,37,40,42,84,41,64,43,72,72,48,47,120,56,62,54,84,53,80,60,112,60,60,59,144,61,64,96,126,70,96,67,108,72,96,71,182,73,76,93,120,84,112,79,180,120,84,83,192,90,88,90,168,89,156,98,144,96,96,100,248,97,114,144,186 add $0,1 mov $1,1 lpb $0 mov $3,$0 add $8,$1 lpb $3 mov $1,$8 mov $4,$0 mov $6,$2 cmp $6,0 add $2,$6 mod $4,$2 cmp $4,0 cmp $4,0 mov $5,$2 add $2,1 cmp $5,1 max $4,$5 sub $3,$4 lpe mov $5,1 lpb $0 dif $0,$2 mul $0,$5 mul $5,$2 mov $8,$7 lpe mul $1,$5 add $7,$1 lpe mov $0,$7
24.166667
313
0.575862
ef6a29cdf3f57dd31b86e1ff292fef6bb36fe6d4
12,122
asm
Assembly
common/packsegs.asm
DigitalMars/optlink
493de158282046641ef2a3a60a88e25e26d88ec4
[ "BSL-1.0" ]
28
2015-02-03T01:38:24.000Z
2022-03-23T05:48:24.000Z
common/packsegs.asm
DigitalMars/optlink
493de158282046641ef2a3a60a88e25e26d88ec4
[ "BSL-1.0" ]
20
2015-01-02T14:51:20.000Z
2021-01-09T21:37:19.000Z
common/packsegs.asm
DigitalMars/optlink
493de158282046641ef2a3a60a88e25e26d88ec4
[ "BSL-1.0" ]
9
2015-02-11T17:43:56.000Z
2019-09-05T11:07:02.000Z
TITLE PACKSEGS - Copyright (c) 1994 SLR Systems INCLUDE MACROS INCLUDE SEGMENTS INCLUDE GROUPS if fg_segm INCLUDE SEGMSYMS endif PUBLIC PACK_SEGMENTS .DATA EXTERNDEF SEGMENT_COUNT:DWORD,ZERO_LENGTH_SEGMENTS:DWORD,PACKCODE:DWORD,PACKDATA:DWORD,PACK_DEFAULT_SIZE:DWORD EXTERNDEF FIRST_SEGMENT_GINDEX:DWORD,FIRST_GROUP_GINDEX:DWORD,APPLOADER_SEGMENT_GINDEX:DWORD EXTERNDEF SEGMENT_TABLE_PTR:DWORD EXTERNDEF SEGMENT_GARRAY:STD_PTR_S,GROUP_GARRAY:STD_PTR_S,SEGMENT_TABLE:QWORD,SEGMOD_GARRAY:STD_PTR_S .CODE MIDDLE_TEXT EXTERNDEF WARN_RET:PROC,_err_abort:proc,DO_ECX_ALIGN:PROC,ERR_ASCIZ_RET:PROC EXTERNDEF CODEPACK_ERR:ABS,DATAPACK_ERR:ABS,TOO_MANY_SEGS_ERR:ABS,GRP_TOO_BIG_ERR:ABS PACK_SEGMENTS PROC ; ;IF PACKCODE SET, DO PACKCODE ; BITT PACKCODE_FLAG JZ NO_PACKCODE CALL DO_PACKCODE NO_PACKCODE: ; ;IF PACKDATA SET, DO PACKDATA ; NP_1: BITT PACKDATA_FLAG JZ NO_PACKDATA CALL DO_PACKDATA NO_PACKDATA: if fg_segm if fg_norm_exe BITT OUTPUT_SEGMENTED JZ PACKING_DONE1 endif ; ;IF SEGMENTS >254, TRY SETTING PACKCODE OR PACKDATA AND GO ;AGAIN... WARN IF YOU DO IT... ; MOV EAX,SEGMENT_COUNT SUB EAX,ZERO_LENGTH_SEGMENTS CMP EAX,254 JBE PACKING_DONE BITT PACKCODE_FLAG JNZ CODE_PACKED SETT PACKCODE_FLAG MOV EAX,PACK_DEFAULT_SIZE MOV PACKCODE,EAX MOV AL,CODEPACK_ERR CALL WARN_RET JMP PACK_SEGMENTS CODE_PACKED: BITT PACKDATA_FLAG JNZ DATA_PACKED SETT PACKDATA_FLAG MOV EAX,PACK_DEFAULT_SIZE MOV PACKDATA,EAX MOV AL,DATAPACK_ERR CALL WARN_RET JMP NP_1 DATA_PACKED:: ; ;IF SEGMENTS >254, ITS A FATAL ERROR ; MOV AL,TOO_MANY_SEGS_ERR push EAX call _err_abort endif PACKING_DONE: CALL SIZE_PROT_SEGMENTS ;DEFINE SEGMENT_TABLE STUFF, ;GETTING RID OF 0-LENGTH ITEMS PACKING_DONE1: CALL SIZE_GROUPS RET PACK_SEGMENTS ENDP DO_PACKCODE PROC NEAR ; ;COMBINE AS MANY CODE SEGMENTS AS POSSIBLE INTO AS FEW ; ; ;SET UP FOR CALLING PACK_REAL ; MOV EBX,PACKCODE MOV EDX,MASK SEG_CLASS_IS_CODE ;PACK CODE SEGS if fg_prot AND fg_norm_exe BITT OUTPUT_SEGMENTED JNZ DO_PACK_PROT JMP DO_PACK_REAL else if fg_norm_exe JMP DO_PACK_REAL endif PACK_PROT_STRUCT STRUC PACKSIZE_BP DD ? PACKTYPE_BP DB ? DB ? DW ? PACKP_TEMP_WORD_BP DD ? PACK_PROT_STRUCT ENDS PACKSIZE EQU ([EBP-SIZE PACK_PROT_STRUCT].PACKSIZE_BP) PACKTYPE EQU ([EBP-SIZE PACK_PROT_STRUCT].PACKTYPE_BP) PACKP_TEMP_WORD EQU ([EBP-SIZE PACK_PROT_STRUCT].PACKP_TEMP_WORD_BP) if fg_prot DO_PACK_PROT:: PUSH EBP MOV EBP,ESP ASSUME EBP:PTR PACK_PROT_STRUCT SUB ESP,SIZE PACK_PROT_STRUCT MOV ESI,FIRST_SEGMENT_GINDEX XOR EDI,EDI ;AMOUNT WE ARE ADJUSTING SEGMENT #'S MOV PACKSIZE,EBX MOV PACKTYPE,DL JMP TEST_OUTER_SEG ;HAVEN'T FOUND ONE TO PACK YET OUTER_SEG_LOOP: ; ;LOOKING FOR A FEW GOOD SEGS ; MOV EAX,APPLOADER_SEGMENT_GINDEX MOV ECX,ESI CONVERT ESI,ESI,SEGMENT_GARRAY ASSUME ESI:PTR SEGMENT_STRUCT CMP EAX,ECX JZ NEXT_OUTER_SEG MOV AL,[ESI]._SEG_TYPE MOV EDX,[ESI]._SEG_OS2_NUMBER TEST AL,MASK SEG_CV_TYPES1 + MASK SEG_CV_SYMBOLS1 ;DONE IF CODEVIEW JNZ DONE AND AL,MASK SEG_CLASS_IS_CODE SUB EDX,EDI ;ADJUST SEGMENT # MOV AH,PACKTYPE MOV [ESI]._SEG_OS2_NUMBER,EDX XOR AL,AH JNZ NEXT_OUTER_SEG MOV EAX,[ESI]._SEG_GROUP_GINDEX TEST EAX,EAX JZ NEW_SEG NEXT_OUTER_SEG: MOV ESI,[ESI]._SEG_NEXT_SEG_GINDEX TEST_OUTER_SEG: TEST ESI,ESI JNZ OUTER_SEG_LOOP DONE: MOV ESP,EBP POP EBP RET NEW_SEG: ; ;FOUND CORRECT CODE VS DATA TYPE, NON-GROUPED ; SAME_SEG: ; ;SET DX:CX TO SEGMENT SIZE SO FAR ; MOV ECX,[ESI]._SEG_OFFSET MOV EAX,[ESI]._SEG_LEN ADD ECX,EAX MOV EAX,PACKSIZE CMP ECX,EAX JAE NEXT_OUTER_SEG ;>= PACKSIZE, CANNOT COMBINE MOV EBX,[ESI]._SEG_OS2_FLAGS MOV ESI,[ESI]._SEG_NEXT_SEG_GINDEX ; ;SEE IF NEXT SEGMENT CAN COMBINE WITH IT ; TEST ESI,ESI JZ DONE MOV PACKP_TEMP_WORD,ESI CONVERT ESI,ESI,SEGMENT_GARRAY MOV AL,[ESI]._SEG_TYPE MOV EDX,[ESI]._SEG_OS2_NUMBER TEST AL,MASK SEG_CV_TYPES1 + MASK SEG_CV_SYMBOLS1 JNZ DONE AND AL,MASK SEG_CLASS_IS_CODE SUB EDX,EDI ;ADJUST SEGMENT # MOV AH,PACKTYPE MOV [ESI]._SEG_OS2_NUMBER,EDX XOR AL,AH JNZ NEXT_OUTER_SEG ;WRONG CODE VS DATA TYPE, TRY NEXT SEGMENT MOV EAX,[ESI]._SEG_GROUP_GINDEX MOV EDX,[ESI]._SEG_OS2_FLAGS TEST EAX,EAX JNZ NEXT_OUTER_SEG ;CANNOT COMBINE GROUPED SEGMENTS FOR NOW... CMP EDX,EBX JNZ NEW_SEG ;CANNOT COMBINE, BUT CORRECT TYPE... ; ;ALIGN TO MAX FOR THIS SEGMENT ; MOV AL,[ESI]._SEG_MAX_ALIGN CALL DO_ECX_ALIGN MOV EDX,[ESI]._SEG_LEN MOV EAX,PACKSIZE ADD ECX,EDX CMP EAX,ECX JC NEW_SEG ;>LIMIT, TRY AGAIN... ; ;!!!!! WE JUST SAVED A SELECTOR... !!!!! ; ;UPDATE SELECTOR #'S ; MOV EDX,[ESI]._SEG_OS2_NUMBER INC EDI ;WE'LL BE SUBTRACTING ONE MORE DEC EDX MOV EAX,PACKP_TEMP_WORD MOV [ESI]._SEG_OS2_NUMBER,EDX CALL PACK_SEGMENT MOV ESI,PACKP_TEMP_WORD CONVERT ESI,ESI,SEGMENT_GARRAY JMP SAME_SEG endif DO_PACKCODE ENDP if fg_prot PACK_SEGMENT PROC NEAR ; ; ; PUSH EDI ;SAVE SEGS PACKED SO FAR MOV EDI,EAX ;SAVE SEGMENT_GINDEX MOV EAX,SEGMENT_COUNT MOV EDX,[ESI]._SEG_LEN DEC EAX SUB ECX,EDX TEST EDX,EDX JNZ L0$ DEC ZERO_LENGTH_SEGMENTS L0$: MOV SEGMENT_COUNT,EAX MOV [ESI]._SEG_OFFSET,ECX MOV ESI,[ESI]._SEG_FIRST_SEGMOD_GINDEX JMP TEST_SM L1$: CONVERT ESI,ESI,SEGMOD_GARRAY ASSUME ESI:PTR SEGMOD_STRUCT MOV EAX,[ESI]._SM_BASE_SEG_GINDEX MOV EDX,[ESI]._SM_START CMP EAX,EDI JNZ L9$ MOV EAX,[ESI]._SM_LEN ADD EDX,ECX ADD EAX,ECX MOV [ESI]._SM_START,EDX MOV [ESI]._SM_LEN,EAX MOV ESI,[ESI]._SM_NEXT_SEGMOD_GINDEX TEST_SM: TEST ESI,ESI JNZ L1$ L9$: POP EDI RET PACK_SEGMENT ENDP endif DO_PACKDATA PROC NEAR ; ;COMBINE AS MANY DATA SEGMENTS AS POSSIBLE INTO AS FEW ; MOV EBX,PACKDATA XOR EDX,EDX ;USE DATA SEGMENTS if fg_prot if fg_norm_exe BITT OUTPUT_SEGMENTED JNZ DO_PACK_PROT else JMP DO_PACK_PROT endif endif DO_PACKDATA ENDP if fg_norm_exe DO_PACK_REAL PROC NEAR ; ;EDX IS FLAG TO CHECK (CODE VS DATA) ;EBX IS PACKCODE LIMIT ; ;SCAN LIST OF SEGS, STICKING ANY NON-GROUPED ITEMS INTO ;DUMMY GROUPS, MARK THEM 'PACKED' ; PUSH EBP MOV EBP,ESP SUB ESP,SIZE PACK_PROT_STRUCT MOV ESI,FIRST_SEGMENT_GINDEX MOV PACKSIZE,EBX MOV PACKTYPE,DL JMP TEST_SEG SEG_LOOP: MOV ECX,ESI CONVERT ESI,ESI,SEGMENT_GARRAY ASSUME ESI:PTR SEGMENT_STRUCT CALL CHECK_REAL_PACKABILITY JZ NEW_SEG NEXT_SEG: MOV ESI,[ESI]._SEG_NEXT_SEG_GINDEX TEST_SEG: TEST ESI,ESI JNZ SEG_LOOP DONE: MOV ESP,EBP POP EBP RET NEW_SEG: ; ;FOUND CORRECT CODE VS DATA, NON-GROUPED ; SAME_SEG: MOV ECX,[ESI]._SEG_OFFSET MOV EDX,[ESI]._SEG_LEN ADD ECX,EDX MOV EDI,[ESI]._SEG_FRAME SUB ECX,EDI MOV EAX,PACKSIZE CMP ECX,EAX JA NEXT_SEG ; ;SEE IF NEXT SEGMENT CAN COMBINE WITH IT ; MOV ESI,[ESI]._SEG_NEXT_SEG_GINDEX TEST ESI,ESI JZ DONE CONVERT ESI,ESI,SEGMENT_GARRAY ASSUME ESI:PTR SEGMENT_STRUCT CALL CHECK_REAL_PACKABILITY JNZ NEW_SEG MOV ECX,[ESI]._SEG_OFFSET MOV EDX,[ESI]._SEG_LEN ADD ECX,EDX MOV EAX,PACKSIZE SUB ECX,EDI CMP EAX,ECX JC NEW_SEG ;>LIMIT, TRY AGAIN... MOV [ESI]._SEG_FRAME,EDI ;SET NEW FRAME FOR THAT SEGMENT JMP SAME_SEG DO_PACK_REAL ENDP CHECK_REAL_PACKABILITY PROC NEAR ; ; ; ASSUME ESI:PTR SEGMENT_STRUCT MOV AL,[ESI]._SEG_TYPE MOV BL,PACKTYPE TEST AL,MASK SEG_CV_TYPES1 + MASK SEG_CV_SYMBOLS1 ;CV INFO AT END, DONE JNZ L5$ XOR AL,BL MOV EBX,[ESI]._SEG_GROUP_GINDEX AND AL,MASK SEG_CLASS_IS_CODE ;IS THIS CORRECT CODE VS DATA? JNZ L5$ ;WRONG TYPE, SKIP if any_overlays BITT DOING_OVERLAYS JZ 4$ ; ;MAKE SURE THIS ISN'T PART OF OVERLAY LOADER ; MOV AX,[SI]._SEG_CLASS_GINDEX CMP SLR_CODE_CLASS_GINDEX,AX JZ #FAIL CMP SLR_SCODE_CLASS_GINDEX,AX JZ #FAIL ; ;MAKE SURE THIS GUY IS BASED IN ROOT SECTION ; MOV AX,[SI]._SEG_OFFSET.HW CMP VECTOR_TABLE_ADDRESS.HW,AX JB #FAIL JA 4$ MOV AX,[SI]._SEG_OFFSET.LW CMP VECTOR_TABLE_ADDRESS.LW,AX JB #FAIL 4$: endif ; ;CORRECT TYPE, DO WE MARK IT PACKED? YES FOR NOW ; TEST EBX,EBX L5$: RET CHECK_REAL_PACKABILITY ENDP endif if fg_prot SIZE_PROT_SEGMENTS PROC NEAR ; ;GO THROUGH LIST OF SEGMENTS, DEFINING FLAGS AND SIZES IN ;SEGMENT TABLE ; ;UNCOUNT ANY ZERO-LENGTH SEGMENTS ; MOV EDI,OFF SEGMENT_TABLE ;FIRST SEGMENT... ASSUME EDI:PTR SEGTBL_STRUCT MOV ESI,FIRST_SEGMENT_GINDEX MOV SEGMENT_TABLE_PTR,EDI MOV EDX,1 ;LAST SEGMENT # LEA EDI,[EDI + SIZE SEGTBL_STRUCT] MOV ECX,EDX TEST ESI,ESI JZ L8$ SEG_LOOP: CONVERT ESI,ESI,SEGMENT_GARRAY ASSUME ESI:PTR SEGMENT_STRUCT MOV AL,[ESI]._SEG_TYPE MOV EBX,[ESI]._SEG_OS2_NUMBER TEST AL,MASK SEG_CV_TYPES1 + MASK SEG_CV_SYMBOLS1 JNZ L8$ CMP EBX,ECX ;SAME AS LAST SEGMENT #? JZ L2$ ; ;NEW SEGMENT, WAS LAST ONE ZERO LENGTH? ; MOV EAX,[EDI]._SEGTBL_LSIZE MOV ECX,[ESI]._SEG_OS2_NUMBER TEST EAX,EAX JZ L1$ ;YES, DON'T UPDATE SEGMENT #... L0$: ADD EDI,SIZE SEGTBL_STRUCT INC EDX L1$: ; ;STORE FLAGS, SIZE... ; L2$: ;here so flags get set for segment 1 ; ;UPDATE ACTUAL SEGMENT # ; MOV EAX,[ESI]._SEG_OS2_FLAGS MOV [ESI]._SEG_OS2_NUMBER,EDX MOV EBX,[ESI]._SEG_OFFSET MOV [EDI]._SEGTBL_FLAGS,EAX ; ;UPDATE SEGMENT LENGTH ; MOV EAX,[ESI]._SEG_LEN MOV ESI,[ESI]._SEG_NEXT_SEG_GINDEX ADD EAX,EBX TEST ESI,ESI MOV [EDI]._SEGTBL_LSIZE,EAX JNZ SEG_LOOP L8$: ; ;UNDO LAST SEGMENT IF ZERO LENGTH ; MOV EAX,[EDI]._SEGTBL_LSIZE OR EAX,EAX JNZ L9$ ; ;PACK ALL SEGMENTS OF # DX ONTO END OF LAST SEGMENT # DX-1 ; DEC EDX JZ L9$ ;ZERO SEGMENTS CALL PACK_LAST_SEGMENT L9$: MOV SEGMENT_COUNT,EDX CMP EDX,254 JA L91$ RET L91$: JMP DATA_PACKED SIZE_PROT_SEGMENTS ENDP PACK_LAST_SEGMENT PROC NEAR ; ;EDX IS SEGMENT TO PACK ALL EDX+1 SEGMENTS INTO ; MOV ESI,FIRST_SEGMENT_GINDEX ;SO, SCAN FOR SEGMENT DX SUB EDI,SIZE SEGTBL_STRUCT MOV ECX,EAX L1$: MOV EBX,ECX MOV ECX,ESI CONVERT ESI,ESI,SEGMENT_GARRAY ASSUME ESI:PTR SEGMENT_STRUCT MOV EAX,[ESI]._SEG_OS2_NUMBER MOV ESI,[ESI]._SEG_NEXT_SEG_GINDEX CMP EAX,EDX JA L5$ TEST ESI,ESI JNZ L1$ JMP L9$ L5$: MOV EAX,ESI CONVERT ESI,ECX,SEGMENT_GARRAY ; ;BX IS LAST DX SEGMENT, USE IT'S ENDING OFFSET AS PLACE TO PACK REST OF SEGMENTS ;CX IS FIRST SEGMENT NEEDING NEW OFFSET ; ;THIS MAY BE MULTIPLE SEGMENTS ; MOV ECX,[EDI]._SEGTBL_LSIZE ;LOGICAL SIZE L6$: PUSH EAX ;SAVE NEXT SEGMENT MOV EBX,[ESI]._SEG_FIRST_SEGMOD_GINDEX MOV [ESI]._SEG_OFFSET,ECX MOV [ESI]._SEG_OS2_NUMBER,EDX L7$: CONVERT EBX,EBX,SEGMOD_GARRAY ASSUME EBX:PTR SEGMOD_STRUCT MOV [EBX]._SM_START,ECX MOV [EBX]._SM_LEN,ECX MOV EBX,[EBX]._SM_NEXT_SEGMOD_GINDEX TEST EBX,EBX JNZ L7$ POP ESI ;NEXT SEGMENT # TEST ESI,ESI JZ L8$ CONVERT ESI,ESI,SEGMENT_GARRAY ASSUME ESI:PTR SEGMENT_STRUCT MOV BL,[ESI]._SEG_TYPE MOV EAX,[ESI]._SEG_NEXT_SEG_GINDEX AND BL,MASK SEG_CV_TYPES1 + MASK SEG_CV_SYMBOLS1 ;DONE IF CODEVIEW JZ L6$ L8$: L9$: RET PACK_LAST_SEGMENT ENDP endif SIZE_GROUPS PROC ; ;FOR SEGM, SET OS2_NUMBER TOO ; MOV ESI,FIRST_GROUP_GINDEX JMP TEST_GROUP GROUP_LOOP: CONVERT ESI,ESI,GROUP_GARRAY ASSUME ESI:PTR GROUP_STRUCT MOV EDI,[ESI]._G_FIRST_SEG_GINDEX MOV EDX,[ESI]._G_LEN TEST EDI,EDI JZ L4$ MOV EAX,[ESI]._G_OFFSET MOV ECX,EDX SUB EDX,EAX GETT AL,OUTPUT_SEGMENTED MOV [ESI]._G_LEN,EDX GETT DL,OUTPUT_PE OR AL,DL JNZ L1$ SUB ECX,[ESI]._G_FRAME JMP L2$ L1$: CONVERT EDI,EDI,SEGMENT_GARRAY ASSUME EDI:PTR SEGMENT_STRUCT MOV EAX,[EDI]._SEG_OS2_NUMBER MOV [ESI]._G_OS2_NUMBER,EAX L2$: CMP ECX,64K JA MTB L4$: MOV ESI,[ESI]._G_NEXT_GROUP_GINDEX TEST_GROUP: TEST ESI,ESI JNZ GROUP_LOOP L9$: RET MTB: TEST [ESI]._G_TYPE1,MASK GROUP_IS_USE32 JNZ L4$ LEA ECX,[ESI]._G_TEXT MOV AL,GRP_TOO_BIG_ERR CALL ERR_ASCIZ_RET JMP L4$ SIZE_GROUPS ENDP END
16.628258
112
0.720673
1998feb11fc94f0811c8ae10697a51f11bcb5b23
289
asm
Assembly
Verilog/P7/test/test.asm
JJLeo/BUAA-CO-2020
1d1a3797f7188530464a1dfbe8a017dd01bb817a
[ "MIT" ]
9
2021-03-04T07:22:24.000Z
2021-11-30T02:56:08.000Z
Verilog/P7/test/test.asm
johnnyamazing/BUAA-CO-2020
1d1a3797f7188530464a1dfbe8a017dd01bb817a
[ "MIT" ]
null
null
null
Verilog/P7/test/test.asm
johnnyamazing/BUAA-CO-2020
1d1a3797f7188530464a1dfbe8a017dd01bb817a
[ "MIT" ]
3
2021-09-28T07:41:35.000Z
2021-12-14T08:55:28.000Z
.ktext 0x4180 mfc0 $k0, $14 addiu $k0, $k0, 4 mtc0 $k0, $14 lui $k0, 12 lui $k1, 2131 div $k1, $k0 eret mflo $k0 lui $20, 0x7654 lui $21, 0x8654 lui $22, 0x9654 .text li $5, 0x0000ff11 mtc0 $5, $12 li $2, 0x7fffffff li $3, 0x5ff add $2, $3, $2 lui $16, 0xabcd lui $17, 0x1234 end:j end
12.041667
17
0.633218
0856268d156809d6e4b142d6b305ea1997a72191
1,021
asm
Assembly
programs/oeis/135/A135674.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/135/A135674.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/135/A135674.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A135674: Floor(n+n^(2/3)). ; 2,3,5,6,7,9,10,12,13,14,15,17,18,19,21,22,23,24,26,27,28,29,31,32,33,34,36,37,38,39,40,42,43,44,45,46,48,49,50,51,52,54,55,56,57,58,60,61,62,63,64,65,67,68,69,70,71,72,74,75,76,77,78,80,81,82,83,84,85,86,88,89,90,91,92,93,95,96,97,98,99,100,102,103,104,105,106,107,108,110,111,112,113,114,115,116,118,119,120,121,122,123,124,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,144,145,146,147,148,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,168,169,170,171,172,173,174,175,177,178,179,180,181,182,183,184,186,187,188,189,190,191,192,193,195,196,197,198,199,200,201,202,204,205,206,207,208,209,210,211,212,214,215,216,217,218,219,220,221,223,224,225,226,227,228,229,230,231,233,234,235,236,237,238,239,240,241,243,244,245,246,247,248,249,250,252,253,254,255,256,257,258,259,260,261,263,264,265,266,267,268,269,270,271,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289 mov $1,$0 add $1,1 cal $1,77113 ; Number of integer cubes <= n^2. add $1,$0
127.625
914
0.710088
a2dc67f245d3bc115a1a4568b2bbde28c0e590fe
690
asm
Assembly
oeis/020/A020478.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/020/A020478.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/020/A020478.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A020478: Number of singular 2 X 2 matrices over Z(n) (i.e., with determinant = 0). ; Submitted by Jon Maiga ; 1,10,33,88,145,330,385,736,945,1450,1441,2904,2353,3850,4785,6016,5185,9450,7201,12760,12705,14410,12673,24288,18625,23530,26001,33880,25201,47850,30721,48640,47553,51850,55825,83160,51985,72010,77649,106720,70561,127050,81313,126808,137025,126730,105985,198528,134113,186250,171105,207064,151633,260010,208945,283360,237633,252010,208801,421080,230641,307210,363825,391168,341185,475530,305185,456280,418209,558250,362881,695520,394273,519850,614625,633688,554785,776490,499201,872320,706401,705610 add $0,1 pow $0,2 sub $0,1 seq $0,78430 ; Sum of gcd(k^2,n) for 1 <= k <= n.
76.666667
501
0.776812
72e623b379c396a24d748ddf57acf4fffe2fe409
8,949
asm
Assembly
coverage/IN_CTS/0532-COVERAGE-basic-tti-impl-h-427-444/work/variant/1_spirv_asm/shader.frag.asm
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
null
null
null
coverage/IN_CTS/0532-COVERAGE-basic-tti-impl-h-427-444/work/variant/1_spirv_asm/shader.frag.asm
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
47
2021-03-11T07:42:51.000Z
2022-03-14T06:30:14.000Z
coverage/IN_CTS/0532-COVERAGE-basic-tti-impl-h-427-444/work/variant/1_spirv_asm/shader.frag.asm
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
4
2021-03-09T13:37:19.000Z
2022-02-25T07:32:11.000Z
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 186 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %110 OpExecutionMode %4 OriginUpperLeft OpSource ESSL 320 OpName %4 "main" OpName %11 "arr" OpName %14 "buf0" OpMemberName %14 0 "_GLF_uniform_int_values" OpName %16 "" OpName %54 "i" OpName %73 "a" OpName %88 "j" OpName %110 "_GLF_color" OpName %125 "ref" OpName %159 "i" OpDecorate %13 ArrayStride 16 OpMemberDecorate %14 0 Offset 0 OpDecorate %14 Block OpDecorate %16 DescriptorSet 0 OpDecorate %16 Binding 0 OpDecorate %110 Location 0 %2 = OpTypeVoid %3 = OpTypeFunction %2 %6 = OpTypeInt 32 1 %7 = OpTypeInt 32 0 %8 = OpConstant %7 16 %9 = OpTypeArray %6 %8 %10 = OpTypePointer Function %9 %12 = OpConstant %7 5 %13 = OpTypeArray %6 %12 %14 = OpTypeStruct %13 %15 = OpTypePointer Uniform %14 %16 = OpVariable %15 Uniform %17 = OpConstant %6 0 %18 = OpConstant %6 1 %19 = OpTypePointer Uniform %6 %53 = OpTypePointer Function %6 %55 = OpConstant %6 3 %71 = OpTypeBool %97 = OpConstant %6 4 %107 = OpTypeFloat 32 %108 = OpTypeVector %107 4 %109 = OpTypePointer Output %108 %110 = OpVariable %109 Output %114 = OpConstant %6 2 %4 = OpFunction %2 None %3 %5 = OpLabel %11 = OpVariable %10 Function %54 = OpVariable %53 Function %73 = OpVariable %53 Function %88 = OpVariable %53 Function %125 = OpVariable %10 Function %159 = OpVariable %53 Function %20 = OpAccessChain %19 %16 %17 %18 %21 = OpLoad %6 %20 %22 = OpAccessChain %19 %16 %17 %18 %23 = OpLoad %6 %22 %24 = OpAccessChain %19 %16 %17 %18 %25 = OpLoad %6 %24 %26 = OpAccessChain %19 %16 %17 %18 %27 = OpLoad %6 %26 %28 = OpAccessChain %19 %16 %17 %18 %29 = OpLoad %6 %28 %30 = OpAccessChain %19 %16 %17 %18 %31 = OpLoad %6 %30 %32 = OpAccessChain %19 %16 %17 %18 %33 = OpLoad %6 %32 %34 = OpAccessChain %19 %16 %17 %18 %35 = OpLoad %6 %34 %36 = OpAccessChain %19 %16 %17 %18 %37 = OpLoad %6 %36 %38 = OpAccessChain %19 %16 %17 %18 %39 = OpLoad %6 %38 %40 = OpAccessChain %19 %16 %17 %18 %41 = OpLoad %6 %40 %42 = OpAccessChain %19 %16 %17 %18 %43 = OpLoad %6 %42 %44 = OpAccessChain %19 %16 %17 %18 %45 = OpLoad %6 %44 %46 = OpAccessChain %19 %16 %17 %18 %47 = OpLoad %6 %46 %48 = OpAccessChain %19 %16 %17 %18 %49 = OpLoad %6 %48 %50 = OpAccessChain %19 %16 %17 %18 %51 = OpLoad %6 %50 %52 = OpCompositeConstruct %9 %21 %23 %25 %27 %29 %31 %33 %35 %37 %39 %41 %43 %45 %47 %49 %51 OpStore %11 %52 %56 = OpAccessChain %19 %16 %17 %55 %57 = OpLoad %6 %56 OpStore %54 %57 OpBranch %58 %58 = OpLabel OpLoopMerge %60 %61 None OpBranch %62 %62 = OpLabel %63 = OpLoad %6 %54 %64 = OpAccessChain %19 %16 %17 %18 %65 = OpLoad %6 %64 %66 = OpAccessChain %19 %16 %17 %18 %67 = OpLoad %6 %66 %68 = OpAccessChain %19 %16 %17 %18 %69 = OpLoad %6 %68 %70 = OpBitFieldSExtract %6 %65 %67 %69 %72 = OpSGreaterThanEqual %71 %63 %70 OpBranchConditional %72 %59 %60 %59 = OpLabel %74 = OpAccessChain %19 %16 %17 %18 %75 = OpLoad %6 %74 OpStore %73 %75 %76 = OpAccessChain %19 %16 %17 %18 %77 = OpLoad %6 %76 %78 = OpAccessChain %53 %11 %77 %79 = OpLoad %6 %78 %80 = OpAccessChain %19 %16 %17 %18 %81 = OpLoad %6 %80 %82 = OpIEqual %71 %79 %81 OpSelectionMerge %84 None OpBranchConditional %82 %83 %84 %83 = OpLabel %85 = OpLoad %6 %73 %86 = OpLoad %6 %54 %87 = OpAccessChain %53 %11 %85 OpStore %87 %86 OpBranch %84 %84 = OpLabel %89 = OpAccessChain %19 %16 %17 %55 %90 = OpLoad %6 %89 OpStore %88 %90 OpBranch %91 %91 = OpLabel OpLoopMerge %93 %94 None OpBranch %95 %95 = OpLabel %96 = OpLoad %6 %88 %98 = OpAccessChain %19 %16 %17 %97 %99 = OpLoad %6 %98 %100 = OpSLessThan %71 %96 %99 OpBranchConditional %100 %92 %93 %92 = OpLabel %101 = OpLoad %6 %88 %102 = OpAccessChain %53 %11 %101 OpStore %102 %17 OpBranch %94 %94 = OpLabel %103 = OpLoad %6 %88 %104 = OpIAdd %6 %103 %18 OpStore %88 %104 OpBranch %91 %93 = OpLabel OpBranch %61 %61 = OpLabel %105 = OpLoad %6 %54 %106 = OpISub %6 %105 %18 OpStore %54 %106 OpBranch %58 %60 = OpLabel %111 = OpAccessChain %19 %16 %17 %18 %112 = OpLoad %6 %111 %113 = OpConvertSToF %107 %112 %115 = OpAccessChain %19 %16 %17 %114 %116 = OpLoad %6 %115 %117 = OpConvertSToF %107 %116 %118 = OpAccessChain %19 %16 %17 %114 %119 = OpLoad %6 %118 %120 = OpConvertSToF %107 %119 %121 = OpAccessChain %19 %16 %17 %18 %122 = OpLoad %6 %121 %123 = OpConvertSToF %107 %122 %124 = OpCompositeConstruct %108 %113 %117 %120 %123 OpStore %110 %124 %126 = OpAccessChain %19 %16 %17 %18 %127 = OpLoad %6 %126 %128 = OpAccessChain %19 %16 %17 %55 %129 = OpLoad %6 %128 %130 = OpAccessChain %19 %16 %17 %114 %131 = OpLoad %6 %130 %132 = OpAccessChain %19 %16 %17 %114 %133 = OpLoad %6 %132 %134 = OpAccessChain %19 %16 %17 %114 %135 = OpLoad %6 %134 %136 = OpAccessChain %19 %16 %17 %114 %137 = OpLoad %6 %136 %138 = OpAccessChain %19 %16 %17 %114 %139 = OpLoad %6 %138 %140 = OpAccessChain %19 %16 %17 %18 %141 = OpLoad %6 %140 %142 = OpAccessChain %19 %16 %17 %18 %143 = OpLoad %6 %142 %144 = OpAccessChain %19 %16 %17 %18 %145 = OpLoad %6 %144 %146 = OpAccessChain %19 %16 %17 %18 %147 = OpLoad %6 %146 %148 = OpAccessChain %19 %16 %17 %18 %149 = OpLoad %6 %148 %150 = OpAccessChain %19 %16 %17 %18 %151 = OpLoad %6 %150 %152 = OpAccessChain %19 %16 %17 %18 %153 = OpLoad %6 %152 %154 = OpAccessChain %19 %16 %17 %18 %155 = OpLoad %6 %154 %156 = OpAccessChain %19 %16 %17 %18 %157 = OpLoad %6 %156 %158 = OpCompositeConstruct %9 %127 %129 %131 %133 %135 %137 %139 %141 %143 %145 %147 %149 %151 %153 %155 %157 OpStore %125 %158 %160 = OpAccessChain %19 %16 %17 %114 %161 = OpLoad %6 %160 OpStore %159 %161 OpBranch %162 %162 = OpLabel OpLoopMerge %164 %165 None OpBranch %166 %166 = OpLabel %167 = OpLoad %6 %159 %168 = OpAccessChain %19 %16 %17 %17 %169 = OpLoad %6 %168 %170 = OpSLessThan %71 %167 %169 OpBranchConditional %170 %163 %164 %163 = OpLabel %171 = OpLoad %6 %159 %172 = OpAccessChain %53 %11 %171 %173 = OpLoad %6 %172 %174 = OpLoad %6 %159 %175 = OpAccessChain %53 %125 %174 %176 = OpLoad %6 %175 %177 = OpINotEqual %71 %173 %176 OpSelectionMerge %179 None OpBranchConditional %177 %178 %179 %178 = OpLabel %180 = OpAccessChain %19 %16 %17 %114 %181 = OpLoad %6 %180 %182 = OpConvertSToF %107 %181 %183 = OpCompositeConstruct %108 %182 %182 %182 %182 OpStore %110 %183 OpBranch %179 %179 = OpLabel OpBranch %165 %165 = OpLabel %184 = OpLoad %6 %159 %185 = OpIAdd %6 %184 %18 OpStore %159 %185 OpBranch %162 %164 = OpLabel OpReturn OpFunctionEnd
35.511905
118
0.478936
016faa1e845d6dc1a9fcdd38b756300f7badf730
178
asm
Assembly
data/wildPokemon/victoryroad3.asm
etdv-thevoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
1
2022-01-09T05:28:52.000Z
2022-01-09T05:28:52.000Z
data/wildPokemon/victoryroad3.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
data/wildPokemon/victoryroad3.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
PlateauMons3: db $0F db 41,GEODUDE db 44,GOLBAT db 36,GEODUDE db 46,GEODUDE db 49,ONIX db 41,GRAVELER db 47,GRAVELER db 42,MACHOKE db 45,MACHOKE db 45,MACHOKE db $00
12.714286
15
0.719101
5af86f1315d2c9e6499dd2ac89b01e35b943bbdc
8,321
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_21829_1358.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_21829_1358.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_21829_1358.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r15 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0xb674, %rbx and $53771, %r13 movups (%rbx), %xmm4 vpextrq $1, %xmm4, %r15 nop add $38208, %r12 lea addresses_A_ht+0x152d0, %r10 nop nop inc %rbx movb (%r10), %dl nop xor %r12, %r12 lea addresses_WC_ht+0xaf1e, %rsi lea addresses_WC_ht+0xe364, %rdi clflush (%rdi) nop nop nop xor $49329, %rbx mov $82, %rcx rep movsq nop nop xor $58323, %r12 lea addresses_UC_ht+0x11e5c, %rsi nop nop nop nop and $36240, %r15 mov $0x6162636465666768, %rbx movq %rbx, %xmm1 movups %xmm1, (%rsi) nop nop nop nop nop sub %rdi, %rdi lea addresses_UC_ht+0x116d4, %rsi lea addresses_D_ht+0x88d4, %rdi nop nop sub %rdx, %rdx mov $91, %rcx rep movsb nop add %rbx, %rbx lea addresses_A_ht+0xbed4, %r10 xor $54197, %rbx mov $0x6162636465666768, %rsi movq %rsi, (%r10) nop nop nop nop and $43289, %r12 lea addresses_WT_ht+0xa714, %rsi lea addresses_WC_ht+0x5080, %rdi nop nop nop cmp %rbx, %rbx mov $84, %rcx rep movsl nop nop nop nop dec %r15 lea addresses_WT_ht+0xe244, %rsi lea addresses_normal_ht+0xa5d4, %rdi nop nop inc %r13 mov $12, %rcx rep movsq nop nop nop sub $59711, %r12 lea addresses_UC_ht+0xdcd4, %rsi lea addresses_UC_ht+0xce54, %rdi sub $7948, %r10 mov $111, %rcx rep movsb nop nop nop nop sub $8951, %rdi lea addresses_A_ht+0xa1c, %rdi nop and %r13, %r13 movups (%rdi), %xmm0 vpextrq $1, %xmm0, %r15 nop nop nop nop add %r10, %r10 lea addresses_UC_ht+0x3595, %rdx nop nop and %r13, %r13 movb $0x61, (%rdx) cmp $58327, %rcx lea addresses_WT_ht+0xc9d4, %r12 nop nop nop and $54369, %rsi movl $0x61626364, (%r12) nop nop nop nop sub $34055, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r15 pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r15 push %rbx push %rcx push %rdx push %rsi // Store mov $0x8de, %r11 nop nop nop nop sub %r15, %r15 movl $0x51525354, (%r11) nop nop xor %r11, %r11 // Store lea addresses_WC+0x169d4, %rdx add $29149, %rsi movw $0x5152, (%rdx) nop nop nop cmp %r11, %r11 // Store lea addresses_US+0x1dbda, %r14 nop nop nop nop cmp %rcx, %rcx movl $0x51525354, (%r14) nop nop nop xor $64560, %r15 // Store lea addresses_WT+0xb608, %r11 nop sub $61026, %r15 movb $0x51, (%r11) dec %rdx // Store lea addresses_UC+0xdf53, %r11 add %rcx, %rcx mov $0x5152535455565758, %r14 movq %r14, %xmm5 vmovups %ymm5, (%r11) nop nop nop nop nop cmp %rbx, %rbx // Faulty Load lea addresses_US+0x1e1d4, %rcx nop nop nop cmp %r11, %r11 vmovups (%rcx), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $0, %xmm3, %r15 lea oracles, %rdx and $0xff, %r15 shlq $12, %r15 mov (%rdx,%r15,1), %r15 pop %rsi pop %rdx pop %rcx pop %rbx pop %r15 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 0, 'same': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_P'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 10, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'} {'dst': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 1, 'same': False, 'type': 'addresses_US'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 1, 'same': True, 'type': 'addresses_WT'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': True, 'type': 'addresses_US'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'src': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 1, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 0, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 2, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 7, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'src': {'congruent': 6, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'src': {'congruent': 2, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 2, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}, '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 */
32.631373
2,999
0.654248
fe19a91d476e3e0a1a8be46c2311be44c6bce460
4,473
asm
Assembly
OvmfPkg/ResetVector/Ia32/PageTables64.asm
KaoTuz/edk2-stable202108
49d9306e7bf64b2f07d8473be1f2faea49d0a012
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
null
null
null
OvmfPkg/ResetVector/Ia32/PageTables64.asm
KaoTuz/edk2-stable202108
49d9306e7bf64b2f07d8473be1f2faea49d0a012
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
null
null
null
OvmfPkg/ResetVector/Ia32/PageTables64.asm
KaoTuz/edk2-stable202108
49d9306e7bf64b2f07d8473be1f2faea49d0a012
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
null
null
null
;------------------------------------------------------------------------------ ; @file ; Sets the CR3 register for 64-bit paging ; ; Copyright (c) 2008 - 2013, Intel Corporation. All rights reserved.<BR> ; Copyright (c) 2017 - 2020, Advanced Micro Devices, Inc. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ;------------------------------------------------------------------------------ BITS 32 %define PAGE_PRESENT 0x01 %define PAGE_READ_WRITE 0x02 %define PAGE_USER_SUPERVISOR 0x04 %define PAGE_WRITE_THROUGH 0x08 %define PAGE_CACHE_DISABLE 0x010 %define PAGE_ACCESSED 0x020 %define PAGE_DIRTY 0x040 %define PAGE_PAT 0x080 %define PAGE_GLOBAL 0x0100 %define PAGE_2M_MBO 0x080 %define PAGE_2M_PAT 0x01000 %define PAGE_4K_PDE_ATTR (PAGE_ACCESSED + \ PAGE_DIRTY + \ PAGE_READ_WRITE + \ PAGE_PRESENT) %define PAGE_2M_PDE_ATTR (PAGE_2M_MBO + \ PAGE_ACCESSED + \ PAGE_DIRTY + \ PAGE_READ_WRITE + \ PAGE_PRESENT) %define PAGE_PDP_ATTR (PAGE_ACCESSED + \ PAGE_READ_WRITE + \ PAGE_PRESENT) ; ; Modified: EAX, EBX, ECX, EDX ; SetCr3ForPageTables64: OneTimeCall CheckSevFeatures xor edx, edx test eax, eax jz SevNotActive ; If SEV is enabled, C-bit is always above 31 sub eax, 32 bts edx, eax SevNotActive: ; ; For OVMF, build some initial page tables at ; PcdOvmfSecPageTablesBase - (PcdOvmfSecPageTablesBase + 0x6000). ; ; This range should match with PcdOvmfSecPageTablesSize which is ; declared in the FDF files. ; ; At the end of PEI, the pages tables will be rebuilt into a ; more permanent location by DxeIpl. ; mov ecx, 6 * 0x1000 / 4 xor eax, eax clearPageTablesMemoryLoop: mov dword[ecx * 4 + PT_ADDR (0) - 4], eax loop clearPageTablesMemoryLoop ; ; Top level Page Directory Pointers (1 * 512GB entry) ; mov dword[PT_ADDR (0)], PT_ADDR (0x1000) + PAGE_PDP_ATTR mov dword[PT_ADDR (4)], edx ; ; Next level Page Directory Pointers (4 * 1GB entries => 4GB) ; mov dword[PT_ADDR (0x1000)], PT_ADDR (0x2000) + PAGE_PDP_ATTR mov dword[PT_ADDR (0x1004)], edx mov dword[PT_ADDR (0x1008)], PT_ADDR (0x3000) + PAGE_PDP_ATTR mov dword[PT_ADDR (0x100C)], edx mov dword[PT_ADDR (0x1010)], PT_ADDR (0x4000) + PAGE_PDP_ATTR mov dword[PT_ADDR (0x1014)], edx mov dword[PT_ADDR (0x1018)], PT_ADDR (0x5000) + PAGE_PDP_ATTR mov dword[PT_ADDR (0x101C)], edx ; ; Page Table Entries (2048 * 2MB entries => 4GB) ; mov ecx, 0x800 pageTableEntriesLoop: mov eax, ecx dec eax shl eax, 21 add eax, PAGE_2M_PDE_ATTR mov [ecx * 8 + PT_ADDR (0x2000 - 8)], eax mov [(ecx * 8 + PT_ADDR (0x2000 - 8)) + 4], edx loop pageTableEntriesLoop OneTimeCall IsSevEsEnabled test eax, eax jz SetCr3 ; ; The initial GHCB will live at GHCB_BASE and needs to be un-encrypted. ; This requires the 2MB page for this range be broken down into 512 4KB ; pages. All will be marked encrypted, except for the GHCB. ; mov ecx, (GHCB_BASE >> 21) mov eax, GHCB_PT_ADDR + PAGE_PDP_ATTR mov [ecx * 8 + PT_ADDR (0x2000)], eax ; ; Page Table Entries (512 * 4KB entries => 2MB) ; mov ecx, 512 pageTableEntries4kLoop: mov eax, ecx dec eax shl eax, 12 add eax, GHCB_BASE & 0xFFE0_0000 add eax, PAGE_4K_PDE_ATTR mov [ecx * 8 + GHCB_PT_ADDR - 8], eax mov [(ecx * 8 + GHCB_PT_ADDR - 8) + 4], edx loop pageTableEntries4kLoop ; ; Clear the encryption bit from the GHCB entry ; mov ecx, (GHCB_BASE & 0x1F_FFFF) >> 12 mov [ecx * 8 + GHCB_PT_ADDR + 4], strict dword 0 mov ecx, GHCB_SIZE / 4 xor eax, eax clearGhcbMemoryLoop: mov dword[ecx * 4 + GHCB_BASE - 4], eax loop clearGhcbMemoryLoop SetCr3: ; ; Set CR3 now that the paging structures are available ; mov eax, PT_ADDR (0) mov cr3, eax OneTimeCallRet SetCr3ForPageTables64
29.622517
82
0.572323
33bdf128f1290c953c24104c16a07345cb5f86a4
1,781
asm
Assembly
examples/brightness/program.asm
michielvoo/snes
17addd20de4a78d4287618c212e7dce82351c5fc
[ "MIT" ]
51
2015-04-29T04:44:56.000Z
2019-12-04T05:59:35.000Z
examples/brightness/program.asm
michielvoo/super
17addd20de4a78d4287618c212e7dce82351c5fc
[ "MIT" ]
6
2015-07-29T04:35:33.000Z
2015-07-29T04:36:49.000Z
examples/brightness/program.asm
michielvoo/super
17addd20de4a78d4287618c212e7dce82351c5fc
[ "MIT" ]
5
2015-08-20T09:03:29.000Z
2019-02-08T00:10:26.000Z
; brightness ; Turn the brightness of the display up or down using the D-pad. .INCLUDE "../lib/header.asm" .INCLUDE "../lib/registers.asm" .INCLUDE "../lib/settings.asm" .INCLUDE "../lib/values.asm" .INCLUDE "../lib/initialization.asm" .BANK 0 .ORG 0 .SECTION "" Main: Reset ; Set accumulator to 8-bit mode sep #$20 ; Set palette 0 color 0 to white stz CGADD lda #$FF sta CGDATA lda #$7F sta CGDATA ; Enable VBlank and joypad auto-read lda #(NMITIMEN_NMI_ENABLE | NMITIMEN_JOY_ENABLE) sta NMITIMEN ; Turn on the screen at full brightness lda #$0F sta INIDISP ; Save the current brightness in WRAM .DEFINE BRIGHTNESS $7F0000 sta BRIGHTNESS ; For comparing joypad input .DEFINE INPUT $7F0001 .DEFINE INPUT_PREVIOUS $7F0002 - wai jmp - VBlank: ; Wait until the joypad input can be read lda #HVBJOY_JOYREADY - and HVBJOY cmp #HVBJOY_JOYREADY bne - ; When the joypad input is the same as during the previous VBlank, return lda JOY1H sta INPUT cmp INPUT_PREVIOUS beq + sta INPUT_PREVIOUS ; Jump to label On if the up button was pressed lda #JOYH_UP and JOY1H cmp #JOYH_UP beq Brighten ; Jump to label Off if the down button was pressed lda #JOYH_DOWN and JOY1H cmp #JOYH_DOWN beq Dim + rti Dim: ; Retrieve the current brightness, decrement, set screen brightness, and save value lda BRIGHTNESS beq + dec a sta INIDISP sta BRIGHTNESS + rti Brighten: ; Retrieve the current brightness, increment, set screen brightness, and save value lda BRIGHTNESS cmp #$0F beq + inc a sta INIDISP sta BRIGHTNESS + rti IRQ: lda TIMEUP rti .ENDS
17.81
87
0.651319
4b78449a40ecedf25ae06af5d2c356ba0a248d4b
514
asm
Assembly
programs/oeis/131/A131063.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/131/A131063.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/131/A131063.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A131063: Triangle read by rows: T(n,k) = 5*binomial(n,k) - 4 for 0 <= k <= n. ; 1,1,1,1,6,1,1,11,11,1,1,16,26,16,1,1,21,46,46,21,1,1,26,71,96,71,26,1,1,31,101,171,171,101,31,1,1,36,136,276,346,276,136,36,1,1,41,176,416,626,626,416,176,41,1,1,46,221,596,1046,1256,1046,596,221,46,1,1,51,271,821,1646,2306,2306,1646,821,271,51,1,1,56,326,1096,2471,3956,4616,3956,2471,1096,326,56,1,1,61,386,1426,3571,6431,8576,8576,6431 lpb $0 add $1,1 sub $0,$1 lpe bin $1,$0 sub $1,1 mul $1,10 add $1,2 div $1,2 mov $0,$1
36.714286
340
0.64786
2068474f000fee2714dac9b51ea89c7faed15291
6,253
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_2602_788.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_2602_788.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_2602_788.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r15 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0x1b954, %rsi lea addresses_WT_ht+0x161b4, %rdi nop nop nop cmp %r13, %r13 mov $50, %rcx rep movsl nop cmp %r15, %r15 lea addresses_normal_ht+0xcca, %rsi lea addresses_WT_ht+0x1a6ca, %rdi nop nop nop nop nop add $54319, %rbp mov $113, %rcx rep movsb dec %r15 lea addresses_WC_ht+0xfa4a, %rbp nop nop nop nop nop add $13876, %r13 mov (%rbp), %rcx nop sub %rbp, %rbp lea addresses_normal_ht+0x1440a, %rsi lea addresses_D_ht+0x8e4a, %rdi nop nop nop nop add $12970, %r11 mov $101, %rcx rep movsl nop nop nop nop nop add $33633, %rdi lea addresses_WT_ht+0x1a40a, %rsi lea addresses_WT_ht+0x1cba2, %rdi xor %r9, %r9 mov $40, %rcx rep movsb sub $4195, %r13 lea addresses_UC_ht+0x1e64e, %r9 nop nop nop nop nop cmp %rbp, %rbp mov $0x6162636465666768, %rdi movq %rdi, (%r9) nop nop cmp $3264, %rbp lea addresses_WC_ht+0xa3da, %rsi sub $47233, %rcx mov (%rsi), %di nop nop nop nop mfence lea addresses_WT_ht+0x8e4a, %r11 sub $18249, %r13 mov $0x6162636465666768, %rbp movq %rbp, (%r11) nop cmp %rcx, %rcx pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r15 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %r9 push %rbx push %rcx push %rdi // Store lea addresses_WC+0x543a, %rbx nop nop nop nop inc %r13 mov $0x5152535455565758, %r14 movq %r14, (%rbx) nop add %r13, %r13 // Faulty Load lea addresses_PSE+0x1c24a, %rcx nop nop nop nop nop sub %r9, %r9 mov (%rcx), %ebx lea oracles, %rcx and $0xff, %rbx shlq $12, %rbx mov (%rcx,%rbx,1), %rbx pop %rdi pop %rcx pop %rbx pop %r9 pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': True}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'33': 2602} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
38.598765
2,999
0.661123
732531074107402920238c72ede2ec172a25a7d2
286
asm
Assembly
wof/lcs/base/1DC.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
6
2020-10-14T15:29:10.000Z
2022-02-12T18:58:54.000Z
wof/lcs/base/1DC.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
wof/lcs/base/1DC.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
1
2020-12-17T08:59:10.000Z
2020-12-17T08:59:10.000Z
copyright zengfr site:http://github.com/zengfr/romhack 012A6A move.b #$ff, ($1dc,A5) [base+1D8, base+1DA] 012A70 clr.b ($1f8,A5) [base+1DC] 012ADC move.b #$ff, ($1dc,A5) 012AE2 rts [base+1DC] 01A610 dbra D1, $1a60e copyright zengfr site:http://github.com/zengfr/romhack
28.6
54
0.681818
4ad08d2d2922708259b1cfff113c18fee1b88575
504
asm
Assembly
asm/masm32/t2e/dosstub.asm
dindoliboon/archive
a5b54367dbb57260f9230375ac81e86c5fce0d7d
[ "MIT" ]
4
2020-10-02T15:24:20.000Z
2021-11-02T04:20:38.000Z
asm/masm32/t2e/dosstub.asm
dindoliboon/archive
a5b54367dbb57260f9230375ac81e86c5fce0d7d
[ "MIT" ]
null
null
null
asm/masm32/t2e/dosstub.asm
dindoliboon/archive
a5b54367dbb57260f9230375ac81e86c5fce0d7d
[ "MIT" ]
2
2019-10-28T01:20:07.000Z
2020-10-02T15:25:13.000Z
; ######################################################################### .186 .model tiny .code start: ; ######################################################################### push cs ; point data segment to code segment pop ds ; since data is after code segment mov ax, 4c01h ; return error code of 1 int 21h ; DOS interrupt ; ######################################################################### end start
25.2
75
0.281746
d980a35d5330e3da0f08fe7b6fe1636c3ac6f1f8
13,059
asm
Assembly
test/pillman.asm
humbertocsjr/tinyasm
0162e885a4bb178a6e65fe826dce0763d8eba06c
[ "BSD-2-Clause" ]
176
2019-10-03T17:53:21.000Z
2022-02-20T04:22:14.000Z
test/pillman.asm
humbertocsjr/tinyasm
0162e885a4bb178a6e65fe826dce0763d8eba06c
[ "BSD-2-Clause" ]
5
2019-10-04T17:47:56.000Z
2020-05-29T03:04:16.000Z
test/pillman.asm
humbertocsjr/tinyasm
0162e885a4bb178a6e65fe826dce0763d8eba06c
[ "BSD-2-Clause" ]
14
2019-10-03T20:58:04.000Z
2022-02-22T16:27:29.000Z
; ; Pillman ; ; by Oscar Toledo G. ; http://nanochess.org/ ; ; (c) Copyright 2019 Oscar Toledo G. ; ; Creation date: Jun/11/2019. ; Revision date: Jun/12/2019. Draws level. ; Revision date: Jun/13/2019. Pillman can move. ; Revision date: Jun/14/2019. Now ghosts don't get stuck. Ghost are ; transparent. Pillman doesn't leave ; trash. ; Revision date: Jun/15/2019. Ghosts can catch pillman. Optimized. ; 509 bytes. ; Revision date: Jul/09/2019. Self-modifying code, move subroutine, ; cache routine address (Peter Ferrie). ; 504 bytes. ; Revision date: Jul/22/2019. Added Esc key to exit. ; cpu 8086 %ifndef com_file ; If not defined create a boot sector com_file: equ 0 %endif base: equ 0xf9fe ; Memory base (same segment as video) intended_dir: equ base+0x00 ; Next direction for player frame: equ base+0x01 ; Current video frame x_player: equ base+0x02 ; Saved X-coordinate of player y_player: equ ms6+0x01 ; Saved Y-coordinate of player old_time: equ base+0x06 ; Old time ; ; Maze should start at x,y coordinate multiple of 8 ; BASE_MAZE: equ 16*X_OFFSET+32 pos1: equ BASE_MAZE+21*8*X_OFFSET X_OFFSET: equ 0x0140 MAZE_COLOR: equ 0x37 ; No color should be higher or equal value PILL_COLOR: equ 0x02 ; Color for pill PLAYER_COLOR: equ 0x0e ; Should be unique ; ; XOR combination of these plus PILL_COLOR shouldn't ; result in PLAYER_COLOR ; GHOST1_COLOR: equ 0x21 ; Ghost 1 color GHOST2_COLOR: equ 0x2e ; Ghost 2 color GHOST3_COLOR: equ 0x28 ; Ghost 3 color GHOST4_COLOR: equ 0x34 ; Ghost 4 color %if com_file org 0x0100 ; Start address for COM file %else org 0x7c00 ; Start address for boot sector %endif restart: mov ax,0x0013 ; Set mode 0x13 (320x200x256 VGA) int 0x10 ; Call BIOS cld mov ax,0xa000 ; Video segment mov ds,ax ; Use as source data segment mov es,ax ; Use as target data segment ; ; Draw the maze ; mov si,maze ; SI = Address of maze data mov di,BASE_MAZE ; DI = Address for drawing maze draw_maze_row: cs lodsw ; Load one word of data from Code Segment xchg ax,cx ; Put into AX mov bx,30*8 ; Offset of mirror position draw_maze_col: shl cx,1 ; Extract one tile of maze mov ax,MAZE_COLOR*0x0100+0x18 ; Carry = 0 = Wall jnc dm1 ; If bit was zero, jump to dm1 mov ax,PILL_COLOR*0x0100+0x38 ; Carry = 1 = Pill dm1: call draw_sprite ; Draw tile add di,bx ; Go to mirror position sub bx,16 ; Mirror finished? jc dm2 ; Yes, jump call draw_sprite ; Draw tile sub di,bx ; Restore position sub di,8 ; Advance tile jmp draw_maze_col ; Repeat until finished ; ; Move ghost ; bh = color ; move_ghost: lodsw ; Load screen position xchg ax,di lodsw ; Load direction test ah,ah xchg ax,bx ; Color now in ah mov al,0x30 push ax mov byte [si-1],0x02 ; Remove first time setup flag call move_sprite3 pop ax ; ; Draw the sprite/tile ; ; ah = sprite color ; al = sprite (x8) ; di = Target address draw_sprite: push ax push bx push cx push di ds0: push ax mov bx,bitmaps-8 cs xlat ; Extract one byte from bitmap xchg ax,bx mov cx,8 ds1: mov al,bh shl bl,1 ; Extract one bit jc ds2 xor ax,ax ; Background color ds2: cmp bh,0x10 ; Color < 0x10 jc ds4 ; Yes, jump cmp byte [di],PLAYER_COLOR ; "Eats" player? je restart ; Yes, it should crash after several hundred games ds3: xor al,[di] ; XOR ghost again pixel ds4: stosb loop ds1 add di,X_OFFSET-8 ; Go to next video line pop ax inc ax ; Next bitmap byte test al,7 ; Sprite complete? jne ds0 ; No, jump pop di pop cx pop bx pop ax ret dm2: add di,X_OFFSET*8-15*8 ; Go to next row cmp si,setup_data ; Maze completed? jne draw_maze_row ; No, jump ; ; Setup characters ; ; CX is zero at this point ; DI is equal to pos1 at this point ;mov di,pos1 mov cl,5 ; 5 elements (player + ghosts) mov ax,2 ; Going to right dm3: cs movsw ; Copy position from Code Segment stosw ; Store desired direction loop dm3 ; Loop ; ; Main game loop ; game_loop: mov ah,0x00 int 0x1a ; BIOS clock read cmp dx,[old_time] ; Wait for time change je game_loop mov [old_time],dx ; Save new time mov ah,0x01 ; BIOS Key available int 0x16 mov ah,0x00 ; BIOS Read Key je no_key int 0x16 no_key: mov al,ah cmp al,0x01 ; Esc key jne no_esc int 0x20 no_esc: sub al,0x48 ; Code for arrow up? jc no_key2 ; Out of range, jump. cmp al,0x09 ; Farther than arrow down? jnc no_key2 ; Out of range, jump. mov bx,dirs cs xlat ; Translate direction to internal code mov [intended_dir],al ; Save as desired direction no_key2: mov si,pos1 ; SI points to data for player lodsw ; Load screen position xchg ax,di lodsw ; Load direction/type xchg ax,bx xor ax,ax ; Delete pillman call move_sprite2 ; Move xor byte [frame],0x80 ; Alternate frame mov ax,0x0e28 ; Closed mouth js close_mouth ; Jump if sign set. mov al,[pos1+2] ; Using current direction mov cl,3 ; Multiply by 8 shl al,cl ; Show open mouth close_mouth: call draw_sprite ; Draw ; ; Move ghosts ; mov bp, move_ghost mov bh,GHOST1_COLOR call bp mov bh,GHOST2_COLOR call bp mov bh,GHOST3_COLOR call bp mov bh,GHOST4_COLOR call bp jmp game_loop ; ; DI = address on the screen ; BL = wanted direction ; move_sprite3: je move_sprite ; If zero, won't remove first time move_sprite2: call draw_sprite ; Remove ghost move_sprite: mov ax,di ; Prepare to extract pixel row/column xor dx,dx mov cx,X_OFFSET div cx ; Now AX = Row, DX = Column mov ah,dl or ah,al and ah,7 ; Both aligned at 8 pixels? jne ms0 ; No, jump because cannot change direction. ; AH is zero already ;mov ah,0 ; ; Get available directions ; mov ch,MAZE_COLOR cmp [di-0x0001],ch ; Left adc ah,ah ; AH = 0000 000L cmp [di+X_OFFSET*8],ch ; Down adc ah,ah ; AH = 0000 00LD cmp [di+0x0008],ch ; Right adc ah,ah ; AH = 0000 0LDR cmp [di-X_OFFSET],ch ; Up adc ah,ah ; AH = 0000 LDRU test bh,bh ; Is it pillman? je ms4 ; Yes, jump ; ; Ghost ; test bl,0x05 ; Test BL for .... .D.U je ms6 ; No, jump ; Current direction is up/down cmp dx,[x_player] ; Compare X coordinate with player mov al,0x02 ; Go right jc ms8 ; Jump if X ghost < X player mov al,0x08 ; Go left jmp ms8 ; Current direction is left/right ms6: cmp al,0x00 ; (SMC) Compare Y coordinate with player mov al,0x04 ; Go down jc ms8 ; Jump if Y ghost < Y player mov al,0x01 ; Go up ms8: test ah,al ; Can it go in intended direction? jne ms1 ; Yes, go in direction mov al,bl ms9: test ah,al ; Can it go in current direction? jne ms1 ; Yes, jump shr al,1 ; Try another direction jne ms9 mov al,0x08 ; Cycle direction jmp ms9 ; ; Pillman ; ms4: mov [x_player],dx ; Save current X coordinate cs mov [y_player],al ; Save current Y coordinate mov al,[intended_dir] test ah,al ; Can it go in intended direction? jne ms1 ; Yes, go in that direction ms5: and ah,bl ; Can it go in current direction? je ms2 ; No, stops ms0: mov al,bl ms1: mov [si-2],al ; Save new direction test al,5 ; If going up/down... mov bx,-X_OFFSET*2 ; ...bx = vertical movement jne ms3 mov bx,1*2 ; ...bx = horizontal movement ms3: test al,12 je ms7 neg bx ; Reverse direction ms7: add di,bx ; Do move mov [si-4],di ; Save the new screen position ms2: ret ; ; Game bitmaps ; bitmaps: db 0x00,0x42,0xe7,0xe7,0xff,0xff,0x7e,0x3c ; dir = 1 db 0x3c,0x7e,0xfc,0xf0,0xf0,0xfc,0x7e,0x3c ; dir = 2 db 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff ; Maze db 0x3c,0x7e,0xff,0xff,0xe7,0xe7,0x42,0x00 ; dir = 4 db 0x3c,0x7e,0xff,0xff,0xff,0xff,0x7e,0x3c ; Closed mouth db 0x3c,0x7e,0xdb,0xdb,0xff,0xff,0xff,0xa5 ; Ghost db 0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00 ; Pill db 0x3c,0x7e,0x3f,0x0f,0x0f,0x3f,0x7e,0x3c ; dir = 8 ; ; Maze shape ; maze: dw 0b0000_0000_0000_0000 dw 0b0111_1111_1111_1110 dw 0b0100_0010_0000_0010 dw 0b0100_0010_0000_0010 dw 0b0111_1111_1111_1111 dw 0b0100_0010_0100_0000 dw 0b0111_1110_0111_1110 dw 0b0000_0010_0000_0010 dw 0b0000_0010_0111_1111 dw 0b0000_0011_1100_0000 dw 0b0000_0010_0100_0000 dw 0b0000_0010_0111_1111 dw 0b0000_0010_0100_0000 dw 0b0111_1111_1111_1110 dw 0b0100_0010_0000_0010 dw 0b0111_1011_1111_1111 dw 0b0000_1010_0100_0000 dw 0b0111_1110_0111_1110 dw 0b0100_0000_0000_0010 dw 0b0111_1111_1111_1111 dw 0b0000_0000_0000_0000 ; ; Starting positions ; setup_data: dw BASE_MAZE+0x78*X_OFFSET+0x78 dw BASE_MAZE+0x30*X_OFFSET+0x70 dw BASE_MAZE+0x40*X_OFFSET+0x78 dw BASE_MAZE+0x20*X_OFFSET+0x80 dw BASE_MAZE+0x30*X_OFFSET+0x88 ; ; Convert arrow codes to internal directions ; dirs: db 0x01 ; 0x48 = Up arrow db 0x00 db 0x00 db 0x08 ; 0x4b = Left arrow db 0x00 db 0x02 ; 0x4d = Right arrow db 0x00 db 0x00 db 0x04 ; 0x50 = Down arrow %if com_file %else times 510-($-$$) db 0x4f db 0x55,0xaa ; Make it a bootable sector %endif
33.657216
83
0.476683
2990985fee30387baf4a78995d2b9a66d4a9c400
4,414
asm
Assembly
release/src/router/libpcap/msdos/ndis_0.asm
ghsecuritylab/tomato_egg
50473a46347f4631eb4878a0f47955cc64c87293
[ "FSFAP" ]
183
2015-01-01T09:17:54.000Z
2021-11-12T11:34:34.000Z
ARODataCollector/external/libpcap-1.1.1/msdos/ndis_0.asm
tweezy23/ARO
5621a6dd92e5506e5b8b0db326179ec3dd316a17
[ "Apache-2.0", "Unlicense" ]
18
2016-08-25T12:32:23.000Z
2018-02-07T11:06:50.000Z
ARODataCollector/external/libpcap-1.1.1/msdos/ndis_0.asm
tweezy23/ARO
5621a6dd92e5506e5b8b0db326179ec3dd316a17
[ "Apache-2.0", "Unlicense" ]
55
2015-02-08T18:54:30.000Z
2022-03-11T07:33:43.000Z
PAGE 60,132 NAME NDIS_0 ifdef DOSX .386 _TEXT SEGMENT PUBLIC DWORD USE16 'CODE' _TEXT ENDS _DATA SEGMENT PUBLIC DWORD USE16 'CODE' _DATA ENDS _TEXT32 SEGMENT PUBLIC BYTE USE32 'CODE' _TEXT32 ENDS CB_DSEG EQU <CS> ; DOSX is tiny-model D_SEG EQU <_TEXT SEGMENT> D_END EQU <_TEXT ENDS> ASSUME CS:_TEXT,DS:_TEXT PUSHREGS equ <pushad> POPREGS equ <popad> PUBPROC macro name align 4 public @&name @&name label near endm else .286 _TEXT SEGMENT PUBLIC DWORD 'CODE' _TEXT ENDS _DATA SEGMENT PUBLIC DWORD 'DATA' _DATA ENDS CB_DSEG EQU <SEG _DATA> ; 16bit is small/large model D_SEG EQU <_DATA SEGMENT> D_END EQU <_DATA ENDS> ASSUME CS:_TEXT,DS:_DATA PUSHREGS equ <pusha> POPREGS equ <popa> PUBPROC macro name public _&name _&name label far endm endif ;------------------------------------------- D_SEG D_END _TEXT SEGMENT EXTRN _NdisSystemRequest : near EXTRN _NdisRequestConfirm : near EXTRN _NdisTransmitConfirm : near EXTRN _NdisReceiveLookahead : near EXTRN _NdisIndicationComplete : near EXTRN _NdisReceiveChain : near EXTRN _NdisStatusProc : near EXTRN _NdisAllocStack : near EXTRN _NdisFreeStack : near ; ; *ALL* interrupt threads come through this macro. ; CALLBACK macro callbackProc, argsSize pushf PUSHREGS ;; Save the registers push es push ds mov ax,CB_DSEG ;; Load DS mov ds,ax call _NdisAllocStack ;; Get and install a stack. mov bx,ss ;; Save off the old stack in other regs mov cx,sp mov ss,dx ;; Install the new one mov sp,ax push bx ;; Save the old one on to the new stack push cx sub sp,&argsSize ;; Allocate space for arguments on the stack mov ax,ss ;; Set up the destination for the move mov es,ax mov di,sp mov ds,bx ;; Set up the source for the move. mov si,cx add si,4+6+32 mov cx,&argsSize ;; Move the arguments to the stack. shr cx,1 cld rep movsw mov ax,CB_DSEG ;; Set my data segment again. mov ds,ax call &callbackProc ;; Call the real callback. pop di ;; Pop off the old stack pop si mov bx,ss ;; Save off the current allocated stack. mov cx,sp mov ss,si ;; Restore the old stack mov sp,di push ax ;; Save the return code push bx ;; Free the stack. Push the pointer to it push cx call _NdisFreeStack add sp,4 pop ax ;; Get the return code back add di,32 ;; Get a pointer to ax on the stack mov word ptr ss:[di],ax pop ds pop es POPREGS popf endm ; ; Define all of the callbacks for the NDIS procs. ; PUBPROC systemRequestGlue CALLBACK _NdisSystemRequest,14 RETF PUBPROC requestConfirmGlue CALLBACK _NdisRequestConfirm,12 RETF PUBPROC transmitConfirmGlue CALLBACK _NdisTransmitConfirm,10 RETF PUBPROC receiveLookaheadGlue CALLBACK _NdisReceiveLookahead,16 RETF PUBPROC indicationCompleteGlue CALLBACK _NdisIndicationComplete,4 RETF PUBPROC receiveChainGlue CALLBACK _NdisReceiveChain,16 RETF PUBPROC statusGlue CALLBACK _NdisStatusProc,12 RETF ; ; int FAR NdisGetLinkage (int handle, char *data, int size); ; ifdef DOSX PUBPROC NdisGetLinkage push ebx mov ebx, [esp+8] ; device handle mov eax, 4402h ; IOCTRL read function mov edx, [esp+12] ; DS:EDX -> result data mov ecx, [esp+16] ; ECX = length int 21h pop ebx jc @fail xor eax, eax @fail: ret else PUBPROC NdisGetLinkage enter 0, 0 mov bx, [bp+6] mov ax, 4402h mov dx, [bp+8] mov cx, [bp+12] int 21h jc @fail xor ax, ax @fail: leave retf endif ENDS END
23.354497
74
0.557318
1c5dafea4fe6be1517e68828ce4a526425b7e175
234
asm
Assembly
data/mapHeaders/SSAnne3F.asm
AmateurPanda92/pokemon-rby-dx
f7ba1cc50b22d93ed176571e074a52d73360da93
[ "MIT" ]
9
2020-07-12T19:44:21.000Z
2022-03-03T23:32:40.000Z
data/mapHeaders/SSAnne3F.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
7
2020-07-16T10:48:52.000Z
2021-01-28T18:32:02.000Z
data/mapHeaders/SSAnne3F.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
2
2021-03-28T18:33:43.000Z
2021-05-06T13:12:09.000Z
SSAnne3F_h: db SHIP ; tileset db SS_ANNE_3F_HEIGHT, SS_ANNE_3F_WIDTH ; dimensions (y, x) dw SSAnne3F_Blocks ; blocks dw SSAnne3F_TextPointers ; texts dw SSAnne3F_Script ; scripts db 0 ; connections dw SSAnne3F_Object ; objects
26
59
0.782051
85863ababceb5a20bd0b10a520843fab55f275cb
4,257
asm
Assembly
SumoBot_Code_Dev/SumoRing/asm/src/floor_det_service.asm
CmdrZin/chips_avr_examples
d4b57a8efd6aff2a678adef4fd405e6359e891e6
[ "MIT" ]
5
2017-04-17T15:11:40.000Z
2021-12-13T23:52:09.000Z
SumoBot_Code_Dev/SumoRing/asm/src/floor_det_service.asm
CmdrZin/chips_avr_examples
d4b57a8efd6aff2a678adef4fd405e6359e891e6
[ "MIT" ]
null
null
null
SumoBot_Code_Dev/SumoRing/asm/src/floor_det_service.asm
CmdrZin/chips_avr_examples
d4b57a8efd6aff2a678adef4fd405e6359e891e6
[ "MIT" ]
null
null
null
/* * Sumo Bot Floor Detector Code * * org: 10/17/2014 * auth: Nels "Chip" Pearson * * Target: LCD_CDM-116100 Demo Board, 8MHz, Sumo Bot, 3 IR Front Sensors * * Resources * SRAM * * IO * */ .equ FLOOR_DELAY_COUNT = 1 .equ FLOOR_LED_IO_RIGHT = PORTD1 .equ FLOOR_LED_IO_CENTER = PORTD2 .equ FLOOR_LED_IO_LEFT = PORTD3 .equ FLOOR_DET_IO_RIGHT = PORTD5 .equ FLOOR_DET_IO_CENTER = PORTD6 .equ FLOOR_DET_IO_LEFT = PORTD7 .equ FLOOR_MASK_RIGHT = 0x20 .equ FLOOR_MASK_CENTER = 0x40 .equ FLOOR_MASK_LEFT = 0x80 ; floor_status .equ FLOOR_STATUS_RIGHT = 0x01 .equ FLOOR_STATUS_CENTER = 0x02 .equ FLOOR_STATUS_LEFT = 0x04 .DSEG floor_delay_cnt: .BYTE 1 ; service time delay * 10ms floor_status: .BYTE 1 ; which LED/Detector to service floor_det_status: .BYTE 1 ; Detector status .CSEG /* * Initialize Floor Service Parameters * * */ floor_det_init: call floor_det_init_io ; ldi R16, FLOOR_STATUS_RIGHT sts floor_status, R16 ; ldi R16, FLOOR_DELAY_COUNT sts floor_delay_cnt, R16 ; ret /* * Initialize Floor Detector IO * */ floor_det_init_io: ; init IO output sbi DDRD, FLOOR_LED_IO_RIGHT ; out sbi PORTD, FLOOR_LED_IO_RIGHT ; OFF sbi DDRD, FLOOR_LED_IO_CENTER sbi PORTD, FLOOR_LED_IO_CENTER sbi DDRD, FLOOR_LED_IO_LEFT sbi PORTD, FLOOR_LED_IO_LEFT ; init IO input cbi DDRD, FLOOR_DET_IO_RIGHT ; in sbi PORTD, FLOOR_DET_IO_RIGHT ; Pull-up ON cbi DDRD, FLOOR_DET_IO_CENTER sbi PORTD, FLOOR_DET_IO_CENTER cbi DDRD, FLOOR_DET_IO_LEFT sbi PORTD, FLOOR_DET_IO_LEFT ; ret /* * floor_det_service() * * Support for three IR sensors at front of Sumo Bot. * * Test 1ms flag..consume * if delay == 0 * delay = 10 * else * --delay then Exit * Cycle through three detectors. * Turn on LED, Wait 16us, Sample det. * */ fds_exite: rjmp fds_exit floor_det_service: sbis GPIOR0, FLOOR_1MS_TIC ; test 10ms tic ret ; EXIT..not set ; cbi GPIOR0, FLOOR_1MS_TIC ; clear tic10ms flag set by interrup // Run service lds R16, floor_delay_cnt dec R16 sts floor_delay_cnt, R16 brne fds_exite ; reset or exit ; yes ldi R16, FLOOR_DELAY_COUNT sts floor_delay_cnt, R16 ; call floor_det_init_io ; reset I/O lds R16, floor_status ; get mode lds R17, floor_det_status ; get current status ; switch(state) cpi R16, FLOOR_STATUS_RIGHT brne fds_skip10 ; RIGHT ldi R16, FLOOR_STATUS_CENTER ; next detector ; test cbi PORTD, FLOOR_LED_IO_RIGHT ; LED on call floor_delay in R18, PIND ; read det sbi PORTD, FLOOR_LED_IO_RIGHT ; LED off andi R18, FLOOR_MASK_RIGHT ; test for high (BLACK) breq fds_skip00 ; sense black (1) call turn_on_green ori R17, FLOOR_STATUS_RIGHT ; set bit rjmp fds_update fds_skip00: ; sense white (0) call turn_off_green andi R17, ~FLOOR_STATUS_RIGHT ; clr bit rjmp fds_update ; fds_skip10: cpi R16, FLOOR_STATUS_CENTER brne fds_skip20 ; CENTER ldi R16, FLOOR_STATUS_LEFT ; next detector ; test cbi PORTD, FLOOR_LED_IO_CENTER ; LED on call floor_delay in R18, PIND ; read det sbi PORTD, FLOOR_LED_IO_CENTER ; LED off andi R18, FLOOR_MASK_CENTER ; test for low (ON) breq fds_skip11 ; sense black (1) call turn_on_red ori R17, FLOOR_STATUS_CENTER ; set bit rjmp fds_update fds_skip11: ; sense white (0) call turn_off_red andi R17, ~FLOOR_STATUS_CENTER ; clr bit rjmp fds_update ; fds_skip20: cpi R16, FLOOR_STATUS_LEFT brne fds_skip30 ; LEFT ldi R16, FLOOR_STATUS_RIGHT ; next detector ; test cbi PORTD, FLOOR_LED_IO_LEFT ; LED on call floor_delay in R18, PIND ; read det sbi PORTD, FLOOR_LED_IO_LEFT ; LED off andi R18, FLOOR_MASK_LEFT ; test for low (ON) breq fds_skip21 ; sense black (1) call turn_on_yellow ori R17, FLOOR_STATUS_LEFT ; set bit rjmp fds_update fds_skip21: ; sense white (0) call turn_off_yellow andi R17, ~FLOOR_STATUS_LEFT ; clr bit rjmp fds_update ; fds_skip30: ; default clr R17 ldi R16, FLOOR_STATUS_RIGHT ; set to default fds_update: sts floor_det_status, R17 sts floor_status, R16 ; fds_exit: ret /* * Delay 16us with 8MHz clock * 8 cycles = 1us * NOTE: Safe to call from any where. */ floor_delay: push R16 ; ldi R16, 251 ; 32 -1 for overhead ; 4 cycle loop = 0.5us fd1_loop1: nop dec R16 brne fd1_loop1 ; pop R16 ret
20.368421
72
0.728212
b01922d9acfcec1ff9a6368665d5b1a199fe4ee9
2,136
asm
Assembly
programs/oeis/100/A100791.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/100/A100791.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/100/A100791.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A100791: Group the natural numbers so that the n-th group contains n(n+1)/2 = T(n) terms: (1), (2,3,4), (5,6,7,8,9,10), (11,12,13,14,15,16,17,18,19,20),(21,22,23,24,25,26,27,28,29,30,31,32,33,34,35),... The n-th row of the following triangle is formed from the sum of first n terms, next n-1 terms,next n-2 terms ... of the n-th group; e.g. third row is (5+6+7), (8+9), (10) or 18,17,10. Sequence contains the triangle read by rows. ; 1,5,4,18,17,10,50,48,37,20,115,110,93,67,35,231,220,194,156,109,56,420,399,360,306,240,165,84,708,672,615,540,450,348,237,120,1125,1068,987,885,765,630,483,327,165,1705,1620,1508,1372,1215,1040,850,648,437,220,2486,2365,2214,2036,1834,1611,1370,1114,846,569,286,3510,3344,3145,2916,2660,2380,2079,1760,1426,1080,725,364,4823,4602,4345,4055,3735,3388,3017,2625,2215,1790,1353,907,455,6475,6188,5862,5500,5105,4680,4228,3752,3255,2740,2210,1668,1117,560,8520,8155,7748,7302,6820,6305,5760,5188,4592,3975,3340,2690,2028,1357,680,11016,10560,10059,9516,8934,8316,7665,6984,6276,5544,4791,4020,3234,2436,1629,816,14025,13464,12855,12201,11505,10770,9999,9195,8361,7500,6615,5709,4785,3846,2895,1935,969,17613,16932,16200,15420,14595,13728,12822,11880,10905,9900,8868,7812,6735,5640,4530,3408,2277,1140,21850,21033,20162,19240,18270,17255,16198,15102,13970,12805,11610,10388,9142,7875,6590,5290,3978,2657,1330,26810,25840,24813,23732,22600,21420,20195,18928,17622,16280,14905,13500,12068,10612,9135,7640,6130,4608,3077,1540,32571,31430,30229,28971,27659,26296,24885,23429,21931,20394,18821,17215,15579,13916,12229,10521,8795,7054,5301,3539,1771,39215,37884,36490,35036,33525,31960,30344,28680,26971,25220,23430,21604,19745,17856,15940,14000,12039,10060,8066 mov $2,$0 mov $5,2 lpb $5 mov $0,$2 sub $5,1 add $0,$5 sub $0,1 cal $0,212013 ; Triangle read by rows: total number of pairs of states of the first n subshells of the nuclear shell model in which the subshells are ordered by energy level in increasing order. mul $0,2 mov $4,$0 add $0,2 mov $3,$5 mul $4,$0 mov $6,$4 lpb $3 mov $1,$6 sub $3,1 lpe lpe lpb $2 sub $1,$6 mov $2,0 lpe sub $1,8 div $1,8 add $1,1
71.2
1,253
0.730337
d7a55318a77a9d1ab022f30962e9238030fdcdfe
389
asm
Assembly
ITS_Assembler/test1.asm
RobertGageStroud/Portfolio
7e2f915cd34eb7f818b94398ba261f65c7135db9
[ "MIT" ]
null
null
null
ITS_Assembler/test1.asm
RobertGageStroud/Portfolio
7e2f915cd34eb7f818b94398ba261f65c7135db9
[ "MIT" ]
null
null
null
ITS_Assembler/test1.asm
RobertGageStroud/Portfolio
7e2f915cd34eb7f818b94398ba261f65c7135db9
[ "MIT" ]
1
2020-10-27T16:58:32.000Z
2020-10-27T16:58:32.000Z
;Test file for assembly ;This is a comment .orig x3000 ADD R1, R2, R3 add R0, R3, #10 and R1, R1, R2 AND R0, R3, #-10 L0 BR L1 BRN L0 BRZ L1 BRP L0 BRNZ L1 BRNP L0 BRZP L1 BRNZP L0 LD R1, L2 LDR R1, R2, #-5 L1 NOT R3, R4 ST R5, L2 STR R6, R1, #-5 TRAP x20 TRAP x21 TRAP x22 TRAP x23 TRAP x24 TRAP x25 L2 .FILL 0 L3 .FILL 0 L4 .FILL 0 .END
10.236842
23
0.583548
597ca6495c7cf55c975b0d91119dceaa8e206510
11,695
asm
Assembly
examples/float.asm
AbdulrahmanAbumdas/emu8086
b99ea60f5dbf8647f278eef60ed1bd8a174468e5
[ "FSFAP" ]
287
2015-10-01T20:34:49.000Z
2022-03-31T09:19:39.000Z
examples/float.asm
BurunluVoldi/emu8086
b99ea60f5dbf8647f278eef60ed1bd8a174468e5
[ "FSFAP" ]
6
2017-06-13T17:22:24.000Z
2021-01-29T23:40:11.000Z
examples/float.asm
BurunluVoldi/emu8086
b99ea60f5dbf8647f278eef60ed1bd8a174468e5
[ "FSFAP" ]
239
2015-09-13T09:40:53.000Z
2022-03-29T14:15:16.000Z
; calculate equation with high precision without math coprocessor ; this program calculates linear equation: ax + b = 0 ; the result is printed with floating point. ; for example: a = 7, b = 2 ; x = -0.28571428.... name "float" precision = 30 ; max digits after the dot. dseg segment 'data' cr equ 0Dh lf equ 0Ah new_line equ 0Dh,0Ah, '$' mess0 db 'calculation of ax + b = 0', new_line mess1 db 'enter a (-32768..32767)!', new_line mess2 db lf, cr, 'enter b (-32768..32767)!', new_line mess3 db cr, lf, cr, lf, 'data:', '$' mess4 db cr, lf, ' a = ', '$' mess5 db cr, lf, ' b = ', '$' mess6 db cr, lf, 'result: ', cr, lf, ' x = ', '$' mess7 db cr, lf, cr, lf, 'no solution!', new_line mess8 db cr, lf, cr, lf, 'infinite number of solutions!', new_line error db cr, lf, 'the number is out of range!', new_line twice_nl db new_line, new_line make_minus db ? ; used as a flag in procedures. a dw ? b dw ? ten dw 10 ; used as multiplier. four dw 4 ; used as divider. dseg ends sseg segment stack 'stack' dw 100h dup(?) sseg ends cseg segment 'code' ;******************************************************************* start proc far ; store return address to os: push ds xor ax, ax push ax ; set segment registers: mov ax, dseg mov ds, ax mov es, ax ; welcome message: lea dx, mess0 call puts ; display the message. ; ask for 'a' : lea dx, mess1 call puts ; display the message. call scan_num ; input the number into cx. mov a, cx ; ask for 'b' : lea dx, mess2 call puts ; display the message. call scan_num ; input the number into cx. mov b, cx ; print the data: lea dx, mess3 call puts lea dx, mess4 call puts mov ax, a call print_num ; print ax. lea dx, mess5 call puts mov ax, b call print_num ; print ax. ; check data: cmp a, 0 jne soluble ; jumps when a<>0. cmp b, 0 jne no_solution ; jumps when a=0 and b<>0. jmp infinite ; jumps when a=0 and b=0. soluble: ; calculate the solution: ; ax + b = 0 -> ax = -b -> x = -b/a neg b mov ax, b xor dx, dx ; check the sign, make dx:ax negative if ax is negative: cmp ax, 0 jns not_singned not dx not_singned: mov bx, a ; divider is in bx. ; '-b' is in dx:ax. ; 'a' is in bx. idiv bx ; ax = dx:ax / bx (dx - remainder). ; 'x' is in ax. ; remainder is in dx. push dx ; store the remainder. lea dx, mess6 call puts pop dx ; print 'x' as float: ; ax - whole part ; dx - remainder ; bx - divider call print_float jmp end_prog no_solution: lea dx, mess7 call puts jmp end_prog infinite: lea dx, mess8 call puts end_prog: lea dx, twice_nl call puts ; wait for any key.... mov ah, 0 int 16h ret start endp ;*************************************************************** ; prints number in ax and it's fraction in dx. ; used to print remainder of 'div/idiv bx'. ; ax - whole part. ; dx - remainder. ; bx - the divider that was used to get the remainder from divident. print_float proc near push cx push dx ; because the remainder takes the sign of divident ; its sign should be inverted when divider is negative ; (-) / (-) = (+) ; (+) / (-) = (-) cmp bx, 0 jns div_not_signed neg dx ; make remainder positive. div_not_signed: ; print_num procedure does not print the '-' ; when the whole part is '0' (even if the remainder is ; negative) this code fixes it: cmp ax, 0 jne checked ; ax<>0 cmp dx, 0 jns checked ; ax=0 and dx>=0 push dx mov dl, '-' call write_char ; print '-' pop dx checked: ; print whole part: call print_num ; if remainder=0, then no need to print it: cmp dx, 0 je done push dx ; print dot after the number: mov dl, '.' call write_char pop dx ; print digits after the dot: mov cx, precision call print_fraction done: pop dx pop cx ret print_float endp ;*************************************************************** ; prints dx as fraction of division by bx. ; dx - remainder. ; bx - divider. ; cx - maximum number of digits after the dot. print_fraction proc near push ax push dx next_fraction: ; check if all digits are already printed: cmp cx, 0 jz end_rem dec cx ; decrease digit counter. ; when remainder is '0' no need to continue: cmp dx, 0 je end_rem mov ax, dx xor dx, dx cmp ax, 0 jns not_sig1 not dx not_sig1: imul ten ; dx:ax = ax * 10 idiv bx ; ax = dx:ax / bx (dx - remainder) push dx ; store remainder. mov dx, ax cmp dx, 0 jns not_sig2 neg dx not_sig2: add dl, 30h ; convert to ascii code. call write_char ; print dl. pop dx jmp next_fraction end_rem: pop dx pop ax ret print_fraction endp ;*************************************************************** ; this procedure prints number in ax, ; used with print_numx to print "0" and sign. ; this procedure also stores the original ax, ; that is modified by print_numx. print_num proc near push dx push ax cmp ax, 0 jnz not_zero mov dl, '0' call write_char jmp printed not_zero: ; the check sign of ax, ; make absolute if it's negative: cmp ax, 0 jns positive neg ax mov dl, '-' call write_char positive: call print_numx printed: pop ax pop dx ret print_num endp ;*************************************************************** ; prints out a number in ax (not just a single digit) ; allowed values from 1 to 65535 (ffff) ; (result of /10000 should be the left digit or "0"). ; modifies ax (after the procedure ax=0) print_numx proc near push bx push cx push dx ; flag to prevent printing zeros before number: mov cx, 1 mov bx, 10000 ; 2710h - divider. ; check if ax is zero, if zero go to end_show cmp ax, 0 jz end_show begin_print: ; check divider (if zero go to end_show): cmp bx,0 jz end_show ; avoid printing zeros before number: cmp cx, 0 je calc ; if ax<bx then result of div will be zero: cmp ax, bx jb skip calc: xor cx, cx ; set flag. xor dx, dx div bx ; ax = dx:ax / bx (dx=remainder). ; print last digit ; ah is always zero, so it's ignored push dx mov dl, al add dl, 30h ; convert to ascii code. call write_char pop dx mov ax, dx ; get remainder from last div. skip: ; calculate bx=bx/10 push ax xor dx, dx mov ax, bx div ten ; ax = dx:ax / 10 (dx=remainder). mov bx, ax pop ax jmp begin_print end_show: pop dx pop cx pop bx ret print_numx endp ;*************************************************************** ; displays the message (dx-address) puts proc near push ax mov ah, 09h int 21h pop ax ret puts endp ;******************************************************************* ; reads char from the keyboard into al ; (modifies ax!!!) read_char proc near mov ah, 01h int 21h ret read_char endp ;*************************************************************** ; gets the multi-digit signed number from the keyboard, ; result is stored in cx. backspace is not supported, for backspace ; enabled input function see c:\emu8086\inc\emu8086.inc scan_num proc near push dx push ax xor cx, cx ; reset flag: mov make_minus, 0 next_digit: call read_char ; check for minus: cmp al, '-' je set_minus ; check for enter key: cmp al, cr je stop_input ; multiply cx by 10 (first time the result is zero) push ax mov ax, cx mul ten ; dx:ax = ax*10 mov cx, ax pop ax ; check if the number is too big ; (result should be 16 bits) cmp dx, 0 jne out_of_range ; convert from ascii code: sub al, 30h ; add al to cx: xor ah, ah add cx, ax jc out_of_range ; jump if the number is too big. jmp next_digit set_minus: mov make_minus, 1 jmp next_digit out_of_range: lea dx, error call puts stop_input: ; check flag: cmp make_minus, 0 je not_minus neg cx not_minus: pop ax pop dx ret scan_num endp ;*************************************************************** ; prints out single char (ascii code should be in dl) write_char proc near push ax mov ah, 02h int 21h pop ax ret write_char endp ;*************************************************************** cseg ends end start
25.479303
81
0.420778
915db2c21d3192454510466823c82ca387f26b37
203
asm
Assembly
data/pokemon/dex_entries/dragonair.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
data/pokemon/dex_entries/dragonair.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
data/pokemon/dex_entries/dragonair.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
db "DRAGON@" ; species name dw 1301, 360 ; height, weight db "It is called the" next "divine #MON." next "When its entire" page "body brightens" next "slightly, the" next "weather changes.@"
18.454545
30
0.665025
164e0023a5775d348f26dab4ca42f7a1f89a9875
1,678
asm
Assembly
programs/CCREQ.asm
cid0rz/CTCS-Cidorz-Train-Concurrent-System
20a8400d8db460bd854218873992596fa955bc04
[ "MIT" ]
null
null
null
programs/CCREQ.asm
cid0rz/CTCS-Cidorz-Train-Concurrent-System
20a8400d8db460bd854218873992596fa955bc04
[ "MIT" ]
null
null
null
programs/CCREQ.asm
cid0rz/CTCS-Cidorz-Train-Concurrent-System
20a8400d8db460bd854218873992596fa955bc04
[ "MIT" ]
null
null
null
##CCREQ hlt :start clr :check_inventory fig r6 [item=wood] bge r6 1000 :make_req slp 3600 jmp :check_inventory :make_req :load_dict btr [virtual-signal=signal-grey] ;wait for polling signal slp 4 xmov mem1 red nop xmov mem2 red :select_channel blt cnm2 3 :start ; to prevent infinite looping rnd r7 1 cnm2 floor r7 mov r1 mem2@7 :bid_for_channel btr [virtual-signal=signal-pink] mov out1 r1 xmov mem3 red; clr out fid r2 mem3 r1 beq r2 1 :got xceq mem3 mem3 1 xmul mem3 -1 xuni mem2 mem2 mem3 jmp :select_channel :got btr [virtual-signal=signal-yellow] :encode_req ;convert the request to a number idx r3 mem1 r6 ;dictionary pos of the goods fig r4 [virtual-signal=signal-L] ;number of locomotives fig r5 [virtual-signal=signal-W] ;number of wagons ##will be a concatenation of the data ;we need to split into two "pulses" each with 9 usable digits ssv r1 1000000000 ;1 for the first pulse mul r5 1000000 ;3 digits for wagons (per train) add r1 r5 mul r4 1000 ;3 digits for locomotives (per train) add r1 r4 add r1 r3 ; 3 digits for material ID mov out1 r1 mov out1 0 ;second pulse ssv r8 2000000000 ;2 for the second pulse sst r8 r1 ;there are 3 unused digits fig r3 [virtual-signal=signal-station-number] ;retrieve station number mul r3 1000 add r8 r3 ;3 digits for req ID div r6 1000 ;3 digits for thousands of goods requested add r8 r6 btr [virtual-signal=signal-yellow] mov out1 r8 mov out1 0 mov r7 0 btr [virtual-signal=signal-green] ;trigger for replies nop fir r7 r2 beq r7 0 :start ;no one replied mov out1 r1 mov out1 0 :wait_for_trains mov out1 1[virtual-signal=signal-white] mov out1 r7 mov out1 0 jmp 1
21.792208
80
0.743147
7197255d01cc36e58db53b99c98210e7689d3ff4
5,976
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_21829_1558.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_21829_1558.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_21829_1558.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r8 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0x2fcd, %rbp nop nop nop nop cmp $28692, %rsi mov $0x6162636465666768, %r12 movq %r12, %xmm1 vmovups %ymm1, (%rbp) nop nop nop nop sub %rax, %rax lea addresses_WC_ht+0xf8d, %rsi lea addresses_D_ht+0x1ae4d, %rdi xor $20976, %r8 mov $115, %rcx rep movsq nop nop nop and $24062, %rax lea addresses_A_ht+0x1654d, %rax nop nop nop nop sub %r12, %r12 mov $0x6162636465666768, %rsi movq %rsi, (%rax) nop nop nop nop nop add $62841, %rbp lea addresses_D_ht+0x1206d, %rdi nop sub %r12, %r12 movb $0x61, (%rdi) nop nop nop nop nop xor %rsi, %rsi lea addresses_normal_ht+0xe6d, %rcx nop nop nop sub $26638, %r8 movl $0x61626364, (%rcx) nop nop nop nop nop xor %rcx, %rcx lea addresses_normal_ht+0x10aad, %rsi nop nop nop xor $23678, %r12 movb (%rsi), %al add $45637, %r8 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r8 pop %r12 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r14 push %r15 push %rcx push %rdi push %rsi // Store lea addresses_A+0x4d8e, %r13 clflush (%r13) and $36973, %r12 mov $0x5152535455565758, %rcx movq %rcx, %xmm2 vmovups %ymm2, (%r13) nop nop mfence // REPMOV lea addresses_WC+0x1ca2d, %rsi lea addresses_D+0x9d41, %rdi xor $30781, %r14 mov $98, %rcx rep movsb sub %rcx, %rcx // Faulty Load lea addresses_US+0xaa6d, %r14 nop nop nop nop nop dec %r15 movups (%r14), %xmm0 vpextrq $0, %xmm0, %r13 lea oracles, %rsi and $0xff, %r13 shlq $12, %r13 mov (%rsi,%r13,1), %r13 pop %rsi pop %rdi pop %rcx pop %r15 pop %r14 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'} {'src': {'congruent': 6, 'same': True, 'type': 'addresses_WC'}, 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_D'}, 'OP': 'REPM'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_US'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 4, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'} {'src': {'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'dst': {'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 5, 'same': True, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 9, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 10, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'src': {'NT': True, 'AVXalign': True, 'size': 1, 'congruent': 4, 'same': True, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'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 */
38.554839
2,999
0.658969
e2c62c8026dadd7e99d22fa86542ec7fe7676a87
622
asm
Assembly
oeis/141/A141495.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/141/A141495.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/141/A141495.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A141495: a(n) = 3*a(n-1) for n>2; a(0)=1, a(1)=3, a(2)=7. ; 1,3,7,21,63,189,567,1701,5103,15309,45927,137781,413343,1240029,3720087,11160261,33480783,100442349,301327047,903981141,2711943423,8135830269,24407490807,73222472421,219667417263,659002251789,1977006755367,5931020266101,17793060798303,53379182394909,160137547184727,480412641554181,1441237924662543,4323713773987629,12971141321962887,38913423965888661,116740271897665983,350220815692997949,1050662447078993847,3151987341236981541,9455962023710944623,28367886071132833869,85103658213398501607 mov $1,3 pow $1,$0 mul $1,14 div $1,36 mul $1,2 add $1,1 mov $0,$1
56.545455
493
0.824759
758d66a6fe4a6a3294337f8b4c3072b2ed9d0977
568
asm
Assembly
ubb/asc/template.asm
AlexanderChristian/private_courses
c80f3526af539e35f93b460f3909f669aaef573c
[ "MIT" ]
null
null
null
ubb/asc/template.asm
AlexanderChristian/private_courses
c80f3526af539e35f93b460f3909f669aaef573c
[ "MIT" ]
6
2020-03-04T20:52:39.000Z
2022-03-31T00:33:07.000Z
ubb/asc/template.asm
AlexanderChristian/private_courses
c80f3526af539e35f93b460f3909f669aaef573c
[ "MIT" ]
null
null
null
ASSUME cs: code, ds:data ;spunem asamblorului care sunt segmentele folosite de noi data SEGMENT a dw 1 b dw 10 c dw ? ;data - segmentul de date in care vom defini variabilele data ENDS code SEGMENT ;code - numele segmentului de cod start: mov ax,data ;adresa segmentului de date se copiaza in ax mov ds,ax ;continutul lui ax se copiaza in ds ; ....... ;aici avem instructiunile programului nostru mov ax,a mov bx,b sub ax,bx mov c,ax ;........ mov ax,4C00h int 21h ;finalul executiei programului code ENDS END start
22.72
63
0.683099
ce5c96231fd4aebf089a11cb69aa9f3fff083705
1,247
asm
Assembly
_incObj/sub FindFreeObj.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
9
2021-01-15T13:47:53.000Z
2022-01-17T15:33:55.000Z
_incObj/sub FindFreeObj.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
7
2021-01-14T02:18:48.000Z
2021-03-24T15:44:30.000Z
_incObj/sub FindFreeObj.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
2
2021-01-14T13:14:26.000Z
2021-01-29T17:46:04.000Z
; --------------------------------------------------------------------------- ; Subroutine to find a free object space ; output: ; a1 = free position in object RAM ; --------------------------------------------------------------------------- ; ||||||||||||||| S U B R O U T I N E ||||||||||||||||||||||||||||||||||||||| FindFreeObj: lea (v_objspace+$800).w,a1 ; start address for object RAM move.w #$5F,d0 FFree_Loop: tst.b (a1) ; is object RAM slot empty? beq.s FFree_Found ; if yes, branch lea $40(a1),a1 ; goto next object RAM slot dbf d0,FFree_Loop ; repeat $5F times FFree_Found: rts ; End of function FindFreeObj ; --------------------------------------------------------------------------- ; Subroutine to find a free object space AFTER the current one ; output: ; a1 = free position in object RAM ; --------------------------------------------------------------------------- ; ||||||||||||||| S U B R O U T I N E ||||||||||||||||||||||||||||||||||||||| FindNextFreeObj: movea.l a0,a1 move.w #$F000,d0 sub.w a0,d0 lsr.w #6,d0 subq.w #1,d0 bcs.s NFree_Found NFree_Loop: tst.b (a1) beq.s NFree_Found lea $40(a1),a1 dbf d0,NFree_Loop NFree_Found: rts ; End of function FindNextFreeObj
23.092593
77
0.44587
942d217f7224d47e47de6be67c567f7c0b131424
3,538
asm
Assembly
3rdparty/dyncall/dyncallback/dyncall_callback_x86_masm.asm
KrisShannon/nqp
2e578b5d4a122e0c75db9d74e8669132be4990d1
[ "Artistic-2.0" ]
1
2021-04-03T14:58:45.000Z
2021-04-03T14:58:45.000Z
3rdparty/dyncall/dyncallback/dyncall_callback_x86_masm.asm
KrisShannon/nqp
2e578b5d4a122e0c75db9d74e8669132be4990d1
[ "Artistic-2.0" ]
null
null
null
3rdparty/dyncall/dyncallback/dyncall_callback_x86_masm.asm
KrisShannon/nqp
2e578b5d4a122e0c75db9d74e8669132be4990d1
[ "Artistic-2.0" ]
null
null
null
;////////////////////////////////////////////////////////////////////////////// ; ; Copyright (c) 2007-2009 Daniel Adler <dadler@uni-goettingen.de>, ; Tassilo Philipp <tphilipp@potion-studios.com> ; ; Permission to use, copy, modify, and distribute this software for any ; purpose with or without fee is hereby granted, provided that the above ; copyright notice and this permission notice appear in all copies. ; ; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES ; WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF ; MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ; ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ; ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF ; OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ; ;////////////////////////////////////////////////////////////////////////////// ;/////////////////////////////////////////////////////////////////////// ; ; Package: dyncall ; Library: dyncallback ; File: dyncallback/dyncall_callback_x86_msvc.asm ; Description: Callback Thunk - MASM implementation for x86 ; ;/////////////////////////////////////////////////////////////////////// .386 .MODEL FLAT .CODE DCThunk_size = 16 DCArgs_size = 20 DCValue_size = 8 CTX_thunk = 0 CTX_phandler = 16 CTX_pargsvt = 20 CTX_stack_cleanup = 24 CTX_userdata = 28 frame_arg0 = 8 frame_ret = 4 frame_parent = 0 frame_CTX = -4 frame_DCArgs = -24 frame_DCValue = -32 _dcCallbackThunkEntry PROC OPTION PROLOGUE:NONE, EPILOGUE:NONE push ebp mov ebp, esp ; local variable frame_CTX push eax ; EAX = CTX* ; initialize DCArgs push 0 ; fast_count push edx ; fast_data[1] push ecx ; fast_data[0] lea ecx, [ebp+frame_arg0] ; compute arg stack address push ecx ; stack_ptr push [eax+CTX_pargsvt] ; virtual table* mov ecx, esp ; ECX = DCArgs* ; initialze DCValue push 0 push 0 mov edx, esp ; EDX = DCValue* ; call handler (context push [eax+CTX_userdata] ; userdata push edx ; DCValue* push ecx ; DCArgs* push eax ; DCCallback* call dword ptr[eax+CTX_phandler] ; cleanup stack mov esp, ebp ; reset esp to frame pop ecx ; skip parent frame pop ecx ; load return address mov edx, [ebp+frame_CTX] add esp, [edx+CTX_stack_cleanup] ; cleanup stack push ecx ; push back return address lea edx, [ebp+frame_DCValue] mov ebp, [ebp] ; EBP = parent frame ; handle return value cmp al, 'v' je return_void cmp al, 'd' je return_f64 cmp al, 'f' je return_f32 cmp al, 'l' je return_i64 cmp al, 'L' je return_i64 ; All int cases <= 32 bits (+ pointer & string cases) fall in the 32 bits int case return_i32: mov eax, [edx] ret return_i64: mov eax, [edx] mov edx, [edx+4] ret return_f32: fld dword ptr [edx] ret return_f64: fld qword ptr [edx] ret return_void: ret _dcCallbackThunkEntry ENDP END
26.80303
84
0.547484
a58b5abdbc422fa208c41e886d36e6eff9eb4856
393
asm
Assembly
oeis/037/A037653.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/037/A037653.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/037/A037653.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A037653: Base 4 digits are, in order, the first n terms of the periodic sequence with initial period 3,0,2. ; Submitted by Jamie Morken(s1) ; 3,12,50,203,812,3250,13003,52012,208050,832203,3328812,13315250,53261003,213044012,852176050,3408704203,13634816812,54539267250,218157069003,872628276012,3490513104050,13962052416203,55848209664812 mov $1,4 pow $1,$0 mul $1,200 div $1,63 mov $0,$1
39.3
199
0.788804
e2f4bdc7394377ea3ceff6607a764717c982dfca
243
asm
Assembly
tests/z80n/op_cspect_emulator.asm
cizo2000/sjasmplus
615d7c0e09a44aa2a923095fc9ed6dca6ecae4a4
[ "BSD-3-Clause" ]
220
2016-10-22T19:44:39.000Z
2022-03-29T20:57:04.000Z
tests/z80n/op_cspect_emulator.asm
ped7g/sjasmplus
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
[ "BSD-3-Clause" ]
153
2018-05-07T10:31:23.000Z
2022-03-30T04:35:59.000Z
tests/z80n/op_cspect_emulator.asm
ped7g/sjasmplus
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
[ "BSD-3-Clause" ]
51
2016-05-12T21:27:36.000Z
2022-03-27T15:16:16.000Z
OUTPUT "op_cspect_emulator.bin" ;;; CSpect emulator extensions, instructions EXIT and BREAK ;;; available only with option `--zxnext=cspect` exit ; #DD00 break ; #DD01
30.375
63
0.522634
cca3349f0e0ac9f0b72eb686418b5a1b1ed93d07
175
asm
Assembly
data/pokemon/dex_entries/castform.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
data/pokemon/dex_entries/castform.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
data/pokemon/dex_entries/castform.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
db "WEATHER@" ; species name db "This #MON can" next "change its cells," next "taking different" page "forms based on" next "the temperature" next "and humidity.@"
17.5
29
0.674286
484a09d07d5cf86e7be41c07335d323ff42540ef
1,184
asm
Assembly
3rdparty/dyncall/dyncallback/dyncall_callback_arch_x86_masm.asm
KrisShannon/nqp
2e578b5d4a122e0c75db9d74e8669132be4990d1
[ "Artistic-2.0" ]
1
2021-04-03T14:58:45.000Z
2021-04-03T14:58:45.000Z
3rdparty/dyncall/dyncallback/dyncall_callback_arch_x86_masm.asm
KrisShannon/nqp
2e578b5d4a122e0c75db9d74e8669132be4990d1
[ "Artistic-2.0" ]
null
null
null
3rdparty/dyncall/dyncallback/dyncall_callback_arch_x86_masm.asm
KrisShannon/nqp
2e578b5d4a122e0c75db9d74e8669132be4990d1
[ "Artistic-2.0" ]
null
null
null
.386 .MODEL FLAT .CODE DCThunk_size = 16 DCArgs_size = 20 DCValue_size = 8 CTX_thunk = 0 CTX_phandler = 16 CTX_pargsvt = 20 CTX_stack_cleanup = 24 CTX_userdata = 28 frame_arg0 = 8 frame_ret = 4 frame_parent = 0 frame_CTX = -4 frame_DCArgs = -24 frame_DCValue = -32 _dcCallbackThunkEntry PROC OPTION PROLOGUE:NONE, EPILOGUE:NONE push EBP mov EBP,ESP push EAX push 0 push EDX push ECX lea ECX,dword ptr [EBP+frame_arg0] push ECX push dword ptr [EAX+CTX_pargsvt] mov ECX,ESP push 0 push 0 mov EDX,ESP and ESP,-16 push dword ptr [EAX+CTX_userdata] push EDX push ECX push EAX call dword ptr [EAX+CTX_phandler] mov ESP,EBP pop ECX pop ECX mov EDX,dword ptr [EBP+frame_CTX] add ESP,dword ptr [EDX+CTX_stack_cleanup] push ECX lea EDX,dword ptr [EBP+frame_DCValue] mov EBP,dword ptr [EBP+0] cmp AL,118 je return_void cmp AL,100 je return_f64 cmp AL,102 je return_f32 cmp AL,108 je return_i64 cmp AL,76 je return_i64 return_i32: mov EAX,dword ptr [EDX+0] ret return_i64: mov EAX,dword ptr [EDX+0] mov EDX,dword ptr [EDX+4] ret return_f32: fld dword ptr [EDX+0] ret return_f64: fld qword ptr [EDX+0] return_void: ret _dcCallbackThunkEntry ENDP END
16
42
0.741554
c1245b692d9fdfe17e4f091c46f945a775562bed
440
asm
Assembly
programs/oeis/315/A315309.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/315/A315309.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/315/A315309.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A315309: Coordination sequence Gal.4.133.4 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,6,10,16,20,26,30,36,42,46,52,56,62,66,72,78,82,88,92,98,102,108,114,118,124,128,134,138,144,150,154,160,164,170,174,180,186,190,196,200,206,210,216,222,226,232,236,242,246,252 mul $0,4 seq $0,60464 ; Numbers that are not congruent to 4 or 5 mod 9. max $0,1
62.857143
179
0.734091
4b0a5067cf5f2de52185df328521f00e67c36c74
1,943
asm
Assembly
c_projects/project1/ch1-ch3/boot_sector_10.asm
darbinreyes/subparprogrammer
e3588adc494a69a564fe0a9859ff296fc710eab0
[ "MIT" ]
null
null
null
c_projects/project1/ch1-ch3/boot_sector_10.asm
darbinreyes/subparprogrammer
e3588adc494a69a564fe0a9859ff296fc710eab0
[ "MIT" ]
1
2021-05-11T22:20:01.000Z
2021-05-11T22:20:01.000Z
c_projects/project1/ch1-ch3/boot_sector_10.asm
darbinreyes/subparprogrammer
e3588adc494a69a564fe0a9859ff296fc710eab0
[ "MIT" ]
null
null
null
; Section 3.6.4 Putting it all Together. ; Read some sectors from the boot disk using our disk_read function. [org 0x7c00] ; For convenience, tell the assembler where BIOS will load us into ; memory, otherwise we have to explicitly use 0x7c00 as a base address for every ; memory access we make. mov [BOOT_DRIVE], dl ; By convention the BIOS stores the boot disk device number ; in DL. Save that value in memory. (Notice that we are storing a single byte ; here in a single instruction, even though we are in 16 bit real mode.) mov bp, 0x8000 ; Initialize our stack base pointer to a safe location. The ; disk_load function uses the stack a little bit, so does ; print_string and print_hex. mov sp, bp ; Stack is always initially empty. mov bx, 0x9000 ; By convention, the BIOS int 0x13 routine uses [ES:BX] as the ; destination address in memory for the disk read. ES is 0 by default, so we ; don't need to set it explicitly. mov dh, 2 ; Argument to disk_load function = number of sectors to read. mov dl, [BOOT_DRIVE] ; Argument to disk_load function = disk drive number. call disk_load ; Our function: Read from a disk into memory! This function will ; print a message and hang if an error occurs. ; Test if memory contains what we expect, viz. 0xdada and 0xface. mov dx, [0x9000] ; print_hex function expects its argument to be in DX. call print_hex mov dx, [0x9000 + 512] call print_hex jmp $ ; Infinite loop. ; Include helper functions. %include "print_string.asm" %include "print_hex.asm" %include "disk_load.asm" ; Global variables BOOT_DRIVE: db 0 ; Stores the boot disk device number that the BIOS gave us in ; DL. ; 0 padding and BIOS magic number. times 510-($-$$) db 0 dw 0xaa55 ; Add a 2 additional sectors in addition to our boot sector above so we can use ; them to verify that our disk read worked as expected. times 256 dw 0xdada times 256 dw 0xface
36.660377
80
0.728255
0c9ef7c42706949b2e60984a13f7de8bc2ad570e
1,052
asm
Assembly
kernel_old/arch/i386/asm/boot.asm
TheKernelCorp/NuummiteOS
a3e9498e6758c929c57f906d1de0bb23029454d8
[ "MIT" ]
72
2016-12-28T17:09:27.000Z
2021-09-24T07:20:00.000Z
kernel_old/arch/i386/asm/boot.asm
TheKernelCorp/NuummiteOS
a3e9498e6758c929c57f906d1de0bb23029454d8
[ "MIT" ]
30
2017-01-01T14:37:09.000Z
2018-11-03T10:07:07.000Z
kernel_old/arch/i386/asm/boot.asm
TheKernelCorp/NuummiteOS
a3e9498e6758c929c57f906d1de0bb23029454d8
[ "MIT" ]
10
2017-01-05T09:04:18.000Z
2021-06-25T16:54:47.000Z
; Multiboot constants MBALIGN equ 1<<0 MEMINFO equ 1<<1 VIDINFO equ 1<<2 FLAGS equ MBALIGN | MEMINFO | VIDINFO MAGIC equ 0x1BADB002 CHECKSUM equ -(MAGIC + FLAGS) ; Multiboot header section .multiboot align 4 dd MAGIC dd FLAGS dd CHECKSUM dd 0x00000000 dd 0x00000000 dd 0x00000000 dd 0x00000000 dd 0x00000000 dd 0x00000000 dd 0 dd 0 dd 32 section .text global _start bits 32 ; ; This is where GRUB takes us. ; _start: cli mov esp, stack.top push ebx ; ; Jumps into the Crystal kernel. ; enter_kernel: extern END_OF_KERNEL push dword END_OF_KERNEL extern kearly call kearly extern kmain call kmain .hang: cli hlt jmp $ ; ; Nuummite export: ; Flush GDT ; global glue_flush_gdt glue_flush_gdt: jmp 0x08:.flush .flush: ret ; ; Nuummite export: ; Setup IDT ; global glue_setup_idt glue_setup_idt: extern idt_setup call idt_setup ret section .bss align 4096 ; ; Kernel stack. ; stack: .bottom: resb 16384 ; 16 KiB .top:
12.987654
41
0.665399
c634c1355a502184537b78927af9b1db9fae8442
415
asm
Assembly
programs/oeis/097/A097165.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/097/A097165.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/097/A097165.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A097165: Expansion of (1-3x)/((1-x)(1-4x)(1-5x)). ; 1,7,41,227,1221,6447,33601,173467,889181,4533287,23015961,116477907,587981941,2962279327,14900875121,74862289547,375743103501,1884442140567,9445117195081,47317211944387,236952563597861 add $0,1 mov $1,1 lpb $0,1 sub $0,1 add $1,1 mul $1,5 sub $1,3 mov $2,8 trn $3,5 mul $3,4 add $3,8 lpe add $1,$2 sub $1,$3 sub $1,4 div $1,6 mul $1,2 add $1,1
18.863636
186
0.677108
1f550df2f3dd3767dac71808e88cd5be03cf2ac9
5,705
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca.log_21829_1017.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca.log_21829_1017.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca.log_21829_1017.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %r8 push %rcx push %rdi push %rsi lea addresses_UC_ht+0x1278e, %r10 nop nop inc %r12 mov $0x6162636465666768, %r8 movq %r8, (%r10) nop nop nop nop nop add %r12, %r12 lea addresses_D_ht+0x1b12e, %rsi lea addresses_normal_ht+0x9f8e, %rdi nop nop nop nop sub $30850, %r14 mov $89, %rcx rep movsw nop nop nop nop and $8301, %r10 lea addresses_UC_ht+0x1108a, %r8 nop nop nop inc %rdi mov $0x6162636465666768, %r12 movq %r12, %xmm7 vmovups %ymm7, (%r8) nop nop nop nop add %r8, %r8 lea addresses_WT_ht+0x1e18e, %r14 nop nop nop add $22150, %r8 mov $0x6162636465666768, %rsi movq %rsi, %xmm1 movups %xmm1, (%r14) xor $17278, %r14 pop %rsi pop %rdi pop %rcx pop %r8 pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r8 push %rbp push %rcx push %rdi push %rdx // Load lea addresses_WC+0x67dc, %r8 nop nop nop nop xor %rdx, %rdx mov (%r8), %r11d nop nop nop nop nop sub $16664, %r13 // Load lea addresses_A+0x1178e, %r13 clflush (%r13) nop and $18293, %rbp movaps (%r13), %xmm1 vpextrq $1, %xmm1, %rdx nop nop nop nop xor $43788, %r13 // Store mov $0x98e, %rdx nop nop nop sub $41615, %rdi movb $0x51, (%rdx) nop and $37011, %r13 // Faulty Load lea addresses_RW+0x158e, %rbp nop nop nop nop nop sub %r11, %r11 movb (%rbp), %cl lea oracles, %rdi and $0xff, %rcx shlq $12, %rcx mov (%rdi,%rcx,1), %rcx pop %rdx pop %rdi pop %rcx pop %rbp pop %r8 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 32, 'NT': True, 'type': 'addresses_RW', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': True, 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': False, 'congruent': 10}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_RW', 'same': True, 'AVXalign': True, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 5}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 1}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
37.045455
2,999
0.657143
39fbe2c4f58ff9b71c1b2487e46efd5f0f1d25a7
4,166
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2_notsx.log_5363_1119.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2_notsx.log_5363_1119.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2_notsx.log_5363_1119.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r13 push %r15 push %rbp push %rbx push %rcx push %rdi push %rdx // Store lea addresses_WC+0x601b, %rcx nop nop nop nop nop cmp $3029, %rdx movb $0x51, (%rcx) nop nop inc %rcx // Store lea addresses_D+0x17cf, %rcx sub %r13, %r13 movw $0x5152, (%rcx) nop xor $48862, %rcx // Faulty Load lea addresses_D+0x17cf, %rdi nop nop nop nop and $62165, %rcx mov (%rdi), %edx lea oracles, %rbx and $0xff, %rdx shlq $12, %rdx mov (%rbx,%rdx,1), %rdx pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r15 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'52': 5363} 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 */
61.264706
2,999
0.658425