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
259afb6bbd180b45fed6c168c37c2d580ce2ae92
558
asm
Assembly
oeis/017/A017034.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/017/A017034.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/017/A017034.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A017034: a(n) = (7*n + 4)^6. ; 4096,1771561,34012224,244140625,1073741824,3518743761,9474296896,22164361129,46656000000,90458382169,164206490176,282429536481,464404086784,735091890625,1126162419264,1677100110841,2436396322816,3462825991689,4826809000000,6611856250609,8916100448256,11853911588401,15557597153344,20179187015625,25892303048704,32894113444921,41407371740736,51682540549249,64000000000000,78672340886049,96046742518336,116507435287321,140478247931904,168425239515625,200859416110144,238339532186001,281474976710656 mul $0,7 add $0,4 pow $0,6
79.714286
498
0.874552
247ad2d275b75c27697731b7925f3aaa3ecbcb05
6,858
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_671.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_671.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_671.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 %r13 push %r14 push %r15 push %r8 push %rcx push %rdi push %rsi lea addresses_D_ht+0x89d9, %rsi lea addresses_D_ht+0xe3d9, %rdi clflush (%rsi) and %r14, %r14 mov $28, %rcx rep movsq nop nop nop nop sub %r14, %r14 lea addresses_A_ht+0x15061, %r15 nop nop nop nop nop lfence movb (%r15), %r12b nop nop nop nop cmp %r12, %r12 lea addresses_WC_ht+0xf6d9, %r13 nop nop nop nop inc %r12 mov (%r13), %r15w nop nop add $35029, %rsi lea addresses_UC_ht+0xf1d9, %r12 clflush (%r12) nop xor $15896, %rdi mov $0x6162636465666768, %rcx movq %rcx, (%r12) nop nop nop nop nop and $18573, %rdi lea addresses_D_ht+0x1cb59, %r14 clflush (%r14) nop nop nop nop nop add $25647, %rcx mov $0x6162636465666768, %r13 movq %r13, %xmm1 vmovups %ymm1, (%r14) nop nop cmp $39064, %r13 lea addresses_D_ht+0x178c9, %rsi lea addresses_WT_ht+0x99d9, %rdi nop nop nop nop dec %r12 mov $80, %rcx rep movsq nop nop nop cmp $23040, %r14 lea addresses_D_ht+0x1e945, %r15 nop nop nop nop xor %r13, %r13 movw $0x6162, (%r15) nop nop and $27003, %r12 lea addresses_UC_ht+0x31d9, %rsi lea addresses_WT_ht+0x1334f, %rdi nop nop nop nop xor %r8, %r8 mov $19, %rcx rep movsl nop nop nop nop nop dec %r15 lea addresses_UC_ht+0x19757, %rcx nop nop nop inc %r15 movups (%rcx), %xmm6 vpextrq $1, %xmm6, %r14 and $5884, %r13 lea addresses_D_ht+0x4209, %rsi lea addresses_UC_ht+0x15dd9, %rdi clflush (%rsi) inc %r12 mov $17, %rcx rep movsb nop nop nop and %r15, %r15 lea addresses_WT_ht+0x54d9, %rsi lea addresses_A_ht+0x12dd9, %rdi nop nop dec %r8 mov $106, %rcx rep movsq nop add $57774, %rcx pop %rsi pop %rdi pop %rcx pop %r8 pop %r15 pop %r14 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r8 push %rdi push %rdx // Faulty Load lea addresses_WT+0x81d9, %r10 clflush (%r10) nop nop and %rdx, %rdx vmovups (%r10), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %r8 lea oracles, %r10 and $0xff, %r8 shlq $12, %r8 mov (%r10,%r8,1), %r8 pop %rdx pop %rdi pop %r8 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WT', 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_D_ht'}} {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_A_ht', 'congruent': 3}} {'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 2, 'type': 'addresses_WC_ht', 'congruent': 8}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_UC_ht', 'congruent': 11}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_D_ht', 'congruent': 6}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 9, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}} {'dst': {'same': True, 'NT': True, 'AVXalign': True, 'size': 2, 'type': 'addresses_D_ht', 'congruent': 2}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 0, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_UC_ht'}} {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_UC_ht', 'congruent': 1}} {'dst': {'same': False, 'congruent': 9, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}} {'dst': {'same': False, 'congruent': 10, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_WT_ht'}} {'39': 21829} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
35.169231
2,999
0.659813
603647bad7ef6d228a61582694023b4b0fcb7de1
486
asm
Assembly
oeis/172/A172060.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/172/A172060.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/172/A172060.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A172060: The number of returns to the origin in all possible one-dimensional walks of length 2n. ; Submitted by Christian Krause ; 0,2,14,76,374,1748,7916,35096,153254,661636,2831300,12030632,50826684,213707336,894945944,3734901296,15540685574,64496348516,267060529364,1103587381256,4552196053844,18747042089816,77092267322984,316602500019536,1298657603761244 mov $2,1 lpb $0 mul $2,2 mov $3,$0 sub $0,1 add $3,$0 bin $3,$0 mul $3,$2 add $1,$3 mul $2,2 lpe mov $0,$1
28.588235
230
0.751029
849324cc2be0c648b7e7b2f1a02259852e768811
973
asm
Assembly
programs/oeis/235/A235497.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/235/A235497.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/235/A235497.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A235497: 2n concatenated with n. ; 21,42,63,84,105,126,147,168,189,2010,2211,2412,2613,2814,3015,3216,3417,3618,3819,4020,4221,4422,4623,4824,5025,5226,5427,5628,5829,6030,6231,6432,6633,6834,7035,7236,7437,7638,7839,8040,8241,8442,8643,8844,9045,9246,9447,9648,9849,10050,10251,10452,10653,10854,11055,11256,11457,11658,11859,12060,12261,12462,12663,12864,13065,13266,13467,13668,13869,14070,14271,14472,14673,14874,15075,15276,15477,15678,15879,16080,16281,16482,16683,16884,17085,17286,17487,17688,17889,18090,18291,18492,18693,18894,19095,19296,19497,19698,19899,200100 mov $2,$0 add $2,1 mov $4,$0 lpb $2 mov $0,$4 sub $2,1 sub $0,$2 mov $6,2 mov $8,$0 lpb $6 mov $0,$8 sub $6,1 add $0,$6 mov $3,$0 lpb $0 div $0,10 mul $3,10 lpe mov $5,$6 lpb $5 sub $5,1 mov $7,$3 lpe lpe lpb $8 sub $7,$3 mov $8,0 lpe mov $3,$7 div $3,90 mul $3,180 add $3,21 add $1,$3 lpe mov $0,$1
24.948718
540
0.64851
e473864d16ece7e01a09c503e8369519a037758c
1,095
asm
Assembly
programs/oeis/068/A068962.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/068/A068962.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/068/A068962.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A068962: Number of successive terms of A028356 that add to n; or length of n-th term of A028355. ; 1,1,1,1,2,3,2,4,3,4,5,5,5,5,6,7,7,7,7,8,9,8,10,9,10,11,11,11,11,12,13,13,13,13,14,15,14,16,15,16,17,17,17,17,18,19,19,19,19,20,21,20,22,21,22,23,23,23,23,24,25,25,25,25,26,27,26,28,27,28,29,29,29,29,30,31,31,31,31,32,33,32,34,33,34,35,35,35,35,36,37,37,37,37,38,39,38,40,39,40,41,41,41,41,42,43,43,43,43,44,45,44,46,45,46,47,47,47,47,48,49,49,49,49,50,51,50,52,51,52,53,53,53,53,54,55,55,55,55,56,57,56,58,57,58,59,59,59,59,60,61,61,61,61,62,63,62,64,63,64,65,65,65,65,66,67,67,67,67,68,69,68,70,69,70,71,71,71,71,72,73,73,73,73,74,75,74,76,75,76,77,77,77,77,78,79,79,79,79,80,81,80,82,81,82,83,83,83,83,84,85,85,85,85,86,87,86,88,87,88,89,89,89,89,90,91,91,91,91,92,93,92,94,93,94,95,95,95,95,96,97,97,97,97,98,99,98,100,99,100 mov $3,2 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 add $0,$3 sub $0,1 cal $0,109340 ; Expansion of x^2*(1+x+4*x^2)/((1+x+x^2)*(1-x)^3). mov $2,$3 mov $4,$0 div $4,5 lpb $2 mov $1,$4 sub $2,1 lpe lpe lpb $5 sub $1,$4 mov $5,0 lpe add $1,1
43.8
730
0.621005
b89b6122b71764edd44536173daf83f83ed65a7f
5,575
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2.log_21829_403.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2.log_21829_403.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2.log_21829_403.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 %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x32ec, %rsi lea addresses_WT_ht+0x1774c, %rdi nop xor $24161, %rbp mov $84, %rcx rep movsl nop nop lfence lea addresses_WT_ht+0x11bb3, %r10 clflush (%r10) add %rcx, %rcx vmovups (%r10), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $1, %xmm7, %rdi and %rdx, %rdx lea addresses_normal_ht+0xcf4c, %rdx nop nop add %rdi, %rdi movb (%rdx), %cl nop inc %rdi lea addresses_normal_ht+0x11d4c, %rdx and %r14, %r14 movb $0x61, (%rdx) nop nop nop nop nop inc %r10 lea addresses_UC_ht+0x18e2c, %rdi mfence mov (%rdi), %rbp add $29860, %r14 lea addresses_WC_ht+0x1cccc, %rsi lea addresses_UC_ht+0x1066c, %rdi nop nop xor $49040, %r11 mov $9, %rcx rep movsl nop add %rdi, %rdi lea addresses_normal_ht+0x974c, %rdi nop cmp $13843, %rcx movb (%rdi), %r14b nop xor %rcx, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r14 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r8 push %r9 push %rdi push %rsi // Faulty Load lea addresses_PSE+0x774c, %r8 nop nop nop nop nop add %r10, %r10 movb (%r8), %r11b lea oracles, %rdi and $0xff, %r11 shlq $12, %r11 mov (%rdi,%r11,1), %r11 pop %rsi pop %rdi pop %r9 pop %r8 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 1, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
46.848739
2,999
0.659731
3a69e7a324a052c2e3dfcbe7fc6c828eef1de512
24,479
asm
Assembly
enduser/netmeeting/av/codecs/intel/h263/i386/d3mmc.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
enduser/netmeeting/av/codecs/intel/h263/i386/d3mmc.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
enduser/netmeeting/av/codecs/intel/h263/i386/d3mmc.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
;/* ************************************************************************* ;** INTEL Corporation Proprietary Information ;** ;** This listing is supplied under the terms of a license ;** agreement with INTEL Corporation and may not be copied ;** nor disclosed except in accordance with the terms of ;** that agreement. ;** ;** Copyright (c) 1996 Intel Corporation. ;** All Rights Reserved. ;** ;** ************************************************************************* ;*/ ;/* ************************************************************************* ;** $Header: S:\h26x\src\dec\d3mmc.asv 1.1 14 Mar 1996 14:34:54 AGUPTA2 $ ;** $Log: S:\h26x\src\dec\d3mmc.asv $ ;// ;// Rev 1.1 14 Mar 1996 14:34:54 AGUPTA2 ;// ;// Added alignment directives. ;// ;// Rev 1.0 14 Mar 1996 14:32:58 AGUPTA2 ;// Initial revision. ;** ************************************************************************* ;*/ .586 .model flat OPTION PROLOGUE:None OPTION EPILOGUE:None .xlist include iammx.inc .list MMXCODE1 SEGMENT PARA USE32 PUBLIC 'CODE' MMXCODE1 ENDS MMXDATA1 SEGMENT PARA USE32 PUBLIC 'DATA' MMXDATA1 ENDS MMXDATA1 SEGMENT ALIGN 8 C0101010101010101H DD 001010101H, 001010101H CfefefefefefefefeH DD 0fefefefeH, 0fefefefeH CfcfcfcfcfcfcfcfcH DD 0fcfcfcfcH, 0fcfcfcfcH C0303030303030303H DD 003030303H, 003030303H TWO DD 002020202H, 002020202H MMXDATA1 ENDS PITCH TEXTEQU <384> MMXCODE1 SEGMENT ; @MMX_Interpolate_Int_Half ; This routine computes interpolated pels shown by 'x' for a an 8x8 block ; of pels. 'x' is computed by the formula (A+B+1)/2. The input and output ; pitch is assumed to be 384 (PITCH). ; A . . . . . . . ; x x x x x x x x ; B . . . . . . . ; The basic instruction sequence is: ; movq V0, A ; movq V2, B ; movq V1, V0 ; por V1, V2 ; pand V1, 0x0101010101010101 ; pand V0, 0xfefefefefefefefe ; psrlq V0, 1 ; pand V2, 0xfefefefefefefefe ; psrlq V2, 1 ; paddb V0, V1 ; paddb V0, V2 ; movq dest, V0 ; The instruction sequence for line 0 is 12 instructions. The instruction ; sequence for line 1 should be 12 instructions but is not because some of ; the values needed for line 1 have already been computed for line 0. ; ; Registers used for lines 0-7 are: ; line 0: mm0, mm1, mm2 ; line 1: mm2, mm3, mm4 ; line 2: mm4, mm5, mm0 ; line 3: mm0, mm1, mm2 ; line 4: mm2, mm3, mm4 ; line 5: mm4, mm5, mm0 ; line 6: mm0, mm1, mm2 ; line 7: mm2, mm3, mm4 ; Constants 0x0101010101010101 and 0xfefefefefefefefe are in mm6 and mm7, ; respectively. ; Parameters: ; The source block parameter should be in ecx and the destination block ; parameter should be in edx; i.e. it uses fastcall calling convention. ; (I am not aware of a way to declare a MASM function of type __fastcall.) ; Performance: ; 41 cycles ignoring unaligned memory accesses ; 68 cycles if all loads are unaligned (41+9*3); stores should always be ; aligned. ALIGN 4 @MMX_Interpolate_Int_Half@8 PROC EXTRACTLOWBIT TEXTEQU <mm6> CLEARLOWBIT TEXTEQU <mm7> movq mm0, [ecx] ;0 ; movq mm2, [ecx+PITCH] ;0 movq mm1, mm0 ;0 movq mm6, C0101010101010101H ; movq mm3, mm2 ;1 movq mm7, CfefefefefefefefeH ; por mm1, mm2 ;0 pand mm0, CLEARLOWBIT ;0 pand mm2, CLEARLOWBIT ;0 psrlq mm0, 1 ;0 pand mm1, EXTRACTLOWBIT ;0 movq mm4, [ecx+2*PITCH] ;1 psrlq mm2, 1 ;0 paddb mm0, mm1 ;0 movq mm5, mm4 ;2 paddb mm0, mm2 ;0 por mm3, mm4 ;1 pand mm4, CLEARLOWBIT ;1 pand mm3, EXTRACTLOWBIT ;1 movq [edx+0*PITCH], mm0 ;0 psrlq mm4, 1 ;1 movq mm0, [ecx+3*PITCH] ;2 paddb mm2, mm3 ;1 movq mm1, mm0 ;3 paddb mm2, mm4 ;1 por mm5, mm0 ;2 pand mm0, CLEARLOWBIT ;2 movq [edx+1*PITCH], mm2 ;1 psrlq mm0, 1 ;2 paddb mm4, mm0 ;2 pand mm5, EXTRACTLOWBIT ;2 movq mm2, [ecx+4*PITCH] ;3 paddb mm4, mm5 ;2 por mm1, mm2 ;3 movq mm3, mm2 ;4 movq [edx+2*PITCH],mm4 ;2 pand mm2, CLEARLOWBIT ;3 psrlq mm2, 1 ;3 pand mm1, EXTRACTLOWBIT ;3 movq mm4, [ecx+5*PITCH] ;4 paddb mm0, mm1 ;3 movq mm5, mm4 ;5 paddb mm0, mm2 ;3 por mm3, mm4 ;4 pand mm4, CLEARLOWBIT ;4 movq [edx+3*PITCH],mm0 ;3 pand mm3, EXTRACTLOWBIT ;4 movq mm0, [ecx+6*PITCH] ;5 psrlq mm4, 1 ;4 movq mm1, mm0 ;6 paddb mm2, mm3 ;4 paddb mm2, mm4 ;4 por mm5, mm0 ;5 pand mm0, CLEARLOWBIT ;5 pand mm5, EXTRACTLOWBIT ;5 movq [edx+4*PITCH], mm2 ;4 psrlq mm0, 1 ;5 movq mm2, [ecx+7*PITCH] ;6 paddb mm4, mm5 ;5 movq mm3, mm2 ;7 paddb mm4, mm0 ;5 por mm1, mm2 ;6 pand mm2, CLEARLOWBIT ;6 movq [edx+5*PITCH], mm4 ;5 pand mm1, EXTRACTLOWBIT ;6 movq mm4, [ecx+8*PITCH] ;7 psrlq mm2, 1 ;6 por mm3, mm4 ;7 paddb mm0, mm1 ;6 paddb mm0, mm2 ;6 pand mm3, EXTRACTLOWBIT ;7 pand mm4, CLEARLOWBIT ;7 paddb mm3, mm2 ;7 movq [edx+6*PITCH], mm0 ;6 psrlq mm4, 1 ;7 paddb mm3, mm4 ;7 ; ; ; movq [edx+7*PITCH], mm3 ;7 ret EXTRACTLOWBIT TEXTEQU <> CLEARLOWBIT TEXTEQU <> @MMX_Interpolate_Int_Half@8 endp ; @MMX_Interpolate_Half_Int ; This routine computes interpolated pels shown by 'x' for a an 8x8 block ; of pels. 'x' is computed by the formula (A+B+1)/2. The input and output ; pitch is assumed to be 384 (PITCH). ; A X B X . X . X . X . X . X . X ; The basic instruction sequence is: ; movq V0, A ; movq V2, B ; movq V1, V0 ; por V1, V2 ; pand V1, 0x0101010101010101 ; pand V0, 0xfefefefefefefefe ; psrlq V0, 1 ; pand V2, 0xfefefefefefefefe ; psrlq V2, 1 ; paddb V0, V1 ; paddb V0, V2 ; movq dest, V0 ; The instruction sequence for all lines is 12 instructions. ; ; Registers used for lines 0-7 are: ; line 0: mm0, mm1, mm2 ; line 1: mm3, mm4, mm5 ; line 2: mm0, mm1, mm2 ; line 3: mm3, mm4, mm5 ; line 4: mm0, mm1, mm2 ; line 5: mm3, mm4, mm5 ; line 6: mm0, mm1, mm2 ; line 7: mm3, mm4, mm5 ; Constants 0x0101010101010101 and 0xfefefefefefefefe are in mm6 and mm7, ; respectively. ; Parameters: ; The source block parameter should be in ecx and the destination block ; parameter should be in edx; i.e. it uses fastcall calling convention. ; Performance: ; 51 cycles ignoring unaligned memory accesses ; 99 cycles if all loads are unaligned (51+8*6); stores should always be ; aligned. ALIGN 4 @MMX_Interpolate_Half_Int@8 proc EXTRACTLOWBIT TEXTEQU <mm6> CLEARLOWBIT TEXTEQU <mm7> movq mm0, [ecx] ;0 mm0,mm1=left pels ; ; mm2 =right pels movq mm2, [ecx+1] ;0 mm1 =interp pels movq mm1, mm0 ;0 movq mm7, CfefefefefefefefeH ; por mm1, mm2 ;0 movq mm6, C0101010101010101H ; pand mm0, CLEARLOWBIT ;0 pand mm2, CLEARLOWBIT ;0 psrlq mm0, 1 ;0 psrlq mm2, 1 ;0 pand mm1, EXTRACTLOWBIT ;0 movq mm3, [ecx+1*PITCH] ;1 mm3,mm4=left pels paddb mm1, mm0 ;0 mm5 =right pels movq mm5, [ecx+1*PITCH+1] ;1 mm4 =interp pels paddb mm1, mm2 ;0 movq mm4, mm3 ;1 pand mm3, CLEARLOWBIT ;1 movq [edx], mm1 ;0 por mm4, mm5 ;1 psrlq mm3, 1 ;1 pand mm5, CLEARLOWBIT ;1 psrlq mm5, 1 ;1 pand mm4, EXTRACTLOWBIT ;1 movq mm0, [ecx+2*PITCH] ;2 mm0,mm1=left pels paddb mm4, mm3 ;1 mm2 =right pels movq mm2, [ecx+2*PITCH+1] ;2 mm1 =interp pels paddb mm4, mm5 ;1 movq mm1, mm0 ;2 pand mm0, CLEARLOWBIT ;2 movq [edx+1*PITCH], mm4 ;1 por mm1, mm2 ;2 psrlq mm0, 1 ;2 pand mm2, CLEARLOWBIT ;2 psrlq mm2, 1 ;2 pand mm1, EXTRACTLOWBIT ;2 movq mm3, [ecx+3*PITCH] ;3 mm3,mm4=left pels paddb mm1, mm0 ;2 mm5 =right pels movq mm5, [ecx+3*PITCH+1] ;3 mm4 =interp pels paddb mm1, mm2 ;2 movq mm4, mm3 ;3 pand mm3, CLEARLOWBIT ;3 movq [edx+2*PITCH], mm1 ;2 por mm4, mm5 ;3 psrlq mm3, 1 ;3 pand mm5, CLEARLOWBIT ;3 psrlq mm5, 1 ;3 pand mm4, EXTRACTLOWBIT ;3 movq mm0, [ecx+4*PITCH] ;4 mm0,mm1=left pels paddb mm4, mm3 ;3 mm2 =right pels movq mm2, [ecx+4*PITCH+1] ;4 mm1 =interp pels paddb mm4, mm5 ;3 movq mm1, mm0 ;4 pand mm0, CLEARLOWBIT ;4 movq [edx+3*PITCH], mm4 ;3 por mm1, mm2 ;4 psrlq mm0, 1 ;4 pand mm2, CLEARLOWBIT ;4 psrlq mm2, 1 ;4 pand mm1, EXTRACTLOWBIT ;4 movq mm3, [ecx+5*PITCH] ;5 mm3,mm4=left pels paddb mm1, mm0 ;4 mm5 =right pels movq mm5, [ecx+5*PITCH+1] ;5 mm4 =interp pels paddb mm1, mm2 ;4 movq mm4, mm3 ;5 pand mm3, CLEARLOWBIT ;5 movq [edx+4*PITCH], mm1 ;4 por mm4, mm5 ;5 psrlq mm3, 1 ;5 pand mm5, CLEARLOWBIT ;5 psrlq mm5, 1 ;5 pand mm4, EXTRACTLOWBIT ;5 movq mm0, [ecx+6*PITCH] ;6 mm0,mm1=left pels paddb mm4, mm3 ;5 mm2 =right pels movq mm2, [ecx+6*PITCH+1] ;6 mm1 =interp pels paddb mm4, mm5 ;5 movq mm1, mm0 ;6 pand mm0, CLEARLOWBIT ;6 movq [edx+5*PITCH], mm4 ;5 por mm1, mm2 ;6 psrlq mm0, 1 ;6 pand mm2, CLEARLOWBIT ;6 psrlq mm2, 1 ;6 pand mm1, EXTRACTLOWBIT ;6 movq mm3, [ecx+7*PITCH] ;7 mm3,mm4=left pels paddb mm1, mm0 ;6 mm5 =right pels movq mm5, [ecx+7*PITCH+1] ;7 mm4 =interp pels paddb mm1, mm2 ;6 movq mm4, mm3 ;7 pand mm3, CLEARLOWBIT ;7 por mm4, mm5 ;7 psrlq mm3, 1 ;7 pand mm4, EXTRACTLOWBIT ;7 pand mm5, CLEARLOWBIT ;7 psrlq mm5, 1 ;7 paddb mm4, mm3 ;7 movq [edx+6*PITCH], mm1 ;6 paddb mm4, mm5 ;7 ; ; movq [edx+7*PITCH], mm4 ;7 ret EXTRACTLOWBIT TEXTEQU <> CLEARLOWBIT TEXTEQU <> @MMX_Interpolate_Half_Int@8 endp ; @MMX_Interpolate_Half_Half ; This routine computes interpolated pels shown by 'X' for a an 8x8 block ; of pels. 'x' is computed by the formula (A+B+C+D+2)/4. The input and ; output pitch is assumed to be 384 (PITCH). ; A B ; X ; C D ; The value (A+B+C+D+2)/4 is computed as (A'+B'+C'+D')+((A*+B*+C*+D*+2)/4) ; where A = 4*A' + A*, etc. ; Parameters: ; The source block parameter should be in ecx and the destination block ; parameter should be in edx; i.e. it uses fastcall calling convention. ; Performance: ; 84 cycles ignoring unaligned memory accesses ; 138 cycles if all loads are unaligned (84+9*2*3); stores should always be ; aligned. Average cycle count will be less than 138. ALIGN 4 @MMX_Interpolate_Half_Half@8 proc EXTRACTLOWBITS TEXTEQU <mm6> CLEARLOWBITS TEXTEQU <mm7> movq mm0, [ecx] ;0 A(mm0,mm1) B(mm4,mm5) ; 0 movq mm7, CfcfcfcfcfcfcfcfcH ; C(mm2,mm3) D(mm4,mm5) movq mm1, mm0 ;0 movq mm4, [ecx+1] ;0 pand mm0, CLEARLOWBITS ;0 movq mm6, C0303030303030303H ; movq mm5, mm4 ;0 pand mm4, CLEARLOWBITS ;0 pand mm1, EXTRACTLOWBITS ;0 psrlq mm0, 2 ;0 pand mm5, EXTRACTLOWBITS ;0 psrlq mm4, 2 ;0 paddb mm1, mm5 ;0 (A+B) low movq mm2, [ecx+1*PITCH] ;0 paddb mm0, mm4 ;0 (A+B)/4 high movq mm4, [ecx+1*PITCH+1] ;0 movq mm3, mm2 ;0 pand mm3, EXTRACTLOWBITS ;0 movq mm5, mm4 ;0 pand mm5, EXTRACTLOWBITS ;0 pand mm2, CLEARLOWBITS ;0 pand mm4, CLEARLOWBITS ;0 paddb mm3, mm5 ;0 (C+D) low paddb mm3, TWO ;0 (C+D+2) low = mm3 psrlq mm2, 2 ;0 paddb mm1, mm3 ;0 (A+B+C+D+2) low psrlq mm4, 2 ;0 paddb mm2, mm4 ;0 (C+D)/4 high = mm2 psrlq mm1, 2 ;0 (A+B+C+D+2)/4 low dirty paddb mm0, mm2 ;0 (A+B+C+D)/4 high pand mm1, EXTRACTLOWBITS ;0 (A+B+C+D+2)/4 low clean movq mm4, [ecx+2*PITCH] ;1 high(mm2) low(mm3) paddb mm0, mm1 ;0 1 movq mm1, [ecx+2*PITCH+1] ;1 C(mm4,mm5) D(mm0,mm1) movq mm5, mm4 ;1 movq [edx], mm0 ;0 movq mm0, mm1 ;1 pand mm0, CLEARLOWBITS ;1 pand mm4, CLEARLOWBITS ;1 psrlq mm0, 2 ;1 pand mm1, EXTRACTLOWBITS ;1 psrlq mm4, 2 ;1 pand mm5, EXTRACTLOWBITS ;1 paddb mm0, mm4 ;1 (C+D)/4 high = mm0 paddb mm1, mm5 ;1 (C+D) low paddb mm2, mm0 ;1 (A+B+C+D)/4 high paddb mm3, mm1 ;1 (A+B+C+D+2) low movq mm4, [ecx+3*PITCH] ;2 psrlq mm3, 2 ;1 (A+B+C+D+2)/4 low dirty movq mm5, mm4 ;2 high(mm0) low(mm1) pand mm3, EXTRACTLOWBITS ;1 2 paddb mm2, mm3 ;1 C(mm4,mm5) D(mm2,mm3) pand mm5, EXTRACTLOWBITS ;2 movq mm3, [ecx+3*PITCH+1] ;2 pand mm4, CLEARLOWBITS ;2 movq [edx+1*PITCH], mm2 ;1 movq mm2, mm3 ;2 pand mm3, EXTRACTLOWBITS ;2 pand mm2, CLEARLOWBITS ;2 psrlq mm4, 2 ;2 paddb mm3, mm5 ;2 paddb mm3, TWO ;2 (C+D+2) low = mm3 psrlq mm2, 2 ;2 paddb mm1, mm3 ;2 (A+B+C+D+2) low paddb mm2, mm4 ;2 (C+D)/4 hign = mm2 psrlq mm1, 2 ;2 (A+B+C+D+2)/4 low dirty paddb mm0, mm2 ;2 (A+B+C+D)/4 high movq mm4, [ecx+4*PITCH] ;3 high(mm2) low(mm3) pand mm1, EXTRACTLOWBITS ;2 3 movq mm5, mm4 ;3 C(mm4,mm5) D(mm0,mm1) paddb mm0, mm1 ;2 movq mm1, [ecx+4*PITCH+1] ;3 pand mm4, CLEARLOWBITS ;3 movq [edx+2*PITCH], mm0 ;2 movq mm0, mm1 ;3 pand mm0, CLEARLOWBITS ;3 pand mm1, EXTRACTLOWBITS ;3 psrlq mm0, 2 ;3 pand mm5, EXTRACTLOWBITS ;3 psrlq mm4, 2 ;3 paddb mm1, mm5 ;3 (C+D) low = mm1 paddb mm0, mm4 ;3 (C+D)/4 high = mm0 paddb mm3, mm1 ;3 (A+B+C+D+2) low paddb mm2, mm0 ;3 (A+B+C+D)/4 high psrlq mm3, 2 ;3 (A+B+C+D+2)/4 low dirty movq mm4, [ecx+5*PITCH] ;4 pand mm3, EXTRACTLOWBITS ;3 (A+B+C+D+2)/4 low clean movq mm5, mm4 ;4 paddb mm2, mm3 ;3 high(mm0) low(mm1) movq mm3, [ecx+5*PITCH+1] ;4 4 pand mm4, CLEARLOWBITS ;4 C(mm4,mm5) D(mm2,mm3) movq [edx+3*PITCH], mm2 ;3 movq mm2, mm3 ;4 pand mm2, CLEARLOWBITS ;4 pand mm5, EXTRACTLOWBITS ;4 psrlq mm4, 2 ;4 pand mm3, EXTRACTLOWBITS ;4 psrlq mm2, 2 ;4 paddb mm3, mm5 ;4 paddb mm3, TWO ;4 (C+D+2) low = mm3 paddb mm2, mm4 ;4 (C+D)/4 high = mm2 paddb mm1, mm3 ;4 (A+B+C+D+2) low paddb mm0, mm2 ;4 (A+B+C+D)/4 high movq mm4, [ecx+6*PITCH] ;5 psrlq mm1, 2 ;4 (A+B+C+D+2)/4 low dirty movq mm5, mm4 ;5 pand mm1, EXTRACTLOWBITS ;4 (A+B+C+D+2)/4 low clean paddb mm0, mm1 ;4 pand mm4, CLEARLOWBITS ;5 high(mm2) low(mm3) movq mm1, [ecx+6*PITCH+1] ;5 5 psrlq mm4, 2 ;5 C(mm4,mm5) D(mm0,mm1) movq [edx+4*PITCH], mm0 ;4 movq mm0, mm1 ;5 pand mm1, EXTRACTLOWBITS ;5 pand mm5, EXTRACTLOWBITS ;5 pand mm0, CLEARLOWBITS ;5 paddb mm1, mm5 ;5 (C+D) low = mm1 psrlq mm0, 2 ;5 paddb mm3, mm1 ;5 (A+B+C+D+2) low psrlq mm3, 2 ;5 (A+B+C+D+2)/4 low dirty paddb mm0, mm4 ;5 (C+D)/4 high = mm0 pand mm3, EXTRACTLOWBITS ;5 (A+B+C+D+2)/4 low clean paddb mm2, mm0 ;5 (A+B+C+D)/4 high movq mm4, [ecx+7*PITCH] ;6 high(mm0) low(mm1) paddb mm2, mm3 ;5 6 movq mm3, [ecx+7*PITCH+1] ;6 C(mm4,mm5) D(mm2,mm3) movq mm5, mm4 ;6 movq [edx+5*PITCH], mm2 ;5 movq mm2, mm3 ;6 pand mm5, EXTRACTLOWBITS ;6 pand mm3, EXTRACTLOWBITS ;6 pand mm2, CLEARLOWBITS ;6 paddb mm3, mm5 ;6 pand mm4, CLEARLOWBITS ;6 psrlq mm2, 2 ;6 paddb mm3, TWO ;6 (C+D+2) low = mm3 psrlq mm4, 2 ;6 paddb mm2, mm4 ;6 (C+D)/4 high = mm2 paddb mm1, mm3 ;6 (A+B+C+D+2) low paddb mm0, mm2 ;6 (A+B+C+D)/4 high psrlq mm1, 2 ;6 (A+B+C+D+2)/4 low dirty movq mm4, [ecx+8*PITCH] ;7 high(mm2) low(mm3) pand mm1, EXTRACTLOWBITS ;6 7 movq mm5, mm4 ;7 C(mm4,mm5) D(mm0,mm1) paddb mm0, mm1 ;6 movq mm1, [ecx+8*PITCH+1] ;7 pand mm4, CLEARLOWBITS ;7 movq [edx+6*PITCH], mm0 ;6 movq mm0, mm1 ;7 pand mm0, CLEARLOWBITS ;7 pand mm5, EXTRACTLOWBITS ;7 psrlq mm4, 2 ;7 pand mm1, EXTRACTLOWBITS ;7 psrlq mm0, 2 ;7 paddb mm1, mm5 ;7 (C+D) low paddb mm0, mm4 ;7 (C+D)/4 high paddb mm3, mm1 ;7 (A+B+C+D+2) low psrlq mm3, 2 ;7 (A+B+C+D+2)/4 low dirty paddb mm2, mm0 ;7 (A+B+C+D)/4 high pand mm3, EXTRACTLOWBITS ;7 (A+B+C+D+2)/4 low clean ; paddb mm2, mm3 ;7 ; ; ; movq [edx+7*PITCH], mm2 ;7 ret EXTRACTLOWBITS TEXTEQU <> CLEARLOWBITS TEXTEQU <> @MMX_Interpolate_Half_Half@8 endp MMXCODE1 ENDS END
46.099812
83
0.392459
753e8f7bf19c8e723ff906399edaa5c22496158f
2,007
asm
Assembly
libsrc/_DEVELOPMENT/math/float/am9511/z80/am32_error.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/am9511/z80/am32_error.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/z80/am32_error.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_fp_am9511 EXTERN asm_am9511_max EXTERN asm_am9511_const_pzero EXTERN asm_am9511_const_one EXTERN asm_am9511_const_pinf EXTERN asm_am9511_const_ninf EXTERN asm_am9511_const_pnan PUBLIC asm_am9511_derror_zc PUBLIC asm_am9511_derror_onc PUBLIC asm_am9511_derror_znc PUBLIC asm_am9511_derror_nanc PUBLIC asm_am9511_derror_nannc PUBLIC asm_am9511_derror_infnc PUBLIC asm_am9511_derror_pinfnc PUBLIC asm_am9511_derror_edom_zc PUBLIC asm_am9511_derror_edom_infc PUBLIC asm_am9511_derror_edom_ninfc PUBLIC asm_am9511_derror_edom_pinfc PUBLIC asm_am9511_derror_einval_zc PUBLIC asm_am9511_derror_erange_infc PUBLIC asm_am9511_derror_erange_ninfc PUBLIC asm_am9511_derror_erange_pinfc .asm_am9511_derror_zc exx call asm_am9511_const_pzero exx scf ret .asm_am9511_derror_onc exx call asm_am9511_const_one exx scf ret .asm_am9511_derror_znc exx call asm_am9511_const_pzero exx scf ccf ret .asm_am9511_derror_nanc exx call asm_am9511_const_pnan exx scf ret .asm_am9511_derror_nannc exx call asm_am9511_const_pnan exx scf ccf ret .asm_am9511_derror_infnc exx call asm_am9511_max exx ccf ret .asm_am9511_derror_ninfnc exx call asm_am9511_const_ninf exx scf ccf ret .asm_am9511_derror_pinfnc exx call asm_am9511_const_pinf exx scf ccf ret .asm_am9511_derror_edom_infc exx call asm_am9511_max exx ret .asm_am9511_derror_edom_ninfc exx call asm_am9511_const_ninf exx scf ret .asm_am9511_derror_edom_pinfc exx call asm_am9511_const_pinf exx scf ret defc asm_am9511_derror_edom_zc = asm_am9511_derror_zc defc asm_am9511_derror_einval_zc = asm_am9511_derror_zc defc asm_am9511_derror_erange_infc = asm_am9511_derror_edom_infc defc asm_am9511_derror_erange_ninfc = asm_am9511_derror_edom_ninfc defc asm_am9511_derror_erange_pinfc = asm_am9511_derror_edom_pinfc
17.301724
66
0.793224
12c02d0468683119561cf96f0160df123c6c8cdf
3,570
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_sm_/i9-9900K_12_0xa0.log_16_1558.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_sm_/i9-9900K_12_0xa0.log_16_1558.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_sm_/i9-9900K_12_0xa0.log_16_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 %r11 push %r13 push %r15 push %r9 push %rcx push %rdi push %rsi lea addresses_normal_ht+0x95be, %r11 nop nop inc %r13 movb $0x61, (%r11) dec %r13 lea addresses_WC_ht+0x531a, %rsi lea addresses_normal_ht+0x9086, %rdi nop nop nop nop add %r9, %r9 mov $11, %rcx rep movsw nop xor $13357, %rdi lea addresses_WT_ht+0x237a, %rsi nop nop cmp $43078, %rcx mov $0x6162636465666768, %r11 movq %r11, (%rsi) nop nop cmp $47617, %r13 lea addresses_D_ht+0x19b3e, %rcx nop nop nop and $62672, %r9 mov (%rcx), %r15 add %r9, %r9 lea addresses_WC_ht+0x1249c, %r11 nop and %r15, %r15 movb (%r11), %r13b nop nop nop nop nop and $170, %rsi pop %rsi pop %rdi pop %rcx 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 %rax push %rbx push %rcx // Store lea addresses_WT+0x101be, %rax nop xor %r14, %r14 movb $0x51, (%rax) cmp $56807, %rcx // Store lea addresses_WT+0x101be, %r9 nop nop nop nop cmp %rbx, %rbx mov $0x5152535455565758, %r13 movq %r13, (%r9) nop xor $13284, %rax // Store lea addresses_A+0x17cbe, %r13 sub $8129, %rbx movl $0x51525354, (%r13) nop nop nop nop nop and $3644, %r14 // Load lea addresses_UC+0xdd3e, %r13 nop nop sub %r9, %r9 movb (%r13), %al add $12271, %rbx // Load lea addresses_WC+0x10ba6, %rax nop nop nop nop dec %rbx mov (%rax), %r10 nop nop nop nop nop sub %rax, %rax // Load mov $0x69e, %r9 clflush (%r9) nop nop nop nop nop sub %r10, %r10 vmovups (%r9), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $1, %xmm7, %r14 nop nop nop nop and %r9, %r9 // Faulty Load lea addresses_WT+0x101be, %rbx nop nop nop nop cmp %r14, %r14 mov (%rbx), %r9d lea oracles, %r14 and $0xff, %r9 shlq $12, %r9 mov (%r14,%r9,1), %r9 pop %rcx pop %rbx pop %rax pop %r9 pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_A', 'AVXalign': False, 'size': 4}} {'src': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_UC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_WC', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_P', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': True, 'size': 4}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 1}} {'src': {'same': False, 'congruent': 1, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_normal_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8}} {'src': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'58': 16} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
19.297297
152
0.636415
920019091a2636c51743500fa50fb4b96b3f3dae
5,819
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_19253_297.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_19253_297.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_19253_297.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 %r13 push %r15 push %r8 push %rcx push %rdi push %rsi lea addresses_WC_ht+0x7a47, %r8 nop nop nop nop nop and %rcx, %rcx movb (%r8), %r13b nop nop lfence lea addresses_WC_ht+0x11fc7, %rsi lea addresses_normal_ht+0xc577, %rdi xor %r10, %r10 mov $32, %rcx rep movsw nop nop nop nop cmp %r13, %r13 lea addresses_D_ht+0x5291, %rdi nop nop nop nop dec %rsi movw $0x6162, (%rdi) cmp $60315, %r13 lea addresses_A_ht+0x15e57, %rdi inc %r15 mov (%rdi), %r13d nop cmp $13010, %r10 lea addresses_WT_ht+0x5ac7, %rsi nop and %r15, %r15 mov $0x6162636465666768, %r8 movq %r8, %xmm3 movups %xmm3, (%rsi) nop nop add $28758, %rdi lea addresses_WT_ht+0xbd07, %rcx nop nop and %r15, %r15 movups (%rcx), %xmm3 vpextrq $0, %xmm3, %rdi add %r13, %r13 pop %rsi pop %rdi pop %rcx pop %r8 pop %r15 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r15 push %r9 push %rcx push %rdi push %rdx push %rsi // Store lea addresses_PSE+0x180ff, %r15 nop nop nop cmp $40392, %rdx movw $0x5152, (%r15) dec %r10 // REPMOV lea addresses_D+0x1457, %rsi lea addresses_PSE+0xac7, %rdi nop nop sub $28481, %r10 mov $94, %rcx rep movsw nop nop nop xor $35265, %r15 // Faulty Load lea addresses_US+0x52c7, %r10 and %r9, %r9 mov (%r10), %r15d lea oracles, %rdi and $0xff, %r15 shlq $12, %r15 mov (%rdi,%r15,1), %r15 pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r15 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_US', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_PSE', 'congruent': 2}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 11, 'type': 'addresses_PSE'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_D'}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': True, 'size': 4, 'type': 'addresses_US', 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC_ht', 'congruent': 7}} {'dst': {'same': False, 'congruent': 4, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_D_ht', 'congruent': 1}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A_ht', 'congruent': 4}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WT_ht', 'congruent': 11}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WT_ht', 'congruent': 6}} {'00': 19253} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
42.166667
2,999
0.656298
d60e19e35a86c15b5240476a1d98cb89006a3856
403
asm
Assembly
oeis/228/A228406.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/228/A228406.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/228/A228406.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A228406: Sequences from the quartic oscillator. ; Submitted by Jon Maiga ; 0,24,384,2064,7104,18984,43008,86688,160128,276408,451968,706992,1065792,1557192,2214912,3077952,4190976,5604696,7376256,9569616,12255936,15513960,19430400,24100320,29627520,36124920,43714944,52529904,62712384,74415624,87803904 mul $0,2 lpb $0 mov $2,$0 sub $0,2 add $2,2 bin $2,4 add $1,$2 lpe mov $0,$1 mul $0,24
26.866667
229
0.754342
af631981685380b7abe78a0f98af154834af83a2
144,527
asm
Assembly
bin/output/boot_ram/boot_ram.asm
HESUPING/JmeshBLE-StaticLib
cf0900f004026c7e2e3448ffde07e21d4af8e387
[ "Apache-2.0" ]
null
null
null
bin/output/boot_ram/boot_ram.asm
HESUPING/JmeshBLE-StaticLib
cf0900f004026c7e2e3448ffde07e21d4af8e387
[ "Apache-2.0" ]
null
null
null
bin/output/boot_ram/boot_ram.asm
HESUPING/JmeshBLE-StaticLib
cf0900f004026c7e2e3448ffde07e21d4af8e387
[ "Apache-2.0" ]
3
2019-08-27T17:11:42.000Z
2021-02-04T06:38:35.000Z
======================================================================== ** ELF Header Information File Name: boot_ram.elf Machine class: ELFCLASS32 (32-bit) Data encoding: ELFDATA2LSB (Little endian) Header version: EV_CURRENT (Current version) Operating System ABI: none ABI Version: 0 File Type: ET_EXEC (Executable) (2) Machine: EM_ARM (ARM) Image Entry point: 0x0012e259 Flags: EF_ARM_HASENTRY + EF_ARM_ABI_FLOAT_SOFT (0x05000202) ARM ELF revision: 5 (ABI version 2) Conforms to Soft float procedure-call standard Built with Component: ARM Compiler 5.06 update 1 (build 61) Tool: armasm [4d35a5] Component: ARM Compiler 5.06 update 1 (build 61) Tool: armcc [4d35ad] Component: ARM Compiler 5.06 update 1 (build 61) Tool: armlink [4d35a8] Header size: 52 bytes (0x34) Program header entry size: 32 bytes (0x20) Section header entry size: 40 bytes (0x28) Program header entries: 1 Section header entries: 15 Program header offset: 325256 (0x0004f688) Section header offset: 325288 (0x0004f6a8) Section header string table index: 14 ======================================================================== ** Program header #0 Type : PT_LOAD (1) File Offset : 52 (0x34) Virtual Addr : 0x0012dff0 Physical Addr : 0x0012dff0 Size in file : 2768 bytes (0xad0) Size in memory: 2768 bytes (0xad0) Flags : PF_X + PF_W + PF_R + PF_ARM_ENTRY (0x80000007) Alignment : 4 ======================================================================== ** Section #1 Name : EXEC_SECTION Type : SHT_PROGBITS (0x00000001) Flags : SHF_ALLOC + SHF_EXECINSTR (0x00000006) Addr : 0x0012dff0 File Offset : 52 (0x34) Size : 2764 bytes (0xacc) Link : SHN_UNDEF Info : 0 Alignment : 4 Entry Size : 0 $d.realdata boot_header_area boot_info 0x0012dff0: 34325842 BX24 DCD 875714626 0x0012dff4: 0012e000 .... DCD 1236992 0x0012dff8: ffffffff .... DCD 4294967295 0x0012dffc: 0012e259 Y... DCD 1237593 0x0012e000: ffffffff .... DCD 4294967295 0x0012e004: ffffffff .... DCD 4294967295 0x0012e008: ffffffff .... DCD 4294967295 0x0012e00c: ffffffff .... DCD 4294967295 0x0012e010: 00000000 .... DCD 0 $t .text __aeabi_uidiv __aeabi_uidivmod 0x0012e014: b530 0. PUSH {r4,r5,lr} 0x0012e016: 460b .F MOV r3,r1 0x0012e018: 4601 .F MOV r1,r0 0x0012e01a: 2000 . MOVS r0,#0 0x0012e01c: 2220 " MOVS r2,#0x20 0x0012e01e: 2401 .$ MOVS r4,#1 0x0012e020: e009 .. B 0x12e036 ; __aeabi_uidiv + 34 0x0012e022: 460d .F MOV r5,r1 0x0012e024: 40d5 .@ LSRS r5,r5,r2 0x0012e026: 429d .B CMP r5,r3 0x0012e028: d305 .. BCC 0x12e036 ; __aeabi_uidiv + 34 0x0012e02a: 461d .F MOV r5,r3 0x0012e02c: 4095 .@ LSLS r5,r5,r2 0x0012e02e: 1b49 I. SUBS r1,r1,r5 0x0012e030: 4625 %F MOV r5,r4 0x0012e032: 4095 .@ LSLS r5,r5,r2 0x0012e034: 1940 @. ADDS r0,r0,r5 0x0012e036: 4615 .F MOV r5,r2 0x0012e038: 1e52 R. SUBS r2,r2,#1 0x0012e03a: 2d00 .- CMP r5,#0 0x0012e03c: dcf1 .. BGT 0x12e022 ; __aeabi_uidiv + 14 0x0012e03e: bd30 0. POP {r4,r5,pc} i.awo_bootram_init awo_bootram_init 0x0012e040: b570 p. PUSH {r4-r6,lr} 0x0012e042: bf00 .. NOP 0x0012e044: 4822 "H LDR r0,[pc,#136] ; [0x12e0d0] = 0x20201000 0x0012e046: 68c0 .h LDR r0,[r0,#0xc] 0x0012e048: 0580 .. LSLS r0,r0,#22 0x0012e04a: 0fc0 .. LSRS r0,r0,#31 0x0012e04c: 2800 .( CMP r0,#0 0x0012e04e: d000 .. BEQ 0x12e052 ; awo_bootram_init + 18 0x0012e050: bd70 p. POP {r4-r6,pc} 0x0012e052: 2001 . MOVS r0,#1 0x0012e054: 491e .I LDR r1,[pc,#120] ; [0x12e0d0] = 0x20201000 0x0012e056: 68c9 .h LDR r1,[r1,#0xc] 0x0012e058: 0242 B. LSLS r2,r0,#9 0x0012e05a: 4391 .C BICS r1,r1,r2 0x0012e05c: 0242 B. LSLS r2,r0,#9 0x0012e05e: 0243 C. LSLS r3,r0,#9 0x0012e060: 401a .@ ANDS r2,r2,r3 0x0012e062: 4311 .C ORRS r1,r1,r2 0x0012e064: 4a1a .J LDR r2,[pc,#104] ; [0x12e0d0] = 0x20201000 0x0012e066: 60d1 .` STR r1,[r2,#0xc] 0x0012e068: bf00 .. NOP 0x0012e06a: f000fceb .... BL sysc_awo_dr_16m_rcosc_en_setf ; 0x12ea44 0x0012e06e: 2000 . MOVS r0,#0 0x0012e070: f000fcf6 .... BL sysc_awo_reg_16m_rcosc_en_setf ; 0x12ea60 0x0012e074: 2001 . MOVS r0,#1 0x0012e076: f000f831 ..1. BL awo_clk_div_pbus_para_m1 ; 0x12e0dc 0x0012e07a: f000f841 ..A. BL awo_clk_div_pbus_para_up ; 0x12e100 0x0012e07e: 2020 MOVS r0,#0x20 0x0012e080: f000f844 ..D. BL awo_clkgate_en ; 0x12e10c 0x0012e084: 4913 .I LDR r1,[pc,#76] ; [0x12e0d4] = 0xf4240 0x0012e086: 4814 .H LDR r0,[pc,#80] ; [0x12e0d8] = 0x12eabc 0x0012e088: 6800 .h LDR r0,[r0,#0] 0x0012e08a: f7ffffc3 .... BL __aeabi_uidiv ; 0x12e014 0x0012e08e: b2c5 .. UXTB r5,r0 0x0012e090: 4628 (F MOV r0,r5 0x0012e092: f000f86f ..o. BL awo_open_pll ; 0x12e174 0x0012e096: 2400 .$ MOVS r4,#0 0x0012e098: e002 .. B 0x12e0a0 ; awo_bootram_init + 96 0x0012e09a: bf00 .. NOP 0x0012e09c: 1c60 `. ADDS r0,r4,#1 0x0012e09e: b284 .. UXTH r4,r0 0x0012e0a0: 2c05 ., CMP r4,#5 0x0012e0a2: dbfa .. BLT 0x12e09a ; awo_bootram_init + 90 0x0012e0a4: bf00 .. NOP 0x0012e0a6: bf00 .. NOP 0x0012e0a8: 4809 .H LDR r0,[pc,#36] ; [0x12e0d0] = 0x20201000 0x0012e0aa: 3080 .0 ADDS r0,r0,#0x80 0x0012e0ac: 6b00 .k LDR r0,[r0,#0x30] 0x0012e0ae: 2120 ! MOVS r1,#0x20 0x0012e0b0: 4008 .@ ANDS r0,r0,r1 0x0012e0b2: 2800 .( CMP r0,#0 0x0012e0b4: d0f7 .. BEQ 0x12e0a6 ; awo_bootram_init + 102 0x0012e0b6: 2002 . MOVS r0,#2 0x0012e0b8: f000f83e ..>. BL awo_hbus1_clksel ; 0x12e138 0x0012e0bc: 2010 . MOVS r0,#0x10 0x0012e0be: f000f825 ..%. BL awo_clkgate_en ; 0x12e10c 0x0012e0c2: 2002 . MOVS r0,#2 0x0012e0c4: f000f82a ..*. BL awo_hbus0_clksel ; 0x12e11c 0x0012e0c8: f000f8c0 .... BL awo_set_parameter ; 0x12e24c 0x0012e0cc: bf00 .. NOP 0x0012e0ce: e7bf .. B 0x12e050 ; awo_bootram_init + 16 $d 0x0012e0d0: 20201000 .. DCD 538972160 0x0012e0d4: 000f4240 @B.. DCD 1000000 0x0012e0d8: 0012eabc .... DCD 1239740 $t i.awo_clk_div_pbus_para_m1 awo_clk_div_pbus_para_m1 0x0012e0dc: bf00 .. NOP 0x0012e0de: 4907 .I LDR r1,[pc,#28] ; [0x12e0fc] = 0x20201000 0x0012e0e0: 6809 .h LDR r1,[r1,#0] 0x0012e0e2: 220f ." MOVS r2,#0xf 0x0012e0e4: 0412 .. LSLS r2,r2,#16 0x0012e0e6: 4391 .C BICS r1,r1,r2 0x0012e0e8: 0402 .. LSLS r2,r0,#16 0x0012e0ea: 230f .# MOVS r3,#0xf 0x0012e0ec: 041b .. LSLS r3,r3,#16 0x0012e0ee: 401a .@ ANDS r2,r2,r3 0x0012e0f0: 4311 .C ORRS r1,r1,r2 0x0012e0f2: 4a02 .J LDR r2,[pc,#8] ; [0x12e0fc] = 0x20201000 0x0012e0f4: 6011 .` STR r1,[r2,#0] 0x0012e0f6: bf00 .. NOP 0x0012e0f8: 4770 pG BX lr $d 0x0012e0fa: 0000 .. DCW 0 0x0012e0fc: 20201000 .. DCD 538972160 $t i.awo_clk_div_pbus_para_up awo_clk_div_pbus_para_up 0x0012e100: b510 .. PUSH {r4,lr} 0x0012e102: 2001 . MOVS r0,#1 0x0012e104: f000fc98 .... BL sysc_awo_clkgen_awo_signal_1_set ; 0x12ea38 0x0012e108: bd10 .. POP {r4,pc} 0x0012e10a: 0000 .. MOVS r0,r0 i.awo_clkgate_en awo_clkgate_en 0x0012e10c: bf00 .. NOP 0x0012e10e: 4902 .I LDR r1,[pc,#8] ; [0x12e118] = 0x20201000 0x0012e110: 6048 H` STR r0,[r1,#4] 0x0012e112: bf00 .. NOP 0x0012e114: 4770 pG BX lr $d 0x0012e116: 0000 .. DCW 0 0x0012e118: 20201000 .. DCD 538972160 $t i.awo_hbus0_clksel awo_hbus0_clksel 0x0012e11c: bf00 .. NOP 0x0012e11e: 4905 .I LDR r1,[pc,#20] ; [0x12e134] = 0x20201000 0x0012e120: 6809 .h LDR r1,[r1,#0] 0x0012e122: 08c9 .. LSRS r1,r1,#3 0x0012e124: 00c9 .. LSLS r1,r1,#3 0x0012e126: 0742 B. LSLS r2,r0,#29 0x0012e128: 0f52 R. LSRS r2,r2,#29 0x0012e12a: 4311 .C ORRS r1,r1,r2 0x0012e12c: 4a01 .J LDR r2,[pc,#4] ; [0x12e134] = 0x20201000 0x0012e12e: 6011 .` STR r1,[r2,#0] 0x0012e130: bf00 .. NOP 0x0012e132: 4770 pG BX lr $d 0x0012e134: 20201000 .. DCD 538972160 $t i.awo_hbus1_clksel awo_hbus1_clksel 0x0012e138: bf00 .. NOP 0x0012e13a: 4906 .I LDR r1,[pc,#24] ; [0x12e154] = 0x20201000 0x0012e13c: 6809 .h LDR r1,[r1,#0] 0x0012e13e: 2218 ." MOVS r2,#0x18 0x0012e140: 4391 .C BICS r1,r1,r2 0x0012e142: 00c2 .. LSLS r2,r0,#3 0x0012e144: 2318 .# MOVS r3,#0x18 0x0012e146: 401a .@ ANDS r2,r2,r3 0x0012e148: 4311 .C ORRS r1,r1,r2 0x0012e14a: 4a02 .J LDR r2,[pc,#8] ; [0x12e154] = 0x20201000 0x0012e14c: 6011 .` STR r1,[r2,#0] 0x0012e14e: bf00 .. NOP 0x0012e150: 4770 pG BX lr $d 0x0012e152: 0000 .. DCW 0 0x0012e154: 20201000 .. DCD 538972160 $t i.awo_ldo_setup_time awo_ldo_setup_time 0x0012e158: bf00 .. NOP 0x0012e15a: 4905 .I LDR r1,[pc,#20] ; [0x12e170] = 0x20201000 0x0012e15c: 6989 .i LDR r1,[r1,#0x18] 0x0012e15e: 0a09 .. LSRS r1,r1,#8 0x0012e160: 0209 .. LSLS r1,r1,#8 0x0012e162: b2c2 .. UXTB r2,r0 0x0012e164: 4311 .C ORRS r1,r1,r2 0x0012e166: 4a02 .J LDR r2,[pc,#8] ; [0x12e170] = 0x20201000 0x0012e168: 6191 .a STR r1,[r2,#0x18] 0x0012e16a: bf00 .. NOP 0x0012e16c: 4770 pG BX lr $d 0x0012e16e: 0000 .. DCW 0 0x0012e170: 20201000 .. DCD 538972160 $t i.awo_open_pll awo_open_pll 0x0012e174: b570 p. PUSH {r4-r6,lr} 0x0012e176: 4604 .F MOV r4,r0 0x0012e178: 2c40 @, CMP r4,#0x40 0x0012e17a: d012 .. BEQ 0x12e1a2 ; awo_open_pll + 46 0x0012e17c: dc06 .. BGT 0x12e18c ; awo_open_pll + 24 0x0012e17e: 2c10 ., CMP r4,#0x10 0x0012e180: d009 .. BEQ 0x12e196 ; awo_open_pll + 34 0x0012e182: 2c20 , CMP r4,#0x20 0x0012e184: d009 .. BEQ 0x12e19a ; awo_open_pll + 38 0x0012e186: 2c30 0, CMP r4,#0x30 0x0012e188: d111 .. BNE 0x12e1ae ; awo_open_pll + 58 0x0012e18a: e008 .. B 0x12e19e ; awo_open_pll + 42 0x0012e18c: 2c50 P, CMP r4,#0x50 0x0012e18e: d00a .. BEQ 0x12e1a6 ; awo_open_pll + 50 0x0012e190: 2c60 `, CMP r4,#0x60 0x0012e192: d10c .. BNE 0x12e1ae ; awo_open_pll + 58 0x0012e194: e009 .. B 0x12e1aa ; awo_open_pll + 54 0x0012e196: 2400 .$ MOVS r4,#0 0x0012e198: e00a .. B 0x12e1b0 ; awo_open_pll + 60 0x0012e19a: 2408 .$ MOVS r4,#8 0x0012e19c: e008 .. B 0x12e1b0 ; awo_open_pll + 60 0x0012e19e: 2413 .$ MOVS r4,#0x13 0x0012e1a0: e006 .. B 0x12e1b0 ; awo_open_pll + 60 0x0012e1a2: 2414 .$ MOVS r4,#0x14 0x0012e1a4: e004 .. B 0x12e1b0 ; awo_open_pll + 60 0x0012e1a6: 2415 .$ MOVS r4,#0x15 0x0012e1a8: e002 .. B 0x12e1b0 ; awo_open_pll + 60 0x0012e1aa: 2416 .$ MOVS r4,#0x16 0x0012e1ac: e000 .. B 0x12e1b0 ; awo_open_pll + 60 0x0012e1ae: bf00 .. NOP 0x0012e1b0: bf00 .. NOP 0x0012e1b2: f000fc65 ..e. BL sysc_awo_rf_reg_0_get ; 0x12ea80 0x0012e1b6: 2101 .! MOVS r1,#1 0x0012e1b8: 0449 I. LSLS r1,r1,#17 0x0012e1ba: 4388 .C BICS r0,r0,r1 0x0012e1bc: 4605 .F MOV r5,r0 0x0012e1be: 4628 (F MOV r0,r5 0x0012e1c0: f000fc64 ..d. BL sysc_awo_rf_reg_0_set ; 0x12ea8c 0x0012e1c4: f000fc5c ..\. BL sysc_awo_rf_reg_0_get ; 0x12ea80 0x0012e1c8: 2101 .! MOVS r1,#1 0x0012e1ca: 0449 I. LSLS r1,r1,#17 0x0012e1cc: 4308 .C ORRS r0,r0,r1 0x0012e1ce: 4605 .F MOV r5,r0 0x0012e1d0: 4628 (F MOV r0,r5 0x0012e1d2: f000fc5b ..[. BL sysc_awo_rf_reg_0_set ; 0x12ea8c 0x0012e1d6: f000fc53 ..S. BL sysc_awo_rf_reg_0_get ; 0x12ea80 0x0012e1da: 2107 .! MOVS r1,#7 0x0012e1dc: 0389 .. LSLS r1,r1,#14 0x0012e1de: 4388 .C BICS r0,r0,r1 0x0012e1e0: 2105 .! MOVS r1,#5 0x0012e1e2: 0389 .. LSLS r1,r1,#14 0x0012e1e4: 1845 E. ADDS r5,r0,r1 0x0012e1e6: 4628 (F MOV r0,r5 0x0012e1e8: f000fc50 ..P. BL sysc_awo_rf_reg_0_set ; 0x12ea8c 0x0012e1ec: f000fc48 ..H. BL sysc_awo_rf_reg_0_get ; 0x12ea80 0x0012e1f0: 2107 .! MOVS r1,#7 0x0012e1f2: 02c9 .. LSLS r1,r1,#11 0x0012e1f4: 4388 .C BICS r0,r0,r1 0x0012e1f6: 2101 .! MOVS r1,#1 0x0012e1f8: 0309 .. LSLS r1,r1,#12 0x0012e1fa: 1845 E. ADDS r5,r0,r1 0x0012e1fc: 4628 (F MOV r0,r5 0x0012e1fe: f000fc45 ..E. BL sysc_awo_rf_reg_0_set ; 0x12ea8c 0x0012e202: f000fc3d ..=. BL sysc_awo_rf_reg_0_get ; 0x12ea80 0x0012e206: 2107 .! MOVS r1,#7 0x0012e208: 0209 .. LSLS r1,r1,#8 0x0012e20a: 4388 .C BICS r0,r0,r1 0x0012e20c: 2101 .! MOVS r1,#1 0x0012e20e: 0289 .. LSLS r1,r1,#10 0x0012e210: 1845 E. ADDS r5,r0,r1 0x0012e212: 4628 (F MOV r0,r5 0x0012e214: f000fc3a ..:. BL sysc_awo_rf_reg_0_set ; 0x12ea8c 0x0012e218: f000fc32 ..2. BL sysc_awo_rf_reg_0_get ; 0x12ea80 0x0012e21c: 08c0 .. LSRS r0,r0,#3 0x0012e21e: 00c0 .. LSLS r0,r0,#3 0x0012e220: 1cc5 .. ADDS r5,r0,#3 0x0012e222: 4628 (F MOV r0,r5 0x0012e224: f000fc32 ..2. BL sysc_awo_rf_reg_0_set ; 0x12ea8c 0x0012e228: f000fc2a ..*. BL sysc_awo_rf_reg_0_get ; 0x12ea80 0x0012e22c: 21f8 .! MOVS r1,#0xf8 0x0012e22e: 4388 .C BICS r0,r0,r1 0x0012e230: 00e1 .. LSLS r1,r4,#3 0x0012e232: 4308 .C ORRS r0,r0,r1 0x0012e234: 4606 .F MOV r6,r0 0x0012e236: f000fc29 ..). BL sysc_awo_rf_reg_0_set ; 0x12ea8c 0x0012e23a: f000fc21 ..!. BL sysc_awo_rf_reg_0_get ; 0x12ea80 0x0012e23e: 2101 .! MOVS r1,#1 0x0012e240: 0489 .. LSLS r1,r1,#18 0x0012e242: 4308 .C ORRS r0,r0,r1 0x0012e244: 4606 .F MOV r6,r0 0x0012e246: f000fc21 ..!. BL sysc_awo_rf_reg_0_set ; 0x12ea8c 0x0012e24a: bd70 p. POP {r4-r6,pc} i.awo_set_parameter awo_set_parameter 0x0012e24c: b500 .. PUSH {lr} 0x0012e24e: 20c0 . MOVS r0,#0xc0 0x0012e250: f7ffff82 .... BL awo_ldo_setup_time ; 0x12e158 0x0012e254: bd00 .. POP {pc} 0x0012e256: 0000 .. MOVS r0,r0 i.boot_ram_entry boot_ram_entry 0x0012e258: b570 p. PUSH {r4-r6,lr} 0x0012e25a: f7fffef1 .... BL awo_bootram_init ; 0x12e040 0x0012e25e: f000fa27 ..'. BL peri_gate ; 0x12e6b0 0x0012e262: 4823 #H LDR r0,[pc,#140] ; [0x12e2f0] = 0x12dff0 0x0012e264: 69c0 .i LDR r0,[r0,#0x1c] 0x0012e266: 2801 .( CMP r0,#1 0x0012e268: d017 .. BEQ 0x12e29a ; boot_ram_entry + 66 0x0012e26a: 4821 !H LDR r0,[pc,#132] ; [0x12e2f0] = 0x12dff0 0x0012e26c: 6980 .i LDR r0,[r0,#0x18] 0x0012e26e: 2800 .( CMP r0,#0 0x0012e270: d007 .. BEQ 0x12e282 ; boot_ram_entry + 42 0x0012e272: 200f . MOVS r0,#0xf 0x0012e274: f000fc16 .... BL sysc_cpu_qspi_en_setf ; 0x12eaa4 0x0012e278: 491d .I LDR r1,[pc,#116] ; [0x12e2f0] = 0x12dff0 0x0012e27a: 481e .H LDR r0,[pc,#120] ; [0x12e2f4] = 0x12e5d9 0x0012e27c: f000fa02 .... BL image_read ; 0x12e684 0x0012e280: e006 .. B 0x12e290 ; boot_ram_entry + 56 0x0012e282: 2003 . MOVS r0,#3 0x0012e284: f000fc0e .... BL sysc_cpu_qspi_en_setf ; 0x12eaa4 0x0012e288: 4919 .I LDR r1,[pc,#100] ; [0x12e2f0] = 0x12dff0 0x0012e28a: 481b .H LDR r0,[pc,#108] ; [0x12e2f8] = 0x12e631 0x0012e28c: f000f9fa .... BL image_read ; 0x12e684 0x0012e290: 2401 .$ MOVS r4,#1 0x0012e292: 0524 $. LSLS r4,r4,#20 0x0012e294: f000f8b2 .... BL dmac_qspi_gate ; 0x12e3fc 0x0012e298: e016 .. B 0x12e2c8 ; boot_ram_entry + 112 0x0012e29a: 20ff . MOVS r0,#0xff 0x0012e29c: 3001 .0 ADDS r0,#1 0x0012e29e: f000fbfb .... BL sysc_cpu_clkg1_set ; 0x12ea98 0x0012e2a2: 200f . MOVS r0,#0xf 0x0012e2a4: f000fbfe .... BL sysc_cpu_qspi_en_setf ; 0x12eaa4 0x0012e2a8: 4911 .I LDR r1,[pc,#68] ; [0x12e2f0] = 0x12dff0 0x0012e2aa: 6a09 .j LDR r1,[r1,#0x20] 0x0012e2ac: 2900 .) CMP r1,#0 0x0012e2ae: d002 .. BEQ 0x12e2b6 ; boot_ram_entry + 94 0x0012e2b0: 2101 .! MOVS r1,#1 0x0012e2b2: 04c9 .. LSLS r1,r1,#19 0x0012e2b4: e000 .. B 0x12e2b8 ; boot_ram_entry + 96 0x0012e2b6: 2100 .! MOVS r1,#0 0x0012e2b8: 4608 .F MOV r0,r1 0x0012e2ba: f000f905 .... BL flash_cache_init ; 0x12e4c8 0x0012e2be: 480c .H LDR r0,[pc,#48] ; [0x12e2f0] = 0x12dff0 0x0012e2c0: 6900 .i LDR r0,[r0,#0x10] 0x0012e2c2: 2101 .! MOVS r1,#1 0x0012e2c4: 05c9 .. LSLS r1,r1,#23 0x0012e2c6: 1844 D. ADDS r4,r0,r1 0x0012e2c8: 6820 h LDR r0,[r4,#0] 0x0012e2ca: f3808808 .... MSR MSP,r0 0x0012e2ce: bf00 .. NOP 0x0012e2d0: 1d25 %. ADDS r5,r4,#4 0x0012e2d2: 4a07 .J LDR r2,[pc,#28] ; [0x12e2f0] = 0x12dff0 0x0012e2d4: 6911 .i LDR r1,[r2,#0x10] 0x0012e2d6: 6a12 .j LDR r2,[r2,#0x20] 0x0012e2d8: 2a00 .* CMP r2,#0 0x0012e2da: d001 .. BEQ 0x12e2e0 ; boot_ram_entry + 136 0x0012e2dc: 2200 ." MOVS r2,#0 0x0012e2de: e001 .. B 0x12e2e4 ; boot_ram_entry + 140 0x0012e2e0: 2201 ." MOVS r2,#1 0x0012e2e2: 04d2 .. LSLS r2,r2,#19 0x0012e2e4: 4610 .F MOV r0,r2 0x0012e2e6: 4b05 .K LDR r3,[pc,#20] ; [0x12e2fc] = 0x3399 0x0012e2e8: 4a05 .J LDR r2,[pc,#20] ; [0x12e300] = 0xad0 0x0012e2ea: 682e .h LDR r6,[r5,#0] 0x0012e2ec: 47b0 .G BLX r6 0x0012e2ee: bd70 p. POP {r4-r6,pc} $d 0x0012e2f0: 0012dff0 .... DCD 1236976 0x0012e2f4: 0012e5d9 .... DCD 1238489 0x0012e2f8: 0012e631 1... DCD 1238577 0x0012e2fc: 00003399 .3.. DCD 13209 0x0012e300: 00000ad0 .... DCD 2768 $t i.cache_reg_cache_en_set cache_reg_cache_en_set 0x0012e304: 4901 .I LDR r1,[pc,#4] ; [0x12e30c] = 0x20121000 0x0012e306: 6008 .` STR r0,[r1,#0] 0x0012e308: 4770 pG BX lr $d 0x0012e30a: 0000 .. DCW 0 0x0012e30c: 20121000 ... DCD 538054656 $t i.cache_reg_flush_en_set cache_reg_flush_en_set 0x0012e310: 4901 .I LDR r1,[pc,#4] ; [0x12e318] = 0x20121000 0x0012e312: 61c8 .a STR r0,[r1,#0x1c] 0x0012e314: 4770 pG BX lr $d 0x0012e316: 0000 .. DCW 0 0x0012e318: 20121000 ... DCD 538054656 $t i.clk_gate_cpu_g1 clk_gate_cpu_g1 0x0012e31c: bf00 .. NOP 0x0012e31e: 490f .I LDR r1,[pc,#60] ; [0x12e35c] = 0x20132000 0x0012e320: 6148 Ha STR r0,[r1,#0x14] 0x0012e322: bf00 .. NOP 0x0012e324: 490e .I LDR r1,[pc,#56] ; [0x12e360] = 0xaaaaaaaa 0x0012e326: 4001 .@ ANDS r1,r1,r0 0x0012e328: 2900 .) CMP r1,#0 0x0012e32a: d007 .. BEQ 0x12e33c ; clk_gate_cpu_g1 + 32 0x0012e32c: bf00 .. NOP 0x0012e32e: bf00 .. NOP 0x0012e330: 490a .I LDR r1,[pc,#40] ; [0x12e35c] = 0x20132000 0x0012e332: 6949 Ii LDR r1,[r1,#0x14] 0x0012e334: 4001 .@ ANDS r1,r1,r0 0x0012e336: 2900 .) CMP r1,#0 0x0012e338: d1f9 .. BNE 0x12e32e ; clk_gate_cpu_g1 + 18 0x0012e33a: e00e .. B 0x12e35a ; clk_gate_cpu_g1 + 62 0x0012e33c: 4908 .I LDR r1,[pc,#32] ; [0x12e360] = 0xaaaaaaaa 0x0012e33e: 43c9 .C MVNS r1,r1 0x0012e340: 4001 .@ ANDS r1,r1,r0 0x0012e342: 2900 .) CMP r1,#0 0x0012e344: d008 .. BEQ 0x12e358 ; clk_gate_cpu_g1 + 60 0x0012e346: bf00 .. NOP 0x0012e348: bf00 .. NOP 0x0012e34a: 4904 .I LDR r1,[pc,#16] ; [0x12e35c] = 0x20132000 0x0012e34c: 6949 Ii LDR r1,[r1,#0x14] 0x0012e34e: 4602 .F MOV r2,r0 0x0012e350: 438a .C BICS r2,r2,r1 0x0012e352: 2a00 .* CMP r2,#0 0x0012e354: d1f8 .. BNE 0x12e348 ; clk_gate_cpu_g1 + 44 0x0012e356: e000 .. B 0x12e35a ; clk_gate_cpu_g1 + 62 0x0012e358: bf00 .. NOP 0x0012e35a: 4770 pG BX lr $d 0x0012e35c: 20132000 . . DCD 538124288 0x0012e360: aaaaaaaa .... DCD 2863311530 $t i.clk_gate_dmac_clr clk_gate_dmac_clr 0x0012e364: b500 .. PUSH {lr} 0x0012e366: bf00 .. NOP 0x0012e368: 4803 .H LDR r0,[pc,#12] ; [0x12e378] = 0x20120380 0x0012e36a: 6a00 .j LDR r0,[r0,#0x20] 0x0012e36c: 2800 .( CMP r0,#0 0x0012e36e: d102 .. BNE 0x12e376 ; clk_gate_dmac_clr + 18 0x0012e370: 2080 . MOVS r0,#0x80 0x0012e372: f7ffffd3 .... BL clk_gate_cpu_g1 ; 0x12e31c 0x0012e376: bd00 .. POP {pc} $d 0x0012e378: 20120380 ... DCD 538051456 $t i.clk_gate_dmac_set clk_gate_dmac_set 0x0012e37c: b500 .. PUSH {lr} 0x0012e37e: 2040 @ MOVS r0,#0x40 0x0012e380: f7ffffcc .... BL clk_gate_cpu_g1 ; 0x12e31c 0x0012e384: bd00 .. POP {pc} 0x0012e386: 0000 .. MOVS r0,r0 i.dmac_ch0_ctrl_h_pack dmac_ch0_ctrl_h_pack 0x0012e388: 0302 .. LSLS r2,r0,#12 0x0012e38a: 430a .C ORRS r2,r2,r1 0x0012e38c: 4b01 .K LDR r3,[pc,#4] ; [0x12e394] = 0x20120000 0x0012e38e: 61da .a STR r2,[r3,#0x1c] 0x0012e390: 4770 pG BX lr $d 0x0012e392: 0000 .. DCW 0 0x0012e394: 20120000 ... DCD 538050560 $t i.dmac_ch0_ctrl_l_pack dmac_ch0_ctrl_l_pack 0x0012e398: b5f0 .. PUSH {r4-r7,lr} 0x0012e39a: 9d06 .. LDR r5,[sp,#0x18] 0x0012e39c: 9c05 .. LDR r4,[sp,#0x14] 0x0012e39e: 0506 .. LSLS r6,r0,#20 0x0012e3a0: 038f .. LSLS r7,r1,#14 0x0012e3a2: 433e >C ORRS r6,r6,r7 0x0012e3a4: 02d7 .. LSLS r7,r2,#11 0x0012e3a6: 433e >C ORRS r6,r6,r7 0x0012e3a8: 025f _. LSLS r7,r3,#9 0x0012e3aa: 433e >C ORRS r6,r6,r7 0x0012e3ac: 01e7 .. LSLS r7,r4,#7 0x0012e3ae: 433e >C ORRS r6,r6,r7 0x0012e3b0: 012f /. LSLS r7,r5,#4 0x0012e3b2: 433e >C ORRS r6,r6,r7 0x0012e3b4: 9f07 .. LDR r7,[sp,#0x1c] 0x0012e3b6: 007f .. LSLS r7,r7,#1 0x0012e3b8: 433e >C ORRS r6,r6,r7 0x0012e3ba: 9f08 .. LDR r7,[sp,#0x20] 0x0012e3bc: 433e >C ORRS r6,r6,r7 0x0012e3be: 4f01 .O LDR r7,[pc,#4] ; [0x12e3c4] = 0x20120000 0x0012e3c0: 61be .a STR r6,[r7,#0x18] 0x0012e3c2: bdf0 .. POP {r4-r7,pc} $d 0x0012e3c4: 20120000 ... DCD 538050560 $t i.dmac_ch0_dar_l_set dmac_ch0_dar_l_set 0x0012e3c8: 4901 .I LDR r1,[pc,#4] ; [0x12e3d0] = 0x20120000 0x0012e3ca: 6088 .` STR r0,[r1,#8] 0x0012e3cc: 4770 pG BX lr $d 0x0012e3ce: 0000 .. DCW 0 0x0012e3d0: 20120000 ... DCD 538050560 $t i.dmac_ch0_sar_l_set dmac_ch0_sar_l_set 0x0012e3d4: 4901 .I LDR r1,[pc,#4] ; [0x12e3dc] = 0x20120000 0x0012e3d6: 6008 .` STR r0,[r1,#0] 0x0012e3d8: 4770 pG BX lr $d 0x0012e3da: 0000 .. DCW 0 0x0012e3dc: 20120000 ... DCD 538050560 $t i.dmac_chenreg_l_pack dmac_chenreg_l_pack 0x0012e3e0: 0202 .. LSLS r2,r0,#8 0x0012e3e2: 430a .C ORRS r2,r2,r1 0x0012e3e4: 4b01 .K LDR r3,[pc,#4] ; [0x12e3ec] = 0x20120380 0x0012e3e6: 621a .b STR r2,[r3,#0x20] 0x0012e3e8: 4770 pG BX lr $d 0x0012e3ea: 0000 .. DCW 0 0x0012e3ec: 20120380 ... DCD 538051456 $t i.dmac_clearblock_l_set dmac_clearblock_l_set 0x0012e3f0: 4901 .I LDR r1,[pc,#4] ; [0x12e3f8] = 0x20120340 0x0012e3f2: 6008 .` STR r0,[r1,#0] 0x0012e3f4: 4770 pG BX lr $d 0x0012e3f6: 0000 .. DCW 0 0x0012e3f8: 20120340 @.. DCD 538051392 $t i.dmac_qspi_gate dmac_qspi_gate 0x0012e3fc: b510 .. PUSH {r4,lr} 0x0012e3fe: 2011 . MOVS r0,#0x11 0x0012e400: 01c0 .. LSLS r0,r0,#7 0x0012e402: f000fb49 ..I. BL sysc_cpu_clkg1_set ; 0x12ea98 0x0012e406: bd10 .. POP {r4,pc} i.dmac_transfer_QSPI_RX dmac_transfer_QSPI_RX 0x0012e408: b57f .. PUSH {r0-r6,lr} 0x0012e40a: 4606 .F MOV r6,r0 0x0012e40c: 460c .F MOV r4,r1 0x0012e40e: 4615 .F MOV r5,r2 0x0012e410: f7ffffb4 .... BL clk_gate_dmac_set ; 0x12e37c 0x0012e414: 4630 0F MOV r0,r6 0x0012e416: f7ffffdd .... BL dmac_ch0_sar_l_set ; 0x12e3d4 0x0012e41a: 4620 F MOV r0,r4 0x0012e41c: f7ffffd4 .... BL dmac_ch0_dar_l_set ; 0x12e3c8 0x0012e420: 2000 . MOVS r0,#0 0x0012e422: 9000 .. STR r0,[sp,#0] 0x0012e424: 9001 .. STR r0,[sp,#4] 0x0012e426: 9002 .. STR r0,[sp,#8] 0x0012e428: 2302 .# MOVS r3,#2 0x0012e42a: 2204 ." MOVS r2,#4 0x0012e42c: 4611 .F MOV r1,r2 0x0012e42e: 9003 .. STR r0,[sp,#0xc] 0x0012e430: 4618 .F MOV r0,r3 0x0012e432: f7ffffb1 .... BL dmac_ch0_ctrl_l_pack ; 0x12e398 0x0012e436: b2a9 .. UXTH r1,r5 0x0012e438: 2000 . MOVS r0,#0 0x0012e43a: f7ffffa5 .... BL dmac_ch0_ctrl_h_pack ; 0x12e388 0x0012e43e: 2101 .! MOVS r1,#1 0x0012e440: 4608 .F MOV r0,r1 0x0012e442: f7ffffcd .... BL dmac_chenreg_l_pack ; 0x12e3e0 0x0012e446: bf00 .. NOP 0x0012e448: bf00 .. NOP 0x0012e44a: 4806 .H LDR r0,[pc,#24] ; [0x12e464] = 0x201202c0 0x0012e44c: 6880 .h LDR r0,[r0,#8] 0x0012e44e: 07c0 .. LSLS r0,r0,#31 0x0012e450: 0fc0 .. LSRS r0,r0,#31 0x0012e452: 2800 .( CMP r0,#0 0x0012e454: d0f8 .. BEQ 0x12e448 ; dmac_transfer_QSPI_RX + 64 0x0012e456: 2001 . MOVS r0,#1 0x0012e458: f7ffffca .... BL dmac_clearblock_l_set ; 0x12e3f0 0x0012e45c: f7ffff82 .... BL clk_gate_dmac_clr ; 0x12e364 0x0012e460: bd7f .. POP {r0-r6,pc} $d 0x0012e462: 0000 .. DCW 0 0x0012e464: 201202c0 ... DCD 538051264 $t i.dmac_transfer_QSPI_RX_32Bit dmac_transfer_QSPI_RX_32Bit 0x0012e468: b57f .. PUSH {r0-r6,lr} 0x0012e46a: 4606 .F MOV r6,r0 0x0012e46c: 460c .F MOV r4,r1 0x0012e46e: 4615 .F MOV r5,r2 0x0012e470: f7ffff84 .... BL clk_gate_dmac_set ; 0x12e37c 0x0012e474: 4630 0F MOV r0,r6 0x0012e476: f7ffffad .... BL dmac_ch0_sar_l_set ; 0x12e3d4 0x0012e47a: 4620 F MOV r0,r4 0x0012e47c: f7ffffa4 .... BL dmac_ch0_dar_l_set ; 0x12e3c8 0x0012e480: 2000 . MOVS r0,#0 0x0012e482: 2102 .! MOVS r1,#2 0x0012e484: 9101 .. STR r1,[sp,#4] 0x0012e486: 9000 .. STR r0,[sp,#0] 0x0012e488: 460b .F MOV r3,r1 0x0012e48a: 2204 ." MOVS r2,#4 0x0012e48c: 9102 .. STR r1,[sp,#8] 0x0012e48e: 9003 .. STR r0,[sp,#0xc] 0x0012e490: 4611 .F MOV r1,r2 0x0012e492: 2002 . MOVS r0,#2 0x0012e494: f7ffff80 .... BL dmac_ch0_ctrl_l_pack ; 0x12e398 0x0012e498: b2a9 .. UXTH r1,r5 0x0012e49a: 2000 . MOVS r0,#0 0x0012e49c: f7ffff74 ..t. BL dmac_ch0_ctrl_h_pack ; 0x12e388 0x0012e4a0: 2101 .! MOVS r1,#1 0x0012e4a2: 4608 .F MOV r0,r1 0x0012e4a4: f7ffff9c .... BL dmac_chenreg_l_pack ; 0x12e3e0 0x0012e4a8: bf00 .. NOP 0x0012e4aa: bf00 .. NOP 0x0012e4ac: 4805 .H LDR r0,[pc,#20] ; [0x12e4c4] = 0x201202c0 0x0012e4ae: 6880 .h LDR r0,[r0,#8] 0x0012e4b0: 07c0 .. LSLS r0,r0,#31 0x0012e4b2: 0fc0 .. LSRS r0,r0,#31 0x0012e4b4: 2800 .( CMP r0,#0 0x0012e4b6: d0f8 .. BEQ 0x12e4aa ; dmac_transfer_QSPI_RX_32Bit + 66 0x0012e4b8: 2001 . MOVS r0,#1 0x0012e4ba: f7ffff99 .... BL dmac_clearblock_l_set ; 0x12e3f0 0x0012e4be: f7ffff51 ..Q. BL clk_gate_dmac_clr ; 0x12e364 0x0012e4c2: bd7f .. POP {r0-r6,pc} $d 0x0012e4c4: 201202c0 ... DCD 538051264 $t i.flash_cache_init flash_cache_init 0x0012e4c8: b5f0 .. PUSH {r4-r7,lr} 0x0012e4ca: b085 .. SUB sp,sp,#0x14 0x0012e4cc: 4604 .F MOV r4,r0 0x0012e4ce: 2001 . MOVS r0,#1 0x0012e4d0: 0280 .. LSLS r0,r0,#10 0x0012e4d2: f7ffff23 ..#. BL clk_gate_cpu_g1 ; 0x12e31c 0x0012e4d6: 2000 . MOVS r0,#0 0x0012e4d8: f000fa94 .... BL qspi_ssi_en_setf ; 0x12ea04 0x0012e4dc: 2002 . MOVS r0,#2 0x0012e4de: 493b ;I LDR r1,[pc,#236] ; [0x12e5cc] = 0x20300000 0x0012e4e0: 6949 Ii LDR r1,[r1,#0x14] 0x0012e4e2: 0c09 .. LSRS r1,r1,#16 0x0012e4e4: 0409 .. LSLS r1,r1,#16 0x0012e4e6: 4301 .C ORRS r1,r1,r0 0x0012e4e8: 4a38 8J LDR r2,[pc,#224] ; [0x12e5cc] = 0x20300000 0x0012e4ea: 6151 Qa STR r1,[r2,#0x14] 0x0012e4ec: bf00 .. NOP 0x0012e4ee: 211f .! MOVS r1,#0x1f 0x0012e4f0: 2200 ." MOVS r2,#0 0x0012e4f2: 4613 .F MOV r3,r2 0x0012e4f4: 4615 .F MOV r5,r2 0x0012e4f6: 9201 .. STR r2,[sp,#4] 0x0012e4f8: 9202 .. STR r2,[sp,#8] 0x0012e4fa: 9203 .. STR r2,[sp,#0xc] 0x0012e4fc: 9000 .. STR r0,[sp,#0] 0x0012e4fe: 0546 F. LSLS r6,r0,#21 0x0012e500: 040f .. LSLS r7,r1,#16 0x0012e502: 433e >C ORRS r6,r6,r7 0x0012e504: 0317 .. LSLS r7,r2,#12 0x0012e506: 433e >C ORRS r6,r6,r7 0x0012e508: 02df .. LSLS r7,r3,#11 0x0012e50a: 433e >C ORRS r6,r6,r7 0x0012e50c: 02af .. LSLS r7,r5,#10 0x0012e50e: 433e >C ORRS r6,r6,r7 0x0012e510: 9f00 .. LDR r7,[sp,#0] 0x0012e512: 023f ?. LSLS r7,r7,#8 0x0012e514: 433e >C ORRS r6,r6,r7 0x0012e516: 9f01 .. LDR r7,[sp,#4] 0x0012e518: 01ff .. LSLS r7,r7,#7 0x0012e51a: 433e >C ORRS r6,r6,r7 0x0012e51c: 9f02 .. LDR r7,[sp,#8] 0x0012e51e: 01bf .. LSLS r7,r7,#6 0x0012e520: 433e >C ORRS r6,r6,r7 0x0012e522: 9f03 .. LDR r7,[sp,#0xc] 0x0012e524: 013f ?. LSLS r7,r7,#4 0x0012e526: 433e >C ORRS r6,r6,r7 0x0012e528: 4f28 (O LDR r7,[pc,#160] ; [0x12e5cc] = 0x20300000 0x0012e52a: 603e >` STR r6,[r7,#0] 0x0012e52c: bf00 .. NOP 0x0012e52e: 2007 . MOVS r0,#7 0x0012e530: 4639 9F MOV r1,r7 0x0012e532: 6048 H` STR r0,[r1,#4] 0x0012e534: bf00 .. NOP 0x0012e536: 2008 . MOVS r0,#8 0x0012e538: 2102 .! MOVS r1,#2 0x0012e53a: 2206 ." MOVS r2,#6 0x0012e53c: 2300 .# MOVS r3,#0 0x0012e53e: 02c5 .. LSLS r5,r0,#11 0x0012e540: 020e .. LSLS r6,r1,#8 0x0012e542: 4335 5C ORRS r5,r5,r6 0x0012e544: 0096 .. LSLS r6,r2,#2 0x0012e546: 4335 5C ORRS r5,r5,r6 0x0012e548: 431d .C ORRS r5,r5,r3 0x0012e54a: 4e20 N LDR r6,[pc,#128] ; [0x12e5cc] = 0x20300000 0x0012e54c: 36c0 .6 ADDS r6,r6,#0xc0 0x0012e54e: 6375 uc STR r5,[r6,#0x34] 0x0012e550: bf00 .. NOP 0x0012e552: 2000 . MOVS r0,#0 0x0012e554: 4639 9F MOV r1,r7 0x0012e556: 62c8 .b STR r0,[r1,#0x2c] 0x0012e558: bf00 .. NOP 0x0012e55a: 2001 . MOVS r0,#1 0x0012e55c: 6108 .a STR r0,[r1,#0x10] 0x0012e55e: bf00 .. NOP 0x0012e560: f000fa50 ..P. BL qspi_ssi_en_setf ; 0x12ea04 0x0012e564: bf00 .. NOP 0x0012e566: 481a .H LDR r0,[pc,#104] ; [0x12e5d0] = 0x20121000 0x0012e568: 6044 D` STR r4,[r0,#4] 0x0012e56a: bf00 .. NOP 0x0012e56c: 4817 .H LDR r0,[pc,#92] ; [0x12e5cc] = 0x20300000 0x0012e56e: 3060 `0 ADDS r0,r0,#0x60 0x0012e570: 4917 .I LDR r1,[pc,#92] ; [0x12e5d0] = 0x20121000 0x0012e572: 6088 .` STR r0,[r1,#8] 0x0012e574: bf00 .. NOP 0x0012e576: 2027 ' MOVS r0,#0x27 0x0012e578: 01c0 .. LSLS r0,r0,#7 0x0012e57a: 2100 .! MOVS r1,#0 0x0012e57c: 460a .F MOV r2,r1 0x0012e57e: 460b .F MOV r3,r1 0x0012e580: 256b k% MOVS r5,#0x6b 0x0012e582: 0406 .. LSLS r6,r0,#16 0x0012e584: 028f .. LSLS r7,r1,#10 0x0012e586: 433e >C ORRS r6,r6,r7 0x0012e588: 0257 W. LSLS r7,r2,#9 0x0012e58a: 433e >C ORRS r6,r6,r7 0x0012e58c: 021f .. LSLS r7,r3,#8 0x0012e58e: 433e >C ORRS r6,r6,r7 0x0012e590: 432e .C ORRS r6,r6,r5 0x0012e592: 4f0f .O LDR r7,[pc,#60] ; [0x12e5d0] = 0x20121000 0x0012e594: 60fe .` STR r6,[r7,#0xc] 0x0012e596: bf00 .. NOP 0x0012e598: 2001 . MOVS r0,#1 0x0012e59a: f7fffeb3 .... BL cache_reg_cache_en_set ; 0x12e304 0x0012e59e: 2001 . MOVS r0,#1 0x0012e5a0: 4639 9F MOV r1,r7 0x0012e5a2: 6188 .a STR r0,[r1,#0x18] 0x0012e5a4: bf00 .. NOP 0x0012e5a6: f7fffeb3 .... BL cache_reg_flush_en_set ; 0x12e310 0x0012e5aa: 2001 . MOVS r0,#1 0x0012e5ac: 4909 .I LDR r1,[pc,#36] ; [0x12e5d4] = 0x20132040 0x0012e5ae: 6809 .h LDR r1,[r1,#0] 0x0012e5b0: 4381 .C BICS r1,r1,r0 0x0012e5b2: 4301 .C ORRS r1,r1,r0 0x0012e5b4: 4a07 .J LDR r2,[pc,#28] ; [0x12e5d4] = 0x20132040 0x0012e5b6: 6011 .` STR r1,[r2,#0] 0x0012e5b8: bf00 .. NOP 0x0012e5ba: bf00 .. NOP 0x0012e5bc: bf00 .. NOP 0x0012e5be: 4804 .H LDR r0,[pc,#16] ; [0x12e5d0] = 0x20121000 0x0012e5c0: 69c0 .i LDR r0,[r0,#0x1c] 0x0012e5c2: 2800 .( CMP r0,#0 0x0012e5c4: d1fa .. BNE 0x12e5bc ; flash_cache_init + 244 0x0012e5c6: b005 .. ADD sp,sp,#0x14 0x0012e5c8: bdf0 .. POP {r4-r7,pc} $d 0x0012e5ca: 0000 .. DCW 0 0x0012e5cc: 20300000 ..0 DCD 540016640 0x0012e5d0: 20121000 ... DCD 538054656 0x0012e5d4: 20132040 @ . DCD 538124352 $t i.flash_quad_read flash_quad_read 0x0012e5d8: b5fe .. PUSH {r1-r7,lr} 0x0012e5da: 4604 .F MOV r4,r0 0x0012e5dc: 460d .F MOV r5,r1 0x0012e5de: 4616 .F MOV r6,r2 0x0012e5e0: 08af .. LSRS r7,r5,#2 0x0012e5e2: 07a8 .. LSLS r0,r5,#30 0x0012e5e4: 0f80 .. LSRS r0,r0,#30 0x0012e5e6: 9001 .. STR r0,[sp,#4] 0x0012e5e8: 2008 . MOVS r0,#8 0x0012e5ea: 4623 #F MOV r3,r4 0x0012e5ec: 226b k" MOVS r2,#0x6b 0x0012e5ee: 4639 9F MOV r1,r7 0x0012e5f0: 9000 .. STR r0,[sp,#0] 0x0012e5f2: 4630 0F MOV r0,r6 0x0012e5f4: f000f8ac .... BL qspi_flash_quad_read_data ; 0x12e750 0x0012e5f8: 00b8 .. LSLS r0,r7,#2 0x0012e5fa: 1836 6. ADDS r6,r6,r0 0x0012e5fc: 00b8 .. LSLS r0,r7,#2 0x0012e5fe: 1904 .. ADDS r4,r0,r4 0x0012e600: 9801 .. LDR r0,[sp,#4] 0x0012e602: 2800 .( CMP r0,#0 0x0012e604: d012 .. BEQ 0x12e62c ; flash_quad_read + 84 0x0012e606: 2103 .! MOVS r1,#3 0x0012e608: 4668 hF MOV r0,sp 0x0012e60a: 7001 .p STRB r1,[r0,#0] 0x0012e60c: 0220 . LSLS r0,r4,#8 0x0012e60e: 0e01 .. LSRS r1,r0,#24 0x0012e610: 4668 hF MOV r0,sp 0x0012e612: 7041 Ap STRB r1,[r0,#1] 0x0012e614: 0420 . LSLS r0,r4,#16 0x0012e616: 0e01 .. LSRS r1,r0,#24 0x0012e618: 4668 hF MOV r0,sp 0x0012e61a: 7081 .p STRB r1,[r0,#2] 0x0012e61c: 70c4 .p STRB r4,[r0,#3] 0x0012e61e: 2304 .# MOVS r3,#4 0x0012e620: 466a jF MOV r2,sp 0x0012e622: 4630 0F MOV r0,r6 0x0012e624: 9901 .. LDR r1,[sp,#4] 0x0012e626: f000f973 ..s. BL qspi_read ; 0x12e910 0x0012e62a: bf00 .. NOP 0x0012e62c: 2000 . MOVS r0,#0 0x0012e62e: bdfe .. POP {r1-r7,pc} i.flash_read flash_read 0x0012e630: b5fe .. PUSH {r1-r7,lr} 0x0012e632: 4604 .F MOV r4,r0 0x0012e634: 460d .F MOV r5,r1 0x0012e636: 4616 .F MOV r6,r2 0x0012e638: 08af .. LSRS r7,r5,#2 0x0012e63a: 07a8 .. LSLS r0,r5,#30 0x0012e63c: 0f80 .. LSRS r0,r0,#30 0x0012e63e: 9001 .. STR r0,[sp,#4] 0x0012e640: 4623 #F MOV r3,r4 0x0012e642: 2203 ." MOVS r2,#3 0x0012e644: 4639 9F MOV r1,r7 0x0012e646: 4630 0F MOV r0,r6 0x0012e648: f000f8f8 .... BL qspi_flash_read_data ; 0x12e83c 0x0012e64c: 00b8 .. LSLS r0,r7,#2 0x0012e64e: 1836 6. ADDS r6,r6,r0 0x0012e650: 00b8 .. LSLS r0,r7,#2 0x0012e652: 1904 .. ADDS r4,r0,r4 0x0012e654: 9801 .. LDR r0,[sp,#4] 0x0012e656: 2800 .( CMP r0,#0 0x0012e658: d012 .. BEQ 0x12e680 ; flash_read + 80 0x0012e65a: 2103 .! MOVS r1,#3 0x0012e65c: 4668 hF MOV r0,sp 0x0012e65e: 7001 .p STRB r1,[r0,#0] 0x0012e660: 0220 . LSLS r0,r4,#8 0x0012e662: 0e01 .. LSRS r1,r0,#24 0x0012e664: 4668 hF MOV r0,sp 0x0012e666: 7041 Ap STRB r1,[r0,#1] 0x0012e668: 0420 . LSLS r0,r4,#16 0x0012e66a: 0e01 .. LSRS r1,r0,#24 0x0012e66c: 4668 hF MOV r0,sp 0x0012e66e: 7081 .p STRB r1,[r0,#2] 0x0012e670: 70c4 .p STRB r4,[r0,#3] 0x0012e672: 2304 .# MOVS r3,#4 0x0012e674: 466a jF MOV r2,sp 0x0012e676: 4630 0F MOV r0,r6 0x0012e678: 9901 .. LDR r1,[sp,#4] 0x0012e67a: f000f949 ..I. BL qspi_read ; 0x12e910 0x0012e67e: bf00 .. NOP 0x0012e680: 2000 . MOVS r0,#0 0x0012e682: bdfe .. POP {r1-r7,pc} i.image_read image_read 0x0012e684: b5f8 .. PUSH {r3-r7,lr} 0x0012e686: 4605 .F MOV r5,r0 0x0012e688: 460c .F MOV r4,r1 0x0012e68a: 6a20 j LDR r0,[r4,#0x20] 0x0012e68c: 2800 .( CMP r0,#0 0x0012e68e: d002 .. BEQ 0x12e696 ; image_read + 18 0x0012e690: 2001 . MOVS r0,#1 0x0012e692: 04c0 .. LSLS r0,r0,#19 0x0012e694: e000 .. B 0x12e698 ; image_read + 20 0x0012e696: 2000 . MOVS r0,#0 0x0012e698: 9000 .. STR r0,[sp,#0] 0x0012e69a: 6921 !i LDR r1,[r4,#0x10] 0x0012e69c: 9800 .. LDR r0,[sp,#0] 0x0012e69e: 180e .. ADDS r6,r1,r0 0x0012e6a0: 2701 .' MOVS r7,#1 0x0012e6a2: 053f ?. LSLS r7,r7,#20 0x0012e6a4: 463a :F MOV r2,r7 0x0012e6a6: 4630 0F MOV r0,r6 0x0012e6a8: 6961 ai LDR r1,[r4,#0x14] 0x0012e6aa: 47a8 .G BLX r5 0x0012e6ac: bdf8 .. POP {r3-r7,pc} 0x0012e6ae: 0000 .. MOVS r0,r0 i.peri_gate peri_gate 0x0012e6b0: b510 .. PUSH {r4,lr} 0x0012e6b2: 4807 .H LDR r0,[pc,#28] ; [0x12e6d0] = 0x2aaa 0x0012e6b4: 4907 .I LDR r1,[pc,#28] ; [0x12e6d4] = 0x20149000 0x0012e6b6: 6148 Ha STR r0,[r1,#0x14] 0x0012e6b8: bf00 .. NOP 0x0012e6ba: 4807 .H LDR r0,[pc,#28] ; [0x12e6d8] = 0xaaaaaaa 0x0012e6bc: 6108 .a STR r0,[r1,#0x10] 0x0012e6be: bf00 .. NOP 0x0012e6c0: 2080 . MOVS r0,#0x80 0x0012e6c2: 4906 .I LDR r1,[pc,#24] ; [0x12e6dc] = 0x20132000 0x0012e6c4: 6108 .a STR r0,[r1,#0x10] 0x0012e6c6: bf00 .. NOP 0x0012e6c8: 4805 .H LDR r0,[pc,#20] ; [0x12e6e0] = 0xaa220 0x0012e6ca: f000f9e5 .... BL sysc_cpu_clkg1_set ; 0x12ea98 0x0012e6ce: bd10 .. POP {r4,pc} $d 0x0012e6d0: 00002aaa .*.. DCD 10922 0x0012e6d4: 20149000 ... DCD 538218496 0x0012e6d8: 0aaaaaaa .... DCD 178956970 0x0012e6dc: 20132000 . . DCD 538124288 0x0012e6e0: 000aa220 ... DCD 696864 $t i.qspi_ctrlr0_pack qspi_ctrlr0_pack 0x0012e6e4: b5f0 .. PUSH {r4-r7,lr} 0x0012e6e6: 9d06 .. LDR r5,[sp,#0x18] 0x0012e6e8: 9c05 .. LDR r4,[sp,#0x14] 0x0012e6ea: 0546 F. LSLS r6,r0,#21 0x0012e6ec: 040f .. LSLS r7,r1,#16 0x0012e6ee: 433e >C ORRS r6,r6,r7 0x0012e6f0: 0317 .. LSLS r7,r2,#12 0x0012e6f2: 433e >C ORRS r6,r6,r7 0x0012e6f4: 02df .. LSLS r7,r3,#11 0x0012e6f6: 433e >C ORRS r6,r6,r7 0x0012e6f8: 02a7 .. LSLS r7,r4,#10 0x0012e6fa: 433e >C ORRS r6,r6,r7 0x0012e6fc: 022f /. LSLS r7,r5,#8 0x0012e6fe: 433e >C ORRS r6,r6,r7 0x0012e700: 9f07 .. LDR r7,[sp,#0x1c] 0x0012e702: 01ff .. LSLS r7,r7,#7 0x0012e704: 433e >C ORRS r6,r6,r7 0x0012e706: 9f08 .. LDR r7,[sp,#0x20] 0x0012e708: 01bf .. LSLS r7,r7,#6 0x0012e70a: 433e >C ORRS r6,r6,r7 0x0012e70c: 9f09 .. LDR r7,[sp,#0x24] 0x0012e70e: 013f ?. LSLS r7,r7,#4 0x0012e710: 433e >C ORRS r6,r6,r7 0x0012e712: 4f01 .O LDR r7,[pc,#4] ; [0x12e718] = 0x20300000 0x0012e714: 603e >` STR r6,[r7,#0] 0x0012e716: bdf0 .. POP {r4-r7,pc} $d 0x0012e718: 20300000 ..0 DCD 540016640 $t i.qspi_ctrlr1_pack qspi_ctrlr1_pack 0x0012e71c: 4901 .I LDR r1,[pc,#4] ; [0x12e724] = 0x20300000 0x0012e71e: 6048 H` STR r0,[r1,#4] 0x0012e720: 4770 pG BX lr $d 0x0012e722: 0000 .. DCW 0 0x0012e724: 20300000 ..0 DCD 540016640 $t i.qspi_dmacr_pack qspi_dmacr_pack 0x0012e728: 0042 B. LSLS r2,r0,#1 0x0012e72a: 430a .C ORRS r2,r2,r1 0x0012e72c: 4b01 .K LDR r3,[pc,#4] ; [0x12e734] = 0x20300040 0x0012e72e: 60da .` STR r2,[r3,#0xc] 0x0012e730: 4770 pG BX lr $d 0x0012e732: 0000 .. DCW 0 0x0012e734: 20300040 @.0 DCD 540016704 $t i.qspi_dmardlr_set qspi_dmardlr_set 0x0012e738: 4901 .I LDR r1,[pc,#4] ; [0x12e740] = 0x20300040 0x0012e73a: 6148 Ha STR r0,[r1,#0x14] 0x0012e73c: 4770 pG BX lr $d 0x0012e73e: 0000 .. DCW 0 0x0012e740: 20300040 @.0 DCD 540016704 $t i.qspi_dr_set qspi_dr_set 0x0012e744: 4901 .I LDR r1,[pc,#4] ; [0x12e74c] = 0x20300040 0x0012e746: 6208 .b STR r0,[r1,#0x20] 0x0012e748: 4770 pG BX lr $d 0x0012e74a: 0000 .. DCW 0 0x0012e74c: 20300040 @.0 DCD 540016704 $t i.qspi_flash_quad_read_data qspi_flash_quad_read_data 0x0012e750: b5ff .. PUSH {r0-r7,lr} 0x0012e752: b089 .. SUB sp,sp,#0x24 0x0012e754: 4604 .F MOV r4,r0 0x0012e756: 460d .F MOV r5,r1 0x0012e758: 9e12 .. LDR r6,[sp,#0x48] 0x0012e75a: 2001 . MOVS r0,#1 0x0012e75c: 0280 .. LSLS r0,r0,#10 0x0012e75e: f7fffddd .... BL clk_gate_cpu_g1 ; 0x12e31c 0x0012e762: 4933 3I LDR r1,[pc,#204] ; [0x12e830] = 0xfff 0x0012e764: 4628 (F MOV r0,r5 0x0012e766: f7fffc55 ..U. BL __aeabi_uidiv ; 0x12e014 0x0012e76a: b280 .. UXTH r0,r0 0x0012e76c: 9008 .. STR r0,[sp,#0x20] 0x0012e76e: 4930 0I LDR r1,[pc,#192] ; [0x12e830] = 0xfff 0x0012e770: 4628 (F MOV r0,r5 0x0012e772: f7fffc4f ..O. BL __aeabi_uidiv ; 0x12e014 0x0012e776: 9107 .. STR r1,[sp,#0x1c] 0x0012e778: 2000 . MOVS r0,#0 0x0012e77a: f000f937 ..7. BL qspi_ssi_en_setf ; 0x12e9ec 0x0012e77e: 2000 . MOVS r0,#0 0x0012e780: f000f92e .... BL qspi_ser_set ; 0x12e9e0 0x0012e784: 2000 . MOVS r0,#0 0x0012e786: 2302 .# MOVS r3,#2 0x0012e788: 9002 .. STR r0,[sp,#8] 0x0012e78a: 9003 .. STR r0,[sp,#0xc] 0x0012e78c: 9004 .. STR r0,[sp,#0x10] 0x0012e78e: 9301 .. STR r3,[sp,#4] 0x0012e790: 9000 .. STR r0,[sp,#0] 0x0012e792: 4603 .F MOV r3,r0 0x0012e794: 4602 .F MOV r2,r0 0x0012e796: 211f .! MOVS r1,#0x1f 0x0012e798: 2002 . MOVS r0,#2 0x0012e79a: f7ffffa3 .... BL qspi_ctrlr0_pack ; 0x12e6e4 0x0012e79e: 1e69 i. SUBS r1,r5,#1 0x0012e7a0: b288 .. UXTH r0,r1 0x0012e7a2: f7ffffbb .... BL qspi_ctrlr1_pack ; 0x12e71c 0x0012e7a6: 2002 . MOVS r0,#2 0x0012e7a8: 2106 .! MOVS r1,#6 0x0012e7aa: 2700 .' MOVS r7,#0 0x0012e7ac: 02f2 .. LSLS r2,r6,#11 0x0012e7ae: 0203 .. LSLS r3,r0,#8 0x0012e7b0: 431a .C ORRS r2,r2,r3 0x0012e7b2: 008b .. LSLS r3,r1,#2 0x0012e7b4: 431a .C ORRS r2,r2,r3 0x0012e7b6: 433a :C ORRS r2,r2,r7 0x0012e7b8: 4b1e .K LDR r3,[pc,#120] ; [0x12e834] = 0x203000c0 0x0012e7ba: 635a Zc STR r2,[r3,#0x34] 0x0012e7bc: bf00 .. NOP 0x0012e7be: 201f . MOVS r0,#0x1f 0x0012e7c0: f7ffffba .... BL qspi_dmardlr_set ; 0x12e738 0x0012e7c4: 2100 .! MOVS r1,#0 0x0012e7c6: 4608 .F MOV r0,r1 0x0012e7c8: f7ffffae .... BL qspi_dmacr_pack ; 0x12e728 0x0012e7cc: 2101 .! MOVS r1,#1 0x0012e7ce: 2000 . MOVS r0,#0 0x0012e7d0: f7ffffaa .... BL qspi_dmacr_pack ; 0x12e728 0x0012e7d4: 2001 . MOVS r0,#1 0x0012e7d6: f000f921 ..!. BL qspi_ssienr_set ; 0x12ea1c 0x0012e7da: 980b .. LDR r0,[sp,#0x2c] 0x0012e7dc: f7ffffb2 .... BL qspi_dr_set ; 0x12e744 0x0012e7e0: 980c .. LDR r0,[sp,#0x30] 0x0012e7e2: f7ffffaf .... BL qspi_dr_set ; 0x12e744 0x0012e7e6: 2001 . MOVS r0,#1 0x0012e7e8: f000f8fa .... BL qspi_ser_set ; 0x12e9e0 0x0012e7ec: 2000 . MOVS r0,#0 0x0012e7ee: 9006 .. STR r0,[sp,#0x18] 0x0012e7f0: e00b .. B 0x12e80a ; qspi_flash_quad_read_data + 186 0x0012e7f2: 4810 .H LDR r0,[pc,#64] ; [0x12e834] = 0x203000c0 0x0012e7f4: 302c ,0 ADDS r0,r0,#0x2c 0x0012e7f6: 4a0e .J LDR r2,[pc,#56] ; [0x12e830] = 0xfff 0x0012e7f8: 4621 !F MOV r1,r4 0x0012e7fa: f7fffe35 ..5. BL dmac_transfer_QSPI_RX_32Bit ; 0x12e468 0x0012e7fe: 480e .H LDR r0,[pc,#56] ; [0x12e838] = 0x3ffc 0x0012e800: 1824 $. ADDS r4,r4,r0 0x0012e802: 9806 .. LDR r0,[sp,#0x18] 0x0012e804: 1c40 @. ADDS r0,r0,#1 0x0012e806: b280 .. UXTH r0,r0 0x0012e808: 9006 .. STR r0,[sp,#0x18] 0x0012e80a: 9908 .. LDR r1,[sp,#0x20] 0x0012e80c: 9806 .. LDR r0,[sp,#0x18] 0x0012e80e: 4288 .B CMP r0,r1 0x0012e810: dbef .. BLT 0x12e7f2 ; qspi_flash_quad_read_data + 162 0x0012e812: 4808 .H LDR r0,[pc,#32] ; [0x12e834] = 0x203000c0 0x0012e814: 302c ,0 ADDS r0,r0,#0x2c 0x0012e816: 4621 !F MOV r1,r4 0x0012e818: 9a07 .. LDR r2,[sp,#0x1c] 0x0012e81a: f7fffe25 ..%. BL dmac_transfer_QSPI_RX_32Bit ; 0x12e468 0x0012e81e: 2000 . MOVS r0,#0 0x0012e820: f000f8fc .... BL qspi_ssienr_set ; 0x12ea1c 0x0012e824: 2001 . MOVS r0,#1 0x0012e826: 02c0 .. LSLS r0,r0,#11 0x0012e828: f7fffd78 ..x. BL clk_gate_cpu_g1 ; 0x12e31c 0x0012e82c: b00d .. ADD sp,sp,#0x34 0x0012e82e: bdf0 .. POP {r4-r7,pc} $d 0x0012e830: 00000fff .... DCD 4095 0x0012e834: 203000c0 ..0 DCD 540016832 0x0012e838: 00003ffc .?.. DCD 16380 $t i.qspi_flash_read_data qspi_flash_read_data 0x0012e83c: b5f0 .. PUSH {r4-r7,lr} 0x0012e83e: b089 .. SUB sp,sp,#0x24 0x0012e840: 4604 .F MOV r4,r0 0x0012e842: 460d .F MOV r5,r1 0x0012e844: 4616 .F MOV r6,r2 0x0012e846: 461f .F MOV r7,r3 0x0012e848: 2001 . MOVS r0,#1 0x0012e84a: 0280 .. LSLS r0,r0,#10 0x0012e84c: f7fffd66 ..f. BL clk_gate_cpu_g1 ; 0x12e31c 0x0012e850: 492c ,I LDR r1,[pc,#176] ; [0x12e904] = 0xfff 0x0012e852: 4628 (F MOV r0,r5 0x0012e854: f7fffbde .... BL __aeabi_uidiv ; 0x12e014 0x0012e858: b280 .. UXTH r0,r0 0x0012e85a: 9008 .. STR r0,[sp,#0x20] 0x0012e85c: 4929 )I LDR r1,[pc,#164] ; [0x12e904] = 0xfff 0x0012e85e: 4628 (F MOV r0,r5 0x0012e860: f7fffbd8 .... BL __aeabi_uidiv ; 0x12e014 0x0012e864: 9107 .. STR r1,[sp,#0x1c] 0x0012e866: 2000 . MOVS r0,#0 0x0012e868: f000f8c0 .... BL qspi_ssi_en_setf ; 0x12e9ec 0x0012e86c: 2000 . MOVS r0,#0 0x0012e86e: f000f8b7 .... BL qspi_ser_set ; 0x12e9e0 0x0012e872: 2000 . MOVS r0,#0 0x0012e874: 2303 .# MOVS r3,#3 0x0012e876: 9002 .. STR r0,[sp,#8] 0x0012e878: 9003 .. STR r0,[sp,#0xc] 0x0012e87a: 9004 .. STR r0,[sp,#0x10] 0x0012e87c: 9301 .. STR r3,[sp,#4] 0x0012e87e: 9000 .. STR r0,[sp,#0] 0x0012e880: 4603 .F MOV r3,r0 0x0012e882: 4602 .F MOV r2,r0 0x0012e884: 211f .! MOVS r1,#0x1f 0x0012e886: f7ffff2d ..-. BL qspi_ctrlr0_pack ; 0x12e6e4 0x0012e88a: 1e69 i. SUBS r1,r5,#1 0x0012e88c: b288 .. UXTH r0,r1 0x0012e88e: f7ffff45 ..E. BL qspi_ctrlr1_pack ; 0x12e71c 0x0012e892: 201f . MOVS r0,#0x1f 0x0012e894: f7ffff50 ..P. BL qspi_dmardlr_set ; 0x12e738 0x0012e898: 2100 .! MOVS r1,#0 0x0012e89a: 4608 .F MOV r0,r1 0x0012e89c: f7ffff44 ..D. BL qspi_dmacr_pack ; 0x12e728 0x0012e8a0: 2101 .! MOVS r1,#1 0x0012e8a2: 2000 . MOVS r0,#0 0x0012e8a4: f7ffff40 ..@. BL qspi_dmacr_pack ; 0x12e728 0x0012e8a8: 2001 . MOVS r0,#1 0x0012e8aa: f000f8b7 .... BL qspi_ssienr_set ; 0x12ea1c 0x0012e8ae: 0239 9. LSLS r1,r7,#8 0x0012e8b0: 0a09 .. LSRS r1,r1,#8 0x0012e8b2: 0632 2. LSLS r2,r6,#24 0x0012e8b4: 4311 .C ORRS r1,r1,r2 0x0012e8b6: 4608 .F MOV r0,r1 0x0012e8b8: f7ffff44 ..D. BL qspi_dr_set ; 0x12e744 0x0012e8bc: 2001 . MOVS r0,#1 0x0012e8be: f000f88f .... BL qspi_ser_set ; 0x12e9e0 0x0012e8c2: 2000 . MOVS r0,#0 0x0012e8c4: 9006 .. STR r0,[sp,#0x18] 0x0012e8c6: e00a .. B 0x12e8de ; qspi_flash_read_data + 162 0x0012e8c8: 480f .H LDR r0,[pc,#60] ; [0x12e908] = 0x203000ec 0x0012e8ca: 4a0e .J LDR r2,[pc,#56] ; [0x12e904] = 0xfff 0x0012e8cc: 4621 !F MOV r1,r4 0x0012e8ce: f7fffdcb .... BL dmac_transfer_QSPI_RX_32Bit ; 0x12e468 0x0012e8d2: 480e .H LDR r0,[pc,#56] ; [0x12e90c] = 0x3ffc 0x0012e8d4: 1824 $. ADDS r4,r4,r0 0x0012e8d6: 9806 .. LDR r0,[sp,#0x18] 0x0012e8d8: 1c40 @. ADDS r0,r0,#1 0x0012e8da: b280 .. UXTH r0,r0 0x0012e8dc: 9006 .. STR r0,[sp,#0x18] 0x0012e8de: 9908 .. LDR r1,[sp,#0x20] 0x0012e8e0: 9806 .. LDR r0,[sp,#0x18] 0x0012e8e2: 4288 .B CMP r0,r1 0x0012e8e4: dbf0 .. BLT 0x12e8c8 ; qspi_flash_read_data + 140 0x0012e8e6: 4808 .H LDR r0,[pc,#32] ; [0x12e908] = 0x203000ec 0x0012e8e8: 4621 !F MOV r1,r4 0x0012e8ea: 9a07 .. LDR r2,[sp,#0x1c] 0x0012e8ec: f7fffdbc .... BL dmac_transfer_QSPI_RX_32Bit ; 0x12e468 0x0012e8f0: 2000 . MOVS r0,#0 0x0012e8f2: f000f893 .... BL qspi_ssienr_set ; 0x12ea1c 0x0012e8f6: 2001 . MOVS r0,#1 0x0012e8f8: 02c0 .. LSLS r0,r0,#11 0x0012e8fa: f7fffd0f .... BL clk_gate_cpu_g1 ; 0x12e31c 0x0012e8fe: b009 .. ADD sp,sp,#0x24 0x0012e900: bdf0 .. POP {r4-r7,pc} $d 0x0012e902: 0000 .. DCW 0 0x0012e904: 00000fff .... DCD 4095 0x0012e908: 203000ec ..0 DCD 540016876 0x0012e90c: 00003ffc .?.. DCD 16380 $t i.qspi_read qspi_read 0x0012e910: b5ff .. PUSH {r0-r7,lr} 0x0012e912: b085 .. SUB sp,sp,#0x14 0x0012e914: 4605 .F MOV r5,r0 0x0012e916: 460c .F MOV r4,r1 0x0012e918: 4617 .F MOV r7,r2 0x0012e91a: 2001 . MOVS r0,#1 0x0012e91c: 0280 .. LSLS r0,r0,#10 0x0012e91e: f7fffcfd .... BL clk_gate_cpu_g1 ; 0x12e31c 0x0012e922: 2000 . MOVS r0,#0 0x0012e924: f000f862 ..b. BL qspi_ssi_en_setf ; 0x12e9ec 0x0012e928: 2000 . MOVS r0,#0 0x0012e92a: f000f859 ..Y. BL qspi_ser_set ; 0x12e9e0 0x0012e92e: 2000 . MOVS r0,#0 0x0012e930: 2303 .# MOVS r3,#3 0x0012e932: 9002 .. STR r0,[sp,#8] 0x0012e934: 9003 .. STR r0,[sp,#0xc] 0x0012e936: 9004 .. STR r0,[sp,#0x10] 0x0012e938: 9301 .. STR r3,[sp,#4] 0x0012e93a: 9000 .. STR r0,[sp,#0] 0x0012e93c: 4603 .F MOV r3,r0 0x0012e93e: 4602 .F MOV r2,r0 0x0012e940: 2107 .! MOVS r1,#7 0x0012e942: f7fffecf .... BL qspi_ctrlr0_pack ; 0x12e6e4 0x0012e946: 1e61 a. SUBS r1,r4,#1 0x0012e948: b288 .. UXTH r0,r1 0x0012e94a: f7fffee7 .... BL qspi_ctrlr1_pack ; 0x12e71c 0x0012e94e: 2001 . MOVS r0,#1 0x0012e950: f000f864 ..d. BL qspi_ssienr_set ; 0x12ea1c 0x0012e954: 2600 .& MOVS r6,#0 0x0012e956: e005 .. B 0x12e964 ; qspi_read + 84 0x0012e958: 7838 8x LDRB r0,[r7,#0] 0x0012e95a: 1c7f .. ADDS r7,r7,#1 0x0012e95c: f7fffef2 .... BL qspi_dr_set ; 0x12e744 0x0012e960: 1c70 p. ADDS r0,r6,#1 0x0012e962: b286 .. UXTH r6,r0 0x0012e964: 9808 .. LDR r0,[sp,#0x20] 0x0012e966: 4286 .B CMP r6,r0 0x0012e968: dbf6 .. BLT 0x12e958 ; qspi_read + 72 0x0012e96a: 2001 . MOVS r0,#1 0x0012e96c: f000f838 ..8. BL qspi_ser_set ; 0x12e9e0 0x0012e970: 2c40 @, CMP r4,#0x40 0x0012e972: d819 .. BHI 0x12e9a8 ; qspi_read + 152 0x0012e974: bf00 .. NOP 0x0012e976: f000f857 ..W. BL qspi_tfe_getf ; 0x12ea28 0x0012e97a: 2801 .( CMP r0,#1 0x0012e97c: d1fb .. BNE 0x12e976 ; qspi_read + 102 0x0012e97e: bf00 .. NOP 0x0012e980: bf00 .. NOP 0x0012e982: 4816 .H LDR r0,[pc,#88] ; [0x12e9dc] = 0x20300000 0x0012e984: 6a80 .j LDR r0,[r0,#0x28] 0x0012e986: 07c0 .. LSLS r0,r0,#31 0x0012e988: 0fc0 .. LSRS r0,r0,#31 0x0012e98a: 2800 .( CMP r0,#0 0x0012e98c: d1f8 .. BNE 0x12e980 ; qspi_read + 112 0x0012e98e: 2600 .& MOVS r6,#0 0x0012e990: e007 .. B 0x12e9a2 ; qspi_read + 146 0x0012e992: bf00 .. NOP 0x0012e994: 4811 .H LDR r0,[pc,#68] ; [0x12e9dc] = 0x20300000 0x0012e996: 3040 @0 ADDS r0,r0,#0x40 0x0012e998: 6a00 .j LDR r0,[r0,#0x20] 0x0012e99a: 7028 (p STRB r0,[r5,#0] 0x0012e99c: 1c6d m. ADDS r5,r5,#1 0x0012e99e: 1c70 p. ADDS r0,r6,#1 0x0012e9a0: b286 .. UXTH r6,r0 0x0012e9a2: 42a6 .B CMP r6,r4 0x0012e9a4: d3f5 .. BCC 0x12e992 ; qspi_read + 130 0x0012e9a6: e010 .. B 0x12e9ca ; qspi_read + 186 0x0012e9a8: 201f . MOVS r0,#0x1f 0x0012e9aa: f7fffec5 .... BL qspi_dmardlr_set ; 0x12e738 0x0012e9ae: 2100 .! MOVS r1,#0 0x0012e9b0: 4608 .F MOV r0,r1 0x0012e9b2: f7fffeb9 .... BL qspi_dmacr_pack ; 0x12e728 0x0012e9b6: 2101 .! MOVS r1,#1 0x0012e9b8: 2000 . MOVS r0,#0 0x0012e9ba: f7fffeb5 .... BL qspi_dmacr_pack ; 0x12e728 0x0012e9be: 4807 .H LDR r0,[pc,#28] ; [0x12e9dc] = 0x20300000 0x0012e9c0: 3060 `0 ADDS r0,r0,#0x60 0x0012e9c2: 4622 "F MOV r2,r4 0x0012e9c4: 4629 )F MOV r1,r5 0x0012e9c6: f7fffd1f .... BL dmac_transfer_QSPI_RX ; 0x12e408 0x0012e9ca: 2000 . MOVS r0,#0 0x0012e9cc: f000f826 ..&. BL qspi_ssienr_set ; 0x12ea1c 0x0012e9d0: 2001 . MOVS r0,#1 0x0012e9d2: 02c0 .. LSLS r0,r0,#11 0x0012e9d4: f7fffca2 .... BL clk_gate_cpu_g1 ; 0x12e31c 0x0012e9d8: b009 .. ADD sp,sp,#0x24 0x0012e9da: bdf0 .. POP {r4-r7,pc} $d 0x0012e9dc: 20300000 ..0 DCD 540016640 $t i.qspi_ser_set qspi_ser_set 0x0012e9e0: 4901 .I LDR r1,[pc,#4] ; [0x12e9e8] = 0x20300000 0x0012e9e2: 6108 .a STR r0,[r1,#0x10] 0x0012e9e4: 4770 pG BX lr $d 0x0012e9e6: 0000 .. DCW 0 0x0012e9e8: 20300000 ..0 DCD 540016640 $t i.qspi_ssi_en_setf qspi_ssi_en_setf 0x0012e9ec: 4904 .I LDR r1,[pc,#16] ; [0x12ea00] = 0x20300000 0x0012e9ee: 6889 .h LDR r1,[r1,#8] 0x0012e9f0: 0849 I. LSRS r1,r1,#1 0x0012e9f2: 0049 I. LSLS r1,r1,#1 0x0012e9f4: 07c2 .. LSLS r2,r0,#31 0x0012e9f6: 0fd2 .. LSRS r2,r2,#31 0x0012e9f8: 4311 .C ORRS r1,r1,r2 0x0012e9fa: 4a01 .J LDR r2,[pc,#4] ; [0x12ea00] = 0x20300000 0x0012e9fc: 6091 .` STR r1,[r2,#8] 0x0012e9fe: 4770 pG BX lr $d 0x0012ea00: 20300000 ..0 DCD 540016640 $t i.qspi_ssi_en_setf qspi_ssi_en_setf 0x0012ea04: 4904 .I LDR r1,[pc,#16] ; [0x12ea18] = 0x20300000 0x0012ea06: 6889 .h LDR r1,[r1,#8] 0x0012ea08: 0849 I. LSRS r1,r1,#1 0x0012ea0a: 0049 I. LSLS r1,r1,#1 0x0012ea0c: 07c2 .. LSLS r2,r0,#31 0x0012ea0e: 0fd2 .. LSRS r2,r2,#31 0x0012ea10: 4311 .C ORRS r1,r1,r2 0x0012ea12: 4a01 .J LDR r2,[pc,#4] ; [0x12ea18] = 0x20300000 0x0012ea14: 6091 .` STR r1,[r2,#8] 0x0012ea16: 4770 pG BX lr $d 0x0012ea18: 20300000 ..0 DCD 540016640 $t i.qspi_ssienr_set qspi_ssienr_set 0x0012ea1c: 4901 .I LDR r1,[pc,#4] ; [0x12ea24] = 0x20300000 0x0012ea1e: 6088 .` STR r0,[r1,#8] 0x0012ea20: 4770 pG BX lr $d 0x0012ea22: 0000 .. DCW 0 0x0012ea24: 20300000 ..0 DCD 540016640 $t i.qspi_tfe_getf qspi_tfe_getf 0x0012ea28: 4802 .H LDR r0,[pc,#8] ; [0x12ea34] = 0x20300000 0x0012ea2a: 6a80 .j LDR r0,[r0,#0x28] 0x0012ea2c: 0740 @. LSLS r0,r0,#29 0x0012ea2e: 0fc0 .. LSRS r0,r0,#31 0x0012ea30: 4770 pG BX lr $d 0x0012ea32: 0000 .. DCW 0 0x0012ea34: 20300000 ..0 DCD 540016640 $t i.sysc_awo_clkgen_awo_signal_1_set sysc_awo_clkgen_awo_signal_1_set 0x0012ea38: 4901 .I LDR r1,[pc,#4] ; [0x12ea40] = 0x20201000 0x0012ea3a: 6388 .c STR r0,[r1,#0x38] 0x0012ea3c: 4770 pG BX lr $d 0x0012ea3e: 0000 .. DCW 0 0x0012ea40: 20201000 .. DCD 538972160 $t i.sysc_awo_dr_16m_rcosc_en_setf sysc_awo_dr_16m_rcosc_en_setf 0x0012ea44: 4905 .I LDR r1,[pc,#20] ; [0x12ea5c] = 0x20201000 0x0012ea46: 69c9 .i LDR r1,[r1,#0x1c] 0x0012ea48: 2210 ." MOVS r2,#0x10 0x0012ea4a: 4391 .C BICS r1,r1,r2 0x0012ea4c: 0102 .. LSLS r2,r0,#4 0x0012ea4e: 2310 .# MOVS r3,#0x10 0x0012ea50: 401a .@ ANDS r2,r2,r3 0x0012ea52: 4311 .C ORRS r1,r1,r2 0x0012ea54: 4a01 .J LDR r2,[pc,#4] ; [0x12ea5c] = 0x20201000 0x0012ea56: 61d1 .a STR r1,[r2,#0x1c] 0x0012ea58: 4770 pG BX lr $d 0x0012ea5a: 0000 .. DCW 0 0x0012ea5c: 20201000 .. DCD 538972160 $t i.sysc_awo_reg_16m_rcosc_en_setf sysc_awo_reg_16m_rcosc_en_setf 0x0012ea60: 4906 .I LDR r1,[pc,#24] ; [0x12ea7c] = 0x20201000 0x0012ea62: 69c9 .i LDR r1,[r1,#0x1c] 0x0012ea64: 2201 ." MOVS r2,#1 0x0012ea66: 0312 .. LSLS r2,r2,#12 0x0012ea68: 4391 .C BICS r1,r1,r2 0x0012ea6a: 0302 .. LSLS r2,r0,#12 0x0012ea6c: 2301 .# MOVS r3,#1 0x0012ea6e: 031b .. LSLS r3,r3,#12 0x0012ea70: 401a .@ ANDS r2,r2,r3 0x0012ea72: 4311 .C ORRS r1,r1,r2 0x0012ea74: 4a01 .J LDR r2,[pc,#4] ; [0x12ea7c] = 0x20201000 0x0012ea76: 61d1 .a STR r1,[r2,#0x1c] 0x0012ea78: 4770 pG BX lr $d 0x0012ea7a: 0000 .. DCW 0 0x0012ea7c: 20201000 .. DCD 538972160 $t i.sysc_awo_rf_reg_0_get sysc_awo_rf_reg_0_get 0x0012ea80: 4801 .H LDR r0,[pc,#4] ; [0x12ea88] = 0x20201040 0x0012ea82: 6b00 .k LDR r0,[r0,#0x30] 0x0012ea84: 4770 pG BX lr $d 0x0012ea86: 0000 .. DCW 0 0x0012ea88: 20201040 @. DCD 538972224 $t i.sysc_awo_rf_reg_0_set sysc_awo_rf_reg_0_set 0x0012ea8c: 4901 .I LDR r1,[pc,#4] ; [0x12ea94] = 0x20201040 0x0012ea8e: 6308 .c STR r0,[r1,#0x30] 0x0012ea90: 4770 pG BX lr $d 0x0012ea92: 0000 .. DCW 0 0x0012ea94: 20201040 @. DCD 538972224 $t i.sysc_cpu_clkg1_set sysc_cpu_clkg1_set 0x0012ea98: 4901 .I LDR r1,[pc,#4] ; [0x12eaa0] = 0x20132000 0x0012ea9a: 6148 Ha STR r0,[r1,#0x14] 0x0012ea9c: 4770 pG BX lr $d 0x0012ea9e: 0000 .. DCW 0 0x0012eaa0: 20132000 . . DCD 538124288 $t i.sysc_cpu_qspi_en_setf sysc_cpu_qspi_en_setf 0x0012eaa4: 4904 .I LDR r1,[pc,#16] ; [0x12eab8] = 0x20132000 0x0012eaa6: 6a09 .j LDR r1,[r1,#0x20] 0x0012eaa8: 0909 .. LSRS r1,r1,#4 0x0012eaaa: 0109 .. LSLS r1,r1,#4 0x0012eaac: 0702 .. LSLS r2,r0,#28 0x0012eaae: 0f12 .. LSRS r2,r2,#28 0x0012eab0: 4311 .C ORRS r1,r1,r2 0x0012eab2: 4a01 .J LDR r2,[pc,#4] ; [0x12eab8] = 0x20132000 0x0012eab4: 6211 .b STR r1,[r2,#0x20] 0x0012eab6: 4770 pG BX lr $d 0x0012eab8: 20132000 . . DCD 538124288 ==================================== ** Section #2 Name : EXEC_SECTION Type : SHT_PROGBITS (0x00000001) Flags : SHF_ALLOC + SHF_WRITE (0x00000003) Addr : 0x0012eabc File Offset : 2816 (0xb00) Size : 4 bytes (0x4) Link : SHN_UNDEF Info : 0 Alignment : 4 Entry Size : 0 0x12eabc: 00 d8 b8 05 .... ==================================== ** Section #3 Name : .debug_abbrev Type : SHT_PROGBITS (0x00000001) Flags : None (0x00000000) Addr : 0x00000000 File Offset : 2820 (0xb04) Size : 1444 bytes (0x5a4) Link : SHN_UNDEF Info : 0 Alignment : 1 Entry Size : 0 ==================================== ** Section #4 Name : .debug_frame Type : SHT_PROGBITS (0x00000001) Flags : None (0x00000000) Addr : 0x00000000 File Offset : 4264 (0x10a8) Size : 1256 bytes (0x4e8) Link : SHN_UNDEF Info : 0 Alignment : 1 Entry Size : 0 ==================================== ** Section #5 Name : .debug_info Type : SHT_PROGBITS (0x00000001) Flags : None (0x00000000) Addr : 0x00000000 File Offset : 5520 (0x1590) Size : 235852 bytes (0x3994c) Link : SHN_UNDEF Info : 0 Alignment : 1 Entry Size : 0 ==================================== ** Section #6 Name : .debug_line Type : SHT_PROGBITS (0x00000001) Flags : None (0x00000000) Addr : 0x00000000 File Offset : 241372 (0x3aedc) Size : 13076 bytes (0x3314) Link : SHN_UNDEF Info : 0 Alignment : 1 Entry Size : 0 ==================================== ** Section #7 Name : .debug_loc Type : SHT_PROGBITS (0x00000001) Flags : None (0x00000000) Addr : 0x00000000 File Offset : 254448 (0x3e1f0) Size : 3972 bytes (0xf84) Link : SHN_UNDEF Info : 0 Alignment : 1 Entry Size : 0 ==================================== ** Section #8 Name : .debug_macinfo Type : SHT_PROGBITS (0x00000001) Flags : None (0x00000000) Addr : 0x00000000 File Offset : 258420 (0x3f174) Size : 4040 bytes (0xfc8) Link : SHN_UNDEF Info : 0 Alignment : 1 Entry Size : 0 ==================================== ** Section #9 Name : .debug_pubnames Type : SHT_PROGBITS (0x00000001) Flags : None (0x00000000) Addr : 0x00000000 File Offset : 262460 (0x4013c) Size : 1033 bytes (0x409) Link : SHN_UNDEF Info : 0 Alignment : 1 Entry Size : 0 ==================================== ** Section #10 Name : .symtab Type : SHT_SYMTAB (0x00000002) Flags : None (0x00000000) Addr : 0x00000000 File Offset : 263496 (0x40548) Size : 3376 bytes (0xd30) Link : Section 11 (.strtab) Info : Last local symbol no = 181 Alignment : 4 Entry Size : 16 ==================================== ** Section #11 Name : .strtab Type : SHT_STRTAB (0x00000003) Flags : None (0x00000000) Addr : 0x00000000 File Offset : 266872 (0x41278) Size : 3284 bytes (0xcd4) Link : SHN_UNDEF Info : 0 Alignment : 1 Entry Size : 0 ==================================== ** Section #12 Name : .note Type : SHT_NOTE (0x00000007) Flags : None (0x00000000) Addr : 0x00000000 File Offset : 270156 (0x41f4c) Size : 24 bytes (0x18) Link : SHN_UNDEF Info : 0 Alignment : 4 Entry Size : 0 Section Segment ==================================== 1 0 2 0 ==================================== ** Section #13 Name : .comment Type : SHT_PROGBITS (0x00000001) Flags : None (0x00000000) Addr : 0x00000000 File Offset : 270180 (0x41f64) Size : 54928 bytes (0xd690) Link : SHN_UNDEF Info : 0 Alignment : 1 Entry Size : 0 Component: ARM Compiler 5.06 update 1 (build 61) Tool: armlink [4d35a8] armlink --verbose --library_type=microlib --callgraph --map --symbols --xref --cpu=Cortex-M0+ --datacompressor=off --list=../../../../output/boot_ram/boot_ram.map --output=../../../../output/boot_ram/boot_ram.elf --scatter=E:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/bootloader/boot_ram/boot_ram_scatter.txt --entry=boot_ram_entry --info=any,architecture,exceptions,inline,inputs,libraries,merge,pltgot,sizes,stack,summarysizes,summarystack,tailreorder,totals,unused,unusedsymbols,veneers,veneercallers,veneerpools,visibility,weakrefs C:\Keil_v5\ARM\ARMCC\bin\..\lib\armlib\h_p.l C:\Keil_v5\ARM\ARMCC\bin\..\lib\armlib\m_ps.l C:\Keil_v5\ARM\ARMCC\bin\..\lib\armlib\mc_p.l C:\Keil_v5\ARM\ARMCC\bin\..\lib\armlib\mf_p.l C:\Keil_v5\ARM\ARMCC\bin\..\lib\armlib\vfpsupport.l Input Comments: boot_ram.o Component: ARM Compiler 5.06 update 1 (build 61) Tool: armlink [4d35a8] armlink --partial --no_add_relocs_to_undefined --no_generate_mapping_symbols --diag_suppress=6642 --cpu=Cortex-M0+ --fpu=SoftVFP --output=CMakeFiles/boot_ram.dir/boot_ram.o --vfemode=force Input Comments: p6780-3 Component: ARM Compiler 5.06 update 1 (build 61) Tool: armasm [4d35a5] armasm --debug --diag_suppress=1602,1073 --cpu=Cortex-M0+ --fpu=SoftVFP --apcs=/interwork --no_divide boot_ram.o Component: ARM Compiler 5.06 update 1 (build 61) Tool: armcc [4d35ad] armcc --c99 --bss_threshold=0 --split_sections --debug -c --cpu=Cortex-M0+ -O0 -Otime -IE:/KeilProject/SVN/Jmesh/trunk/. -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/bootloader/boot_ram/.. -IE:/KeilProject/SVN/Jmesh/trunk/modules/ke/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/dbg/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/common/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/rwip/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/nvds/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/rf/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/ecc_p256/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/h4tl/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/app/api -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch/boot/armcc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch/compiler/armcc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch/ll/armcc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/intc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/led -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/uart -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/reg -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/flash_cache -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/flash -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/sysctrl -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/sysctrl/awo -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/pshare -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/dmac -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/gpio -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/pwm -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/wdt -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/timer -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/rtc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/adc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/clk_gen -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/iic -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/patch -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/hw_ecc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/ssi/qspi -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/ssi -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/modem -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/ssi/spi_master -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/sleep -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/bx_debug -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/bx_debug/log/. -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/bx_debug/log/RTT -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/jmp_table -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/patch_list -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/build/ble-full/reg/fw -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/cmsis_inc -IE:/KeilProject/SVN/Jmesh/trunk/freertos/src/include -IE:/KeilProject/SVN/Jmesh/trunk/freertos/src/portable/armcc/arm_cm0 -IE:/KeilProject/SVN/Jmesh/trunk/freertos/app -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/oled_iic -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/mems_spi -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/motor -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/temp -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/rgb_led -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/uart_echo -IE:/KeilProject/SVN/Jmesh/trunk/freertos -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/llm -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/llc -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/lld -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/em -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/rwble -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/hl/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/hl/inc -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/anp/anpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/anp/anps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/anp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bas/basc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bas/bass/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bas -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/blp/blpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/blp/blps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/blp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cpp/cppc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cpp/cpps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cpp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cscp/cscpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cscp/cscps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cscp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/dis/disc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/dis/diss/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/dis -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/find/findl/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/find/findt/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/find -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/glp/glpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/glp/glps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/glp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp/hogpbh/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp/hogpd/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp/hogprh/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hrp/hrpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hrp/hrps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hrp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/htp/htpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/htp/htpt/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/htp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/lan/lanc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/lan/lans/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/lan -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/pasp/paspc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/pasp/pasps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/pasp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/prox/proxm/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/prox/proxr/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/prox -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/rscp/rscpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/rscp/rscps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/rscp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/scpp/scppc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/scpp/scpps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/scpp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/tip/tipc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/tip/tips/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/tip -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bxota/bxotas/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bxota -IE:/KeilProject/SVN/Jmesh/trunk/ip/hci/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ahi/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ea/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/em/api -DNDEBUG -D__BOOT_RAM__ -D__MICROLIB awo_2400.o Component: ARM Compiler 5.06 update 1 (build 61) Tool: armlink [4d35a8] armlink --partial --no_add_relocs_to_undefined --no_generate_mapping_symbols --diag_suppress=6642 --cpu=Cortex-M0+ --fpu=SoftVFP --output=CMakeFiles/boot_ram.dir/__/__/src/driver/sysctrl/awo/awo_2400.o --vfemode=force Input Comments: p2a08-3 Component: ARM Compiler 5.06 update 1 (build 61) Tool: armasm [4d35a5] armasm --debug --diag_suppress=1602,1073 --cpu=Cortex-M0+ --fpu=SoftVFP --apcs=/interwork --no_divide awo_2400.o Component: ARM Compiler 5.06 update 1 (build 61) Tool: armcc [4d35ad] armcc --c99 --bss_threshold=0 --split_sections --debug -c --cpu=Cortex-M0+ -O0 -Otime -IE:/KeilProject/SVN/Jmesh/trunk/. -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/bootloader/boot_ram/.. -IE:/KeilProject/SVN/Jmesh/trunk/modules/ke/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/dbg/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/common/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/rwip/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/nvds/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/rf/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/ecc_p256/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/h4tl/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/app/api -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch/boot/armcc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch/compiler/armcc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch/ll/armcc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/intc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/led -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/uart -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/reg -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/flash_cache -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/flash -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/sysctrl -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/sysctrl/awo -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/pshare -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/dmac -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/gpio -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/pwm -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/wdt -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/timer -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/rtc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/adc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/clk_gen -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/iic -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/patch -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/hw_ecc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/ssi/qspi -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/ssi -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/modem -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/ssi/spi_master -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/sleep -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/bx_debug -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/bx_debug/log/. -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/bx_debug/log/RTT -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/jmp_table -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/patch_list -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/build/ble-full/reg/fw -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/cmsis_inc -IE:/KeilProject/SVN/Jmesh/trunk/freertos/src/include -IE:/KeilProject/SVN/Jmesh/trunk/freertos/src/portable/armcc/arm_cm0 -IE:/KeilProject/SVN/Jmesh/trunk/freertos/app -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/oled_iic -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/mems_spi -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/motor -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/temp -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/rgb_led -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/uart_echo -IE:/KeilProject/SVN/Jmesh/trunk/freertos -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/llm -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/llc -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/lld -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/em -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/rwble -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/hl/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/hl/inc -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/anp/anpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/anp/anps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/anp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bas/basc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bas/bass/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bas -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/blp/blpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/blp/blps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/blp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cpp/cppc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cpp/cpps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cpp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cscp/cscpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cscp/cscps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cscp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/dis/disc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/dis/diss/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/dis -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/find/findl/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/find/findt/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/find -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/glp/glpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/glp/glps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/glp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp/hogpbh/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp/hogpd/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp/hogprh/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hrp/hrpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hrp/hrps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hrp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/htp/htpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/htp/htpt/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/htp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/lan/lanc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/lan/lans/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/lan -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/pasp/paspc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/pasp/pasps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/pasp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/prox/proxm/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/prox/proxr/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/prox -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/rscp/rscpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/rscp/rscps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/rscp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/scpp/scppc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/scpp/scpps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/scpp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/tip/tipc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/tip/tips/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/tip -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bxota/bxotas/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bxota -IE:/KeilProject/SVN/Jmesh/trunk/ip/hci/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ahi/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ea/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/em/api -DNDEBUG -D__BOOT_RAM__ -D__MICROLIB awo_2401.o flash.o Component: ARM Compiler 5.06 update 1 (build 61) Tool: armcc [4d35ad] armcc --c99 --bss_threshold=0 --split_sections --debug -c --cpu=Cortex-M0+ -O0 -Otime -IE:/KeilProject/SVN/Jmesh/trunk/. -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/bootloader/boot_ram/.. -IE:/KeilProject/SVN/Jmesh/trunk/modules/ke/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/dbg/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/common/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/rwip/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/nvds/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/rf/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/ecc_p256/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/h4tl/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/app/api -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch/boot/armcc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch/compiler/armcc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch/ll/armcc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/intc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/led -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/uart -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/reg -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/flash_cache -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/flash -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/sysctrl -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/sysctrl/awo -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/pshare -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/dmac -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/gpio -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/pwm -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/wdt -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/timer -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/rtc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/adc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/clk_gen -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/iic -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/patch -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/hw_ecc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/ssi/qspi -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/ssi -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/modem -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/ssi/spi_master -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/sleep -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/bx_debug -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/bx_debug/log/. -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/bx_debug/log/RTT -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/jmp_table -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/patch_list -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/build/ble-full/reg/fw -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/cmsis_inc -IE:/KeilProject/SVN/Jmesh/trunk/freertos/src/include -IE:/KeilProject/SVN/Jmesh/trunk/freertos/src/portable/armcc/arm_cm0 -IE:/KeilProject/SVN/Jmesh/trunk/freertos/app -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/oled_iic -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/mems_spi -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/motor -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/temp -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/rgb_led -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/uart_echo -IE:/KeilProject/SVN/Jmesh/trunk/freertos -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/llm -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/llc -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/lld -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/em -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/rwble -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/hl/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/hl/inc -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/anp/anpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/anp/anps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/anp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bas/basc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bas/bass/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bas -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/blp/blpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/blp/blps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/blp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cpp/cppc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cpp/cpps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cpp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cscp/cscpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cscp/cscps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cscp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/dis/disc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/dis/diss/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/dis -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/find/findl/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/find/findt/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/find -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/glp/glpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/glp/glps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/glp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp/hogpbh/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp/hogpd/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp/hogprh/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hrp/hrpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hrp/hrps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hrp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/htp/htpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/htp/htpt/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/htp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/lan/lanc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/lan/lans/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/lan -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/pasp/paspc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/pasp/pasps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/pasp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/prox/proxm/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/prox/proxr/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/prox -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/rscp/rscpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/rscp/rscps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/rscp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/scpp/scppc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/scpp/scpps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/scpp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/tip/tipc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/tip/tips/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/tip -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bxota/bxotas/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bxota -IE:/KeilProject/SVN/Jmesh/trunk/ip/hci/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ahi/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ea/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/em/api -DNDEBUG -D__BOOT_RAM__ -D__MICROLIB dma_for_qspi.o Component: ARM Compiler 5.06 update 1 (build 61) Tool: armlink [4d35a8] armlink --partial --no_add_relocs_to_undefined --no_generate_mapping_symbols --diag_suppress=6642 --cpu=Cortex-M0+ --fpu=SoftVFP --output=CMakeFiles/boot_ram.dir/__/__/src/driver/dmac/dma_for_qspi.o --vfemode=force Input Comments: p2354-3 Component: ARM Compiler 5.06 update 1 (build 61) Tool: armasm [4d35a5] armasm --debug --diag_suppress=1602,1073 --cpu=Cortex-M0+ --fpu=SoftVFP --apcs=/interwork --no_divide dma_for_qspi.o Component: ARM Compiler 5.06 update 1 (build 61) Tool: armcc [4d35ad] armcc --c99 --bss_threshold=0 --split_sections --debug -c --cpu=Cortex-M0+ -O0 -Otime -IE:/KeilProject/SVN/Jmesh/trunk/. -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/bootloader/boot_ram/.. -IE:/KeilProject/SVN/Jmesh/trunk/modules/ke/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/dbg/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/common/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/rwip/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/nvds/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/rf/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/ecc_p256/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/h4tl/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/app/api -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch/boot/armcc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch/compiler/armcc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch/ll/armcc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/intc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/led -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/uart -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/reg -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/flash_cache -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/flash -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/sysctrl -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/sysctrl/awo -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/pshare -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/dmac -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/gpio -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/pwm -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/wdt -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/timer -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/rtc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/adc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/clk_gen -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/iic -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/patch -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/hw_ecc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/ssi/qspi -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/ssi -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/modem -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/ssi/spi_master -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/sleep -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/bx_debug -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/bx_debug/log/. -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/bx_debug/log/RTT -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/jmp_table -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/patch_list -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/build/ble-full/reg/fw -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/cmsis_inc -IE:/KeilProject/SVN/Jmesh/trunk/freertos/src/include -IE:/KeilProject/SVN/Jmesh/trunk/freertos/src/portable/armcc/arm_cm0 -IE:/KeilProject/SVN/Jmesh/trunk/freertos/app -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/oled_iic -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/mems_spi -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/motor -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/temp -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/rgb_led -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/uart_echo -IE:/KeilProject/SVN/Jmesh/trunk/freertos -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/llm -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/llc -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/lld -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/em -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/rwble -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/hl/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/hl/inc -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/anp/anpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/anp/anps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/anp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bas/basc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bas/bass/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bas -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/blp/blpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/blp/blps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/blp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cpp/cppc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cpp/cpps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cpp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cscp/cscpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cscp/cscps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cscp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/dis/disc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/dis/diss/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/dis -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/find/findl/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/find/findt/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/find -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/glp/glpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/glp/glps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/glp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp/hogpbh/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp/hogpd/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp/hogprh/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hrp/hrpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hrp/hrps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hrp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/htp/htpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/htp/htpt/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/htp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/lan/lanc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/lan/lans/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/lan -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/pasp/paspc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/pasp/pasps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/pasp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/prox/proxm/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/prox/proxr/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/prox -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/rscp/rscpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/rscp/rscps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/rscp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/scpp/scppc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/scpp/scpps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/scpp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/tip/tipc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/tip/tips/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/tip -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bxota/bxotas/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bxota -IE:/KeilProject/SVN/Jmesh/trunk/ip/hci/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ahi/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ea/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/em/api -DNDEBUG -D__BOOT_RAM__ -D__MICROLIB qspi.o Component: ARM Compiler 5.06 update 1 (build 61) Tool: armlink [4d35a8] armlink --partial --no_add_relocs_to_undefined --no_generate_mapping_symbols --diag_suppress=6642 --cpu=Cortex-M0+ --fpu=SoftVFP --output=CMakeFiles/boot_ram.dir/__/__/src/driver/ssi/qspi/qspi.o --vfemode=force Input Comments: p358c-3 Component: ARM Compiler 5.06 update 1 (build 61) Tool: armasm [4d35a5] armasm --debug --diag_suppress=1602,1073 --cpu=Cortex-M0+ --fpu=SoftVFP --apcs=/interwork --no_divide qspi.o Component: ARM Compiler 5.06 update 1 (build 61) Tool: armcc [4d35ad] armcc --c99 --bss_threshold=0 --split_sections --debug -c --cpu=Cortex-M0+ -O0 -Otime -IE:/KeilProject/SVN/Jmesh/trunk/. -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/bootloader/boot_ram/.. -IE:/KeilProject/SVN/Jmesh/trunk/modules/ke/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/dbg/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/common/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/rwip/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/nvds/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/rf/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/ecc_p256/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/h4tl/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/app/api -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch/boot/armcc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch/compiler/armcc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch/ll/armcc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/intc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/led -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/uart -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/reg -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/flash_cache -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/flash -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/sysctrl -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/sysctrl/awo -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/pshare -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/dmac -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/gpio -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/pwm -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/wdt -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/timer -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/rtc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/adc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/clk_gen -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/iic -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/patch -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/hw_ecc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/ssi/qspi -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/ssi -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/modem -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/ssi/spi_master -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/sleep -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/bx_debug -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/bx_debug/log/. -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/bx_debug/log/RTT -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/jmp_table -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/patch_list -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/build/ble-full/reg/fw -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/cmsis_inc -IE:/KeilProject/SVN/Jmesh/trunk/freertos/src/include -IE:/KeilProject/SVN/Jmesh/trunk/freertos/src/portable/armcc/arm_cm0 -IE:/KeilProject/SVN/Jmesh/trunk/freertos/app -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/oled_iic -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/mems_spi -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/motor -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/temp -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/rgb_led -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/uart_echo -IE:/KeilProject/SVN/Jmesh/trunk/freertos -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/llm -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/llc -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/lld -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/em -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/rwble -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/hl/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/hl/inc -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/anp/anpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/anp/anps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/anp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bas/basc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bas/bass/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bas -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/blp/blpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/blp/blps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/blp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cpp/cppc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cpp/cpps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cpp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cscp/cscpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cscp/cscps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cscp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/dis/disc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/dis/diss/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/dis -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/find/findl/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/find/findt/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/find -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/glp/glpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/glp/glps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/glp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp/hogpbh/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp/hogpd/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp/hogprh/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hrp/hrpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hrp/hrps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hrp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/htp/htpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/htp/htpt/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/htp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/lan/lanc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/lan/lans/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/lan -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/pasp/paspc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/pasp/pasps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/pasp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/prox/proxm/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/prox/proxr/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/prox -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/rscp/rscpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/rscp/rscps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/rscp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/scpp/scppc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/scpp/scpps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/scpp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/tip/tipc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/tip/tips/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/tip -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bxota/bxotas/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bxota -IE:/KeilProject/SVN/Jmesh/trunk/ip/hci/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ahi/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ea/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/em/api -DNDEBUG -D__BOOT_RAM__ -D__MICROLIB flash_cache.o Component: ARM Compiler 5.06 update 1 (build 61) Tool: armlink [4d35a8] armlink --partial --no_add_relocs_to_undefined --no_generate_mapping_symbols --diag_suppress=6642 --cpu=Cortex-M0+ --fpu=SoftVFP --output=CMakeFiles/boot_ram.dir/__/__/src/driver/flash_cache/flash_cache.o --vfemode=force Input Comments: p6644-3 Component: ARM Compiler 5.06 update 1 (build 61) Tool: armasm [4d35a5] armasm --debug --diag_suppress=1602,1073 --cpu=Cortex-M0+ --fpu=SoftVFP --apcs=/interwork --no_divide flash_cache.o Component: ARM Compiler 5.06 update 1 (build 61) Tool: armcc [4d35ad] armcc --c99 --bss_threshold=0 --split_sections --debug -c --cpu=Cortex-M0+ -O0 -Otime -IE:/KeilProject/SVN/Jmesh/trunk/. -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/bootloader/boot_ram/.. -IE:/KeilProject/SVN/Jmesh/trunk/modules/ke/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/dbg/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/common/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/rwip/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/nvds/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/rf/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/ecc_p256/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/h4tl/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/app/api -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch/boot/armcc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch/compiler/armcc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch/ll/armcc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/intc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/led -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/uart -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/reg -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/flash_cache -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/flash -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/sysctrl -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/sysctrl/awo -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/pshare -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/dmac -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/gpio -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/pwm -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/wdt -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/timer -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/rtc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/adc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/clk_gen -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/iic -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/patch -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/hw_ecc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/ssi/qspi -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/ssi -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/modem -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/ssi/spi_master -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/sleep -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/bx_debug -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/bx_debug/log/. -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/bx_debug/log/RTT -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/jmp_table -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/patch_list -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/build/ble-full/reg/fw -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/cmsis_inc -IE:/KeilProject/SVN/Jmesh/trunk/freertos/src/include -IE:/KeilProject/SVN/Jmesh/trunk/freertos/src/portable/armcc/arm_cm0 -IE:/KeilProject/SVN/Jmesh/trunk/freertos/app -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/oled_iic -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/mems_spi -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/motor -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/temp -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/rgb_led -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/uart_echo -IE:/KeilProject/SVN/Jmesh/trunk/freertos -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/llm -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/llc -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/lld -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/em -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/rwble -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/hl/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/hl/inc -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/anp/anpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/anp/anps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/anp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bas/basc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bas/bass/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bas -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/blp/blpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/blp/blps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/blp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cpp/cppc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cpp/cpps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cpp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cscp/cscpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cscp/cscps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cscp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/dis/disc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/dis/diss/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/dis -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/find/findl/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/find/findt/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/find -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/glp/glpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/glp/glps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/glp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp/hogpbh/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp/hogpd/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp/hogprh/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hrp/hrpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hrp/hrps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hrp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/htp/htpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/htp/htpt/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/htp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/lan/lanc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/lan/lans/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/lan -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/pasp/paspc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/pasp/pasps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/pasp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/prox/proxm/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/prox/proxr/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/prox -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/rscp/rscpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/rscp/rscps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/rscp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/scpp/scppc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/scpp/scpps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/scpp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/tip/tipc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/tip/tips/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/tip -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bxota/bxotas/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bxota -IE:/KeilProject/SVN/Jmesh/trunk/ip/hci/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ahi/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ea/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/em/api -DNDEBUG -D__BOOT_RAM__ -D__MICROLIB clk_gate.o Component: ARM Compiler 5.06 update 1 (build 61) Tool: armlink [4d35a8] armlink --partial --no_add_relocs_to_undefined --no_generate_mapping_symbols --diag_suppress=6642 --cpu=Cortex-M0+ --fpu=SoftVFP --output=CMakeFiles/boot_ram.dir/__/__/src/driver/sysctrl/clk_gate.o --vfemode=force Input Comments: p4628-3 Component: ARM Compiler 5.06 update 1 (build 61) Tool: armasm [4d35a5] armasm --debug --diag_suppress=1602,1073 --cpu=Cortex-M0+ --fpu=SoftVFP --apcs=/interwork --no_divide clk_gate.o Component: ARM Compiler 5.06 update 1 (build 61) Tool: armcc [4d35ad] armcc --c99 --bss_threshold=0 --split_sections --debug -c --cpu=Cortex-M0+ -O0 -Otime -IE:/KeilProject/SVN/Jmesh/trunk/. -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/bootloader/boot_ram/.. -IE:/KeilProject/SVN/Jmesh/trunk/modules/ke/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/dbg/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/common/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/rwip/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/nvds/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/rf/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/ecc_p256/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/h4tl/api -IE:/KeilProject/SVN/Jmesh/trunk/modules/app/api -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch/boot/armcc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch/compiler/armcc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/arch/ll/armcc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/intc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/led -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/uart -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/reg -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/flash_cache -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/flash -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/sysctrl -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/sysctrl/awo -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/pshare -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/dmac -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/gpio -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/pwm -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/wdt -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/timer -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/rtc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/adc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/clk_gen -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/iic -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/patch -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/hw_ecc -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/ssi/qspi -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/ssi -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/modem -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/driver/ssi/spi_master -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/sleep -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/bx_debug -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/bx_debug/log/. -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/bx_debug/log/RTT -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/jmp_table -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/patch_list -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/build/ble-full/reg/fw -IE:/KeilProject/SVN/Jmesh/trunk/plf/bx2400/src/cmsis_inc -IE:/KeilProject/SVN/Jmesh/trunk/freertos/src/include -IE:/KeilProject/SVN/Jmesh/trunk/freertos/src/portable/armcc/arm_cm0 -IE:/KeilProject/SVN/Jmesh/trunk/freertos/app -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/oled_iic -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/mems_spi -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/motor -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/temp -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/rgb_led -IE:/KeilProject/SVN/Jmesh/trunk/freertos/peripheral/uart_echo -IE:/KeilProject/SVN/Jmesh/trunk/freertos -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/llm -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/llc -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/lld -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/em -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/ll/src/rwble -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/hl/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/hl/inc -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/anp/anpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/anp/anps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/anp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bas/basc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bas/bass/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bas -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/blp/blpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/blp/blps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/blp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cpp/cppc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cpp/cpps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cpp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cscp/cscpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cscp/cscps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/cscp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/dis/disc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/dis/diss/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/dis -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/find/findl/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/find/findt/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/find -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/glp/glpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/glp/glps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/glp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp/hogpbh/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp/hogpd/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp/hogprh/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hogp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hrp/hrpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hrp/hrps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/hrp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/htp/htpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/htp/htpt/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/htp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/lan/lanc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/lan/lans/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/lan -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/pasp/paspc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/pasp/pasps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/pasp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/prox/proxm/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/prox/proxr/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/prox -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/rscp/rscpc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/rscp/rscps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/rscp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/scpp/scppc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/scpp/scpps/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/scpp -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/tip/tipc/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/tip/tips/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/tip -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bxota/bxotas/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ble/profiles/bxota -IE:/KeilProject/SVN/Jmesh/trunk/ip/hci/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ahi/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/ea/api -IE:/KeilProject/SVN/Jmesh/trunk/ip/em/api -DNDEBUG -D__BOOT_RAM__ -D__MICROLIB ==================================== ** Section #14 Name : .shstrtab Type : SHT_STRTAB (0x00000003) Flags : None (0x00000000) Addr : 0x00000000 File Offset : 325108 (0x4f5f4) Size : 148 bytes (0x94) Link : SHN_UNDEF Info : 0 Alignment : 1 Entry Size : 0 ==================================== address size variable name type 0x0012eabc 0x4 wakeup_pll uint32_t address size variable name type 0x0012dff0 0x24 boot_info const boot_info_t 0x0012dff0 0x10 boot_info.boot_header boot_header_t 0x0012dff0 0x4 boot_info.boot_header.bx_flag uint32_t 0x0012dff4 0x4 boot_info.boot_header.base_addr pointer to uint8_t 0x0012dff8 0x4 boot_info.boot_header.length uint32_t 0x0012dffc 0x4 boot_info.boot_header.entry_point entry_point_t 0x0012e000 0x4 boot_info.image_offset uint32_t 0x0012e004 0x4 boot_info.image_size uint32_t 0x0012e008 0x4 boot_info.flash_qspi_enabled uint32_t 0x0012e00c 0x4 boot_info.flash_xip uint32_t 0x0012e010 0x4 boot_info.valid_part uint32_t
79.849171
7,215
0.569195
7387d18196c70a4ebfa471ea27831e927d5a56be
40
asm
Assembly
bddisasm_test/basic/invlpgb_64.asm
andreaswimmer/bddisasm
960e9eaeee4f87d8269095031cd6cfb8aabb998b
[ "Apache-2.0" ]
675
2020-07-09T12:57:49.000Z
2022-03-26T15:03:53.000Z
bddisasm_test/basic/invlpgb_64.asm
andreaswimmer/bddisasm
960e9eaeee4f87d8269095031cd6cfb8aabb998b
[ "Apache-2.0" ]
41
2020-07-22T07:15:07.000Z
2022-03-23T08:34:28.000Z
bddisasm_test/basic/invlpgb_64.asm
andreaswimmer/bddisasm
960e9eaeee4f87d8269095031cd6cfb8aabb998b
[ "Apache-2.0" ]
94
2020-07-09T14:39:02.000Z
2022-03-27T10:37:03.000Z
bits 64 invlpgb tlbsync
10
11
0.5
684a4dc3fa5044418e0437940b80228722e9f2c7
664
asm
Assembly
smsq/gold/driver/nd.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
smsq/gold/driver/nd.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
smsq/gold/driver/nd.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; SMSQ GOLD card ND drivers section header xref smsq_end xref.l nd.card xref.s nd.ptype include 'dev8_keys_stella_bl' header_base dc.l nd_base-header_base ; length of header dc.l 0 ; module length unknown dc.l smsq_end-nd_base ; loaded length dc.l 0 ; checksum dc.l select-header_base ; select on processor dc.b 1 ; 1 level down dc.b 0 dc.w smsq_name-* smsq_name dc.w 21,'SMSQ Net Driver - ' dc.l nd.card dc.l ' ' dc.w $200a select cmp.b #nd.ptype,sbl_ptype(a5) ; the right processor? bne.s sel_noload moveq #sbl.load,d0 rts sel_noload moveq #sbl.noload,d0 rts section base xref nd_gold nd_base jmp nd_gold end
15.090909
54
0.701807
a4dfa7914e8163d1a6c29f86354dc99a208c645c
994
asm
Assembly
wtfx/samples/softkick-v3.asm
bushy555/ZX-Spectrum-1-Bit-Routines
4d336dec9d7abc979a97af76d515104a9263f127
[ "BSD-3-Clause" ]
59
2015-02-28T14:15:56.000Z
2022-03-26T12:06:01.000Z
wtfx/samples/softkick-v3.asm
bushy555/ZX-Spectrum-1-Bit-Routines
4d336dec9d7abc979a97af76d515104a9263f127
[ "BSD-3-Clause" ]
1
2016-08-22T05:32:43.000Z
2016-08-22T09:33:28.000Z
wtfx/samples/softkick-v3.asm
bushy555/ZX-Spectrum-1-Bit-Routines
4d336dec9d7abc979a97af76d515104a9263f127
[ "BSD-3-Clause" ]
9
2015-02-28T14:16:31.000Z
2022-01-18T17:52:48.000Z
db 0,204,136,136,204,0,204,204,0,204,204,0,204,204,0,204 db 204,136,136,238,204,0,204,204,136,0,204,204,136,0,204,204 db 204,0,136,204,204,136,0,136,204,204,136,0,136,204,238,204 db 136,0,136,204,204,204,136,0,0,204,204,238,204,136,0,0 db 136,204,204,204,204,204,136,0,0,136,204,204,238,204,204,136 db 136,0,0,136,204,204,204,204,204,204,204,136,136,0,0,0 db 136,204,204,204,204,238,204,204,204,204,136,136,0,0,0,0 db 136,136,136,204,204,204,204,204,204,204,204,204,204,204,136,136 db 136,136,0,0,0,0,0,0,136,136,136,136,204,204,204,204 db 204,204,204,204,238,238,238,204,204,204,204,204,204,204,204,204 db 136,136,136,136,136,136,0,0,0,0,0,0,0,0,0,0 db 0,0,0,136,136,136,136,136,136,136,136,136,204,204,204,204 db 204,204,204,204,204,204,204,204,204,204,204,204,204,204,204,204 db 204,204,204,204,204,204,204,204,204,204,204,204,204,204,204,204 db 204,204,204,204,204,204,204,204,204,204,204,204,204,204,204,204 db 204,204,204,204,204,204,204,204,204,204,204,204,204,204,204,0
58.470588
67
0.710262
09f0b1e3e4a13fd979490b81dfdbc05090206bf1
202
asm
Assembly
libsrc/_DEVELOPMENT/adt/p_stack/c/sdcc_iy/p_stack_clear_fastcall.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/p_stack/c/sdcc_iy/p_stack_clear_fastcall.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/p_stack/c/sdcc_iy/p_stack_clear_fastcall.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; void p_stack_clear_fastcall(p_stack_t *s) SECTION code_adt_p_stack PUBLIC _p_stack_clear_fastcall defc _p_stack_clear_fastcall = asm_p_stack_clear INCLUDE "adt/p_stack/z80/asm_p_stack_clear.asm"
18.363636
48
0.851485
c28b9540165dc6cc666a6a4fbd879e90d6926a13
580
asm
Assembly
oeis/031/A031916.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/031/A031916.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/031/A031916.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A031916: a(n) = prime(9*n-7). ; Submitted by Jamie Morken(s4) ; 3,31,71,109,163,211,263,313,373,431,479,547,601,653,719,773,839,907,971,1031,1091,1153,1223,1289,1361,1433,1487,1553,1609,1669,1747,1823,1889,1979,2029,2099,2161,2251,2311,2381,2441,2539,2617,2683,2729,2797,2861,2953,3023,3109,3191,3259,3331,3407,3491,3547,3617,3691,3767,3847,3917,4001,4057,4133,4219,4273,4363,4451,4519,4603,4673,4759,4831,4933,4993,5059,5147,5231,5309,5407,5471,5527,5639,5689,5779,5843,5897,6011,6089,6163,6247,6311,6367,6469,6563,6653,6709,6793,6869,6959 mul $0,9 seq $0,65091 ; Odd primes.
82.857143
478
0.760345
78dd201c7ed8e02bf40a0d79a71df6e552be9b83
80
asm
Assembly
flame32-libs/unit-tests/test-rli-1.asm
drako0812/flame32
cf79e5fc14838cc3ca0dbe702bbdb8f157a587ab
[ "MIT" ]
2
2019-08-21T09:16:32.000Z
2020-08-12T12:56:08.000Z
flame32-libs/unit-tests/test-rli-1.asm
drako0812/flame32
cf79e5fc14838cc3ca0dbe702bbdb8f157a587ab
[ "MIT" ]
null
null
null
flame32-libs/unit-tests/test-rli-1.asm
drako0812/flame32
cf79e5fc14838cc3ca0dbe702bbdb8f157a587ab
[ "MIT" ]
null
null
null
#include "../../flame32.asm" ; Tests RLI lod 0x12345678 rli A, 8 ; 0x23456781
10
28
0.6625
c5f8468a727b81eac2d06cc380ac6d63d7edf981
776
asm
Assembly
Source/Test.asm
LarryTheKing/VGS
ddfc9f6bceaac565d95f8887c9c2cf7488be59c3
[ "Apache-2.0" ]
null
null
null
Source/Test.asm
LarryTheKing/VGS
ddfc9f6bceaac565d95f8887c9c2cf7488be59c3
[ "Apache-2.0" ]
null
null
null
Source/Test.asm
LarryTheKing/VGS
ddfc9f6bceaac565d95f8887c9c2cf7488be59c3
[ "Apache-2.0" ]
null
null
null
# Reads in three integers and prints their sum .text .global main main: jal pread # read first integer nop # mov $s0,$v0 # save it in $s0 jal pread # read second integer nop # mov $s1,$v0 # save it in $s1 jal pread # read third integer nop # mov $s2,$v0 # save it in $s2 la $a0,s_sum # print final label li $v0,4 # service 4 syscall addu $s0,$s0,$s1 # compute the sum addu $a0,$s0,$s2 # li $v0,1 # print the sum syscall # la $a0,s_quit # print quit instructions li $v0,4 # service 4 syscall # li $v0,5 # wait for input syscall # li $v0,10 # exit syscall .data s_sum: .asciiz "Sum\t\t= " s_quit: .asciiz "\n\nEnter any number to quit: "
18.47619
48
0.559278
51cc606bcfc0350f06c4bc28c6ce7c039bf05738
1,974
asm
Assembly
libsrc/_DEVELOPMENT/input/ep/z80/asm_in_key_scancode.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/input/ep/z80/asm_in_key_scancode.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/input/ep/z80/asm_in_key_scancode.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; =============================================================== ; Aug 2015 ; =============================================================== ; ; uint16_t in_key_scancode(int c) ; ; Return a 16-bit scancode corresponding to char c. The scancode ; encodes information on how to quickly detect if the key ; corresponding to char c is pressed on the keyboard. ; ; =============================================================== SECTION code_clib SECTION code_input PUBLIC asm_in_key_scancode EXTERN in_key_translation_table, error_einval_zc asm_in_key_scancode: ; enter : l = char c ; ; exit : success ; ; hl = scancode ; l = bits 765: alt,ctrl,shift ; bits 3210: key row ; h = 8-bit mask ; carry reset ; ; fail if char cannot be generated by keypress ; ; hl = 0 ; carry set, errno = EINVAL ; ; uses : af, bc, de, hl ld a,l ; a = char c ld hl,in_key_translation_table ld bc,320 cpir ; find char in table jp nz, error_einval_zc ; if not found ld hl,319 xor a ld e,a sbc hl,bc ; hl = key_index of ascii code 0..319 ld a,l alt: dec h jr z, alt_pressed cp 240 jr c, ctrl alt_pressed: set 7,e sub 240 jr key_row ctrl: cp 160 jr c, shift set 6,e sub 160 jr key_row shift: cp 80 jr c, key_row set 5,e sub 80 key_row: ; a = sub-table offset 0-79 ; e = bits 765: alt,ctrl,shift ld h,a srl a srl a srl a or e ld l,a ; l = bits 765: alt,ctrl,shift ; bits 3210: key row key_mask: ld a,h and $07 ; a = bit position of key 0-7 inc a ld b,a ld a,$80 mask_loop: rlca djnz mask_loop ld h,a ; h = 8-bit mask or a ret
16.588235
82
0.467072
7601e275327f98c07ee5bbefb81125de876c2522
516
asm
Assembly
oeis/227/A227871.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/227/A227871.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/227/A227871.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A227871: Sum of digits of 14^n. ; 1,5,16,17,22,29,37,23,52,44,67,65,73,68,52,80,85,83,100,122,106,116,130,137,118,140,124,152,166,173,136,158,178,179,202,128,199,176,187,206,220,227,244,230,232,224,256,272,253,275,268,278,301,272,298,257,304,287,310,326,298,338,322,332,310,326,325,374,349,359,445,380,343,392,385,386,409,389,397,437,412,422,373,407,460,446,439,413,454,461,442,482,448,548,535,497,487,509,475,503 mov $4,$0 mov $0,14 pow $0,$4 lpb $0 mov $2,$0 div $0,10 mod $2,10 add $3,$2 lpe mov $0,$3
36.857143
381
0.684109
90e0662438c301fca521f678e5c234b654c9ee07
393
asm
Assembly
programs/oeis/119/A119690.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/119/A119690.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/119/A119690.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A119690: n! mod n*(n+1)/2. ; 0,2,0,4,0,6,0,0,0,10,0,12,0,0,0,16,0,18,0,0,0,22,0,0,0,0,0,28,0,30,0,0,0,0,0,36,0,0,0,40,0,42,0,0,0,46,0,0,0,0,0,52,0,0,0,0,0,58,0,60,0,0,0,0,0,66,0,0,0,70,0,72,0,0,0,0,0,78,0,0,0,82,0,0,0,0,0,88,0,0,0,0,0,0 mov $2,1 add $2,$0 mov $0,$2 mov $3,1 cmp $3,$2 sub $0,$3 mov $1,$0 cal $0,10051 ; Characteristic function of primes: 1 if n is prime, else 0. mul $1,$0
30.230769
209
0.569975
f54fe74e4fd8e823de6fd730883bf8883a94e33c
2,414
asm
Assembly
os.asm
HUSKI3/Yokai
a375f2b92b0b1109d1be10c9b3511ee05046934e
[ "Apache-2.0" ]
null
null
null
os.asm
HUSKI3/Yokai
a375f2b92b0b1109d1be10c9b3511ee05046934e
[ "Apache-2.0" ]
null
null
null
os.asm
HUSKI3/Yokai
a375f2b92b0b1109d1be10c9b3511ee05046934e
[ "Apache-2.0" ]
null
null
null
[bits 16] [org 0x7c00] bootloader_entry: xor ax,ax mov ds,ax mov es,ax mov ah, 0x02 mov al, 0x10 mov dl, 0x80 mov ch, 0 mov dh, 0 mov cl, 2 mov bx, kernel_entry int 0x13 cli cld jmp kernel_entry times (510 - ($ - $$)) db 0x00 dw 0xAA55 kernel_entry: call disable_cursor call load_vga ; clear screen with black background and white foreground ; colors ;0x0 black ;0x1 blue ;0x2 green ;0x3 cyan ;0x4 red ;0x5 magenta ;0x6 brown ;0x7 gray ;0x8 dark gray ;0x9 bright blue ;0xA bright green ;0xB bright cyan ;0xC bright red ;0xD bright magenta ;0xE yellow ;0xF white mov byte[VGA_FORE_COLOR], 0xF mov byte[VGA_BACK_COLOR], 0x7 call clear_screen ; increase VGA_INDEX to some 2 bytes amount ; so that it could lead to center of the screen add word[VGA_INDEX], 1824 mov si, msg_str call print_string mov si, message_str call print_string hlt ret print_string: .char_loop : lodsb cmp al, 0 je .exit mov byte[VGA_CHAR], al call vga_print_char add word[VGA_INDEX], 2 jmp .char_loop .exit: ret disable_cursor: mov ah, 0x01 mov ch, 1 mov cl, 0 int 0x10 ret load_vga: ; get vga memory address and point set es to it mov dx, [VGA_ADDRESS] mov es, dx ret vga_print_char: mov di, word[VGA_INDEX] mov al, byte[VGA_CHAR] ; 1 byte fore and back color ; high 4 bits : back color ; low 4 bits : fore color ; get back color mov ah, byte[VGA_BACK_COLOR] ; rotate it by 4 to left, ; for high 4 bits sal ah, 4 ; oring with fore color value or ah, byte[VGA_FORE_COLOR] ; see kernel.c source, from Kernel folder mov [es:di], ax ret ; clear screen just displays null characters clear_screen: ;set index to 0 mov di, 0 .clrloop: cmp di, word[MAX_VGA_INDEX] jg .exit ; get null character into al mov al, 0 mov ah, byte[VGA_BACK_COLOR] sal ah, 4 or ah, byte[VGA_FORE_COLOR] ; put value of al into vga memory address mov [es:di], ax ; increase di by 2 (2 bytes) add di, 2 jmp .clrloop .exit: mov word[VGA_INDEX], 0 ret times (4096 - ($ - $$)) db 0x00 section .data VGA_ADDRESS dw 0xB800 MAX_VGA_INDEX dw 0xF9E ; 3998 in decimal VGA_INDEX dw 0 VGA_CHAR db 0 VGA_FORE_COLOR db 0xF VGA_BACK_COLOR db 0x0 section .rodata msg_str db 'Test OS', 0 message_str db ' Version: 0.0.0', 0
14.284024
59
0.661972
82ab886a2c6b45f39a0f7e3d97f8c8e8d32e40a2
142
asm
Assembly
kernel/div_zero.asm
dantsar/AOSIS
6923f9ec411dd8a73fe96d17de363031fdbb653c
[ "MIT" ]
3
2021-11-04T22:19:29.000Z
2021-12-10T01:21:47.000Z
kernel/div_zero.asm
dantsar/AOSIS
6923f9ec411dd8a73fe96d17de363031fdbb653c
[ "MIT" ]
10
2021-11-15T16:51:29.000Z
2021-12-10T01:21:17.000Z
kernel/div_zero.asm
dantsar/AOSIS
6923f9ec411dd8a73fe96d17de363031fdbb653c
[ "MIT" ]
null
null
null
; test interrupt handling for a division by zero global div_zero div_zero: mov edx, 0 mov eax, 250 mov ecx, 0 div ecx ret
15.777778
48
0.65493
2267e05817f8574c754deff3c9540eda6c71efde
507
asm
Assembly
CS/计算机系统概论/Lab02/模仿移位寄存器行为/PB18111697_王章瀚_Lab02.asm
RabbitWhite1/USTC-CS-Resources
8dae043524f236e894c3e81f51f7701f0de23968
[ "MIT" ]
7
2020-09-10T05:18:26.000Z
2021-01-03T02:07:40.000Z
CS/计算机系统概论/Lab02/模仿移位寄存器行为/PB18111697_王章瀚_Lab02.asm
Pengxiang-Hua/USTC-CS-Resources
8dae043524f236e894c3e81f51f7701f0de23968
[ "MIT" ]
null
null
null
CS/计算机系统概论/Lab02/模仿移位寄存器行为/PB18111697_王章瀚_Lab02.asm
Pengxiang-Hua/USTC-CS-Resources
8dae043524f236e894c3e81f51f7701f0de23968
[ "MIT" ]
2
2021-01-03T07:10:37.000Z
2021-01-06T11:20:56.000Z
.ORIG x3000 LD R1, Nx000E ; serve as a counter LD R3, NxFFFE AND R0, R0, R3 ; set R0[0] to 0 LD R3, Nx8000 AND R3, R0, R3 BRzp LOOP ; check the sign of R0 ADD R0, R0, #1 LOOP ADD R0, R0, R0 ; shift left BRzp ZP ADD R0, R0, #1 ; if R[15] is 1, R[0] <- 1 ZP ADD R1, R1, #-1 BRp LOOP AND R0, R0, R0 BRn OK AND R3, R3, R3 BRzp OK ADD R0, R0, R3 ; these set the sign of R0 OK HALT Nx000E .FILL x000E NxFFFE .FILL xFFFE Nx8000 .FILL x8000 .END
18.777778
44
0.568047
7f96f6a1ad510f7a515084ad059aed90dadb7407
182
asm
Assembly
data/pokemon/dex_entries/shellder.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
data/pokemon/dex_entries/shellder.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
data/pokemon/dex_entries/shellder.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
db "BIVALVE@" ; species name db "Clamping on to an" next "opponent reveals" next "its vulnerable" page "parts, so it uses" next "this move only as" next "a last resort.@"
18.2
29
0.67033
92e0e7d9283cbf4ef1044763f0162446dc7ac2f5
1,411
asm
Assembly
programs/oeis/180/A180672.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/180/A180672.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/180/A180672.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A180672: a(n) = Fibonacci(n+7) - Fibonacci(7). ; 0,8,21,42,76,131,220,364,597,974,1584,2571,4168,6752,10933,17698,28644,46355,75012,121380,196405,317798,514216,832027,1346256,2178296,3524565,5702874,9227452,14930339,24157804,39088156,63245973,102334142,165580128,267914283,433494424,701408720,1134903157,1836311890,2971215060,4807526963,7778742036,12586269012,20365011061,32951280086,53316291160,86267571259,139583862432,225851433704,365435296149,591286729866,956722026028,1548008755907,2504730781948,4052739537868,6557470319829,10610209857710,17167680177552,27777890035275,44945570212840,72723460248128,117669030460981,190392490709122,308061521170116,498454011879251,806515533049380,1304969544928644,2111485077978037,3416454622906694,5527939700884744,8944394323791451,14472334024676208,23416728348467672,37889062373143893,61305790721611578,99194853094755484,160500643816367075,259695496911122572,420196140727489660,679891637638612245,1100087778366101918,1779979416004714176,2880067194370816107,4660046610375530296,7540113804746346416,12200160415121876725,19740274219868223154,31940434634990099892,51680708854858323059,83621143489848422964,135301852344706746036,218922995834555169013,354224848179261915062,573147844013817084088,927372692193078999163,1500520536206896083264,2427893228399975082440,3928413764606871165717,6356306993006846248170 add $0,2 seq $0,20712 ; Pisot sequences E(5,8), P(5,8). sub $0,13
201.571429
1,294
0.89511
7a47c37d168ce411acef50bd1da90ef18e8ea6b4
7,496
asm
Assembly
maps/LancesRoom.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
maps/LancesRoom.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
maps/LancesRoom.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 LANCESROOM_LANCE const LANCESROOM_MARY const LANCESROOM_OAK LancesRoom_MapScripts: db 2 ; scene scripts scene_script .LockDoor ; SCENE_DEFAULT scene_script .DummyScene ; SCENE_LANCESROOM_APPROACH_LANCE db 1 ; callbacks callback MAPCALLBACK_TILES, .LancesRoomDoors .LockDoor: prioritysjump .LancesDoorLocksBehindYou end .DummyScene: end .LancesRoomDoors: checkevent EVENT_LANCES_ROOM_ENTRANCE_CLOSED iffalse .KeepEntranceOpen changeblock 4, 22, $34 ; wall .KeepEntranceOpen: checkevent EVENT_LANCES_ROOM_EXIT_OPEN iffalse .KeepExitClosed changeblock 4, 0, $0b ; open door .KeepExitClosed: return .LancesDoorLocksBehindYou: applymovement PLAYER, LancesRoom_EnterMovement refreshscreen $86 playsound SFX_STRENGTH earthquake 80 changeblock 4, 22, $34 ; wall reloadmappart closetext setscene SCENE_LANCESROOM_APPROACH_LANCE setevent EVENT_LANCES_ROOM_ENTRANCE_CLOSED end Script_ApproachLanceFromLeft: special FadeOutMusic applymovement PLAYER, MovementData_ApproachLanceFromLeft sjump LancesRoomLanceScript Script_ApproachLanceFromRight: special FadeOutMusic applymovement PLAYER, MovementData_ApproachLanceFromRight LancesRoomLanceScript: turnobject LANCESROOM_LANCE, LEFT opentext writetext LanceBattleIntroText waitbutton closetext winlosstext LanceBattleWinText, 0 setlasttalked LANCESROOM_LANCE loadtrainer CHAMPION, LANCE startbattle dontrestartmapmusic reloadmapafterbattle setevent EVENT_BEAT_CHAMPION_LANCE opentext writetext LanceBattleAfterText waitbutton closetext playsound SFX_ENTER_DOOR changeblock 4, 0, $0b ; open door reloadmappart closetext setevent EVENT_LANCES_ROOM_ENTRANCE_CLOSED musicfadeout MUSIC_BEAUTY_ENCOUNTER, 16 pause 30 showemote EMOTE_SHOCK, LANCESROOM_LANCE, 15 turnobject LANCESROOM_LANCE, DOWN pause 10 turnobject PLAYER, DOWN appear LANCESROOM_MARY applymovement LANCESROOM_MARY, LancesRoomMovementData_MaryRushesIn opentext writetext UnknownText_0x1811dd waitbutton closetext appear LANCESROOM_OAK applymovement LANCESROOM_OAK, LancesRoomMovementData_OakWalksIn follow LANCESROOM_MARY, LANCESROOM_OAK applymovement LANCESROOM_MARY, LancesRoomMovementData_MaryYieldsToOak stopfollow turnobject LANCESROOM_OAK, UP turnobject LANCESROOM_LANCE, LEFT opentext writetext UnknownText_0x18121b waitbutton closetext applymovement LANCESROOM_MARY, LancesRoomMovementData_MaryInterviewChampion turnobject PLAYER, LEFT opentext writetext UnknownText_0x18134b waitbutton closetext applymovement LANCESROOM_LANCE, LancesRoomMovementData_LancePositionsSelfToGuidePlayerAway turnobject PLAYER, UP opentext writetext UnknownText_0x18137b waitbutton closetext follow LANCESROOM_LANCE, PLAYER turnobject LANCESROOM_MARY, UP turnobject LANCESROOM_OAK, UP applymovement LANCESROOM_LANCE, LancesRoomMovementData_LanceLeadsPlayerToHallOfFame stopfollow playsound SFX_EXIT_BUILDING disappear LANCESROOM_LANCE applymovement PLAYER, LancesRoomMovementData_PlayerExits playsound SFX_EXIT_BUILDING disappear PLAYER applymovement LANCESROOM_MARY, LancesRoomMovementData_MaryTriesToFollow showemote EMOTE_SHOCK, LANCESROOM_MARY, 15 opentext writetext UnknownText_0x1813c5 pause 30 closetext applymovement LANCESROOM_MARY, LancesRoomMovementData_MaryRunsBackAndForth special FadeOutPalettes pause 15 warpfacing UP, HALL_OF_FAME, 4, 13 end LancesRoom_EnterMovement: step UP step UP step UP step UP step_end MovementData_ApproachLanceFromLeft: step UP step UP turn_head RIGHT step_end MovementData_ApproachLanceFromRight: step UP step LEFT step UP turn_head RIGHT step_end LancesRoomMovementData_MaryRushesIn: big_step UP big_step UP big_step UP turn_head DOWN step_end LancesRoomMovementData_OakWalksIn: step UP step UP step_end LancesRoomMovementData_MaryYieldsToOak: step LEFT turn_head RIGHT step_end LancesRoomMovementData_MaryInterviewChampion: big_step UP turn_head RIGHT step_end LancesRoomMovementData_LancePositionsSelfToGuidePlayerAway: step UP step LEFT turn_head DOWN step_end LancesRoomMovementData_LanceLeadsPlayerToHallOfFame: step UP step_end LancesRoomMovementData_PlayerExits: step UP step_end LancesRoomMovementData_MaryTriesToFollow: step UP step RIGHT turn_head UP step_end LancesRoomMovementData_MaryRunsBackAndForth: big_step RIGHT big_step RIGHT big_step LEFT big_step LEFT big_step LEFT big_step RIGHT big_step RIGHT big_step RIGHT big_step LEFT big_step LEFT turn_head UP step_end LanceBattleIntroText: text "LANCE: I've been" line "waiting for you." para "<PLAY_G>!" para "I knew that you," line "with your skills," para "would eventually" line "reach me here." para "There's no need" line "for words now." para "We will battle to" line "determine who is" para "the stronger of" line "the two of us." para "As the most power-" line "ful trainer and as" para "the #MON LEAGUE" line "CHAMPION…" para "I, LANCE the drag-" line "on master, accept" cont "your challenge!" done LanceBattleWinText: text "…It's over." para "But it's an odd" line "feeling." para "I'm not angry that" line "I lost. In fact, I" cont "feel happy." para "Happy that I" line "witnessed the rise" para "of a great new" line "CHAMPION!" done LanceBattleAfterText: text "…Whew." para "You have become" line "truly powerful," cont "<PLAY_G>." para "Your #MON have" line "responded to your" para "strong and up-" line "standing nature." para "As a trainer, you" line "will continue to" para "grow strong with" line "your #MON." done UnknownText_0x1811dd: text "MARY: Oh, no!" line "It's all over!" para "PROF.OAK, if you" line "weren't so slow…" done UnknownText_0x18121b: text "PROF.OAK: Ah," line "<PLAY_G>!" para "It's been a long" line "while." para "You certainly look" line "more impressive." para "Your conquest of" line "the LEAGUE is just" cont "fantastic!" para "Your dedication," line "trust and love for" para "your #MON made" line "this happen." para "Your #MON were" line "outstanding too." para "Because they be-" line "lieved in you as a" para "trainer, they per-" line "severed." para "Congratulations," line "<PLAY_G>!" done UnknownText_0x18134b: text "MARY: Let's inter-" line "view the brand new" cont "CHAMPION!" done UnknownText_0x18137b: text "LANCE: This is" line "getting to be a" cont "bit too noisy…" para "<PLAY_G>, could you" line "come with me?" done UnknownText_0x1813c5: text "MARY: Oh, wait!" line "We haven't done" cont "the interview!" done LancesRoom_MapEvents: db 0, 0 ; filler db 4 ; warp events warp_event 4, 23, KARENS_ROOM, 3 warp_event 5, 23, KARENS_ROOM, 4 warp_event 4, 1, HALL_OF_FAME, 1 warp_event 5, 1, HALL_OF_FAME, 2 db 2 ; coord events coord_event 4, 5, SCENE_LANCESROOM_APPROACH_LANCE, Script_ApproachLanceFromLeft coord_event 5, 5, SCENE_LANCESROOM_APPROACH_LANCE, Script_ApproachLanceFromRight db 0 ; bg events db 3 ; object events object_event 5, 3, SPRITE_LANCE, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, LancesRoomLanceScript, -1 object_event 4, 7, SPRITE_TEACHER, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, ObjectEvent, EVENT_LANCES_ROOM_OAK_AND_MARY object_event 4, 7, SPRITE_OAK, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, ObjectEvent, EVENT_LANCES_ROOM_OAK_AND_MARY
20.997199
160
0.796958
ca24f1ec66ab3ed3e8d12e46d59a7d61266c87e5
6,581
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_456.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_456.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_456.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %rax push %rbp push %rdi push %rdx push %rsi lea addresses_WT_ht+0x1a2bb, %rsi nop nop nop cmp %r15, %r15 mov $0x6162636465666768, %rdi movq %rdi, %xmm1 movups %xmm1, (%rsi) xor $35310, %rax lea addresses_D_ht+0x109e3, %rdx nop sub %r12, %r12 movb $0x61, (%rdx) sub %r12, %r12 lea addresses_A_ht+0x1a573, %rdi nop xor $18618, %rsi vmovups (%rdi), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $0, %xmm4, %rax nop nop nop nop add %rbp, %rbp lea addresses_WC_ht+0x1ce3b, %rax clflush (%rax) xor $4778, %rdx mov $0x6162636465666768, %rsi movq %rsi, %xmm7 movups %xmm7, (%rax) nop nop nop cmp %r12, %r12 lea addresses_A_ht+0xffbb, %rax cmp $17473, %r15 movl $0x61626364, (%rax) cmp %rsi, %rsi lea addresses_normal_ht+0x1a2fb, %rsi nop nop nop xor %rdi, %rdi movw $0x6162, (%rsi) nop nop nop nop sub $44490, %r15 lea addresses_UC_ht+0x2cbb, %rbp sub %r12, %r12 movb (%rbp), %al nop nop xor $64035, %r12 lea addresses_normal_ht+0x192bb, %r15 nop nop nop xor %rdi, %rdi mov $0x6162636465666768, %rax movq %rax, %xmm4 movups %xmm4, (%r15) nop nop nop dec %rbp pop %rsi pop %rdx pop %rdi pop %rbp pop %rax pop %r15 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r14 push %r8 push %r9 push %rcx push %rdx // Store lea addresses_D+0x1cc4b, %r11 nop sub $7898, %r14 mov $0x5152535455565758, %r10 movq %r10, (%r11) nop nop dec %r10 // Store lea addresses_WC+0x1f2bb, %r9 nop nop nop dec %rcx mov $0x5152535455565758, %r11 movq %r11, (%r9) nop nop nop nop nop dec %r14 // Store lea addresses_A+0x1f793, %r11 xor $7313, %r10 movw $0x5152, (%r11) nop nop nop cmp %r10, %r10 // Faulty Load lea addresses_A+0x1cfbb, %r11 nop nop nop sub %r8, %r8 mov (%r11), %edx lea oracles, %r14 and $0xff, %rdx shlq $12, %rdx mov (%r14,%rdx,1), %rdx pop %rdx pop %rcx pop %r9 pop %r8 pop %r14 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_A', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_D', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_WC', 'AVXalign': True, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_A', 'AVXalign': False, 'size': 2}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_A', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1}} {'src': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 16}} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 9, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2}} {'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16}} {'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.261628
2,999
0.654308
36fcf19e7345aa1f6107ce9a2cd04941cdad4305
1,182
asm
Assembly
msx/apps/cpusptst/cpusptst.asm
zoggins/yellow-msx-series-for-rc2014
dbc95fa1480bc7bc541fd985fb4a67aab6c8b0fd
[ "MIT" ]
19
2021-02-20T11:48:37.000Z
2022-03-14T21:02:14.000Z
msx/apps/cpusptst/cpusptst.asm
zoggins/yellow-msx-series-for-rc2014
dbc95fa1480bc7bc541fd985fb4a67aab6c8b0fd
[ "MIT" ]
3
2021-06-11T06:07:16.000Z
2021-11-14T07:43:11.000Z
msx/apps/cpusptst/cpusptst.asm
zoggins/yellow-msx-series-for-rc2014
dbc95fa1480bc7bc541fd985fb4a67aab6c8b0fd
[ "MIT" ]
2
2021-05-03T19:09:36.000Z
2021-11-13T19:16:52.000Z
PUBLIC _intOn, _intOff, _counter, _period, _intTriggered SECTION CODE ; TODO COPY TO HIGHMEM OR CHANGE INT HANDLER TO DO SLTCAL defs $8000 - ASMPC TIMI EQU 0FD9FH ;timer interrupt hook JPCODE EQU 0C3H ;----- interrupt on ----- Note: restore the former hook when changing the hook _intOn: INTON: DI LD HL,TIMI ;OLD HOOK SAVE LD DE,HKSAVE LD BC,5 LDIR LD A,JPCODE ;NEW HOOK SET LD (TIMI),A LD HL,INTHANDL LD (TIMI+1),HL EI RET ;----- interrupt off ----- Note: restore the reserved hook and exit _intOff: INTOFF: DI LD HL,HKSAVE LD DE,TIMI LD BC,5 LDIR EI RET ;----- interrupt routine ----- INTHANDL: PUSH AF PUSH HL LD HL, (_counter) LD (_period), HL LD A, 255 LD (_intTriggered), A POP HL FIN: POP AF HKSAVE: NOP ;old HOOK save area NOP NOP NOP RET ; JP HKSAVE ;old HOOK call ; RET SECTION DATA _counter: DW 0 _period: DW 0 _intTriggered: DB 0
17.130435
79
0.515228
ee11e7e19db835ab4111572bc63d94be3e49a3f9
795
asm
Assembly
oeis/141/A141872.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/141/A141872.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/141/A141872.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A141872: Primes congruent to 7 mod 19. ; Submitted by Jon Maiga ; 7,83,197,311,349,463,577,653,691,881,919,1033,1109,1223,1451,1489,1831,1907,2287,2477,2591,2819,2857,2971,3313,3389,3541,3617,3769,4073,4111,4339,4567,4643,4871,4909,5023,5099,5441,5479,5669,5783,5821,5897,6011,6163,6277,6353,6581,6619,6733,6961,7151,7417,7607,7759,7873,7949,8101,8291,8329,8443,8747,8861,9013,9127,9203,9241,9431,9697,9811,9887,10039,10267,10343,10457,10723,10799,10837,11027,11369,11483,11597,11863,11939,12281,12433,12547,12889,13003,13421,13649,13687,13763,13877,14029,14143 mov $2,36 mul $2,$0 mov $4,6 lpb $2 mov $3,$4 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 mov $1,$0 max $1,0 cmp $1,$0 mul $2,$1 sub $2,1 add $4,38 lpe mov $0,$4 add $0,1
37.857143
497
0.725786
fafbbae4873ffc8358f551d3325a8ff4ba9b6205
19
asm
Assembly
tests/include_simple/code2.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
414
2016-10-14T22:39:20.000Z
2022-03-30T07:52:44.000Z
tests/include_simple/code2.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
100
2018-03-22T16:12:24.000Z
2022-03-26T09:19:23.000Z
tests/include_simple/code2.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
47
2017-06-29T15:12:13.000Z
2022-03-10T04:50:51.000Z
#include "code.asm"
19
19
0.736842
7dadacab182223c8385f8aec550a9eb394eb6cf0
346
asm
Assembly
oeis/347/A347512.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/347/A347512.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/347/A347512.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A347512: Number of minimal dominating sets in the n-book graph. ; 6,7,11,19,35,67,131,259,515,1027,2051,4099,8195,16387,32771,65539,131075,262147,524291,1048579,2097155,4194307,8388611,16777219,33554435,67108867,134217731,268435459,536870915,1073741827,2147483651,4294967299,8589934595 bin $1,$0 add $0,1 add $1,2 pow $1,$0 mov $0,$1 add $0,3
34.6
221
0.774566
00c7e6666e5c80cb3194abe2f0151105e1ed6bca
354
asm
Assembly
oeis/137/A137392.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/137/A137392.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/137/A137392.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A137392: (10-n) * Fibonacci(n). ; Submitted by Jon Maiga ; 9,8,14,18,25,32,39,42,34,0,-89,-288,-699,-1508,-3050,-5922,-11179,-20672,-37629,-67650,-120406,-212532,-372541,-649152,-1125375,-1942288,-3339106,-5720598,-9770351,-16640800,-28271649 mov $3,12 sub $3,$0 lpb $0 sub $0,1 mov $2,$1 mov $1,$3 sub $1,3 add $3,$2 lpe mov $0,$3 sub $0,3
22.125
185
0.632768
2d295b0c5e67e1fed1ab522e312b31abf522ca31
295
asm
Assembly
programs/oeis/040/A040357.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/040/A040357.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/040/A040357.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A040357: Continued fraction for sqrt(377). ; 19,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2,38,2,2,2 dif $0,2 seq $0,40360 ; Continued fraction for sqrt(380).
49.166667
190
0.610169
311d76f0beb7a4883baf780713f421ee05def98e
92
asm
Assembly
public/wintab/wintabx/defconte.asm
DannyParker0001/Kisak-Strike
99ed85927336fe3aff2efd9b9382b2b32eb1d05d
[ "Unlicense" ]
252
2020-12-16T15:34:43.000Z
2022-03-31T23:21:37.000Z
cstrike15_src/public/wintab/wintabx/defconte.asm
bahadiraraz/Counter-Strike-Global-Offensive
9a0534100cb98ffa1cf0c32e138f0e7971e910d3
[ "MIT" ]
23
2020-12-20T18:02:54.000Z
2022-03-28T16:58:32.000Z
cstrike15_src/public/wintab/wintabx/defconte.asm
bahadiraraz/Counter-Strike-Global-Offensive
9a0534100cb98ffa1cf0c32e138f0e7971e910d3
[ "MIT" ]
42
2020-12-19T04:32:33.000Z
2022-03-30T06:00:28.000Z
include xlibproc.inc include Wintab.inc PROC_TEMPLATE WTMgrDefContext, 2, Wintab, -, 122
23
49
0.782609
b447be7ff0579ce47efaf0f7146260875c03147e
9,990
asm
Assembly
nopmark.asm
somerandomdev49/Simple_ISA
1616f859e675ef17b9497aa969b7d2753c9d73ed
[ "CC0-1.0" ]
1
2021-07-30T18:53:11.000Z
2021-07-30T18:53:11.000Z
nopmark.asm
somerandomdev49/Simple_ISA
1616f859e675ef17b9497aa969b7d2753c9d73ed
[ "CC0-1.0" ]
null
null
null
nopmark.asm
somerandomdev49/Simple_ISA
1616f859e675ef17b9497aa969b7d2753c9d73ed
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/sisa16_asm -run fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; lfarpc; fill 0xffFD, 0xCB; la @+10+&; halt; asm_print;
12.906977
26
0.617618
9218a286ed09b3b848c1c1327283c9645cadab70
470
asm
Assembly
Bank_G/4_chosof.asm
ndf-zz/fv1testing
1ea474b6d93e888f091de15bcaed0d5a57905f22
[ "CC0-1.0" ]
null
null
null
Bank_G/4_chosof.asm
ndf-zz/fv1testing
1ea474b6d93e888f091de15bcaed0d5a57905f22
[ "CC0-1.0" ]
null
null
null
Bank_G/4_chosof.asm
ndf-zz/fv1testing
1ea474b6d93e888f091de15bcaed0d5a57905f22
[ "CC0-1.0" ]
1
2019-11-26T12:02:28.000Z
2019-11-26T12:02:28.000Z
; FV-1 Testing ; ; Program: cho sof,... test ; ; POT0: Frequency ; ; Check the Sin/Cos CHO outputs on SIN LFO ; skp run,main wlds SIN0,0x0,0x7fff ; LFO preparation main: or 0x7fffff ; load maxval cho sof,SIN0,SIN|REG,0.0 ; fetch sin component and reg wrax DACL,0.0 ; output to DACL or 0x7fffff ; load maxval cho sof,SIN0,COS,0.0 ; fetch cos component wrax DACR,0.0 ; output to DACR ldax POT0 ; fetch freq control wrax SIN0_RATE,0.0 ; save to LFO rate
23.5
55
0.693617
23a005bde227207e660ae66d4e70516387f7028f
71
asm
Assembly
public/wintab/wintabx/wintab.asm
DannyParker0001/Kisak-Strike
99ed85927336fe3aff2efd9b9382b2b32eb1d05d
[ "Unlicense" ]
252
2020-12-16T15:34:43.000Z
2022-03-31T23:21:37.000Z
cstrike15_src/public/wintab/wintabx/wintab.asm
bahadiraraz/Counter-Strike-Global-Offensive
9a0534100cb98ffa1cf0c32e138f0e7971e910d3
[ "MIT" ]
23
2020-12-20T18:02:54.000Z
2022-03-28T16:58:32.000Z
cstrike15_src/public/wintab/wintabx/wintab.asm
bahadiraraz/Counter-Strike-Global-Offensive
9a0534100cb98ffa1cf0c32e138f0e7971e910d3
[ "MIT" ]
42
2020-12-19T04:32:33.000Z
2022-03-30T06:00:28.000Z
include xlibmod.inc include Wintab.inc MODULE_TEMPLATE Wintab, , <>
17.75
29
0.760563
dd71cf0230c89aa94e4322c4dd3431c1317b7f0d
454
asm
Assembly
src/PJ/fileio/dosmkdir.asm
AnimatorPro/Animator-Pro
6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb
[ "BSD-3-Clause" ]
119
2015-01-10T15:13:50.000Z
2022-01-24T04:54:34.000Z
src/PJ/fileio/dosmkdir.asm
AnimatorPro/Animator-Pro
6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb
[ "BSD-3-Clause" ]
6
2015-10-22T20:14:59.000Z
2021-07-10T03:25:21.000Z
src/PJ/fileio/dosmkdir.asm
AnimatorPro/Animator-Pro
6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb
[ "BSD-3-Clause" ]
27
2015-04-24T22:55:30.000Z
2022-01-21T13:54:00.000Z
CGROUP group code code segment dword 'CODE' assume cs:CGROUP,ds:CGROUP include errcodes.i public pj_dmake_dir ; Boolean pj_dmake_dir(char *path); pj_dmake_dir proc near jmdp struc jmd_edx dd ? jmd_ret dd ? jmd_path dd ? jmdp ends push edx mov edx,[esp].jmd_path mov ah,39h int 21h jc jmd_bad mov eax,success jmp jmd_end jmd_bad: mov eax,err_nogood jmd_end: pop edx ret pj_dmake_dir endp code ends end
13.757576
36
0.702643
9227f2e7772073db7c6264ab4e2c744c4c3e8ee3
4,385
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1230.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1230.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1230.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 %rbp push %rcx push %rdi push %rdx lea addresses_WC_ht+0x79d6, %r11 clflush (%r11) nop and $39926, %rbp mov $0x6162636465666768, %rdx movq %rdx, %xmm3 movups %xmm3, (%r11) nop xor $20067, %rcx lea addresses_normal_ht+0x197d6, %rdi nop nop nop nop nop sub $10908, %r10 mov $0x6162636465666768, %r14 movq %r14, (%rdi) nop nop nop add %rcx, %rcx pop %rdx pop %rdi pop %rcx pop %rbp pop %r14 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r9 push %rax push %rbp push %rdi push %rsi // Faulty Load lea addresses_A+0x19dd6, %rax nop nop xor %r13, %r13 mov (%rax), %rsi lea oracles, %rbp and $0xff, %rsi shlq $12, %rsi mov (%rbp,%rsi,1), %rsi pop %rsi pop %rdi pop %rbp pop %rax pop %r9 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_A', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 10}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'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 */
54.8125
2,999
0.663626
1b13f4291d9d8cc2b0672ffad48593182a8fa9a9
141
asm
Assembly
test/testdata_vm/021 ld_2.asm
onlyafly/oakblue
377c22f499526750b4b6adb54f54923ae8bded12
[ "MIT" ]
null
null
null
test/testdata_vm/021 ld_2.asm
onlyafly/oakblue
377c22f499526750b4b6adb54f54923ae8bded12
[ "MIT" ]
null
null
null
test/testdata_vm/021 ld_2.asm
onlyafly/oakblue
377c22f499526750b4b6adb54f54923ae8bded12
[ "MIT" ]
null
null
null
LD r5 data1 LD r6 data3 LD r7 data5 ADD R0 R5 r6 ADD R0 R0 R7 HALT data1: .FILL 3 data2: .FILL 4 data3: .FILL 5 data4: .FILL 6 data5: .FILL 7
12.818182
14
0.702128
63f6ee062be71d010e5dafae660d6bb65722642f
251
asm
Assembly
MOS4/OS.asm
Mishin870/MOS
cf2a94b0a0ace3380dd58adc4848baed78097df2
[ "MIT" ]
1
2020-10-10T08:31:42.000Z
2020-10-10T08:31:42.000Z
MOS4/OS.asm
Mishin870/MOS
cf2a94b0a0ace3380dd58adc4848baed78097df2
[ "MIT" ]
null
null
null
MOS4/OS.asm
Mishin870/MOS
cf2a94b0a0ace3380dd58adc4848baed78097df2
[ "MIT" ]
null
null
null
macro align value { db value-1 - ($ + value-1) mod (value) dup 0 } HEADS = 1 ;34 сектора по 512 байт SPT = 34 Begin: file "boot.bin", 512 file "kernel24.bin" align 8192 ;16 секторов file "kernel32.bin" align 8192 ;16 секторов align HEADS*SPT*512
22.818182
66
0.689243
801dff61ffdcec3fe5fc092f36d7e57ff5c1a334
7,413
asm
Assembly
P6/data_P6_2/cal_R_test57.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
1
2022-01-23T09:24:47.000Z
2022-01-23T09:24:47.000Z
P6/data_P6_2/cal_R_test57.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
P6/data_P6_2/cal_R_test57.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
lui $1,51477 ori $1,$1,12885 lui $2,13855 ori $2,$2,60530 lui $3,3806 ori $3,$3,64677 lui $4,52841 ori $4,$4,13990 lui $5,9706 ori $5,$5,44160 lui $6,64090 ori $6,$6,55955 mthi $1 mtlo $2 sec0: nop nop nop subu $0,$6,$2 sec1: nop nop xor $2,$3,$0 subu $5,$6,$2 sec2: nop nop ori $2,$2,57933 subu $2,$6,$2 sec3: nop nop mfhi $2 subu $2,$6,$2 sec4: nop nop lh $2,0($0) subu $2,$6,$2 sec5: nop nor $2,$3,$3 nop subu $0,$6,$2 sec6: nop sltu $2,$5,$6 or $2,$3,$5 subu $2,$6,$2 sec7: nop addu $2,$2,$2 lui $2,34137 subu $3,$6,$2 sec8: nop slt $2,$3,$4 mfhi $2 subu $2,$6,$2 sec9: nop and $2,$2,$0 lhu $2,0($0) subu $4,$6,$2 sec10: nop slti $2,$6,26429 nop subu $4,$6,$2 sec11: nop lui $2,55740 or $2,$2,$3 subu $6,$6,$2 sec12: nop slti $2,$5,-31256 addiu $2,$6,2703 subu $3,$6,$2 sec13: nop addiu $2,$2,2783 mfhi $2 subu $4,$6,$2 sec14: nop andi $2,$5,11951 lhu $2,8($0) subu $1,$6,$2 sec15: nop mfhi $2 nop subu $2,$6,$2 sec16: nop mfhi $2 sltu $2,$6,$2 subu $2,$6,$2 sec17: nop mflo $2 slti $2,$3,23736 subu $2,$6,$2 sec18: nop mflo $2 mflo $2 subu $0,$6,$2 sec19: nop mflo $2 lbu $2,3($0) subu $2,$6,$2 sec20: nop lb $2,9($0) nop subu $5,$6,$2 sec21: nop lhu $2,6($0) sltu $2,$3,$5 subu $5,$6,$2 sec22: nop lbu $2,3($0) lui $2,34122 subu $1,$6,$2 sec23: nop lw $2,8($0) mflo $2 subu $3,$6,$2 sec24: nop lw $2,8($0) lbu $2,5($0) subu $2,$6,$2 sec25: and $2,$0,$0 nop nop subu $4,$6,$2 sec26: nor $2,$3,$3 nop and $2,$3,$4 subu $3,$6,$2 sec27: sltu $2,$3,$3 nop ori $2,$5,24949 subu $0,$6,$2 sec28: addu $2,$3,$3 nop mflo $2 subu $4,$6,$2 sec29: sltu $2,$3,$6 nop lh $2,0($0) subu $5,$6,$2 sec30: nor $2,$3,$4 sltu $2,$0,$2 nop subu $2,$6,$2 sec31: and $2,$1,$2 xor $2,$5,$5 or $2,$2,$1 subu $1,$6,$2 sec32: xor $2,$4,$3 nor $2,$4,$4 lui $2,18713 subu $6,$6,$2 sec33: subu $2,$2,$1 nor $2,$6,$3 mflo $2 subu $3,$6,$2 sec34: or $2,$4,$5 addu $2,$5,$6 lb $2,2($0) subu $6,$6,$2 sec35: slt $2,$3,$4 slti $2,$5,3547 nop subu $5,$6,$2 sec36: and $2,$3,$2 addiu $2,$1,31742 xor $2,$3,$5 subu $3,$6,$2 sec37: addu $2,$5,$5 andi $2,$6,55513 addiu $2,$2,17628 subu $1,$6,$2 sec38: and $2,$4,$2 addiu $2,$4,-7265 mfhi $2 subu $2,$6,$2 sec39: slt $2,$1,$5 sltiu $2,$3,1257 lw $2,16($0) subu $4,$6,$2 sec40: and $2,$3,$5 mfhi $2 nop subu $2,$6,$2 sec41: xor $2,$1,$3 mfhi $2 subu $2,$1,$0 subu $4,$6,$2 sec42: and $2,$3,$4 mflo $2 addiu $2,$2,-14467 subu $6,$6,$2 sec43: nor $2,$5,$0 mflo $2 mflo $2 subu $3,$6,$2 sec44: sltu $2,$1,$4 mfhi $2 lw $2,16($0) subu $5,$6,$2 sec45: nor $2,$3,$1 lb $2,14($0) nop subu $4,$6,$2 sec46: subu $2,$3,$6 lh $2,10($0) and $2,$5,$4 subu $0,$6,$2 sec47: slt $2,$5,$4 lh $2,8($0) ori $2,$2,59603 subu $3,$6,$2 sec48: xor $2,$3,$1 lbu $2,6($0) mfhi $2 subu $1,$6,$2 sec49: sltu $2,$3,$3 lh $2,0($0) lh $2,6($0) subu $5,$6,$2 sec50: andi $2,$2,54714 nop nop subu $3,$6,$2 sec51: xori $2,$4,61875 nop subu $2,$2,$3 subu $2,$6,$2 sec52: xori $2,$1,39346 nop ori $2,$1,19716 subu $4,$6,$2 sec53: ori $2,$3,17456 nop mflo $2 subu $2,$6,$2 sec54: ori $2,$2,49337 nop lb $2,16($0) subu $4,$6,$2 sec55: ori $2,$4,64619 xor $2,$4,$4 nop subu $3,$6,$2 sec56: slti $2,$5,20722 or $2,$5,$1 slt $2,$4,$3 subu $4,$6,$2 sec57: slti $2,$5,6886 nor $2,$5,$5 ori $2,$2,21310 subu $3,$6,$2 sec58: xori $2,$5,41343 addu $2,$1,$2 mflo $2 subu $3,$6,$2 sec59: sltiu $2,$2,-30563 xor $2,$4,$0 lhu $2,12($0) subu $4,$6,$2 sec60: slti $2,$3,27121 lui $2,61935 nop subu $1,$6,$2 sec61: xori $2,$1,28966 addiu $2,$2,17371 or $2,$3,$4 subu $4,$6,$2 sec62: xori $2,$3,14851 ori $2,$5,3909 slti $2,$2,19256 subu $4,$6,$2 sec63: slti $2,$3,3038 lui $2,26433 mfhi $2 subu $3,$6,$2 sec64: ori $2,$3,22745 slti $2,$4,-24719 lbu $2,4($0) subu $4,$6,$2 sec65: slti $2,$6,11721 mfhi $2 nop subu $3,$6,$2 sec66: xori $2,$5,41936 mfhi $2 addu $2,$6,$3 subu $3,$6,$2 sec67: ori $2,$0,26012 mflo $2 addiu $2,$5,-13546 subu $6,$6,$2 sec68: ori $2,$4,40908 mflo $2 mflo $2 subu $4,$6,$2 sec69: slti $2,$3,-17545 mflo $2 lw $2,12($0) subu $5,$6,$2 sec70: addiu $2,$3,-7919 lb $2,12($0) nop subu $0,$6,$2 sec71: slti $2,$2,21996 lh $2,10($0) nor $2,$1,$4 subu $5,$6,$2 sec72: ori $2,$1,30087 lhu $2,0($0) addiu $2,$4,-16255 subu $4,$6,$2 sec73: ori $2,$0,17345 lbu $2,15($0) mfhi $2 subu $5,$6,$2 sec74: xori $2,$4,3046 lb $2,1($0) lh $2,2($0) subu $2,$6,$2 sec75: mflo $2 nop nop subu $4,$6,$2 sec76: mflo $2 nop subu $2,$5,$3 subu $4,$6,$2 sec77: mfhi $2 nop ori $2,$6,2307 subu $5,$6,$2 sec78: mfhi $2 nop mfhi $2 subu $3,$6,$2 sec79: mfhi $2 nop lb $2,9($0) subu $2,$6,$2 sec80: mfhi $2 sltu $2,$6,$3 nop subu $3,$6,$2 sec81: mflo $2 xor $2,$3,$4 addu $2,$4,$5 subu $5,$6,$2 sec82: mflo $2 addu $2,$2,$3 sltiu $2,$2,15537 subu $1,$6,$2 sec83: mfhi $2 or $2,$5,$1 mflo $2 subu $3,$6,$2 sec84: mfhi $2 nor $2,$5,$3 lh $2,14($0) subu $2,$6,$2 sec85: mflo $2 xori $2,$4,5078 nop subu $2,$6,$2 sec86: mflo $2 ori $2,$0,24466 sltu $2,$2,$5 subu $2,$6,$2 sec87: mfhi $2 slti $2,$6,23058 ori $2,$3,39744 subu $5,$6,$2 sec88: mfhi $2 slti $2,$4,12816 mflo $2 subu $5,$6,$2 sec89: mflo $2 xori $2,$3,63261 lw $2,0($0) subu $2,$6,$2 sec90: mfhi $2 mflo $2 nop subu $2,$6,$2 sec91: mfhi $2 mfhi $2 slt $2,$4,$3 subu $0,$6,$2 sec92: mflo $2 mflo $2 slti $2,$4,26841 subu $4,$6,$2 sec93: mflo $2 mflo $2 mflo $2 subu $5,$6,$2 sec94: mflo $2 mflo $2 lh $2,14($0) subu $3,$6,$2 sec95: mflo $2 lw $2,16($0) nop subu $6,$6,$2 sec96: mflo $2 lw $2,8($0) nor $2,$1,$3 subu $4,$6,$2 sec97: mfhi $2 lhu $2,6($0) xori $2,$3,51340 subu $2,$6,$2 sec98: mflo $2 lh $2,4($0) mflo $2 subu $1,$6,$2 sec99: mflo $2 lh $2,0($0) lbu $2,16($0) subu $0,$6,$2 sec100: lb $2,5($0) nop nop subu $4,$6,$2 sec101: lh $2,4($0) nop xor $2,$3,$4 subu $5,$6,$2 sec102: lbu $2,10($0) nop andi $2,$4,60060 subu $3,$6,$2 sec103: lb $2,7($0) nop mfhi $2 subu $2,$6,$2 sec104: lbu $2,12($0) nop lh $2,14($0) subu $4,$6,$2 sec105: lh $2,0($0) addu $2,$5,$3 nop subu $3,$6,$2 sec106: lhu $2,14($0) addu $2,$1,$5 addu $2,$2,$3 subu $0,$6,$2 sec107: lw $2,12($0) slt $2,$2,$1 sltiu $2,$2,-3649 subu $3,$6,$2 sec108: lb $2,7($0) addu $2,$2,$2 mflo $2 subu $6,$6,$2 sec109: lbu $2,0($0) addu $2,$4,$2 lhu $2,2($0) subu $2,$6,$2 sec110: lbu $2,15($0) slti $2,$2,31296 nop subu $2,$6,$2 sec111: lbu $2,9($0) slti $2,$5,22166 sltu $2,$3,$3 subu $6,$6,$2 sec112: lh $2,8($0) addiu $2,$2,28313 lui $2,31860 subu $3,$6,$2 sec113: lh $2,6($0) addiu $2,$2,-18397 mfhi $2 subu $1,$6,$2 sec114: lw $2,4($0) ori $2,$1,28597 lbu $2,7($0) subu $4,$6,$2 sec115: lhu $2,14($0) mfhi $2 nop subu $4,$6,$2 sec116: lb $2,5($0) mfhi $2 nor $2,$3,$1 subu $2,$6,$2 sec117: lbu $2,5($0) mflo $2 lui $2,36019 subu $4,$6,$2 sec118: lh $2,8($0) mfhi $2 mflo $2 subu $3,$6,$2 sec119: lb $2,0($0) mfhi $2 lh $2,14($0) subu $0,$6,$2 sec120: lbu $2,6($0) lb $2,13($0) nop subu $3,$6,$2 sec121: lw $2,12($0) lw $2,16($0) xor $2,$6,$6 subu $2,$6,$2 sec122: lh $2,16($0) lh $2,14($0) lui $2,46208 subu $2,$6,$2 sec123: lb $2,3($0) lw $2,4($0) mfhi $2 subu $1,$6,$2 sec124: lh $2,6($0) lbu $2,10($0) lw $2,0($0) subu $6,$6,$2
11.582813
19
0.530015
a16a6323305d2ececed4374a522c394aff241692
237
asm
Assembly
data/mapHeaders/silphco10.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
16
2018-08-28T21:47:01.000Z
2022-02-20T20:29:59.000Z
data/mapHeaders/silphco10.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
5
2019-04-03T19:53:11.000Z
2022-03-11T22:49:34.000Z
data/mapHeaders/silphco10.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
2
2019-12-09T19:46:02.000Z
2020-12-05T21:36:30.000Z
SilphCo10_h: db FACILITY ; tileset db SILPH_CO_10F_HEIGHT, SILPH_CO_10F_WIDTH ; dimensions (y, x) dw SilphCo10Blocks, SilphCo10TextPointers, SilphCo10Script ; blocks, texts, scripts db $00 ; connections dw SilphCo10Object ; objects
33.857143
84
0.797468
fa12c5dcb9cb62bacf3b9415bb6339b1db0ca2d3
938
asm
Assembly
4 专业科目/计算机组成/习题/hw/自己动手写CPU/Code/Chapter8/AsmTest/Test1/inst_rom.asm
ladike/912_project
5178c1c93ac6ca30ffc72dd689f5c6932704b4ab
[ "MIT" ]
640
2019-03-30T11:32:43.000Z
2022-03-31T14:05:18.000Z
4 专业科目/计算机组成/习题/hw/自己动手写CPU/Code/Chapter8/AsmTest/Test1/inst_rom.asm
ladike/912_project
5178c1c93ac6ca30ffc72dd689f5c6932704b4ab
[ "MIT" ]
6
2019-07-22T01:57:24.000Z
2022-01-20T15:03:16.000Z
4 专业科目/计算机组成/习题/hw/自己动手写CPU/Code/Chapter8/AsmTest/Test1/inst_rom.asm
ladike/912_project
5178c1c93ac6ca30ffc72dd689f5c6932704b4ab
[ "MIT" ]
212
2019-04-10T02:31:50.000Z
2022-03-30T02:32:47.000Z
inst_rom.om: file format elf32-tradbigmips Disassembly of section .text: 00000000 <_start>: 0: 34010001 li at,0x1 4: 08000008 j 20 <_start+0x20> 8: 34010002 li at,0x2 c: 34011111 li at,0x1111 10: 34011100 li at,0x1100 ... 20: 34010003 li at,0x3 24: 0c000010 jal 40 <_start+0x40> 28: 03e1001a div zero,ra,at 2c: 34010005 li at,0x5 30: 34010006 li at,0x6 34: 08000018 j 60 <_start+0x60> 38: 00000000 nop 3c: 00000000 nop 40: 03e01009 jalr v0,ra 44: 00400825 move at,v0 48: 34010009 li at,0x9 4c: 3401000a li at,0xa 50: 08000020 j 80 <_start+0x80> 54: 00000000 nop ... 60: 34010007 li at,0x7 64: 00400008 jr v0 68: 34010008 li at,0x8 6c: 34011111 li at,0x1111 70: 34011100 li at,0x1100 ... 00000084 <_loop>: 84: 08000021 j 84 <_loop> 88: 00000000 nop Disassembly of section .reginfo: 00000000 <_ram_end-0x90>: 0: 80000006 lb zero,6(zero) ...
21.813953
46
0.658849
f0d20586f44c219728446d9ff9faa78710400935
6,569
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca_notsx.log_21829_891.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca_notsx.log_21829_891.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca_notsx.log_21829_891.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 %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x76a1, %rbx nop xor $17409, %rsi mov (%rbx), %r9 sub %rdx, %rdx lea addresses_A_ht+0x10bdf, %r9 nop nop nop sub $58288, %r13 mov (%r9), %r11d nop nop xor $37747, %r11 lea addresses_A_ht+0xe8cf, %rsi lea addresses_WT_ht+0x6ed7, %rdi nop nop inc %rdx mov $35, %rcx rep movsq inc %rcx lea addresses_A_ht+0x1390f, %rdx nop nop nop nop and $44846, %rsi vmovups (%rdx), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $1, %xmm1, %r9 sub $39119, %rcx lea addresses_WT_ht+0x1e027, %rcx nop nop nop mfence movl $0x61626364, (%rcx) nop nop nop sub $53189, %r9 lea addresses_A_ht+0x190cf, %rsi lea addresses_D_ht+0x122cf, %rdi nop nop sub $5418, %r13 mov $89, %rcx rep movsq nop inc %rdx lea addresses_normal_ht+0xc3df, %rsi lea addresses_A_ht+0x194f, %rdi nop nop xor $38842, %r9 mov $115, %rcx rep movsl nop add %r11, %r11 lea addresses_WT_ht+0x1c00f, %r13 nop sub $21030, %rsi movl $0x61626364, (%r13) nop nop nop cmp %rbx, %rbx lea addresses_D_ht+0x14daf, %r11 clflush (%r11) and $50940, %r13 movb (%r11), %dl nop nop nop sub %r9, %r9 lea addresses_D_ht+0x6201, %r11 clflush (%r11) add %rsi, %rsi movb (%r11), %cl nop cmp %rsi, %rsi lea addresses_normal_ht+0xbdff, %rdi cmp %rcx, %rcx mov $0x6162636465666768, %r13 movq %r13, (%rdi) nop xor %r13, %r13 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r15 push %r8 push %rbx // Faulty Load mov $0x5cb4c00000000cf, %r12 nop nop nop xor $25084, %r8 movups (%r12), %xmm3 vpextrq $0, %xmm3, %rbx lea oracles, %r8 and $0xff, %rbx shlq $12, %rbx mov (%r8,%rbx,1), %rbx pop %rbx pop %r8 pop %r15 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 4}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WT_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 6}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 6}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 5}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 1}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 4}} {'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 */
41.840764
2,999
0.656264
2afc86dd98e40698a929dfd30293cc074a32c7ca
236
asm
Assembly
utils/puts.asm
pchynoweth/cx16-utils
38158c91e0c899ae237dfdd91dc5efff1508a870
[ "MIT" ]
null
null
null
utils/puts.asm
pchynoweth/cx16-utils
38158c91e0c899ae237dfdd91dc5efff1508a870
[ "MIT" ]
null
null
null
utils/puts.asm
pchynoweth/cx16-utils
38158c91e0c899ae237dfdd91dc5efff1508a870
[ "MIT" ]
null
null
null
.export puts .include "cx16.inc" .include "cbm_kernal.inc" .include "utils/reg.inc" .code ; invalidates a,y .proc puts ldy #0 @loop: lda (REG::r0), y beq @done jsr CHROUT iny bra @loop @done: rts .endproc
11.238095
25
0.610169
92adc4444596eae96e50b1b0f45f51c94de9ab54
3,190
asm
Assembly
Lab9.asm
CZhang1997/x86-Assembly
cc749da71eb15d48ecc2e75deb524a2c1c4dc192
[ "MIT" ]
null
null
null
Lab9.asm
CZhang1997/x86-Assembly
cc749da71eb15d48ecc2e75deb524a2c1c4dc192
[ "MIT" ]
null
null
null
Lab9.asm
CZhang1997/x86-Assembly
cc749da71eb15d48ecc2e75deb524a2c1c4dc192
[ "MIT" ]
null
null
null
; Churong Zhang .386 .model flat public _Sort public _StrCmp public _StrCopy public _StrLen .DATA i DWORD ? Sorted BYTE ? Temp BYTE 20 DUP (?) Strings DWORD ? NumRows DWORD ? NumCols DWORD ? .code _Sort proc ; void Sort (char Strings [] [20], int NumRows, int NumCols) push ebp mov ebp, esp mov ebx, [ebp + 8] ; ebx is address of Strings mov edx, [ebp + 12] ; num of rows mov ecx, [ebp + 16] ; num of char in string push edi push esi L1: mov Sorted, 1 dec edx xor eax, eax ; set loop counter i to zero L2: ; for (i = 0; i < NumRows; i++) push edx push ecx push eax push ebx inc eax imul eax, ecx add ebx, eax push ebx ; push ebx + ((eax + 1) * ecx) sub ebx, ecx push ebx ; push ebx + (eax * ecx) call _StrCmp ; MemCmp (Strings [i], Strings [i + 1], NumCols) add esp, 8 cmp eax, 0 ; if (memcmp (Strings [i], Strings [i + 1], NumCols) > 0) jg Swap ; If (True) jmp FinishIF ; If (False) Swap: mov ebx, [esp] mov eax, [esp + 4] mov ecx, [esp + 8] mov edx, [esp + 12] inc eax imul eax, ecx add ebx, eax mov esi, ebx PUSH esi push OFFSET Temp ; memcpy (Temp, Strings [i + 1], NumCols); call _StrCopy ; mov Temp, [ebx + ((eax + 1) * ecx)] add esp, 8 mov ebx, [esp] mov eax, [esp + 4] mov ecx, [esp + 8] mov edx, [esp + 12] imul eax, ecx add ebx, eax push ebx add ebx, ecx push ebx call _StrCopy ; memcpy (Strings [i + 1], Strings [i], NumCols); add esp, 8 mov ebx, [esp] mov eax, [esp + 4] mov ecx, [esp + 8] mov edx, [esp + 12] imul eax, ecx add ebx, eax mov edi, ebx push OFFSET Temp push edi ; mov [ebx + (eax * ecx)], Temp call _StrCopy ; memcpy (Strings [i], Temp, NumCols); add esp, 8 mov Sorted, 0 ; Sorted = false; FinishIF: pop ebx pop eax pop ecx pop edx inc eax cmp eax, edx ; For loop jl L2 je L1 ; Do while loop EndFor: pop esi pop edi pop ebp ret _Sort endp _StrCmp proc push edi push esi mov esi, [esp + 12] mov edi, [esp + 16] cld repe cmpsb jne MisMatch ; mov eax, 0 ; jmp done MisMatch: dec esi dec edi mov bh, [edi] cmp [esi], bh jg Greater je Equal mov eax, -1 jmp done Equal: mov eax, 0 jmp done Greater: mov eax, 1 done: pop esi pop edi ret _StrCmp endp _StrCopy proc push [esp + 8] call _StrLen add esp, 4 mov ecx, eax inc ecx push edi push esi mov esi, [esp + 16] mov edi, [esp + 12] cld rep movsb pop esi pop edi ret _StrCopy endp _StrLen proc mov ebx, [esp + 4] xor eax, eax ; sets eax to zero xor cl, cl Start: cmp [ebx + eax], cl ; mov BYTE PTR [eax + ebx], 'A' ; 'A' gives the ascii code for the character A je Done inc eax jmp Start Done: ret _StrLen endp end
16.528497
82
0.52069
d1d7505ec815a16360485dd0e213d502d35a5057
236
asm
Assembly
teaser I/asm/Exec BruceIsBackHome.asm
fa8ntomas/bclk-samples
6e7f054eb4b96ca011ffb2ea49226146b001274b
[ "MIT" ]
null
null
null
teaser I/asm/Exec BruceIsBackHome.asm
fa8ntomas/bclk-samples
6e7f054eb4b96ca011ffb2ea49226146b001274b
[ "MIT" ]
null
null
null
teaser I/asm/Exec BruceIsBackHome.asm
fa8ntomas/bclk-samples
6e7f054eb4b96ca011ffb2ea49226146b001274b
[ "MIT" ]
null
null
null
; Map 'BruceIsBackHome' Exec lda MapVar2 bne noop ldy MapVar1 cpy #$40 bne doInc lda #$36 sta Map2Dli0+7 sta MapVar2 jsr PlaySfxEntrance noop: rts doInc: iny sty MapVar1 rts
10.26087
28
0.572034
d18740fa73cc230502e93e7b2f34a2ea0114e8d2
167
asm
Assembly
libsrc/_DEVELOPMENT/input/zx/c/sdcc_iy/in_stick_sinclair2.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/input/zx/c/sdcc_iy/in_stick_sinclair2.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/input/zx/c/sdcc_iy/in_stick_sinclair2.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; uint16_t in_stick_sinclair2(void) SECTION code_input PUBLIC _in_stick_sinclair2 EXTERN asm_in_stick_sinclair2 defc _in_stick_sinclair2 = asm_in_stick_sinclair2
15.181818
49
0.868263
ddb4e12101841e226bb5386888e9ab4afe47f05e
401
asm
Assembly
oeis/220/A220753.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/220/A220753.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/220/A220753.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A220753: Expansion of (1+4*x+5*x^2-x^3)/((1-x)*(1+x)*(1-2*x^2)). ; Submitted by Jamie Morken(s3.) ; 1,4,8,11,22,25,50,53,106,109,218,221,442,445,890,893,1786,1789,3578,3581,7162,7165,14330,14333,28666,28669,57338,57341,114682,114685,229370,229373,458746,458749,917498,917501,1835002,1835005,3670010,3670013 mov $1,6 lpb $0 sub $0,2 mul $1,2 add $1,1 lpe mul $0,3 add $1,$0 mov $0,$1 sub $0,5
26.733333
208
0.678304
f3c9d1b16a5328bc8d5be15b4f17c751892f42a0
105
asm
Assembly
add8bit.asm
suriya-1403/Assemble-language
2e389341ff4c95a5c43b1653d1bf8071a52e7da7
[ "MIT" ]
null
null
null
add8bit.asm
suriya-1403/Assemble-language
2e389341ff4c95a5c43b1653d1bf8071a52e7da7
[ "MIT" ]
null
null
null
add8bit.asm
suriya-1403/Assemble-language
2e389341ff4c95a5c43b1653d1bf8071a52e7da7
[ "MIT" ]
null
null
null
code segment assume cs:code mov ax, 0000H mov bx, 0000H mov al,05h mov bl,03h add al,bl hlt code ends end
10.5
14
0.761905
d86811f791ddfa5b33830c1d2f2994f993065c8f
745
asm
Assembly
oeis/106/A106511.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/106/A106511.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/106/A106511.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A106511: Expansion of (1+x)^2/((1 + x + x^2)*(1 + x - x^2)). ; Submitted by Jon Maiga ; 1,0,0,0,1,-2,3,-4,6,-10,17,-28,45,-72,116,-188,305,-494,799,-1292,2090,-3382,5473,-8856,14329,-23184,37512,-60696,98209,-158906,257115,-416020,673134,-1089154,1762289,-2851444,4613733,-7465176,12078908,-19544084,31622993,-51167078,82790071,-133957148,216747218,-350704366,567451585,-918155952,1485607537,-2403763488,3889371024,-6293134512,10182505537,-16475640050,26658145587,-43133785636,69791931222,-112925716858,182717648081,-295643364940,478361013021,-774004377960,1252365390980,-2026369768940 mov $1,1 mov $2,1 lpb $0 sub $0,1 mov $5,$1 mov $1,$4 sub $2,1 mov $4,$2 mov $2,$3 mov $3,$5 sub $3,$2 add $2,1 sub $4,$1 lpe mov $0,$1
37.25
499
0.703356
328f9cb6162f780bdf13df9a6d16ab3657dfb6ce
771
asm
Assembly
SM4.asm
IamSumitKumar/MicroProcessor
6dd78232c55f9f157cba27f50e9cdcd41f87ae59
[ "Unlicense" ]
null
null
null
SM4.asm
IamSumitKumar/MicroProcessor
6dd78232c55f9f157cba27f50e9cdcd41f87ae59
[ "Unlicense" ]
null
null
null
SM4.asm
IamSumitKumar/MicroProcessor
6dd78232c55f9f157cba27f50e9cdcd41f87ae59
[ "Unlicense" ]
null
null
null
.MODEL SMALL .386P .DATA ; N1 DD 1234567AH N2 DD 11111111H N3 DD ? N4 DD ? COUNT DB 08H QUOTIENT DB "QUOTIENT:", 10, 13, '$' REMAINDER DB "REMAINDER:", 10, 13, '$' .CODE ; .STARTUP ; MOV AX, @DATA MOV DS, AX MOV EDX, 00000000H MOV EAX, N1 DIV N2 MOV N3, EDX MOV N4, EAX MOV DX, OFFSET QUOTIENT MOV AH, 09H INT 21H MOV EAX, N4 CALL DISP MOV DL, 13 MOV AH, 02H INT 21H MOV DL, 10 MOV AH, 02H INT 21H MOV DX, OFFSET REMAINDER MOV AH, 09H INT 21H MOV EAX, N3 CALL DISP MOV AH, 4CH INT 21H DISP PROC NEAR MOV CL, COUNT UP: ROL EAX, 04H MOV BX, AX AND AL, 0FH CMP AL, 0AH JNGE NOTGREATER ADD AL, 07H NOTGREATER: ADD AL, 30H MOV DL, AL MOV AH, 02H INT 21H MOV AX, BX LOOP UP RET ENDP DISP END .EXIT
11.338235
39
0.625162
535f6369d30df3ccf9dce61da4508080e408a704
5,079
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_471.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_471.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_471.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 %r13 push %r15 push %r8 push %rcx push %rdi push %rsi lea addresses_D_ht+0x12df1, %rdi clflush (%rdi) nop xor %r10, %r10 movw $0x6162, (%rdi) nop nop nop nop dec %r10 lea addresses_WC_ht+0xc3b1, %rcx nop nop cmp $34745, %rsi mov (%rcx), %r8 nop nop nop xor %r8, %r8 lea addresses_D_ht+0x112f1, %rsi lea addresses_D_ht+0x31f1, %rdi nop nop nop add %r15, %r15 mov $25, %rcx rep movsl nop nop nop nop and %r8, %r8 lea addresses_WT_ht+0x183e0, %r10 clflush (%r10) nop nop xor $14247, %r13 mov (%r10), %r15 nop add %r15, %r15 pop %rsi pop %rdi pop %rcx pop %r8 pop %r15 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %r8 push %rax push %rdi // Load lea addresses_A+0x12f1, %r8 nop dec %r10 movups (%r8), %xmm5 vpextrq $1, %xmm5, %r14 nop cmp $10122, %r14 // Faulty Load lea addresses_A+0x159f1, %rdi nop nop nop nop nop dec %r14 movups (%rdi), %xmm7 vpextrq $0, %xmm7, %r12 lea oracles, %r10 and $0xff, %r12 shlq $12, %r12 mov (%r10,%r12,1), %r12 pop %rdi pop %rax pop %r8 pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 8}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_A', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 10}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 2}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 7}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 10}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': True, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 0}} {'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 */
44.552632
2,999
0.657019
32dcb8405d2c6fc20685d4fb2b7a818df8094b07
1,281
asm
Assembly
Gas/Dos/UtilsLib/GasRoot.asm
Gabidal/GAS_Pack
02f13531849bc5c03721a4319a9e315a60ba7707
[ "MIT" ]
1
2021-09-21T13:07:37.000Z
2021-09-21T13:07:37.000Z
Gas/Dos/UtilsLib/GasRoot.asm
Gabidal/GAS_Pack
02f13531849bc5c03721a4319a9e315a60ba7707
[ "MIT" ]
null
null
null
Gas/Dos/UtilsLib/GasRoot.asm
Gabidal/GAS_Pack
02f13531849bc5c03721a4319a9e315a60ba7707
[ "MIT" ]
null
null
null
;the G lib commands %macro main 1 org 100h section .%1 start: %endmacro %macro system 1 int %1 %endmacro %macro sout 1 mov dx, %1 mov ah,9 int 21h %endmacro %macro nout 1 toChar %1, %1 mov [numOut], %1 sout numOut %endmacro %macro clean 1 xor %1, %1 %endmacro %macro split 3 lea si, splitbuffer[0] mov [si], word %1 lea si, splitbuffer[0] mov %2, byte [si+0] ;hi- mov %3, byte [si+1] ;lo- %endmacro %macro shiftLeft 0 mov [savp], eax mov eax, [edx] mov edx, ebx mov ebx, ecx mov ecx, dword [savp] %endmacro %macro shiftRight 0 mov [savp], ecx mov ecx, ebx mov ebx, edx mov edx, eax mov eax, dword [savp] %endmacro %macro saveLocal 0 mov savePoint[0], word ax mov savePoint[1], word bx mov savePoint[2], word cx mov savePoint[3], word dx mov savePoint[4], word si mov savePoint[5], word di %endmacro %macro loadLocal 0 mov ax, word savePoint[0] mov bx, word savePoint[1] mov cx, word savePoint[2] mov dx, word savePoint[3] mov si, word savePoint[4] mov di, word savePoint[5] %endmacro %macro clearLocal 0 clean ax clean dx clean bx clean cx clean si clean di %endmacro %macro tryCatch 2 %2 end%1 %endmacro
15.621951
28
0.616706
3c9a62dfd7d538267899cd130efc475fb822704f
3,337
asm
Assembly
src/c64/frame.asm
apvilkko/jane8-musicdisk
86d1ffa8c268f782b23e2b0bb32c62620eadfb58
[ "MIT" ]
null
null
null
src/c64/frame.asm
apvilkko/jane8-musicdisk
86d1ffa8c268f782b23e2b0bb32c62620eadfb58
[ "MIT" ]
null
null
null
src/c64/frame.asm
apvilkko/jane8-musicdisk
86d1ffa8c268f782b23e2b0bb32c62620eadfb58
[ "MIT" ]
null
null
null
; do the fast per-frame processing for sound AdvanceFrame: jsr DoPwm ldy #0 LoopDrumVariant: sty drum_variant tya asl ; *4 asl tax lda kick_ch,x bmi SkipDoWork jsr DoWork SkipDoWork: iny cpy #3 bne LoopDrumVariant rts sid_offset = temp3 ; A: drum channel ; X: offset to drum variant data DoWork: stx temp2 ;cpy #0 ;beq DoResetDrum ;cpy #2 ;beq DoResetDrum ;jmp SetSidOffset ;DoResetDrum: ;jmp ResetDrum SetSidOffset: ; set SID regs offset (*7) tax lda #-7 AddOffset: clc adc #7 dex bpl AddOffset tax stx sid_offset ldx temp2 lda kick_pos,x beq DrumStart cmp #1 beq DrumTail jmp WorkDrum DrumStart: ldx sid_offset lda #$00 sta SID_V1_CTL,x lda #244 sta SID_V1_FREQ_1,x lda #3 sta SID_V1_FREQ_2,x sta SID_V1_PW_1,x sta SID_V1_PW_2,x lda #$0f sta SID_V1_AD,x lda #$00 sta SID_V1_SR,x lda drum_variant cmp #0 beq KickStart cmp #2 beq HihatStart jmp SnareStart HihatStart: KickStart: lda #%10000001 ; noise db $2c SnareStart: lda #%00100001 ; saw sta SID_V1_CTL,x jmp IncDrumPos DrumTail: lda drum_variant cmp #0 beq KickTail cmp #2 beq HihatTail jmp SnareTail KickTail: lda #48 sta kick_f_lo,x ldx sid_offset sta SID_V1_FREQ_1,x lda #4 ldx temp2 sta kick_f_hi,x ldx sid_offset sta SID_V1_FREQ_2,x lda #$06 sta SID_V1_AD,x lda #$06 sta SID_V1_SR,x lda #%01000001 ; pulse jmp TriggerTail HihatTail: lda #100 sta kick_f_lo,x ldx sid_offset sta SID_V1_FREQ_1,x lda #100 ldx temp2 sta kick_f_hi,x ldx sid_offset sta SID_V1_FREQ_2,x lda #$03 sta SID_V1_AD,x lda #$03 sta SID_V1_SR,x lda #%10000001 ; noise jmp TriggerTail SnareTail: lda #15 sta kick_f_lo,x ldx sid_offset sta SID_V1_FREQ_1,x lda #67 ldx temp2 sta kick_f_hi,x ldx sid_offset sta SID_V1_FREQ_2,x lda #$06 sta SID_V1_AD,x lda #$06 sta SID_V1_SR,x lda #%10000001 ; noise TriggerTail: sta SID_V1_CTL,x jmp IncDrumPos WorkDrum: lda drum_variant cmp #0 beq KickFreqDelta cmp #2 beq HihatFreqDelta jmp SnareFreqDelta KickFreqDelta: lda #8 db $2c HihatFreqDelta: lda #1 db $2c SnareFreqDelta: lda #4 sta temp4 lda kick_f_lo,x sec sbc temp4 bmi LoMinus jmp SetLo LoMinus: lda #0 SetLo: sta kick_f_lo,x ldx sid_offset sta SID_V1_FREQ_1,x ldx temp2 lda kick_f_hi,x sec sbc temp4 bmi HiMinus jmp SetHi HiMinus: lda #0 SetHi: sta kick_f_hi,x ldx sid_offset sta SID_V1_FREQ_2,x IncDrumPos: ldx temp2 inc kick_pos,x lda kick_pos,x cmp #12 bne ExitDoWork ResetDrum: ldx temp2 lda #$ff sta kick_ch,x sta kick_pos,x ExitDoWork: rts DoPwm: ldx #2 PwmLoop jsr DoPwmChannel dex bpl PwmLoop rts ; X: channel offset (0-2) DoPwmChannel: pushall stx temp4 lda #-7 AddMoreOffset: clc adc #7 dex bpl AddMoreOffset tax stx sid_offset lda temp4 asl ; *2 tax inc pwm1,x beq IncPwmHi jmp SetPwmValues IncPwmHi: inx inc pwm1,x lda pwm1,x and #%00010000 beq SetPwmValues lda #0 sta pwm1,x dex sta pwm1,x inx SetPwmValues: ldx temp4 lda pwm1,x ldx sid_offset sta SID_V1_PW_1,x ldx temp4 inx inx lda pwm1,x ldx sid_offset sta SID_V1_PW_2,x pullall rts
13.242063
45
0.675157
0926498015c98818fc093dc8ff03b64f59d0829e
310
asm
Assembly
programs/oeis/021/A021403.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/021/A021403.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/021/A021403.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A021403: Decimal expansion of 1/399. ; 0,0,2,5,0,6,2,6,5,6,6,4,1,6,0,4,0,1,0,0,2,5,0,6,2,6,5,6,6,4,1,6,0,4,0,1,0,0,2,5,0,6,2,6,5,6,6,4,1,6,0,4,0,1,0,0,2,5,0,6,2,6,5,6,6,4,1,6,0,4,0,1,0,0,2,5,0,6,2,6,5,6,6,4,1,6,0,4,0,1,0,0,2,5,0,6,2,6,5 add $0,1 mov $1,10 pow $1,$0 mul $1,6 div $1,2394 mod $1,10 mov $0,$1
28.181818
199
0.541935
a3308a3afec9c8d64ef2f2bef310f7c27b2ffac8
162
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/___schar2fs_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/___schar2fs_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/___schar2fs_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib SECTION code_fp_math48 PUBLIC ___schar2fs_callee EXTERN cm48_sdcciyp_schar2ds_callee defc ___schar2fs_callee = cm48_sdcciyp_schar2ds_callee
16.2
54
0.895062
2a6310bc4f7b89f28a1a544203a6204affaf02b3
395
asm
Assembly
programs/oeis/072/A072670.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/072/A072670.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/072/A072670.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A072670: Number of ways to write n as i*j + i + j, 0 < i <= j. ; 0,0,0,1,0,1,0,1,1,1,0,2,0,1,1,2,0,2,0,2,1,1,0,3,1,1,1,2,0,3,0,2,1,1,1,4,0,1,1,3,0,3,0,2,2,1,0,4,1,2,1,2,0,3,1,3,1,1,0,5,0,1,2,3,1,3,0,2,1,3,0,5,0,1,2,2,1,3,0,4,2,1,0,5,1,1,1,3,0,5,1,2,1,1,1,5,0,2,2,4 trn $0,1 mov $1,$0 add $0,1 seq $0,94820 ; Partial sums of A038548. seq $1,94820 ; Partial sums of A038548. sub $0,$1 sub $0,1
35.909091
201
0.55443
f5d4273c7303235977528b98a4aa5c57a186f108
356
asm
Assembly
programs/oeis/047/A047556.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/047/A047556.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/047/A047556.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A047556: Numbers that are congruent to {3, 6, 7} mod 8. ; 3,6,7,11,14,15,19,22,23,27,30,31,35,38,39,43,46,47,51,54,55,59,62,63,67,70,71,75,78,79,83,86,87,91,94,95,99,102,103,107,110,111,115,118,119,123,126,127,131,134,135,139,142,143,147,150,151,155,158,159 mov $1,$0 div $1,3 add $1,$0 add $1,1 mov $0,$1 div $0,2 add $0,$1 mul $0,2 sub $0,$1 add $0,2
25.428571
201
0.643258
b4c90bb1b3a7457df34a1fb2876abfc1cc70ac7b
13,895
asm
Assembly
Driver/Video/VGAlike/MEGA/megaOutput.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Driver/Video/VGAlike/MEGA/megaOutput.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Driver/Video/VGAlike/MEGA/megaOutput.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1988 -- All Rights Reserved PROJECT: PC GEOS MODULE: MEGA video driver FILE: megaOutput.asm AUTHOR: Jim DeFrisco, Jeremy Dashe ROUTINES: Name Description ---- ----------- GBL VidDrawRect draw a filled rectangle REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 4/88 initial version Tony 11/88 converted from Bitmap jeremy 4/91 monochrome support DESCRIPTION: This is the source for the MEGA screen driver output routines. This file is included in the file Kernel/Screen/mega.asm The complete specification for screen drivers can be found on the system in the pcgeos spec directory (/usr/pcgeos/Spec/video.doc). $Id: megaOutput.asm,v 1.1 97/04/18 11:42:13 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%} COMMENT @----------------------------------------------------------------------- FUNCTION: OptRectOneWord DESCRIPTION: Draw an unclipped rectangle in the GR_COPY draw mode CALLED BY: INTERNAL DrawSimpleRect PASS: cx - pattern index es:di - buffer address for first left:top of rectangle ds - Window structure bp - number of lines to draw al - left mask ah - right mask RETURN: DESTROYED: ax, bx, cx, dx, si, di, bp REGISTER/STACK USAGE: dx = EGA output register al = EGA bitmask register index ah = pattern byte, byte to store bx = pattern index cx = mask for bits to save dx = mask for new bits si = temp (screen AND bits to save) es:di = screen buffer address bp = counter PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 10/88 Initial version -------------------------------------------------------------------------------@ OptRectOneWord proc near xchg bx, cx ; bx <- index to pattern mov cx, ax ; save masks and ch, cl ; ch = mask of rectangle mov dx, GR_CONTROL jmp short OROW_loopEntry OROW_loop: add di, BWID_SCR inc bx ; bx <- new pattern index and bx, 7 OROW_loopEntry: SetMEGAColor mov ah, cs:[bx][ditherMatrix] and ah, ch ; ah <- white's pattern mask mov al, BITMASK ; set bitmask reg out dx, ax or es:[di], al ; paint the white pixels ClearMEGAColor mov ah, cs:[bx][ditherMatrix] not ah and ah, ch ; ah <- black's pattern mask mov al, BITMASK ; set bitmask reg out dx, ax or es:[di], al ; paint the black pixels dec bp ;loop to do all lines jnz OROW_loop ret OptRectOneWord endp public OptRectOneWord COMMENT @----------------------------------------------------------------------- FUNCTION: DrawOptRect DESCRIPTION: Draw a rectangle with draw mode GR_COPY and all bits in the draw mask set CALLED BY: INTERNAL DrawSimpleRect PASS: dx - number of bytes covered by rectangle + 1 zero flag - set if rect is one byte wide cx - pattern index es:di - buffer address for first left:top of rectangle ds - Window structure bp - number of lines to draw al - left mask ah - right mask RETURN: DESTROYED: ax, bx, cx, dx, si, di, bp REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 10/88 Initial version -------------------------------------------------------------------------------@ DrawOptRect proc near jz OptRectOneWord mov bx, ax ; pass masks ; calculate # of bytes in the middle of the line, offset to next line dec dx ;number of middle bytes mov cs:[BOR_middleCount],dx ;pass number of middle bytes neg dx add dx, BWID_SCR-1 mov cs:[BOR_nextScanOffset], dx mov dx, GR_CONTROL ; set up control reg for ega mov al, BITMASK mov si, cx GOTO BlastOptRect DrawOptRect endp public DrawOptRect COMMENT @----------------------------------------------------------------------- FUNCTION: BlastOptRect DESCRIPTION: Draw an unclipped rectangle in the GR_COPY draw mode CALLED BY: INTERNAL VidDrawRect PASS: es:di - buffer address for first left:top of rectangle ds - Window structure bp - number of lines to draw BOR_middleCount - number of middle words dx - GR_CONTROL bl - left mask bh - right mask BOR_nextScanOffset - offset to next scan line RETURN: DESTROYED: ax, bx, cx, dx, si, di, bp REGISTER/STACK USAGE: ax = pattern word, word to store bx = pattern index cx = for left and right: (screen AND bits to save), for middle: counter si = temp for left (pattern word) dx = offset to next scan line es:di = screen buffer address bp = counter PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 10/88 Initial version -------------------------------------------------------------------------------@ BOR_loop: ; move to next scan line BOR_1 label word BOR_nextScanOffset = BOR_1 + 2 add di, 1234h ;MODIFIED inc si BlastOptRect proc near ; figure out index to pattern mask for this scan line and si, 7 ; ; Set draw color: SetMEGAColor ; handle left byte specially mov ah, bl and ah, cs:[si][ditherMatrix] ; mov al, BITMASK out dx, ax or es:[di], al ;modify word ; Reset draw color: ClearMEGAColor mov ah, cs:[si][ditherMatrix] not ah and ah, bl mov al, BITMASK out dx, ax or es:[di], al ;modify word inc di ; draw middle bytes BOR_2 label word BOR_middleCount = BOR_2 + 1 mov cx,1234h ;MODIFIED tst cx jz handleRightByte mov al, BITMASK ; mov ah, cs:[si][ditherMatrix] tst ah ; are we drawing just black? jz doBlackWrite ; jump if so cmp ah, 0xff ; are we drawing just white? je doWhiteWrite ; jump if so ; Mixed pattern: we need to read/write twice. out dx, ax ; SetMEGAColor push ds, si push cx, di push si segmov ds, es, ax ; mov si, di ; rep movsb ; blast out white pixels ClearMEGAColor pop si mov ah, cs:[si][ditherMatrix] not ah ; mov al, BITMASK ; out dx, ax ; pop cx, di ; blast out black pixels mov si, di ; rep movsb ; blammo. pop ds, si ; jmp short handleRightByte ; doBlackWrite: ; The middle bytes are all the reset color. Blast 'em. not ah ; out dx, ax ; ClearMEGAColor rep stosb ; jmp short handleRightByte ; doWhiteWrite: ; The middle bytes are all white. Blast 'em. out dx, ax ; SetMEGAColor rep stosb ; ; FALL THROUGH TO handleRightByte handleRightByte: ; handle right byte specially ; Set draw color: SetMEGAColor mov ah, bh ; ah <- right word mask and ah, cs:[si][ditherMatrix] mov al, BITMASK out dx, ax or es:[di], al ;modify word ; Reset draw color: ClearMEGAColor mov ah, cs:[si][ditherMatrix] not ah ; and ah, bh ; mov al, BITMASK out dx, ax or es:[di], al ;modify word dec bp ;loop to do all lines LONG jnz BOR_loop ret BlastOptRect endp public BlastOptRect COMMENT @----------------------------------------------------------------------- FUNCTION: SpecialRectOneWord DESCRIPTION: Draw an unclipped rectangle in the GR_COPY draw mode CALLED BY: INTERNAL DrawSimpleRect PASS: cx - pattern index es:di - buffer address for first left:top of rectangle ds - Window structure bp - number of lines to draw al - left mask ah - right mask RETURN: DESTROYED: ax, bx, cx, dx, si, di, bp REGISTER/STACK USAGE: dx = EGA output register al = EGA bitmask register index ah = pattern byte, byte to store bx = pattern index cx = mask for bits to save dx = mask for new bits si = temp (screen AND bits to save) es:di = screen buffer address bp = counter PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 10/88 Initial version -------------------------------------------------------------------------------@ SpecialRectOneWord proc near mov bx, cx ; use bx as pattern index and al, ah mov cl, al ; cl = mask ; We have to figure out if the bits in the maskBuffer should be ; drawn in black or white. mov ah, 0xff ; assume white on black clr al ; If the mode is INVERT, the set color is "white," or set bits. cmp cs:currentDrawMode, MM_INVERT je setMaskColors ; If the mode is XOR, the set color is "white," or set bits. cmp cs:currentDrawMode, MM_XOR je setMaskColors ; If the mode is SET, the set color is "white," or set bits. cmp cs:currentDrawMode, MM_SET je setMaskColors ; For other modes, set the draw color to the reverse ; of the ditherMatrix. tst cs:[ditherMatrix] ; draw in black? jnz setMaskColors ; jump if not. not ax ; else, yep, draw in black. setMaskColors: mov cs:maskSetColor, ah mov cs:maskResetColor, al mov dx, GR_CONTROL jmp short SROW_loopEntry SROW_loop: inc bl and bl, 7 add di, BWID_SCR SROW_loopEntry: clr al ; mov ah, cs:maskSetColor ; draw white pixels first out dx, ax ; mov al, BITMASK ; set bitmask reg mov ah, {byte} cs:[bx][maskBuffer] ; get pattern byte and ah,cl ; and in mask out dx, ax ; set update mask or es:[di], al dec bp ;loop to do all lines jnz SROW_loop ret SpecialRectOneWord endp public SpecialRectOneWord COMMENT @----------------------------------------------------------------------- FUNCTION: DrawSpecialRect DESCRIPTION: Draw a rectangle with draw mode GR_COPY and all bits in the draw mask set CALLED BY: INTERNAL DrawSimpleRect PASS: dx - number of bytes covered by rectangle + 1 zero flag - set if rect is one byte wide cx - pattern index es:di - buffer address for first left:top of rectangle ds - Window structure bp - number of lines to draw al - left mask ah - right mask RETURN: DESTROYED: ax, bx, cx, dx, si, di, bp REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 10/88 Initial version -------------------------------------------------------------------------------@ DrawSpecialRect proc near jz SpecialRectOneWord mov word ptr cs:[d_LRmasks], ax ; store masks ; calculate # of bytes in the middle of the line, offset to next line dec dx ;number of middle bytes mov si,dx ;pass number of middle bytes neg dx add dx, BWID_SCR-2 mov cs:[BSR_nextScanOffset], dx mov dx, GR_CONTROL ; set up control reg for ega mov al, BITMASK mov bx, cx ; bx = pattern index GOTO BlastSpecialRect DrawSpecialRect endp public DrawSpecialRect COMMENT @----------------------------------------------------------------------- FUNCTION: BlastSpecialRect DESCRIPTION: Draw an unclipped rectangle in the GR_COPY draw mode CALLED BY: INTERNAL VidDrawRect PASS: bx - index into pattern buffer (0-7) es:di - buffer address for first left:top of rectangle ds - Window structure bp - number of lines to draw si - number of middle words dx - GR_CONTROL BSR_nextScanOffset - offset to next scan line RETURN: DESTROYED: ax, bx, cx, dx, si, di, bp REGISTER/STACK USAGE: ax = pattern word, word to store bx = pattern index cx = for left and right: (screen AND bits to save), for middle: counter dx = offset to next scan line es:di = screen buffer address bp = counter PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 10/88 Initial version -------------------------------------------------------------------------------@ BlastSpecialRect proc near ; We have to figure out if the bits in the maskBuffer should be ; drawn in black or white. mov ah, 0xff ; assume white on black clr al ; If the mode is INVERT, the set color is "white," or set bits. cmp cs:currentDrawMode, MM_INVERT je setMaskColors ; If the mode is XOR, the set color is "white," or set bits. cmp cs:currentDrawMode, MM_XOR je setMaskColors ; If the mode is SET, the set color is "white," or set bits. cmp cs:currentDrawMode, MM_SET je setMaskColors ; For other modes, set the draw color to the reverse ; of the ditherMatrix. tst cs:[ditherMatrix] ; draw in black? jnz setMaskColors ; jump if not. not ax ; else, yep, draw in black. setMaskColors: mov cs:maskSetColor, ah mov cs:maskResetColor, al jmp short BlastSpecialRectEntry BSR_loop: ; update pattern pointer inc bl and bl, 7 ; move to next scan line BSR_1 label word BSR_nextScanOffset = BSR_1 + 2 add di, 1234h ;MODIFIED BlastSpecialRectEntry: ; handle left byte specially clr al mov ah, cs:maskSetColor out dx, ax mov al, BITMASK mov ah, {byte} cs:[bx][maskBuffer] ; use pattern byte and ah, cs:[d_leftMask] out dx, ax or es:[di], al ;modify word inc di ; draw middle bytes mov cx,si jcxz BSR_noMiddle BSR_inner: clr al mov ah, cs:maskSetColor out dx, ax mov al, BITMASK mov ah, {byte} cs:[bx][maskBuffer] ; use pattern byte out dx, ax or es:[di], al inc di loop BSR_inner BSR_noMiddle: ; handle right word specially clr al mov ah, cs:maskSetColor out dx, ax mov al, BITMASK mov ah, {byte} cs:[bx][maskBuffer] ; use pattern byte and ah, cs:[d_rightMask] out dx, ax or es:[di], al ;modify word inc di dec bp ;loop to do all lines jnz BSR_loop ret BlastSpecialRect endp public BlastSpecialRect
21.710938
81
0.617128
6317717615f73acdff33cd6b41c408e06eeb26e2
570
asm
Assembly
oeis/001/A001748.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/001/A001748.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/001/A001748.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A001748: 3 * primes. ; Submitted by Jamie Morken(s3) ; 6,9,15,21,33,39,51,57,69,87,93,111,123,129,141,159,177,183,201,213,219,237,249,267,291,303,309,321,327,339,381,393,411,417,447,453,471,489,501,519,537,543,573,579,591,597,633,669,681,687,699,717,723,753,771,789,807,813,831,843,849,879,921,933,939,951,993,1011,1041,1047,1059,1077,1101,1119,1137,1149,1167,1191,1203,1227,1257,1263,1293,1299,1317,1329,1347,1371,1383,1389,1401,1437,1461,1473,1497,1509,1527,1563,1569,1623 mul $0,2 max $0,1 seq $0,173919 ; Numbers that are prime or one less than a prime. mul $0,3
63.333333
421
0.738596
e355aac7a9dfbe8c028ce82c8d20bc49d62acfb9
141
asm
Assembly
pkgs/tools/yasm/src/modules/objfmts/bin/tests/multisect/bin-align.asm
manggoguy/parsec-modified
d14edfb62795805c84a4280d67b50cca175b95af
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
pkgs/tools/yasm/src/modules/objfmts/bin/tests/multisect/bin-align.asm
manggoguy/parsec-modified
d14edfb62795805c84a4280d67b50cca175b95af
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
pkgs/tools/yasm/src/modules/objfmts/bin/tests/multisect/bin-align.asm
manggoguy/parsec-modified
d14edfb62795805c84a4280d67b50cca175b95af
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
[map all binalign.map] section .text db 1 align 8 db 0 section .data align 8 db 0 section .foo align=4 align 8 section .bar valign=4 align 8
10.846154
22
0.744681
4c2d1c671ba4215b915857a65ee0f18cab80fc86
7,344
asm
Assembly
programs/bmdev.asm
sirupsen/flying-cat
d6e1640c63cc4c67ba18d4008556589dccbef233
[ "BSD-3-Clause" ]
7
2017-08-16T10:39:19.000Z
2022-02-06T10:38:17.000Z
programs/bmdev.asm
Sirupsen/flying-cat
d6e1640c63cc4c67ba18d4008556589dccbef233
[ "BSD-3-Clause" ]
1
2018-11-20T04:08:58.000Z
2018-11-20T04:08:58.000Z
programs/bmdev.asm
jakiki6/flying-cat
d6e1640c63cc4c67ba18d4008556589dccbef233
[ "BSD-3-Clause" ]
5
2020-04-19T19:42:05.000Z
2021-06-16T08:32:22.000Z
; ============================================================================= ; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems ; Copyright (C) 2008-2010 Return Infinity -- see LICENSE.TXT ; ; Include file for Bare Metal program development (API version 2.0) ; ============================================================================= b_print_string equ 0x0000000000100010 ; Displays text. IN: RSI = message location (zero-terminated string) b_print_char equ 0x0000000000100018 ; Displays a char. IN: AL = char to display b_print_char_hex equ 0x0000000000100020 ; Displays a char in hex mode. IN: AL = char to display b_print_newline equ 0x0000000000100028 ; Print a new line b_input_key_check equ 0x0000000000100030 ; Scans keyboard for input, but doesn't wait. OUT: AL = ASCII code or 0 if no key pressed b_input_key_wait equ 0x0000000000100038 ; Waits for keypress and returns key. OUT: AL = key pressed b_input_string equ 0x0000000000100040 ; Take string from keyboard entry. IN: RDI = location where string will be stored. RCX = max chars to accept b_delay equ 0x0000000000100048 ; Pause for a set time. IN: RAX = Time in hundredths of a second b_speaker_tone equ 0x0000000000100050 ; Generate PC speaker tone (call b_speaker_off after). IN: RAX = note frequency b_speaker_off equ 0x0000000000100058 ; Shut off the PC speaker b_speaker_beep equ 0x0000000000100060 ; Play a standard beep noise b_move_cursor equ 0x0000000000100068 ; Move the cursor on screen. IN: AL = column, AH = row b_string_length equ 0x0000000000100070 ; Return the length of a string. IN: RSI = string address. OUT: RCX = string length b_find_char_in_string equ 0x0000000000100078 ; Find first location of character in a string. IN: RSI = string location, AL = character to find. OUT: RAX = location in string, or 0 if char not present b_string_copy equ 0x0000000000100080 ; Copy the contents of one string into another. IN: RSI = source, RDI = destination b_string_truncate equ 0x0000000000100088 ; Chop string down to specified number of characters. IN: RSI = string location, RAX = number of characters b_string_join equ 0x0000000000100090 ; Join two strings into a third string. IN: RAX = string one, RBX = string two, RDI = destination string b_string_chomp equ 0x0000000000100098 ; Strip leading and trailing spaces from a string. IN: RSI = string location b_string_strip equ 0x00000000001000A0 ; Removes specified character from a string. IN: RSI = string location, AL = character to remove b_string_compare equ 0x00000000001000A8 ; See if two strings match. IN: RSI = string one, RDI = string two. OUT: Carry flag set if same b_string_uppercase equ 0x00000000001000B0 ; Convert a string to all uppercase characters. IN: RSI = string address b_string_lowercase equ 0x00000000001000B8 ; Convert a string to all lowercase characters. IN: RSI = string address b_int_to_string equ 0x00000000001000C0 ; Convert an integer to a string. IN: RAX = interger. OUT: RDI = destination string b_string_to_int equ 0x00000000001000C8 ; Convert a string to an interger. IN: RSI = source string. OUT: RAX = interger b_debug_dump_reg equ 0x00000000001000D0 ; Dump the registers to the screen b_debug_dump_mem equ 0x00000000001000D8 ; Dump contents of memory to the screen. IN: RSI = Start of memory address to dump, RCX = number of bytes to dump b_debug_dump_rax equ 0x00000000001000E0 ; Dump the content of RAX (64-bit) to the screen b_debug_dump_eax equ 0x00000000001000E8 ; Dump the content of EAX (32-bit) to the screen b_debug_dump_ax equ 0x00000000001000F0 ; Dump the content of AX (16-bit) to the screen b_debug_dump_al equ 0x00000000001000F8 ; Dump the content of AL (8-bit) to the screen b_smp_reset equ 0x0000000000100100 ; Resets a CPU/Core. IN: AL = CPU # b_smp_get_id equ 0x0000000000100108 ; Returns the APIC ID of the CPU that ran this function. OUT: RAX = CPU's APIC ID number b_smp_enqueue equ 0x0000000000100110 ; Add a workload to the processing queue. IN: RAX = Code to execute, RBX = Variable/Data to work on b_smp_dequeue equ 0x0000000000100118 ; Dequeue a workload from the processing queue. OUT: RAX = Code to execute, RBX = Variable/Data to work on b_serial_send equ 0x0000000000100120 ; Send a byte over the primary serial port. IN: AL = Byte to send over serial port b_serial_recv equ 0x0000000000100128 ; Receive a byte from the primary serial port. OUT: AL = Byte recevied, Carry flag is set if a byte was received (otherwise AL is trashed) b_string_parse equ 0x0000000000100130 ; Parse a string into individual words. IN: RSI = Address of string. OUT: RCX = word count b_get_argc equ 0x0000000000100138 ; Return the number arguments passed to the program. OUT: AL = Number of arguments b_get_argv equ 0x0000000000100140 ; Get the value of an argument that was passed to the program. IN: AL = Argument number. OUT: RSI = Start of numbered argument string b_smp_queuelen equ 0x0000000000100148 ; Returns the number of items in the processing queue. OUT: RAX = number of items in processing queue b_smp_wait equ 0x0000000000100150 ; Wait until all other CPU Cores are finished processing b_get_timecounter equ 0x0000000000100158 ; Get the current RTC clock couter value. OUT: RAX = Time in eights of a second since clock started b_string_append equ 0x0000000000100160 ; Append a string to an existing string. IN: RSI = String to be appended, RDI = Destination string b_int_to_hex_string equ 0x0000000000100168 ; Convert an integer to a hex string. IN: RAX = Integer value. RDI = location to store string b_hex_string_to_int equ 0x0000000000100170 ; Convert up to 8 hexascii to bin. IN: RSI = Location of hex asciiz string. OUT: RAX = binary value of hex string b_string_change_char equ 0x0000000000100178 ; Change all instances of a character in a string. IN: RSI = string location, AL = character to replace, BL = replacement character b_is_digit equ 0x0000000000100180 ; Check if character is a digit. IN: AL = ASCII char. OUT: EQ flag set if numeric b_is_alpha equ 0x0000000000100188 ; Check if character is a letter. IN: AL = ASCII char. OUT: EQ flag set if alpha b_file_read equ 0x0000000000100190 ; Read a file from disk into memory. IN: RSI = Address of filename string, RDI = Memory location where file will be loaded to. OUT: Carry is set if the file was not found or an error occured b_file_write equ 0x0000000000100198 ; Write memory to a file on disk. IN: RSI = Memory location of data to be written, RDI = Address of filename string, RCX = Number of bytes to write. OUT: Carry is set if an error occured b_file_delete equ 0x00000000001001A0 ; Delete a file from disk. IN: RSI = Memory location of file name to delete. OUT: Carry is set if the file was not found or an error occured b_file_get_list equ 0x00000000001001A8 ; Generate a list of files on disk. IN: RDI = Location to store list. OUT: RDI = pointer to end of list b_smp_run equ 0x00000000001001B0 ; Call the function address in RAX. IN: RAX = Memory location of code to run b_smp_lock equ 0x00000000001001B8 ; Lock a variable. IN: RAX = Memory address of variable b_smp_unlock equ 0x00000000001001C0 ; Unlock a variable. IN: RAX = Memory address of variable ; ============================================================================= ; EOF
108
227
0.754357
b2e6ba00a7e3945a4e0738244c86fdc7a32eb0f3
605
asm
Assembly
kernel.asm
itsknk/BasicKernel
8dd60e8b8300cbe0b4886df373936d98dc3503ef
[ "MIT" ]
null
null
null
kernel.asm
itsknk/BasicKernel
8dd60e8b8300cbe0b4886df373936d98dc3503ef
[ "MIT" ]
null
null
null
kernel.asm
itsknk/BasicKernel
8dd60e8b8300cbe0b4886df373936d98dc3503ef
[ "MIT" ]
null
null
null
bits 32 ;nasm directive - 32 bit section .text ;multiboot spec align 4 dd 0x1BADB002 ;magic dd 0x00 ;flags dd - (0x1BADB002 + 0x00) ;checksum global start ;to set symbols from source code as global extern kernelMain ;kernalMain is the function in C file start: cli ;clear interrupts-- to diable interrupts mov esp, stack_space ;set stack pointer call kernelMain ;calls the main kernel function from c file hlt ;halts the CPU section .bss resb 8192 ;8KB memory reserved for stack stack_space:
30.25
64
0.639669
9f8e17d60ac9a22df73a1fba9b0e0f328399265d
463
asm
Assembly
programs/oeis/178/A178300.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/178/A178300.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/178/A178300.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A178300: Triangle T(n,k) = binomial(n+k-1,n) read by rows, 1 <= k <= n. ; 1,1,3,1,4,10,1,5,15,35,1,6,21,56,126,1,7,28,84,210,462,1,8,36,120,330,792,1716,1,9,45,165,495,1287,3003,6435,1,10,55,220,715,2002,5005,11440,24310,1,11,66,286,1001,3003,8008,19448,43758,92378,1,12,78,364,1365,4368,12376,31824,75582,167960,352716,1,13,91,455,1820,6188,18564,50388,125970,293930,646646,1352078 lpb $0 mov $1,1 add $1,$0 add $2,1 sub $0,$2 lpe bin $1,$0 mov $0,$1
38.583333
310
0.671706
a1509e213920d87aa9c7ff0b111c747a76635d17
8,137
asm
Assembly
Transynther/x86/_processed/US/_st_4k_sm_/i7-7700_9_0xca.log_21829_965.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_st_4k_sm_/i7-7700_9_0xca.log_21829_965.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_st_4k_sm_/i7-7700_9_0xca.log_21829_965.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 %r14 push %r8 push %r9 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x385f, %r14 clflush (%r14) nop nop and %rbp, %rbp mov $0x6162636465666768, %rbx movq %rbx, (%r14) nop add %r8, %r8 lea addresses_WC_ht+0x7f1f, %rdx nop sub $10969, %r9 movb (%rdx), %r11b nop xor $30243, %r11 lea addresses_A_ht+0x2371, %r8 nop nop nop add %r11, %r11 movw $0x6162, (%r8) nop nop add %rbx, %rbx lea addresses_WT_ht+0x2b5f, %r14 nop and %rdx, %rdx mov $0x6162636465666768, %r11 movq %r11, %xmm7 movups %xmm7, (%r14) nop nop nop nop cmp $6011, %rbp lea addresses_A_ht+0x141ff, %r8 nop add $63778, %rbx movups (%r8), %xmm3 vpextrq $0, %xmm3, %rbp nop nop inc %r11 lea addresses_WT_ht+0x165f, %r11 nop nop dec %rbp movb $0x61, (%r11) nop and $62590, %r11 lea addresses_WC_ht+0x1847, %rdx sub $11011, %r9 and $0xffffffffffffffc0, %rdx movaps (%rdx), %xmm2 vpextrq $1, %xmm2, %rbx nop nop nop sub $38746, %rdx lea addresses_A_ht+0x1795b, %rsi lea addresses_D_ht+0x53c1, %rdi nop xor $32876, %r11 mov $58, %rcx rep movsb nop nop nop nop xor $35931, %r9 lea addresses_UC_ht+0x1465f, %rbp nop nop nop add %rdi, %rdi movw $0x6162, (%rbp) nop nop nop xor $19982, %r8 lea addresses_WT_ht+0x14241, %rdx nop nop nop inc %rdi mov (%rdx), %ebx nop mfence lea addresses_WC_ht+0x6ebf, %r14 nop nop xor $56093, %rbx mov $0x6162636465666768, %r8 movq %r8, (%r14) nop and %rcx, %rcx lea addresses_normal_ht+0x161a7, %rsi lea addresses_WT_ht+0x10a5f, %rdi xor %r8, %r8 mov $46, %rcx rep movsl nop cmp %r11, %r11 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r9 pop %r8 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r14 push %r9 push %rbp push %rdi // Store lea addresses_US+0x13a5f, %rbp nop nop nop nop nop add %r9, %r9 movl $0x51525354, (%rbp) nop nop nop nop nop xor %r12, %r12 // Store lea addresses_D+0x425f, %r14 nop nop nop add $12528, %rbp mov $0x5152535455565758, %rdi movq %rdi, %xmm1 movntdq %xmm1, (%r14) nop nop nop add %r14, %r14 // Load lea addresses_normal+0x19c5f, %r10 nop add $52780, %r9 vmovups (%r10), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $1, %xmm6, %r14 nop nop nop sub %rbp, %rbp // Store mov $0x1df, %r14 nop xor %r9, %r9 movw $0x5152, (%r14) sub $25018, %r9 // Load lea addresses_RW+0x22f3, %rbp nop nop dec %r13 movb (%rbp), %r12b nop nop nop nop nop xor %r10, %r10 // Faulty Load lea addresses_US+0x13a5f, %r12 nop sub $58835, %rdi movb (%r12), %r10b lea oracles, %r13 and $0xff, %r10 shlq $12, %r10 mov (%r13,%r10,1), %r10 pop %rdi pop %rbp pop %r9 pop %r14 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 4, 'NT': False, 'type': 'addresses_US'}} {'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 16, 'NT': True, 'type': 'addresses_D'}} {'src': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_P'}} {'src': {'congruent': 2, 'AVXalign': True, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 1, 'NT': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WT_ht'}} {'src': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': True, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_WT_ht'}} {'src': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 1, 'NT': True, 'type': 'addresses_WT_ht'}} {'src': {'congruent': 3, 'AVXalign': True, 'same': False, 'size': 16, 'NT': True, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 0, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_UC_ht'}} {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 2, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}} {'54': 21829} 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 */
33.212245
2,999
0.650977
a8921748f9472834bacece3f043092ac9381afe2
286
asm
Assembly
programs/oeis/173/A173562.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/173/A173562.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/173/A173562.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A173562: a(n) = n^2 + floor(n/4). ; 0,1,4,9,17,26,37,50,66,83,102,123,147,172,199,228,260,293,328,365,405,446,489,534,582,631,682,735,791,848,907,968,1032,1097,1164,1233,1305,1378,1453,1530,1610,1691,1774,1859,1947,2036,2127,2220,2316,2413,2512 mov $1,$0 div $0,4 pow $1,2 add $0,$1
35.75
210
0.685315
83122071c24862ceb8c1cbc90c79cd628e9fdeeb
327
asm
Assembly
programs/oeis/095/A095663.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/095/A095663.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/095/A095663.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A095663: Eighth column (m=7) of (1,3)-Pascal triangle A095660. ; 3,22,92,288,750,1716,3564,6864,12441,21450,35464,56576,87516,131784,193800,279072,394383,547998,749892,1012000,1348490,1776060,2314260,2985840,3817125,4838418,6084432,7594752,9414328,11594000,14191056 mov $1,$0 add $0,6 bin $0,$1 add $1,21 mul $0,$1 div $0,7
32.7
202
0.755352
3481e929b37157d9ef5e57a2d40f2a798d7b2666
297
asm
Assembly
oeis/040/A040240.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/040/A040240.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/040/A040240.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A040240: Continued fraction for sqrt(257). ; Submitted by Christian Krause ; 16,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 min $0,1 add $0,1 mul $0,16
37.125
190
0.680135
4c8926a8d2ab77376c077b521528041c3fffdb92
394
asm
Assembly
oeis/122/A122012.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/122/A122012.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/122/A122012.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A122012: G.f.: x^2*(3+3*x-2*x^2)/ ( (x^2-x-1) * (x^2+x-1)). ; Submitted by Jamie Morken(s1) ; 0,3,3,7,9,18,24,47,63,123,165,322,432,843,1131,2207,2961,5778,7752,15127,20295,39603,53133,103682,139104,271443,364179,710647,953433,1860498,2496120,4870847,6534927,12752043,17108661,33385282,44791056 mov $1,$0 mod $1,2 mov $3,3 lpb $0 sub $0,1 add $3,$2 mov $2,$1 mov $1,$3 lpe mov $0,$1
26.266667
202
0.659898
baeff9f696b33edce0563bbaaba9b1cb26a51cc1
2,444
asm
Assembly
engine/gameplayLoop.asm
laoo/TimePilot
88b2548ab23d213677047ca530b68f9523ea7140
[ "MIT" ]
24
2018-05-17T05:55:38.000Z
2021-12-30T10:22:45.000Z
engine/gameplayLoop.asm
laoo/TimePilot
88b2548ab23d213677047ca530b68f9523ea7140
[ "MIT" ]
1
2018-06-27T11:08:01.000Z
2018-06-27T11:08:01.000Z
engine/gameplayLoop.asm
laoo/TimePilot
88b2548ab23d213677047ca530b68f9523ea7140
[ "MIT" ]
3
2018-05-19T03:47:19.000Z
2021-06-01T12:33:32.000Z
; ------------------ ; GAMEPLAY LOOP ; ------------------ .proc gameplay minFrames dta b(engineMinFrames) animationSwitchDelay dta b(configAnimationSwitchDelay) .proc loop jsr prPrepareFrame jsr clearBufScreen jsr level.mainLoop jsr OLP.mainLoop jsr HIT.mainLoop jsr SPAWN.mainLoop jsr waitFrame ; redraw score on screen every #configAnimationSwitchDelay loop iteration (saves cycles) lda animationSwitch bne @+ jsr SCORE.scoreShow jsr SCORE.hiScoreRewrite jsr SCORE.extraLife @ toggleBufScreenNr ; MADS macro lda gamePaused beq @+ jsr gameplay.pause @ jsr gameplay.nextLoop jmp gameplay.loop .endp .proc nextLoop ; animation switcher dec animationSwitchCounter bne fpsLock lda animationSwitch eor #1 sta animationSwitch lda animationSwitchDelay sta animationSwitchCounter fpsLock ; FPS LOCK lda frameCounter cmp minFrames bcc fpsLock @ ;!##TRACE "frames: %d" db(frameCounter) lda #0 sta frameCounter ; jsr DEBUG.show ; extra life subsong channel swap lda extraLifeDuration beq @+ dec extraLifeDuration bne @+ lda <soundSystem.soundChannelSFX ; extralife subsong done - move enemy shots sfx back to channel 0 sta SPAWN.enemyShots.shotSoundNumber+5 sta SPAWN.enemyBombs.shotSoundNumber+5 @ rts .endp .proc pause lda #<bufScreenTxt sta _CopyFrom sta swap ; A=0 lda #>bufScreenTxt sta _CopyFrom+1 lda #<buf2FreePages sta _CopyTo lda #>buf2FreePages jsr cont lda #1 sta delay pauseLoop lda gamePaused beq unpause jsr waitFrameNormal dec delay bne @+ lda #60 sta delay lda swap eor #1 sta swap @ lda swap beq txt2 lda #0 ldx #<titleScreenTexts.pause ldy #>titleScreenTexts.pause jsr copyText beq @+ txt2 lda #0 ldx #<titleScreenTexts.pause2 ldy #>titleScreenTexts.pause2 jsr copyText @ lda consol ; option key during pause - back to title screen beq levelSkipper cmp #3 bne pauseLoop jmp main unPause lda #<buf2FreePages sta _CopyFrom lda #>buf2FreePages sta _CopyFrom+1 lda #<bufScreenTxt sta _CopyTo lda #>bufScreenTxt cont sta _CopyTo+1 ldy #20-1 jmp memCopyShort swap dta b(0) delay dta b(1) .proc levelSkipper jsr unPause lda #0 sta gamePaused lda #1 sta levelCurrent.bossKilled rts .endp .endp .endp
16.62585
103
0.677578
4e01058c33951a11fd0cc5ce2d8cde1339381bc6
916
asm
Assembly
code/sheet/hearts.asm
abekermsx/skooted
ea0eb5c0c2703c45807477bfdcda0ad1ad9119d8
[ "MIT" ]
3
2021-10-06T20:52:11.000Z
2021-11-29T11:31:55.000Z
code/sheet/hearts.asm
abekermsx/skooted
ea0eb5c0c2703c45807477bfdcda0ad1ad9119d8
[ "MIT" ]
null
null
null
code/sheet/hearts.asm
abekermsx/skooted
ea0eb5c0c2703c45807477bfdcda0ad1ad9119d8
[ "MIT" ]
null
null
null
; Check if there's an heart at the specified location ; In: DE: D = Y, E = X is_heart_at_location: ld bc,SHEET.HEARTS jp is_object_at_location ; Remove a heart at specified location ; In: DE: D = Y, E = X remove_heart_at_location: call is_heart_at_location ret z ld bc,SHEET.HEARTS call remove_object ret ; Get heart location in map ; In: A: heart number ; Out: DE: D = Y, E = X get_heart_location: ld bc,SHEET.HEARTS call get_object_location ret ; Put a heart on the map ; In: A: heart number ; DE: D = Y, E = X put_heart_at_location: call calculate_heart_address ld (hl),e inc hl ld (hl),d ret ; Calculates address of heart in sheet data ; In: A: object number (0=first object) calculate_heart_address: ld bc,SHEET.HEARTS call calculate_object_address ret
19.913043
53
0.623362
dd58af9dd7bf247458bc3184d4548df1aac7a36d
5,428
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1956.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_1956.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_1956.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 %r13 push %r9 push %rbp push %rcx push %rdi lea addresses_WC_ht+0x1e94a, %r13 clflush (%r13) nop nop nop nop cmp %rcx, %rcx mov $0x6162636465666768, %r9 movq %r9, %xmm7 vmovups %ymm7, (%r13) xor %rdi, %rdi lea addresses_WT_ht+0x1008a, %rbp nop nop and %r11, %r11 mov (%rbp), %r12d nop nop nop nop nop add $6825, %r11 lea addresses_UC_ht+0x9e64, %rcx nop nop nop sub $48615, %r9 mov $0x6162636465666768, %rbp movq %rbp, (%rcx) nop nop nop xor %rcx, %rcx lea addresses_WC_ht+0xc14a, %rcx nop nop nop xor %r9, %r9 mov (%rcx), %edi nop nop nop nop nop and $41080, %r9 lea addresses_UC_ht+0x15cca, %rbp nop nop nop nop nop dec %r12 mov (%rbp), %edi nop nop nop add %r11, %r11 lea addresses_normal_ht+0xa0ca, %rcx nop nop nop nop cmp %r9, %r9 mov $0x6162636465666768, %r12 movq %r12, %xmm0 movups %xmm0, (%rcx) nop nop nop inc %rbp pop %rdi pop %rcx pop %rbp pop %r9 pop %r13 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r14 push %rax push %rbp push %rbx push %rdi push %rdx // Faulty Load lea addresses_UC+0x40ca, %rdx nop nop nop nop and $48228, %rax vmovups (%rdx), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $1, %xmm5, %rdi lea oracles, %rax and $0xff, %rdi shlq $12, %rdi mov (%rax,%rdi,1), %rdi pop %rdx pop %rdi pop %rbx pop %rbp pop %rax pop %r14 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_UC', 'AVXalign': False, 'size': 4, 'NT': True, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_UC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 7}} {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 5}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4, 'NT': True, 'same': False, 'congruent': 9}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 10}} {'37': 21829} 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 */
39.911765
2,999
0.659727
1b15e273555a5c2583dc7303a815bec69a3b69c5
7,376
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_1670.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_1670.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_1670.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 %r13 push %r8 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x1c139, %rdi nop nop nop xor %r8, %r8 movb (%rdi), %bl nop nop sub $30308, %rdi lea addresses_UC_ht+0x13439, %rsi sub $27526, %rbp movups (%rsi), %xmm3 vpextrq $1, %xmm3, %r13 nop nop nop nop nop add $24095, %rsi lea addresses_WT_ht+0x1d507, %rsi lea addresses_WC_ht+0x15539, %rdi nop nop cmp $15683, %rbx mov $91, %rcx rep movsq nop nop nop nop nop and %rcx, %rcx lea addresses_D_ht+0x3a39, %r13 nop and $34607, %rcx movl $0x61626364, (%r13) nop nop nop nop nop cmp %r13, %r13 lea addresses_A_ht+0xf939, %rbp nop nop cmp %rbx, %rbx and $0xffffffffffffffc0, %rbp movaps (%rbp), %xmm1 vpextrq $0, %xmm1, %rcx nop nop nop nop and $61366, %rbp lea addresses_normal_ht+0x1a139, %r13 nop nop nop nop and %rbx, %rbx mov (%r13), %r8d nop nop add %rdi, %rdi lea addresses_A_ht+0x121f9, %rsi nop nop nop nop xor %rdi, %rdi mov (%rsi), %ebx nop nop nop and $15883, %rbp lea addresses_normal_ht+0x1234f, %r8 clflush (%r8) nop nop xor $44732, %rbx movw $0x6162, (%r8) nop nop nop nop xor %rbx, %rbx lea addresses_D_ht+0xa539, %rsi lea addresses_WT_ht+0x186a7, %rdi sub %r10, %r10 mov $21, %rcx rep movsb nop nop cmp %rbx, %rbx lea addresses_normal_ht+0x19539, %rdi nop nop cmp $58095, %r10 movw $0x6162, (%rdi) nop nop xor $58931, %rdi lea addresses_normal_ht+0x2da9, %r13 and %rsi, %rsi movups (%r13), %xmm1 vpextrq $1, %xmm1, %rbx nop nop nop nop nop xor $19261, %r10 lea addresses_WC_ht+0x1c039, %r10 add $63097, %rbx movw $0x6162, (%r10) nop and %rsi, %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r8 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r8 push %rbp push %rcx push %rdi push %rsi // REPMOV mov $0xaa5, %rsi mov $0xb39, %rdi clflush (%rsi) nop sub $45985, %r8 mov $4, %rcx rep movsw xor %rdi, %rdi // Load lea addresses_UC+0x9339, %r12 nop nop cmp $34698, %rbp mov (%r12), %edi sub $50604, %rcx // Faulty Load lea addresses_US+0x6539, %rdi nop nop nop nop nop xor %r8, %r8 mov (%rdi), %r12w lea oracles, %r11 and $0xff, %r12 shlq $12, %r12 mov (%r11,%r12,1), %r12 pop %rsi pop %rdi pop %rcx pop %rbp pop %r8 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_US', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_P', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_P', 'congruent': 7, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_UC', 'same': False, 'size': 4, 'congruent': 9, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_US', 'same': True, 'size': 2, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 1, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 16, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 4, 'congruent': 8, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 16, 'congruent': 10, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'same': True, 'size': 4, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 4, 'congruent': 5, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 2, 'congruent': 1, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 2, 'congruent': 8, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 16, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 2, 'congruent': 8, 'NT': False, 'AVXalign': False}, '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 */
34.792453
2,999
0.652522
a856095cb423bc8894e68edc547ec581a9c1aa84
43
asm
Assembly
Assembler/AssemblyCode/TTL/AND.asm
KPU-RISC/KPU
9f85c322e1b8489eef31f0696799e0c6c7273c0e
[ "MIT" ]
8
2017-04-16T16:53:03.000Z
2021-09-14T22:29:28.000Z
Assembler/AssemblyCode/TTL/AND.asm
KPU-RISC/KPU
9f85c322e1b8489eef31f0696799e0c6c7273c0e
[ "MIT" ]
null
null
null
Assembler/AssemblyCode/TTL/AND.asm
KPU-RISC/KPU
9f85c322e1b8489eef31f0696799e0c6c7273c0e
[ "MIT" ]
null
null
null
MOV D, 10100111b MOV E, 10000101b AND D, E
10.75
16
0.72093
eb86c0abb5f91f8f5d44dad17371909f0dea72de
377
asm
Assembly
programs/oeis/211/A211435.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/211/A211435.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/211/A211435.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A211435: Number of ordered triples (w,x,y) with all terms in {-n,...,0,...,n} and w+4x+5y=0. ; 1,3,5,11,17,25,35,45,59,73,89,107,125,147,169,193,219,245,275,305,337,371,405,443,481,521,563,605,651,697,745,795,845,899,953,1009,1067,1125,1187,1249,1313,1379,1445,1515,1585,1657,1731,1805,1883 add $0,1 bin $0,2 mul $0,4 mov $1,2 add $1,$0 div $1,5 mul $1,2 add $1,1 mov $0,$1
29
197
0.66313
363337d33c6cc3f5733301e3c4357ef9dfb3810c
536
asm
Assembly
oeis/137/A137530.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/137/A137530.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/137/A137530.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A137530: Primes of the form 5k^2 + 1. ; Submitted by Jamie Morken(w3) ; 181,1621,6481,8821,35281,52021,58321,87121,103681,112501,131221,141121,151381,172981,184321,302581,380881,414721,450001,486721,544501,626581,691921,737281,784081,808021,1039681,1067221,1240021,1300501,1362421 mov $2,332202 lpb $2 mov $3,$6 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $5,$1 add $1,20 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 sub $2,18 add $5,$1 mov $6,$5 lpe mov $0,$5 add $0,1
24.363636
210
0.684701
a78804780c33dcffbde678df5a3908db23667a2b
416
asm
Assembly
tests/OneOperand.asm
meryacine/MIPS-VHDL
8a89a53d92b264c2beedc2ca1dbba05f15af4630
[ "MIT" ]
4
2022-01-12T07:27:54.000Z
2022-03-28T09:44:26.000Z
tests/OneOperand.asm
Ziyadhassan/MIPS-VHDL
052058a9c9acb469020b3fa552c55d7fe9366dc1
[ "MIT" ]
null
null
null
tests/OneOperand.asm
Ziyadhassan/MIPS-VHDL
052058a9c9acb469020b3fa552c55d7fe9366dc1
[ "MIT" ]
2
2022-01-12T07:27:54.000Z
2022-03-24T19:29:10.000Z
main: 0xa0 SETC # C --> 1 NOP # No change NOT R1 # R1 =FFFF , C--> no change, N --> 1, Z --> 0 INC R1 # R1 =0000 , C --> 1 , N --> 0 , Z --> 1 in R1 # R1= 5,add 5 on the in port,flags no change ldm R2, 0x10 # R2= 10,add 10 on the in port, flags no change NOT R2 # R2= FFEF, C--> no change, N -->1,Z-->0 INC R1 # R1= 6, C --> 0, N -->0, Z-->0 OUT R1 OUT R2 HLT
32
62
0.466346
cd1ddb55e8b74f810ba51ed078a1adb45d40ea70
31,165
asm
Assembly
onnxruntime/core/mlas/lib/amd64/ConvSymKernelAvx512Core.asm
lchang20/onnxruntime
97b8f6f394ae02c73ed775f456fd85639c91ced1
[ "MIT" ]
6,036
2019-05-07T06:03:57.000Z
2022-03-31T17:59:54.000Z
onnxruntime/core/mlas/lib/amd64/ConvSymKernelAvx512Core.asm
lchang20/onnxruntime
97b8f6f394ae02c73ed775f456fd85639c91ced1
[ "MIT" ]
5,730
2019-05-06T23:04:55.000Z
2022-03-31T23:55:56.000Z
onnxruntime/core/mlas/lib/amd64/ConvSymKernelAvx512Core.asm
lchang20/onnxruntime
97b8f6f394ae02c73ed775f456fd85639c91ced1
[ "MIT" ]
1,566
2019-05-07T01:30:07.000Z
2022-03-31T17:06:50.000Z
;++ ; ; Copyright (c) Microsoft Corporation. All rights reserved. ; ; Licensed under the MIT License. ; ; Module Name: ; ; ConvSymKernelAvx512Core.asm ; ; Abstract: ; ; This module implements the kernels for the symmetric quantized integer ; convolution operation. ; ; This implementation uses AVX512 core (BW/DQ/VL) and AVX512 VNNI instructions. ; ;-- .xlist INCLUDE mlasi.inc INCLUDE ConvSymKernelCommon.inc INCLUDE AssembleAvx512Vnni.inc .list ; ; Macro Description: ; ; This macro generates code to setup registers that is common between ; convolution kernel types. ; ; Arguments: ; ; Isa - Supplies the instruction set architecture string. ; ; KernelFrame - Supplies the symbol name to access the convolution kernel ; stack. ; ; Implicit Arguments: ; ; rcx - Supplies the address of the input buffer. ; ; r9 - Supplies the size of the kernel. ; ; Output: ; ; rbx - Supplies the address of the input buffer. ; ; rdi - Supplies the input indirection buffer stride. ; IFIDNI <Isa>, <Avx512Core> ; zmm7 - Supplies a 512-bit with the broadcasted word value 0x0001. ENDIF ; ; zmm8-zmm31 - Supplies the zeroed block accumulators. ; ; k1-k4 - Supplies the opmask registers loaded with a 64-bit channel bitmask ; for KernelFrame.ChannelCount. ; SetupRegistersCommon MACRO Isa, KernelFrame mov rbx,rcx ; preserve base input address lea rdi,[r9*8] ; indirection buffer offset to next output IFIDNI <Isa>, <Avx512Core> mov esi,1 vpbroadcastw zmm7,esi ; generate 512-bit word vector [0x0001] ENDIF EmitForEachRegister <zmm8,zmm9,zmm10,zmm11>,<vpxord RegItem,RegItem,RegItem> mov ecx,DWORD PTR KernelFrame.ChannelCount[rsp] EmitForEachRegister <zmm12,zmm13,zmm14,zmm15>,<vpxord RegItem,RegItem,RegItem> dec ecx ; convert shift count to 0..63 mov eax,2 shl rax,cl ; compute 2 << ChannelShiftCount dec rax ; convert to 64-bit channel bitmask EmitForEachRegister <zmm16,zmm17,zmm18,zmm19>,<vpxord RegItem,RegItem,RegItem> kmovw k1,eax ; k1 = channel bitmask[0..15] shr rax,16 EmitForEachRegister <zmm20,zmm21,zmm22,zmm23>,<vpxord RegItem,RegItem,RegItem> kmovw k2,eax ; k2 = channel bitmask[16..31] shr rax,16 EmitForEachRegister <zmm24,zmm25,zmm26,zmm27>,<vpxord RegItem,RegItem,RegItem> kmovw k3,eax ; k3 = channel bitmask[32..47] shr eax,16 EmitForEachRegister <zmm28,zmm29,zmm30,zmm31>,<vpxord RegItem,RegItem,RegItem> kmovw k4,eax ; k4 = channel bitmask[48..63] ENDM ; ; Macro Description: ; ; This macro generates code to multiply and accumulate a single cell of the ; output block. ; ; Arguments: ; ; AccumReg - Supplies the register to accumulate into. ; ; Mult1Reg - Supplies the first multiplication operand register. ; ; Mult2Reg - Supplies the second multiplication operand register. ; ; Implicit Arguments: ; ; zmm5 - Supplies a scratch register for intermediate results. ; ; zmm7 - Supplies a 512-bit with the broadcasted word value 0x0001. ; MultiplyAccumulateCellAvx512Core MACRO AccumReg, Mult1Reg, Mult2Reg vpmaddubsw zmm5,Mult1Reg,Mult2Reg vpmaddwd zmm5,zmm5,zmm7 vpaddd AccumReg,AccumReg,zmm5 ENDM MultiplyAccumulateCellAvx512Vnni MACRO AccumReg, Mult1Reg, Mult2Reg VpdpbusdsZmmZmmZmm AccumReg,Mult1Reg,Mult2Reg ENDM ; ; Macro Description: ; ; This macro generates code to multiply and accumulate each row of the output ; block. ; ; Arguments: ; ; Isa - Supplies the instruction set architecture string. ; ; ColumnCount - Supplies the number of columns to produce. ; ; VectorOffset - Supplies the byte offset from the filter to fetch elements. ; ; BroadcastOffset - Supplies the byte offset from the input to fetch elements. ; ; Implicit Arguments: ; ; rdx - Supplies the address of the filter buffer. ; ; rsi - Supplies the filter stride to access the packed data for the next 16 ; output channels. ; ; rbp - Supplies three times the above filter stride. ; ; r10 - Supplies the address of the base of the input buffer. ; ; r11-r15 - Supplies the relative byte offsets from the base of the input ; buffer to access the second through sixth rows. ; ; zmm8-zmm31 - Supplies the block accumulators. ; ComputeBlock MACRO Isa, ColumnCount, VectorOffset, BroadcastOffset EmitIfCountGE ColumnCount,16,<vmovdqu32 zmm0,ZMMWORD PTR [rdx+VectorOffset]> EmitIfCountGE ColumnCount,32,<vmovdqu32 zmm1,ZMMWORD PTR [rdx+rsi+VectorOffset]> EmitIfCountGE ColumnCount,48,<vmovdqu32 zmm2,ZMMWORD PTR [rdx+rsi*2+VectorOffset]> EmitIfCountGE ColumnCount,64,<vmovdqu32 zmm3,ZMMWORD PTR [rdx+rbp+VectorOffset]> vpbroadcastd zmm4,DWORD PTR [r10+BroadcastOffset] EmitIfCountGE ColumnCount,16,<MultiplyAccumulateCell&Isa& zmm8,zmm4,zmm0> EmitIfCountGE ColumnCount,32,<MultiplyAccumulateCell&Isa& zmm9,zmm4,zmm1> EmitIfCountGE ColumnCount,48,<MultiplyAccumulateCell&Isa& zmm10,zmm4,zmm2> EmitIfCountGE ColumnCount,64,<MultiplyAccumulateCell&Isa& zmm11,zmm4,zmm3> vpbroadcastd zmm4,DWORD PTR [r10+r11+BroadcastOffset] EmitIfCountGE ColumnCount,16,<MultiplyAccumulateCell&Isa& zmm12,zmm4,zmm0> EmitIfCountGE ColumnCount,32,<MultiplyAccumulateCell&Isa& zmm13,zmm4,zmm1> EmitIfCountGE ColumnCount,48,<MultiplyAccumulateCell&Isa& zmm14,zmm4,zmm2> EmitIfCountGE ColumnCount,64,<MultiplyAccumulateCell&Isa& zmm15,zmm4,zmm3> vpbroadcastd zmm4,DWORD PTR [r10+r12+BroadcastOffset] EmitIfCountGE ColumnCount,16,<MultiplyAccumulateCell&Isa& zmm16,zmm4,zmm0> EmitIfCountGE ColumnCount,32,<MultiplyAccumulateCell&Isa& zmm17,zmm4,zmm1> EmitIfCountGE ColumnCount,48,<MultiplyAccumulateCell&Isa& zmm18,zmm4,zmm2> EmitIfCountGE ColumnCount,64,<MultiplyAccumulateCell&Isa& zmm19,zmm4,zmm3> vpbroadcastd zmm4,DWORD PTR [r10+r13+BroadcastOffset] EmitIfCountGE ColumnCount,16,<MultiplyAccumulateCell&Isa& zmm20,zmm4,zmm0> EmitIfCountGE ColumnCount,32,<MultiplyAccumulateCell&Isa& zmm21,zmm4,zmm1> EmitIfCountGE ColumnCount,48,<MultiplyAccumulateCell&Isa& zmm22,zmm4,zmm2> EmitIfCountGE ColumnCount,64,<MultiplyAccumulateCell&Isa& zmm23,zmm4,zmm3> vpbroadcastd zmm4,DWORD PTR [r10+r14+BroadcastOffset] EmitIfCountGE ColumnCount,16,<MultiplyAccumulateCell&Isa& zmm24,zmm4,zmm0> EmitIfCountGE ColumnCount,32,<MultiplyAccumulateCell&Isa& zmm25,zmm4,zmm1> EmitIfCountGE ColumnCount,48,<MultiplyAccumulateCell&Isa& zmm26,zmm4,zmm2> EmitIfCountGE ColumnCount,64,<MultiplyAccumulateCell&Isa& zmm27,zmm4,zmm3> vpbroadcastd zmm4,DWORD PTR [r10+r15+BroadcastOffset] EmitIfCountGE ColumnCount,16,<MultiplyAccumulateCell&Isa& zmm28,zmm4,zmm0> EmitIfCountGE ColumnCount,32,<MultiplyAccumulateCell&Isa& zmm29,zmm4,zmm1> EmitIfCountGE ColumnCount,48,<MultiplyAccumulateCell&Isa& zmm30,zmm4,zmm2> EmitIfCountGE ColumnCount,64,<MultiplyAccumulateCell&Isa& zmm31,zmm4,zmm3> ENDM ; ; Macro Description: ; ; This macro generates code to execute the block compute macro multiple times ; and advancing the input and filter data pointers. ; ; Arguments: ; ; Isa - Supplies the instruction set architecture string. ; ; ColumnCount - Supplies the number of columns to produce. ; ; Implicit Arguments: ; ; rax - Supplies the number of byte elements to process (multiple of 4). ; ; rdx - Supplies the address of the filter buffer. ; ; rsi - Supplies the filter stride to access the packed data for the next 16 ; output channels. ; ; rbp - Supplies three times the above filter stride. ; ; r10 - Supplies the address of the base of the input buffer. ; ; r11-r15 - Supplies the relative byte offsets from the base of the input ; buffer to access the second through sixth rows. ; ; zmm8-zmm31 - Supplies the block accumulators. ; ComputeBlockLoop MACRO Isa, ColumnCount LOCAL ComputeBlockBy1Loop ComputeBlockBy1Loop: ComputeBlock Isa,ColumnCount,0*64,0 add r10,4 ; advance input base address add rdx,16*4 ; advance filter address sub rax,4 ; decrement elements remaining jnz ComputeBlockBy1Loop ENDM ; ; Macro Description: ; ; This macro generates code for the inner kernel to compute a convolution ; for the elements of an output row for a set of filter rows. ; ; Arguments: ; ; Isa - Supplies the instruction set architecture string. ; ConvSymKernelFunction MACRO Isa ;++ ; ; Routine Description: ; ; This routine is the inner kernel to compute a convolution for the elements ; of an output row for a set of filter rows. ; ; Arguments: ; ; Input (rcx) - Supplies the address of the input buffer. ; ; If MLAS_CONV_SYM_FLAG_INPUT_DIRECT is set, then the input buffer points ; directly at the input tensor. ; ; If MLAS_CONV_SYM_FLAG_INPUT_DIRECT is clear, then the input buffer is an ; indirection buffer. Every pointer in the indirection buffer points at a ; InputChannels length vector (either from the input tensor or a vector of ; padding values). These are grouped in batches of length KernelSize. ; These batches are then repeated OutputCount times. ; ; Filter (rdx) - Supplies the address of the filter buffer. ; ; Output (r8) - Supplies the address of the output buffer. ; ; KernelSize (r9) - Supplies the size of the kernel. ; ; If MLAS_CONV_SYM_FLAG_INPUT_DIRECT is set, then kernel size should be 1. ; ; InputChannels - Supplies the number of input channels. ; ; This implementation requires the count to be a multiple of 4. ; ; OutputChannels - Supplies the number of output channels. ; ; ChannelCount - Supplies the number of channels this iteration produces. ; ; This implementation requires the count to be in the range 1 to 64. ; ; OutputCount - Supplies the number of output elements this iteration produces. ; ; This implementation requires the count to be in the range 1 to 6. ; ; PostProcessParams - Supplies the address of the post process parameter block. ; ; KernelFlags - Supplies additional flags controlling the operation. ; ; Return Value: ; ; None. ; ;-- NESTED_ENTRY MlasConvSymKernel&Isa&, _TEXT rex_push_reg rbp push_reg rbx push_reg rsi push_reg rdi push_reg r12 push_reg r13 push_reg r14 push_reg r15 alloc_stack (ConvSymKernelFrame.SavedR15) save_xmm128 xmm6,ConvSymKernelFrame.SavedXmm6 save_xmm128 xmm7,ConvSymKernelFrame.SavedXmm7 save_xmm128 xmm8,ConvSymKernelFrame.SavedXmm8 save_xmm128 xmm9,ConvSymKernelFrame.SavedXmm9 save_xmm128 xmm10,ConvSymKernelFrame.SavedXmm10 save_xmm128 xmm11,ConvSymKernelFrame.SavedXmm11 save_xmm128 xmm12,ConvSymKernelFrame.SavedXmm12 save_xmm128 xmm13,ConvSymKernelFrame.SavedXmm13 save_xmm128 xmm14,ConvSymKernelFrame.SavedXmm14 save_xmm128 xmm15,ConvSymKernelFrame.SavedXmm15 END_PROLOGUE SetupRegistersCommon Isa,ConvSymKernelFrame mov rsi,ConvSymKernelFrame.InputChannels[rsp] mov ecx,DWORD PTR ConvSymKernelFrame.ChannelCount[rsp] shl rsi,4 ; 16 output channels per filter block imul rsi,r9 ; compute filter stride lea rbp,[rsi*2+rsi] ; ; Process an input block of length InputChannels for each element of the kernel. ; ; To keep code size small, this kernel always computes a fixed number of output ; rows. If the output count is less than this fixed number, then the first row ; is duplicated into the unused slots and the results are discarded. ; ProcessNextInputBlock: mov eax,DWORD PTR ConvSymKernelFrame.OutputCount[rsp] test BYTE PTR ConvSymKernelFrame.KernelFlags[rsp],MLAS_CONV_SYM_FLAG_INPUT_DIRECT jz InputIndirection ; ; The input buffer points directly at the input data and this is effectively a ; GEMM operation (such as a pointwise convolution or an Im2Col transform). ; InputDirect: xor r10,r10 mov r11,ConvSymKernelFrame.InputChannels[rsp] lea r12,[r11+r11] lea r13,[r12+r11] lea r14,[r13+r11] lea r15,[r14+r11] cmp eax,2 cmovb r11,r10 ; use first row if output count is small cmovbe r12,r10 cmp eax,4 cmovb r13,r10 cmovbe r14,r10 cmp eax,6 cmovb r15,r10 mov r10,rbx jmp ComputeBlockLoopStart InputIndirection: lea r11,[rbx+rdi] lea r12,[rbx+rdi*2] lea r13,[r11+rdi*2] lea r14,[r12+rdi*2] lea r15,[r13+rdi*2] cmp eax,2 cmovb r11,rbx ; use first row if output count is small cmovbe r12,rbx cmp eax,4 cmovb r13,rbx cmovbe r14,rbx cmp eax,6 cmovb r15,rbx mov r10,QWORD PTR [rbx] mov r11,QWORD PTR [r11] mov r12,QWORD PTR [r12] mov r13,QWORD PTR [r13] mov r14,QWORD PTR [r14] mov r15,QWORD PTR [r15] add rbx,8 ; advance indirection buffer address sub r11,r10 ; compute deltas from base address sub r12,r10 sub r13,r10 sub r14,r10 sub r15,r10 ComputeBlockLoopStart: mov rax,ConvSymKernelFrame.InputChannels[rsp] cmp ecx,16 jbe ComputeBlockLoopBy16 cmp ecx,32 jbe ComputeBlockLoopBy32 cmp ecx,48 jbe ComputeBlockLoopBy48 ComputeBlockLoopBy64: ComputeBlockLoop Isa,64 jmp ComputeBlockLoopDone ComputeBlockLoopBy48: ComputeBlockLoop Isa,48 jmp ComputeBlockLoopDone ComputeBlockLoopBy32: ComputeBlockLoop Isa,32 jmp ComputeBlockLoopDone ComputeBlockLoopBy16: ComputeBlockLoop Isa,16 ComputeBlockLoopDone: dec r9 ; decrement input blocks remaining jnz ProcessNextInputBlock ; ; Post-process the block accumulators. ; mov ebx,DWORD PTR ConvSymKernelFrame.OutputCount[rsp] mov rsi,ConvSymKernelFrame.OutputChannels[rsp] mov rdx,ConvSymKernelFrame.PostProcessParams[rsp] mov ebp,DWORD PTR ConvSymKernelFrame.KernelFlags[rsp] call MlasConvSymPostProcessAvx512Core ; ; Restore non-volatile registers and return. ; ExitKernel: vzeroupper movaps xmm6,ConvSymKernelFrame.SavedXmm6[rsp] movaps xmm7,ConvSymKernelFrame.SavedXmm7[rsp] movaps xmm8,ConvSymKernelFrame.SavedXmm8[rsp] movaps xmm9,ConvSymKernelFrame.SavedXmm9[rsp] movaps xmm10,ConvSymKernelFrame.SavedXmm10[rsp] movaps xmm11,ConvSymKernelFrame.SavedXmm11[rsp] movaps xmm12,ConvSymKernelFrame.SavedXmm12[rsp] movaps xmm13,ConvSymKernelFrame.SavedXmm13[rsp] movaps xmm14,ConvSymKernelFrame.SavedXmm14[rsp] movaps xmm15,ConvSymKernelFrame.SavedXmm15[rsp] add rsp,(ConvSymKernelFrame.SavedR15) BEGIN_EPILOGUE pop r15 pop r14 pop r13 pop r12 pop rdi pop rsi pop rbx pop rbp ret NESTED_END MlasConvSymKernel&Isa&, _TEXT ENDM ; ; Macro Description: ; ; This macro generates code for the inner kernel to compute a depthwise ; convolution for the elements of an output row for a set of filter rows. ; ; Arguments: ; ; Isa - Supplies the instruction set architecture string. ; ConvSymDepthwiseKernelFunction MACRO Isa ;++ ; ; Routine Description: ; ; This routine is the inner kernel to compute a depthwise convolution for the ; elements of an output row for a set of filter rows. ; ; Arguments: ; ; Input (rcx) - Supplies the address of the input indirection buffer. ; ; Filter (rdx) - Supplies the address of the filter buffer. ; ; Output (r8) - Supplies the address of the output buffer. ; ; KernelSize (r9) - Supplies the size of the kernel. ; ; Channels - Supplies the number of input and output channels. ; ; ChannelOffset - Supplies the byte offset from the indirection buffer base ; address for this iteration. ; ; ChannelCount - Supplies the number of channels this iteration produces. ; ; This implementation requires the count to be in the range 1 to 64. ; ; OutputCount - Supplies the number of output elements this iteration produces. ; ; This implementation requires the count to be in the range 1 to 6. ; ; PostProcessParams - Supplies the address of the post process parameter block. ; ; KernelFlags - Supplies additional flags controlling the operation. ; ; Return Value: ; ; None. ; ;-- NESTED_ENTRY MlasConvSymDepthwiseKernel&Isa&, _TEXT rex_push_reg rbp push_reg rbx push_reg rsi push_reg rdi push_reg r12 push_reg r13 push_reg r14 push_reg r15 alloc_stack (ConvSymDepthwiseKernelFrame.SavedR15) save_xmm128 xmm6,ConvSymDepthwiseKernelFrame.SavedXmm6 save_xmm128 xmm7,ConvSymDepthwiseKernelFrame.SavedXmm7 save_xmm128 xmm8,ConvSymDepthwiseKernelFrame.SavedXmm8 save_xmm128 xmm9,ConvSymDepthwiseKernelFrame.SavedXmm9 save_xmm128 xmm10,ConvSymDepthwiseKernelFrame.SavedXmm10 save_xmm128 xmm11,ConvSymDepthwiseKernelFrame.SavedXmm11 save_xmm128 xmm12,ConvSymDepthwiseKernelFrame.SavedXmm12 save_xmm128 xmm13,ConvSymDepthwiseKernelFrame.SavedXmm13 save_xmm128 xmm14,ConvSymDepthwiseKernelFrame.SavedXmm14 save_xmm128 xmm15,ConvSymDepthwiseKernelFrame.SavedXmm15 END_PROLOGUE SetupRegistersCommon Isa,ConvSymDepthwiseKernelFrame mov rsi,ConvSymDepthwiseKernelFrame.Channels[rsp] mov ebp,DWORD PTR ConvSymDepthwiseKernelFrame.OutputCount[rsp] mov rax,ConvSymDepthwiseKernelFrame.ChannelOffset[rsp] mov ecx,DWORD PTR ConvSymDepthwiseKernelFrame.ChannelCount[rsp] ; ; Process an input block of length Channels for each element of the kernel. ; ; To keep code size small, this kernel always computes a fixed number of output ; rows. If the output count is less than this fixed number, then the first row ; is duplicated into the unused slots and the results are discarded. ; ProcessNextInputBlock: lea r11,[rbx+rdi] lea r12,[rbx+rdi*2] lea r13,[r11+rdi*2] lea r14,[r12+rdi*2] lea r15,[r13+rdi*2] cmp ebp,2 cmovb r11,rbx ; use first row if output count is small cmovbe r12,rbx cmp ebp,4 cmovb r13,rbx cmovbe r14,rbx cmp ebp,6 cmovb r15,rbx mov r10,QWORD PTR [rbx] mov r11,QWORD PTR [r11] mov r12,QWORD PTR [r12] mov r13,QWORD PTR [r13] mov r14,QWORD PTR [r14] mov r15,QWORD PTR [r15] add rbx,8 cmp ecx,16 jbe ComputeDepthwiseBlockBy16 cmp ecx,32 jbe ComputeDepthwiseBlockBy32 cmp ecx,48 jbe ComputeDepthwiseBlockBy48 ComputeDepthwiseBlockBy64: vpmovzxbd zmm2{k4}{z},XMMWORD PTR [rdx+3*16] vpmovzxbd zmm0{k4}{z},XMMWORD PTR [r10+rax+3*16] vpmovzxbd zmm1{k4}{z},XMMWORD PTR [r11+rax+3*16] MultiplyAccumulateCell&Isa& zmm11,zmm0,zmm2 MultiplyAccumulateCell&Isa& zmm15,zmm1,zmm2 vpmovzxbd zmm0{k4}{z},XMMWORD PTR [r12+rax+3*16] vpmovzxbd zmm1{k4}{z},XMMWORD PTR [r13+rax+3*16] MultiplyAccumulateCell&Isa& zmm19,zmm0,zmm2 MultiplyAccumulateCell&Isa& zmm23,zmm1,zmm2 vpmovzxbd zmm0{k4}{z},XMMWORD PTR [r14+rax+3*16] vpmovzxbd zmm1{k4}{z},XMMWORD PTR [r15+rax+3*16] MultiplyAccumulateCell&Isa& zmm27,zmm0,zmm2 MultiplyAccumulateCell&Isa& zmm31,zmm1,zmm2 ComputeDepthwiseBlockBy48: vpmovzxbd zmm2{k3}{z},XMMWORD PTR [rdx+2*16] vpmovzxbd zmm0{k3}{z},XMMWORD PTR [r10+rax+2*16] vpmovzxbd zmm1{k3}{z},XMMWORD PTR [r11+rax+2*16] MultiplyAccumulateCell&Isa& zmm10,zmm0,zmm2 MultiplyAccumulateCell&Isa& zmm14,zmm1,zmm2 vpmovzxbd zmm0{k3}{z},XMMWORD PTR [r12+rax+2*16] vpmovzxbd zmm1{k3}{z},XMMWORD PTR [r13+rax+2*16] MultiplyAccumulateCell&Isa& zmm18,zmm0,zmm2 MultiplyAccumulateCell&Isa& zmm22,zmm1,zmm2 vpmovzxbd zmm0{k3}{z},XMMWORD PTR [r14+rax+2*16] vpmovzxbd zmm1{k3}{z},XMMWORD PTR [r15+rax+2*16] MultiplyAccumulateCell&Isa& zmm26,zmm0,zmm2 MultiplyAccumulateCell&Isa& zmm30,zmm1,zmm2 ComputeDepthwiseBlockBy32: vpmovzxbd zmm2{k2}{z},XMMWORD PTR [rdx+1*16] vpmovzxbd zmm0{k2}{z},XMMWORD PTR [r10+rax+1*16] vpmovzxbd zmm1{k2}{z},XMMWORD PTR [r11+rax+1*16] MultiplyAccumulateCell&Isa& zmm9,zmm0,zmm2 MultiplyAccumulateCell&Isa& zmm13,zmm1,zmm2 vpmovzxbd zmm0{k2}{z},XMMWORD PTR [r12+rax+1*16] vpmovzxbd zmm1{k2}{z},XMMWORD PTR [r13+rax+1*16] MultiplyAccumulateCell&Isa& zmm17,zmm0,zmm2 MultiplyAccumulateCell&Isa& zmm21,zmm1,zmm2 vpmovzxbd zmm0{k2}{z},XMMWORD PTR [r14+rax+1*16] vpmovzxbd zmm1{k2}{z},XMMWORD PTR [r15+rax+1*16] MultiplyAccumulateCell&Isa& zmm25,zmm0,zmm2 MultiplyAccumulateCell&Isa& zmm29,zmm1,zmm2 ComputeDepthwiseBlockBy16: vpmovzxbd zmm2{k1}{z},XMMWORD PTR [rdx] vpmovzxbd zmm0{k1}{z},XMMWORD PTR [r10+rax] vpmovzxbd zmm1{k1}{z},XMMWORD PTR [r11+rax] MultiplyAccumulateCell&Isa& zmm8,zmm0,zmm2 MultiplyAccumulateCell&Isa& zmm12,zmm1,zmm2 vpmovzxbd zmm0{k1}{z},XMMWORD PTR [r12+rax] vpmovzxbd zmm1{k1}{z},XMMWORD PTR [r13+rax] MultiplyAccumulateCell&Isa& zmm16,zmm0,zmm2 MultiplyAccumulateCell&Isa& zmm20,zmm1,zmm2 vpmovzxbd zmm0{k1}{z},XMMWORD PTR [r14+rax] vpmovzxbd zmm1{k1}{z},XMMWORD PTR [r15+rax] MultiplyAccumulateCell&Isa& zmm24,zmm0,zmm2 MultiplyAccumulateCell&Isa& zmm28,zmm1,zmm2 add rdx,rsi ; advance filter to next kernel dec r9 ; decrement input blocks remaining jnz ProcessNextInputBlock ; ; Post-process the block accumulators. ; mov ebx,ebp mov rdx,ConvSymDepthwiseKernelFrame.PostProcessParams[rsp] mov ebp,DWORD PTR ConvSymDepthwiseKernelFrame.KernelFlags[rsp] call MlasConvSymPostProcessAvx512Core ; ; Restore non-volatile registers and return. ; ExitKernel: vzeroupper movaps xmm6,ConvSymDepthwiseKernelFrame.SavedXmm6[rsp] movaps xmm7,ConvSymDepthwiseKernelFrame.SavedXmm7[rsp] movaps xmm8,ConvSymDepthwiseKernelFrame.SavedXmm8[rsp] movaps xmm9,ConvSymDepthwiseKernelFrame.SavedXmm9[rsp] movaps xmm10,ConvSymDepthwiseKernelFrame.SavedXmm10[rsp] movaps xmm11,ConvSymDepthwiseKernelFrame.SavedXmm11[rsp] movaps xmm12,ConvSymDepthwiseKernelFrame.SavedXmm12[rsp] movaps xmm13,ConvSymDepthwiseKernelFrame.SavedXmm13[rsp] movaps xmm14,ConvSymDepthwiseKernelFrame.SavedXmm14[rsp] movaps xmm15,ConvSymDepthwiseKernelFrame.SavedXmm15[rsp] add rsp,(ConvSymDepthwiseKernelFrame.SavedR15) BEGIN_EPILOGUE pop r15 pop r14 pop r13 pop r12 pop rdi pop rsi pop rbx pop rbp ret NESTED_END MlasConvSymDepthwiseKernel&Isa&, _TEXT ENDM ; ; Macro Description: ; ; This macro generates code to convert the block accumulators from the matrix ; multiply loop to float values. ; ; Arguments: ; ; RegList - Supplies the list of vector registers to operate on. ; ; ScaleReg - Supplies the output scale vector. ; ; Implicit Arguments: ; ; zmm4 - Supplies the integer bias vector. ; ConvertAccumulatorToFloatRegList MACRO RegList, ScaleReg ; ; Offset each value by the per-channel bias value, convert to floating point, ; and apply the output scale. ; EmitForEachRegister <RegList>,<vpaddd RegItem,RegItem,zmm4> EmitForEachRegister <RegList>,<vcvtdq2ps RegItem,RegItem> EmitForEachRegister <RegList>,<vmulps RegItem,RegItem,ScaleReg> ENDM ; ; Macro Description: ; ; This macro generates code to convert float values to 32-bit integers in the ; range 0 to 255. ; ; Arguments: ; ; RegList - Supplies the list of vector registers to operate on. ; ; Implicit Arguments: ; ; zmm0 - Supplies the broadcasted minimum clip float value. ; ; This is set to static_cast<float>(0 - ZeroPointValue). ; ; zmm1 - Supplies the broadcasted maximum clip float value. ; ; This is set to static_cast<float>(255 - ZeroPointValue). ; ; zmm2 - Supplies the broadcasted zero point integer value. ; ConvertFloatToIntegerRegList MACRO RegList ; ; Clip the float values to the integer range covered by the output zero point. ; This also keeps values outside the range INT_MIN to INT_MAX from converting ; to INT_MIN. ; EmitForEachRegister <RegList>,<vmaxps RegItem,RegItem,zmm0> EmitForEachRegister <RegList>,<vminps RegItem,RegItem,zmm1> ; ; Convert the float value to integer and add the zero point offset. ; EmitForEachRegister <RegList>,<vcvtps2dq RegItem,RegItem> EmitForEachRegister <RegList>,<vpaddd RegItem,RegItem,zmm2> ENDM ;++ ; ; Routine Description: ; ; This routine post processes the block accumulators produced by the convolution ; kernels, including type conversion, requantization, and storing to the output ; buffer. ; ; Arguments: ; ; Return Value: ; ; None. ; ;-- LEAF_ENTRY MlasConvSymPostProcessAvx512Core, _TEXT ; ; Apply the bias and convert the block accumulators to intermediate float values. ; mov r10,ConvSymPostProcessParams.Bias[rdx] mov r11,ConvSymPostProcessParams.Scale[rdx] test bpl,MLAS_CONV_SYM_FLAG_PER_CHANNEL_SCALE jz BroadcastScaleValue vmovups zmm0{k1}{z},ZMMWORD PTR [r11] vmovups zmm1{k2}{z},ZMMWORD PTR [r11+16*4] vmovups zmm2{k3}{z},ZMMWORD PTR [r11+32*4] vmovups zmm3{k4}{z},ZMMWORD PTR [r11+48*4] jmp ConvertAccumulatorsToFloat BroadcastScaleValue: vbroadcastss zmm0,DWORD PTR [r11] vmovups zmm1,zmm0 vmovups zmm2,zmm0 vmovups zmm3,zmm0 ConvertAccumulatorsToFloat: cmp ecx,16 jbe ConvertAccumulatorsToFloatBy16 cmp ecx,32 jbe ConvertAccumulatorsToFloatBy32 cmp ecx,48 jbe ConvertAccumulatorsToFloatBy48 ConvertAccumulatorsToFloatBy64: vmovdqu32 zmm4{k4}{z},ZMMWORD PTR [r10+48*4] ConvertAccumulatorToFloatRegList <zmm11,zmm15,zmm19,zmm23,zmm27,zmm31>,zmm3 ConvertAccumulatorsToFloatBy48: vmovdqu32 zmm4{k3}{z},ZMMWORD PTR [r10+32*4] ConvertAccumulatorToFloatRegList <zmm10,zmm14,zmm18,zmm22,zmm26,zmm30>,zmm2 ConvertAccumulatorsToFloatBy32: vmovdqu32 zmm4{k2}{z},ZMMWORD PTR [r10+16*4] ConvertAccumulatorToFloatRegList <zmm9,zmm13,zmm17,zmm21,zmm25,zmm29>,zmm1 ConvertAccumulatorsToFloatBy16: vmovdqu32 zmm4{k1}{z},ZMMWORD PTR [r10] ConvertAccumulatorToFloatRegList <zmm8,zmm12,zmm16,zmm20,zmm24,zmm28>,zmm0 ; ; Convert the intermediate float values to 32-bit integers in the range 0 to 255. ; vbroadcastss zmm0,DWORD PTR ConvSymPostProcessParams.MinimumValue[rdx] vbroadcastss zmm1,DWORD PTR ConvSymPostProcessParams.MaximumValue[rdx] vpbroadcastd zmm2,DWORD PTR ConvSymPostProcessParams.OutputZeroPoint[rdx] cmp ecx,16 jbe ConvertFloatsToIntegerBy16 cmp ecx,32 jbe ConvertFloatsToIntegerBy32 cmp ecx,48 jbe ConvertFloatsToIntegerBy48 ConvertFloatsToIntegerBy64: ConvertFloatToIntegerRegList <zmm11,zmm15,zmm19,zmm23,zmm27,zmm31> ConvertFloatsToIntegerBy48: ConvertFloatToIntegerRegList <zmm10,zmm14,zmm18,zmm22,zmm26,zmm30> ConvertFloatsToIntegerBy32: ConvertFloatToIntegerRegList <zmm9,zmm13,zmm17,zmm21,zmm25,zmm29> ConvertFloatsToIntegerBy16: ConvertFloatToIntegerRegList <zmm8,zmm12,zmm16,zmm20,zmm24,zmm28> ; ; Pack with saturation and store 1 to 64 bytes to the output buffer. ; StoreQuantizedOutput: lea r9,[rsi*2+rsi] add r9,r8 cmp ebx,5 ja StoreQuantizedOutput6 je StoreQuantizedOutput5 cmp ebx,3 ja StoreQuantizedOutput4 je StoreQuantizedOutput3 cmp ebx,1 ja StoreQuantizedOutput2 jmp StoreQuantizedOutput1 StoreQuantizedOutput6: vpmovusdb XMMWORD PTR [r9+rsi*2]{k1},zmm28 vpmovusdb XMMWORD PTR [r9+rsi*2+16]{k2},zmm29 vpmovusdb XMMWORD PTR [r9+rsi*2+32]{k3},zmm30 vpmovusdb XMMWORD PTR [r9+rsi*2+48]{k4},zmm31 StoreQuantizedOutput5: vpmovusdb XMMWORD PTR [r9+rsi]{k1},zmm24 vpmovusdb XMMWORD PTR [r9+rsi+16]{k2},zmm25 vpmovusdb XMMWORD PTR [r9+rsi+32]{k3},zmm26 vpmovusdb XMMWORD PTR [r9+rsi+48]{k4},zmm27 StoreQuantizedOutput4: vpmovusdb XMMWORD PTR [r9]{k1},zmm20 vpmovusdb XMMWORD PTR [r9+16]{k2},zmm21 vpmovusdb XMMWORD PTR [r9+32]{k3},zmm22 vpmovusdb XMMWORD PTR [r9+48]{k4},zmm23 StoreQuantizedOutput3: vpmovusdb XMMWORD PTR [r8+rsi*2]{k1},zmm16 vpmovusdb XMMWORD PTR [r8+rsi*2+16]{k2},zmm17 vpmovusdb XMMWORD PTR [r8+rsi*2+32]{k3},zmm18 vpmovusdb XMMWORD PTR [r8+rsi*2+48]{k4},zmm19 StoreQuantizedOutput2: vpmovusdb XMMWORD PTR [r8+rsi]{k1},zmm12 vpmovusdb XMMWORD PTR [r8+rsi+16]{k2},zmm13 vpmovusdb XMMWORD PTR [r8+rsi+32]{k3},zmm14 vpmovusdb XMMWORD PTR [r8+rsi+48]{k4},zmm15 StoreQuantizedOutput1: vpmovusdb XMMWORD PTR [r8]{k1},zmm8 vpmovusdb XMMWORD PTR [r8+16]{k2},zmm9 vpmovusdb XMMWORD PTR [r8+32]{k3},zmm10 vpmovusdb XMMWORD PTR [r8+48]{k4},zmm11 ret LEAF_END MlasConvSymPostProcessAvx512Core, _TEXT ; ; Generate the convolution kernels. ; ConvSymKernelFunction Avx512Core ConvSymDepthwiseKernelFunction Avx512Core ConvSymKernelFunction Avx512Vnni ConvSymDepthwiseKernelFunction Avx512Vnni END
33.619202
92
0.678518
6169869fb15df26ba926d3d95e2a4bba2e3995d9
7,014
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1721.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1721.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1721.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 %r14 push %r15 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0xcd0e, %rdx nop nop nop nop xor $60783, %r15 mov $0x6162636465666768, %r11 movq %r11, %xmm7 vmovups %ymm7, (%rdx) xor $24828, %r14 lea addresses_WT_ht+0x1db3e, %rdi nop nop nop nop add $21210, %r8 mov $0x6162636465666768, %r13 movq %r13, (%rdi) nop nop nop add %rdx, %rdx lea addresses_A_ht+0x53e, %rsi lea addresses_normal_ht+0x1353e, %rdi dec %r11 mov $88, %rcx rep movsb nop nop cmp $23731, %r13 lea addresses_normal_ht+0x11823, %r13 nop nop nop nop nop and %r11, %r11 movb (%r13), %r14b nop add $35437, %rdi lea addresses_A_ht+0xa69e, %r14 nop add %rdx, %rdx mov $0x6162636465666768, %rcx movq %rcx, %xmm2 vmovups %ymm2, (%r14) nop nop nop nop nop xor $58040, %r11 lea addresses_D_ht+0x14098, %rdi nop xor %rcx, %rcx mov $0x6162636465666768, %r11 movq %r11, %xmm5 vmovups %ymm5, (%rdi) nop lfence lea addresses_A_ht+0x19182, %rdi nop nop add $22816, %r15 mov (%rdi), %r14w nop nop sub %r14, %r14 lea addresses_A_ht+0xe13e, %r8 nop nop nop inc %rsi movb $0x61, (%r8) nop nop nop nop inc %rdi lea addresses_D_ht+0x14fbe, %r11 nop nop sub $37236, %rdx movw $0x6162, (%r11) nop cmp %rcx, %rcx lea addresses_WT_ht+0x11434, %rsi lea addresses_normal_ht+0x132fe, %rdi nop nop nop nop nop dec %r8 mov $3, %rcx rep movsw nop nop xor $30860, %r15 lea addresses_normal_ht+0x1af3e, %rsi lea addresses_UC_ht+0x1b3e, %rdi nop nop dec %r13 mov $102, %rcx rep movsw nop nop nop nop and $42768, %r13 lea addresses_WC_ht+0x2d3e, %rsi lea addresses_normal_ht+0x1063a, %rdi nop nop nop add $1283, %r14 mov $74, %rcx rep movsl cmp $30660, %r14 pop %rsi pop %rdx pop %rdi pop %rcx pop %r8 pop %r15 pop %r14 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r8 push %rax push %rsi // Faulty Load lea addresses_WC+0x1b13e, %rsi nop nop nop nop add $37085, %rax mov (%rsi), %r8d lea oracles, %rax and $0xff, %r8 shlq $12, %r8 mov (%rax,%r8,1), %r8 pop %rsi pop %rax pop %r8 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_WC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 7, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'src': {'congruent': 8, 'same': True, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 4, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 2, 'same': True, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 11, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 5, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'src': {'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 6, 'same': True, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'src': {'congruent': 9, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'} {'src': {'congruent': 9, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'38': 21829} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
36.53125
2,999
0.661392
88ac5639268bd1c7d3fb336f0fcb7f81a05bd1e0
585
asm
Assembly
dual_triangle/dual_triangle.asm
CCpp-Indonesia/contoh-tugas-program-asm
e49680bc6e9131aab67bbfe29841ff1743aa168d
[ "MIT" ]
2
2019-01-14T12:33:41.000Z
2019-01-14T14:37:32.000Z
dual_triangle/dual_triangle.asm
cppid/contoh-tugas-program-asm
e49680bc6e9131aab67bbfe29841ff1743aa168d
[ "MIT" ]
null
null
null
dual_triangle/dual_triangle.asm
cppid/contoh-tugas-program-asm
e49680bc6e9131aab67bbfe29841ff1743aa168d
[ "MIT" ]
null
null
null
section .rodata a01 db 42 a03 db 10 section .data global _start _start: mov r9,5 call tgr call exit exit: mov rax,60 xor rdi,rdi syscall ret tgr: mov r13,r9 call tr call a0b call td ret tr: mov r14,r13 mov r15,0 call a0s call a0b dec r13 cmp r13,0 jg tr ret td: inc r13 mov r14,r13 mov r15,0 call a0s call a0b cmp r13,r9 jl td ret wr: mov rax,1 mov rdi,1 mov rdx,1 syscall ret a0s: inc r15 mov rsi,a01 call wr cmp r15,r14 jl a0s ret a0b: inc r15 mov rsi,a03 call wr cmp r15,r14 jl a0b ret
9.915254
15
0.617094
4b7a1a2d2d7acc8da470aeb3706b1fe3ba991306
904
asm
Assembly
programs/oeis/071/A071055.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/071/A071055.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/071/A071055.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A071055: Number of 0's in n-th row of triangle in A071038. ; 0,0,2,0,2,2,6,0,2,2,6,2,6,6,14,0,2,2,6,2,6,6,14,2,6,6,14,6,14,14,30,0,2,2,6,2,6,6,14,2,6,6,14,6,14,14,30,2,6,6,14,6,14,14,30,6,14,14,30,14,30,30,62,0,2,2,6,2,6,6,14,2,6,6,14,6,14,14,30,2,6,6,14,6,14,14,30,6,14,14,30,14,30,30,62,2,6,6,14,6,14,14,30,6,14,14,30,14,30,30,62,6,14,14,30,14,30,30,62,14,30,30,62,30,62,62,126,0,2,2,6,2,6,6,14,2,6,6,14,6,14,14,30,2,6,6,14,6,14,14,30,6,14,14,30,14,30,30,62,2,6,6,14,6,14,14,30,6,14,14,30,14,30,30,62,6,14,14,30,14,30,30,62,14,30,30,62,30,62,62,126,2,6,6,14,6,14,14,30,6,14,14,30,14,30,30,62,6,14,14,30,14,30,30,62,14,30,30,62,30,62,62,126,6,14,14,30,14,30,30,62,14,30,30,62,30,62,62,126,14,30,30,62,30,62,62,126,30,62,62 mov $1,$0 mov $2,1 mov $4,3 lpb $1 lpb $4 mov $3,$1 trn $4,$2 mov $2,$1 lpe add $4,2 lpb $3 mul $3,2 sub $3,$4 mov $1,$3 trn $3,$2 lpe lpe
43.047619
664
0.589602
67fcc487bbafeb197fda4074ae4b06199af9a80c
508
asm
Assembly
programs/oeis/261/A261471.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/261/A261471.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/261/A261471.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A261471: Cyclotomic polynomial value Phi(6,n!). ; 1,1,3,31,553,14281,517681,25396561,1625662081,131681531521,13168185811201,1593350882323201,229442532323558401,38775788037405619201,7600054456464819148801,1710012252722891749632001,437763136697374129754112001,126513546505546814497787904001,40990389067797276737636278272001,14797530453474819091898503815168001 seq $0,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of permutations of n letters). bin $0,2 mul $0,2 add $0,1
63.5
309
0.832677
91896ab584ccda5e79bbe30de611299e25ab93fb
124,965
asm
Assembly
Library/CoProcessor/IntCommon/intCommonMain.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/CoProcessor/IntCommon/intCommonMain.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/CoProcessor/IntCommon/intCommonMain.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: intCommonMain.asm AUTHOR: jimmy lefkowitz REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/15/92 Initial version. DESCRIPTION: contains 80X87 code to do the same thing for each routine found in our floating point emulation library $Id: intCommonMain.asm,v 1.1 97/04/04 17:48:36 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CommonCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87SetChop %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the coprocessor to chop results CALLED BY: (INTERNAL) Intel80X87Frac, Intel80X87Round, Intel80X87_2ToTheX, Intel80X87TruncInternal PASS: nothing RETURN: nothing DESTROYED: ax SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 1/ 8/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87SetChop proc near control local word .enter fstcw control fwait ; wait for it to arrive CheckHack <RC_CHOP eq 3 and width CW_ROUND_CONTROL eq 2> ornf ss:[control], RC_CHOP shl offset CW_ROUND_CONTROL fldcw control .leave ret Intel80X87SetChop endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87SetNearest %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the coprocessor to round results to nearest CALLED BY: (INTERNAL) Intel80X87Frac, Intel80X87Round, Intel80X87_2ToTheX, Intel80X87TruncInternal PASS: nothing RETURN: nothing DESTROYED: ax SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 1/ 8/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87SetNearest proc near control local word .enter fstcw control fwait ; wait for it to arrive CheckHack <RC_NEAREST_OR_EVEN eq 0 and width CW_ROUND_CONTROL eq 2> andnf ss:[control], not mask CW_ROUND_CONTROL fldcw control .leave ret Intel80X87SetNearest endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87RestoreState %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: restore the hardware state CALLED BY: Math Library PASS: si = handle of state block RETURN: si = same handle DESTROYED: Nada. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/27/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87RestoreState proc far uses ds, bx, ax .enter mov bx, si call MemLock mov ds, ax frstor ds:[0] fwait call MemUnlock .leave ret Intel80X87RestoreState endp public Intel80X87RestoreState COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87SaveState %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: save the chips state CALLED BY: Math Library PASS: si = handle of block to save state to RETURN: si = same handle DESTROYED: Nada. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/27/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87SaveState proc far uses ds, bx, ax .enter mov bx, si call MemLock mov ds, ax fsave ds:[0] fwait call MemUnlock .leave ret Intel80X87SaveState endp public Intel80X87SaveState COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87GetHardwareStackSize %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: get the size of the hardware stack CALLED BY: Math Library PASS: nothing RETURN: cx = size of hardware stack DESTROYED: Nada. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/27/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87GetHardwareStackSize proc far .enter mov cx, INTEL_STACK_SIZE .leave ret Intel80X87GetHardwareStackSize endp public Intel80X87GetHardwareStackSize COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87GetEnvSize %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: get the size of the environment (state) of the coprocessor CALLED BY: Math Library PASS: nothing RETURN: cx = size in bytes DESTROYED: Nada. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/29/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87GetEnvSize proc far .enter mov cx, INTEL_ENV_SIZE .leave ret Intel80X87GetEnvSize endp public Intel80X87GetEnvSize COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87DoHardwareInit %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: do an actual hardware init CALLED BY: Math Library PASS: nothing RETURN: Void. DESTROYED: Nada. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/29/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87DoHardwareInit proc far .enter finit fwait .leave ret Intel80X87DoHardwareInit endp public Intel80X87DoHardwareInit COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87SetStackSize %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: set the stack size CALLED BY: GLOBAL PASS: ax RETURN: Void. DESTROYED: Nada. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 6/19/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87SetStackSize proc far .enter cmp ax, INTEL_STACK_SIZE jle done sub ax, INTEL_STACK_SIZE call FloatSetStackSizeInternal done: .leave ret Intel80X87SetStackSize endp public Intel80X87SetStackSize COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Minus1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: put a negative one on the fp stack CALLED BY: GLOBAL PASS: nothing RETURN: return carry set on overflow ax = error information if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Minus1 proc far .enter mov ax, 1 call FloatHardwareEnter jc done fld1 fchs dec ax ; (ax still 1) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Minus1 endp public Intel80X87Minus1 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87MinusPoint5 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: put a -.5 on the fp stack CALLED BY: GLOBAL PASS: nothing RETURN: return carry set on overflow ax = error information if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ int87PointFive dword 0x3f000000 Intel80X87MinusPoint5 proc far .enter mov ax, 1 call FloatHardwareEnter jc done fld cs:[int87PointFive] fchs dec ax ; (ax still 1) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87MinusPoint5 endp public Intel80X87MinusPoint5 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87LoadFPUConst %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Co-routine to load a constant that's stored in the coprocessor. CALLED BY: (INTERNAL) PASS: nothing RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 1/13/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87LoadFPUConst proc near push bp mov bp, sp push ax mov ax, 1 call FloatHardwareEnter jc done push cs call {word}ss:[bp+2] clr ax call FloatHardwareLeave done: pop ax pop bp inc sp inc sp retf Intel80X87LoadFPUConst endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Zero %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: put a zero on the fp stack CALLED BY: GLOBAL PASS: nothing RETURN: return carry set on overflow ax = error information if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Zero proc far call Intel80X87LoadFPUConst fldz ret Intel80X87Zero endp public Intel80X87Zero COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Point5 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: put a .5 on the FP stack CALLED BY: GLOBAL PASS: nothing RETURN: carry set on overflow ax = error information if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Point5 proc far .enter mov ax, 1 call FloatHardwareEnter jc done fld cs:[int87PointFive] dec ax ; (ax still 1) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Point5 endp public Intel80X87Point5 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87One %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: put a 1 on the fp stack CALLED BY: GLOBAL PASS: nothing RETURN: carry set on overflow ax = error information if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87One proc far call Intel80X87LoadFPUConst fld1 ret Intel80X87One endp public Intel80X87One COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87LoadIntConst %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Load an integer constant onto the FP stack CALLED BY: (INTERNAL) PASS: at return address: word constant to load RETURN: carry set on overflow: ax = error code carry clear if ok: ax = destroyed constant on stack RETURNS TO CALLER'S CALLER DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 1/12/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87LoadIntConst proc near on_stack retn pop ax on_stack ret=ax push bx mov_tr bx, ax on_stack ret=bx mov ax, 1 call FloatHardwareEnter jc done fild {word}cs:[bx] dec ax ; (ax still 0) call Intel80X87CheckNormalNumberAndLeave done: pop bx retf Intel80X87LoadIntConst endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Two %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: put a two on the fp stack CALLED BY: GLOBAL PASS: nothing RETURN: carry set on overflow ax = error information if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Two proc far call Intel80X87LoadIntConst .unreached int87Two word 2 Intel80X87Two endp public Intel80X87Two COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Five %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: put a five on the fp stack CALLED BY: GLOBAL PASS: nothing RETURN: carry set on overflow ax = error information if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Five proc far call Intel80X87LoadIntConst .unreached word 5 Intel80X87Five endp public Intel80X87Five COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Ten %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: put a ten on the fp stack CALLED BY: GLOBAL PASS: nothing RETURN: carry set on overflow ax = error information if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Ten proc far call Intel80X87LoadIntConst .unreached int87Ten word 10 Intel80X87Ten endp public Intel80X87Ten COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87_3600 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: put a 3600 on the fp stack CALLED BY: GLOBAL PASS: nothing RETURN: carry set on overflow ax = error information if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87_3600 proc far call Intel80X87LoadIntConst .unreached word 3600 Intel80X87_3600 endp public Intel80X87_3600 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87_16384 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: put a 16384 pn the fp stack CALLED BY: GLOBAL PASS: nothing RETURN: carry set on overflow ax = error information if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87_16384 proc far call Intel80X87LoadIntConst .unreached word 16384 Intel80X87_16384 endp public Intel80X87_16384 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87_86400 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: put a 86400 on the fp stack CALLED BY: GLOBAL PASS: nothing RETURN: carry set on overflow ax = error information if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ eightysixThousandFourHundred dword 86400 Intel80X87_86400 proc far .enter mov ax, 1 call FloatHardwareEnter jc done fild cs:[eightysixThousandFourHundred] dec ax ; (ax still 1) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87_86400 endp public Intel80X87_86400 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Abs %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = abs(st) CALLED BY: GLOBAL PASS: nothing RETURN: Void. DESTROYED: nothing PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Abs proc far uses ax .enter clr ax call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fabs call FloatHardwareLeave ; (ax still 0) done: .leave ret Intel80X87Abs endp public Intel80X87Abs COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Add %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = st + st(1) CALLED BY: GLOBAL PASS: nothing RETURN: carry set if any bad values ax = error information if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Add proc far .enter clr ax call FloatHardwareEnter jc done EC < call Intel80X87Check2Args > fadd dec ax ; ax <- -1 (one value popped) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Add endp public Intel80X87Add COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87ArcCos %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = arccos(st) CALLED BY: GLOBAL PASS: nothing RETURN: carry set if st a NAN or infinity ax = error information if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: ; the hardware only does an arctan so we must convert ; arccos(x) = arctan(sqrt((1-x^2)/x^2)) KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87ArcCos proc far .enter mov ax, 2 call FloatHardwareEnter jc done ; compute the arcsin call Intel80X87ArcSinInternal ; arccos(x) = pi/2 - arcsin(x)... fldpi fidiv cs:[int87Two] fsubrp neg ax ; (ax still 2) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87ArcCos endp public Intel80X87ArcCos COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87ArcCosh %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = arccosh(st) CALLED BY: GLOBAL PASS: nothing RETURN: carry set if NAN or infinity ax = error information if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: ; the hardware only does ln, so convert ;arccosh(x) = ln(x+sqrt(x^2 - 1)) KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87ArcCosh proc far .enter mov ax, 2 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fld st fmul st ; st <- st^2 fld1 fsubp ; st <- st^2-1 fsqrt faddp ; st <- x+sqrt(x^2 - 1) fldln2 fxch st(1) fyl2x neg ax ; (ax still 2) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87ArcCosh endp public Intel80X87ArcCosh COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87ArcTanInternal %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: do an partial arctan making sure both args are positive CALLED BY: GLOBAL PASS: nothing RETURN: Void. DESTROYED: Nada. PSEUDOCODE/STRATEGY: if neither or both args rae positive just do it else do it to the absolute values and change the sign of the answer KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 3/12/93 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87ArcTanInternal proc near uses bx, ax .enter clr bx ftst StatusToAX test ax, mask SW_CONDITION_CODE_0 ; see if its negative jz tstTwo fabs inc bx tstTwo: fxch ftst StatusToAX test ax, mask SW_CONDITION_CODE_0 ; see if its negative jz unswap fabs dec bx unswap: fxch fpatan tst bx jz done fchs done: .leave ret Intel80X87ArcTanInternal endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87ArcSinInternal %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Compute the arcsin of st CALLED BY: (INTERNAL) Intel80X87ArcSin, Intel80X87ArcCos PASS: st = number of which to take arcsin 2 slots in fpu stack reserved RETURN: st = arcsin(st) DESTROYED: nothing SIDE EFFECTS: none PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 1/13/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87ArcSinInternal proc near .enter EC < call Intel80X87Check1Arg > fld st ; (fp: x x) fmul st, st(1) ; (fp: x x^2) fld1 ; (fp: x x^2 1) fsubrp ; (fp: x 1-x^2) fsqrt ; (fp: x sqrt(1-x^2)) call Intel80X87ArcTanInternal ; fpatan ; (fp: arctan(x/sqrt(1-x^2))) .leave ret Intel80X87ArcSinInternal endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87ArcSin %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = arcsin(st) CALLED BY: GLOBAL PASS: nothing RETURN: carry set if NAN or infinity ax = error information if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: arcsin(x) = arctan(x/sqrt(1-x^2)) the fpatan instruction nicely performs the divide for us, so take advantage of it by saving x, then computing just sqrt(1-x^2) and using fpatan KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87ArcSin proc far .enter mov ax, 2 call FloatHardwareEnter jc done call Intel80X87ArcSinInternal neg ax ; (ax still 2) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87ArcSin endp public Intel80X87ArcSin COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87ArcSinh %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = arcsinh(st) CALLED BY: GLOBAL PASS: nothing RETURN: carry set if NAN or infinity ax = error information if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: ; arcsinh(x) = ln(x+sqrt(x^2+1)) KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87ArcSinh proc far .enter mov ax, 2 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fld st ; FloatDup fmul st, st(1) ; FloatSqr fld1 faddp ; x x^2+1 fsqrt faddp ; x+sqrt(x^2+1) fldln2 ; now figure the natural log of that fxch st(1) fyl2x neg ax ; (ax still 2) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87ArcSinh endp public Intel80X87ArcSinh COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87ArcTan %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = arctan(st) CALLED BY: GLOBAL PASS: nothing RETURN: carry set if NAN or infinity ax = error information if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87ArcTan proc far .enter mov ax, 1 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fld1 call Intel80X87ArcTanInternal ; fpatan neg ax ; (ax still 1) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87ArcTan endp public Intel80X87ArcTan COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87ArcTan2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = arctan(st(1)/st) CALLED BY: GLOBAL PASS: nothing RETURN: carry set if NAN or infinity ax = error information if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: x y result --- --- --------- + + 0 to PI/2 - + PI/2 to PI - - -PI to -PI/2 + - -PI/2 to 0 KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87ArcTan2 proc far uses bx, cx .enter clr ax mov cx, ax ; cx will be the quadrant call FloatHardwareEnter jc done EC < call Intel80X87Check2Args > fxch ; must match software interface ; we need to check the four cases so as to return an answer in the ; proper quadrant ftst StatusToAX mov_tr bx, ax ; save status in bx fxch ftst StatusToAX fxch ; swap back test bx, mask SW_CONDITION_CODE_0 jnz xneg test ax, mask SW_CONDITION_CODE_0 jnz xpos_yneg ; ok, both non-negative, if both zero return error test bx, mask SW_CONDITION_CODE_3 jz arcTan test ax, mask SW_CONDITION_CODE_3 jz arcTan fdivp ; creates an error value on the stack jmp leaveHardware xpos_yneg: mov cx, 3 ; 3rd quadrant jmp arcTan xneg: test ax, mask SW_CONDITION_CODE_0 jnz xneg_yneg ; xneg_ypos mov cx, 1 jmp arcTan xneg_yneg: mov cx, 2 arcTan: call Intel80X87ArcTanInternal jcxz leaveHardware cmp cx, 1 jne try2 fldpi faddp ; add PI to get into proper quadrant jmp leaveHardware try2: cmp cx, 2 jne leaveHardware ; if in last quadrant, answer already OK fldpi fsubp ; subract PI to get into proper quadrant jmp leaveHardware leaveHardware: mov ax, -1 call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87ArcTan2 endp public Intel80X87ArcTan2 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87ArcTanh %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = arctanh(st) CALLED BY: GLOBAL PASS: nothing RETURN: carry set on NAN or infinity ax = error information if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: ; arctanh(x) = ln((1+x)/(1-x))/2 KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87ArcTanh proc far .enter mov ax, 1 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fld1 fxch fsub st(1), st ; ( 1-x x ) fld1 faddp ; ( 1-x 1+x ) fdivrp ; ( 1+x/1-x ) fldln2 fxch st(1) fyl2x ; ( ln(1-x/1+x) ) fild cs:[int87Two] ; divide that by 2 fdivp neg ax ; (ax still 1) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87ArcTanh endp public Intel80X87ArcTanh COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87CompAndDrop %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: compare st(1), st CALLED BY: GLOBAL PASS: X1, X2 on the fp stack (X2 = top) RETURN: flags set by what you may consider to be a cmp X1,X2 both numbers are popped off DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87CompAndDrop proc far .enter clr ax call FloatHardwareEnter jc done EC < call Intel80X87Check2Args > fxch fcompp StatusToAX push ax mov ax, -2 call FloatHardwareLeave pop ax call Intel80X87DoFlags done: .leave ret Intel80X87CompAndDrop endp public Intel80X87CompAndDrop COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Comp %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: compare st, st(1) CALLED BY: GLOBAL PASS: X1, X2 on the fp stack (X2 = top) RETURN: flags set by what you may consider to be a cmp X1,X2 numbers are left intact DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Comp proc far .enter clr ax call FloatHardwareEnter jc done EC < call Intel80X87Check2Args > fxch fcom StatusToAX fxch push ax clr ax call FloatHardwareLeave pop ax call Intel80X87DoFlags done: .leave ret Intel80X87Comp endp public Intel80X87Comp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87CompESDI %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: compare the top number on the fp stack to a floating point number located as es:di CALLED BY: GLOBAL PASS: nothing RETUN: if ax = 0, regs set as if a normal compare was done else error DESTROYED: ax PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/30/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87CompESDI proc far .enter mov ax, 1 ; need one slot call FloatHardwareEnter jc done fld {FloatNum}es:[di] ; push the beast fcomp StatusToAX call Intel80X87DoFlags pushf mov ax, -1 call FloatHardwareLeave clr ax popf done: .leave ret Intel80X87CompESDI endp public Intel80X87CompESDI COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Cosh %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = cosh(st) CALLED BY: GLOBAL PASS: nothing RETURN: carry set on NAN or infinity ax = error information if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: ; cosh(x) = (exp(x) + exp(-x)) /2 KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Cosh proc far .enter mov ax, 2 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fldl2e fmulp call Intel80X87_2ToTheX ; ( e^x ) fld1 ; ( e^x 1 ) fld st(1) ; ( e^x 1 e^x ) fdivp ; ( e^x 1/e^x ) faddp ; ( e^x+1/e^x ) fild cs:[int87Two] ; ( e^x+1/e^x 2 ) fdivp neg ax ; (ax still 2) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Cosh endp public Intel80X87Cosh COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Depth %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: get the stack depth CALLED BY: GLOBAL PASS: nothing RETURN: ax = depth DESTROYED: nothing PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/22/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Depth proc far uses cx .enter clr ax call FloatHardwareEnter jc done call FloatGetStackDepth clr cx xchg ax, cx call FloatHardwareLeave xchg ax, cx done: .leave ret Intel80X87Depth endp public Intel80X87Depth COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87DIV %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: do an integer divide (ie divide and truncate) CALLED BY: GLOBAL PASS: nothing RETURN: carry set on NAN or infinity ax = error information if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/22/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87DIV proc far .enter clr ax call FloatHardwareEnter jc done EC < call Intel80X87Check2Args > fdiv call Intel80X87TruncInternal dec ax ; 1 popped (ax still 0) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87DIV endp public Intel80X87DIV COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87CheckNormalNumberAndLeave %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: sees if a number is normal or not CALLED BY: GLOBAL PASS: number to check on top of FP stack RETURN: carry set on a NON normal number al = FloatErrorType DESTROYED: Nada. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: from The Processor and CoProcessor page 715: condition flags: c3 c2 c1 c0 0 0 0 0 +Unnormal 0 0 1 0 -Unnormal 0 0 0 1 +Nan 0 0 1 1 -Nan 0 1 0 0 +Normal 0 1 1 0 -Normal 0 1 0 1 +INFINITY 0 1 1 1 -INFINITY 1 0 0 0 +0.0 1 0 1 0 -0.0 1 0 0 1 Empty 1 0 1 1 Empty 1 1 0 0 +Denormal 1 1 1 0 -Denormal 1 1 0 1 Empty 8087, 80187 only 1 1 1 1 Empty 8087, 80187 only REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 9/14/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87CheckNormalNumberAndLeave proc far uses bx .enter mov_tr bx, ax fxam StatusToAX test ax, mask SW_CONDITION_CODE_3 jnz c3_on test ax, mask SW_CONDITION_CODE_2 jz genErr test ax, mask SW_CONDITION_CODE_0 jz normal test ax, mask SW_CONDITION_CODE_1 jz posINF mov al, FLOAT_NEG_INFINITY jmp notNormal posINF: mov al, FLOAT_POS_INFINITY jmp notNormal c3_on: test ax, mask SW_CONDITION_CODE_2 jnz genErr test ax, mask SW_CONDITION_CODE_0 jnz genErr normal: clc done: pushf xchg ax, bx call FloatHardwareLeave mov_tr ax, bx popf .leave ret genErr: mov al, FLOAT_GEN_ERR notNormal: stc jmp done Intel80X87CheckNormalNumberAndLeave endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Divide %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = st(1) / st CALLED BY: GLOBAL PASS: nothing RETURN: carry set on NAN or infinity ax = error info in carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Divide proc far .enter clr ax call FloatHardwareEnter jc done EC < call Intel80X87Check2Args > fdiv dec ax ; one popped (ax still 0) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Divide endp public Intel80X87Divide COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Divide2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = st/2 CALLED BY: GLOBAL PASS: nothing RETURN: carry set on NAN or infinity DESTROYED: nothing PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Divide2 proc far uses ax .enter mov ax, 1 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fild cs:[int87Two] fdivp neg ax ; (ax still 1) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Divide2 endp public Intel80X87Divide2 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Divide10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = st/10 CALLED BY: GLOBAL PASS: nothing RETURN: carry set on NAN or infinity ax = error info if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Divide10 proc far .enter mov ax, 1 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fild cs:[int87Ten] fdivp neg ax ; (ax still 1) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Divide10 endp public Intel80X87Divide10 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Drop %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: pop off top of fp stack CALLED BY: GLOBAL PASS: nothing RETURN: nothing DESTROYED: nothing (flags preserved) PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/22/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Drop proc far uses ax .enter pushf clr ax call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fstp st dec ax ; (ax still 0) call FloatHardwareLeave done: popf .leave ret Intel80X87Drop endp public Intel80X87Drop COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Dup %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: duplicate the top of the fp stack CALLED BY: GLOBAL PASS: nothing RETURN: carry set on overflow DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Dup proc far .enter mov ax, 1 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fld st clr ax call FloatHardwareLeave done: .leave ret Intel80X87Dup endp public Intel80X87Dup COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Eq0 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: compare the top of the fp stack to zero CALLED BY: GLOBAL PASS: nothing RETURN: flags set to appropriate values should check jp first, if on non comparable DESTROYED: nothing PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Eq0 proc far status local word uses ax .enter mov ax, 0 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > ftst fstsw status fstp st ; pop the number dec ax ; (ax still 0) call FloatHardwareLeave mov ax, status sahf stc je done clc done: .leave ret Intel80X87Eq0 endp public Intel80X87Eq0 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Exp %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = e^st CALLED BY: GLOBAL PASS: nothing RETURN: return carry in result NAN or Infinity DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/22/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Exp proc far .enter mov ax, 1 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fldl2e fmulp call Intel80X87_2ToTheX neg ax ; (ax still 1) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Exp endp public Intel80X87Exp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Exponential %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = st(1)^st CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error ax = error info if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: st(1)^st = 2^(st*lg(st(1))) if the base is a negative number then the exponent must be an integer... if the base is zero we must also have it as a special case KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/22/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Exponential proc far temp local word .enter mov ax, 2 call FloatHardwareEnter jc done EC < call Intel80X87Check2Args > fxch ; st = base, st(1) = exponent ftst StatusToAX test ax, mask SW_CONDITION_CODE_2 jnz error ; => it's NaN or test ax, mask SW_CONDITION_CODE_0 ; is it negative jnz doBaseNegative test ax, mask SW_CONDITION_CODE_3 jnz doBaseZero fyl2x call Intel80X87_2ToTheX done: mov ax, -3 ; call Intel80X87CheckNormalNumberAndLeave exit: .leave ret error: ; on an error we still need to clean up and release the coprocessor mov ax, -3 call FloatHardwareLeave mov ax, FLOAT_GEN_ERR stc jmp exit doBaseZero: ; if the exponent is a NAN or negative report an error ; if the exponent is 0, the result is 1 ; if the exponent is > 0 then the result is zero fxch ftst StatusToAX test ax, mask SW_CONDITION_CODE_2 or mask SW_CONDITION_CODE_0 jnz error ; => it's NaN or test ax, mask SW_CONDITION_CODE_3 ; is it zero jnz doOne fstp st fstp st fldz ; 0^X for X > 0 = 0 jmp done doOne: fstp st fstp st fld1 ; load 1 onto the stack jmp done doBaseNegative: fxch ; get the exponent back on top ; if the base is negative, then the exponent must be an integer fld st ; dupluicate frndint ; round the number and see ifs equal fcomp ; comapare and pop off extra value StatusToAX test ax, mask SW_CONDITION_CODE_2 jnz error test ax, mask SW_CONDITION_CODE_3 jz error ; what needs to happen here is that we do a x^y with negative x ; and then just change the sign of the final answer depending on ; whether y was even or odd... fld st mov temp, 2 fild temp fdivp ; divide by two and see if we get an integer fld st frndint fcompp StatusToAX mov temp, ax ; save away fxch ; unswap things fchs ; change the sign to positive fyl2x call Intel80X87_2ToTheX test temp, mask SW_CONDITION_CODE_3 jnz done fchs jmp done Intel80X87Exponential endp public Intel80X87Exponential COMMENT @----------------------------------------------------------------------- FUNCTION: Intel80X87FloatToAscii DESCRIPTION: Converts the floating point number into an ASCII string. This routine requires that you initialize the FFA_stackFrame. CALLED BY: GLOBAL () PASS: ss:bp - FFA_stackFrame stack frame es:di - destination address of string this buffer must either be FLOAT_TO_ASCII_NORMAL_BUF_LEN or FLOAT_TO_ASCII_HUGE_BUF_LEN in size (see math) If FFA_stackFrame.FFA_FROM_ADDR = 1 ds:si - location of number to convert NOTE: ----- * Numbers are rounded away from 0. eg. if number of fractional digits desired = 1, 0.56 will round to 1 -0.56 will round to -1 * Commas only apply to the integer portion of fixed and percentage format numbers. ie. scientific formats, the fractional and exponent portions of numbers will have no commas even if FFAF_USE_COMMAS is passed. RETURN: cx - number of characters in the string (excluding the null terminator) some useful fields in the stack frame, see math.def DESTROYED: nothing REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: FloatFloatToAscii is a big body of code! A FloatFloatToAsciiFixed routine exists to format fixed format numbers quickly. Some demands may exceed its ability, so once this is detected, it bails and the generalized (& significantly slower) FloatFloatToAscii routine takes over. KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/92 Initial version -------------------------------------------------------------------------------@ Intel80X87FloatToAscii proc far FFA_local local FFA_stackFrame .enter inherit far push ax, bx, ds, si mov ax, 0 call FloatHardwareEnter jc done sub sp, size FloatNum test FFA_local.FFA_float.FFA_params.formatFlags, mask FFAF_FROM_ADDR jnz cont mov bx, sp fstp {FloatNum}ss:[bx] fwait segmov ds, ss, si mov si, sp or FFA_local.FFA_float.FFA_params.formatFlags, mask FFAF_FROM_ADDR mov ax, -1 cont: call FloatFloatToAsciiInternal add sp, size FloatNum call FloatHardwareLeave done: pop ax, bx, ds, si .leave ret Intel80X87FloatToAscii endp public Intel80X87FloatToAscii COMMENT @----------------------------------------------------------------------- FUNCTION: Intel80X87FloatToAscii_StdFormat DESCRIPTION: Converts the floating point number into an ASCII string in the format specified by al. This routine provides a way to obtain an ASCII string from a floating point number without having to deal with the FFA_stackFrame. !!! NOTE !!! Rounding is based on decimalDigits and not total Digits. CALLED BY: GLOBAL () PASS: ax - FloatFloatToAsciiFormatFlags Flags permitted: FFAF_FROM_ADDR - source of number If FFAF_FROM_ADDR=1, Use the number at the given address ds:si - location If FFAF_FROM_ADDR=0, Use number from the fp stack. Number will be popped FFAF_SCIENTIFIC - scientific format If FFAF_SCIENTIFIC=1, Returns numbers in the form x.xxxE+xxx in accordance with bh and bl Numbers are normalized ie. the mantissa m satisfies 1 <= m < 10 If FFAF_SCIENTIFIC=0, Returns numbers in the form xxx.xxx in accordance with bh and bl FFAF_PERCENT - percentage format Returns numbers in the form xxx.xxx% in accordance with bh and bl FFAF_USE_COMMAS FFAF_NO_TRAIL_ZEROS bh - number of significant digits desired (>=1) (A significant digit is a decimal digit derived from the floating point number's mantissa and it may preceed or follow a decimal point). Fixed format numbers that require more digits than limited will be forced into scientific notation. bl - number of fractional digits desired (ie. number of digits following the decimal point) es:di - destination address of string this buffer must either be FLOAT_TO_ASCII_NORMAL_BUF_LEN or FLOAT_TO_ASCII_HUGE_BUF_LEN in size (see math.def) NOTE: ----- * Numbers are rounded away from 0. eg. if number of fractional digits desired = 1, 0.56 will round to 1 -0.56 will round to -1 * Commas only apply to the integer portion of fixed and percentage format numbers. ie. scientific formats, the fractional and exponent portions of numbers will have no commas even if FFAF_USE_COMMAS is passed. RETURN: cx - number of characters in the string (excluding the null terminator) DESTROYED: nothing REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: if from address than just call the routine otherwise take the top of the hardware stack put in memory and then call the routine KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/92 Initial version -------------------------------------------------------------------------------@ Intel80X87FloatToAscii_StdFormat proc far myfloat local FloatNum doLeave local word uses ds, si, ax .enter clr doLeave test ax, mask FFAF_FROM_ADDR jnz cont mov doLeave, 1 push ax clr ax call FloatHardwareEnter pop ax jc done fstp myfloat segmov ds, ss, si lea si, myfloat or ax, mask FFAF_FROM_ADDR fwait cont: call FloatFloatToAscii_StdFormatInternal tst doLeave jz done mov ax, -1 call FloatHardwareLeave done: .leave ret Intel80X87FloatToAscii_StdFormat endp public Intel80X87FloatToAscii_StdFormat COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Factorial %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = st! CALLED BY: GLOBAL PASS: nothing RETURN: Void. DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/22/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Factorial proc far myint32 local dword uses cx .enter mov ax, 2 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fistp myint32 fwait tst myint32.high jnz error mov ax, myint32.low cmp ax, FACTORIAL_LIMIT jg error tst ax jnz cont fld1 jmp checkStatus cont: mov cx, ax call Intel80X87DoFactorial checkStatus: mov ax, -2 call Intel80X87CheckNormalNumberAndLeave done: .leave ret error: call Intel80X87Err jmp checkStatus Intel80X87Factorial endp public Intel80X87Factorial COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87DoFactorial %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: do the actual factorial function CALLED BY: INTERNAL PASS: cx = integer form of value on top of stack RETURN: Void. DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/22/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87DoFactorial proc near .enter fld1 ; partial result fld1 ; start from 1 factorialloop: fmul st(1) ; st(1) = partial result fld1 ; st += 1 faddp loop factorialloop fstp st ; get rid of temp value .leave ret Intel80X87DoFactorial endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Frac %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = fractionalpart(st) CALLED BY: GLOBAL PASS: nothing RETURN: carry set on bad value ax = error info if bad value DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/22/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Frac proc far .enter mov ax, 1 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fld st call Intel80X87TruncInternal fsubp fabs neg ax ; (ax still 1) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Frac endp public Intel80X87Frac COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87GetNumDigitsInIntegerPart %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: get number of digits of integer part on number on fp stack number gets pooped off CALLED BY: GLOBAL PASS: nothing RETURN: ax = number of digits in integer part DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/22/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87GetNumDigitsInIntegerPart proc far myfloat local FloatNum uses bx, es, ds, si .enter clr ax call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > call FloatGetSoftwareStackHandle call MemLock mov es, ax fstp myfloat segmov ds, ss, si lea si, myfloat fwait call FloatPushNumberInternal segmov ds, es ; ds <- FP stack call FloatGetNumDigitsInIntegerPartInternal call MemUnlock push ax mov ax, -1 call FloatHardwareLeave pop ax done: .leave ret Intel80X87GetNumDigitsInIntegerPart endp public Intel80X87GetNumDigitsInIntegerPart COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Gt0 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: test top of fp stack against zero CALLED BY: GLOBAL PASS: nothing RETURN: flags set to appropriate values DESTROYED: nothing PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/22/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Gt0 proc far status local word uses ax .enter clr ax call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > ftst fstsw status fstp st dec ax ; (ax still 0) call FloatHardwareLeave jc done mov ax, status sahf cmc ; invert the sense (was set if neg, clear if non-neg) jne done ; this means we have to deal with eq 0 specially... clc ; it ain't > 0 done: .leave ret Intel80X87Gt0 endp public Intel80X87Gt0 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Int %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = INT(st) CALLED BY: GLOBAL PASS: nothing RETURN: Void. DESTROYED: ax. PSEUDOCODE/STRATEGY: round towards -Infinity so: 6.7 -> 6 -6.7 -> -7 KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/22/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Int proc far control local word .enter clr ax call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fstcw control fwait ; wait for it to arrive mov ax, control andnf ax, not mask CW_ROUND_CONTROL ornf ax, RC_DOWN shl offset CW_ROUND_CONTROL mov control, ax fldcw control frndint call Intel80X87SetNearest clr ax call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Int endp public Intel80X87Int COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87IntFrac %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: leaves integer and fractional part of top of fp stack on the fp stack CALLED BY: GLOBAL PASS: nothing RETURN: Void. DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/22/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87IntFrac proc far .enter mov ax, 1 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fld st call Intel80X87TruncInternal fsub st(1), st ; st(1) <- frac fxch st(1) ; st <- frac, st(1) <- int fabs clr ax call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87IntFrac endp public Intel80X87IntFrac COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Inverse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = 1/st CALLED BY: GLOBAL PASS: nothing RETURN: carry set on bad values ax = error info if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/22/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Inverse proc far mov ax, 1 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fld1 fdivrp neg ax ; (ax still 1) call Intel80X87CheckNormalNumberAndLeave done: ret Intel80X87Inverse endp public Intel80X87Inverse COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Lg %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = lg(st) CALLED BY: GLOBAL PASS: nothing RETURN: carry set on bad values ax = error info if carry set DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/22/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Lg proc far mov ax, 1 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fld1 fxch st(1) fyl2x neg ax ; (ax still 1) call Intel80X87CheckNormalNumberAndLeave done: ret Intel80X87Lg endp public Intel80X87Lg COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Lg10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = lg(10) CALLED BY: GLOBAL PASS: nothing RETURN: Void. DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/22/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Lg10 proc far call Intel80X87LoadFPUConst fldl2t ret Intel80X87Lg10 endp public Intel80X87Lg10 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Ln %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = ln(st) CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error DESTROYED: ax PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Ln proc far .enter mov ax, 1 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fldln2 fxch st(1) fyl2x neg ax call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Ln endp public Intel80X87Ln COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Ln1plusX %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = ln(st+1) CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error DESTROYED: ax PSEUDOCODE/STRATEGY: used to use the fyl2xp1 instruction, but its domain is too restrictive (-(1-sqrt(2)/2) <= st <= sqrt(2)-1), so we just perform the addition and take the natural log in the usual way. KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Ln1plusX proc far .enter mov ax, 1 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fld1 faddp fldln2 fxch st(1) fyl2x neg ax call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Ln1plusX endp public Intel80X87Ln1plusX COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Ln2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = ln(2) CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error DESTROYED: ax PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Ln2 proc far call Intel80X87LoadFPUConst fldln2 ret Intel80X87Ln2 endp public Intel80X87Ln2 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Ln10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: put a ln(10) on the fp stack CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error DESTROYED: ax PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Ln10 proc far .enter mov ax, 2 call FloatHardwareEnter jc done fldln2 fldl2t fmulp mov ax, -1 call FloatHardwareLeave done: .leave ret Intel80X87Ln10 endp public Intel80X87Ln10 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Log %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = log(st) CALLED BY: GLOBAL PASS: nothing RETURN: Void. DESTROYED: Nada. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Log proc far .enter mov ax, 1 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fldlg2 fxch st(1) fyl2x neg ax ; (ax still 1) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Log endp public Intel80X87Log COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Lt0 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: sees if top of fp stack is less than zero CALLED BY: GLOBAL PASS: nothing RETURN: carry set if true, clear if otherwise top of stack popped off DESTROYED: nothing PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/21/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Lt0 proc far status local word uses ax .enter clr ax call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > ftst fstsw status fstp st ; pop the number dec ax ; (ax still 0) call FloatHardwareLeave mov ax, status sahf jb done ; => negative (carry already set) clc done: .leave ret Intel80X87Lt0 endp public Intel80X87Lt0 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Max %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: do max of top two stack elements CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error DESTROYED: ax PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Max proc far .enter clr ax call FloatHardwareEnter jc exit EC < call Intel80X87Check2Args > fcom StatusToAX sahf jp error jb dropTop fxch dropTop: fstp st clc done: mov ax, -1 call Intel80X87CheckNormalNumberAndLeave exit: .leave ret error: stc jmp done Intel80X87Max endp public Intel80X87Max COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Min %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: takes min of top two elements of fp stack CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error DESTROYED: ax PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Min proc far .enter clr ax call FloatHardwareEnter jc exit EC < call Intel80X87Check2Args > fcom StatusToAX sahf jp error ja dropTop fxch dropTop: fstp st clc done: mov ax, -1 call Intel80X87CheckNormalNumberAndLeave exit: .leave ret error: stc jmp done Intel80X87Min endp public Intel80X87Min COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FUNCTION: Float2Scale (originally /2SCALE) DESCRIPTION: Multiply the topmost fp num by the given factor of 2. ( N --- )( fp: X --- X*2^N ) CALLED BY: INTERNAL (FloatSqrt, FloatExpC, FloatExp) PASS: bx - factor of 2 to multiply number by X on fp stack RETURN: X*2^N on fp stack DESTROYED: nothing REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87_2Scale proc near factor local word push bx .enter EC< call Intel80X87Check1Arg > fild ss:[factor] fxch fscale fstp st(1) ; pop st(1) (the scale factor) .leave ret Intel80X87_2Scale endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FUNCTION: FloatSign (originally /FSIGN) DESCRIPTION: Returns the exponent of the topmost fp number. This exponent has these convenient properties: * positive if the number is positive * 0 if the number is zero (+ or - 0) * negative if the number is negative ( fp: X --- X ) CALLED BY: INTERNAL (many) PASS: X on fp stack ds - fp stack seg RETURN: X unchanged on fp stack bx - negative if fp number is negative non-negative otherwise flags set by a "cmp bx, 0" DESTROYED: nothing REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Sign proc near myfloat local FloatNum uses si .enter EC< call Intel80X87Check1Arg > fstp myfloat fld myfloat mov bx, myfloat.F_exponent ; get exponent cmp bx, 8000h ; negative 0? jne done clr bx ; change -0 to 0 done: cmp bx, 0 fwait ; make sure FPU done with myfloat before ; destroying it .leave ret Intel80X87Sign endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Mod %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = MOD(st, ST(1)) CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error DESTROYED: Nada. PSEUDOCODE/STRATEGY: the algorithm is effectively: for (n = exponent(div)-exponent(mod); n >= 0; n--) { if (div >= mod*2**n) { div -= mod*2**n; } } KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/27/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Mod proc far uses di, bx, cx .enter mov ax, 2 ; need two extra slots (one for copy of ; mod, and one for 2Scale) call FloatHardwareEnter jc done EC < call Intel80X87Check2Args > ; ; Fetch exponent of modulus after making modulus non-negative. ; fabs call Intel80X87Sign je cleanStack ; error if exponent (i.e. modulus) is 0 ; ; Fetch exponent of dividend, saving the sign away for proper ; adjustment of the result. ; ; NOTE: in these comments exp(x) means the exponent word of the number ; x, not e^x. ; mov cx, bx ; cx <- exp(abs(X2)) fxch call Intel80X87Sign mov di, bx ; di <- exp(X1) fabs andnf bx, not mask FE_SIGN ; bx <- exp(abs(X1)) ; ; bx = exp(abs(X1)), di = exp(X1), cx = exp(abs(X2)) ; cmp cx, bx ; X2 > X1 ? jg modGotten ; branch if so (X1/X2 < 1, so X1 is ; remainder) ; ; cx <= bx, exp(abs(X2)) <= exp(abs(X1)) ; sub cx, bx neg cx modLoop: fld st(1) mov bx, cx call Intel80X87_2Scale ; scale modulus by 2^n fcom ; cmp mod*2^n, div StatusToAX sahf jbe doSub ; subtract mod*2^n from div if it's ; less than div. results are fstp st ; else discard scaled modulus jmp over ; and loop doSub: fsub over: dec cx cmp cx, 0 jge modLoop modGotten: tst di ; exp X1 < 0 ? jge signOK fchs signOK: fxch fstp st clc done: pushf mov ax, -3 ; extra slots, plus modulus now ; gone call Intel80X87CheckNormalNumberAndLeave jc nonnormal popf exit: .leave ret nonnormal: inc sp inc sp jmp exit cleanStack: fstp st fstp st stc jmp short done Intel80X87Mod endp public Intel80X87Mod COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Multiply %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st(1) = st*st(1) CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 4/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Multiply proc far .enter clr ax call FloatHardwareEnter jc done EC < call Intel80X87Check2Args > fmul dec ax ; (ax still 0) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Multiply endp public Intel80X87Multiply COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Multiply2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = 2 * st CALLED BY: GLOBAL PASS: nothing RETURN: carry set if any problems DESTROYED: nothing PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/29/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Multiply2 proc far uses ax .enter clr ax call FloatHardwareEnter jc done fimul cs:[int87Two] ; (ax still 0) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Multiply2 endp public Intel80X87Multiply2 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Multiply10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = 10*st CALLED BY: GLOBAL PASS: nothing RETURN: carry set if an problems DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/29/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Multiply10 proc far .enter clr ax call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fimul cs:[int87Ten] ; (ax still 0) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Multiply10 endp public Intel80X87Multiply10 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Negate %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = -st CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error DESTROYED: nothing PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Negate proc far uses ax .enter clr ax call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fchs call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Negate endp public Intel80X87Negate COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Over %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: copy the second number on the fp stack onto the top of the fp stack CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error DESTROYED: ax PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Over proc far .enter mov ax, 1 call FloatHardwareEnter jc done EC < call Intel80X87Check2Args > fld st(1) dec ax ; (ax still 1) call Intel80X87CheckNormalNumberAndLeave .leave done: ret Intel80X87Over endp public Intel80X87Over COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Pi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: push pi onto fp stack CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 4/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Pi proc far call Intel80X87LoadFPUConst fldpi ret Intel80X87Pi endp public Intel80X87Pi COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87PiDiv2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: puts a pi/2 on the fp stack CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error DESTROYED: ax PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87PiDiv2 proc far call Intel80X87LoadFPUConst fldpi fidiv cs:[int87Two] ret Intel80X87PiDiv2 endp public Intel80X87PiDiv2 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Pick %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: takes the nth stack element and copies it onto the top of the stack CALLED BY: GLOBAL PASS: bx = which element (n) to select RETURN: carry set on error DESTROYED: ax PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Pick proc far myfloat local FloatNum uses cx, bx .enter EC < tst bx > EC < ERROR_Z MUST_BE_GREATER_THAN_ZERO > EC < call FloatGetStackDepth > EC < cmp bx, ax > EC < ERROR_G INSUFFICIENT_ARGUMENTS_ON_STACK > mov ax, 1 call FloatHardwareEnter jc done cmp bx, INTEL_STACK_SIZE jge getFromSoftware dec bx ; start from 0 shl bx jmp cs:[fpRegisters][bx] reg0: fld st jmp done reg1: fld st(1) jmp done reg2: fld st(2) jmp done reg3: fld st(3) jmp done reg4: fld st(4) jmp done reg5: fld st(5) jmp done reg6: fld st(6) jmp done reg7: fld st(7) done: clr ax call FloatHardwareLeave .leave ret fpRegisters nptr reg0, reg1, reg2, reg3, reg4, reg5, reg6, reg7 getFromSoftware: ; if it's in the software stack, copy it to the top ; of the software stack using FloatPick and ; then pop it off the software stack and push it ; onto the hardware stack push ds, es, di mov cx, bx ; we need to increment cx because we slid one of the numbers down ; from hardware to software to make room for the new one inc cx call FloatGetSoftwareStackHandle call MemLock mov ds, ax sub cx, INTEL_STACK_SIZE xchg bx, cx ; bx <- number to pick, cx = mem handle call FloatPickInternal segmov es, ss lea di, myfloat call FloatPopNumberInternal mov_tr bx, cx ; bx <- mem handle call MemUnlock fld myfloat pop ds, es, di jmp done Intel80X87Pick endp public Intel80X87Pick COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87PopNumber %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: pops the top off of the fp stack CALLED BY: GLOBAL PASS: es:di = location to write number to (10 bytes) RETURN: carry set on error DESTROYED: nothing PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87PopNumber proc far uses ax .enter clr ax call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fstp {FloatNum}es:[di] fwait dec ax ; (ax still 0) call FloatHardwareLeave done: .leave ret Intel80X87PopNumber endp public Intel80X87PopNumber COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87PushNumber %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: push a number onto the fp stack CALLED BY: GLOBAL PASS: ds:si = number to push RETURN: carry set on error DESTROYED: nothing PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87PushNumber proc far uses ax .enter mov ax, 1 call FloatHardwareEnter jc done fld {FloatNum}ds:[si] dec ax ; (ax still 0) call FloatHardwareLeave done: .leave ret Intel80X87PushNumber endp public Intel80X87PushNumber COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Random %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: put a random number on the fp stack CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error DESTROYED: ax PSEUDO CODE/STRATEGY: We want to generate a number such that a list of such generated numbers will satisfy all of the statistical tests that a random sequence would satisfy. Algorithm taken from Knuth Vol 2 Chapter 3 - Random Numbers ----------------------------------------------------------- The linear congruential method: The detailed investigations suggest that the following procedure will generate "nice" and "simple" random numbers. At the beginning of the program, set an integer variable X to some value Xo. This variable X is to be used only for the purpose of random number generation. Whenever a new random number is required by the program, set X <- (aX + c) mod m and use the new value of X as the random value. It is necessary to choose Xo, a, c, and m properly, according to the following principles: 1) The "seed" number Xo may be chosen arbitrarily. We use the current date and time since that is convenient. 2) The number m should be large, say at least 2^30. The computation of (aX + c)mod m must be done exactly, with no roundoff error. 3) If m is a power of 2, pick a so that a mod 8 = 5. If m is a power of 10, choose a so that a mod 200 = 21. The choice of a together with the choice of c given below ensures that the random number generator will produce all m different possible values of X before it starts to repeat and ensures high "potency". 4) The multiplier a should preferably be chosen between 0.01m 0.99m, and its binary or decimal digits should not have a simple regular pattern. By choosing a = 314159261 (which satisfies both of the conditions in 3), one almost always obtains a reasonably good multiplier. There are several tests that can be performed before it is considered to have a truly clean bill of health. 5) The value of c is immaterial when a is a good multiplier, except that c must have no factor in common with m. Thus we may choose c=1 or c=a. 6) The least significant digits of X are not very random, so decisions based on the number X should always be influenced primarily by the most significant digits. It is generally best to think of X as a random fraction between 0 and 1. To compute a random integer between 0 and k-1, one should multiply by k and truncate the result. Implementation notes: --------------------- Desirable properties: * the same seed generates the same sequence of random numbers * 2 different threads accessing the routine will not lose their "place" in the random number sequence. This is important because the property of Uniform Distribution will be adversely affected if one thread's behaviour can alter the next number seen by another thread. This "state" is wholly represented by X since the other parameters a, c, and m are hardwired in the code. The question then is where to save X. We can force the user to preserve X on the floating point stack but that may be inconvenient because the caller will then have to place calls to FloatDup to duplicate the number and pop it off when done. We instead save X in the floating point stack header. This costs 5 words and it seems affordable. KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Random proc far myfloat local FloatNum uses es, bx, di, ds .enter mov ax, 1 call FloatHardwareEnter jc done call FloatGetSoftwareStackHandle call MemLock mov ds, ax call FloatRandomInternal segmov es, ss lea di, myfloat call FloatPopNumberInternal call MemUnlock fld myfloat clr ax call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Random endp public Intel80X87Random COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Randomize %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: Prime the random number generator. The caller may choose to pass a seed or have the routine generate one. If the seed is small ( << 2^32 ), the random number generator needs to be primed before use by calling FloatRandom and discarding the results. CALLED BY: GLOBAL PASS: al - RandomGenInitFlags RGIF_USE_SEED RGIF_GENERATE_SEED cx:dx - seed if RGIF_USE_SEED RETURN: carry set on error DESTROYED: ax PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Randomize proc far uses ds, bx .enter push ax clr ax call FloatHardwareEnter pop ax jc done push ax call FloatGetSoftwareStackHandle call MemLock mov ds, ax pop ax call FloatRandomizeInternal call MemUnlock clr ax call FloatHardwareLeave done: .leave ret Intel80X87Randomize endp public Intel80X87Randomize COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87RandomN %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: returns a random number between 1 and N-1 CALLED BY: GLOBAL PASS: N on fp stack, 0 <= N < 2^31 ds - fp stack seg RETURN: return carry set on error DESTROYED: nothing PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87RandomN proc far myfloat local FloatNum uses es, ds, si, bx, di, ax .enter clr ax call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fstp myfloat fwait call FloatGetSoftwareStackHandle call MemLock mov es, ax segmov ds, ss, si lea si, myfloat call FloatPushNumberInternal mov ds, ax call FloatRandomNInternal segmov es, ss, di lea di, myfloat call FloatPopNumberInternal call MemUnlock fld myfloat clr ax call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87RandomN endp public Intel80X87RandomN COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Roll %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: move Nth element to top of stack CALLED BY: GLOBAL PASS: bx = N (which element to bring up) RETURN: Void. DESTROYED: Nada. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/27/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Roll proc far tempStack local INTEL_STACK_SIZE dup(FloatNum) uses ds, di, cx, es, si, bx .enter EC < pushf > EC < tst bx > EC < ERROR_LE ROLL_MUST_BE_POSITIVE > EC < call FloatGetStackDepth > EC < cmp ax, bx > EC < ERROR_L INSUFFICIENT_ARGUMENTS_ON_STACK > EC < popf > clr ax call FloatHardwareEnter jc done ; if bl <= INTEL_STACK_SIZE we don't have to worry about the ; software stack at all cmp bl, INTEL_STACK_SIZE jg doSoftwareRoll ; only hardware.... ; what I do, is pop off all the relavent elements into memory ; and then push them back on in the right order clr ch mov cl, bl lea di, tempStack add di, FPSIZE ; start at position 1, not 0 dec cx jcxz myleave ; this loop pops the first N-1 elements off and into memory ; and writing them to memory starting from position 1 rather than ; position 0 storeloop: fstp {FloatNum}ss:[di] ; store number add di, FPSIZE ; advance pointer loop storeloop ; now write Nth element in 0 poisition lea di, tempStack fstp {FloatNum}ss:[di] mov al, FPSIZE mul bl add di, ax sub di, FPSIZE mov cl, bl ; because I have popped them off in the right order, I can ; just push them all back on from bottom to top loadloop: fld {FloatNum}ss:[di] ; push number back on sub di, FPSIZE ; advance pointer loop loadloop myleave: clr ax call Intel80X87CheckNormalNumberAndLeave done: .leave ret doSoftwareRoll: ; for the software case, I must do the following ; first pop the bottom of the hardware stack off ; and push it onto the top of the softwares stack ; then do a Roll of (N-(INTELSTACK_SIZE-1)) on the ; software stack, then pop of the top of the software ; stack and push in onto the top of the hardware stack ; trust me, it works...;) mov cx, bx call FloatGetSoftwareStackHandle call MemLock ; lock down the software stack push bx mov es, ax fdecstp ; mov hardware pointer to the bottom fstp {FloatNum}tempStack ; pop off bottom element fwait segmov ds, ss, si lea si, tempStack call FloatPushNumberInternal ; push it onto software stack segxchg ds, es mov bx, cx sub bl, (INTEL_STACK_SIZE - 1) call FloatRollInternal ; Roll software stack lea di, tempStack call FloatPopNumberInternal ; pop off top number fld {FloatNum}tempStack ; push it onto hardware stack pop bx call MemUnlock jmp myleave Intel80X87Roll endp public Intel80X87Roll COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87RollDown %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: to a roll of top N elements (opposite direction of Roll CALLED BY: GLOBAL PASS: bl = N, number of elements to Roll RETURN: Void. DESTROYED: Nada. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/27/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87RollDown proc far tempStack local INTEL_STACK_SIZE dup(FloatNum) uses bx, es, ds, di, si, cx .enter EC < tst bx > EC < ERROR_LE ROLL_MUST_BE_POSITIVE > EC < call FloatGetStackDepth > EC < cmp ax, bx > EC < ERROR_L INSUFFICIENT_ARGUMENTS_ON_STACK > clr ax call FloatHardwareEnter jc done ; if N < the hardware stack size we don't have to deal with ; the software stack at all, just pop off the top N elements ; into memory and then push them back on in the right order cmp bl, INTEL_STACK_SIZE jg doSoftwareRoll cmp bl, 1 je myleave ; do nothing to roll 1 element ; push the first one onto the bottom position in memory ; then push the rest starting from position 0 down to N-2 mov al, FPSIZE mul bl lea di, tempStack add di, ax sub di, FPSIZE ; store the first one at the bottom fstp {FloatNum}ss:[di] lea di, tempStack dec bl clr ch mov cl, bl ; now store the rest on the current order storeloop: fstp {FloatNum}ss:[di] add di, FPSIZE loop storeloop mov cl, bl inc cl ; since we stored them in the right order, we can just push ; them back on in the order they lie in memory starting from the ; bottom loadloop: fld {FloatNum}ss:[di] sub di, FPSIZE loop loadloop myleave: clr ax call Intel80X87CheckNormalNumberAndLeave done: .leave ret doSoftwareRoll: ; for the case in which N > the hardware stack size... ; first pop off the top element, push in onto the software ; stack, RollDown the software stack by (N - (INTEL_STACK_SIZE-1)) ; pop the top element off the software stack and push it onto the ; top of the hardware stack fstp {FloatNum}tempStack ; pop off the top element fwait mov cx, bx call FloatGetSoftwareStackHandle call MemLock ; lock down the software stack push bx mov es, ax segmov ds, ss, si lea si, tempStack call FloatPushNumberInternal ; push old top element onto software segxchg ds, es ; stack mov bx, cx sub bx, (INTEL_STACK_SIZE - 1) call FloatRollDownInternal ; now roll softeware stack lea di, tempStack call FloatPopNumberInternal ; pop top element off of software fld {FloatNum}tempStack ; push it onto hardware stack fincstp pop bx call MemUnlock ; unlock software stack jmp myleave Intel80X87RollDown endp public Intel80X87RollDown COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Rot %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: rotates first three numbers on fp stack CALLED BY: GLOBAL PASS: nothing RETURN: Void. DESTROYED: ax PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 9/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Rot proc far .enter EC < call FloatGetStackDepth > EC < cmp ax, 3 > EC < ERROR_L INSUFFICIENT_ARGUMENTS_ON_STACK > clr ax call FloatHardwareEnter jc done ; start: fp: x1 x2 x3 (x3 = top) fxch ; fp: x1 x3 x2 fxch st(2) ; fp: x2 x3 x1 call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Rot endp public Intel80X87Rot COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Round %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: round off number on top of FP stack CALLED BY: GLOBAL PASS: al = number of decimal places to round to RETURN: carry set on error DESTROYED: ax PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 6/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Round proc far int16 local word push ax .enter mov ax, 2 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > ; now multiply by 10^ax and int16, 00ffh fild int16 ; st = ax fldl2t fmulp call Intel80X87_2ToTheX ; st = 10^ax fxch fld st(1) ; dup 10^ax fmulp ; st = st*10^ax frndint ; round to nearest int fdivrp ; st = st(1)/10^ax mov ax, -2 call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Round endp public Intel80X87Round COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Sinh %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = sinh(st) CALLED BY: GLOBAL PASS: nothing RETURN: carry flag set on error DESTROYED: ax PSEUDOCODE/STRATEGY: ; sinh(x) = (e^x - e^-x)/2 KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Sinh proc far .enter mov ax, 1 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fldl2e fmulp call Intel80X87_2ToTheX fld1 fdivr st, st(1) fsubp fidiv cs:[int87Two] mov ax, -1 call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Sinh endp public Intel80X87Sinh COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Sqr %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = st*st CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error DESTROYED: ax PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Sqr proc far .enter clr ax call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fmul st, st ; (ax still 0) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Sqr endp public Intel80X87Sqr COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Sqrt %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = st^1/2 CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error DESTROYED: ax PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Sqrt proc far .enter clr ax call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fsqrt ; (ax still 0) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Sqrt endp public Intel80X87Sqrt COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Sqrt2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = square root of 2 CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error DESTROYED: nothing PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ int87Sqrt2 FloatNum <0x6485, 0xF9DE, 0xF333, 0xB504, 0x3FFF> Intel80X87Sqrt2 proc far uses ax .enter mov ax, 1 call FloatHardwareEnter jc done fld cs:[int87Sqrt2] clr ax call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Sqrt2 endp public Intel80X87Sqrt2 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87AsciiToFloat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: Given a parsed string, convert it into a floating point number. CALLED BY: GLOBAL () PASS: al - FloatAsciiToFloatFlags FAF_PUSH_RESULT - place result onto the fp stack FAF_STORE_NUMBER - store result into the location given by es:di cx - number of characters in the string that the routine should concern itself with ds:si - string in this format: "[+-] dddd.dddd [Ee] [+-] dddd" Notes: ------ * The string is assumed to be legal because duplicating the error checking that is done in the parser seems unnecessary. * There can be at most a single decimal point. * Spaces and thousands seperators are ignored. RETURN: carry clear if successful carry set if error DESTROYED: nothing PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87AsciiToFloat proc far myfloat local FloatNum uses ds, es, di, bx, ax .enter mov_tr bx, ax mov ax, 1 call FloatHardwareEnter jc done mov_tr ax, bx call FloatAsciiToFloatInternal jc error ;branch if error test al, mask FAF_PUSH_RESULT jz error ; not really an error but same code call FloatGetSoftwareStackHandle call MemLock mov ds, ax segmov es, ss, di lea di, myfloat call FloatPopNumberInternal call MemUnlock fld myfloat finish: clr ax leaveHardware: pushf call FloatHardwareLeave ;clears carry (no error) popf done: .leave ret error: mov ax, -1 jmp leaveHardware Intel80X87AsciiToFloat endp public Intel80X87AsciiToFloat COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Sub %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st(1) = st(1) - st, st popped off CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error DESTROYED: ax PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Sub proc far .enter clr ax call FloatHardwareEnter jc done EC < call Intel80X87Check2Args > fsub dec ax ; (ax still 0) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Sub endp public Intel80X87Sub COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Swap %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: swap top two stack registers CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error DESTROYED: ax PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Swap proc far .enter clr ax call FloatHardwareEnter jc done EC < call Intel80X87Check2Args > fxch ; (ax still 0) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Swap endp public Intel80X87Swap COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Tan %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = tan(st) CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error DESTROYED: ax PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Tan proc far .enter mov ax, 1 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fptan fdivp neg ax ; (ax still 1) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Tan endp public Intel80X87Tan COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Tanh %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = tanh(st) CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error DESTROYED: ax PSEUDOCODE/STRATEGY: ; tanh(x) = (e^x - e^-x) / (e^x + e^-x) KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Tanh proc far .enter mov ax, 3 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fld st ; FloatDup (fp: z z) fldl2e ; FloatExp fmulp ; ... call Intel80X87_2ToTheX ; ... (fp: z a) fxch ; FloatSwap (fp: e^z z) fchs ; FloatNegate (fp: e^z -z) fldl2e ; FloatExp (fp: e^z -z l2e) fmulp ; ... (fp: e^z -z*l2e) call Intel80X87_2ToTheX ; ... (fp: e^z e^-z) ; a = e^z, b = e^-z fld st(1) ; FloatOver (fp: a b a) fld st(1) ; FloatOver (fp: a b a b) fsubp ; FloatSub (fp: a b a-b) fxch st(2) ; FloatRot/ (fp: a-b b a) fxch ; FloatRot (fp: a-b a b) faddp ; FloatAdd (fp: a-b a+b) fdivp ; FloatDivide (fp: tanh) neg ax ; (ax still 3) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Tanh endp public Intel80X87Tanh COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87_2ToTheX %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = 2^st CALLED BY: GLOBAL PASS: nothing RETURN: Void. DESTROYED: nothing PSEUDOCODE/STRATEGY: because the only thing we get in hardware is 2^x - 1 when 0 <= x <= .5 we must do some silly things since 2^x = (2^integerpart(x))(2^fractionalpart(x)) first, if x is negative, set sign = minus, x = -x; we can do the following : let y = integerpart(x) let z = fractionalpart(x) now to get s = 2^y do the following s = 1; while (y--) s*=2; now if z <= .5 we can just call 2xm1 and add 1 else let z = z - .5, and do a 2xm1 and add 1 and the do another 2xm1 add 1 on remaining z if (sign == minus) we must invert the answer KNOWN BUGS/SIDEFFECTS/IDEAS: the routine increases the stack by up to ONE element at the most at any one time REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/21/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87_2ToTheX proc near sign local word fractPart local FloatNum ; fractional part tempFloat local FloatNum uses ax, bx, cx, dx, di, si .enter ; first, get the sign of the operand (stored in SW_CONDITION_CODE_0 of ; status, which is 1 if the thing is negative) ftst StatusToAX mov sign, ax test ax, mask SW_CONDITION_CODE_2 jnz error ; => it's NaN or something similarly evil test ax, mask SW_CONDITION_CODE_3 jz notZero ; see if the exponent is zero fstp st ; pop off zero mov sign, 1 fild sign ; load in a 1 as anything^0 = 1 jmp done notZero: ; test ax, mask SW_CONDITION_CODE_3 ; jnz error ; => it's NaN or something similarly evil ; now that we have the sign, make it positive fabs ; get the fractional and integer parts ; now to get the integer part of x, chop x fld st ; first save x call Intel80X87TruncInternal ; chop x ; now to get fractional part, subtract chopped part from original fsub st(1) ; st <- int, st(1) <- frac fxch fstp fractPart ; save fractional fld1 fscale ; st <- 2^int fstp tempFloat fstp st ; drop int ; now see if the fractional part is <= .5 fld fractPart fld cs:[int87PointFive] fcom StatusToAX sahf jp error jae doRest ; if so then jump ahead and finish up ; otherwise, do 2^.5, and then do 2^(fractPart-.5) and ; muliply the two halves together ; 2^.5 is just sqrt(2), of course, so... fsub ; st <- st(1)-.5 f2xm1 fld1 faddp fld cs:[int87Sqrt2] ; want full precision, so load treal... fmulp jmp combineAnswer doRest: fstp st ; pop the .5 f2xm1 fld1 faddp ; st = 2^fractPart combineAnswer: fld tempFloat ; recover 2^int fmulp ; if negative, 2^(-x) = 1/(2^x), so do st = 1/st test sign, mask SW_CONDITION_CODE_0 jz done fld1 fdivrp done: .leave ret error: stc jmp done Intel80X87_2ToTheX endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X8710ToTheX %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = 10^st CALLED BY: GLOBAL PASS: ax = exponent RETURN: carry set on error DESTROYED: Nada. PSEUDOCODE/STRATEGY: ; 10ToTheX(x) = 2^(x*lg(10)) KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/18/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X8710ToTheX proc far myint local word push ax .enter mov ax, 2 call FloatHardwareEnter jc done fild myint fldl2t fmulp call Intel80X87_2ToTheX mov ax, -1 call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X8710ToTheX endp public Intel80X8710ToTheX COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Trunc %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = trucn(st) CALLED BY: GLOBAL PASS: nothing RETURN: carry set on error DESTROYED: ax PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/12/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Trunc proc far .enter clr ax call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > call Intel80X87TruncInternal ; (ax still 0) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87Trunc endp public Intel80X87Trunc COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87TruncInternal %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: st = trunc(st) CALLED BY: GLOBAL PASS: nothing RETURN: Void. DESTROYED: Nada. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/27/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87TruncInternal proc near uses ax .enter call Intel80X87SetChop frndint call Intel80X87SetNearest .leave ret Intel80X87TruncInternal endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87FloatToDword %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: pop off st and put it into dx:ax CALLED BY: GLOBAL PASS: nothing RETURN: dx:ax = top of stack which is then popped off DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 1/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87FloatToDword proc far int32 local dword .enter mov ax, 0 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fistp int32 fwait dec ax ; (ax still 0) call FloatHardwareLeave movdw dxax, int32 done: .leave ret Intel80X87FloatToDword endp public Intel80X87FloatToDword COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87DwordToFloat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: put a dword integer on the fp stack CALLED BY: GLOBAL PASS: dx:ax dword integer RETURN: integer on top of fp stack DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87DwordToFloat proc far int32 local dword push dx, ax uses dx .enter mov ax, 1 call FloatHardwareEnter jc done fild int32 fwait clr ax call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87DwordToFloat endp public Intel80X87DwordToFloat COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87WordToFloat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: put a word integer onto the fp stack CALLED BY: GLOBAL PASS: ax = word integer RETURN: integer on top of fp stack DESTROYED: ax. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/20/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87WordToFloat proc far int16 local word push ax .enter mov ax, 1 call FloatHardwareEnter jc done fild int16 fwait dec ax ; (ax still 1) call Intel80X87CheckNormalNumberAndLeave done: .leave ret Intel80X87WordToFloat endp public Intel80X87WordToFloat COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87GetStackPointer %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: get the top of the fp stack pointer CALLED BY: GLOBAL PASS: nothing RETURN: ax = top of stack pointer DESTROYED: Nada. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: Primarily for use by applications for error recovery. Applications can bail out of involved operations by saving the stack pointer prior to commencing operations and restoring the stack pointer in the event of an error. NOTE: ----- If you set the stack pointer, the current stack pointer must be less than or equal to the value you pass. Ie. you must be throwing something (or nothing) away. REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87GetStackPointer proc far .enter clr ax call FloatHardwareEnter jc done call FloatGetStackDepth push ax clr ax call FloatHardwareLeave pop ax done: .leave ret Intel80X87GetStackPointer endp public Intel80X87GetStackPointer COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87SetStackPointer %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: set the top of the fp stack pointer CALLED BY: GLOBAL PASS: ax = new value for top of stack pointer RETURN: carry set on error DESTROYED: Nada. PSEUDOCODE/STRATEGY: the new value passes must be >= current value of top of stack KNOWN BUGS/SIDEFFECTS/IDEAS: Primarily for use by applications for error recovery. Applications can bail out of involved operations by saving the stack pointer prior to commencing operations and restoring the stack pointer in the event of an error. NOTE: ----- If you set the stack pointer, the current stack pointer must be greater than or equal to the value you pass. Ie. you must be throwing something (or nothing) away. REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/ 7/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87SetStackPointer proc far dummy local FloatNum stackDepth local word newDepth local word poppedOffH local word memHandle local hptr uses bx, cx, es, di, ds, ax .enter mov newDepth, ax clr ax call FloatHardwareEnter LONG jc done ; first, get rid of stuff on hardware stack that is not needed ; calculate how many numbers to pop off mov bx, newDepth call FloatGetStackDepth ; ax = current depth ; if we are already at the depth we want to set do nothing mov stackDepth, ax sub ax, bx LONG je done2 ; we are already there, so go home cmp ax, INTEL_STACK_SIZE jge initializeHardware mov cx, ax ; pop off numbers poploopHardware: fstp st loop poploopHardware mov poppedOffH, ax clr ax jmp clearSoftware initializeHardware: ; if more than INTEL_STACK_SIZE things are popped off, ; then just do an finit, and pop the rest off the ; software stack finit sub ax, INTEL_STACK_SIZE mov poppedOffH, INTEL_STACK_SIZE clearSoftware: mov bx, stackDepth cmp bx, INTEL_STACK_SIZE jle done push ax ; set up the software stack block call FloatGetSoftwareStackHandle mov memHandle, bx call MemLock mov ds, ax segmov es, ss lea di, dummy ; es:di <- dummy pop cx jcxz swapIn ; pop off numbers off the software stack poploopSoftware: call FloatPopNumberInternal loop poploopSoftware swapIn: mov cx, INTEL_STACK_SIZE ; used a lot here so put in cx ; no figure out how much room is left on the hardware stack ; to move things up from the software stack, and see how many ; numbers are left on the software stack to move up mov bx, cx sub bx, poppedOffH ; bx = actual depth of hardware stack now mov ax, cx sub ax, bx mov bx, newDepth cmp bx, cx jg doSwap sub bx, cx add ax, bx tst ax jz doneMemUnlock doSwap: mov cx, poppedOffH dec cx tst cx jz afterSetUp ; set up stack pointer in hardware so that the numbers get ; pushed on in the right order, they have to be pushed on in ; reverse order from how they come off the softwares stack, so ; set up pointer, push one, and then increment the pointer ; twice so that the next one goes in "before" the one just ; pushed... setUpPointer: fdecstp loop setUpPointer afterSetUp: mov cx, ax swapLoop: call FloatPopNumberInternal fld dummy fincstp fincstp loop swapLoop ; now we need to make sure that the hardware pointer is put ; back to point and the correct top number ;restore: mov ax, newDepth cmp ax, INTEL_STACK_SIZE jl restoreLess mov cx, 1 jmp restoreLoop restoreLess: mov cx, newDepth inc cx restoreLoop: fdecstp loop restoreLoop doneMemUnlock: mov bx, memHandle call MemUnlock done: mov ax, newDepth call FloatSetStackDepth done2: clr ax call FloatHardwareLeave .leave ret Intel80X87SetStackPointer endp public Intel80X87SetStackPointer COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87IEEE64ToGeos80 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: Convert a floating point number in IEEE 64 bit format into an fp number in Geos 80 bit format and push it onto the fp stack. Geos 80 bit format is almost the same as the IEEE 80 bit format except that we do not have an implied msb 1. A 64 bit number has a 52 bit mantissa and a 12 bit exponent. An 80 bit number has a 64 bit mantissa and a 16 bit exponent. CALLED BY: INTERNAL () PASS: ds:si - IEEE 64 bit number RETURN: float number on the fp stack DESTROYED: Nada. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/15/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87IEEE64ToGeos80 proc far uses ax .enter mov ax, 1 call FloatHardwareEnter jc done fld {qword}ds:[si] dec ax ; (ax still 1) call FloatHardwareLeave done: .leave ret Intel80X87IEEE64ToGeos80 endp public Intel80X87IEEE64ToGeos80 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87IEEE32ToGeos80 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: Convert a floating point number in IEEE 32 bit format into an fp number in Geos 80 bit format and push it onto the fp stack. Geos 80 bit format is almost the same as the IEEE 80 bit format except that we do not have an implied msb 1. A 64 bit number has a 23 bit mantissa and a 9 bit exponent. An 80 bit number has a 64 bit mantissa and a 16 bit exponent. CALLED BY: GLOBAL PASS: ds:ax = IEEE32 number RETURN: float number on the fp stack DESTROYED: Nada. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/15/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87IEEE32ToGeos80 proc far myfloat local dword push dx, ax uses ax .enter mov ax, 1 call FloatHardwareEnter jc done fld myfloat fwait dec ax ; (ax still 1) call FloatHardwareLeave done: .leave ret Intel80X87IEEE32ToGeos80 endp public Intel80X87IEEE32ToGeos80 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Geos80ToIEEE64 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: Convert a floating point number in Geos 80 bit format into an fp number in IEEE 64 bit format and push it onto the fp stack. Geos 80 bit format is almost the same as the IEEE 80 bit format except that we do not have an implied msb 1. An 80 bit number has a 64 bit mantissa and a 16 bit exponent. A 64 bit number has a 52 bit mantissa and a 12 bit exponent. CALLED BY: INTERNAL () PASS: ds - fp stack seg es:di - location to store the IEEE 64 bit number RETURN: carry clear if successful carry set otherwise float number popped off stack in either case DESTROYED: ax PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/15/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Geos80ToIEEE64 proc far .enter clr ax call FloatHardwareEnter jc done fstp {qword}es:[di] fwait mov ax, -1 call FloatHardwareLeave done: .leave ret Intel80X87Geos80ToIEEE64 endp public Intel80X87Geos80ToIEEE64 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Geos80ToIEEE32 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: Convert a floating point number in Geos 80 bit format into an fp number in IEEE 32 bit format and push it onto the fp stack. Geos 80 bit format is almost the same as the IEEE 80 bit format except that we do not have an implied msb 1. An 80 bit number has a 64 bit mantissa and a 16 bit exponent. A 64 bit number has a 23 bit mantissa and a 9 bit exponent. CALLED BY: GLOBAL PASS: number on fp stack RETURN: carry clear if successful carry set otherwise dx:ax = IEEE32 number float number popped off stack in either case DESTROYED: ax PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 5/15/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Geos80ToIEEE32 proc far myfloat local dword .enter clr ax call FloatHardwareEnter jc done fstp myfloat fwait dec ax ; (ax still 0) call FloatHardwareLeave jc done movdw dxax, myfloat done: .leave ret Intel80X87Geos80ToIEEE32 endp public Intel80X87Geos80ToIEEE32 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Epsilon %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: produces an epsilon value based on the top fp number CALLED BY: GLOBAL PASS: nothing RETURN: Void. DESTROYED: Nada. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 6/30/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Epsilon proc far myfloat local FloatNum .enter mov ax, 1 call FloatHardwareEnter jc done EC < call Intel80X87Check1Arg > fld st ; duplicate, as it must remain on the ; stack. fstp myfloat clr ax mov myfloat.F_mantissa_wd3, ax mov myfloat.F_mantissa_wd2, ax mov myfloat.F_mantissa_wd1, ax mov myfloat.F_mantissa_wd0, 1 fld myfloat call FloatHardwareLeave done: .leave ret Intel80X87Epsilon endp public Intel80X87Epsilon COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% INTEL80X87FSTSW %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: get the status word of the coprocessor CALLED BY: GLOBAL PASS: nothing RETURN: ax = status word DESTROYED: Nada. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 9/24/92 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ global INTEL80X87FSTSW:far INTEL80X87FSTSW proc far status local StatusWord .enter clr ax call FloatHardwareEnter jc done fstsw status fwait call FloatHardwareLeave mov ax, status done: .leave ret INTEL80X87FSTSW endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Intel80X87Err %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: push an ERROR NAN on the stack CALLED BY: GLOBAL PASS: nothing RETURN: Void. DESTROYED: Nada. PSEUDOCODE/STRATEGY: KNOWN BUGS/SIDEFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 3/16/93 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Intel80X87Err proc near .enter fld {FloatNum}tableErr .leave ret Intel80X87Err endp tableErr label word word 0, 0, 0, 0c000h, FP_NAN CommonCode ends
21.31781
81
0.555876
51a08115db4dbd702a08351f701e6e2fee494a8d
5,598
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_sm_/i3-7100_9_0x84_notsx.log_21829_2235.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_2235.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_2235.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r15 push %r8 push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0x1bd12, %rsi lea addresses_WT_ht+0xa9ca, %rdi nop nop nop nop sub %r15, %r15 mov $16, %rcx rep movsl inc %rbp lea addresses_WC_ht+0x101ca, %rsi lea addresses_A_ht+0xf2d2, %rdi nop nop nop nop inc %r8 mov $32, %rcx rep movsq nop cmp $49693, %rdi lea addresses_WC_ht+0x141ca, %r15 nop nop nop nop xor $21279, %rdi movb (%r15), %r8b nop dec %rsi lea addresses_UC_ht+0xf24a, %rsi lea addresses_normal_ht+0xd9ca, %rdi nop nop nop nop sub %r10, %r10 mov $46, %rcx rep movsw nop nop xor %rdi, %rdi lea addresses_D_ht+0x5f46, %r10 nop nop nop nop add %rdi, %rdi mov (%r10), %cx nop nop nop nop nop inc %r8 lea addresses_A_ht+0xf1ca, %r10 sub %rbp, %rbp mov (%r10), %rcx nop nop nop nop nop lfence pop %rsi pop %rdi pop %rcx pop %rbp pop %r8 pop %r15 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %rbx push %rdi push %rdx // Store lea addresses_UC+0x169ca, %r13 cmp %rbx, %rbx movb $0x51, (%r13) nop nop nop nop nop add $26222, %rdx // Faulty Load lea addresses_UC+0x169ca, %rdx nop add $45615, %r11 movb (%rdx), %bl lea oracles, %rdx and $0xff, %rbx shlq $12, %rbx mov (%rdx,%rbx,1), %rbx pop %rdx pop %rdi pop %rbx pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_UC', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_UC', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_UC', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 2, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'51': 21829} 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 */
40.861314
2,999
0.6597
33f9b089eb644de172b17cf446335fa1b50ef9fe
24,065
asm
Assembly
forktest.asm
shoaibvijapure/Modified-xv6-MIT-Operating-System
990c0c9ffe18531859fa668660ef64b56502756b
[ "MIT-0" ]
null
null
null
forktest.asm
shoaibvijapure/Modified-xv6-MIT-Operating-System
990c0c9ffe18531859fa668660ef64b56502756b
[ "MIT-0" ]
null
null
null
forktest.asm
shoaibvijapure/Modified-xv6-MIT-Operating-System
990c0c9ffe18531859fa668660ef64b56502756b
[ "MIT-0" ]
null
null
null
_forktest: file format elf32-i386 Disassembly of section .text: 00000000 <main>: printf(1, "fork test OK\n"); } int main(void) { 0: f3 0f 1e fb endbr32 4: 55 push %ebp 5: 89 e5 mov %esp,%ebp 7: 83 e4 f0 and $0xfffffff0,%esp forktest(); a: e8 41 00 00 00 call 50 <forktest> exit(); f: e8 9f 03 00 00 call 3b3 <exit> 14: 66 90 xchg %ax,%ax 16: 66 90 xchg %ax,%ax 18: 66 90 xchg %ax,%ax 1a: 66 90 xchg %ax,%ax 1c: 66 90 xchg %ax,%ax 1e: 66 90 xchg %ax,%ax 00000020 <printf>: { 20: f3 0f 1e fb endbr32 24: 55 push %ebp 25: 89 e5 mov %esp,%ebp 27: 53 push %ebx 28: 83 ec 10 sub $0x10,%esp 2b: 8b 5d 0c mov 0xc(%ebp),%ebx write(fd, s, strlen(s)); 2e: 53 push %ebx 2f: e8 9c 01 00 00 call 1d0 <strlen> 34: 83 c4 0c add $0xc,%esp 37: 50 push %eax 38: 53 push %ebx 39: ff 75 08 pushl 0x8(%ebp) 3c: e8 92 03 00 00 call 3d3 <write> } 41: 8b 5d fc mov -0x4(%ebp),%ebx 44: 83 c4 10 add $0x10,%esp 47: c9 leave 48: c3 ret 49: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00000050 <forktest>: { 50: f3 0f 1e fb endbr32 54: 55 push %ebp 55: 89 e5 mov %esp,%ebp 57: 53 push %ebx for(n=0; n<N; n++){ 58: 31 db xor %ebx,%ebx { 5a: 83 ec 10 sub $0x10,%esp write(fd, s, strlen(s)); 5d: 68 c4 04 00 00 push $0x4c4 62: e8 69 01 00 00 call 1d0 <strlen> 67: 83 c4 0c add $0xc,%esp 6a: 50 push %eax 6b: 68 c4 04 00 00 push $0x4c4 70: 6a 01 push $0x1 72: e8 5c 03 00 00 call 3d3 <write> 77: 83 c4 10 add $0x10,%esp 7a: eb 15 jmp 91 <forktest+0x41> 7c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(pid == 0) 80: 74 58 je da <forktest+0x8a> for(n=0; n<N; n++){ 82: 83 c3 01 add $0x1,%ebx 85: 81 fb e8 03 00 00 cmp $0x3e8,%ebx 8b: 0f 84 92 00 00 00 je 123 <forktest+0xd3> pid = fork(); 91: e8 15 03 00 00 call 3ab <fork> if(pid < 0) 96: 85 c0 test %eax,%eax 98: 79 e6 jns 80 <forktest+0x30> for(; n > 0; n--){ 9a: 85 db test %ebx,%ebx 9c: 74 10 je ae <forktest+0x5e> 9e: 66 90 xchg %ax,%ax if(wait() < 0){ a0: e8 16 03 00 00 call 3bb <wait> a5: 85 c0 test %eax,%eax a7: 78 36 js df <forktest+0x8f> for(; n > 0; n--){ a9: 83 eb 01 sub $0x1,%ebx ac: 75 f2 jne a0 <forktest+0x50> if(wait() != -1){ ae: e8 08 03 00 00 call 3bb <wait> b3: 83 f8 ff cmp $0xffffffff,%eax b6: 75 49 jne 101 <forktest+0xb1> write(fd, s, strlen(s)); b8: 83 ec 0c sub $0xc,%esp bb: 68 f6 04 00 00 push $0x4f6 c0: e8 0b 01 00 00 call 1d0 <strlen> c5: 83 c4 0c add $0xc,%esp c8: 50 push %eax c9: 68 f6 04 00 00 push $0x4f6 ce: 6a 01 push $0x1 d0: e8 fe 02 00 00 call 3d3 <write> } d5: 8b 5d fc mov -0x4(%ebp),%ebx d8: c9 leave d9: c3 ret exit(); da: e8 d4 02 00 00 call 3b3 <exit> write(fd, s, strlen(s)); df: 83 ec 0c sub $0xc,%esp e2: 68 cf 04 00 00 push $0x4cf e7: e8 e4 00 00 00 call 1d0 <strlen> ec: 83 c4 0c add $0xc,%esp ef: 50 push %eax f0: 68 cf 04 00 00 push $0x4cf f5: 6a 01 push $0x1 f7: e8 d7 02 00 00 call 3d3 <write> exit(); fc: e8 b2 02 00 00 call 3b3 <exit> write(fd, s, strlen(s)); 101: 83 ec 0c sub $0xc,%esp 104: 68 e3 04 00 00 push $0x4e3 109: e8 c2 00 00 00 call 1d0 <strlen> 10e: 83 c4 0c add $0xc,%esp 111: 50 push %eax 112: 68 e3 04 00 00 push $0x4e3 117: 6a 01 push $0x1 119: e8 b5 02 00 00 call 3d3 <write> exit(); 11e: e8 90 02 00 00 call 3b3 <exit> write(fd, s, strlen(s)); 123: 83 ec 0c sub $0xc,%esp 126: 68 04 05 00 00 push $0x504 12b: e8 a0 00 00 00 call 1d0 <strlen> 130: 83 c4 0c add $0xc,%esp 133: 50 push %eax 134: 68 04 05 00 00 push $0x504 139: 6a 01 push $0x1 13b: e8 93 02 00 00 call 3d3 <write> exit(); 140: e8 6e 02 00 00 call 3b3 <exit> 145: 66 90 xchg %ax,%ax 147: 66 90 xchg %ax,%ax 149: 66 90 xchg %ax,%ax 14b: 66 90 xchg %ax,%ax 14d: 66 90 xchg %ax,%ax 14f: 90 nop 00000150 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, const char *t) { 150: f3 0f 1e fb endbr32 154: 55 push %ebp char *os; os = s; while((*s++ = *t++) != 0) 155: 31 c0 xor %eax,%eax { 157: 89 e5 mov %esp,%ebp 159: 53 push %ebx 15a: 8b 4d 08 mov 0x8(%ebp),%ecx 15d: 8b 5d 0c mov 0xc(%ebp),%ebx while((*s++ = *t++) != 0) 160: 0f b6 14 03 movzbl (%ebx,%eax,1),%edx 164: 88 14 01 mov %dl,(%ecx,%eax,1) 167: 83 c0 01 add $0x1,%eax 16a: 84 d2 test %dl,%dl 16c: 75 f2 jne 160 <strcpy+0x10> ; return os; } 16e: 89 c8 mov %ecx,%eax 170: 5b pop %ebx 171: 5d pop %ebp 172: c3 ret 173: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 17a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00000180 <strcmp>: int strcmp(const char *p, const char *q) { 180: f3 0f 1e fb endbr32 184: 55 push %ebp 185: 89 e5 mov %esp,%ebp 187: 53 push %ebx 188: 8b 4d 08 mov 0x8(%ebp),%ecx 18b: 8b 55 0c mov 0xc(%ebp),%edx while(*p && *p == *q) 18e: 0f b6 01 movzbl (%ecx),%eax 191: 0f b6 1a movzbl (%edx),%ebx 194: 84 c0 test %al,%al 196: 75 19 jne 1b1 <strcmp+0x31> 198: eb 26 jmp 1c0 <strcmp+0x40> 19a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 1a0: 0f b6 41 01 movzbl 0x1(%ecx),%eax p++, q++; 1a4: 83 c1 01 add $0x1,%ecx 1a7: 83 c2 01 add $0x1,%edx while(*p && *p == *q) 1aa: 0f b6 1a movzbl (%edx),%ebx 1ad: 84 c0 test %al,%al 1af: 74 0f je 1c0 <strcmp+0x40> 1b1: 38 d8 cmp %bl,%al 1b3: 74 eb je 1a0 <strcmp+0x20> return (uchar)*p - (uchar)*q; 1b5: 29 d8 sub %ebx,%eax } 1b7: 5b pop %ebx 1b8: 5d pop %ebp 1b9: c3 ret 1ba: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 1c0: 31 c0 xor %eax,%eax return (uchar)*p - (uchar)*q; 1c2: 29 d8 sub %ebx,%eax } 1c4: 5b pop %ebx 1c5: 5d pop %ebp 1c6: c3 ret 1c7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 1ce: 66 90 xchg %ax,%ax 000001d0 <strlen>: uint strlen(const char *s) { 1d0: f3 0f 1e fb endbr32 1d4: 55 push %ebp 1d5: 89 e5 mov %esp,%ebp 1d7: 8b 55 08 mov 0x8(%ebp),%edx int n; for(n = 0; s[n]; n++) 1da: 80 3a 00 cmpb $0x0,(%edx) 1dd: 74 21 je 200 <strlen+0x30> 1df: 31 c0 xor %eax,%eax 1e1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 1e8: 83 c0 01 add $0x1,%eax 1eb: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1) 1ef: 89 c1 mov %eax,%ecx 1f1: 75 f5 jne 1e8 <strlen+0x18> ; return n; } 1f3: 89 c8 mov %ecx,%eax 1f5: 5d pop %ebp 1f6: c3 ret 1f7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 1fe: 66 90 xchg %ax,%ax for(n = 0; s[n]; n++) 200: 31 c9 xor %ecx,%ecx } 202: 5d pop %ebp 203: 89 c8 mov %ecx,%eax 205: c3 ret 206: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 20d: 8d 76 00 lea 0x0(%esi),%esi 00000210 <memset>: void* memset(void *dst, int c, uint n) { 210: f3 0f 1e fb endbr32 214: 55 push %ebp 215: 89 e5 mov %esp,%ebp 217: 57 push %edi 218: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : 21b: 8b 4d 10 mov 0x10(%ebp),%ecx 21e: 8b 45 0c mov 0xc(%ebp),%eax 221: 89 d7 mov %edx,%edi 223: fc cld 224: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } 226: 89 d0 mov %edx,%eax 228: 5f pop %edi 229: 5d pop %ebp 22a: c3 ret 22b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 22f: 90 nop 00000230 <strchr>: char* strchr(const char *s, char c) { 230: f3 0f 1e fb endbr32 234: 55 push %ebp 235: 89 e5 mov %esp,%ebp 237: 8b 45 08 mov 0x8(%ebp),%eax 23a: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx for(; *s; s++) 23e: 0f b6 10 movzbl (%eax),%edx 241: 84 d2 test %dl,%dl 243: 75 16 jne 25b <strchr+0x2b> 245: eb 21 jmp 268 <strchr+0x38> 247: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 24e: 66 90 xchg %ax,%ax 250: 0f b6 50 01 movzbl 0x1(%eax),%edx 254: 83 c0 01 add $0x1,%eax 257: 84 d2 test %dl,%dl 259: 74 0d je 268 <strchr+0x38> if(*s == c) 25b: 38 d1 cmp %dl,%cl 25d: 75 f1 jne 250 <strchr+0x20> return (char*)s; return 0; } 25f: 5d pop %ebp 260: c3 ret 261: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return 0; 268: 31 c0 xor %eax,%eax } 26a: 5d pop %ebp 26b: c3 ret 26c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00000270 <gets>: char* gets(char *buf, int max) { 270: f3 0f 1e fb endbr32 274: 55 push %ebp 275: 89 e5 mov %esp,%ebp 277: 57 push %edi 278: 56 push %esi int i, cc; char c; for(i=0; i+1 < max; ){ 279: 31 f6 xor %esi,%esi { 27b: 53 push %ebx 27c: 89 f3 mov %esi,%ebx 27e: 83 ec 1c sub $0x1c,%esp 281: 8b 7d 08 mov 0x8(%ebp),%edi for(i=0; i+1 < max; ){ 284: eb 33 jmp 2b9 <gets+0x49> 286: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 28d: 8d 76 00 lea 0x0(%esi),%esi cc = read(0, &c, 1); 290: 83 ec 04 sub $0x4,%esp 293: 8d 45 e7 lea -0x19(%ebp),%eax 296: 6a 01 push $0x1 298: 50 push %eax 299: 6a 00 push $0x0 29b: e8 2b 01 00 00 call 3cb <read> if(cc < 1) 2a0: 83 c4 10 add $0x10,%esp 2a3: 85 c0 test %eax,%eax 2a5: 7e 1c jle 2c3 <gets+0x53> break; buf[i++] = c; 2a7: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 2ab: 83 c7 01 add $0x1,%edi 2ae: 88 47 ff mov %al,-0x1(%edi) if(c == '\n' || c == '\r') 2b1: 3c 0a cmp $0xa,%al 2b3: 74 23 je 2d8 <gets+0x68> 2b5: 3c 0d cmp $0xd,%al 2b7: 74 1f je 2d8 <gets+0x68> for(i=0; i+1 < max; ){ 2b9: 83 c3 01 add $0x1,%ebx 2bc: 89 fe mov %edi,%esi 2be: 3b 5d 0c cmp 0xc(%ebp),%ebx 2c1: 7c cd jl 290 <gets+0x20> 2c3: 89 f3 mov %esi,%ebx break; } buf[i] = '\0'; return buf; } 2c5: 8b 45 08 mov 0x8(%ebp),%eax buf[i] = '\0'; 2c8: c6 03 00 movb $0x0,(%ebx) } 2cb: 8d 65 f4 lea -0xc(%ebp),%esp 2ce: 5b pop %ebx 2cf: 5e pop %esi 2d0: 5f pop %edi 2d1: 5d pop %ebp 2d2: c3 ret 2d3: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 2d7: 90 nop 2d8: 8b 75 08 mov 0x8(%ebp),%esi 2db: 8b 45 08 mov 0x8(%ebp),%eax 2de: 01 de add %ebx,%esi 2e0: 89 f3 mov %esi,%ebx buf[i] = '\0'; 2e2: c6 03 00 movb $0x0,(%ebx) } 2e5: 8d 65 f4 lea -0xc(%ebp),%esp 2e8: 5b pop %ebx 2e9: 5e pop %esi 2ea: 5f pop %edi 2eb: 5d pop %ebp 2ec: c3 ret 2ed: 8d 76 00 lea 0x0(%esi),%esi 000002f0 <stat>: int stat(const char *n, struct stat *st) { 2f0: f3 0f 1e fb endbr32 2f4: 55 push %ebp 2f5: 89 e5 mov %esp,%ebp 2f7: 56 push %esi 2f8: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); 2f9: 83 ec 08 sub $0x8,%esp 2fc: 6a 00 push $0x0 2fe: ff 75 08 pushl 0x8(%ebp) 301: e8 ed 00 00 00 call 3f3 <open> if(fd < 0) 306: 83 c4 10 add $0x10,%esp 309: 85 c0 test %eax,%eax 30b: 78 2b js 338 <stat+0x48> return -1; r = fstat(fd, st); 30d: 83 ec 08 sub $0x8,%esp 310: ff 75 0c pushl 0xc(%ebp) 313: 89 c3 mov %eax,%ebx 315: 50 push %eax 316: e8 f0 00 00 00 call 40b <fstat> close(fd); 31b: 89 1c 24 mov %ebx,(%esp) r = fstat(fd, st); 31e: 89 c6 mov %eax,%esi close(fd); 320: e8 b6 00 00 00 call 3db <close> return r; 325: 83 c4 10 add $0x10,%esp } 328: 8d 65 f8 lea -0x8(%ebp),%esp 32b: 89 f0 mov %esi,%eax 32d: 5b pop %ebx 32e: 5e pop %esi 32f: 5d pop %ebp 330: c3 ret 331: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return -1; 338: be ff ff ff ff mov $0xffffffff,%esi 33d: eb e9 jmp 328 <stat+0x38> 33f: 90 nop 00000340 <atoi>: int atoi(const char *s) { 340: f3 0f 1e fb endbr32 344: 55 push %ebp 345: 89 e5 mov %esp,%ebp 347: 53 push %ebx 348: 8b 55 08 mov 0x8(%ebp),%edx int n; n = 0; while('0' <= *s && *s <= '9') 34b: 0f be 02 movsbl (%edx),%eax 34e: 8d 48 d0 lea -0x30(%eax),%ecx 351: 80 f9 09 cmp $0x9,%cl n = 0; 354: b9 00 00 00 00 mov $0x0,%ecx while('0' <= *s && *s <= '9') 359: 77 1a ja 375 <atoi+0x35> 35b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 35f: 90 nop n = n*10 + *s++ - '0'; 360: 83 c2 01 add $0x1,%edx 363: 8d 0c 89 lea (%ecx,%ecx,4),%ecx 366: 8d 4c 48 d0 lea -0x30(%eax,%ecx,2),%ecx while('0' <= *s && *s <= '9') 36a: 0f be 02 movsbl (%edx),%eax 36d: 8d 58 d0 lea -0x30(%eax),%ebx 370: 80 fb 09 cmp $0x9,%bl 373: 76 eb jbe 360 <atoi+0x20> return n; } 375: 89 c8 mov %ecx,%eax 377: 5b pop %ebx 378: 5d pop %ebp 379: c3 ret 37a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00000380 <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { 380: f3 0f 1e fb endbr32 384: 55 push %ebp 385: 89 e5 mov %esp,%ebp 387: 57 push %edi 388: 8b 45 10 mov 0x10(%ebp),%eax 38b: 8b 55 08 mov 0x8(%ebp),%edx 38e: 56 push %esi 38f: 8b 75 0c mov 0xc(%ebp),%esi char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) 392: 85 c0 test %eax,%eax 394: 7e 0f jle 3a5 <memmove+0x25> 396: 01 d0 add %edx,%eax dst = vdst; 398: 89 d7 mov %edx,%edi 39a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi *dst++ = *src++; 3a0: a4 movsb %ds:(%esi),%es:(%edi) while(n-- > 0) 3a1: 39 f8 cmp %edi,%eax 3a3: 75 fb jne 3a0 <memmove+0x20> return vdst; } 3a5: 5e pop %esi 3a6: 89 d0 mov %edx,%eax 3a8: 5f pop %edi 3a9: 5d pop %ebp 3aa: c3 ret 000003ab <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 3ab: b8 01 00 00 00 mov $0x1,%eax 3b0: cd 40 int $0x40 3b2: c3 ret 000003b3 <exit>: SYSCALL(exit) 3b3: b8 02 00 00 00 mov $0x2,%eax 3b8: cd 40 int $0x40 3ba: c3 ret 000003bb <wait>: SYSCALL(wait) 3bb: b8 03 00 00 00 mov $0x3,%eax 3c0: cd 40 int $0x40 3c2: c3 ret 000003c3 <pipe>: SYSCALL(pipe) 3c3: b8 04 00 00 00 mov $0x4,%eax 3c8: cd 40 int $0x40 3ca: c3 ret 000003cb <read>: SYSCALL(read) 3cb: b8 05 00 00 00 mov $0x5,%eax 3d0: cd 40 int $0x40 3d2: c3 ret 000003d3 <write>: SYSCALL(write) 3d3: b8 10 00 00 00 mov $0x10,%eax 3d8: cd 40 int $0x40 3da: c3 ret 000003db <close>: SYSCALL(close) 3db: b8 15 00 00 00 mov $0x15,%eax 3e0: cd 40 int $0x40 3e2: c3 ret 000003e3 <kill>: SYSCALL(kill) 3e3: b8 06 00 00 00 mov $0x6,%eax 3e8: cd 40 int $0x40 3ea: c3 ret 000003eb <exec>: SYSCALL(exec) 3eb: b8 07 00 00 00 mov $0x7,%eax 3f0: cd 40 int $0x40 3f2: c3 ret 000003f3 <open>: SYSCALL(open) 3f3: b8 0f 00 00 00 mov $0xf,%eax 3f8: cd 40 int $0x40 3fa: c3 ret 000003fb <mknod>: SYSCALL(mknod) 3fb: b8 11 00 00 00 mov $0x11,%eax 400: cd 40 int $0x40 402: c3 ret 00000403 <unlink>: SYSCALL(unlink) 403: b8 12 00 00 00 mov $0x12,%eax 408: cd 40 int $0x40 40a: c3 ret 0000040b <fstat>: SYSCALL(fstat) 40b: b8 08 00 00 00 mov $0x8,%eax 410: cd 40 int $0x40 412: c3 ret 00000413 <link>: SYSCALL(link) 413: b8 13 00 00 00 mov $0x13,%eax 418: cd 40 int $0x40 41a: c3 ret 0000041b <mkdir>: SYSCALL(mkdir) 41b: b8 14 00 00 00 mov $0x14,%eax 420: cd 40 int $0x40 422: c3 ret 00000423 <chdir>: SYSCALL(chdir) 423: b8 09 00 00 00 mov $0x9,%eax 428: cd 40 int $0x40 42a: c3 ret 0000042b <dup>: SYSCALL(dup) 42b: b8 0a 00 00 00 mov $0xa,%eax 430: cd 40 int $0x40 432: c3 ret 00000433 <getpid>: SYSCALL(getpid) 433: b8 0b 00 00 00 mov $0xb,%eax 438: cd 40 int $0x40 43a: c3 ret 0000043b <sbrk>: SYSCALL(sbrk) 43b: b8 0c 00 00 00 mov $0xc,%eax 440: cd 40 int $0x40 442: c3 ret 00000443 <sleep>: SYSCALL(sleep) 443: b8 0d 00 00 00 mov $0xd,%eax 448: cd 40 int $0x40 44a: c3 ret 0000044b <uptime>: SYSCALL(uptime) 44b: b8 0e 00 00 00 mov $0xe,%eax 450: cd 40 int $0x40 452: c3 ret 00000453 <waitx>: SYSCALL(waitx) 453: b8 16 00 00 00 mov $0x16,%eax 458: cd 40 int $0x40 45a: c3 ret 0000045b <set_priority>: SYSCALL(set_priority) 45b: b8 18 00 00 00 mov $0x18,%eax 460: cd 40 int $0x40 462: c3 ret 00000463 <getpinfo>: SYSCALL(getpinfo) 463: b8 17 00 00 00 mov $0x17,%eax 468: cd 40 int $0x40 46a: c3 ret 0000046b <year>: SYSCALL(year) 46b: b8 19 00 00 00 mov $0x19,%eax 470: cd 40 int $0x40 472: c3 ret 00000473 <halt>: SYSCALL(halt) 473: b8 1a 00 00 00 mov $0x1a,%eax 478: cd 40 int $0x40 47a: c3 ret 0000047b <date>: SYSCALL(date) 47b: b8 1b 00 00 00 mov $0x1b,%eax 480: cd 40 int $0x40 482: c3 ret 00000483 <gettcount>: SYSCALL(gettcount) 483: b8 1d 00 00 00 mov $0x1d,%eax 488: cd 40 int $0x40 48a: c3 ret 0000048b <getrcount>: SYSCALL(getrcount) 48b: b8 1c 00 00 00 mov $0x1c,%eax 490: cd 40 int $0x40 492: c3 ret 00000493 <getwcount>: SYSCALL(getwcount) 493: b8 1e 00 00 00 mov $0x1e,%eax 498: cd 40 int $0x40 49a: c3 ret 0000049b <getwtcount>: SYSCALL(getwtcount) 49b: b8 1f 00 00 00 mov $0x1f,%eax 4a0: cd 40 int $0x40 4a2: c3 ret 000004a3 <getcltcount>: SYSCALL(getcltcount) 4a3: b8 21 00 00 00 mov $0x21,%eax 4a8: cd 40 int $0x40 4aa: c3 ret 000004ab <getclcount>: SYSCALL(getclcount) 4ab: b8 20 00 00 00 mov $0x20,%eax 4b0: cd 40 int $0x40 4b2: c3 ret 000004b3 <getocount>: SYSCALL(getocount) 4b3: b8 23 00 00 00 mov $0x23,%eax 4b8: cd 40 int $0x40 4ba: c3 ret 000004bb <getotcount>: SYSCALL(getotcount) 4bb: b8 22 00 00 00 mov $0x22,%eax 4c0: cd 40 int $0x40 4c2: c3 ret
31.498691
58
0.416913
382c0d1b757a37374fa9b4aa92a289399c9aaff4
7,401
asm
Assembly
Driver/Video/Dumb/VidMem/vidmemRaster.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Driver/Video/Dumb/VidMem/vidmemRaster.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Driver/Video/Dumb/VidMem/vidmemRaster.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: VidMem FILE: vidmemRaster.asm AUTHOR: Jim DeFrisco, Mar 19, 1992 ROUTINES: Name Description ---- ----------- INT BltSimpleLine blt a single scan line (vertically) INT PutBWScan Transfer a scan line's worth of system memory to screen INT FillBWScan Transfer a scan line's worth of system memory to screen INT PutBWScanMask Transfer a scan line's worth of system memory to screen INT NullBMScan Transfer a scan line's worth of system memory to screen INT GetOneScan Copy one scan line of video buffer to system memory INT ByteModeRoutines Set of routines for implementing drawing mode on non-EGA compatible display modes REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 3/19/92 Initial revision DESCRIPTION: $Id: vidmemRaster.asm,v 1.1 97/04/18 11:42:52 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VidSegment Blt COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% BltSimpleLine %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: blt a single scan line (vertically) CALLED BY: INTERNAL PASS: bx - first x point in simple region ax - last x point in simple region d_x1 - left side of blt d_x2 - right side of blt es:si - points to scan line start of source es:di - points to scan line start of dest RETURN: nothing DESTROYED: ax,bx,cx,dx,si,di PSEUDO CODE/STRATEGY: mask left; copy left byte; mask = ff; copy middle bytes mask right; copy right byte; KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 12/88... Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%} BltSimpleLine proc near ret BltSimpleLine endp VidEnds Blt VidSegment Bitmap COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PutBWScan %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Transfer a scan line's worth of system memory to screen CALLED BY: INTERNAL PASS: d_x1 - x coordinate to start drawing d_y1 - scan line to draw to d_x2 - x coordinate of right side of image d_dx - width of image (pixels) d_bytes - width of image (bytes) (bytes/scan/plane) ax - rightmost ON point for simple region bx - leftmost ON point for simple region dx - index into pattern table ds:si - pointer to bitmap data bp - bitmap data segment es - segment of frame buffer RETURN: bp intact DESTROYED: ax,bx,cx,dx,si,di PSEUDO CODE/STRATEGY: set drawing color; mask left; shift and copy left byte; shift and copy middle bytes mask right; shift and copy right byte; KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 01/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%} PutBWScan proc near ret PutBWScan endp FillBWScan proc near ForceRef FillBWScan ret FillBWScan endp PutBWScanMask proc near ret PutBWScanMask endp NullBMScan proc near ret NullBMScan endp VidEnds Bitmap VidSegment Misc COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetOneScan %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Copy one scan line of video buffer to system memory CALLED BY: INTERNAL VidGetBits PASS: ds:si - address of start of scan line in frame buffer es:di - pointer into sys memory where scan line to be stored cx - # bytes left in buffer d_x1 - left side of source d_dx - # source pixels shiftCount - # bits to shift RETURN: es:di - pointer moved on past scan line info just stored cx - # bytes left in buffer - set to -1 if not enough room to fit next scan (no bytes are copied) DESTROYED: ax,bx,dx,si PSEUDO CODE/STRATEGY: if (there's enough room to fit scan in buffer) copy the scan out else just return KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 04/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetOneScan proc near ret GetOneScan endp VidEnds Misc VidSegment Bitmap COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ByteModeRoutine %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set of routines for implementing drawing mode on non-EGA compatible display modes CALLED BY: Bitmap drivers PASS: al = screen data dl = pattern ah = new bits AND mask where: new bits = bits to write out (as in bits from a bitmap). For objects like rectangles, where newBits=all 1s, ah will hold the mask only. Also: this mask is a final mask, including any user-specified draw mask. RETURN: al = byte to write DESTROYED: ah PSEUDO CODE/STRATEGY: see below for each mode KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 02/88... Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ; the comments below use the following conventions (remember ; boolean algebra?...) ; AND ^ ; OR v ; NOT ~ BMR_saveMask byte 0 ByteModeRoutines proc near ForceRef ByteModeRoutines ByteCLEAR label near ; (screen^~(data^mask))v(data^mask^resetColor) not ah ; and al, ah ; not ah ; and ah, byte ptr ss:[resetColor] or al, ah ; ByteNOP label near ; ret ByteCOPY label near ; (screen^~(data^mask))v(data^mask^pattern) not ah ; and al, ah ; not ah ; and ah, dl ; or al, ah ; ret ByteAND label near ; screen^((data^mask^pattern)v~(data^mask)) not ah mov cs:[BMR_saveMask], ah not ah and ah, dl or ah, cs:[BMR_saveMask] and al, ah ret ByteINV label near ; screenXOR(data^mask) xor al, ah ret ByteXOR label near ; screenXOR(data^mask^pattern) INVRSE <tst ss:[inverseDriver] > INVRSE <jz notInverse > INVRSE <not dl > ; Ok, this goes against style guidelines, but we need speed and ; dl back in its original form: duplicate three lines ; and "ret" in the middle of this function. INVRSE <and ah, dl > INVRSE <not dl > INVRSE <xor al, ah > INVRSE <ret > INVRSE <notInverse: > and ah, dl xor al, ah ret ByteSET label near ; (screen^~(data^mask))v(data^mask^setColor) not ah ; and al, ah ; not ah ; and ah, byte ptr ss:[setColor] or al, dl ret ByteOR label near ; screenv(data^mask^pattern) and ah, dl or al, ah ret ByteModeRoutines endp ByteModeRout label word nptr ByteCLEAR nptr ByteCOPY nptr ByteNOP nptr ByteAND nptr ByteINV nptr ByteXOR nptr ByteSET nptr ByteOR VidEnds Bitmap
23.200627
79
0.561546
af1b5b736f7fe5f2b173d8a892f6f8828b860c3f
542
asm
Assembly
oeis/000/A000203.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/000/A000203.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/000/A000203.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A000203: a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n). ; 1,3,4,7,6,12,8,15,13,18,12,28,14,24,24,31,18,39,20,42,32,36,24,60,31,42,40,56,30,72,32,63,48,54,48,91,38,60,56,90,42,96,44,84,78,72,48,124,57,93,72,98,54,120,72,120,80,90,60,168,62,96,104,127,84,144,68,126,96,144,72,195,74,114,124,140,96,168,80,186,121,126,84,224,108,132,120,180,90,234,112,168,128,144,120,252,98,171,156,217 add $0,1 mov $2,$0 lpb $0 mov $3,$2 dif $3,$0 cmp $3,$2 cmp $3,0 mul $3,$0 sub $0,1 add $1,$3 lpe add $1,1 mov $0,$1
31.882353
327
0.632841
080fe6237a0e69f5edf3d2b5ae2c3a88db0da91e
443
asm
Assembly
data/maps/objects/SSAnneBow.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/maps/objects/SSAnneBow.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/maps/objects/SSAnneBow.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
SSAnneBow_Object: db $23 ; border block def_warps warp 13, 6, 0, SS_ANNE_3F warp 13, 7, 0, SS_ANNE_3F def_signs def_objects object SPRITE_SUPER_NERD, 5, 2, STAY, UP, 1 ; person object SPRITE_SAILOR, 4, 9, STAY, NONE, 2 ; person object SPRITE_COOLTRAINER_M, 7, 11, STAY, NONE, 3 ; person object SPRITE_SAILOR, 4, 4, STAY, DOWN, 4, OPP_SAILOR, 1 object SPRITE_SAILOR, 10, 8, STAY, UP, 5, OPP_SAILOR, 2 def_warps_to SS_ANNE_BOW
24.611111
59
0.717833
2f366e4c89e9a33f7660622ef1bc3254eefe0474
437
asm
Assembly
oeis/047/A047253.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/047/A047253.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/047/A047253.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A047253: Numbers that are congruent to {1, 2, 3, 4, 5} mod 6. ; Submitted by Christian Krause ; 1,2,3,4,5,7,8,9,10,11,13,14,15,16,17,19,20,21,22,23,25,26,27,28,29,31,32,33,34,35,37,38,39,40,41,43,44,45,46,47,49,50,51,52,53,55,56,57,58,59,61,62,63,64,65,67,68,69,70,71,73,74,75,76,77,79,80,81,82,83,85,86,87,88,89,91,92,93,94,95,97,98,99,100,101,103,104,105,106,107,109,110,111,112,113,115,116,117,118,119 mul $0,36 div $0,30 add $0,1
54.625
310
0.670481
2ff5a74f084c5d83f61c7f8a49e928516b102026
88
asm
Assembly
3rdParties/src/nasm/nasm-2.15.02/test/br3392640.asm
blue3k/StormForge
1557e699a673ae9adcc8f987868139f601ec0887
[ "Apache-2.0" ]
1
2020-06-20T07:35:25.000Z
2020-06-20T07:35:25.000Z
3rdParties/src/nasm/nasm-2.15.02/test/br3392640.asm
blue3k/StormForge
1557e699a673ae9adcc8f987868139f601ec0887
[ "Apache-2.0" ]
null
null
null
3rdParties/src/nasm/nasm-2.15.02/test/br3392640.asm
blue3k/StormForge
1557e699a673ae9adcc8f987868139f601ec0887
[ "Apache-2.0" ]
null
null
null
%imacro mac 1-2 j%+1 %endmacro mac c, label
17.6
24
0.340909
8a974ab60b68619f209cc81110e0ee0bf1cd6813
96
asm
Assembly
tools/yasm/tests/nasm/string.asm
fasttr-org/ftr
ddba517fb53062d5dc919c94526607bb39bff4b9
[ "BSD-3-Clause-Clear" ]
null
null
null
tools/yasm/tests/nasm/string.asm
fasttr-org/ftr
ddba517fb53062d5dc919c94526607bb39bff4b9
[ "BSD-3-Clause-Clear" ]
null
null
null
tools/yasm/tests/nasm/string.asm
fasttr-org/ftr
ddba517fb53062d5dc919c94526607bb39bff4b9
[ "BSD-3-Clause-Clear" ]
null
null
null
mov eax, 'hi' mov eax, 'hehe' mov eax, 'hello' mov eax, '' db 0,0,0 db 'hi"' db "hi\" db "hi\n"
10.666667
16
0.552083
b36f4d1db53bb176cdc9b1dcd3b9185fcbd2456f
12,576
asm
Assembly
demos/os/ucosii/stm32f10x/ucosii/uC-CPU/ARM-Cortex-M3/IAR/cpu_a.asm
linghu0060/CmBacktrace
8bbd42533c5a306b62eaae777b87de01ae7f8bc3
[ "MIT" ]
1,081
2017-01-09T05:33:29.000Z
2022-03-31T07:05:36.000Z
demos/os/ucosii/stm32f10x/ucosii/uC-CPU/ARM-Cortex-M3/IAR/cpu_a.asm
linghu0060/CmBacktrace
8bbd42533c5a306b62eaae777b87de01ae7f8bc3
[ "MIT" ]
43
2017-05-08T03:06:45.000Z
2022-03-30T12:13:59.000Z
demos/os/ucosii/stm32f10x/ucosii/uC-CPU/ARM-Cortex-M3/IAR/cpu_a.asm
linghu0060/CmBacktrace
8bbd42533c5a306b62eaae777b87de01ae7f8bc3
[ "MIT" ]
513
2017-01-09T05:33:32.000Z
2022-03-31T16:04:44.000Z
;******************************************************************************************************** ; uC/CPU ; CPU CONFIGURATION & PORT LAYER ; ; (c) Copyright 2004-2011; Micrium, Inc.; Weston, FL ; ; All rights reserved. Protected by international copyright laws. ; ; uC/CPU is provided in source form to registered licensees ONLY. It is ; illegal to distribute this source code to any third party unless you receive ; written permission by an authorized Micrium representative. Knowledge of ; the source code may NOT be used to develop a similar product. ; ; Please help us continue to provide the Embedded community with the finest ; software available. Your honesty is greatly appreciated. ; ; You can contact us at www.micrium.com. ;******************************************************************************************************** ;******************************************************************************************************** ; ; CPU PORT FILE ; ; ARM-Cortex-M3 ; IAR C Compiler ; ; Filename : cpu_a.asm ; Version : V1.29.01.00 ; Programmer(s) : JJL ;******************************************************************************************************** ;******************************************************************************************************** ; PUBLIC FUNCTIONS ;******************************************************************************************************** PUBLIC CPU_IntDis PUBLIC CPU_IntEn PUBLIC CPU_SR_Save PUBLIC CPU_SR_Restore PUBLIC CPU_WaitForInt PUBLIC CPU_WaitForExcept PUBLIC CPU_CntLeadZeros PUBLIC CPU_CntTrailZeros PUBLIC CPU_RevBits ;******************************************************************************************************** ; CODE GENERATION DIRECTIVES ;******************************************************************************************************** RSEG CODE:CODE:NOROOT(2) THUMB ;$PAGE ;******************************************************************************************************** ; DISABLE and ENABLE INTERRUPTS ; ; Description : Disable/Enable interrupts. ; ; Prototypes : void CPU_IntDis(void); ; void CPU_IntEn (void); ;******************************************************************************************************** CPU_IntDis CPSID I BX LR CPU_IntEn CPSIE I BX LR ;******************************************************************************************************** ; CRITICAL SECTION FUNCTIONS ; ; Description : Disable/Enable interrupts by preserving the state of interrupts. Generally speaking, the ; state of the interrupt disable flag is stored in the local variable 'cpu_sr' & interrupts ; are then disabled ('cpu_sr' is allocated in all functions that need to disable interrupts). ; The previous interrupt state is restored by copying 'cpu_sr' into the CPU's status register. ; ; Prototypes : CPU_SR CPU_SR_Save (void); ; void CPU_SR_Restore(CPU_SR cpu_sr); ; ; Note(s) : (1) These functions are used in general like this : ; ; void Task (void *p_arg) ; { ; CPU_SR_ALLOC(); /* Allocate storage for CPU status register */ ; : ; : ; CPU_CRITICAL_ENTER(); /* cpu_sr = CPU_SR_Save(); */ ; : ; : ; CPU_CRITICAL_EXIT(); /* CPU_SR_Restore(cpu_sr); */ ; : ; } ;******************************************************************************************************** CPU_SR_Save MRS R0, PRIMASK ; Set prio int mask to mask all (except faults) CPSID I BX LR CPU_SR_Restore ; See Note #2. MSR PRIMASK, R0 BX LR ;$PAGE ;******************************************************************************************************** ; WAIT FOR INTERRUPT ; ; Description : Enters sleep state, which will be exited when an interrupt is received. ; ; Prototypes : void CPU_WaitForInt (void) ; ; Argument(s) : none. ;******************************************************************************************************** CPU_WaitForInt WFI ; Wait for interrupt BX LR ;******************************************************************************************************** ; WAIT FOR EXCEPTION ; ; Description : Enters sleep state, which will be exited when an exception is received. ; ; Prototypes : void CPU_WaitForExcept (void) ; ; Argument(s) : none. ;******************************************************************************************************** CPU_WaitForExcept WFE ; Wait for exception BX LR ;$PAGE ;******************************************************************************************************** ; CPU_CntLeadZeros() ; COUNT LEADING ZEROS ; ; Description : Counts the number of contiguous, most-significant, leading zero bits before the ; first binary one bit in a data value. ; ; Prototype : CPU_DATA CPU_CntLeadZeros(CPU_DATA val); ; ; Argument(s) : val Data value to count leading zero bits. ; ; Return(s) : Number of contiguous, most-significant, leading zero bits in 'val'. ; ; Caller(s) : Application. ; ; This function is an INTERNAL CPU module function but MAY be called by application ; function(s). ; ; Note(s) : (1) (a) Supports 32-bit data value size as configured by 'CPU_DATA' (see 'cpu.h ; CPU WORD CONFIGURATION Note #1'). ; ; (b) For 32-bit values : ; ; b31 b30 b29 ... b04 b03 b02 b01 b00 # Leading Zeros ; --- --- --- --- --- --- --- --- --------------- ; 1 x x x x x x x 0 ; 0 1 x x x x x x 1 ; 0 0 1 x x x x x 2 ; : : : : : : : : : ; : : : : : : : : : ; 0 0 0 1 x x x x 27 ; 0 0 0 0 1 x x x 28 ; 0 0 0 0 0 1 x x 29 ; 0 0 0 0 0 0 1 x 30 ; 0 0 0 0 0 0 0 1 31 ; 0 0 0 0 0 0 0 0 32 ; ; ; (2) MUST be defined in 'cpu_a.asm' (or 'cpu_c.c') if CPU_CFG_LEAD_ZEROS_ASM_PRESENT is ; #define'd in 'cpu_cfg.h' or 'cpu.h'. ;******************************************************************************************************** CPU_CntLeadZeros CLZ R0, R0 ; Count leading zeros BX LR ;$PAGE ;******************************************************************************************************** ; CPU_CntTrailZeros() ; COUNT TRAILING ZEROS ; ; Description : Counts the number of contiguous, least-significant, trailing zero bits before the ; first binary one bit in a data value. ; ; Prototype : CPU_DATA CPU_CntTrailZeros(CPU_DATA val); ; ; Argument(s) : val Data value to count trailing zero bits. ; ; Return(s) : Number of contiguous, least-significant, trailing zero bits in 'val'. ; ; Caller(s) : Application. ; ; This function is an INTERNAL CPU module function but MAY be called by application ; function(s). ; ; Note(s) : (1) (a) Supports 32-bit data value size as configured by 'CPU_DATA' (see 'cpu.h ; CPU WORD CONFIGURATION Note #1'). ; ; (b) For 32-bit values : ; ; b31 b30 b29 b28 b27 ... b02 b01 b00 # Trailing Zeros ; --- --- --- --- --- --- --- --- ---------------- ; x x x x x x x 1 0 ; x x x x x x 1 0 1 ; x x x x x 1 0 0 2 ; : : : : : : : : : ; : : : : : : : : : ; x x x x 1 0 0 0 27 ; x x x 1 0 0 0 0 28 ; x x 1 0 0 0 0 0 29 ; x 1 0 0 0 0 0 0 30 ; 1 0 0 0 0 0 0 0 31 ; 0 0 0 0 0 0 0 0 32 ; ; ; (2) MUST be defined in 'cpu_a.asm' (or 'cpu_c.c') if CPU_CFG_TRAIL_ZEROS_ASM_PRESENT is ; #define'd in 'cpu_cfg.h' or 'cpu.h'. ;******************************************************************************************************** CPU_CntTrailZeros RBIT R0, R0 ; Reverse bits CLZ R0, R0 ; Count trailing zeros BX LR ;$PAGE ;******************************************************************************************************** ; CPU_RevBits() ; REVERSE BITS ; ; Description : Reverses the bits in a data value. ; ; Prototypes : CPU_DATA CPU_RevBits(CPU_DATA val); ; ; Argument(s) : val Data value to reverse bits. ; ; Return(s) : Value with all bits in 'val' reversed (see Note #1). ; ; Caller(s) : Application. ; ; This function is an INTERNAL CPU module function but MAY be called by application function(s). ; ; Note(s) : (1) The final, reversed data value for 'val' is such that : ; ; 'val's final bit 0 = 'val's original bit N ; 'val's final bit 1 = 'val's original bit (N - 1) ; 'val's final bit 2 = 'val's original bit (N - 2) ; ; ... ... ; ; 'val's final bit (N - 2) = 'val's original bit 2 ; 'val's final bit (N - 1) = 'val's original bit 1 ; 'val's final bit N = 'val's original bit 0 ;******************************************************************************************************** CPU_RevBits RBIT R0, R0 ; Reverse bits BX LR ;$PAGE ;******************************************************************************************************** ; CPU ASSEMBLY PORT FILE END ;******************************************************************************************************** END
43.818815
110
0.322678
a049c4eb210b61f8f25f9bc0f83c95f413f18469
679
asm
Assembly
libsrc/z80_crt0s/crt0/l_case.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/z80_crt0s/crt0/l_case.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/z80_crt0s/crt0/l_case.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; Small C+ Z80 Run time library ; The new case statement..maybe things will work now! ; 13/10/98 PUBLIC l_case .l_case ex de,hl ;de = switch value pop hl ;hl -> switch table .swloop ld c,(hl) inc hl ld b,(hl) ;bc -> case addr, else 0 inc hl ld a,b or c jr z,swend ;default or continuation code ld a,(hl) inc hl cp e ld a,(hl) inc hl jr nz,swloop cp d jr nz,swloop ld h,b ;cases matched ld l,c .swend jp (hl)
19.970588
61
0.413844
8950eb9e3cd8ced9b47037b439229e6bf38c3d81
1,804
asm
Assembly
libsrc/target/sv8000/stdio/generic_console.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/target/sv8000/stdio/generic_console.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/target/sv8000/stdio/generic_console.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; ; SV-8000 supports 16x32 screen + 256x192? SECTION code_clib PUBLIC generic_console_cls PUBLIC generic_console_scrollup PUBLIC generic_console_printc PUBLIC generic_console_set_ink PUBLIC generic_console_set_paper PUBLIC generic_console_set_attribute EXTERN CONSOLE_COLUMNS EXTERN CONSOLE_ROWS EXTERN __sv8000_mode EXTERN printc_MODE1 EXTERN generic_console_text_xypos INCLUDE "target/sv8000/def/sv8000.def" generic_console_set_ink: generic_console_set_attribute: generic_console_set_paper: ret generic_console_cls: ld hl, DISPLAY ld de, DISPLAY +1 ld a,(__sv8000_mode) and a jr z,cls_text ld bc,3071 ld (hl),0 ldir ret cls_text: ld bc, +(CONSOLE_COLUMNS * CONSOLE_ROWS) - 1 ld (hl),32 ldir ret ; c = x ; b = y ; a = character to print ; e = raw generic_console_printc: ex af,af ld a,(__sv8000_mode) cp MODE_1 jp z,printc_MODE1 and a ret nz ex af,af call generic_console_text_xypos ld (hl),a ret generic_console_text_xypos: ld hl,DISPLAY - CONSOLE_COLUMNS ld de,CONSOLE_COLUMNS inc b generic_console_printc_1: add hl,de djnz generic_console_printc_1 generic_console_printc_3: add hl,bc ;hl now points to address in display ret generic_console_scrollup: push de push bc ld a,(__sv8000_mode) and a jp nz,scrollup_hires ld hl, DISPLAY + CONSOLE_COLUMNS ld de, DISPLAY ld bc,+ ((CONSOLE_COLUMNS) * (CONSOLE_ROWS-1)) ldir ex de,hl ld b,CONSOLE_COLUMNS generic_console_scrollup_3: ld (hl),32 inc hl djnz generic_console_scrollup_3 pop bc pop de ret scrollup_hires: ld de, DISPLAY ld hl, DISPLAY + 256 ld bc, 32 * 88 ldir ex de,hl ld b,0 xor a scrollup_hires_1: ld (hl),a inc hl djnz scrollup_hires_1 pop bc pop de ret
16.550459
61
0.725055
e47429988b51782adad13adc9c999cfabaaad714
8,296
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2.log_21829_101.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2.log_21829_101.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2.log_21829_101.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 %r14 push %r15 push %rcx push %rdi push %rsi lea addresses_A_ht+0xb875, %rsi lea addresses_A_ht+0x1becd, %rdi cmp %r15, %r15 mov $12, %rcx rep movsl nop nop nop nop nop and $46002, %rdi lea addresses_normal_ht+0x174c5, %rdi nop nop nop nop nop xor %r14, %r14 movups (%rdi), %xmm5 vpextrq $0, %xmm5, %r13 nop nop nop and %rsi, %rsi lea addresses_UC_ht+0xcfc5, %rsi lea addresses_A_ht+0xaff5, %rdi nop nop nop nop nop cmp $55500, %r10 mov $113, %rcx rep movsq xor %rsi, %rsi lea addresses_A_ht+0x16615, %rsi nop nop xor %r14, %r14 movw $0x6162, (%rsi) nop nop nop nop nop sub %rsi, %rsi lea addresses_D_ht+0x10a45, %rsi lea addresses_A_ht+0x2cc5, %rdi clflush (%rdi) sub %r12, %r12 mov $85, %rcx rep movsl nop nop cmp %r10, %r10 lea addresses_UC_ht+0xfd0d, %r10 nop add %rdi, %rdi mov $0x6162636465666768, %rcx movq %rcx, (%r10) nop add $7647, %rsi lea addresses_normal_ht+0x1c175, %rsi lea addresses_WT_ht+0x16cf5, %rdi nop nop nop nop add $5969, %r14 mov $20, %rcx rep movsw nop nop sub $16067, %r10 lea addresses_UC_ht+0x7e8d, %rsi lea addresses_A_ht+0x1c345, %rdi nop nop nop nop add %r10, %r10 mov $116, %rcx rep movsl nop nop nop nop nop sub %r12, %r12 lea addresses_UC_ht+0x195ad, %r10 nop nop add %r15, %r15 movb $0x61, (%r10) nop nop nop nop and $4352, %r15 lea addresses_normal_ht+0x5d45, %rsi lea addresses_D_ht+0x1bf26, %rdi clflush (%rsi) inc %r14 mov $37, %rcx rep movsb nop nop nop nop nop cmp $51372, %rsi lea addresses_WT_ht+0x3fc5, %rsi lea addresses_D_ht+0x12fc5, %rdi xor $47810, %r12 mov $80, %rcx rep movsq nop dec %r13 lea addresses_WT_ht+0x10c5, %rsi lea addresses_normal_ht+0x7265, %rdi nop nop nop nop nop sub $7663, %r12 mov $43, %rcx rep movsq sub %rsi, %rsi lea addresses_WC_ht+0x14345, %rsi lea addresses_D_ht+0xbae, %rdi clflush (%rdi) nop nop nop nop nop and $1128, %r10 mov $24, %rcx rep movsq sub $3623, %rsi lea addresses_A_ht+0xe7ad, %r13 nop nop add $41091, %rsi mov (%r13), %r12w nop add %rcx, %rcx lea addresses_UC_ht+0x1a7c5, %r15 nop nop nop nop nop and %r14, %r14 and $0xffffffffffffffc0, %r15 vmovaps (%r15), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $1, %xmm5, %r13 nop cmp %r10, %r10 pop %rsi pop %rdi pop %rcx pop %r15 pop %r14 pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r15 push %rax push %rbx push %rcx // Store lea addresses_WT+0x1a7f7, %r12 nop add %r11, %r11 movb $0x51, (%r12) nop nop nop nop cmp $36548, %r15 // Faulty Load lea addresses_US+0x177c5, %r11 clflush (%r11) nop nop nop cmp %r10, %r10 mov (%r11), %r12w lea oracles, %r11 and $0xff, %r12 shlq $12, %r12 mov (%r11,%r12,1), %r12 pop %rcx pop %rbx pop %rax pop %r15 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 1, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': True}, 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 11, 'same': False}} {'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 */
33.184
2,999
0.659474
4b1109b5c14b39533f454a74da6aea49582c6b46
317
asm
Assembly
libsrc/_DEVELOPMENT/z80/c/sdcc_iy/im2_create_generic_isr_8080.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/z80/c/sdcc_iy/im2_create_generic_isr_8080.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/z80/c/sdcc_iy/im2_create_generic_isr_8080.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; void *im2_create_generic_isr_8080(uint8_t num_callback, void *address) SECTION code_z80 PUBLIC _im2_create_generic_isr_8080 EXTERN l_im2_create_generic_isr_8080_callee _im2_create_generic_isr_8080: pop af pop hl pop de push de push hl push af jp l_im2_create_generic_isr_8080_callee
15.095238
72
0.791798