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
3136d9efeda1d5c686ab6bd515a583af27d57b0d
359
asm
Assembly
programs/oeis/137/A137866.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/137/A137866.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/137/A137866.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A137866: a(1)=0. For n >= 2, a(n) = gcd(a(n-1)+1, n). ; 0,1,1,2,1,2,1,2,3,2,1,2,1,2,3,4,1,2,1,2,3,2,1,2,1,2,3,4,1,2,1,2,3,2,1,2,1,2,3,4,1,2,1,2,3,2,1,2,1,2,3,4,1,2,1,2,3,2,1,2,1,2,3,4,5,6,1,2,3,2,1,2,1,2,3,4,1,2,1,2,3,2,1,2,1,2,3,4,1,2,1,2,3,2,1,2,1,2,3,4 mov $2,$0 lpb $0 mov $0,$2 add $1,1 add $3,2 gcd $1,$3 sub $3,1 sub $0,$3 lpe mov $0,$1
25.642857
201
0.479109
32fc157fc8e656a4a1376346d01dc382cf71c473
348
asm
Assembly
oeis/340/A340495.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/340/A340495.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/340/A340495.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A340495: Records in first differences of A340494. ; Submitted by Jamie Morken(s2) ; 2,3,8,33,138,563,2268,9093,36398,145623,582528,2330153,9320658,37282683,149130788,596523213,2386092918,9544371743,38177487048,152709948273,610839793178,2443359172803 mov $2,1 lpb $0 sub $0,1 trn $1,1 add $1,$2 mul $2,4 add $2,2 lpe mov $0,$1 add $0,2
23.2
167
0.735632
eb32e0515f65040edca17b2715df0d6e1beec653
2,440
asm
Assembly
mbr.asm
promix17/asm_mbr_iso
849d4754ccfc59d538a2219df7be91b3ede4c93f
[ "MIT" ]
null
null
null
mbr.asm
promix17/asm_mbr_iso
849d4754ccfc59d538a2219df7be91b3ede4c93f
[ "MIT" ]
null
null
null
mbr.asm
promix17/asm_mbr_iso
849d4754ccfc59d538a2219df7be91b3ede4c93f
[ "MIT" ]
null
null
null
%define BOOT_ADDR 0x7C00 %define endl 10,13,0 jmp boot_start copyright db "Promix17 boot iso v 0.2", endl sendl db endl boot_start: cld xor cx, cx mov ss, cx mov es, cx mov ds, cx mov sp, BOOT_ADDR mov bp, sp mov si, BOOT_ADDR + copyright call print jmp start print: pusha print_char_loop: lodsb test al, al jz short pr_exit mov ah, 0eh mov bl, 7 int 10h jmp short print_char_loop pr_exit: popa ret print_char: ; char in al pusha mov ah, 0eh mov bl, 7 int 10h popa ret start: main_loop: call cmos jmp main_loop ret ; library string db 0,0,0,0,0,0,0,0 number dw 0 string_to_number: pusha mov si, BOOT_ADDR + string mov ax, 0 xor cl, cl s_to_n_loop: mov cl, byte [si] cmp cl, 0 je end_s_to_n sub cl, '0' mov bx,10 mul bx add ax, cx inc si jmp s_to_n_loop mov [BOOT_ADDR + number], ax end_s_to_n: popa ret number_to_string: pusha xor cx, cx mov bx, 10 oi2: xor dx,dx div bx push dx inc cx test ax, ax jnz oi2 mov di, BOOT_ADDR + string oi3: pop bx add bl, '0' mov byte [di], bl inc di loop oi3 xor bx, bx mov byte [di], bl popa ret cmos: mov al, 07h call co mov al, '.' call print_char mov al, 08h call co mov al, '.' call print_char mov al, 09h call co mov al, ' ' call print_char mov al, 04h call co mov al, ':' call print_char mov al, 02h call co mov al, ':' call print_char mov al, 00h call co mov si, BOOT_ADDR + sendl call print mov al, 07h call input mov al, '.' call print_char mov al, 08h call input mov al, '.' call print_char mov al, 09h call input mov al, ' ' call print_char mov al, 04h call input mov al, ':' call print_char mov al, 02h call input mov al, ':' call print_char mov al, 00h call input mov si, BOOT_ADDR + sendl call print ret co: out 70h, al xor ax, ax in al, 71h push ax shr al, 4 add al, '0' call print_char pop ax and al, 0Fh add al, '0' call print_char ret input: push ax xor ax, ax mov ah, 10h int 16h mov bl, al sub bl, '0' shl bl, 4 call print_char mov ah, 10h int 16h push ax call print_char pop ax sub al, '0' add al, bl mov bl, al mov al, 4bh out 70h,al mov al,01h out 71h,al pop ax out 070h, al mov al, bl out 071h, al mov al,0bh out 70h,al mov al,0 ret
11.960784
44
0.613525
0b50ee1888e90e002dc4972e537fbf888f8320cf
669
asm
Assembly
oeis/028/A028910.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/028/A028910.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/028/A028910.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A028910: Arrange digits of 2^n in descending order. ; Submitted by Jamie Morken(r1) ; 1,2,4,8,61,32,64,821,652,521,4210,8420,9640,9821,86431,87632,66553,732110,644221,885422,8765410,9752210,9444310,8888630,77766211,55443332,88766410,877432211,866554432,987653210,8774432110,8876444321,9997664422,9998855432,99887764111,98876543333,98777666431,987754433321,998777644420,988887555431,9977766521110,9955553222210,9865444311100,9988763222000,98766544421110,88887543332210,87777666444310,888775544333210,987776665442110,999655443322211,9998866544222110,9988876554322211,9997766554433200 mov $1,2 pow $1,$0 seq $1,4186 ; Arrange digits of n in decreasing order. mov $0,$1
74.333333
497
0.843049
77dca94cd2fa6d159ff44e2252b604305cb250d2
698
asm
Assembly
tests/dos/testlods.asm
wwiv/door86c
bfdc6408bf632da74a1e58d97da3257d715f3f6e
[ "Apache-2.0" ]
1
2021-11-04T03:13:25.000Z
2021-11-04T03:13:25.000Z
tests/dos/testlods.asm
wwiv/door86c
bfdc6408bf632da74a1e58d97da3257d715f3f6e
[ "Apache-2.0" ]
null
null
null
tests/dos/testlods.asm
wwiv/door86c
bfdc6408bf632da74a1e58d97da3257d715f3f6e
[ "Apache-2.0" ]
null
null
null
; ---------------------------------------------------------------------------- ; lods.asm ; ---------------------------------------------------------------------------- .model small .stack 128 .code start: mov ax, @data mov ds, ax xor ax, ax mov ah, 0Eh mov si, offset Msg cld printmsg: lodsb cmp al, 0 jz done int 10h jmp printmsg done: mov ah, 9 lea dx, DoneMsg int 21h mov ah, 4ch int 21h .data Msg byte 'Hello world.', 13, 10, 0 DoneMsg byte 'Done!', 13, 10, '$' end start
18.864865
78
0.313754
8598064e7114dddbc781cf1c458e823924c9fe77
6,230
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1290.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_1290.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_1290.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 %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x1ecba, %rdx nop and $21034, %rdi mov $0x6162636465666768, %rcx movq %rcx, %xmm6 vmovups %ymm6, (%rdx) nop nop nop nop inc %r9 lea addresses_UC_ht+0x34ea, %r15 nop nop nop inc %r10 movb (%r15), %bl inc %r15 lea addresses_A_ht+0x102ea, %rcx and %r10, %r10 mov (%rcx), %r15d nop nop sub $35389, %rcx lea addresses_WT_ht+0x1a0ea, %r10 nop nop nop nop nop sub $41750, %r9 mov $0x6162636465666768, %r15 movq %r15, %xmm4 and $0xffffffffffffffc0, %r10 movaps %xmm4, (%r10) nop nop nop xor %r15, %r15 lea addresses_A_ht+0xb8c4, %r9 nop nop add %r15, %r15 mov $0x6162636465666768, %rdx movq %rdx, %xmm4 movups %xmm4, (%r9) nop nop nop add $29663, %rdi lea addresses_WT_ht+0x28ea, %rsi lea addresses_WC_ht+0x170ea, %rdi clflush (%rdi) cmp %r15, %r15 mov $33, %rcx rep movsb add $8060, %rbx lea addresses_A_ht+0x178ea, %rbx nop nop nop nop xor %rdi, %rdi vmovups (%rbx), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $0, %xmm5, %rsi nop nop nop nop nop mfence pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r15 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %rax push %rbp push %rbx push %rsi // Store lea addresses_WT+0x19d6a, %r13 nop nop nop nop sub $45342, %r10 mov $0x5152535455565758, %rax movq %rax, (%r13) sub %rbx, %rbx // Load lea addresses_UC+0xefea, %rbp nop nop nop nop inc %rsi movb (%rbp), %r10b nop nop nop nop nop add $836, %rbx // Faulty Load lea addresses_normal+0xd8ea, %r10 nop nop inc %rbx mov (%r10), %r12 lea oracles, %rbp and $0xff, %r12 shlq $12, %r12 mov (%rbp,%r12,1), %r12 pop %rsi pop %rbx pop %rbp pop %rax pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_normal', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_WT', 'AVXalign': False, 'size': 8}} {'src': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_UC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_normal', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32}} {'src': {'NT': True, 'same': False, 'congruent': 10, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'src': {'NT': True, 'same': True, 'congruent': 9, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 16}} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 1, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16}} {'src': {'same': False, 'congruent': 9, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'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 */
37.305389
2,999
0.658587
9ead06de8c4f22935fe865175e5c5a474eab7f1f
1,061
asm
Assembly
Working Disassembly/General/Sprites/Shields/Map - Invincibility.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
null
null
null
Working Disassembly/General/Sprites/Shields/Map - Invincibility.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
null
null
null
Working Disassembly/General/Sprites/Shields/Map - Invincibility.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
null
null
null
dc.w word_18AFC-Map_Invincibility dc.w word_18AFE-Map_Invincibility dc.w word_18B06-Map_Invincibility dc.w word_18B0E-Map_Invincibility dc.w word_18B16-Map_Invincibility dc.w word_18B1E-Map_Invincibility dc.w word_18B26-Map_Invincibility dc.w word_18B2E-Map_Invincibility dc.w word_18B36-Map_Invincibility word_18AFC: dc.w 0 ; DATA XREF: ROM:00018AEAo word_18AFE: dc.w 1 ; DATA XREF: ROM:00018AEAo dc.b $F8, 0, 0, 0, $FF, $FC word_18B06: dc.w 1 ; DATA XREF: ROM:00018AEAo dc.b $F8, 0, 0, 1, $FF, $FC word_18B0E: dc.w 1 ; DATA XREF: ROM:00018AEAo dc.b $F8, 1, 0, 2, $FF, $FC word_18B16: dc.w 1 ; DATA XREF: ROM:00018AEAo dc.b $F8, 1, 0, 4, $FF, $FC word_18B1E: dc.w 1 ; DATA XREF: ROM:00018AEAo dc.b $F8, 1, 0, 6, $FF, $FC word_18B26: dc.w 1 ; DATA XREF: ROM:00018AEAo dc.b $F8, 5, 0, 8, $FF, $F8 word_18B2E: dc.w 1 ; DATA XREF: ROM:00018AEAo dc.b $F8, 5, 0, $C, $FF, $F8 word_18B36: dc.w 1 ; DATA XREF: ROM:00018AEAo dc.b $F0, $F, 0, $10, $FF, $F0
39.296296
48
0.634307
2339866fb96c08e090b86295a545110074fa91b7
635
asm
Assembly
oeis/014/A014633.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/014/A014633.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/014/A014633.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A014633: Even pentagonal numbers. ; Submitted by Jamie Morken(s1.) ; 0,12,22,70,92,176,210,330,376,532,590,782,852,1080,1162,1426,1520,1820,1926,2262,2380,2752,2882,3290,3432,3876,4030,4510,4676,5192,5370,5922,6112,6700,6902,7526,7740,8400,8626,9322,9560,10292,10542,11310,11572,12376,12650,13490,13776,14652,14950,15862,16172,17120,17442,18426,18760,19780,20126,21182,21540,22632,23002,24130,24512,25676,26070,27270,27676,28912,29330,30602,31032,32340,32782,34126,34580,35960,36426,37842,38320,39772,40262,41750,42252,43776,44290,45850,46376,47972,48510,50142,50692 mov $1,$0 mul $0,2 mod $1,2 add $0,$1 mul $0,3 bin $0,2 div $0,3
52.916667
499
0.774803
42115fd8fc3688f8cab121e1aa921a1b61d5ca8b
5,600
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48_notsx.log_21829_1916.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_notsx.log_21829_1916.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_notsx.log_21829_1916.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 %rax push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x16778, %rsi lea addresses_WT_ht+0x8378, %rdi cmp %rdx, %rdx mov $69, %rcx rep movsw nop dec %rax lea addresses_UC_ht+0x1c378, %r10 nop nop nop and %r13, %r13 movb $0x61, (%r10) nop nop nop nop add %rdx, %rdx lea addresses_WT_ht+0x106ec, %rsi lea addresses_WC_ht+0xad78, %rdi sub %r13, %r13 mov $100, %rcx rep movsl nop nop nop nop xor %r13, %r13 lea addresses_normal_ht+0x3ae1, %r13 nop nop nop cmp $62144, %rax movb $0x61, (%r13) nop add $56332, %r13 lea addresses_WT_ht+0x1a168, %rdx nop nop nop cmp $33112, %r13 mov (%rdx), %rcx nop nop nop cmp $15992, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %r9 push %rbx push %rcx push %rdi // Store lea addresses_WT+0x4e78, %r14 dec %r11 movl $0x51525354, (%r14) nop nop nop nop nop add $39546, %r12 // Store lea addresses_A+0xaf3e, %r9 inc %rcx mov $0x5152535455565758, %rdi movq %rdi, (%r9) nop nop nop nop sub $13672, %rdi // Faulty Load lea addresses_US+0x17378, %r9 clflush (%r9) nop xor $57054, %rbx mov (%r9), %ecx lea oracles, %rdi and $0xff, %rcx shlq $12, %rcx mov (%rdi,%rcx,1), %rcx pop %rdi pop %rcx pop %rbx pop %r9 pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_US', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WT', 'congruent': 8}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 8, 'type': 'addresses_A', 'congruent': 1}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_US', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_normal_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 11}, 'OP': 'STOR'} {'dst': {'same': True, 'congruent': 5, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_WT_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_normal_ht', 'congruent': 0}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 8, 'type': 'addresses_WT_ht', 'congruent': 4}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
42.105263
2,999
0.658393
860aef7e4631b8b3f0a3c0d58f122fa7284c7d08
5,330
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0xca.log_21829_1302.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0xca.log_21829_1302.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0xca.log_21829_1302.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 %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x1e448, %rsi lea addresses_A_ht+0x15840, %rdi nop nop nop cmp $30445, %rdx mov $71, %rcx rep movsl nop cmp $611, %rsi lea addresses_WC_ht+0x23d0, %r12 inc %r11 movw $0x6162, (%r12) nop nop nop and $57057, %rsi lea addresses_normal_ht+0x1b1b, %r12 nop nop nop xor $18325, %rsi movups (%r12), %xmm2 vpextrq $1, %xmm2, %rdi nop nop nop cmp %rcx, %rcx lea addresses_UC_ht+0x15740, %rsi lea addresses_WT_ht+0x11b40, %rdi nop nop nop nop sub %r9, %r9 mov $8, %rcx rep movsl xor %r9, %r9 lea addresses_D_ht+0xcc3c, %rdx clflush (%rdx) add %rdi, %rdi mov (%rdx), %r11w nop nop nop nop and %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r14 push %r9 push %rbx push %rdi // Store lea addresses_UC+0x1ae40, %rdi nop add %r13, %r13 movw $0x5152, (%rdi) nop nop cmp $25252, %rbx // Faulty Load lea addresses_RW+0xab40, %rbx cmp %r14, %r14 movb (%rbx), %r13b lea oracles, %r14 and $0xff, %r13 shlq $12, %r13 mov (%r14,%r13,1), %r13 pop %rdi pop %rbx pop %r9 pop %r14 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': True, 'same': False, 'size': 2, 'NT': True, 'type': 'addresses_RW'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_UC'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': True, 'same': True, 'size': 1, 'NT': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 3, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 10, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}} {'src': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'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 */
45.948276
2,999
0.657786
9823af038d0fe9a32242cf49744d42b24e710370
57,929
asm
Assembly
grep.asm
KaushikKPDARE/xv6-Clone-System-Call
43ae5658d425b694b7f89761509dcda690a3389a
[ "Apache-2.0", "MIT-0" ]
null
null
null
grep.asm
KaushikKPDARE/xv6-Clone-System-Call
43ae5658d425b694b7f89761509dcda690a3389a
[ "Apache-2.0", "MIT-0" ]
null
null
null
grep.asm
KaushikKPDARE/xv6-Clone-System-Call
43ae5658d425b694b7f89761509dcda690a3389a
[ "Apache-2.0", "MIT-0" ]
null
null
null
_grep: file format elf32-i386 Disassembly of section .text: 00000000 <grep>: char buf[1024]; int match(char*, char*); void grep(char *pattern, int fd) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 ec 28 sub $0x28,%esp int n, m; char *p, *q; m = 0; 6: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) while((n = read(fd, buf+m, sizeof(buf)-m-1)) > 0){ d: e9 c6 00 00 00 jmp d8 <grep+0xd8> m += n; 12: 8b 45 ec mov -0x14(%ebp),%eax 15: 01 45 f4 add %eax,-0xc(%ebp) buf[m] = '\0'; 18: 8b 45 f4 mov -0xc(%ebp),%eax 1b: 05 e0 0f 00 00 add $0xfe0,%eax 20: c6 00 00 movb $0x0,(%eax) p = buf; 23: c7 45 f0 e0 0f 00 00 movl $0xfe0,-0x10(%ebp) while((q = strchr(p, '\n')) != 0){ 2a: eb 51 jmp 7d <grep+0x7d> *q = 0; 2c: 8b 45 e8 mov -0x18(%ebp),%eax 2f: c6 00 00 movb $0x0,(%eax) if(match(pattern, p)){ 32: 8b 45 f0 mov -0x10(%ebp),%eax 35: 89 44 24 04 mov %eax,0x4(%esp) 39: 8b 45 08 mov 0x8(%ebp),%eax 3c: 89 04 24 mov %eax,(%esp) 3f: e8 bc 01 00 00 call 200 <match> 44: 85 c0 test %eax,%eax 46: 74 2c je 74 <grep+0x74> *q = '\n'; 48: 8b 45 e8 mov -0x18(%ebp),%eax 4b: c6 00 0a movb $0xa,(%eax) write(1, p, q+1 - p); 4e: 8b 45 e8 mov -0x18(%ebp),%eax 51: 83 c0 01 add $0x1,%eax 54: 89 c2 mov %eax,%edx 56: 8b 45 f0 mov -0x10(%ebp),%eax 59: 29 c2 sub %eax,%edx 5b: 89 d0 mov %edx,%eax 5d: 89 44 24 08 mov %eax,0x8(%esp) 61: 8b 45 f0 mov -0x10(%ebp),%eax 64: 89 44 24 04 mov %eax,0x4(%esp) 68: c7 04 24 01 00 00 00 movl $0x1,(%esp) 6f: e8 74 05 00 00 call 5e8 <write> } p = q+1; 74: 8b 45 e8 mov -0x18(%ebp),%eax 77: 83 c0 01 add $0x1,%eax 7a: 89 45 f0 mov %eax,-0x10(%ebp) m = 0; while((n = read(fd, buf+m, sizeof(buf)-m-1)) > 0){ m += n; buf[m] = '\0'; p = buf; while((q = strchr(p, '\n')) != 0){ 7d: c7 44 24 04 0a 00 00 movl $0xa,0x4(%esp) 84: 00 85: 8b 45 f0 mov -0x10(%ebp),%eax 88: 89 04 24 mov %eax,(%esp) 8b: e8 af 03 00 00 call 43f <strchr> 90: 89 45 e8 mov %eax,-0x18(%ebp) 93: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 97: 75 93 jne 2c <grep+0x2c> *q = '\n'; write(1, p, q+1 - p); } p = q+1; } if(p == buf) 99: 81 7d f0 e0 0f 00 00 cmpl $0xfe0,-0x10(%ebp) a0: 75 07 jne a9 <grep+0xa9> m = 0; a2: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) if(m > 0){ a9: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) ad: 7e 29 jle d8 <grep+0xd8> m -= p - buf; af: ba e0 0f 00 00 mov $0xfe0,%edx b4: 8b 45 f0 mov -0x10(%ebp),%eax b7: 29 c2 sub %eax,%edx b9: 89 d0 mov %edx,%eax bb: 01 45 f4 add %eax,-0xc(%ebp) memmove(buf, p, m); be: 8b 45 f4 mov -0xc(%ebp),%eax c1: 89 44 24 08 mov %eax,0x8(%esp) c5: 8b 45 f0 mov -0x10(%ebp),%eax c8: 89 44 24 04 mov %eax,0x4(%esp) cc: c7 04 24 e0 0f 00 00 movl $0xfe0,(%esp) d3: e8 ab 04 00 00 call 583 <memmove> { int n, m; char *p, *q; m = 0; while((n = read(fd, buf+m, sizeof(buf)-m-1)) > 0){ d8: 8b 45 f4 mov -0xc(%ebp),%eax db: ba ff 03 00 00 mov $0x3ff,%edx e0: 29 c2 sub %eax,%edx e2: 89 d0 mov %edx,%eax e4: 8b 55 f4 mov -0xc(%ebp),%edx e7: 81 c2 e0 0f 00 00 add $0xfe0,%edx ed: 89 44 24 08 mov %eax,0x8(%esp) f1: 89 54 24 04 mov %edx,0x4(%esp) f5: 8b 45 0c mov 0xc(%ebp),%eax f8: 89 04 24 mov %eax,(%esp) fb: e8 e0 04 00 00 call 5e0 <read> 100: 89 45 ec mov %eax,-0x14(%ebp) 103: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 107: 0f 8f 05 ff ff ff jg 12 <grep+0x12> if(m > 0){ m -= p - buf; memmove(buf, p, m); } } } 10d: c9 leave 10e: c3 ret 0000010f <main>: int main(int argc, char *argv[]) { 10f: 55 push %ebp 110: 89 e5 mov %esp,%ebp 112: 83 e4 f0 and $0xfffffff0,%esp 115: 83 ec 20 sub $0x20,%esp int fd, i; char *pattern; if(argc <= 1){ 118: 83 7d 08 01 cmpl $0x1,0x8(%ebp) 11c: 7f 19 jg 137 <main+0x28> printf(2, "usage: grep pattern [file ...]\n"); 11e: c7 44 24 04 d0 0b 00 movl $0xbd0,0x4(%esp) 125: 00 126: c7 04 24 02 00 00 00 movl $0x2,(%esp) 12d: e8 26 06 00 00 call 758 <printf> exit(); 132: e8 91 04 00 00 call 5c8 <exit> } pattern = argv[1]; 137: 8b 45 0c mov 0xc(%ebp),%eax 13a: 8b 40 04 mov 0x4(%eax),%eax 13d: 89 44 24 18 mov %eax,0x18(%esp) if(argc <= 2){ 141: 83 7d 08 02 cmpl $0x2,0x8(%ebp) 145: 7f 19 jg 160 <main+0x51> grep(pattern, 0); 147: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 14e: 00 14f: 8b 44 24 18 mov 0x18(%esp),%eax 153: 89 04 24 mov %eax,(%esp) 156: e8 a5 fe ff ff call 0 <grep> exit(); 15b: e8 68 04 00 00 call 5c8 <exit> } for(i = 2; i < argc; i++){ 160: c7 44 24 1c 02 00 00 movl $0x2,0x1c(%esp) 167: 00 168: e9 81 00 00 00 jmp 1ee <main+0xdf> if((fd = open(argv[i], 0)) < 0){ 16d: 8b 44 24 1c mov 0x1c(%esp),%eax 171: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 178: 8b 45 0c mov 0xc(%ebp),%eax 17b: 01 d0 add %edx,%eax 17d: 8b 00 mov (%eax),%eax 17f: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 186: 00 187: 89 04 24 mov %eax,(%esp) 18a: e8 79 04 00 00 call 608 <open> 18f: 89 44 24 14 mov %eax,0x14(%esp) 193: 83 7c 24 14 00 cmpl $0x0,0x14(%esp) 198: 79 2f jns 1c9 <main+0xba> printf(1, "grep: cannot open %s\n", argv[i]); 19a: 8b 44 24 1c mov 0x1c(%esp),%eax 19e: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 1a5: 8b 45 0c mov 0xc(%ebp),%eax 1a8: 01 d0 add %edx,%eax 1aa: 8b 00 mov (%eax),%eax 1ac: 89 44 24 08 mov %eax,0x8(%esp) 1b0: c7 44 24 04 f0 0b 00 movl $0xbf0,0x4(%esp) 1b7: 00 1b8: c7 04 24 01 00 00 00 movl $0x1,(%esp) 1bf: e8 94 05 00 00 call 758 <printf> exit(); 1c4: e8 ff 03 00 00 call 5c8 <exit> } grep(pattern, fd); 1c9: 8b 44 24 14 mov 0x14(%esp),%eax 1cd: 89 44 24 04 mov %eax,0x4(%esp) 1d1: 8b 44 24 18 mov 0x18(%esp),%eax 1d5: 89 04 24 mov %eax,(%esp) 1d8: e8 23 fe ff ff call 0 <grep> close(fd); 1dd: 8b 44 24 14 mov 0x14(%esp),%eax 1e1: 89 04 24 mov %eax,(%esp) 1e4: e8 07 04 00 00 call 5f0 <close> if(argc <= 2){ grep(pattern, 0); exit(); } for(i = 2; i < argc; i++){ 1e9: 83 44 24 1c 01 addl $0x1,0x1c(%esp) 1ee: 8b 44 24 1c mov 0x1c(%esp),%eax 1f2: 3b 45 08 cmp 0x8(%ebp),%eax 1f5: 0f 8c 72 ff ff ff jl 16d <main+0x5e> exit(); } grep(pattern, fd); close(fd); } exit(); 1fb: e8 c8 03 00 00 call 5c8 <exit> 00000200 <match>: int matchhere(char*, char*); int matchstar(int, char*, char*); int match(char *re, char *text) { 200: 55 push %ebp 201: 89 e5 mov %esp,%ebp 203: 83 ec 18 sub $0x18,%esp if(re[0] == '^') 206: 8b 45 08 mov 0x8(%ebp),%eax 209: 0f b6 00 movzbl (%eax),%eax 20c: 3c 5e cmp $0x5e,%al 20e: 75 17 jne 227 <match+0x27> return matchhere(re+1, text); 210: 8b 45 08 mov 0x8(%ebp),%eax 213: 8d 50 01 lea 0x1(%eax),%edx 216: 8b 45 0c mov 0xc(%ebp),%eax 219: 89 44 24 04 mov %eax,0x4(%esp) 21d: 89 14 24 mov %edx,(%esp) 220: e8 36 00 00 00 call 25b <matchhere> 225: eb 32 jmp 259 <match+0x59> do{ // must look at empty string if(matchhere(re, text)) 227: 8b 45 0c mov 0xc(%ebp),%eax 22a: 89 44 24 04 mov %eax,0x4(%esp) 22e: 8b 45 08 mov 0x8(%ebp),%eax 231: 89 04 24 mov %eax,(%esp) 234: e8 22 00 00 00 call 25b <matchhere> 239: 85 c0 test %eax,%eax 23b: 74 07 je 244 <match+0x44> return 1; 23d: b8 01 00 00 00 mov $0x1,%eax 242: eb 15 jmp 259 <match+0x59> }while(*text++ != '\0'); 244: 8b 45 0c mov 0xc(%ebp),%eax 247: 8d 50 01 lea 0x1(%eax),%edx 24a: 89 55 0c mov %edx,0xc(%ebp) 24d: 0f b6 00 movzbl (%eax),%eax 250: 84 c0 test %al,%al 252: 75 d3 jne 227 <match+0x27> return 0; 254: b8 00 00 00 00 mov $0x0,%eax } 259: c9 leave 25a: c3 ret 0000025b <matchhere>: // matchhere: search for re at beginning of text int matchhere(char *re, char *text) { 25b: 55 push %ebp 25c: 89 e5 mov %esp,%ebp 25e: 83 ec 18 sub $0x18,%esp if(re[0] == '\0') 261: 8b 45 08 mov 0x8(%ebp),%eax 264: 0f b6 00 movzbl (%eax),%eax 267: 84 c0 test %al,%al 269: 75 0a jne 275 <matchhere+0x1a> return 1; 26b: b8 01 00 00 00 mov $0x1,%eax 270: e9 9b 00 00 00 jmp 310 <matchhere+0xb5> if(re[1] == '*') 275: 8b 45 08 mov 0x8(%ebp),%eax 278: 83 c0 01 add $0x1,%eax 27b: 0f b6 00 movzbl (%eax),%eax 27e: 3c 2a cmp $0x2a,%al 280: 75 24 jne 2a6 <matchhere+0x4b> return matchstar(re[0], re+2, text); 282: 8b 45 08 mov 0x8(%ebp),%eax 285: 8d 48 02 lea 0x2(%eax),%ecx 288: 8b 45 08 mov 0x8(%ebp),%eax 28b: 0f b6 00 movzbl (%eax),%eax 28e: 0f be c0 movsbl %al,%eax 291: 8b 55 0c mov 0xc(%ebp),%edx 294: 89 54 24 08 mov %edx,0x8(%esp) 298: 89 4c 24 04 mov %ecx,0x4(%esp) 29c: 89 04 24 mov %eax,(%esp) 29f: e8 6e 00 00 00 call 312 <matchstar> 2a4: eb 6a jmp 310 <matchhere+0xb5> if(re[0] == '$' && re[1] == '\0') 2a6: 8b 45 08 mov 0x8(%ebp),%eax 2a9: 0f b6 00 movzbl (%eax),%eax 2ac: 3c 24 cmp $0x24,%al 2ae: 75 1d jne 2cd <matchhere+0x72> 2b0: 8b 45 08 mov 0x8(%ebp),%eax 2b3: 83 c0 01 add $0x1,%eax 2b6: 0f b6 00 movzbl (%eax),%eax 2b9: 84 c0 test %al,%al 2bb: 75 10 jne 2cd <matchhere+0x72> return *text == '\0'; 2bd: 8b 45 0c mov 0xc(%ebp),%eax 2c0: 0f b6 00 movzbl (%eax),%eax 2c3: 84 c0 test %al,%al 2c5: 0f 94 c0 sete %al 2c8: 0f b6 c0 movzbl %al,%eax 2cb: eb 43 jmp 310 <matchhere+0xb5> if(*text!='\0' && (re[0]=='.' || re[0]==*text)) 2cd: 8b 45 0c mov 0xc(%ebp),%eax 2d0: 0f b6 00 movzbl (%eax),%eax 2d3: 84 c0 test %al,%al 2d5: 74 34 je 30b <matchhere+0xb0> 2d7: 8b 45 08 mov 0x8(%ebp),%eax 2da: 0f b6 00 movzbl (%eax),%eax 2dd: 3c 2e cmp $0x2e,%al 2df: 74 10 je 2f1 <matchhere+0x96> 2e1: 8b 45 08 mov 0x8(%ebp),%eax 2e4: 0f b6 10 movzbl (%eax),%edx 2e7: 8b 45 0c mov 0xc(%ebp),%eax 2ea: 0f b6 00 movzbl (%eax),%eax 2ed: 38 c2 cmp %al,%dl 2ef: 75 1a jne 30b <matchhere+0xb0> return matchhere(re+1, text+1); 2f1: 8b 45 0c mov 0xc(%ebp),%eax 2f4: 8d 50 01 lea 0x1(%eax),%edx 2f7: 8b 45 08 mov 0x8(%ebp),%eax 2fa: 83 c0 01 add $0x1,%eax 2fd: 89 54 24 04 mov %edx,0x4(%esp) 301: 89 04 24 mov %eax,(%esp) 304: e8 52 ff ff ff call 25b <matchhere> 309: eb 05 jmp 310 <matchhere+0xb5> return 0; 30b: b8 00 00 00 00 mov $0x0,%eax } 310: c9 leave 311: c3 ret 00000312 <matchstar>: // matchstar: search for c*re at beginning of text int matchstar(int c, char *re, char *text) { 312: 55 push %ebp 313: 89 e5 mov %esp,%ebp 315: 83 ec 18 sub $0x18,%esp do{ // a * matches zero or more instances if(matchhere(re, text)) 318: 8b 45 10 mov 0x10(%ebp),%eax 31b: 89 44 24 04 mov %eax,0x4(%esp) 31f: 8b 45 0c mov 0xc(%ebp),%eax 322: 89 04 24 mov %eax,(%esp) 325: e8 31 ff ff ff call 25b <matchhere> 32a: 85 c0 test %eax,%eax 32c: 74 07 je 335 <matchstar+0x23> return 1; 32e: b8 01 00 00 00 mov $0x1,%eax 333: eb 29 jmp 35e <matchstar+0x4c> }while(*text!='\0' && (*text++==c || c=='.')); 335: 8b 45 10 mov 0x10(%ebp),%eax 338: 0f b6 00 movzbl (%eax),%eax 33b: 84 c0 test %al,%al 33d: 74 1a je 359 <matchstar+0x47> 33f: 8b 45 10 mov 0x10(%ebp),%eax 342: 8d 50 01 lea 0x1(%eax),%edx 345: 89 55 10 mov %edx,0x10(%ebp) 348: 0f b6 00 movzbl (%eax),%eax 34b: 0f be c0 movsbl %al,%eax 34e: 3b 45 08 cmp 0x8(%ebp),%eax 351: 74 c5 je 318 <matchstar+0x6> 353: 83 7d 08 2e cmpl $0x2e,0x8(%ebp) 357: 74 bf je 318 <matchstar+0x6> return 0; 359: b8 00 00 00 00 mov $0x0,%eax } 35e: c9 leave 35f: c3 ret 00000360 <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 360: 55 push %ebp 361: 89 e5 mov %esp,%ebp 363: 57 push %edi 364: 53 push %ebx asm volatile("cld; rep stosb" : 365: 8b 4d 08 mov 0x8(%ebp),%ecx 368: 8b 55 10 mov 0x10(%ebp),%edx 36b: 8b 45 0c mov 0xc(%ebp),%eax 36e: 89 cb mov %ecx,%ebx 370: 89 df mov %ebx,%edi 372: 89 d1 mov %edx,%ecx 374: fc cld 375: f3 aa rep stos %al,%es:(%edi) 377: 89 ca mov %ecx,%edx 379: 89 fb mov %edi,%ebx 37b: 89 5d 08 mov %ebx,0x8(%ebp) 37e: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 381: 5b pop %ebx 382: 5f pop %edi 383: 5d pop %ebp 384: c3 ret 00000385 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 385: 55 push %ebp 386: 89 e5 mov %esp,%ebp 388: 83 ec 10 sub $0x10,%esp char *os; os = s; 38b: 8b 45 08 mov 0x8(%ebp),%eax 38e: 89 45 fc mov %eax,-0x4(%ebp) while((*s++ = *t++) != 0) 391: 90 nop 392: 8b 45 08 mov 0x8(%ebp),%eax 395: 8d 50 01 lea 0x1(%eax),%edx 398: 89 55 08 mov %edx,0x8(%ebp) 39b: 8b 55 0c mov 0xc(%ebp),%edx 39e: 8d 4a 01 lea 0x1(%edx),%ecx 3a1: 89 4d 0c mov %ecx,0xc(%ebp) 3a4: 0f b6 12 movzbl (%edx),%edx 3a7: 88 10 mov %dl,(%eax) 3a9: 0f b6 00 movzbl (%eax),%eax 3ac: 84 c0 test %al,%al 3ae: 75 e2 jne 392 <strcpy+0xd> ; return os; 3b0: 8b 45 fc mov -0x4(%ebp),%eax } 3b3: c9 leave 3b4: c3 ret 000003b5 <strcmp>: int strcmp(const char *p, const char *q) { 3b5: 55 push %ebp 3b6: 89 e5 mov %esp,%ebp while(*p && *p == *q) 3b8: eb 08 jmp 3c2 <strcmp+0xd> p++, q++; 3ba: 83 45 08 01 addl $0x1,0x8(%ebp) 3be: 83 45 0c 01 addl $0x1,0xc(%ebp) } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 3c2: 8b 45 08 mov 0x8(%ebp),%eax 3c5: 0f b6 00 movzbl (%eax),%eax 3c8: 84 c0 test %al,%al 3ca: 74 10 je 3dc <strcmp+0x27> 3cc: 8b 45 08 mov 0x8(%ebp),%eax 3cf: 0f b6 10 movzbl (%eax),%edx 3d2: 8b 45 0c mov 0xc(%ebp),%eax 3d5: 0f b6 00 movzbl (%eax),%eax 3d8: 38 c2 cmp %al,%dl 3da: 74 de je 3ba <strcmp+0x5> p++, q++; return (uchar)*p - (uchar)*q; 3dc: 8b 45 08 mov 0x8(%ebp),%eax 3df: 0f b6 00 movzbl (%eax),%eax 3e2: 0f b6 d0 movzbl %al,%edx 3e5: 8b 45 0c mov 0xc(%ebp),%eax 3e8: 0f b6 00 movzbl (%eax),%eax 3eb: 0f b6 c0 movzbl %al,%eax 3ee: 29 c2 sub %eax,%edx 3f0: 89 d0 mov %edx,%eax } 3f2: 5d pop %ebp 3f3: c3 ret 000003f4 <strlen>: uint strlen(char *s) { 3f4: 55 push %ebp 3f5: 89 e5 mov %esp,%ebp 3f7: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 3fa: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 401: eb 04 jmp 407 <strlen+0x13> 403: 83 45 fc 01 addl $0x1,-0x4(%ebp) 407: 8b 55 fc mov -0x4(%ebp),%edx 40a: 8b 45 08 mov 0x8(%ebp),%eax 40d: 01 d0 add %edx,%eax 40f: 0f b6 00 movzbl (%eax),%eax 412: 84 c0 test %al,%al 414: 75 ed jne 403 <strlen+0xf> ; return n; 416: 8b 45 fc mov -0x4(%ebp),%eax } 419: c9 leave 41a: c3 ret 0000041b <memset>: void* memset(void *dst, int c, uint n) { 41b: 55 push %ebp 41c: 89 e5 mov %esp,%ebp 41e: 83 ec 0c sub $0xc,%esp stosb(dst, c, n); 421: 8b 45 10 mov 0x10(%ebp),%eax 424: 89 44 24 08 mov %eax,0x8(%esp) 428: 8b 45 0c mov 0xc(%ebp),%eax 42b: 89 44 24 04 mov %eax,0x4(%esp) 42f: 8b 45 08 mov 0x8(%ebp),%eax 432: 89 04 24 mov %eax,(%esp) 435: e8 26 ff ff ff call 360 <stosb> return dst; 43a: 8b 45 08 mov 0x8(%ebp),%eax } 43d: c9 leave 43e: c3 ret 0000043f <strchr>: char* strchr(const char *s, char c) { 43f: 55 push %ebp 440: 89 e5 mov %esp,%ebp 442: 83 ec 04 sub $0x4,%esp 445: 8b 45 0c mov 0xc(%ebp),%eax 448: 88 45 fc mov %al,-0x4(%ebp) for(; *s; s++) 44b: eb 14 jmp 461 <strchr+0x22> if(*s == c) 44d: 8b 45 08 mov 0x8(%ebp),%eax 450: 0f b6 00 movzbl (%eax),%eax 453: 3a 45 fc cmp -0x4(%ebp),%al 456: 75 05 jne 45d <strchr+0x1e> return (char*)s; 458: 8b 45 08 mov 0x8(%ebp),%eax 45b: eb 13 jmp 470 <strchr+0x31> } char* strchr(const char *s, char c) { for(; *s; s++) 45d: 83 45 08 01 addl $0x1,0x8(%ebp) 461: 8b 45 08 mov 0x8(%ebp),%eax 464: 0f b6 00 movzbl (%eax),%eax 467: 84 c0 test %al,%al 469: 75 e2 jne 44d <strchr+0xe> if(*s == c) return (char*)s; return 0; 46b: b8 00 00 00 00 mov $0x0,%eax } 470: c9 leave 471: c3 ret 00000472 <gets>: char* gets(char *buf, int max) { 472: 55 push %ebp 473: 89 e5 mov %esp,%ebp 475: 83 ec 28 sub $0x28,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 478: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 47f: eb 4c jmp 4cd <gets+0x5b> cc = read(0, &c, 1); 481: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 488: 00 489: 8d 45 ef lea -0x11(%ebp),%eax 48c: 89 44 24 04 mov %eax,0x4(%esp) 490: c7 04 24 00 00 00 00 movl $0x0,(%esp) 497: e8 44 01 00 00 call 5e0 <read> 49c: 89 45 f0 mov %eax,-0x10(%ebp) if(cc < 1) 49f: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 4a3: 7f 02 jg 4a7 <gets+0x35> break; 4a5: eb 31 jmp 4d8 <gets+0x66> buf[i++] = c; 4a7: 8b 45 f4 mov -0xc(%ebp),%eax 4aa: 8d 50 01 lea 0x1(%eax),%edx 4ad: 89 55 f4 mov %edx,-0xc(%ebp) 4b0: 89 c2 mov %eax,%edx 4b2: 8b 45 08 mov 0x8(%ebp),%eax 4b5: 01 c2 add %eax,%edx 4b7: 0f b6 45 ef movzbl -0x11(%ebp),%eax 4bb: 88 02 mov %al,(%edx) if(c == '\n' || c == '\r') 4bd: 0f b6 45 ef movzbl -0x11(%ebp),%eax 4c1: 3c 0a cmp $0xa,%al 4c3: 74 13 je 4d8 <gets+0x66> 4c5: 0f b6 45 ef movzbl -0x11(%ebp),%eax 4c9: 3c 0d cmp $0xd,%al 4cb: 74 0b je 4d8 <gets+0x66> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 4cd: 8b 45 f4 mov -0xc(%ebp),%eax 4d0: 83 c0 01 add $0x1,%eax 4d3: 3b 45 0c cmp 0xc(%ebp),%eax 4d6: 7c a9 jl 481 <gets+0xf> break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 4d8: 8b 55 f4 mov -0xc(%ebp),%edx 4db: 8b 45 08 mov 0x8(%ebp),%eax 4de: 01 d0 add %edx,%eax 4e0: c6 00 00 movb $0x0,(%eax) return buf; 4e3: 8b 45 08 mov 0x8(%ebp),%eax } 4e6: c9 leave 4e7: c3 ret 000004e8 <stat>: int stat(char *n, struct stat *st) { 4e8: 55 push %ebp 4e9: 89 e5 mov %esp,%ebp 4eb: 83 ec 28 sub $0x28,%esp int fd; int r; fd = open(n, O_RDONLY); 4ee: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 4f5: 00 4f6: 8b 45 08 mov 0x8(%ebp),%eax 4f9: 89 04 24 mov %eax,(%esp) 4fc: e8 07 01 00 00 call 608 <open> 501: 89 45 f4 mov %eax,-0xc(%ebp) if(fd < 0) 504: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 508: 79 07 jns 511 <stat+0x29> return -1; 50a: b8 ff ff ff ff mov $0xffffffff,%eax 50f: eb 23 jmp 534 <stat+0x4c> r = fstat(fd, st); 511: 8b 45 0c mov 0xc(%ebp),%eax 514: 89 44 24 04 mov %eax,0x4(%esp) 518: 8b 45 f4 mov -0xc(%ebp),%eax 51b: 89 04 24 mov %eax,(%esp) 51e: e8 fd 00 00 00 call 620 <fstat> 523: 89 45 f0 mov %eax,-0x10(%ebp) close(fd); 526: 8b 45 f4 mov -0xc(%ebp),%eax 529: 89 04 24 mov %eax,(%esp) 52c: e8 bf 00 00 00 call 5f0 <close> return r; 531: 8b 45 f0 mov -0x10(%ebp),%eax } 534: c9 leave 535: c3 ret 00000536 <atoi>: int atoi(const char *s) { 536: 55 push %ebp 537: 89 e5 mov %esp,%ebp 539: 83 ec 10 sub $0x10,%esp int n; n = 0; 53c: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) while('0' <= *s && *s <= '9') 543: eb 25 jmp 56a <atoi+0x34> n = n*10 + *s++ - '0'; 545: 8b 55 fc mov -0x4(%ebp),%edx 548: 89 d0 mov %edx,%eax 54a: c1 e0 02 shl $0x2,%eax 54d: 01 d0 add %edx,%eax 54f: 01 c0 add %eax,%eax 551: 89 c1 mov %eax,%ecx 553: 8b 45 08 mov 0x8(%ebp),%eax 556: 8d 50 01 lea 0x1(%eax),%edx 559: 89 55 08 mov %edx,0x8(%ebp) 55c: 0f b6 00 movzbl (%eax),%eax 55f: 0f be c0 movsbl %al,%eax 562: 01 c8 add %ecx,%eax 564: 83 e8 30 sub $0x30,%eax 567: 89 45 fc mov %eax,-0x4(%ebp) atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 56a: 8b 45 08 mov 0x8(%ebp),%eax 56d: 0f b6 00 movzbl (%eax),%eax 570: 3c 2f cmp $0x2f,%al 572: 7e 0a jle 57e <atoi+0x48> 574: 8b 45 08 mov 0x8(%ebp),%eax 577: 0f b6 00 movzbl (%eax),%eax 57a: 3c 39 cmp $0x39,%al 57c: 7e c7 jle 545 <atoi+0xf> n = n*10 + *s++ - '0'; return n; 57e: 8b 45 fc mov -0x4(%ebp),%eax } 581: c9 leave 582: c3 ret 00000583 <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 583: 55 push %ebp 584: 89 e5 mov %esp,%ebp 586: 83 ec 10 sub $0x10,%esp char *dst, *src; dst = vdst; 589: 8b 45 08 mov 0x8(%ebp),%eax 58c: 89 45 fc mov %eax,-0x4(%ebp) src = vsrc; 58f: 8b 45 0c mov 0xc(%ebp),%eax 592: 89 45 f8 mov %eax,-0x8(%ebp) while(n-- > 0) 595: eb 17 jmp 5ae <memmove+0x2b> *dst++ = *src++; 597: 8b 45 fc mov -0x4(%ebp),%eax 59a: 8d 50 01 lea 0x1(%eax),%edx 59d: 89 55 fc mov %edx,-0x4(%ebp) 5a0: 8b 55 f8 mov -0x8(%ebp),%edx 5a3: 8d 4a 01 lea 0x1(%edx),%ecx 5a6: 89 4d f8 mov %ecx,-0x8(%ebp) 5a9: 0f b6 12 movzbl (%edx),%edx 5ac: 88 10 mov %dl,(%eax) { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 5ae: 8b 45 10 mov 0x10(%ebp),%eax 5b1: 8d 50 ff lea -0x1(%eax),%edx 5b4: 89 55 10 mov %edx,0x10(%ebp) 5b7: 85 c0 test %eax,%eax 5b9: 7f dc jg 597 <memmove+0x14> *dst++ = *src++; return vdst; 5bb: 8b 45 08 mov 0x8(%ebp),%eax } 5be: c9 leave 5bf: c3 ret 000005c0 <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 5c0: b8 01 00 00 00 mov $0x1,%eax 5c5: cd 40 int $0x40 5c7: c3 ret 000005c8 <exit>: SYSCALL(exit) 5c8: b8 02 00 00 00 mov $0x2,%eax 5cd: cd 40 int $0x40 5cf: c3 ret 000005d0 <wait>: SYSCALL(wait) 5d0: b8 03 00 00 00 mov $0x3,%eax 5d5: cd 40 int $0x40 5d7: c3 ret 000005d8 <pipe>: SYSCALL(pipe) 5d8: b8 04 00 00 00 mov $0x4,%eax 5dd: cd 40 int $0x40 5df: c3 ret 000005e0 <read>: SYSCALL(read) 5e0: b8 05 00 00 00 mov $0x5,%eax 5e5: cd 40 int $0x40 5e7: c3 ret 000005e8 <write>: SYSCALL(write) 5e8: b8 10 00 00 00 mov $0x10,%eax 5ed: cd 40 int $0x40 5ef: c3 ret 000005f0 <close>: SYSCALL(close) 5f0: b8 15 00 00 00 mov $0x15,%eax 5f5: cd 40 int $0x40 5f7: c3 ret 000005f8 <kill>: SYSCALL(kill) 5f8: b8 06 00 00 00 mov $0x6,%eax 5fd: cd 40 int $0x40 5ff: c3 ret 00000600 <exec>: SYSCALL(exec) 600: b8 07 00 00 00 mov $0x7,%eax 605: cd 40 int $0x40 607: c3 ret 00000608 <open>: SYSCALL(open) 608: b8 0f 00 00 00 mov $0xf,%eax 60d: cd 40 int $0x40 60f: c3 ret 00000610 <mknod>: SYSCALL(mknod) 610: b8 11 00 00 00 mov $0x11,%eax 615: cd 40 int $0x40 617: c3 ret 00000618 <unlink>: SYSCALL(unlink) 618: b8 12 00 00 00 mov $0x12,%eax 61d: cd 40 int $0x40 61f: c3 ret 00000620 <fstat>: SYSCALL(fstat) 620: b8 08 00 00 00 mov $0x8,%eax 625: cd 40 int $0x40 627: c3 ret 00000628 <link>: SYSCALL(link) 628: b8 13 00 00 00 mov $0x13,%eax 62d: cd 40 int $0x40 62f: c3 ret 00000630 <mkdir>: SYSCALL(mkdir) 630: b8 14 00 00 00 mov $0x14,%eax 635: cd 40 int $0x40 637: c3 ret 00000638 <chdir>: SYSCALL(chdir) 638: b8 09 00 00 00 mov $0x9,%eax 63d: cd 40 int $0x40 63f: c3 ret 00000640 <dup>: SYSCALL(dup) 640: b8 0a 00 00 00 mov $0xa,%eax 645: cd 40 int $0x40 647: c3 ret 00000648 <getpid>: SYSCALL(getpid) 648: b8 0b 00 00 00 mov $0xb,%eax 64d: cd 40 int $0x40 64f: c3 ret 00000650 <sbrk>: SYSCALL(sbrk) 650: b8 0c 00 00 00 mov $0xc,%eax 655: cd 40 int $0x40 657: c3 ret 00000658 <sleep>: SYSCALL(sleep) 658: b8 0d 00 00 00 mov $0xd,%eax 65d: cd 40 int $0x40 65f: c3 ret 00000660 <uptime>: SYSCALL(uptime) 660: b8 0e 00 00 00 mov $0xe,%eax 665: cd 40 int $0x40 667: c3 ret 00000668 <clone>: SYSCALL(clone) 668: b8 16 00 00 00 mov $0x16,%eax 66d: cd 40 int $0x40 66f: c3 ret 00000670 <join>: 670: b8 17 00 00 00 mov $0x17,%eax 675: cd 40 int $0x40 677: c3 ret 00000678 <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { 678: 55 push %ebp 679: 89 e5 mov %esp,%ebp 67b: 83 ec 18 sub $0x18,%esp 67e: 8b 45 0c mov 0xc(%ebp),%eax 681: 88 45 f4 mov %al,-0xc(%ebp) write(fd, &c, 1); 684: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 68b: 00 68c: 8d 45 f4 lea -0xc(%ebp),%eax 68f: 89 44 24 04 mov %eax,0x4(%esp) 693: 8b 45 08 mov 0x8(%ebp),%eax 696: 89 04 24 mov %eax,(%esp) 699: e8 4a ff ff ff call 5e8 <write> } 69e: c9 leave 69f: c3 ret 000006a0 <printint>: static void printint(int fd, int xx, int base, int sgn) { 6a0: 55 push %ebp 6a1: 89 e5 mov %esp,%ebp 6a3: 56 push %esi 6a4: 53 push %ebx 6a5: 83 ec 30 sub $0x30,%esp static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 6a8: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) if(sgn && xx < 0){ 6af: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 6b3: 74 17 je 6cc <printint+0x2c> 6b5: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 6b9: 79 11 jns 6cc <printint+0x2c> neg = 1; 6bb: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) x = -xx; 6c2: 8b 45 0c mov 0xc(%ebp),%eax 6c5: f7 d8 neg %eax 6c7: 89 45 ec mov %eax,-0x14(%ebp) 6ca: eb 06 jmp 6d2 <printint+0x32> } else { x = xx; 6cc: 8b 45 0c mov 0xc(%ebp),%eax 6cf: 89 45 ec mov %eax,-0x14(%ebp) } i = 0; 6d2: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) do{ buf[i++] = digits[x % base]; 6d9: 8b 4d f4 mov -0xc(%ebp),%ecx 6dc: 8d 41 01 lea 0x1(%ecx),%eax 6df: 89 45 f4 mov %eax,-0xc(%ebp) 6e2: 8b 5d 10 mov 0x10(%ebp),%ebx 6e5: 8b 45 ec mov -0x14(%ebp),%eax 6e8: ba 00 00 00 00 mov $0x0,%edx 6ed: f7 f3 div %ebx 6ef: 89 d0 mov %edx,%eax 6f1: 0f b6 80 94 0f 00 00 movzbl 0xf94(%eax),%eax 6f8: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1) }while((x /= base) != 0); 6fc: 8b 75 10 mov 0x10(%ebp),%esi 6ff: 8b 45 ec mov -0x14(%ebp),%eax 702: ba 00 00 00 00 mov $0x0,%edx 707: f7 f6 div %esi 709: 89 45 ec mov %eax,-0x14(%ebp) 70c: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 710: 75 c7 jne 6d9 <printint+0x39> if(neg) 712: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 716: 74 10 je 728 <printint+0x88> buf[i++] = '-'; 718: 8b 45 f4 mov -0xc(%ebp),%eax 71b: 8d 50 01 lea 0x1(%eax),%edx 71e: 89 55 f4 mov %edx,-0xc(%ebp) 721: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1) while(--i >= 0) 726: eb 1f jmp 747 <printint+0xa7> 728: eb 1d jmp 747 <printint+0xa7> putc(fd, buf[i]); 72a: 8d 55 dc lea -0x24(%ebp),%edx 72d: 8b 45 f4 mov -0xc(%ebp),%eax 730: 01 d0 add %edx,%eax 732: 0f b6 00 movzbl (%eax),%eax 735: 0f be c0 movsbl %al,%eax 738: 89 44 24 04 mov %eax,0x4(%esp) 73c: 8b 45 08 mov 0x8(%ebp),%eax 73f: 89 04 24 mov %eax,(%esp) 742: e8 31 ff ff ff call 678 <putc> buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 747: 83 6d f4 01 subl $0x1,-0xc(%ebp) 74b: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 74f: 79 d9 jns 72a <printint+0x8a> putc(fd, buf[i]); } 751: 83 c4 30 add $0x30,%esp 754: 5b pop %ebx 755: 5e pop %esi 756: 5d pop %ebp 757: c3 ret 00000758 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 758: 55 push %ebp 759: 89 e5 mov %esp,%ebp 75b: 83 ec 38 sub $0x38,%esp char *s; int c, i, state; uint *ap; state = 0; 75e: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) ap = (uint*)(void*)&fmt + 1; 765: 8d 45 0c lea 0xc(%ebp),%eax 768: 83 c0 04 add $0x4,%eax 76b: 89 45 e8 mov %eax,-0x18(%ebp) for(i = 0; fmt[i]; i++){ 76e: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 775: e9 7c 01 00 00 jmp 8f6 <printf+0x19e> c = fmt[i] & 0xff; 77a: 8b 55 0c mov 0xc(%ebp),%edx 77d: 8b 45 f0 mov -0x10(%ebp),%eax 780: 01 d0 add %edx,%eax 782: 0f b6 00 movzbl (%eax),%eax 785: 0f be c0 movsbl %al,%eax 788: 25 ff 00 00 00 and $0xff,%eax 78d: 89 45 e4 mov %eax,-0x1c(%ebp) if(state == 0){ 790: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 794: 75 2c jne 7c2 <printf+0x6a> if(c == '%'){ 796: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 79a: 75 0c jne 7a8 <printf+0x50> state = '%'; 79c: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp) 7a3: e9 4a 01 00 00 jmp 8f2 <printf+0x19a> } else { putc(fd, c); 7a8: 8b 45 e4 mov -0x1c(%ebp),%eax 7ab: 0f be c0 movsbl %al,%eax 7ae: 89 44 24 04 mov %eax,0x4(%esp) 7b2: 8b 45 08 mov 0x8(%ebp),%eax 7b5: 89 04 24 mov %eax,(%esp) 7b8: e8 bb fe ff ff call 678 <putc> 7bd: e9 30 01 00 00 jmp 8f2 <printf+0x19a> } } else if(state == '%'){ 7c2: 83 7d ec 25 cmpl $0x25,-0x14(%ebp) 7c6: 0f 85 26 01 00 00 jne 8f2 <printf+0x19a> if(c == 'd'){ 7cc: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp) 7d0: 75 2d jne 7ff <printf+0xa7> printint(fd, *ap, 10, 1); 7d2: 8b 45 e8 mov -0x18(%ebp),%eax 7d5: 8b 00 mov (%eax),%eax 7d7: c7 44 24 0c 01 00 00 movl $0x1,0xc(%esp) 7de: 00 7df: c7 44 24 08 0a 00 00 movl $0xa,0x8(%esp) 7e6: 00 7e7: 89 44 24 04 mov %eax,0x4(%esp) 7eb: 8b 45 08 mov 0x8(%ebp),%eax 7ee: 89 04 24 mov %eax,(%esp) 7f1: e8 aa fe ff ff call 6a0 <printint> ap++; 7f6: 83 45 e8 04 addl $0x4,-0x18(%ebp) 7fa: e9 ec 00 00 00 jmp 8eb <printf+0x193> } else if(c == 'x' || c == 'p'){ 7ff: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp) 803: 74 06 je 80b <printf+0xb3> 805: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp) 809: 75 2d jne 838 <printf+0xe0> printint(fd, *ap, 16, 0); 80b: 8b 45 e8 mov -0x18(%ebp),%eax 80e: 8b 00 mov (%eax),%eax 810: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp) 817: 00 818: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp) 81f: 00 820: 89 44 24 04 mov %eax,0x4(%esp) 824: 8b 45 08 mov 0x8(%ebp),%eax 827: 89 04 24 mov %eax,(%esp) 82a: e8 71 fe ff ff call 6a0 <printint> ap++; 82f: 83 45 e8 04 addl $0x4,-0x18(%ebp) 833: e9 b3 00 00 00 jmp 8eb <printf+0x193> } else if(c == 's'){ 838: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp) 83c: 75 45 jne 883 <printf+0x12b> s = (char*)*ap; 83e: 8b 45 e8 mov -0x18(%ebp),%eax 841: 8b 00 mov (%eax),%eax 843: 89 45 f4 mov %eax,-0xc(%ebp) ap++; 846: 83 45 e8 04 addl $0x4,-0x18(%ebp) if(s == 0) 84a: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 84e: 75 09 jne 859 <printf+0x101> s = "(null)"; 850: c7 45 f4 06 0c 00 00 movl $0xc06,-0xc(%ebp) while(*s != 0){ 857: eb 1e jmp 877 <printf+0x11f> 859: eb 1c jmp 877 <printf+0x11f> putc(fd, *s); 85b: 8b 45 f4 mov -0xc(%ebp),%eax 85e: 0f b6 00 movzbl (%eax),%eax 861: 0f be c0 movsbl %al,%eax 864: 89 44 24 04 mov %eax,0x4(%esp) 868: 8b 45 08 mov 0x8(%ebp),%eax 86b: 89 04 24 mov %eax,(%esp) 86e: e8 05 fe ff ff call 678 <putc> s++; 873: 83 45 f4 01 addl $0x1,-0xc(%ebp) } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 877: 8b 45 f4 mov -0xc(%ebp),%eax 87a: 0f b6 00 movzbl (%eax),%eax 87d: 84 c0 test %al,%al 87f: 75 da jne 85b <printf+0x103> 881: eb 68 jmp 8eb <printf+0x193> putc(fd, *s); s++; } } else if(c == 'c'){ 883: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp) 887: 75 1d jne 8a6 <printf+0x14e> putc(fd, *ap); 889: 8b 45 e8 mov -0x18(%ebp),%eax 88c: 8b 00 mov (%eax),%eax 88e: 0f be c0 movsbl %al,%eax 891: 89 44 24 04 mov %eax,0x4(%esp) 895: 8b 45 08 mov 0x8(%ebp),%eax 898: 89 04 24 mov %eax,(%esp) 89b: e8 d8 fd ff ff call 678 <putc> ap++; 8a0: 83 45 e8 04 addl $0x4,-0x18(%ebp) 8a4: eb 45 jmp 8eb <printf+0x193> } else if(c == '%'){ 8a6: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 8aa: 75 17 jne 8c3 <printf+0x16b> putc(fd, c); 8ac: 8b 45 e4 mov -0x1c(%ebp),%eax 8af: 0f be c0 movsbl %al,%eax 8b2: 89 44 24 04 mov %eax,0x4(%esp) 8b6: 8b 45 08 mov 0x8(%ebp),%eax 8b9: 89 04 24 mov %eax,(%esp) 8bc: e8 b7 fd ff ff call 678 <putc> 8c1: eb 28 jmp 8eb <printf+0x193> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 8c3: c7 44 24 04 25 00 00 movl $0x25,0x4(%esp) 8ca: 00 8cb: 8b 45 08 mov 0x8(%ebp),%eax 8ce: 89 04 24 mov %eax,(%esp) 8d1: e8 a2 fd ff ff call 678 <putc> putc(fd, c); 8d6: 8b 45 e4 mov -0x1c(%ebp),%eax 8d9: 0f be c0 movsbl %al,%eax 8dc: 89 44 24 04 mov %eax,0x4(%esp) 8e0: 8b 45 08 mov 0x8(%ebp),%eax 8e3: 89 04 24 mov %eax,(%esp) 8e6: e8 8d fd ff ff call 678 <putc> } state = 0; 8eb: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 8f2: 83 45 f0 01 addl $0x1,-0x10(%ebp) 8f6: 8b 55 0c mov 0xc(%ebp),%edx 8f9: 8b 45 f0 mov -0x10(%ebp),%eax 8fc: 01 d0 add %edx,%eax 8fe: 0f b6 00 movzbl (%eax),%eax 901: 84 c0 test %al,%al 903: 0f 85 71 fe ff ff jne 77a <printf+0x22> putc(fd, c); } state = 0; } } } 909: c9 leave 90a: c3 ret 90b: 90 nop 0000090c <free>: static Header base; static Header *freep; void free(void *ap) { 90c: 55 push %ebp 90d: 89 e5 mov %esp,%ebp 90f: 83 ec 10 sub $0x10,%esp Header *bp, *p; bp = (Header*)ap - 1; 912: 8b 45 08 mov 0x8(%ebp),%eax 915: 83 e8 08 sub $0x8,%eax 918: 89 45 f8 mov %eax,-0x8(%ebp) for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 91b: a1 c8 0f 00 00 mov 0xfc8,%eax 920: 89 45 fc mov %eax,-0x4(%ebp) 923: eb 24 jmp 949 <free+0x3d> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 925: 8b 45 fc mov -0x4(%ebp),%eax 928: 8b 00 mov (%eax),%eax 92a: 3b 45 fc cmp -0x4(%ebp),%eax 92d: 77 12 ja 941 <free+0x35> 92f: 8b 45 f8 mov -0x8(%ebp),%eax 932: 3b 45 fc cmp -0x4(%ebp),%eax 935: 77 24 ja 95b <free+0x4f> 937: 8b 45 fc mov -0x4(%ebp),%eax 93a: 8b 00 mov (%eax),%eax 93c: 3b 45 f8 cmp -0x8(%ebp),%eax 93f: 77 1a ja 95b <free+0x4f> free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 941: 8b 45 fc mov -0x4(%ebp),%eax 944: 8b 00 mov (%eax),%eax 946: 89 45 fc mov %eax,-0x4(%ebp) 949: 8b 45 f8 mov -0x8(%ebp),%eax 94c: 3b 45 fc cmp -0x4(%ebp),%eax 94f: 76 d4 jbe 925 <free+0x19> 951: 8b 45 fc mov -0x4(%ebp),%eax 954: 8b 00 mov (%eax),%eax 956: 3b 45 f8 cmp -0x8(%ebp),%eax 959: 76 ca jbe 925 <free+0x19> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ 95b: 8b 45 f8 mov -0x8(%ebp),%eax 95e: 8b 40 04 mov 0x4(%eax),%eax 961: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 968: 8b 45 f8 mov -0x8(%ebp),%eax 96b: 01 c2 add %eax,%edx 96d: 8b 45 fc mov -0x4(%ebp),%eax 970: 8b 00 mov (%eax),%eax 972: 39 c2 cmp %eax,%edx 974: 75 24 jne 99a <free+0x8e> bp->s.size += p->s.ptr->s.size; 976: 8b 45 f8 mov -0x8(%ebp),%eax 979: 8b 50 04 mov 0x4(%eax),%edx 97c: 8b 45 fc mov -0x4(%ebp),%eax 97f: 8b 00 mov (%eax),%eax 981: 8b 40 04 mov 0x4(%eax),%eax 984: 01 c2 add %eax,%edx 986: 8b 45 f8 mov -0x8(%ebp),%eax 989: 89 50 04 mov %edx,0x4(%eax) bp->s.ptr = p->s.ptr->s.ptr; 98c: 8b 45 fc mov -0x4(%ebp),%eax 98f: 8b 00 mov (%eax),%eax 991: 8b 10 mov (%eax),%edx 993: 8b 45 f8 mov -0x8(%ebp),%eax 996: 89 10 mov %edx,(%eax) 998: eb 0a jmp 9a4 <free+0x98> } else bp->s.ptr = p->s.ptr; 99a: 8b 45 fc mov -0x4(%ebp),%eax 99d: 8b 10 mov (%eax),%edx 99f: 8b 45 f8 mov -0x8(%ebp),%eax 9a2: 89 10 mov %edx,(%eax) if(p + p->s.size == bp){ 9a4: 8b 45 fc mov -0x4(%ebp),%eax 9a7: 8b 40 04 mov 0x4(%eax),%eax 9aa: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 9b1: 8b 45 fc mov -0x4(%ebp),%eax 9b4: 01 d0 add %edx,%eax 9b6: 3b 45 f8 cmp -0x8(%ebp),%eax 9b9: 75 20 jne 9db <free+0xcf> p->s.size += bp->s.size; 9bb: 8b 45 fc mov -0x4(%ebp),%eax 9be: 8b 50 04 mov 0x4(%eax),%edx 9c1: 8b 45 f8 mov -0x8(%ebp),%eax 9c4: 8b 40 04 mov 0x4(%eax),%eax 9c7: 01 c2 add %eax,%edx 9c9: 8b 45 fc mov -0x4(%ebp),%eax 9cc: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 9cf: 8b 45 f8 mov -0x8(%ebp),%eax 9d2: 8b 10 mov (%eax),%edx 9d4: 8b 45 fc mov -0x4(%ebp),%eax 9d7: 89 10 mov %edx,(%eax) 9d9: eb 08 jmp 9e3 <free+0xd7> } else p->s.ptr = bp; 9db: 8b 45 fc mov -0x4(%ebp),%eax 9de: 8b 55 f8 mov -0x8(%ebp),%edx 9e1: 89 10 mov %edx,(%eax) freep = p; 9e3: 8b 45 fc mov -0x4(%ebp),%eax 9e6: a3 c8 0f 00 00 mov %eax,0xfc8 } 9eb: c9 leave 9ec: c3 ret 000009ed <morecore>: static Header* morecore(uint nu) { 9ed: 55 push %ebp 9ee: 89 e5 mov %esp,%ebp 9f0: 83 ec 28 sub $0x28,%esp char *p; Header *hp; if(nu < 4096) 9f3: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp) 9fa: 77 07 ja a03 <morecore+0x16> nu = 4096; 9fc: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp) p = sbrk(nu * sizeof(Header)); a03: 8b 45 08 mov 0x8(%ebp),%eax a06: c1 e0 03 shl $0x3,%eax a09: 89 04 24 mov %eax,(%esp) a0c: e8 3f fc ff ff call 650 <sbrk> a11: 89 45 f4 mov %eax,-0xc(%ebp) if(p == (char*)-1) a14: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp) a18: 75 07 jne a21 <morecore+0x34> return 0; a1a: b8 00 00 00 00 mov $0x0,%eax a1f: eb 22 jmp a43 <morecore+0x56> hp = (Header*)p; a21: 8b 45 f4 mov -0xc(%ebp),%eax a24: 89 45 f0 mov %eax,-0x10(%ebp) hp->s.size = nu; a27: 8b 45 f0 mov -0x10(%ebp),%eax a2a: 8b 55 08 mov 0x8(%ebp),%edx a2d: 89 50 04 mov %edx,0x4(%eax) free((void*)(hp + 1)); a30: 8b 45 f0 mov -0x10(%ebp),%eax a33: 83 c0 08 add $0x8,%eax a36: 89 04 24 mov %eax,(%esp) a39: e8 ce fe ff ff call 90c <free> return freep; a3e: a1 c8 0f 00 00 mov 0xfc8,%eax } a43: c9 leave a44: c3 ret 00000a45 <malloc>: void* malloc(uint nbytes) { a45: 55 push %ebp a46: 89 e5 mov %esp,%ebp a48: 83 ec 28 sub $0x28,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; a4b: 8b 45 08 mov 0x8(%ebp),%eax a4e: 83 c0 07 add $0x7,%eax a51: c1 e8 03 shr $0x3,%eax a54: 83 c0 01 add $0x1,%eax a57: 89 45 ec mov %eax,-0x14(%ebp) if((prevp = freep) == 0){ a5a: a1 c8 0f 00 00 mov 0xfc8,%eax a5f: 89 45 f0 mov %eax,-0x10(%ebp) a62: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) a66: 75 23 jne a8b <malloc+0x46> base.s.ptr = freep = prevp = &base; a68: c7 45 f0 c0 0f 00 00 movl $0xfc0,-0x10(%ebp) a6f: 8b 45 f0 mov -0x10(%ebp),%eax a72: a3 c8 0f 00 00 mov %eax,0xfc8 a77: a1 c8 0f 00 00 mov 0xfc8,%eax a7c: a3 c0 0f 00 00 mov %eax,0xfc0 base.s.size = 0; a81: c7 05 c4 0f 00 00 00 movl $0x0,0xfc4 a88: 00 00 00 } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ a8b: 8b 45 f0 mov -0x10(%ebp),%eax a8e: 8b 00 mov (%eax),%eax a90: 89 45 f4 mov %eax,-0xc(%ebp) if(p->s.size >= nunits){ a93: 8b 45 f4 mov -0xc(%ebp),%eax a96: 8b 40 04 mov 0x4(%eax),%eax a99: 3b 45 ec cmp -0x14(%ebp),%eax a9c: 72 4d jb aeb <malloc+0xa6> if(p->s.size == nunits) a9e: 8b 45 f4 mov -0xc(%ebp),%eax aa1: 8b 40 04 mov 0x4(%eax),%eax aa4: 3b 45 ec cmp -0x14(%ebp),%eax aa7: 75 0c jne ab5 <malloc+0x70> prevp->s.ptr = p->s.ptr; aa9: 8b 45 f4 mov -0xc(%ebp),%eax aac: 8b 10 mov (%eax),%edx aae: 8b 45 f0 mov -0x10(%ebp),%eax ab1: 89 10 mov %edx,(%eax) ab3: eb 26 jmp adb <malloc+0x96> else { p->s.size -= nunits; ab5: 8b 45 f4 mov -0xc(%ebp),%eax ab8: 8b 40 04 mov 0x4(%eax),%eax abb: 2b 45 ec sub -0x14(%ebp),%eax abe: 89 c2 mov %eax,%edx ac0: 8b 45 f4 mov -0xc(%ebp),%eax ac3: 89 50 04 mov %edx,0x4(%eax) p += p->s.size; ac6: 8b 45 f4 mov -0xc(%ebp),%eax ac9: 8b 40 04 mov 0x4(%eax),%eax acc: c1 e0 03 shl $0x3,%eax acf: 01 45 f4 add %eax,-0xc(%ebp) p->s.size = nunits; ad2: 8b 45 f4 mov -0xc(%ebp),%eax ad5: 8b 55 ec mov -0x14(%ebp),%edx ad8: 89 50 04 mov %edx,0x4(%eax) } freep = prevp; adb: 8b 45 f0 mov -0x10(%ebp),%eax ade: a3 c8 0f 00 00 mov %eax,0xfc8 return (void*)(p + 1); ae3: 8b 45 f4 mov -0xc(%ebp),%eax ae6: 83 c0 08 add $0x8,%eax ae9: eb 38 jmp b23 <malloc+0xde> } if(p == freep) aeb: a1 c8 0f 00 00 mov 0xfc8,%eax af0: 39 45 f4 cmp %eax,-0xc(%ebp) af3: 75 1b jne b10 <malloc+0xcb> if((p = morecore(nunits)) == 0) af5: 8b 45 ec mov -0x14(%ebp),%eax af8: 89 04 24 mov %eax,(%esp) afb: e8 ed fe ff ff call 9ed <morecore> b00: 89 45 f4 mov %eax,-0xc(%ebp) b03: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) b07: 75 07 jne b10 <malloc+0xcb> return 0; b09: b8 00 00 00 00 mov $0x0,%eax b0e: eb 13 jmp b23 <malloc+0xde> nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ b10: 8b 45 f4 mov -0xc(%ebp),%eax b13: 89 45 f0 mov %eax,-0x10(%ebp) b16: 8b 45 f4 mov -0xc(%ebp),%eax b19: 8b 00 mov (%eax),%eax b1b: 89 45 f4 mov %eax,-0xc(%ebp) return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } b1e: e9 70 ff ff ff jmp a93 <malloc+0x4e> } b23: c9 leave b24: c3 ret b25: 66 90 xchg %ax,%ax b27: 90 nop 00000b28 <xchg>: asm volatile("sti"); } static inline uint xchg(volatile uint *addr, uint newval) { b28: 55 push %ebp b29: 89 e5 mov %esp,%ebp b2b: 83 ec 10 sub $0x10,%esp uint result; // The + in "+m" denotes a read-modify-write operand. asm volatile("lock; xchgl %0, %1" : b2e: 8b 55 08 mov 0x8(%ebp),%edx b31: 8b 45 0c mov 0xc(%ebp),%eax b34: 8b 4d 08 mov 0x8(%ebp),%ecx b37: f0 87 02 lock xchg %eax,(%edx) b3a: 89 45 fc mov %eax,-0x4(%ebp) "+m" (*addr), "=a" (result) : "1" (newval) : "cc"); return result; b3d: 8b 45 fc mov -0x4(%ebp),%eax } b40: c9 leave b41: c3 ret 00000b42 <mutex_init>: #include "types.h" #include "user.h" #include "x86.h" #include "threadlib.h" void mutex_init(mutex_t *m) { b42: 55 push %ebp b43: 89 e5 mov %esp,%ebp // 0 indicates that lock is available, 1 that it is held by a thread m->flag = 0; b45: 8b 45 08 mov 0x8(%ebp),%eax b48: c7 00 00 00 00 00 movl $0x0,(%eax) } b4e: 5d pop %ebp b4f: c3 ret 00000b50 <mutex_lock>: void mutex_lock(mutex_t *m) { b50: 55 push %ebp b51: 89 e5 mov %esp,%ebp b53: 83 ec 08 sub $0x8,%esp while (xchg(&m->flag, 1) == 1); // spin-wait (do nothing) b56: 90 nop b57: 8b 45 08 mov 0x8(%ebp),%eax b5a: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp) b61: 00 b62: 89 04 24 mov %eax,(%esp) b65: e8 be ff ff ff call b28 <xchg> b6a: 83 f8 01 cmp $0x1,%eax b6d: 74 e8 je b57 <mutex_lock+0x7> } b6f: c9 leave b70: c3 ret 00000b71 <mutex_unlock>: void mutex_unlock(mutex_t *m) { b71: 55 push %ebp b72: 89 e5 mov %esp,%ebp m->flag = 0; b74: 8b 45 08 mov 0x8(%ebp),%eax b77: c7 00 00 00 00 00 movl $0x0,(%eax) } b7d: 5d pop %ebp b7e: c3 ret 00000b7f <thread_create>: if(!pid) (*start_routine)(arg); else return pid; }*/ int thread_create(void(*child)(void*), void *arg_ptr) { b7f: 55 push %ebp b80: 89 e5 mov %esp,%ebp b82: 83 ec 28 sub $0x28,%esp void *stack = malloc(4096); b85: c7 04 24 00 10 00 00 movl $0x1000,(%esp) b8c: e8 b4 fe ff ff call a45 <malloc> b91: 89 45 f4 mov %eax,-0xc(%ebp) int clone_pid = clone(child, arg_ptr, stack); b94: 8b 45 f4 mov -0xc(%ebp),%eax b97: 89 44 24 08 mov %eax,0x8(%esp) b9b: 8b 45 0c mov 0xc(%ebp),%eax b9e: 89 44 24 04 mov %eax,0x4(%esp) ba2: 8b 45 08 mov 0x8(%ebp),%eax ba5: 89 04 24 mov %eax,(%esp) ba8: e8 bb fa ff ff call 668 <clone> bad: 89 45 f0 mov %eax,-0x10(%ebp) return clone_pid; bb0: 8b 45 f0 mov -0x10(%ebp),%eax } bb3: c9 leave bb4: c3 ret 00000bb5 <thread_join>: int thread_join(void) { bb5: 55 push %ebp bb6: 89 e5 mov %esp,%ebp bb8: 83 ec 28 sub $0x28,%esp void *join_s; int join_pid = join(&join_s); bbb: 8d 45 f0 lea -0x10(%ebp),%eax bbe: 89 04 24 mov %eax,(%esp) bc1: e8 aa fa ff ff call 670 <join> bc6: 89 45 f4 mov %eax,-0xc(%ebp) return join_pid; bc9: 8b 45 f4 mov -0xc(%ebp),%eax bcc: c9 leave bcd: c3 ret
34.771309
70
0.432184
df3c64dd3ee1e4634f89007d69878e73b8a8c733
884
asm
Assembly
programs/oeis/083/A083445.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/083/A083445.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/083/A083445.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A083445: Largest n-digit number minus the product of its digits; i.e., a(n) = 99999... (n 9's) - 9^n. ; 18,270,3438,40950,468558,5217030,56953278,612579510,6513215598,68618940390,717570463518,7458134171670,77123207545038,794108867905350,8146979811148158,83322818300333430,849905364703000878,8649148282327007910,87842334540943071198,890581010868487640790,9015229097816388767118,91137061880347498904070,920233556923127490136638,9282102012308147411229750,93538918110773326701067758,941850262996959940309609830,9476652366972639462786488478,95289871302753755165078396310,957608841724783796485705566798,9618479575523054168371350101190,96566316179707487515342150910718,969096845617367387638079358196470,9721871610556306488742714223768238,97496844495006758398684428013914150,977471600455060825588159852125227358 add $0,2 mov $1,10 pow $1,$0 mov $2,9 pow $2,$0 sub $1,$2 sub $1,1 mov $0,$1
73.666667
701
0.873303
cbd5db960f9d9141029364ea51a8e31e1fc281d6
50,740
asm
Assembly
reports/05_proggetinst_1.exp2.asm
arnaudroger/re2j-benchmark
ecfb2d6975948a1fbb53ccf101b285655b850058
[ "MIT" ]
null
null
null
reports/05_proggetinst_1.exp2.asm
arnaudroger/re2j-benchmark
ecfb2d6975948a1fbb53ccf101b285655b850058
[ "MIT" ]
null
null
null
reports/05_proggetinst_1.exp2.asm
arnaudroger/re2j-benchmark
ecfb2d6975948a1fbb53ccf101b285655b850058
[ "MIT" ]
null
null
null
# JMH version: 1.19 # VM version: JDK 1.8.0_131, VM 25.131-b11 # VM invoker: /usr/lib/jvm/java-8-oracle/jre/bin/java # VM options: <none> # Warmup: 20 iterations, 1 s each # Measurement: 20 iterations, 1 s each # Timeout: 10 min per iteration # Threads: 1 thread, will synchronize iterations # Benchmark mode: Throughput, ops/time # Benchmark: com.github.arnaudroger.re2j.Re2jFindRegex.testExp2 # Run progress: 0.00% complete, ETA 00:00:40 # Fork: 1 of 1 # Preparing profilers: LinuxPerfAsmProfiler # Profilers consume stdout and stderr from target VM, use -v EXTRA to copy to console # Warmup Iteration 1: 3366.723 ops/s # Warmup Iteration 2: 5426.907 ops/s # Warmup Iteration 3: 5429.304 ops/s # Warmup Iteration 4: 5427.521 ops/s # Warmup Iteration 5: 5473.211 ops/s # Warmup Iteration 6: 5520.112 ops/s # Warmup Iteration 7: 5528.812 ops/s # Warmup Iteration 8: 5530.253 ops/s # Warmup Iteration 9: 5528.367 ops/s # Warmup Iteration 10: 5437.291 ops/s # Warmup Iteration 11: 5425.314 ops/s # Warmup Iteration 12: 5455.225 ops/s # Warmup Iteration 13: 5511.132 ops/s # Warmup Iteration 14: 5545.757 ops/s # Warmup Iteration 15: 5513.379 ops/s # Warmup Iteration 16: 5521.447 ops/s # Warmup Iteration 17: 5486.312 ops/s # Warmup Iteration 18: 5485.070 ops/s # Warmup Iteration 19: 5484.486 ops/s # Warmup Iteration 20: 5531.513 ops/s Iteration 1: 5539.682 ops/s Iteration 2: 5518.053 ops/s Iteration 3: 5517.524 ops/s Iteration 4: 5506.614 ops/s Iteration 5: 5513.992 ops/s Iteration 6: 5513.663 ops/s Iteration 7: 5515.229 ops/s Iteration 8: 5515.174 ops/s Iteration 9: 5485.312 ops/s Iteration 10: 5446.630 ops/s Iteration 11: 5446.080 ops/s Iteration 12: 5444.636 ops/s Iteration 13: 5445.529 ops/s Iteration 14: 5475.917 ops/s Iteration 15: 5533.058 ops/s Iteration 16: 5532.338 ops/s Iteration 17: 5532.247 ops/s Iteration 18: 5520.187 ops/s Iteration 19: 5528.862 ops/s Iteration 20: 5532.648 ops/s # Processing profiler results: LinuxPerfAsmProfiler Result "com.github.arnaudroger.re2j.Re2jFindRegex.testExp2": 5503.169 ±(99.9%) 28.844 ops/s [Average] (min, avg, max) = (5444.636, 5503.169, 5539.682), stdev = 33.217 CI (99.9%): [5474.325, 5532.013] (assumes normal distribution) Secondary result "com.github.arnaudroger.re2j.Re2jFindRegex.testExp2:·asm": PrintAssembly processed: 196042 total address lines. Perf output processed (skipped 23.693 seconds): Column 1: cycles (20347 events) Column 2: instructions (20400 events) Hottest code regions (>10.00% "cycles" events): ....[Hottest Region 1].............................................................................. C2, level 4, com.google.re2j.Machine::step, version 487 (494 bytes) # parm6: [sp+0x78] = int # parm7: [sp+0x80] = boolean 0x00007fe901216440: mov 0x8(%rsi),%r10d 0x00007fe901216444: shl $0x3,%r10 0x00007fe901216448: cmp %r10,%rax 0x00007fe90121644b: jne 0x00007fe901045e20 ; {runtime_call} 0x00007fe901216451: data16 xchg %ax,%ax 0x00007fe901216454: nopl 0x0(%rax,%rax,1) 0x00007fe90121645c: data16 data16 xchg %ax,%ax [Verified Entry Point] 0.02% 0.03% 0x00007fe901216460: mov %eax,-0x14000(%rsp) 0.15% 0.15% 0x00007fe901216467: push %rbp 0.06% 0.05% 0x00007fe901216468: sub $0x60,%rsp ;*synchronization entry ; - com.google.re2j.Machine::step@-1 (line 269) 0.01% 0.02% 0x00007fe90121646c: mov %edi,0x20(%rsp) 0.20% 0.25% 0x00007fe901216470: mov %r9d,0x14(%rsp) 0.09% 0.03% 0x00007fe901216475: mov %rcx,0x18(%rsp) 0.07% 0.03% 0x00007fe90121647a: mov %r8d,0x10(%rsp) 0.06% 0.01% 0x00007fe90121647f: mov %rdx,0x8(%rsp) 0.13% 0.16% 0x00007fe901216484: mov %rsi,0x28(%rsp) 0.06% 0.03% 0x00007fe901216489: mov 0x14(%rsi),%r11d ;*getfield re2 ; - com.google.re2j.Machine::step@1 (line 269) 0.00% 0.00% 0x00007fe90121648d: movzbl 0x18(%r12,%r11,8),%r11d ;*getfield longest ; - com.google.re2j.Machine::step@4 (line 269) ; implicit exception: dispatches to 0x00007fe901216b9d 0.06% 0.01% 0x00007fe901216493: mov %r11d,0x24(%rsp) 0.18% 0.09% 0x00007fe901216498: mov 0xc(%rdx),%r10d ; implicit exception: dispatches to 0x00007fe901216bad 0.03% 0.03% 0x00007fe90121649c: test %r10d,%r10d 0x00007fe90121649f: jle 0x00007fe901216758 ;*if_icmpge ; - com.google.re2j.Machine::step@18 (line 270) 0x00007fe9012164a5: xor %r10d,%r10d 0.00% ╭ 0x00007fe9012164a8: jmpq 0x00007fe9012165e8 0.53% 0.46% │ ↗ 0x00007fe9012164ad: cmp $0xc,%r9d │╭ │ 0x00007fe9012164b1: je 0x00007fe901216522 0.01% ││ │ 0x00007fe9012164b3: cmp $0xc,%r9d ││ │ 0x00007fe9012164b7: jg 0x00007fe9012169b5 ││ │ 0x00007fe9012164bd: cmp $0xb,%r9d ││╭ │ 0x00007fe9012164c1: jne 0x00007fe9012164d2 ;*tableswitch │││ │ ; - com.google.re2j.Machine::step@114 (line 285) │││ │ 0x00007fe9012164c3: mov 0x20(%rsp),%r9d │││ │ 0x00007fe9012164c8: cmp $0xa,%r9d │││╭ │ 0x00007fe9012164cc: je 0x00007fe901216565 ;*ifeq ││││ │ ; - com.google.re2j.Machine::step@363 (line 329) 0.54% 0.45% ││↘│ ↗↗ │ 0x00007fe9012164d2: mov %eax,0x74(%rsp) 0.39% 0.23% ││ │ ││ │ 0x00007fe9012164d6: mov %r10d,%ebp ││ │ ││ │ 0x00007fe9012164d9: mov 0x30(%r12,%rbx,8),%r8d ││ │ ││ │ 0x00007fe9012164de: mov %r14,%r9 0.00% ││ │ ││ │ 0x00007fe9012164e1: shl $0x3,%r9 ;*getfield cap ││ │ ││ │ ; - com.google.re2j.Machine::step@172 (line 292) 0.02% ││ │ ││ │ 0x00007fe9012164e5: mov %r8,%rcx ││ │ ││ │ 0x00007fe9012164e8: shl $0x3,%rcx ;*getfield outInst ││ │ ││ │ ; - com.google.re2j.Machine::step@370 (line 330) ││ │ ││ │ 0x00007fe9012164ec: mov 0x28(%rsp),%rsi 0.00% ││ │ ││ │ 0x00007fe9012164f1: mov 0x18(%rsp),%rdx 0.02% ││ │ ││ │ 0x00007fe9012164f6: mov 0x14(%rsp),%r8d ││ │ ││ │ 0x00007fe9012164fb: mov 0x70(%rsp),%edi 0.01% ││ │ ││ │ 0x00007fe9012164ff: mov %r11,(%rsp) 0.05% 0.01% ││ │ ││ │ 0x00007fe901216503: callq 0x00007fe901046020 ; OopMap{[8]=Oop [24]=Oop [40]=Oop off=200} ││ │ ││ │ ;*invokespecial add ││ │ ││ │ ; - com.google.re2j.Machine::step@384 (line 330) ││ │ ││ │ ; {optimized virtual_call} 0.00% ││ │ ││ │ 0x00007fe901216508: mov %rax,%rcx ││ │ ││ │ 0x00007fe90121650b: test %rax,%rax ││ │ ││ │ 0x00007fe90121650e: je 0x00007fe901216834 ;*ifnull ││ │ ││ │ ; - com.google.re2j.Machine::step@391 (line 332) ││ │ ││ │ 0x00007fe901216514: mov 0x20(%rsp),%r9d ││ │ ││ │ 0x00007fe901216519: mov %ebp,%r10d ││ │ ││ │ 0x00007fe90121651c: mov 0x74(%rsp),%eax ││ │╭││ │ 0x00007fe901216520: jmp 0x00007fe901216568 ;*aload ││ ││││ │ ; - com.google.re2j.Machine::step@294 (line 311) 1.05% 1.23% │↘ ││││ │↗ 0x00007fe901216522: cmp $0xc,%r9d │ ││││ ││ 0x00007fe901216526: jne 0x00007fe9012169c5 ;*if_icmpne │ ││││ ││ ; - com.google.re2j.Inst::matchRune@29 (line 63) │ ││││ ││ ; - com.google.re2j.Machine::step@298 (line 311) 0.39% 0.40% │ ││││ ││ 0x00007fe90121652c: mov 0x18(%r12,%rbx,8),%ecx ;*getfield f0 │ ││││ ││ ; - com.google.re2j.Inst::matchRune@33 (line 64) │ ││││ ││ ; - com.google.re2j.Machine::step@298 (line 311) │ ││││ ││ 0x00007fe901216531: cmp 0x20(%rsp),%ecx │ ││╰│ ││ 0x00007fe901216535: je 0x00007fe9012164d2 ;*if_icmpeq │ ││ │ ││ ; - com.google.re2j.Inst::matchRune@37 (line 64) │ ││ │ ││ ; - com.google.re2j.Machine::step@298 (line 311) 0.70% 0.75% │ ││ │ ││ 0x00007fe901216537: mov 0x1c(%r12,%rbx,8),%ecx ;*getfield f1 │ ││ │ ││ ; - com.google.re2j.Inst::matchRune@41 (line 64) │ ││ │ ││ ; - com.google.re2j.Machine::step@298 (line 311) 0.26% 0.17% │ ││ │ ││ 0x00007fe90121653c: cmp 0x20(%rsp),%ecx 0.39% 0.49% │ ││ ╰ ││ 0x00007fe901216540: je 0x00007fe9012164d2 ;*if_icmpeq │ ││ ││ ; - com.google.re2j.Inst::matchRune@45 (line 64) │ ││ ││ ; - com.google.re2j.Machine::step@298 (line 311) 0.86% 0.91% │ ││ ││ 0x00007fe901216542: mov 0x20(%r12,%rbx,8),%ebp ;*getfield f2 │ ││ ││ ; - com.google.re2j.Inst::matchRune@49 (line 64) │ ││ ││ ; - com.google.re2j.Machine::step@298 (line 311) 0.04% 0.05% │ ││ ││ 0x00007fe901216547: cmp 0x20(%rsp),%ebp │ ││ ││ 0x00007fe90121654b: je 0x00007fe901216a0d ;*if_icmpeq │ ││ ││ ; - com.google.re2j.Inst::matchRune@53 (line 64) │ ││ ││ ; - com.google.re2j.Machine::step@298 (line 311) 0.82% 0.97% │ ││ ││ 0x00007fe901216551: mov 0x24(%r12,%rbx,8),%ebp ;*getfield f3 │ ││ ││ ; - com.google.re2j.Inst::matchRune@57 (line 64) │ ││ ││ ; - com.google.re2j.Machine::step@298 (line 311) 0.07% 0.05% │ ││ ││ 0x00007fe901216556: cmp 0x20(%rsp),%ebp │ ││ ││ 0x00007fe90121655a: je 0x00007fe901216a41 ;*if_icmpne │ ││ ││ ; - com.google.re2j.Inst::matchRune@61 (line 64) │ ││ ││ ; - com.google.re2j.Machine::step@298 (line 311) 0.68% 0.91% │ ││ ││ 0x00007fe901216560: mov 0x20(%rsp),%r9d ;*goto │ ││ ││ ; - com.google.re2j.Machine::step@291 (line 307) 0.01% │ ↘│ ││ 0x00007fe901216565: mov %r11,%rcx ;*aload │ │ ││ ; - com.google.re2j.Machine::step@389 (line 332) 0.25% 0.26% │ ↘ ││ 0x00007fe901216568: mov 0x28(%rsp),%r11 0.04% 0.03% │ ││ 0x00007fe90121656d: mov 0x24(%r11),%ebx ;*getfield pool │ ││ ; - com.google.re2j.Machine::free@5 (line 160) │ ││ ; - com.google.re2j.Machine::step@397 (line 333) 0.71% 0.90% │ ││ 0x00007fe901216571: mov 0xc(%r12,%rbx,8),%r11d ;*arraylength │ ││ ; - com.google.re2j.Machine::free@8 (line 160) │ ││ ; - com.google.re2j.Machine::step@397 (line 333) │ ││ ; implicit exception: dispatches to 0x00007fe901216b25 0.03% 0.01% │ ││ 0x00007fe901216576: mov 0x28(%rsp),%r8 0.19% 0.26% │ ││ 0x00007fe90121657b: mov 0xc(%r8),%ebp ;*getfield poolSize │ ││ ; - com.google.re2j.Machine::free@1 (line 160) │ ││ ; - com.google.re2j.Machine::step@397 (line 333) 0.05% 0.06% │ ││ 0x00007fe90121657f: cmp %r11d,%ebp │ ││ 0x00007fe901216582: jge 0x00007fe90121697d ;*if_icmplt │ ││ ; - com.google.re2j.Machine::free@9 (line 160) │ ││ ; - com.google.re2j.Machine::step@397 (line 333) 0.76% 0.75% │ ││ 0x00007fe901216588: mov %ebp,%r8d 0.01% │ ││ 0x00007fe90121658b: inc %r8d 0.29% 0.24% │ ││ 0x00007fe90121658e: mov 0x28(%rsp),%rdi 0.04% 0.03% │ ││ 0x00007fe901216593: mov %r8d,0xc(%rdi) ;*putfield poolSize │ ││ ; - com.google.re2j.Machine::free@45 (line 163) │ ││ ; - com.google.re2j.Machine::step@397 (line 333) 0.79% 0.71% │ ││ 0x00007fe901216597: cmp %r11d,%ebp │ ││ 0x00007fe90121659a: jae 0x00007fe9012168c1 ;*aastore │ ││ ; - com.google.re2j.Machine::free@49 (line 163) │ ││ ; - com.google.re2j.Machine::step@397 (line 333) │ ││ 0x00007fe9012165a0: mov %rcx,%r11 0.19% 0.16% │ ││ 0x00007fe9012165a3: shr $0x3,%r11 0.04% 0.05% │ ││ 0x00007fe9012165a7: lea (%r12,%rbx,8),%r10 ;*getfield pool │ ││ ; - com.google.re2j.Machine::free@5 (line 160) │ ││ ; - com.google.re2j.Machine::step@397 (line 333) 0.64% 0.63% │ ││ 0x00007fe9012165ab: lea 0x10(%r10,%rbp,4),%r10 0.01% │ ││ 0x00007fe9012165b0: mov %r11d,(%r10) 0.27% 0.29% │ ││ 0x00007fe9012165b3: shr $0x9,%r10 0.01% 0.02% │ ││ 0x00007fe9012165b7: movabs $0x7fe912729000,%r11 0.72% 0.70% │ ││ 0x00007fe9012165c1: mov %r12b,(%r11,%r10,1) ;*aastore │ ││ ; - com.google.re2j.Machine::free@49 (line 163) │ ││ ; - com.google.re2j.Machine::step@397 (line 333) 0.13% 0.19% │ ││ 0x00007fe9012165c5: xor %r10d,%r10d ; OopMap{[8]=Oop [24]=Oop [40]=Oop off=392} │ ││ ;*goto │ ││ ; - com.google.re2j.Machine::step@403 (line 270) 0.41% 0.29% │ ↗││ 0x00007fe9012165c8: test %eax,0x18b0aa32(%rip) # 0x00007fe919d21000 │ │││ ;*goto │ │││ ; - com.google.re2j.Machine::step@403 (line 270) │ │││ ; {poll} 0.32% 0.27% │ │││ 0x00007fe9012165ce: mov 0x8(%rsp),%r10 0.88% 0.70% │ │││ 0x00007fe9012165d3: mov 0xc(%r10),%r10d 0.34% 0.25% │ │││ 0x00007fe9012165d7: cmp %r10d,%eax │ │││ 0x00007fe9012165da: jge 0x00007fe901216758 0.37% 0.20% │ │││ 0x00007fe9012165e0: mov %r9d,0x20(%rsp) 0.29% 0.31% │ │││ 0x00007fe9012165e5: mov %eax,%r10d ;*aload_1 │ │││ ; - com.google.re2j.Machine::step@21 (line 271) 0.85% 0.61% ↘ │││ 0x00007fe9012165e8: mov 0x8(%rsp),%r11 0.30% 0.25% │││ 0x00007fe9012165ed: mov 0x10(%r11),%r11d ;*getfield dense │││ ; - com.google.re2j.Machine::step@22 (line 271) 0.42% 0.38% │││ 0x00007fe9012165f1: mov 0xc(%r12,%r11,8),%r9d ; implicit exception: dispatches to 0x00007fe901216add 0.53% 0.58% │││ 0x00007fe9012165f6: cmp %r9d,%r10d │││ 0x00007fe9012165f9: jae 0x00007fe901216845 0.90% 0.65% │││ 0x00007fe9012165ff: shl $0x3,%r11 0.24% 0.18% │││ 0x00007fe901216603: mov 0x10(%r11,%r10,4),%r11d ;*aaload │││ ; - com.google.re2j.Machine::step@27 (line 271) 0.43% 0.39% │││ 0x00007fe901216608: mov 0x10(%r12,%r11,8),%r8d ;*getfield thread │││ ; - com.google.re2j.Machine::step@40 (line 275) │││ ; implicit exception: dispatches to 0x00007fe901216b35 1.51% 1.65% │││ 0x00007fe90121660d: mov %r10d,%eax 0.53% 0.39% │││ 0x00007fe901216610: inc %eax ;*iadd │││ ; - com.google.re2j.Machine::step@237 (line 298) 0.20% 0.15% │││ 0x00007fe901216612: test %r8d,%r8d ╭│││ 0x00007fe901216615: jne 0x00007fe901216623 ;*ifnonnull ││││ ; - com.google.re2j.Machine::step@47 (line 276) 0.16% 0.24% ││││ 0x00007fe901216617: mov 0x24(%rsp),%r10d 0.24% 0.20% ││││ 0x00007fe90121661c: mov 0x20(%rsp),%r9d 0.18% 0.19% │╰││ 0x00007fe901216621: jmp 0x00007fe9012165c8 0.40% 0.38% ↘ ││ 0x00007fe901216623: mov 0x24(%rsp),%r9d 0.07% 0.05% ││ 0x00007fe901216628: test %r9d,%r9d ││ 0x00007fe90121662b: jne 0x00007fe901216935 ;*ifeq ││ ; - com.google.re2j.Machine::step@55 (line 279) 0.55% 0.34% ││ 0x00007fe901216631: mov 0x10(%r12,%r8,8),%ebx ;*getfield inst ││ ; - com.google.re2j.Machine::step@101 (line 283) 1.39% 1.33% ││ 0x00007fe901216636: mov 0xc(%r12,%rbx,8),%r9d ;*getfield op ││ ; - com.google.re2j.Machine::step@111 (line 285) ││ ; implicit exception: dispatches to 0x00007fe901216b15 3.54% 3.49% ││ 0x00007fe90121663b: mov 0xc(%r12,%r8,8),%r14d ;*getfield cap ││ ; - com.google.re2j.Machine::step@172 (line 292) 0.01% 0.03% ││ 0x00007fe901216640: lea (%r12,%r8,8),%r11 ;*getfield thread ││ ; - com.google.re2j.Machine::step@40 (line 275) 0.09% 0.07% ││ 0x00007fe901216644: cmp $0x9,%r9d ││ 0x00007fe901216648: je 0x00007fe90121672e 0.92% 0.93% ││ 0x00007fe90121664e: cmp $0x9,%r9d ╰│ 0x00007fe901216652: jg 0x00007fe9012164ad │ 0x00007fe901216658: cmp $0x7,%r9d │ 0x00007fe90121665c: je 0x00007fe9012169b5 │ 0x00007fe901216662: cmp $0x7,%r9d ╰ 0x00007fe901216666: jg 0x00007fe901216522 0x00007fe90121666c: cmp $0x6,%r9d 0x00007fe901216670: jne 0x00007fe9012169b5 ;*tableswitch ; - com.google.re2j.Machine::step@114 (line 285) 0x00007fe901216676: mov 0x78(%rsp),%r9d 0x00007fe90121667b: cmp $0x2,%r9d .................................................................................................... 29.20% 27.86% <total for region 1> ....[Hottest Region 2].............................................................................. C2, level 4, com.google.re2j.Machine::add, version 480 (258 bytes) # parm4: rdi = int # parm5: [sp+0x70] = &apos;com/google/re2j/Machine$Thread&apos; (sp of caller) 0x00007fe90120c360: mov 0x8(%rsi),%r10d ; {no_reloc} 0x00007fe90120c364: shl $0x3,%r10 0x00007fe90120c368: cmp %r10,%rax 0x00007fe90120c36b: jne 0x00007fe901045e20 ; {runtime_call} 0x00007fe90120c371: data16 xchg %ax,%ax 0x00007fe90120c374: nopl 0x0(%rax,%rax,1) 0x00007fe90120c37c: data16 data16 xchg %ax,%ax [Verified Entry Point] 0.36% 0.37% 0x00007fe90120c380: mov %eax,-0x14000(%rsp) 1.47% 1.50% 0x00007fe90120c387: push %rbp 0.33% 0.11% 0x00007fe90120c388: sub $0x60,%rsp ;*synchronization entry ; - com.google.re2j.Machine::add@-1 (line 345) 1.08% 1.13% 0x00007fe90120c38c: mov %edi,0x38(%rsp) 0.65% 0.64% 0x00007fe90120c390: mov %r9,0x30(%rsp) 0.14% 0.11% 0x00007fe90120c395: mov %r8d,0x20(%rsp) 0.18% 0.14% 0x00007fe90120c39a: mov %rsi,0x8(%rsp) 0.78% 1.02% 0x00007fe90120c39f: mov %rdx,0x28(%rsp) 0.56% 0.54% 0x00007fe90120c3a4: mov %rcx,0x48(%rsp) 0.21% 0.13% 0x00007fe90120c3a9: mov 0x28(%rcx),%r11d ;*getfield pc ; - com.google.re2j.Machine::add@2 (line 345) ; implicit exception: dispatches to 0x00007fe90120c66d 0.13% 0.19% 0x00007fe90120c3ad: mov 0x14(%rdx),%ebx ;*getfield sparse ; - com.google.re2j.Machine$Queue::contains@1 (line 46) ; - com.google.re2j.Machine::add@5 (line 345) ; implicit exception: dispatches to 0x00007fe90120c67d 0.84% 0.73% 0x00007fe90120c3b0: mov 0xc(%r12,%rbx,8),%r8d ; implicit exception: dispatches to 0x00007fe90120c691 0.68% 0.52% 0x00007fe90120c3b5: cmp %r8d,%r11d 0x00007fe90120c3b8: jae 0x00007fe90120c528 ;*iaload ; - com.google.re2j.Machine$Queue::contains@5 (line 46) ; - com.google.re2j.Machine::add@5 (line 345) 0.22% 0.17% 0x00007fe90120c3be: mov 0x10(%rdx),%r9d ;*getfield dense ; - com.google.re2j.Machine$Queue::contains@18 (line 50) ; - com.google.re2j.Machine::add@5 (line 345) 0.14% 0.14% 0x00007fe90120c3c2: mov 0xc(%rdx),%ecx ;*getfield size ; - com.google.re2j.Machine$Queue::contains@9 (line 47) ; - com.google.re2j.Machine::add@5 (line 345) 0.89% 0.76% 0x00007fe90120c3c5: lea (%r12,%rbx,8),%rdi 0.53% 0.67% 0x00007fe90120c3c9: mov 0x10(%rdi,%r11,4),%ebp ;*iaload ; - com.google.re2j.Machine$Queue::contains@5 (line 46) ; - com.google.re2j.Machine::add@5 (line 345) 0.29% 0.35% 0x00007fe90120c3ce: cmp %ecx,%ebp ╭ 0x00007fe90120c3d0: jl 0x00007fe90120c467 ;*invokevirtual contains │ ; - com.google.re2j.Machine::add@5 (line 345) 0.70% 0.69% │↗ 0x00007fe90120c3d6: mov %ecx,%r10d 0.67% 0.57% ││ 0x00007fe90120c3d9: inc %r10d 0.56% 0.53% ││ 0x00007fe90120c3dc: mov 0x28(%rsp),%rdx 0.36% 0.33% ││ 0x00007fe90120c3e1: mov %r10d,0xc(%rdx) ;*putfield size ││ ; - com.google.re2j.Machine$Queue::add@8 (line 57) ││ ; - com.google.re2j.Machine::add@19 (line 348) 0.76% 0.65% ││ 0x00007fe90120c3e5: cmp %r8d,%r11d ││ 0x00007fe90120c3e8: jae 0x00007fe90120c559 0.70% 0.66% ││ 0x00007fe90120c3ee: mov %ecx,0x10(%rdi,%r11,4) ;*iastore ││ ; - com.google.re2j.Machine$Queue::add@18 (line 58) ││ ; - com.google.re2j.Machine::add@19 (line 348) 0.48% 0.37% ││ 0x00007fe90120c3f3: mov 0xc(%r12,%r9,8),%r10d ; implicit exception: dispatches to 0x00007fe90120c6a5 0.33% 0.34% ││ 0x00007fe90120c3f8: cmp %r10d,%ecx ││ 0x00007fe90120c3fb: jae 0x00007fe90120c599 ;*aaload ││ ; - com.google.re2j.Machine$Queue::add@24 (line 59) ││ ; - com.google.re2j.Machine::add@19 (line 348) 0.47% 0.58% ││ 0x00007fe90120c401: lea (%r12,%r9,8),%rdi ;*getfield dense ││ ; - com.google.re2j.Machine$Queue::contains@18 (line 50) ││ ; - com.google.re2j.Machine::add@5 (line 345) 0.71% 1.02% ││ 0x00007fe90120c405: lea 0x10(%rdi,%rcx,4),%rbp 0.34% 0.42% ││ 0x00007fe90120c40a: mov 0x0(%rbp),%r8d ;*aaload ││ ; - com.google.re2j.Machine$Queue::add@24 (line 59) ││ ; - com.google.re2j.Machine::add@19 (line 348) 0.18% 0.19% ││ 0x00007fe90120c40e: test %r8d,%r8d ││ 0x00007fe90120c411: je 0x00007fe90120c4b5 ;*ifnonnull ││ ; - com.google.re2j.Machine$Queue::add@27 (line 60) ││ ; - com.google.re2j.Machine::add@19 (line 348) 0.40% 0.47% ││ 0x00007fe90120c417: lea (%r12,%r8,8),%rbx ;*aload_3 ││ ; - com.google.re2j.Machine$Queue::add@45 (line 63) ││ ; - com.google.re2j.Machine::add@19 (line 348) 0.68% 0.59% ││ 0x00007fe90120c41b: mov %r11d,0xc(%rbx) ;*putfield pc ││ ; - com.google.re2j.Machine$Queue::add@52 (line 64) ││ ; - com.google.re2j.Machine::add@19 (line 348) 2.22% 2.22% ││ 0x00007fe90120c41f: mov 0x48(%rsp),%r10 0.15% 0.14% ││ 0x00007fe90120c424: mov 0xc(%r10),%r10d ;*getfield op ││ ; - com.google.re2j.Machine::add@25 (line 349) 0.76% 0.83% ││ 0x00007fe90120c428: mov %r12d,0x10(%rbx) ;*putfield thread ││ ; - com.google.re2j.Machine$Queue::add@47 (line 63) ││ ; - com.google.re2j.Machine::add@19 (line 348) 0.84% 1.16% ││ 0x00007fe90120c42c: mov %r10d,%r8d 0.58% 0.69% ││ 0x00007fe90120c42f: dec %r8d 0.27% 0.29% ││ 0x00007fe90120c432: cmp $0xc,%r8d ││ 0x00007fe90120c436: jae 0x00007fe90120c5d9 ;*tableswitch ││ ; - com.google.re2j.Machine::add@28 (line 349) 0.56% 0.50% ││ 0x00007fe90120c43c: mov 0x48(%rsp),%r11 0.78% 0.74% ││ 0x00007fe90120c441: mov 0x14(%r11),%r11d ;*getfield arg ││ ; - com.google.re2j.Machine::add@145 (line 363) 0.65% 0.59% ││ 0x00007fe90120c445: mov 0x48(%rsp),%r8 0.07% 0.02% ││ 0x00007fe90120c44a: mov 0x30(%r8),%r8d 0.57% 0.63% ││ 0x00007fe90120c44e: movslq %r10d,%r10 0.68% 0.69% ││ 0x00007fe90120c451: mov %r8,%rcx 0.60% 0.52% ││ 0x00007fe90120c454: shl $0x3,%rcx ;*getfield outInst ││ ; - com.google.re2j.Machine::add@180 (line 369) 0.13% 0.15% ││ 0x00007fe90120c458: movabs $0x7fe90120c300,%r8 ; {section_word} 0.45% 0.36% ││ 0x00007fe90120c462: jmpq *-0x8(%r8,%r10,8) ;*tableswitch ││ ; - com.google.re2j.Machine::add@28 (line 349) 0.10% 0.07% ↘│ 0x00007fe90120c467: mov 0xc(%r12,%r9,8),%edx ; implicit exception: dispatches to 0x00007fe90120c6f1 0.15% 0.16% │ 0x00007fe90120c46c: cmp %edx,%ebp │ 0x00007fe90120c46e: jae 0x00007fe90120c5e9 0.11% 0.06% │ 0x00007fe90120c474: lea (%r12,%r9,8),%r10 0.01% 0.00% │ 0x00007fe90120c478: mov 0x10(%r10,%rbp,4),%r10d ;*aaload │ ; - com.google.re2j.Machine$Queue::contains@22 (line 50) │ ; - com.google.re2j.Machine::add@5 (line 345) 0.14% 0.14% │ 0x00007fe90120c47d: mov 0xc(%r12,%r10,8),%ebp ;*getfield pc │ ; - com.google.re2j.Machine$Queue::contains@29 (line 51) │ ; - com.google.re2j.Machine::add@5 (line 345) │ ; implicit exception: dispatches to 0x00007fe90120c711 0.48% 0.57% │ 0x00007fe90120c482: cmp %r11d,%ebp ╰ 0x00007fe90120c485: jne 0x00007fe90120c3d6 ;*if_icmpne ; - com.google.re2j.Machine$Queue::contains@33 (line 51) ; - com.google.re2j.Machine::add@5 (line 345) 0x00007fe90120c48b: mov $0xffffff65,%esi 0x00007fe90120c490: rex.W pushq 0x28(%rsp) 0x00007fe90120c495: rex.W popq 0x10(%rsp) 0x00007fe90120c49a: rex.W pushq 0x30(%rsp) .................................................................................................... 27.12% 27.17% <total for region 2> ....[Hottest Region 3].............................................................................. C2, level 4, com.google.re2j.Machine::add, version 480 (361 bytes) 0x00007fe90120c87a: mov 0x70(%rsp),%r10 0x00007fe90120c87f: mov %r10,(%rsp) 0x00007fe90120c883: callq 0x00007fe901046020 ; OopMap{off=1320} ;*invokespecial add ; - com.google.re2j.Machine::add@190 (line 369) ; {optimized virtual_call} ╭ 0x00007fe90120c888: jmpq 0x00007fe90120c9e9 │ 0x00007fe90120c88d: mov 0x70(%rsp),%rax │╭ 0x00007fe90120c892: jmpq 0x00007fe90120c9e9 ;*tableswitch ││ ; - com.google.re2j.Machine::add@28 (line 349) 1.10% 1.05% ││ 0x00007fe90120c897: mov 0x8(%rsp),%rsi 0.07% 0.03% ││ 0x00007fe90120c89c: mov 0x28(%rsp),%rdx 0.15% 0.09% ││ 0x00007fe90120c8a1: mov 0x20(%rsp),%r8d 0.30% 0.24% ││ 0x00007fe90120c8a6: mov 0x30(%rsp),%r9 0.47% 0.37% ││ 0x00007fe90120c8ab: mov 0x38(%rsp),%edi 0.03% 0.02% ││ 0x00007fe90120c8af: mov 0x70(%rsp),%r10 0.09% 0.13% ││ 0x00007fe90120c8b4: mov %r10,(%rsp) 0.21% 0.25% ││ 0x00007fe90120c8b8: mov %rsi,%rbp 0.41% 0.28% ││ 0x00007fe90120c8bb: callq 0x00007fe901046020 ; OopMap{rbp=Oop [40]=Oop [48]=Oop [72]=Oop off=1376} ││ ;*invokespecial add ││ ; - com.google.re2j.Machine::add@118 (line 358) ││ ; {optimized virtual_call} 0.14% 0.12% ││ 0x00007fe90120c8c0: mov 0x48(%rsp),%r10 0.05% 0.07% ││ 0x00007fe90120c8c5: mov 0x34(%r10),%r11d 0.57% 0.69% ││ 0x00007fe90120c8c9: mov %r11,%rcx 0.14% 0.09% ││ 0x00007fe90120c8cc: shl $0x3,%rcx ;*getfield argInst ││ ; - com.google.re2j.Machine::add@126 (line 359) 0.07% 0.07% ││ 0x00007fe90120c8d0: mov %rbp,%rsi 0.03% 0.01% ││ 0x00007fe90120c8d3: mov 0x28(%rsp),%rdx 0.51% 0.56% ││ 0x00007fe90120c8d8: mov 0x20(%rsp),%r8d 0.12% 0.13% ││ 0x00007fe90120c8dd: mov 0x30(%rsp),%r9 0.05% 0.06% ││ 0x00007fe90120c8e2: mov 0x38(%rsp),%edi 0.05% 0.02% ││ 0x00007fe90120c8e6: mov %rax,(%rsp) 0.56% 0.67% ││ 0x00007fe90120c8ea: nop 0.14% 0.16% ││ 0x00007fe90120c8eb: callq 0x00007fe901046020 ; OopMap{off=1424} ││ ;*invokespecial add ││ ; - com.google.re2j.Machine::add@136 (line 359) ││ ; {optimized virtual_call} 0.43% 0.32% ││╭ 0x00007fe90120c8f0: jmpq 0x00007fe90120c9e9 ;*aload │││ ; - com.google.re2j.Machine::add@274 (line 389) 1.40% 1.15% │││ 0x00007fe90120c8f5: mov 0x48(%rsp),%r10 0.05% 0.03% │││ 0x00007fe90120c8fa: shr $0x3,%r10 ;*putfield inst │││ ; - com.google.re2j.Machine::alloc@45 (line 154) │││ ; - com.google.re2j.Machine::add@281 (line 390) 0.08% 0.13% │││ 0x00007fe90120c8fe: mov %r10d,0x18(%rsp) 0.37% 0.34% │││ 0x00007fe90120c903: mov 0x70(%rsp),%rbp 0.45% 0.49% │││ 0x00007fe90120c908: test %rbp,%rbp │││╭ 0x00007fe90120c90b: jne 0x00007fe90120c9f5 ;*ifnonnull ││││ ; - com.google.re2j.Machine::add@276 (line 389) 0.03% 0.07% ││││ 0x00007fe90120c911: mov 0x8(%rsp),%r10 0.15% 0.13% ││││ 0x00007fe90120c916: mov 0xc(%r10),%r10d ;*getfield poolSize ││││ ; - com.google.re2j.Machine::alloc@1 (line 148) ││││ ; - com.google.re2j.Machine::add@281 (line 390) 0.33% 0.42% ││││ 0x00007fe90120c91a: test %r10d,%r10d ││││ 0x00007fe90120c91d: jle 0x00007fe90120ca3a ;*ifle ││││ ; - com.google.re2j.Machine::alloc@4 (line 148) ││││ ; - com.google.re2j.Machine::add@281 (line 390) 0.47% 0.47% ││││ 0x00007fe90120c923: mov 0x8(%rsp),%r11 0.05% 0.05% ││││ 0x00007fe90120c928: mov 0x24(%r11),%r9d ;*getfield pool ││││ ; - com.google.re2j.Machine::alloc@18 (line 150) ││││ ; - com.google.re2j.Machine::add@281 (line 390) 0.13% 0.12% ││││ 0x00007fe90120c92c: mov %r10d,%ebp 0.40% 0.41% ││││ 0x00007fe90120c92f: dec %ebp ;*isub ││││ ; - com.google.re2j.Machine::alloc@13 (line 149) ││││ ; - com.google.re2j.Machine::add@281 (line 390) 0.34% 0.44% ││││ 0x00007fe90120c931: mov %ebp,0xc(%r11) ;*putfield poolSize ││││ ; - com.google.re2j.Machine::alloc@14 (line 149) ││││ ; - com.google.re2j.Machine::add@281 (line 390) 0.05% 0.05% ││││ 0x00007fe90120c935: mov 0xc(%r12,%r9,8),%r8d ; implicit exception: dispatches to 0x00007fe90120c6e1 0.12% 0.20% ││││ 0x00007fe90120c93a: cmp %r8d,%ebp ││││ 0x00007fe90120c93d: jae 0x00007fe90120cb3e 0.34% 0.41% ││││ 0x00007fe90120c943: lea (%r12,%r9,8),%r11 0.44% 0.48% ││││ 0x00007fe90120c947: mov 0xc(%r11,%r10,4),%r10d ;*aaload ││││ ; - com.google.re2j.Machine::alloc@25 (line 150) ││││ ; - com.google.re2j.Machine::add@281 (line 390) 0.06% 0.05% ││││ 0x00007fe90120c94c: test %r10d,%r10d ││││ 0x00007fe90120c94f: je 0x00007fe90120cb59 ;*putfield inst ││││ ; - com.google.re2j.Machine::alloc@45 (line 154) ││││ ; - com.google.re2j.Machine::add@281 (line 390) 0.09% 0.13% ││││ 0x00007fe90120c955: mov %r10,%rbp 0.37% 0.29% ││││ 0x00007fe90120c958: shl $0x3,%rbp ;*aload_2 ││││ ; - com.google.re2j.Machine::alloc@43 (line 154) ││││ ; - com.google.re2j.Machine::add@281 (line 390) 0.41% 0.35% ││││ 0x00007fe90120c95c: mov 0x18(%rsp),%r11d 0.04% 0.10% ││││ 0x00007fe90120c961: mov %r11d,0x10(%rbp) 1.30% 1.24% ││││ 0x00007fe90120c965: mov %rbp,%r10 0.26% 0.13% ││││ 0x00007fe90120c968: shr $0x9,%r10 0.17% 0.25% ││││ 0x00007fe90120c96c: movabs $0x7fe912729000,%r11 0.03% 0.02% ││││ 0x00007fe90120c976: mov %r12b,(%r11,%r10,1) ;*aload ││││ ; - com.google.re2j.Machine::add@295 (line 394) 0.60% 0.59% ││││ ↗ 0x00007fe90120c97a: mov 0x30(%rsp),%rdi 0.33% 0.31% ││││ │ 0x00007fe90120c97f: mov 0xc(%rdi),%r10d ;*arraylength ││││ │ ; - com.google.re2j.Machine::add@297 (line 394) ││││ │ ; implicit exception: dispatches to 0x00007fe90120c6b9 0.23% 0.25% ││││ │ 0x00007fe90120c983: test %r10d,%r10d ││││ │ 0x00007fe90120c986: jle 0x00007fe90120cb8a ;*ifle ││││ │ ; - com.google.re2j.Machine::add@298 (line 394) 0.03% 0.04% ││││ │ 0x00007fe90120c98c: mov 0xc(%rbp),%r8d ;*getfield cap ││││ │ ; - com.google.re2j.Machine::add@303 (line 394) 0.59% 0.63% ││││ │ 0x00007fe90120c990: mov %r8,%r11 0.35% 0.30% ││││ │ 0x00007fe90120c993: shl $0x3,%r11 0.24% 0.34% ││││ │ 0x00007fe90120c997: cmp %rdi,%r11 ││││╭│ 0x00007fe90120c99a: je 0x00007fe90120c9c7 ;*if_acmpeq ││││││ ; - com.google.re2j.Machine::add@308 (line 394) 0.05% 0.06% ││││││ 0x00007fe90120c99c: mov 0xc(%r12,%r8,8),%r11d ; implicit exception: dispatches to 0x00007fe90120c6c9 1.30% 1.39% ││││││ 0x00007fe90120c9a1: lea (%r12,%r8,8),%rcx ;*getfield cap ││││││ ; - com.google.re2j.Machine::add@303 (line 394) 0.21% 0.27% ││││││ 0x00007fe90120c9a5: cmp %r10d,%r11d ││││││ 0x00007fe90120c9a8: jb 0x00007fe90120cb69 1.48% 1.53% ││││││ 0x00007fe90120c9ae: lea 0x10(%r12,%r8,8),%rsi 0.01% 0.03% ││││││ 0x00007fe90120c9b3: add $0x10,%rdi 0.08% 0.03% ││││││ 0x00007fe90120c9b7: movslq %r10d,%rdx 0.10% 0.23% ││││││ 0x00007fe90120c9ba: movabs $0x7fe901052640,%r10 0.78% 0.88% ││││││ 0x00007fe90120c9c4: callq *%r10 ;*aload ││││││ ; - com.google.re2j.Machine::add@326 (line 397) 0.00% ││││↘│ 0x00007fe90120c9c7: mov %rbx,%r10 0.44% 0.61% ││││ │ 0x00007fe90120c9ca: mov %rbp,%r8 0.41% 0.34% ││││ │ 0x00007fe90120c9cd: shr $0x3,%r8 0.17% 0.13% ││││ │ 0x00007fe90120c9d1: mov %r8d,0x10(%rbx) 0.01% 0.00% ││││ │ 0x00007fe90120c9d5: shr $0x9,%r10 0.59% 0.65% ││││ │ 0x00007fe90120c9d9: movabs $0x7fe912729000,%r11 0.29% 0.31% ││││ │ 0x00007fe90120c9e3: mov %r12b,(%r11,%r10,1) ;*putfield thread ││││ │ ; - com.google.re2j.Machine::add@330 (line 397) 0.18% 0.22% ││││ │ 0x00007fe90120c9e7: xor %eax,%eax ;*goto ││││ │ ; - com.google.re2j.Machine::add@195 (line 370) 0.82% 0.70% ↘↘↘│ │ 0x00007fe90120c9e9: add $0x60,%rsp 0.86% 0.83% │ │ 0x00007fe90120c9ed: pop %rbp 0.19% 0.17% │ │ 0x00007fe90120c9ee: test %eax,0x18b1460c(%rip) # 0x00007fe919d21000 │ │ ; {poll_return} 0.80% 0.84% │ │ 0x00007fe90120c9f4: retq 0.00% ↘ │ 0x00007fe90120c9f5: mov %r10d,0x10(%rbp) 0.00% │ 0x00007fe90120c9f9: mov %rbp,%r10 │ 0x00007fe90120c9fc: shr $0x9,%r10 0.03% 0.00% │ 0x00007fe90120ca00: movabs $0x7fe912729000,%r11 │ 0x00007fe90120ca0a: mov %r12b,(%r11,%r10,1) ;*putfield inst │ ; - com.google.re2j.Machine::add@292 (line 392) ╰ 0x00007fe90120ca0e: jmpq 0x00007fe90120c97a ;*tableswitch ; - com.google.re2j.Machine::add@28 (line 349) 0x00007fe90120ca13: mov 0x8(%rsp),%rsi 0x00007fe90120ca18: mov 0x28(%rsp),%rdx 0x00007fe90120ca1d: mov 0x20(%rsp),%r8d 0x00007fe90120ca22: mov 0x30(%rsp),%r9 0x00007fe90120ca27: mov %r10d,%edi 0x00007fe90120ca2a: mov 0x70(%rsp),%r10 .................................................................................................... 24.81% 25.06% <total for region 3> ....[Hottest Regions]............................................................................... 29.20% 27.86% C2, level 4 com.google.re2j.Machine::step, version 487 (494 bytes) 27.12% 27.17% C2, level 4 com.google.re2j.Machine::add, version 480 (258 bytes) 24.81% 25.06% C2, level 4 com.google.re2j.Machine::add, version 480 (361 bytes) 8.50% 9.08% C2, level 4 com.google.re2j.Machine::match, version 527 (942 bytes) 6.68% 7.84% runtime stub StubRoutines::jint_disjoint_arraycopy (128 bytes) 0.38% 0.37% [kernel.kallsyms] [unknown] (6 bytes) 0.29% 0.10% C2, level 4 com.google.re2j.Machine::init, version 537 (250 bytes) 0.25% 0.19% C2, level 4 com.google.re2j.Machine::step, version 487 (46 bytes) 0.11% 0.00% C2, level 4 com.google.re2j.Machine::step, version 487 (12 bytes) 0.11% 0.01% [kernel.kallsyms] [unknown] (49 bytes) 0.09% 0.02% [kernel.kallsyms] [unknown] (11 bytes) 0.09% 0.02% [kernel.kallsyms] [unknown] (27 bytes) 0.07% 0.01% [kernel.kallsyms] [unknown] (24 bytes) 0.05% 0.02% [kernel.kallsyms] [unknown] (32 bytes) 0.05% 0.00% C2, level 4 com.google.re2j.Machine::init, version 537 (17 bytes) 0.05% 0.02% C2, level 4 com.google.re2j.Machine::init, version 537 (18 bytes) 0.04% 0.01% C2, level 4 com.google.re2j.Matcher::find, version 556 (30 bytes) 0.04% 0.08% libjvm.so _ZN13RelocIterator10initializeEP7nmethodPhS2_ (97 bytes) 0.03% 0.01% [kernel.kallsyms] [unknown] (39 bytes) 0.03% 0.03% C2, level 4 java.util.Collections::shuffle, version 561 (53 bytes) 1.98% 2.06% <...other 419 warm regions...> .................................................................................................... 100.00% 100.00% <totals> ....[Hottest Methods (after inlining)].............................................................. 51.93% 52.24% C2, level 4 com.google.re2j.Machine::add, version 480 29.58% 28.08% C2, level 4 com.google.re2j.Machine::step, version 487 8.55% 9.11% C2, level 4 com.google.re2j.Machine::match, version 527 6.68% 7.84% runtime stub StubRoutines::jint_disjoint_arraycopy 1.60% 1.26% [kernel.kallsyms] [unknown] 0.46% 0.13% C2, level 4 com.google.re2j.Machine::init, version 537 0.22% 0.14% C2, level 4 com.google.re2j.Matcher::find, version 556 0.11% 0.11% C2, level 4 com.github.arnaudroger.re2j.generated.Re2jFindRegex_testExp2_jmhTest::testExp2_thrpt_jmhStub, version 627 0.07% 0.09% libc-2.26.so vfprintf 0.06% 0.05% C2, level 4 java.util.Collections::shuffle, version 561 0.05% 0.08% libjvm.so _ZN13RelocIterator10initializeEP7nmethodPhS2_ 0.04% 0.07% hsdis-amd64.so decode_instructions 0.03% 0.01% libpthread-2.26.so __libc_write 0.03% 0.01% libc-2.26.so _IO_fflush 0.03% 0.01% libc-2.26.so _IO_default_xsputn 0.02% 0.04% libc-2.26.so _IO_fwrite 0.02% 0.04% libjvm.so _ZN12outputStream15update_positionEPKcm 0.02% 0.01% runtime stub StubRoutines::arrayof_jint_fill 0.02% 0.02% libjvm.so _ZN13xmlTextStream5writeEPKcm 0.01% 0.08% libjvm.so _ZN10fileStream5writeEPKcm 0.43% 0.23% <...other 67 warm methods...> .................................................................................................... 100.00% 99.67% <totals> ....[Distribution by Source]........................................................................ 90.92% 89.88% C2, level 4 6.70% 7.86% runtime stub 1.60% 1.26% [kernel.kallsyms] 0.41% 0.54% libjvm.so 0.21% 0.30% libc-2.26.so 0.05% 0.07% hsdis-amd64.so 0.04% 0.06% libpthread-2.26.so 0.03% 0.03% interpreter 0.01% [vdso] 0.01% C1, level 3 .................................................................................................... 100.00% 100.00% <totals> # Run complete. Total time: 00:00:45 Benchmark Mode Cnt Score Error Units Re2jFindRegex.testExp2 thrpt 20 5503.169 ± 28.844 ops/s Re2jFindRegex.testExp2:·asm thrpt NaN ---
80.539683
144
0.435396
2402fda3ab6bed195bc96289cb9ead1f4601029d
661
asm
Assembly
oeis/087/A087214.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/087/A087214.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/087/A087214.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A087214: Expansion of e.g.f.: exp(x)/(1-x^2/2). ; Submitted by Jamie Morken(s2) ; 1,1,2,4,13,41,196,862,5489,31033,247006,1706816,16302397,133131649,1483518128,13978823146,178022175361,1901119947857,27237392830234,325091511083548,5175104637744461,68269217327545081,1195449171318970492,17272111983868905494,329943971284035855793,5181633595160671648201,107231790667311653132726,1818753391901395748518552,40533616872243804884170429,738413877111966673898532113,17632123339426055124614136616,343362452857064503362817432546,8745533176355323341808611761537 mov $2,1 lpb $0 mul $2,$0 sub $0,1 mul $2,$0 sub $0,1 div $2,2 add $3,$2 lpe mov $0,$3 add $0,1
41.3125
469
0.816944
7d41bd9acfc7be62f2e2a21875bec9217519ac8c
547
asm
Assembly
programs/oeis/180/A180663.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/180/A180663.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/180/A180663.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A180663: Mirror image of the Golden Triangle: T(n,k) = A001654(n-k) for n>=0 and 0<=k<=n. ; 0,1,0,2,1,0,6,2,1,0,15,6,2,1,0,40,15,6,2,1,0,104,40,15,6,2,1,0,273,104,40,15,6,2,1,0,714,273,104,40,15,6,2,1,0,1870,714,273,104,40,15,6,2,1,0,4895,1870,714,273,104,40,15,6,2,1,0,12816,4895,1870,714,273,104,40,15,6,2,1,0,33552,12816,4895,1870,714,273,104,40,15,6,2,1,0,87841,33552,12816,4895,1870,714,273,104,40 seq $0,25676 ; Exponent of 8 (value of i) in n-th number of form 8^i*9^j. seq $0,120718 ; Expansion of 3*x/(1 - 2*x^2 - 2*x + x^3). div $0,3
78.142857
312
0.650823
45e5077efd29e499628e14f2b7127be08bca1ca4
413
asm
Assembly
oeis/116/A116406.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/116/A116406.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/116/A116406.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A116406: Expansion of ((1+x-2x^2)+(1+x)*sqrt(1-4x^2))/(2(1-4x^2)). ; Submitted by Jamie Morken(s1) ; 1,1,2,3,7,11,26,42,99,163,382,638,1486,2510,5812,9908,22819,39203,89846,155382,354522,616666,1401292,2449868,5546382,9740686,21977516,38754732,87167164,154276028,345994216,614429672,1374282019,2448023843 mov $3,$0 div $0,2 sub $3,1 lpb $0 mov $2,$3 bin $2,$0 sub $0,1 add $1,$2 lpe mov $0,$1 add $0,1
25.8125
205
0.687651
e1d190da75434b19ccb98db5bb4d90893bd3e949
2,637
asm
Assembly
ASS4/rem_dup_word_sent (q8).asm
rahulkumawat1/NASM
09b69e1338e59e43b6ff7403337d13810070d59f
[ "MIT" ]
null
null
null
ASS4/rem_dup_word_sent (q8).asm
rahulkumawat1/NASM
09b69e1338e59e43b6ff7403337d13810070d59f
[ "MIT" ]
null
null
null
ASS4/rem_dup_word_sent (q8).asm
rahulkumawat1/NASM
09b69e1338e59e43b6ff7403337d13810070d59f
[ "MIT" ]
null
null
null
;;;nahi samajh aaye to puch lena;;; read_string: pusha mov byte[len],0 mov dword[size],0 mov eax,0 mov ebx,string read_loop: pusha mov eax,3 mov ebx,0 mov ecx,temp mov edx,1 int 80h popa cmp byte[temp],10 je end_read mov cl,byte[temp] cmp cl,' ' je inc_eax mov cl,byte[temp] mov byte[ebx+eax],cl inc eax inc byte[len] jmp read_loop end_read: mov byte[ebx+eax],' ' inc eax mov byte[ebx+eax],0 cmp byte[len],0 je lll inc dword[size] lll: popa ret inc_eax: mov byte[ebx+eax],' ' inc eax inc dword[size] loop1: cmp eax,20 ja end_loop1 mov cl,al mov byte[ebx+eax],10 inc eax jmp loop1 end_loop1: mov eax,20 add ebx,eax mov eax,0 jmp read_loop print_string: pusha mov ebx,string prints_loop: cmp byte[ebx],0 je end_prints mov cl,byte[ebx] cmp cl,10 je inc_ebx mov byte[temp],cl pusha mov eax,4 mov ebx,1 mov ecx,temp mov edx,1 int 80h popa inc ebx jmp prints_loop end_prints: popa ret inc_ebx: inc ebx jmp prints_loop print_num: pusha mov byte[count],0 cmp byte[num1],0 je print_zero ext: cmp word[num1],0 je print inc byte[count] mov dx,0 mov ax,word[num1] mov bx,10 div bx push dx mov word[num1],ax jmp ext print: cmp byte[count],0 je end_print dec byte[count] pop dx mov byte[num1], dl add byte[num1],30h mov eax,4 mov ebx,1 mov ecx,num1 mov edx,1 int 80h jmp print end_print: popa ret print_zero: mov word[num1],30h mov eax,4 mov ebx,1 mov ecx,num1 mov edx,1 int 80h jmp end_print section .data newl : db 10 section .bss string : resb 1000 len : resd 1 temp : resd 1 array : resb 100 size : resd 1 count : resd 1 num1 : resd 1 temp1 : resd 1 temp2 : resd 1 i : resd 1 j : resd 1 k : resd 1 section .text global _start: _start: mov ebx,string call read_string call remove_rep call print_string mov eax,1 mov ebx,0 int 80h ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; remove_rep: pusha mov ebx,string mov dword[i],0 loop_remi: mov cl,byte[i] cmp cl,byte[size] jnb end_rem mov byte[j],cl inc byte[j] mov eax,20 loop_remj: mov cl,byte[j] cmp cl,byte[size] jnb end_loopj jmp cmp_fullstring end_loopj: inc byte[i] add ebx,20 jmp loop_remi end_rem: popa ret cmp_fullstring: mov ecx,0 loop_c: cmp ecx,20 jnb equal mov dl,byte[ebx+ecx] add ecx,eax cmp dl,byte[ebx+ecx] jne end_equal cmp dl,' ' jmp equal ;;;;;;;;;;;;; sub ecx,eax inc ecx jmp loop_c end_equal: inc byte[j] add eax,20 jmp loop_remj equal: mov word[k],0 mov ecx,eax loop_eq: cmp word[k],20 jnb end_equal mov byte[ebx+ecx],10 inc word[k] inc ecx jmp loop_eq
11.668142
56
0.662874
992408ee9a924d27c9c49b5f8e68aadafe02710d
4,855
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2.log_3635_312.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2.log_3635_312.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2.log_3635_312.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 %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x13b5f, %rbp nop dec %r10 mov (%rbp), %r12d nop nop xor $63019, %rsi lea addresses_WC_ht+0x13ba9, %rsi lea addresses_normal_ht+0x7ac0, %rdi nop nop nop nop nop xor $22325, %rdx mov $45, %rcx rep movsq nop nop nop nop add %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r14 push %r9 push %rax push %rcx push %rdi // Store lea addresses_WT+0x1aaf0, %r11 nop nop nop inc %r9 movw $0x5152, (%r11) cmp %rcx, %rcx // Store lea addresses_UC+0x1f9f0, %r9 nop inc %r10 mov $0x5152535455565758, %rdi movq %rdi, %xmm6 vmovntdq %ymm6, (%r9) nop sub $46773, %r11 // Faulty Load lea addresses_UC+0x59f0, %r10 nop nop sub $53331, %rax movb (%r10), %r14b lea oracles, %r9 and $0xff, %r14 shlq $12, %r14 mov (%r9,%r14,1), %r14 pop %rdi pop %rcx pop %rax pop %r9 pop %r14 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 2, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 11, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 1, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}} {'58': 3635} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
47.135922
2,999
0.660144
07c2704d7be7687eb8dfcddedb0b16c1eb799671
36,864
asm
Assembly
Library/Mailbox/Outbox/outboxTransmitQ.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Mailbox/Outbox/outboxTransmitQ.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Mailbox/Outbox/outboxTransmitQ.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1994 -- All Rights Reserved PROJECT: Clavin MODULE: Outbox -- Queueing Messages for Transmit Threads FILE: outboxTransmitQ.asm AUTHOR: Adam de Boor, May 2, 1994 ROUTINES: Name Description ---- ----------- INT OTQGetTransport Fetches the MailboxTransport for a message EXT OutboxTransmitMessage Arrange for a message to be transmitted to one or more of its addresses. INT OTQAddOneMessage Add a single message to the DBQ for a transmit thread. INT OTQAddOneMessageCallback If the address has the indicated talID, change it to the other one. EXT OutboxTransmitMessageQueue Queue all the messages in a single DBQ to be sent to those addresses marked with the given talID INT OTQGetFirstTransport Fetch the MailboxTransport for the first message in the passed queue. INT OTQCheckAllSameTransport See if the passed queue contains messages all for a single transport INT OTQCheckAllSameTransportCallback See if a message uses the transport driver in the passed local frame INT OTQGetQueueOfFirstTransport Remove all messages that use the same transport as the first message from the passed queue, placing them in a new queue. INT OTQGetQueueOfFirstTransportCallback Callback function to remove the messages that use a transport from the original queue. This cannot be done during a DBQEnum of the original queue, as HugeArrayEnum does *not* cope with having elements removed during the enumeration. INT OTQTransmitMessageQueueInternal Submit the messages in the passed queue for transmission to the marked addresses. INT OTQTransmitMessageQueueInternalCallback Callback function to queue up a single message from a DBQ of messages REVISION HISTORY: Name Date Description ---- ---- ----------- Adam 5/ 2/94 Initial revision DESCRIPTION: Random functions for queueing up messages to be transmitted and arranging for transmit threads to be created, when necessary. $Id: outboxTransmitQ.asm,v 1.1 97/04/05 01:21:30 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Outbox segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OTQGetTransport %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Fetches the MailboxTransport for a message CALLED BY: (INTERNAL) OTQGetFirstTransport, OutboxTransmitMessage PASS: dxax = MailboxMessage cx = talID RETURN: carry set if no address with the given ID carry clear if got one: cxdx = MailboxTransport bx = MailboxTransportOption ax = medium ref token DESTROYED: nothing SIDE EFFECTS: none PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 5/ 2/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OTQGetTransport proc near uses ds, di, si .enter clr si ; start search w/first call OUFindNextAddr ; *ds:di <- message ; ds:si <- addr ; ax <- index of addr jc done mov di, ds:[di] movdw cxdx, ds:[di].MMD_transport mov bx, ds:[di].MMD_transOption mov ax, ds:[si].MITA_medium call UtilVMUnlockDS done: .leave ret OTQGetTransport endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OTQEnsureOnlyOneMedium %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: EC: Make sure that all marked addresses for the single message being sent use the same medium, as we have no means here for spawning multiple threads (one per medium) in the single- message-being-queued case CALLED BY: (INTERNAL) OutboxTransmitMessage PASS: dxax = message being queued cx = talID of addresses to which to send it RETURN: nothing DESTROYED: nothing SIDE EFFECTS: none PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 5/ 5/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if ERROR_CHECK OTQEnsureOnlyOneMedium proc near uses ds, si, di, bx, cx, dx, ax .enter call MessageLock mov si, ds:[di] mov dx, -1 mov si, ds:[si].MMD_transAddrs test cx, mask TID_ADDR_INDEX jnz checkAddressInRange mov bx, cs mov di, offset foo call ChunkArrayEnum inc dx ERROR_Z MUST_HAVE_AT_LEAST_ONE_MARKED_ADDRESS done: call UtilVMUnlockDS .leave ret checkAddressInRange: mov ax, cx andnf ax, mask TID_NUMBER call ChunkArrayElementToPtr ERROR_C MUST_HAVE_AT_LEAST_ONE_MARKED_ADDRESS jmp done ;-------------------- ;ds:di = MailboxInternalTransAddr ;cx = talID of addresses to send ;dx = medium ref for previous address (-1 if no previous marked addr) ; foo: cmp ds:[di].MITA_addrList, cx jne fooDone mov bx, ds:[di].MITA_medium inc dx jz fooSet dec dx cmp dx, bx ERROR_NE ALL_ADDRESSES_MUST_BE_FOR_SAME_TRANSPORT_AND_MEDIUM fooDone: clc retf fooSet: mov dx, bx jmp fooDone OTQEnsureOnlyOneMedium endp endif ; ERROR_CHECK COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OutboxTransmitMessage %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Arrange for a message to be transmitted to one or more of its addresses. CALLED BY: (EXTERNAL) OSCSendMessage, MAOutboxSendableConfirmation, ODSendMessage PASS: dxax = MailboxMessage cx = talID for the addresses to which the message is to be sent (use of the talID is hereby passed to this module; caller should not use it for other addresses) RETURN: carry set if message couldn't be queued: ax = MailboxError carry clear if message queued ax = destroyed DESTROYED: SIDE EFFECTS: PSEUDO CODE/STRATEGY: - plock data block - look for thread for transport driver - if found, add message to queue, setting addresses with passed tal ID to the thread's own tal ID. Thread will discover the new message & addresses on its next time through the loop. (This will *NOT* piggyback the new message onto an existing connection unless the transmit loop is redone.) - if not found: - alloc dbq & entry in tracking block - add msg to dbq - set thread's tal ID to message's - spawn thread - store handle - release block REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 5/ 2/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OutboxTransmitMessage proc far qTalID local word push cx msg local MailboxMessage push dx, ax ForceRef qTalID ; OTQAddOneMessage ForceRef msg ; OTQAddOneMessage uses cx, dx, ds, di, bx, si .enter EC < call OTQEnsureOnlyOneMedium > ; ; Find a thread that's transmitting stuff for the message's transport ; driver. ; call OTQGetTransport ; cxdx <- transport ; bx <- option ; ax <- medium ref EC < WARNING_C NO_MESSAGE_ADDRESS_MARKED_WITH_GIVEN_ID > jc exit clr si call OTQFindOrCreateThread jc done ; ; Add the message to the transmit thread's queue. ; mov cx, ds:[di].OTD_dbq mov dx, ds:[di].OTD_queuedID call OTQAddOneMessage done: call MainThreadUnlock exit: .leave ret OutboxTransmitMessage endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OTQFindOrCreateThread %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Locate the transmit thread for the indicated transport + transOption + medium triple. If no such thread yet exists, create it. CALLED BY: (INTERNAL) OutboxTransmitMessage, OTQTransmitMessageQueueInternal PASS: cxdx = MailboxTransport bx = MailboxTransportOption ax = outboxMedia token si = talID for the thread (0 if should be allocated) RETURN: carry set if couldn't create the thread: ax = ME_UNABLE_TO_CREATE_TRANSMIT_THREAD carry clear if thread found/created: ds:di = OutboxThreadData OutboxThreads block p-locked in either case DESTROYED: ax, si SIDE EFFECTS: thread may be spawned PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 11/ 4/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OTQFindOrCreateThread proc near .enter call OTFindThread ; ds <- MainThreads ; ds:di <- OutboxThreadData, if CF=1 jc doneOK ; ; Thread doesn't exist yet. Spawn the sucker & initialize those parts ; of the OutboxThreadData that are our responsibility. ; ; OTD_xmitID, and OTD_progress are initialized by the transmit thread ; itself. ; push bx ; save transport option call OTCreateTransmitThread ;bx = thread handle ;ds:di = OutboxThreadData pop bx jc error mov ds:[di].MTD_transOption, bx mov ds:[di].OTD_medium, ax movdw ds:[di].MTD_transport, cxdx mov_tr ax, si ; ax <- TalID for thread tst ax jnz haveTalID ; => caller allocated it already call AdminAllocTALID haveTalID: mov ds:[di].OTD_queuedID, ax call OTCreateQueue mov ds:[di].OTD_dbq, ax doneOK: clc done: .leave ret error: mov ax, ME_UNABLE_TO_CREATE_TRANSMIT_THREAD jmp done OTQFindOrCreateThread endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OTQChangeAddressMarks %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Change the talIDs for those addresses marked by the given talID to a new talID CALLED BY: (INTERNAL) OTQAddOneMessage, OTrCancelMessagesCallback PASS: dxax = message bx = MABoxChange with MABC_TYPE filled in and MABC_OUTBOX set cx = talID of addresses to be changed si = new talID RETURN: nothing DESTROYED: nothing SIDE EFFECTS: message block is dirtied PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 5/ 5/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OTQChangeAddressMarks proc far newID local TalID push si boxChange local MABoxChange push bx msg local MailboxMessage push dx, ax uses dx, ds, di, bx, si, bp, ax .enter EC < call OTQEnsureDupsAllMarked > Assert bitSet, bx, MABC_OUTBOX CheckHack <MACT_REMOVED eq 0> Assert bitSet, bx, MABC_TYPE ; must be one of the things ; that indicate existence test cx, mask TID_ADDR_INDEX jnz markByIndex mov bx, SEGMENT_CS mov di, offset changeCallback call MessageAddrEnum done: .leave ret ; ; The TalID we were given was for an address number, so we want to mark ; it and its duplicates appropriately ; markByIndex: call MessageLock ; *ds:di <- message mov si, ds:[di] mov si, ds:[si].MMD_transAddrs mov ax, cx andnf ax, mask TID_NUMBER Assert bitClear, ax, <not mask MABC_ADDRESS> or ss:[boxChange], ax ; for eventual notification if _DUPS_ALWAYS_TOGETHER markByIndexLoop: inc ax CheckHack <MITA_NIL eq -1> jz markByIndexDone dec ax endif ; _DUPS_ALWAYS_TOGETHER call ChunkArrayElementToPtr EC < ERROR_C INVALID_ADDRESS_NUMBER > if _DUPS_ALWAYS_TOGETHER mov ax, ds:[di].MITA_next endif ; _DUPS_ALWAYS_TOGETHER CheckHack <MAS_SENT eq 0> test ds:[di].MITA_flags, mask MTF_STATE jz markByIndexDone EC < tst ds:[di].MITA_addrList > EC < WARNING_NZ OVERWRITING_EXISTING_ADDRESS_MARK > call markAddress if _DUPS_ALWAYS_TOGETHER jmp markByIndexLoop endif ; _DUPS_ALWAYS_TOGETHER markByIndexDone: call UtilVMDirtyDS call UtilVMUnlockDS ; ; Now let the world know about the change to the head address. ; mov ax, ss:[boxChange] call notifyApp jmp done ;-------------------- ; Pass: ds:di = MailboxInternalTransAddr ; *ds:si = address array ; *ds:bx = MailboxMessageDesc ; cx = talID being sought ; ss:bp = replacement talID ; Return: carry set to stop enumerating ; changeCallback: cmp ds:[di].MITA_addrList, cx jne changeDone call markAddress call UtilVMDirtyDS ; ; Send notification if not duplicate address. ; test ds:[di].MITA_flags, mask MTF_DUP jnz changeDone call ChunkArrayPtrToElement ; ax <- addr # Assert bitClear, ax, <not mask MABC_ADDRESS> or ax, ss:[boxChange] call notifyApp changeDone: clc retf ;-------------------- ; Mark a single address with the new ID, adjusting the MTF_STATE ; appropriately. ; ; Pass: ds:di = MailboxInternalTransAddr to mark ; ss:bp = "inherited" frame with newID and boxChange set ; Return: nothing ; ds is *NOT* marked dirty ; Destroyed: bx ; markAddress: mov bx, ss:[newID] mov ds:[di].MITA_addrList, bx ; ; Set the MTF_STATE properly. The rules are: ; - if the new ID is 0, the thing is neither queued nor being sent ; - else we look at the change type to decide. ; BitClr ds:[di].MITA_flags, MTF_STATE CheckHack <offset MABC_TYPE - 8 eq offset MTF_STATE> CheckHack <width MABC_TYPE eq width MTF_STATE> CheckHack <MACT_EXISTS eq MAS_EXISTS> CheckHack <MACT_QUEUED eq MAS_QUEUED> CheckHack <MACT_PREPARING eq MAS_PREPARING> CheckHack <MACT_READY eq MAS_READY> CheckHack <MACT_SENDING eq MAS_SENDING> mov bl, ss:[boxChange].high andnf bx, mask MTF_STATE ornf ds:[di].MITA_flags, bl retn ;-------------------- ; Let the world know that the head of an address chain has changed ; ; Pass: ax = MABoxChange with MABC_ADDRESS set ; ss:bp = stack frame ; Return: nothing ; Destroyed: ax, dx ; notifyApp: push bp, cx movdw cxdx, ss:[msg] mov_tr bp, ax mov ax, MSG_MA_BOX_CHANGED call UtilSendToMailboxApp pop bp, cx retn OTQChangeAddressMarks endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OTQAddOneMessage %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Add a single message to the DBQ for a transmit thread. CALLED BY: (INTERNAL) OutboxTransmitMessage, OTQTransmitMessageQueueInternalCallback PASS: cx = DBQ of transmit thread's queue dx = tal ID for messages queued for this thread ss:bp = inherited local frame qTalID = talID of addresses to be added msg = message to be added RETURN: carry set if unable to add to the queue: ax = MailboxError carry clear if message queued: ax = destroyed DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 5/ 2/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OTQAddOneMessage proc near qTalID local word ; talID of addresses to be added msg local MailboxMessage ; message to be added uses bx, dx, ds, si, di .enter inherit ; ; Change the MITA_addrList fields for all messages marked with ; qTalID to be the talID passed in DX. ; ; 3/9/95: used to skip this if dx == qTalID, but we don't any more as ; we want the notification to be sent, and this is the easiest way to ; cause it to happen -- ardeb ; push cx mov si, dx ; si <- new talID movdw dxax, ss:[msg] ; dxax <- msg to change mov cx, ss:[qTalID] ; cx <- talID for which to look mov bx, (MACT_QUEUED shl offset MABC_TYPE) or \ mask MABC_OUTBOX call OTQChangeAddressMarks pop di ; di <- passed queue if _CONFIRM_AFTER_FIRST_FAILURE or _OUTBOX_FEEDBACK ; ; If there are other messages queued, we need to let the user know ; of the delay for this message if it's the first time it's been ; submitted for transmission. ; call MailboxGetAdminFile call DBQGetCount or ax, dx movdw dxax, ss:[msg] jz addToQueue call OTQNotifyOfDelayIfFirstTime addToQueue: else call MailboxGetAdminFile movdw dxax, ss:[msg] endif ; _CONFIRM_AFTER_FIRST_FAILURE or _OUTBOX_FEEDBACK ; ; Add the thing to the end of the passed queue. ; Must make sure the message isn't already in the queue (as can happen ; if the user chooses to send to individual addresses successively, ; rather than all at once). ; call DBQCheckMember cmc jnc done ; => already there. We say this is a ; successful enqueueing of the message. call DBQAdd jnc done mov ax, ME_CANNOT_ENQUEUE_MESSAGE done: .leave ret OTQAddOneMessage endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OTQNotifyOfDelayIfFirstTime %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Let the user know the message is in the outbox if it might be a bit before it gets sent. CALLED BY: (INTERNAL) OTQAddOneMessage PASS: bx = admin file dxax = message being added si = TalID of affected addresses RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 5/22/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _CONFIRM_AFTER_FIRST_FAILURE or _OUTBOX_FEEDBACK OTQNotifyOfDelayIfFirstTime proc near uses bx, di, cx, bp .enter ; ; Mark any address with 0 tries with the standard "hang on, dude" ; reason. ; mov bp, -1 ; no reason stored yet. if _CONFIRM_AFTER_FIRST_FAILURE push bx endif ; _CONFIRM_AFTER_FIRST_FAILURE mov bx, SEGMENT_CS mov di, offset markAddress mov cx, si ; cx <- talID to look for call MessageAddrEnum if _CONFIRM_AFTER_FIRST_FAILURE pop bx cmp bp, -1 ; anything marked? je done ; no ; ; At least one address was marked, so let the application object ; tell the user about it. ; call DBQAddRef MovMsg cxdx, dxax mov bp, si mov ax, MSG_MA_OUTBOX_CONFIRMATION call UtilSendToMailboxApp MovMsg dxax, cxdx done: endif ; _CONFIRM_AFTER_FIRST_FAILURE .leave ret ;-------------------- ; Callback to set the reason for any address just queued with 0 tries ; ; Pass: ; cx = TalID to look for ; bp = -1 or reason token obtained before ; ds:di = MailboxInternalTransAddr to check ; *ds:si = trans addr array ; *ds:bx = MailboxMessageDesc ; Return: ; carry set to stop enumerating (always clear) ; bp = -1 or reason token, if needed to mark something ; Destroyed: ; nothing markAddress: cmp ds:[di].MITA_addrList, cx jne markAddressDone test ds:[di].MITA_flags, mask MTF_TRIES jnz markAddressDone cmp bp, -1 jne haveReason push cx, dx, ax mov cx, handle uiOutboxSendingAnotherDocument mov dx, offset uiOutboxSendingAnotherDocument call ORStoreReason mov_tr bp, ax Assert ne, bp, -1 pop cx, dx, ax haveReason: mov ds:[di].MITA_reason, bp CheckHack <offset MTF_TRIES eq 0> inc ds:[di].MITA_flags call UtilVMDirtyDS markAddressDone: clc retf OTQNotifyOfDelayIfFirstTime endp endif ; _CONFIRM_AFTER_FIRST_FAILURE or _OUTBOX_FEEDBACK COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OTQEnsureDupsAllMarked %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: EC: Make sure that all the duplicate addresses for a message are either marked to be queued, or not marked to be queued. XXX: IF SOME OF THESE ADDRESSES ARE ALREADY QUEUED, WILL THIS GET HOSED BY THE CHANGING OF THOSE ADDRESSES FROM THE QUEUED STATE TO THE TRANSMIT STATE BY THE TRANSMIT THREAD? CALLED BY: (INTERNAL) OTQAddOneMessage PASS: dxax = MailboxMessage cx = talID for which to check RETURN: nothing DESTROYED: nothing SIDE EFFECTS: none PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 5/ 3/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if ERROR_CHECK OTQEnsureDupsAllMarked proc near if _DUPS_ALWAYS_TOGETHER uses bx, di, dx .enter mov bx, SEGMENT_CS mov di, offset callback call MessageAddrEnum .leave ret ;-------------------- ; ds:di = MailboxInternalTransAddr ; *ds:si = addr array ; cx = tal ID of addresses being queued ; -> cx, ax, di = destroyed ; callback: mov dx, cx ; dx = tal ID ; ; If the first address is marked MAS_SENT, the skip out of the check, ; because subsequent addresses may not have been sent yet, and thus ; be marked differently. ; CheckHack <MAS_SENT eq 0> test ds:[di].MITA_flags, mask MTF_STATE jz callbackDone ; ; Don't check duplicate addresses, because they will have been ; checked (or not checked) along with the main address. ; test ds:[di].MITA_flags, mask MTF_DUP jnz callbackDone ; ; Figure if this address is marked. CX <- 0 if it is, non-z if it's not ; clr cx mov ax, ds:[di].MITA_next cmp ds:[di].MITA_addrList, dx je ensureLoop dec cx ; cx <- non-z (1-byte inst) ensureLoop: ; ; If no next duplicate, then check is done. ; inc ax jz callbackDone ; ; Point to the next duplicate, preserving CX ; dec ax push cx call ChunkArrayElementToPtr pop cx ; ; Fetch the next duplicate out before the comparison, so looping back ; is easy. ; mov ax, ds:[di].MITA_next ; ; Perform the comparison, then use jcxz to get to the right branch. ; cmp ds:[di].MITA_addrList, dx jcxz ensureMarked ; initial addr was unmarked, so this one better be, too jne ensureLoop honk: CheckHack <MAS_SENT eq 0> test ds:[di].MITA_flags, mask MTF_STATE jz ensureLoop ; can be anything it wants if it's been ; sent... ERROR ALL_DUPLICATES_NOT_MARKED_THE_SAME callbackDone: mov cx, dx ; cx <- talID again clc ; keep enumerating, please retf ensureMarked: ; initial addr was marked, so this one better be, too je ensureLoop jmp honk else ; !_DUPS_ALWAYS_TOGETHER ret endif OTQEnsureDupsAllMarked endp endif ; ERROR_CHECK COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OutboxTransmitMessageQueue %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Queue all the messages in a single DBQ to be sent to those addresses marked with the given talID CALLED BY: (EXTERNAL) PASS: di = DBQ (control of the queue passes to this module and queue should not be referenced after the call, unless an error is returned) cx = talID for the addresses to which the message is to be sent (use of the talID is hereby passed to this module; caller should not use it for other addresses) RETURN: carry set if message couldn't be queued: ax = MailboxError some messages may have been queued successfully. Those that have not been queued remain in the passed DBQ carry clear if all messages queued: ax = destroyed passed DBQ destroyed DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 5/ 2/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OutboxTransmitMessageQueue proc far uses bx .enter call MailboxGetAdminFile xmitLoop: push cx call OTQGetQueueOfFirstTransport jc doneOK ; ; Now submit the entire queue (DI) all of whose members are guaranteed ; to use the same transport & medium. ; cx = talID identifying this batch ; call OTQTransmitMessageQueueInternal jc done pop cx ; cx <- original talID jmp xmitLoop doneOK: ; ; Free the DBQ, please, and return happiness. ; call DBQDestroy clc done: pop cx .leave ret OutboxTransmitMessageQueue endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OutboxCleanupFailedTransmitQueue %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Clean up after a failed OutboxTransmitMessageQueue, returning unqueued messages to the outbox. CALLED BY: (EXTERNAL) PASS: di = DBQ that was passed to OutboxTransmitMessageQueue cx = talID that was passed to OutboxTransmitMessageQueue RETURN: nothing DESTROYED: cx SIDE EFFECTS: the DBQ is destroyed messages may have their address marks changed PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 11/14/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OutboxCleanupFailedTransmitQueue proc far talID local word push cx uses bx, dx .enter call MailboxGetAdminFile mov cx, SEGMENT_CS mov dx, offset callback call DBQEnum call DBQDestroy .leave ret ;-------------------- ; ; Find all addresses marked with the talID and set them back to 0 ; ; Pass: ; sidi = MailboxMessage ; bx = admin file ; ss:bp = inherited frame: ; talID set to id to find ; Return: ; carry set to stop (always clear) ; callback: push ds movdw dxax, sidi mov cx, ss:[talID] clr si ; si <- search from first addrLoop: push ax ; save msg.low call OUFindNextAddr ; ds:si <- addr, if CF=0 jc callbackDone mov ds:[si].MITA_addrList, 0 mov_tr si, ax ; si <- addr from which to search ; in next iteration pop ax ; dxax <- MailboxMessage call UtilVMDirtyDS call UtilVMUnlockDS jmp addrLoop callbackDone: pop ax pop ds clc retf OutboxCleanupFailedTransmitQueue endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OTQGetFirstTransport %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Fetch the MailboxTransport for the first message in the passed queue. CALLED BY: (INTERNAL) OTQCheckAllSameTransport, OTQGetQueueOfFirstTransport, OTQTransmitMessageQueueInternal, OTrMain PASS: bx = VM file (admin file) di = queue cx = talID si = TRUE if need to call OTrDequeue to remove the the message from the queue RETURN: carry set if queue is empty: ax, bx, cx destroyed dx = 0 carry clear if have transport: cxdx = MailboxTransport bx = MailboxTransportOption ax = medium ref DESTROYED: none SIDE EFFECTS: items will be removed from the front of the queue if they have no addresses marked with the given talID PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 5/ 2/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OTQGetFirstTransport proc far .enter tryAgain: ; ; Get the first item in the queue, please. ; push cx ;save talID clr cx call DBQGetItemNoRef pop cx ;restore cx = talID jc done ; ; Save a bunch of registers in case we have to remove an item. ; push dx, ax, bx ; ; Retrieve its transport token for comparison against those of the ; rest of the queue. ; call OTQGetTransport ; cxdx <- transport for dxax ; bx <- transport option ; ax <- medium ref jnc popAndDone ; ; Current first item has no more addresses with the talID, so remove it ; and try again. ; pop dx, ax, bx tst si jnz callDequeue call DBQRemove jmp tryAgain callDequeue: call OTrDequeue jmp tryAgain ; ; Get rid of the stuff we previously pushed ; popAndDone: add sp, 3 * size word clc done: .leave ret OTQGetFirstTransport endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OTQGetQueueOfFirstTransport %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Remove all messages that use the same transport as the first message from the passed queue, placing them in a new queue. CALLED BY: (INTERNAL) OutboxTransmitMessageQueue PASS: bx = VM file di = queue cx = talID of queued addresses RETURN: carry set if queue is empty carry clear if have messages to submit: cx = talID for relevant addresses DESTROYED: nothing SIDE EFFECTS: original queue is shortened if it began with messages that had no more marked with the passed talID PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 5/ 2/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OTQGetQueueOfFirstTransport proc near talID local word push cx vmFile local word push bx transport local MailboxTransport transOption local MailboxTransportOption mediumRef local word newTalID local word ForceRef talID ; OTQGetQueueOfFirstTransportCallback uses ax, bx, si, dx .enter ; ; Find the transport for the first message, for giving to our callback. ; Also removes any messages from the front of the queue that have ; no more addresses marked with the passed talID ; clr si ; si <- no need to call ; OTrDequeue call OTQGetFirstTransport ;cxdx = transport ; bx = option jc done ; => queue now empty movdw ss:[transport], cxdx mov ss:[transOption], bx mov ss:[mediumRef], ax ; ; Now find those messages in the queue that have the MMD_transport ; equal to that value. We have to give the addresses that match ; those of the first selected address of the first message a new ; talID so we can separate them from the rest of the chaff... ; call AdminAllocTALID mov ss:[newTalID], ax mov bx, ss:[vmFile] mov cx, SEGMENT_CS mov dx, offset OTQGetQueueOfFirstTransportCallback call DBQEnum mov cx, ss:[newTalID] clc done: .leave ret OTQGetQueueOfFirstTransport endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OTQGetQueueOfFirstTransportCallback %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Callback function to select those messages that are for the same transport/medium as the first address selected from the first message. CALLED BY: (INTERNAL) OTQGetQueueOfFirstTransport via DBQEnum PASS: bx = admin file sidi = message to check ss:bp = inherited frame RETURN: carry set to stop enumerating (always clear) DESTROYED: si, di SIDE EFFECTS: message block is dirtied if any addresses relevant PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 5/ 5/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OTQGetQueueOfFirstTransportCallback proc far uses dx, ax, cx .enter inherit OTQGetQueueOfFirstTransport ; ; Find any and all addresses for this message that use the transport ; and medium and mark them with the new talID. ; movdw dxax, sidi mov bx, SEGMENT_CS mov di, offset checkAndChange call MessageAddrEnum clc .leave ret ;-------------------- ;ds:di = MailboxInternalTransAddr ;*ds:bx = MailboxMessageDesc ;cx = number of addresses that are pertinent for this message ;-> carry set to stop enumerating (always clear) ; cx = incremented if address pertinent ; checkAndChange: ; ; See if it's a marked address, first... ; mov ax, ss:[talID] cmp ax, ds:[di].MITA_addrList jne checkDone ; ; It's marked: see if it's for the same medium ; mov ax, ss:[mediumRef] cmp ax, ds:[di].MITA_medium jne checkDone ; ; See if the transport is the same ; mov bx, ds:[bx] cmpdw ds:[bx].MMD_transport, ss:[transport], ax jne checkDone mov ax, ds:[bx].MMD_transOption cmp ss:[transOption], ax jne checkDone ; ; It is. Change its talID to the new one for this submission and ; mark the block dirty. ; mov ax, ss:[newTalID] mov ds:[di].MITA_addrList, ax call UtilVMDirtyDS checkDone: clc retf OTQGetQueueOfFirstTransportCallback endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OTQTransmitMessageQueueInternal %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Submit the messages in the passed queue for transmission to the marked addresses. CALLED BY: (INTERNAL) OutboxTransmitMessageQueue PASS: bx = admin file di = queue of messages to submit. all for one transport and medium cx = tal ID that marks addresses to which messages should be sent (different from talID originally passed to OutboxTransmitMessageQueue) RETURN: carry set if couldn't submit messages for transmission: ax = MailboxError carry clear if messages submitted: ax = 0 DESTROYED: SIDE EFFECTS: PSEUDO CODE/STRATEGY: this is much like the individual-message case, except the queue can be taken over by the transmit thread, if the thread is new, else each message must be added one at a time - plock data block - look for thread for transport driver - if found, add all messages to queue, adjusting tal IDs of messages to thread's tal ID - if not found: - alloc entry in tracking block & set passed dbq as thread's dbq - set thread's tal ID to queue's - spawn thread - store handle - release block REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 5/ 2/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OTQTransmitMessageQueueInternal proc near qTalID local word push cx ; for OTQAddOneMessage msg local MailboxMessage ; for OTQAddOneMessage adminFile local word msgQ local word destQ local word destID local word ForceRef msg ForceRef qTalID .enter mov adminFile, bx mov ss:[msgQ], di ; (can't push-initialize as ; qTalID and msg must be first ; two vars...) clr si ; si <- no need to call ; OTrDequeue call OTQGetFirstTransport ; cxdx <- transport ; bx <- option ; ax <- medium mov si, ss:[qTalID] ; Take over the talID for the ; queue, as it was allocated ; specially for this batch ; of messages. call OTQFindOrCreateThread jc done ; ; Transfer each message over to the queue in turn. ; ; First, Store the thread's queue and queuedID into local variables for ; the callback routine to get to. ; mov ax, ds:[di].OTD_queuedID mov ss:[destID], ax mov ax, ds:[di].OTD_dbq mov ss:[destQ], ax ; ; Now call a callback for each message. The callback will add the ; message to the thread's queue and adjust the talIDs appropriately. ; ; XXX: If there's an error, we'll be saying that some messages ; haven't been queued, when they might actually have been, since the ; error might have occurred queueing the 2d or subsequent message. ; mov cx, SEGMENT_CS mov dx, offset OTQTransmitMessageQueueInternalCallback mov di, ss:[msgQ] mov bx, ss:[adminFile] call DBQEnum done: call MainThreadUnlock .leave ret OTQTransmitMessageQueueInternal endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OTQTransmitMessageQueueInternalCallback %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Callback function to queue up a single message from a DBQ of messages CALLED BY: (INTERNAL) OTQTransmitMessageQueueInternal via DBQEnum PASS: bx = admin file sidi = message to enqueue ss:bp = inherited frame RETURN: carry set to stop enumerating: ax = MailboxError carry clear to keep going ax = destroyed DESTROYED: cx, dx SIDE EFFECTS: If successful, message is added to ss:[destQ] and any MITA_addrList fields that are equal to qTalID are changed to destID PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 5/ 2/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OTQTransmitMessageQueueInternalCallback proc far .enter inherit OTQTransmitMessageQueueInternal movdw ss:[msg], sidi mov cx, ss:[destQ] mov dx, ss:[destID] call OTQAddOneMessage .leave ret OTQTransmitMessageQueueInternalCallback endp Outbox ends
27.428571
79
0.625136
5c19fa1f0d266e9142ff5ab2d8479db230cd10ce
731
asm
Assembly
oeis/022/A022917.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/022/A022917.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/022/A022917.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A022917: Multinomial coefficient n!/ ([n/4]!, [(n+1)/4]!, [(n+2)/4]!, [(n+3)/4]!). ; Submitted by Jamie Morken(s4.) ; 1,1,2,6,24,60,180,630,2520,7560,25200,92400,369600,1201200,4204200,15765750,63063000,214414200,771891120,2933186256,11732745024,41064607584,150570227808,577185873264,2308743493056,8245512475200,30626189193600,118129586889600,472518347558400,1712879009899200,6423296287122000,24890273112597750,99561092450391000,365057338984767000,1379105502831342000,5363188066566330000,21452752266265320000,79375183385181684000,301625696863690399200,1176340217768392556880,4705360871073570227520 mov $1,1 mov $3,$0 mov $4,3 lpb $3 mul $1,$3 mov $2,$4 div $2,3 div $1,$2 sub $3,1 max $3,$2 add $4,1 lpe mov $0,$1
40.611111
481
0.774282
7cc958f26a9a35d1d1af4f233de9b0e7bad8d964
278
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccix_tan_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccix_tan_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccix_tan_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; float tan(float x) __z88dk_fastcall SECTION code_clib SECTION code_fp_math48 PUBLIC cm48_sdccix_tan_fastcall EXTERN cm48_sdccixp_dx2m48, am48_tan, cm48_sdccixp_m482d cm48_sdccix_tan_fastcall: call cm48_sdccixp_dx2m48 call am48_tan jp cm48_sdccixp_m482d
15.444444
56
0.816547
7feaddb1f304518cef065d8ad921cb1f65a355bd
319
asm
Assembly
oeis/127/A127577.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/127/A127577.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/127/A127577.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A127577: Numbers n for which 32n+31 is prime. ; Submitted by Jon Maiga ; 3,5,6,11,14,18,26,30,33,35,39,44,45,48,51,54,56,60,65,66,68,69,74,80,83,84,89,98,104,105,111,123,128,129,138,144,146,149,150,156,158,159,164,168,170,171,180,188,189,191,195,198 add $0,1 seq $0,127578 ; Primes congruent to 31 mod 32. div $0,32
39.875
178
0.702194
2cec5ba08a08429d16c6d08d1d4530ee996b9891
237
asm
Assembly
maskleast4.asm
adey99/8085asmcodes
8049bbf4cc698f5ac9309fee2c5b827680acc8de
[ "MIT" ]
null
null
null
maskleast4.asm
adey99/8085asmcodes
8049bbf4cc698f5ac9309fee2c5b827680acc8de
[ "MIT" ]
null
null
null
maskleast4.asm
adey99/8085asmcodes
8049bbf4cc698f5ac9309fee2c5b827680acc8de
[ "MIT" ]
null
null
null
// MASK OFF LEAST SIGNIFICANT 4 BITS OF AN 8-BIT NUMBER // The number to be masked is stored in C050 // Answer is stored in C051 LDA C050 ANI F0 STA C051 HLT // EXAMPLE-> C050=96 // Answer-> C051=90 # ORG C050 # DB 96H
16.928571
55
0.649789
0b501f2222be7883fcb00e09235a59ccb93aeba6
310
asm
Assembly
programs/oeis/258/A258054.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/258/A258054.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/258/A258054.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A258054: Circle of fifths cycle (counterclockwise). ; 1,6,11,4,9,2,7,12,5,10,3,8,1,6,11,4,9,2,7,12,5,10,3,8,1,6,11,4,9,2,7,12,5,10,3,8,1,6,11,4,9,2,7,12,5,10,3,8,1,6,11,4,9,2,7,12,5,10,3,8,1,6,11,4,9,2,7,12,5,10,3,8,1,6,11,4,9,2,7,12,5,10,3,8,1,6,11,4,9,2,7,12,5,10,3,8,1,6,11,4 mul $0,5 mod $0,12 add $0,1
44.285714
226
0.590323
ba3e93214f6e64f98b7be8eb39b874a96e7129a3
3,863
asm
Assembly
common/titleScreen.asm
laoo/TimePilot
88b2548ab23d213677047ca530b68f9523ea7140
[ "MIT" ]
24
2018-05-17T05:55:38.000Z
2021-12-30T10:22:45.000Z
common/titleScreen.asm
laoo/TimePilot
88b2548ab23d213677047ca530b68f9523ea7140
[ "MIT" ]
1
2018-06-27T11:08:01.000Z
2018-06-27T11:08:01.000Z
common/titleScreen.asm
laoo/TimePilot
88b2548ab23d213677047ca530b68f9523ea7140
[ "MIT" ]
3
2018-05-19T03:47:19.000Z
2021-06-01T12:33:32.000Z
.proc titleScreen jsr waitFrameNormal lda #0 sta dmactl jsr clearbufScreenSimple jsr clearbufScreenTxt jsr copyTitleLogo jsr copyTitleTexts jsr waitFrameNormal lda <dataTitleScreenDlist sta dlptr lda >dataTitleScreenDlist sta dlptr+1 jsr setTitleScreenNMI jsr gameInit.disablePM jsr RMT.rmt_silence lda SCORE.doHighScoreFlag beq titleLoop lda ntsc sta ntsc_counter jmp SCORE.doHighScore titleLoop jsr waitFrameNormal dec screenDelay bne skip inc screenMode lda screenMode cmp #1 beq mode1 cmp #2 beq mode2 cmp #3 beq mode3 mode0 jsr titleScreenMode0 jmp skip mode1 jsr titleScreenMode1 bne skip mode2 jsr titleScreenMode2 jmp skip mode3 jsr titleScreenMode3 skip lda trig0 beq normalMode lda consol cmp #6 beq normalMode cmp #5 bne titleLoop lda rapidusDetected beq titleLoop jmp gameModes.swarm normalMode jmp gameModes.normal screenDelay dta b(200) screenMode dta b(0) .endp .proc titleScreenMode0 lda #200 sta titleScreen.screenDelay lda #0 sta titleScreen.screenMode sta titleScreenDLI.color+1 lda #$80 sta titleScreenDLI.color jsr waitFrameNormal jsr setTitleScreenNMI jsr waitFrameNormal lda <dataTitleScreenDlist sta dlptr lda >dataTitleScreenDlist sta dlptr+1 jmp copyTitleTexts .endp .proc titleScreenMode1 lda #10 sta titleScreen.screenDelay rts .endp .proc titleScreenMode2 lda #200 sta titleScreen.screenDelay jsr waitFrameNormal lda <dataTitleScreenDlist2 sta dlptr lda >dataTitleScreenDlist2 sta dlptr+1 jsr setTitleScreenHiScoreNMI jmp copyTitleTextsHiScore .endp .proc titleScreenMode3 lda #25 sta titleScreen.screenDelay jmp waitFrameNormal .endp .proc copyTitleLogo lda #0 tax ldy #91 @ txa sta bufScreen0+83,x tya sta bufScreen0+123,x iny inx cpx #34 bne @- rts .endp .proc setTitleScreenNMI lda #0 sta nmien lda #<titleScreenDLI sta NMI.DLI+1 lda #>titleScreenDLI sta NMI.DLI+2 lda #<titleScreenVBL sta NMI.VBL+1 lda #>titleScreenVBL sta NMI.VBL+2 lda #$c0 sta nmien rts .endp .proc setTitleScreenHiScoreNMI lda #0 sta nmien lda #<titleScreenHiScoreDLI sta NMI.DLI+1 lda #>titleScreenHiScoreDLI sta NMI.DLI+2 lda #$c0 sta nmien rts .endp .proc copyTitleTexts lda rapidusDetected beq txtPlay ; or rapidus enabled lda #0 ldx #<titleScreenTexts.rapidus ldy #>titleScreenTexts.rapidus jsr copyText jmp nextText ; play txtPlay lda #0 ldx #<titleScreenTexts.play ldy #>titleScreenTexts.play jsr copyText nextText ; 1-up bonus lda #0 ldx #<titleScreenTexts.bonus1 ldy #>titleScreenTexts.bonus1 jsr copyText lda #0 ldx #<titleScreenTexts.bonus2 ldy #>titleScreenTexts.bonus2 jsr copyText ; konami lda #0 ldx #<titleScreenTexts.konami ldy #>titleScreenTexts.konami jsr copyText ; NG lda #0 ldx #<titleScreenTexts.newgen ldy #>titleScreenTexts.newgen jmp copyText .endp .proc copyTitleTextsHiScore ; score table lda #0 ldx #<titleScreenTexts.hiscore ldy #>titleScreenTexts.hiscore jmp copyText .endp .proc titleScreenTexts play dta b(8),b(0),d'PLAY#' rapidus dta b(2),b(0),d'RAPIDUS ENABLED!#' pause dta b(0),b(0),d' PAUSED #' pause2 dta b(3),b(0),d'OPTION TO QUIT#' bonus1 dta b(0),b(1),d'1ST BONUS 10000 PTS.#' bonus2 dta b(0),b(2),d'AND EVERY 50000 PTS.#' konami dta b(4),b(7),d'@1982 KONAMI#' newgen dta b(0),b(8),d'@2018 NEW GENERATION#' hiscore dta b(0),b(1),d'SCORE RANKING TABLE ' dta d'1ST 10000 SOLO ' dta d'2ND 8800 LAOO ' dta d'3RD 8460 MIKER' hiscoreMove dta d'4TH 6502 TIGER' dta d'5TH 4300 VOY #' .endp
17.09292
46
0.689102
70eb33ae484c2ca8760e180291d6b6d62efd94b7
111
asm
Assembly
audio/sfx/collision_1.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
audio/sfx/collision_1.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
audio/sfx/collision_1.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
SFX_Collision_1_Ch5: duty_cycle 2 pitch_sweep 5, -2 square_note 15, 15, 1, 768 pitch_sweep 0, 8 sound_ret
15.857143
27
0.756757
a36ed98c92f4e08a3ba3b148fb04c619d657ca49
1,161
asm
Assembly
programs/oeis/285/A285953.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/285/A285953.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/285/A285953.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A285953: Positions of 0 in A285952; complement of A285954. ; 3,5,8,12,14,18,21,23,26,30,33,35,39,41,44,48,50,54,57,59,63,65,68,72,75,77,80,84,86,90,93,95,98,102,105,107,111,113,116,120,123,125,128,132,134,138,141,143,147,149,152,156,158,162,165,167,170,174,177,179,183,185,188,192,194,198,201,203,207,209,212,216,219,221,224,228,230,234,237,239,243,245,248,252,254,258,261,263,266,270,273,275,279,281,284,288,291,293,296,300,302,306,309,311,314,318,321,323,327,329,332,336,338,342,345,347,351,353,356,360,363,365,368,372,374,378,381,383,386,390,393,395,399,401,404,408,411,413,416,420,422,426,429,431,435,437,440,444,446,450,453,455,458,462,465,467,471,473,476,480,483,485,488,492,494,498,501,503,506,510,513,515,519,521,524,528,530,534,537,539,543,545,548,552,555,557,560,564,566,570,573,575,579,581,584,588,590,594,597,599,602,606,609,611,615,617,620,624,626,630,633,635,639,641,644,648,651,653,656,660,662,666,669,671,674,678,681,683,687,689,692,696,699,701,704,708,710,714,717,719,723,725,728,732,734,738,741,743,746,750 mov $4,$0 mov $5,$0 lpb $0,1 sub $0,1 add $2,$4 div $4,2 lpe add $2,3 mov $1,$2 mod $1,2 add $1,2 mov $3,$5 mul $3,3 add $1,$3
64.5
965
0.71404
2be4f539dbb86c82b120fd9b1110eb3178509f4b
453
asm
Assembly
programs/oeis/008/A008486.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/008/A008486.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/008/A008486.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A008486: Expansion of (1 + x + x^2)/(1 - x)^2. ; 1,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57,60,63,66,69,72,75,78,81,84,87,90,93,96,99,102,105,108,111,114,117,120,123,126,129,132,135,138,141,144,147,150,153,156,159,162,165,168,171,174,177,180,183,186,189,192,195,198,201,204,207,210,213,216,219,222,225,228,231,234,237,240,243,246,249,252,255,258,261,264,267,270,273,276,279,282,285,288,291,294,297 pow $1,$0 mul $0,3 add $1,$0 mov $0,$1
56.625
363
0.677704
04ab7c25f9cde61721c5d85149e16824db8f5347
6,601
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2289.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_2289.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_2289.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 %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x1d76, %rsi lea addresses_UC_ht+0xa7f6, %rdi nop nop nop and $29408, %rbx mov $62, %rcx rep movsq nop nop lfence lea addresses_WT_ht+0xdbc6, %rsi lea addresses_A_ht+0xcc66, %rdi nop nop nop nop nop and %rdx, %rdx mov $31, %rcx rep movsw nop nop nop nop sub $27058, %rbx lea addresses_D_ht+0x120d2, %r15 nop sub %rdx, %rdx movb $0x61, (%r15) nop nop nop nop add $257, %rdx lea addresses_WT_ht+0x71e6, %rbx nop sub $53034, %rbp movb $0x61, (%rbx) nop nop nop nop nop xor %rdi, %rdi lea addresses_WC_ht+0xfc66, %rsi lea addresses_D_ht+0x7ce6, %rdi nop nop nop nop nop xor $1464, %r13 mov $110, %rcx rep movsw nop nop nop nop nop cmp %rcx, %rcx lea addresses_D_ht+0x6466, %rsi lea addresses_UC_ht+0x1b466, %rdi nop nop nop add $5682, %r15 mov $101, %rcx rep movsw sub %rdi, %rdi lea addresses_D_ht+0x4966, %rsi lea addresses_WT_ht+0x10666, %rdi nop nop xor $46469, %rbp mov $26, %rcx rep movsl nop nop nop xor $37205, %r15 lea addresses_UC_ht+0x137, %rbp nop nop and $8626, %r13 mov (%rbp), %di nop nop nop nop dec %r15 lea addresses_WT_ht+0x17466, %rsi nop nop and %rbx, %rbx movl $0x61626364, (%rsi) nop nop nop nop add %rdx, %rdx lea addresses_normal_ht+0xf566, %rsi lea addresses_UC_ht+0xde2a, %rdi nop nop nop inc %rbx mov $50, %rcx rep movsw nop nop nop nop and $32700, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r8 push %r9 push %rax push %rbx // Faulty Load lea addresses_UC+0x18466, %r9 nop nop nop nop nop xor %r10, %r10 vmovups (%r9), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $0, %xmm1, %r13 lea oracles, %r8 and $0xff, %r13 shlq $12, %r13 mov (%r8,%r13,1), %r13 pop %rbx pop %rax pop %r9 pop %r8 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_UC', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_UC', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 1, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 4, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'} {'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 */
35.299465
2,999
0.661263
7fbd8d2006f28ae3b9dc16e6e5b15a082690e8cd
928
asm
Assembly
programs/oeis/010/A010785.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/010/A010785.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/010/A010785.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A010785: Repdigit numbers, or numbers with repeated digits. ; 0,1,2,3,4,5,6,7,8,9,11,22,33,44,55,66,77,88,99,111,222,333,444,555,666,777,888,999,1111,2222,3333,4444,5555,6666,7777,8888,9999,11111,22222,33333,44444,55555,66666,77777,88888,99999,111111,222222,333333,444444,555555,666666,777777,888888,999999,1111111,2222222,3333333,4444444,5555555,6666666,7777777,8888888,9999999,11111111,22222222,33333333,44444444,55555555,66666666,77777777,88888888,99999999,111111111,222222222,333333333,444444444,555555555,666666666,777777777,888888888,999999999,1111111111,2222222222,3333333333,4444444444,5555555555,6666666666,7777777777,8888888888,9999999999,11111111111,22222222222,33333333333,44444444444,55555555555,66666666666,77777777777,88888888888,99999999999 lpb $0 sub $0,1 mov $2,$0 trn $0,8 max $2,0 seq $2,51596 ; Numerical values or Gematriahs of Hebrew letters {aleph, bet, ..., tav}. add $1,$2 lpe mov $0,$1
71.384615
696
0.800647
e1dac8c2438125333594dd48b59eb7d498ee4f6a
559
asm
Assembly
oeis/111/A111283.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/111/A111283.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/111/A111283.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A111283: Number of permutations avoiding the patterns {4321, 45132, 45231, 35412, 53412, 45213, 43512, 45312, 456123, 451623, 356124}; number of strong sorting class based on 4321. ; Submitted by Christian Krause ; 1,2,6,23,96,409,1751,7505,32176,137956,591501,2536132,10873981,46623553,199904321,857114814,3674987126,15756967635,67559972476,289671844661,1242004318751,5325249092137,22832672531956,97897943538708 lpb $0 sub $0,1 add $2,2 mov $3,$1 mul $1,4 add $1,$2 add $1,4 add $4,$3 mov $2,$4 mov $4,$3 lpe mov $0,$1 div $0,6 add $0,1
29.421053
199
0.728086
8d5be8d121c658d276b9bffa5551e11caeeabde6
528
asm
Assembly
programs/oeis/139/A139610.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/139/A139610.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/139/A139610.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A139610: a(n) = 45*n + 10. ; 10,55,100,145,190,235,280,325,370,415,460,505,550,595,640,685,730,775,820,865,910,955,1000,1045,1090,1135,1180,1225,1270,1315,1360,1405,1450,1495,1540,1585,1630,1675,1720,1765,1810,1855,1900,1945,1990,2035,2080,2125,2170,2215,2260,2305,2350,2395,2440,2485,2530,2575,2620,2665,2710,2755,2800,2845,2890,2935,2980,3025,3070,3115,3160,3205,3250,3295,3340,3385,3430,3475,3520,3565,3610,3655,3700,3745,3790,3835,3880,3925,3970,4015,4060,4105,4150,4195,4240,4285,4330,4375,4420,4465 mul $0,45 add $0,10
88
477
0.761364
43ea628f18201147951199737ba1c357cba3f808
1,346
asm
Assembly
gfx/numbers.asm
tbsp/Adjustris
d899e2f539c07ac49fd42c055605bf778a2df09d
[ "CC0-1.0" ]
11
2017-10-30T17:27:32.000Z
2021-08-30T19:52:51.000Z
gfx/numbers.asm
tbsp/Adjustris
d899e2f539c07ac49fd42c055605bf778a2df09d
[ "CC0-1.0" ]
2
2017-11-18T01:15:58.000Z
2018-02-01T07:09:09.000Z
gfx/numbers.asm
tbsp/Adjustris
d899e2f539c07ac49fd42c055605bf778a2df09d
[ "CC0-1.0" ]
3
2017-10-31T16:25:15.000Z
2019-08-31T22:10:49.000Z
; NUMBERS.Z80 ; ; Tile Source File. ; ; Info: ; Section : Tiles ; Bank : 0 ; Form : All tiles as one unit. ; Format : Gameboy 4 color. ; Compression : None. ; Counter : None. ; Tile size : 8 x 8 ; Tiles : 0 to 9 ; ; Palette colors : None. ; SGB Palette : None. ; CGB Palette : None. ; ; Convert to metatiles : No. ; ; This file was generated by GBTD v2.2 SECTION "Numbers", ROM0 ; Start of tile array. Tiles_Numbers:: DB $00,$00,$7F,$3E,$5D,$63,$7F,$41 DB $7F,$49,$7F,$41,$5D,$63,$7F,$3E DB $00,$00,$3E,$1C,$6A,$36,$5E,$62 DB $5E,$62,$7E,$22,$2A,$36,$3E,$1C DB $00,$00,$7F,$3E,$5D,$63,$7F,$39 DB $5F,$62,$7F,$4D,$5D,$63,$7F,$3E DB $00,$00,$7E,$3C,$5B,$66,$7D,$3B DB $3F,$22,$3F,$39,$5D,$63,$7F,$3E DB $00,$00,$7F,$36,$5D,$6B,$7F,$49 DB $5F,$61,$7F,$39,$1D,$0B,$0F,$06 DB $00,$00,$7F,$3E,$5D,$63,$7F,$4E DB $7F,$21,$7F,$59,$5D,$63,$7F,$3E DB $00,$00,$78,$30,$5C,$68,$7F,$4E DB $7D,$43,$7F,$49,$5D,$63,$7F,$3E DB $00,$00,$7F,$3E,$5D,$63,$7F,$41 DB $7F,$39,$1F,$09,$0D,$0B,$0F,$06 DB $00,$00,$7F,$3E,$5D,$63,$7F,$49 DB $7F,$22,$7F,$49,$5D,$63,$7F,$3E DB $00,$00,$7F,$3E,$5D,$63,$7F,$49 DB $5F,$61,$7F,$39,$1D,$0B,$0F,$06 ; End of NUMBERS.Z80
27.469388
50
0.480684
fde52d3a1e15f6fdbec1dfb59a47feecfa89cd9e
4,513
asm
Assembly
util/gut/lchp.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
util/gut/lchp.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
util/gut/lchp.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; Load file into heap V1.00  1988 Tony Tebby section gen_util xdef gu_lchp xdef gu_lchpx xdef gu_lchph xdef gu_lchpf xref gu_iowp xref gu_achp0 xref gu_rchp xref gu_fclos include 'dev8_keys_hdr' include 'dev8_keys_qdos_io' ;+++ ; This routine reads the file header, allocates enough heap for the file ; plus its header (full form) plus an extension of a given length. ; plus an extension of the given length, loads the file into the heap ; after the extension, and closes the channel. If the extension was of ; an odd length then it is evened up before use. ; ; d1 r extension required/length of file ; a0 c channel ID ; a0 r base of heap ; error returns standard ; uses $50 bytes of stack + gu_achp0/gu_rchp/gu_fclos/gu_iowp ;--- gu_lchpf reglchp reg d2/d3/a1 frame equ hdr.len movem.l reglchp,-(sp) sub.w #frame,sp moveq #hdr.len,d2 bra.s ugl_ntry ;+++ ; This routine reads the file header, allocates enough heap for the file ; plus its header (short form) plus an extension of a given length. ; plus an extension of the given length, loads the file into the heap ; after the extension, and closes the channel. If the extension was of ; an odd length then it is evened up before use. ; ; d1 r extension required/length of file ; a0 c channel ID ; a0 r base of heap ; error returns standard ; uses $50 bytes of stack + gu_achp0/gu_rchp/gu_fclos/gu_iowp ;--- gu_lchph movem.l reglchp,-(sp) sub.w #frame,sp moveq #hdr.set,d2 ; header length to read bra.s ugl_ntry ;+++ ; This routine reads the file header, allocates enough heap, loads the ; file and closes the channel. ; ; d1 cr length of file ; a0 c channel ID ; a0 r base of heap ; error returns standard ; uses $50 bytes of stack + gu_achp0/gu_rchp/gu_fclos/gu_iowp ;--- gu_lchp moveq #0,d1 ; no extension ;+++ ; This routine reads the file header, allocates enough heap for the file ; plus an extension of the given length, loads the file into the heap ; after the extension, and closes the channel. If the extension was of ; an odd length then it is evened up before use. ; ; d1 cr extension required/length of file ; a0 c channel ID ; a0 r base of heap ; error returns standard ; uses $50 bytes of stack + gu_achp0/gu_rchp/gu_fclos/gu_iowp ;--- gu_lchpx movem.l reglchp,-(sp) sub.w #frame,sp moveq #4,d2 ; ... no header required, just length ugl_ntry addq.l #1,d1 ; ensure extension is... bclr #0,d1 ; ...evened up, with no header move.l d1,d3 ; save complete extension add.l d2,d1 ; room for header as well moveq #iof.rhdr,d0 ; read header lea (sp),a1 ; into stack frame jsr gu_iowp bne.s ugl_close move.l a0,a1 ; save channel add.l (sp),d1 ; total length move.l d1,d0 jsr gu_achp0 ; allocate it exg a0,a1 bne.s ugl_close move.l a1,d1 ; keep base add.l d3,a1 ; we want header / file here cmp.w #hdr.set,d2 ; copy header? blt.s ugl_flod ; no move.l a0,-(sp) lea 4(sp),a0 ; header is here ugl_cphl move.w (a0)+,(a1)+ ; copy some header subq.w #2,d2 bgt.s ugl_cphl move.l (sp)+,a0 ugl_flod moveq #iof.load,d0 ; load file move.l (sp),d2 ; length jsr gu_iowp move.l d1,a1 ; restore heap base beq.s ugl_close exg a0,a1 jsr gu_rchp ; return heap exg a0,a1 ugl_close move.l d2,d1 ; set returned length jsr gu_fclos ; close file, set CCR move.l a1,a0 ; set returned base address add.w #frame,sp movem.l (sp)+,reglchp rts end
33.42963
78
0.534678
a1e7b3a8c00ddc97f66e3f625963ca64f91e7fb2
647
asm
Assembly
oeis/246/A246133.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/246/A246133.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/246/A246133.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A246133: Binomial(2n, n) - 2 mod n^3. ; Submitted by Jamie Morken(s1.) ; 0,4,18,4,0,58,0,68,504,754,0,1562,0,2062,2518,580,0,922,0,818,6535,7990,0,12058,250,4398,2691,10358,0,12422,0,16964,10666,29482,3680,42818,0,41158,19791,13618,0,54430,0,71942,40993,73006,0,12058,3430,122254,98278,127494,0,91318,40180,23158,130339,48782,0,28654,0,178750,82918,16964,239723,192586,0,304674,24352,84598,0,284866,0,101310,289393,260710,252327,343654,0,313138,120789,137846,0,82262,545593,477046,634132,425478,0,554798,607605,462414,357510,622942,837048,343834,0,586534,59266,841318 mov $1,1 add $1,$0 add $0,$1 bin $0,$1 mul $0,2 sub $0,2 pow $1,3 mod $0,$1
49.769231
496
0.746522
2e0afdac1bc78608bec1074a7bba7013dc494f52
409
asm
Assembly
programs/oeis/070/A070940.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/070/A070940.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/070/A070940.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A070940: Number of digits that must be counted from left to right to reach the last 1 in the binary representation of n. ; 1,1,2,1,3,2,3,1,4,3,4,2,4,3,4,1,5,4,5,3,5,4,5,2,5,4,5,3,5,4,5,1,6,5,6,4,6,5,6,3,6,5,6,4,6,5,6,2,6,5,6,4,6,5,6,3,6,5,6,4,6,5,6,1,7,6,7,5,7,6,7,4,7,6,7,5,7,6,7,3,7,6,7,5,7,6,7,4,7,6,7,5,7,6,7,2,7,6,7,5 add $0,1 lpb $0 dif $0,2 lpe lpb $0 div $0,2 add $1,4 lpe div $1,4 mov $0,$1
29.214286
201
0.586797
585961a66cafe6bc9801858491b08740ee2fa31c
49,596
asm
Assembly
assemblyImageFile/GUI.asm
CRZbulabula/assemblyImageFile
0f3c4237537675718e4c0ca6c774f6a8b37cb6fe
[ "MIT" ]
1
2020-10-22T02:11:26.000Z
2020-10-22T02:11:26.000Z
assemblyImageFile/GUI.asm
CRZbulabula/assemblyImageFilter
0f3c4237537675718e4c0ca6c774f6a8b37cb6fe
[ "MIT" ]
6
2020-10-27T14:19:56.000Z
2020-11-05T13:27:20.000Z
assemblyImageFile/GUI.asm
CRZbulabula/assemblyImageFilter
0f3c4237537675718e4c0ca6c774f6a8b37cb6fe
[ "MIT" ]
null
null
null
.386 .Model Flat, StdCall Option Casemap :None ;==================== INCLUDE ======================= INCLUDE header.inc INCLUDE structure.inc INCLUDE images.inc INCLUDE dll.inc ;==================== FUNCTION ======================= rand PROTO C printf PROTO C :ptr sbyte, :VARARG RandStr PROTO DeleteTmpImage PROTO DeleteCompressImage PROTO Regular2Absolute PROTO :DWORD, :DWORD, :DWORD cameraThread PROTO WinMain PROTO :DWORD, :DWORD, :DWORD, :DWORD WndProc PROTO :DWORD, :DWORD, :DWORD, :DWORD LoadImageFromFile PROTO :PTR BYTE, :DWORD ChangeBtnStatus PROTO :DWORD, :DWORD, :location, :DWORD, :DWORD GetFileNameFromDialog PROTO :DWORD, :DWORD, :DWORD, :DWORD SaveImg PROTO ;==================== DATA ======================= ;外部可引用的变量 PUBLIC StartupInfo PUBLIC UnicodeFileName PUBLIC token PUBLIC ofn .data interfaceID DWORD 0 ; 当前所处的界面,0是初始界面,1是打开图片,2是摄像机 ; 控制按钮状态 openStatus DWORD 0 cameraStatus DWORD 0 exitStatus DWORD 0 backStatus DWORD 0 saveStatus DWORD 0 yuantu1Status DWORD 0 yuantu2Status DWORD 0 sumiao1Status DWORD 0 sumiao2Status DWORD 0 fudiao1Status DWORD 0 fudiao2Status DWORD 0 maoboli1Status DWORD 0 maoboli2Status DWORD 0 huaijiu1Status DWORD 0 huaijiu2Status DWORD 0 huidu1Status DWORD 0 huidu2Status DWORD 0 hedu1Status DWORD 0 hedu2Status DWORD 0 danya1Status DWORD 0 danya2Status DWORD 0 gete1Status DWORD 0 gete2Status DWORD 0 menghuan1Status DWORD 0 menghuan2Status DWORD 0 yuhua1Status DWORD 0 yuhua2Status DWORD 0 mopi1Status DWORD 0 mopi2Status DWORD 0 filterBtnClicked DWORD 0 szClassName BYTE "MASMPlus_Class",0 WindowName BYTE "IMAGE", 0 tmpFileName BYTE 256 DUP(0) ; 临时文件 isFiltered DWORD 0 ; 是否添加过滤镜 cameraFilterType DWORD 0 ;初始化gdi+对象 gdiplusToken DD ? gdiplusSInput GdiplusStartupInput <1, NULL, FALSE, FALSE> ofn OPENFILENAME <0> save_ofn OPENFILENAME <0> szFileName BYTE 256 DUP(0) testMsg BYTE '这是测试信息', 0 testTitle BYTE '这是测试', 0 szFilterString DB 'Image(.png,.jpg)', 0, '*.png;*.jpg', 0, 0 ; 文件过滤 szInitialDir DB './', 0 ; 初始目录 szTitle DB '请选择图片', 0 ; 对话框标题 szMessageTitle DB '你选择的文件是', 0 saveFileName BYTE 256 DUP(0) currentWorkDir BYTE 256 DUP(0) szWidth DD ? szHeight DD ? .data? hInstance DD ? hBitmap DD ? hEvent DD ? hThread DD ? pNumbOfBytesRead DD ? StartupInfo GdiplusStartupInput <?> UnicodeFileName DD 256 DUP(0) BmpImage DD ? token DD ? background0 DD ? background1 DD ? background2 DD ? szImage DD ? tmpImage DD ? frame DD ? openBtn DD ? openHoverBtn DD ? cameraBtn DD ? cameraHoverBtn DD ? exitBtn DD ? exitHoverBtn DD ? backBtn DD ? backHoverBtn DD ? saveBtn DD ? saveHoverBtn DD ? yuantu1Btn DD ? yuantu1HoverBtn DD ? yuantu2Btn DD ? yuantu2HoverBtn DD ? sumiao1Btn DD ? sumiao1HoverBtn DD ? sumiao2Btn DD ? sumiao2HoverBtn DD ? fudiao1Btn DD ? fudiao1HoverBtn DD ? fudiao2Btn DD ? fudiao2HoverBtn DD ? maoboli1Btn DD ? maoboli1HoverBtn DD ? maoboli2Btn DD ? maoboli2HoverBtn DD ? huaijiu1Btn DD ? huaijiu1HoverBtn DD ? huaijiu2Btn DD ? huaijiu2HoverBtn DD ? huidu1Btn DD ? huidu1HoverBtn DD ? huidu2Btn DD ? huidu2HoverBtn DD ? hedu1Btn DD ? hedu1HoverBtn DD ? hedu2Btn DD ? hedu2HoverBtn DD ? danya1Btn DD ? danya1HoverBtn DD ? danya2Btn DD ? danya2HoverBtn DD ? gete1Btn DD ? gete1HoverBtn DD ? gete2Btn DD ? gete2HoverBtn DD ? menghuan1Btn DD ? menghuan1HoverBtn DD ? menghuan2Btn DD ? menghuan2HoverBtn DD ? yuhua1Btn DD ? yuhua1HoverBtn DD ? yuhua2Btn DD ? yuhua2HoverBtn DD ? mopi1Btn DD ? mopi1HoverBtn DD ? mopi2Btn DD ? mopi2HoverBtn DD ? curLocation location <?> cameraThreadID DD ? imgWidth DWORD ? imgHeight DWORD ? ;=================== CODE ========================= .code START: INVOKE GetModuleHandle, NULL mov hInstance, eax INVOKE GdiplusStartup, ADDR gdiplusToken, ADDR gdiplusSInput, NULL INVOKE WinMain, hInstance, NULL, NULL, SW_SHOWDEFAULT INVOKE GdiplusShutdown, gdiplusToken INVOKE ExitProcess, 0 WinMain PROC hInst:DWORD, hPrevInst:DWORD, CmdLine:DWORD, CmdShow:DWORD LOCAL wc :WNDCLASSEX LOCAL msg :MSG LOCAL hWnd :HWND mov wc.cbSize, SIZEOF WNDCLASSEX mov wc.style, CS_HREDRAW or CS_VREDRAW or CS_BYTEALIGNWINDOW mov wc.lpfnWndProc, OFFSET WndProc mov wc.cbClsExtra, NULL mov wc.cbWndExtra, NULL push hInst pop wc.hInstance mov wc.hbrBackground, COLOR_BTNFACE+1 mov wc.lpszMenuName, NULL mov wc.lpszClassName, OFFSET szClassName INVOKE LoadIcon, hInst, 100 mov wc.hIcon, eax INVOKE LoadCursor, NULL, IDC_ARROW mov wc.hCursor, eax mov wc.hIconSm, 0 INVOKE RegisterClassEx, ADDR wc INVOKE CreateWindowEx, NULL, ADDR szClassName, ADDR WindowName, WS_OVERLAPPEDWINDOW, 300, 40, 1040, 807, NULL, NULL, hInst, NULL mov hWnd, eax INVOKE ShowWindow, hWnd, SW_SHOWNORMAL INVOKE UpdateWindow, hWnd StartLoop: INVOKE GetMessage, ADDR msg, NULL, 0, 0 cmp eax, 0 je ExitLoop INVOKE TranslateMessage, ADDR msg INVOKE DispatchMessage, ADDR msg jmp StartLoop ExitLoop: INVOKE KillTimer, hWnd, 1 mov eax, msg.wParam ret WinMain ENDP WndProc PROC hWnd:DWORD, uMsg:DWORD, wParam :DWORD, lParam :DWORD LOCAL ps:PAINTSTRUCT LOCAL stRect: RECT LOCAL hdc:HDC LOCAL hMemDC:HDC LOCAL bm:BITMAP LOCAL graphics:HANDLE LOCAL pbitmap:HBITMAP LOCAL nhb:DWORD .IF uMsg == WM_CREATE ; 打开计时器 INVOKE SetTimer, hWnd, 1, 10, NULL ; 获得当前exe绝对路径 INVOKE GetModuleFileName, hInstance, addr currentWorkDir, 256 INVOKE LoadLibrary, OFFSET OpenCVDLL mov OpenCV, eax ; 加载DLL INVOKE GetProcAddress, OpenCV, OFFSET cameraFunction mov cameraFunc, eax ; 加载摄像头函数 INVOKE GetProcAddress, OpenCV, OFFSET frameFunction mov frameFunc, eax ; 加载捕捉帧函数 INVOKE GetProcAddress, OpenCV, OFFSET releaseFunction mov releaseFunc, eax INVOKE GetProcAddress, OpenCV, OFFSET sumiaoFunction mov sumiaoFunc, eax ; 加载素描滤镜函数 INVOKE GetProcAddress, OpenCV, OFFSET fudiaoFunction mov fudiaoFunc, eax ; 加载浮雕滤镜函数 INVOKE GetProcAddress, OpenCV, OFFSET maoboliFunction mov maoboliFunc, eax ; 加载毛玻璃滤镜函数 INVOKE GetProcAddress, OpenCV, OFFSET huaijiuFunction mov huaijiuFunc, eax ; 加载怀旧滤镜函数 INVOKE GetProcAddress, OpenCV, OFFSET huiduFunction mov huiduFunc, eax ; 加载灰度滤镜函数 INVOKE GetProcAddress, OpenCV, OFFSET heduFunction mov heduFunc, eax ; 加载褐度滤镜函数 INVOKE GetProcAddress, OpenCV, OFFSET danyaFunction mov danyaFunc, eax ; 加载淡雅滤镜函数 INVOKE GetProcAddress, OpenCV, OFFSET geteFunction mov geteFunc, eax ; 加载哥特滤镜函数 INVOKE GetProcAddress, OpenCV, OFFSET menghuanFunction mov menghuanFunc, eax ; 加载梦幻滤镜函数 INVOKE GetProcAddress, OpenCV, OFFSET yuhuaFunction mov yuhuaFunc, eax ; 加载羽化滤镜函数 INVOKE GetProcAddress, OpenCV, OFFSET mopiFunction mov mopiFunc, eax ; 加载磨皮滤镜函数 INVOKE GetProcAddress, OpenCV, OFFSET saveImageFunction mov saveImageFunc, eax INVOKE GetProcAddress, OpenCV, OFFSET compressFunction mov compressFunc, eax ; 加载文件中的图像 INVOKE LoadImageFromFile, OFFSET bkImage, ADDR background0 INVOKE LoadImageFromFile, OFFSET bgImgImage, ADDR background1 INVOKE LoadImageFromFile, OFFSET bgCameraImage, ADDR background2 INVOKE LoadImageFromFile, OFFSET openImage, ADDR openBtn INVOKE LoadImageFromFile, OFFSET openHoverImage, ADDR openHoverBtn INVOKE LoadImageFromFile, OFFSET cameraImage, ADDR cameraBtn INVOKE LoadImageFromFile, OFFSET cameraHoverImage, ADDR cameraHoverBtn INVOKE LoadImageFromFile, OFFSET exitImage, ADDR exitBtn INVOKE LoadImageFromFile, OFFSET exitHoverImage, ADDR exitHoverBtn INVOKE LoadImageFromFile, OFFSET backImage, ADDR backBtn INVOKE LoadImageFromFile, OFFSET backHoverImage, ADDR backHoverBtn INVOKE LoadImageFromFile, OFFSET saveImage, ADDR saveBtn INVOKE LoadImageFromFile, OFFSET saveHoverImage, ADDR saveHoverBtn INVOKE LoadImageFromFile, OFFSET yuantu1Image, ADDR yuantu1Btn INVOKE LoadImageFromFile, OFFSET yuantu1HoverImage, ADDR yuantu1HoverBtn INVOKE LoadImageFromFile, OFFSET yuantu2Image, ADDR yuantu2Btn INVOKE LoadImageFromFile, OFFSET yuantu2HoverImage, ADDR yuantu2HoverBtn INVOKE LoadImageFromFile, OFFSET sumiao1Image, ADDR sumiao1Btn INVOKE LoadImageFromFile, OFFSET sumiao1HoverImage, ADDR sumiao1HoverBtn INVOKE LoadImageFromFile, OFFSET sumiao2Image, ADDR sumiao2Btn INVOKE LoadImageFromFile, OFFSET sumiao2HoverImage, ADDR sumiao2HoverBtn INVOKE LoadImageFromFile, OFFSET fudiao1Image, ADDR fudiao1Btn INVOKE LoadImageFromFile, OFFSET fudiao1HoverImage, ADDR fudiao1HoverBtn INVOKE LoadImageFromFile, OFFSET fudiao2Image, ADDR fudiao2Btn INVOKE LoadImageFromFile, OFFSET fudiao2HoverImage, ADDR fudiao2HoverBtn INVOKE LoadImageFromFile, OFFSET maoboli1Image, ADDR maoboli1Btn INVOKE LoadImageFromFile, OFFSET maoboli1HoverImage, ADDR maoboli1HoverBtn INVOKE LoadImageFromFile, OFFSET maoboli2Image, ADDR maoboli2Btn INVOKE LoadImageFromFile, OFFSET maoboli2HoverImage, ADDR maoboli2HoverBtn INVOKE LoadImageFromFile, OFFSET huaijiu1Image, ADDR huaijiu1Btn INVOKE LoadImageFromFile, OFFSET huaijiu1HoverImage, ADDR huaijiu1HoverBtn INVOKE LoadImageFromFile, OFFSET huaijiu2Image, ADDR huaijiu2Btn INVOKE LoadImageFromFile, OFFSET huaijiu2HoverImage, ADDR huaijiu2HoverBtn INVOKE LoadImageFromFile, OFFSET huidu1Image, ADDR huidu1Btn INVOKE LoadImageFromFile, OFFSET huidu1HoverImage, ADDR huidu1HoverBtn INVOKE LoadImageFromFile, OFFSET huidu2Image, ADDR huidu2Btn INVOKE LoadImageFromFile, OFFSET huidu2HoverImage, ADDR huidu2HoverBtn INVOKE LoadImageFromFile, OFFSET hedu1Image, ADDR hedu1Btn INVOKE LoadImageFromFile, OFFSET hedu1HoverImage, ADDR hedu1HoverBtn INVOKE LoadImageFromFile, OFFSET hedu2Image, ADDR hedu2Btn INVOKE LoadImageFromFile, OFFSET hedu2HoverImage, ADDR hedu2HoverBtn INVOKE LoadImageFromFile, OFFSET danya1Image, ADDR danya1Btn INVOKE LoadImageFromFile, OFFSET danya1HoverImage, ADDR danya1HoverBtn INVOKE LoadImageFromFile, OFFSET danya2Image, ADDR danya2Btn INVOKE LoadImageFromFile, OFFSET danya2HoverImage, ADDR danya2HoverBtn INVOKE LoadImageFromFile, OFFSET gete1Image, ADDR gete1Btn INVOKE LoadImageFromFile, OFFSET gete1HoverImage, ADDR gete1HoverBtn INVOKE LoadImageFromFile, OFFSET gete2Image, ADDR gete2Btn INVOKE LoadImageFromFile, OFFSET gete2HoverImage, ADDR gete2HoverBtn INVOKE LoadImageFromFile, OFFSET menghuan1Image, ADDR menghuan1Btn INVOKE LoadImageFromFile, OFFSET menghuan1HoverImage, ADDR menghuan1HoverBtn INVOKE LoadImageFromFile, OFFSET menghuan2Image, ADDR menghuan2Btn INVOKE LoadImageFromFile, OFFSET menghuan2HoverImage, ADDR menghuan2HoverBtn INVOKE LoadImageFromFile, OFFSET yuhua1Image, ADDR yuhua1Btn INVOKE LoadImageFromFile, OFFSET yuhua1HoverImage, ADDR yuhua1HoverBtn INVOKE LoadImageFromFile, OFFSET yuhua2Image, ADDR yuhua2Btn INVOKE LoadImageFromFile, OFFSET yuhua2HoverImage, ADDR yuhua2HoverBtn INVOKE LoadImageFromFile, OFFSET mopi1Image, ADDR mopi1Btn INVOKE LoadImageFromFile, OFFSET mopi1HoverImage, ADDR mopi1HoverBtn INVOKE LoadImageFromFile, OFFSET mopi2Image, ADDR mopi2Btn INVOKE LoadImageFromFile, OFFSET mopi2HoverImage, ADDR mopi2HoverBtn .ELSEIF uMsg == WM_PAINT INVOKE BeginPaint, hWnd, ADDR ps mov hdc, eax invoke GetClientRect, hWnd, addr stRect INVOKE CreateCompatibleDC, hdc mov hMemDC, eax invoke CreateCompatibleBitmap, hdc, 1024, 768 ; 创建临时位图pbitmap mov pbitmap, eax INVOKE SelectObject, hMemDC, pbitmap INVOKE GdipCreateFromHDC, hMemDC, ADDR graphics ; 创建绘图对象graphics .IF interfaceID == 0 ; 绘制背景图 INVOKE GdipDrawImagePointRectI, graphics, background0, 0, 0, 0, 0, 1024, 768, 2 .IF openStatus == 0 INVOKE GdipDrawImagePointRectI, graphics, openBtn, openLocation.x, openLocation.y, 0, 0, openLocation.w, openLocation.h, 2 .ELSEIF openStatus == 1 INVOKE GdipDrawImagePointRectI, graphics, openHoverBtn, openLocation.x, openLocation.y, 0, 0, openLocation.w, openLocation.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, openBtn, openLocation.x, openLocation.y, 0, 0, openLocation.w, openLocation.h, 2 .ENDIF .IF cameraStatus == 0 INVOKE GdipDrawImagePointRectI, graphics, cameraBtn, cameraLocation.x, cameraLocation.y, 0, 0, cameraLocation.w, cameraLocation.h, 2 .ELSEIF cameraStatus == 1 INVOKE GdipDrawImagePointRectI, graphics, cameraHoverBtn, cameraLocation.x, cameraLocation.y, 0, 0, cameraLocation.w, cameraLocation.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, cameraBtn, cameraLocation.x, cameraLocation.y, 0, 0, cameraLocation.w, cameraLocation.h, 2 .ENDIF .IF exitStatus == 0 INVOKE GdipDrawImagePointRectI, graphics, exitBtn, exitLocation.x, exitLocation.y, 0, 0, exitLocation.w, exitLocation.h, 2 .ELSEIF exitStatus == 1 INVOKE GdipDrawImagePointRectI, graphics, exitHoverBtn, exitLocation.x, exitLocation.y, 0, 0, exitLocation.w, exitLocation.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, exitBtn, exitLocation.x, exitLocation.y, 0, 0, exitLocation.w, exitLocation.h, 2 .ENDIF ; 显示图片界面 .ELSEIF interfaceID == 1 ; 绘制背景图 INVOKE GdipDrawImagePointRectI, graphics, background1, 0, 0, 0, 0, 1024, 768, 2 ; 检测当前是否加过滤镜 .IF isFiltered == 0 INVOKE LoadImageFromFile, OFFSET compressFileName, ADDR szImage INVOKE GdipDrawImagePointRectI, graphics, szImage, 55, 80, 0, 0, 800, 600, 2 .ELSE INVOKE LoadImageFromFile, OFFSET compressFileName, ADDR tmpImage INVOKE GdipDrawImagePointRectI, graphics, tmpImage, 55, 80, 0, 0, 800, 600, 2 .ENDIF ; 绘制按钮 .IF backStatus == 0 INVOKE GdipDrawImagePointRectI, graphics, backBtn, backLocation.x, backLocation.y, 0, 0, backLocation.w, backLocation.h, 2 .ELSEIF backStatus == 1 INVOKE GdipDrawImagePointRectI, graphics, backHoverBtn, backLocation.x, backLocation.y, 0, 0, backLocation.w, backLocation.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, backBtn, backLocation.x, backLocation.y, 0, 0, backLocation.w, backLocation.h, 2 .ENDIF .IF saveStatus == 0 INVOKE GdipDrawImagePointRectI, graphics, saveBtn, saveLocation.x, saveLocation.y, 0, 0, saveLocation.w, saveLocation.h, 2 .ELSEIF saveStatus == 1 INVOKE GdipDrawImagePointRectI, graphics, saveHoverBtn, saveLocation.x, saveLocation.y, 0, 0, saveLocation.w, saveLocation.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, saveBtn, saveLocation.x, saveLocation.y, 0, 0, saveLocation.w, saveLocation.h, 2 .ENDIF .IF yuantu1Status == 0 INVOKE GdipDrawImagePointRectI, graphics, yuantu1Btn, yuantu1Location.x, yuantu1Location.y, 0, 0, yuantu1Location.w, yuantu1Location.h, 2 .ELSEIF yuantu1Status == 1 INVOKE GdipDrawImagePointRectI, graphics, yuantu1HoverBtn, yuantu1Location.x, yuantu1Location.y, 0, 0, yuantu1Location.w, yuantu1Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, yuantu1Btn, yuantu1Location.x, yuantu1Location.y, 0, 0, yuantu1Location.w, yuantu1Location.h, 2 .ENDIF .IF sumiao1Status == 0 INVOKE GdipDrawImagePointRectI, graphics, sumiao1Btn, sumiao1Location.x, sumiao1Location.y, 0, 0, sumiao1Location.w, sumiao1Location.h, 2 .ELSEIF sumiao1Status == 1 INVOKE GdipDrawImagePointRectI, graphics, sumiao1HoverBtn, sumiao1Location.x, sumiao1Location.y, 0, 0, sumiao1Location.w, sumiao1Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, sumiao1Btn, sumiao1Location.x, sumiao1Location.y, 0, 0, sumiao1Location.w, sumiao1Location.h, 2 .ENDIF .IF fudiao1Status == 0 INVOKE GdipDrawImagePointRectI, graphics, fudiao1Btn, fudiao1Location.x, fudiao1Location.y, 0, 0, fudiao1Location.w, fudiao1Location.h, 2 .ELSEIF fudiao1Status == 1 INVOKE GdipDrawImagePointRectI, graphics, fudiao1HoverBtn, fudiao1Location.x, fudiao1Location.y, 0, 0, fudiao1Location.w, fudiao1Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, fudiao1Btn, fudiao1Location.x, fudiao1Location.y, 0, 0, fudiao1Location.w, fudiao1Location.h, 2 .ENDIF .IF maoboli1Status == 0 INVOKE GdipDrawImagePointRectI, graphics, maoboli1Btn, maoboli1Location.x, maoboli1Location.y, 0, 0, maoboli1Location.w, maoboli1Location.h, 2 .ELSEIF maoboli1Status == 1 INVOKE GdipDrawImagePointRectI, graphics, maoboli1HoverBtn, maoboli1Location.x, maoboli1Location.y, 0, 0, maoboli1Location.w, maoboli1Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, maoboli1Btn, maoboli1Location.x, maoboli1Location.y, 0, 0, maoboli1Location.w, maoboli1Location.h, 2 .ENDIF .IF huaijiu1Status == 0 INVOKE GdipDrawImagePointRectI, graphics, huaijiu1Btn, huaijiu1Location.x, huaijiu1Location.y, 0, 0, huaijiu1Location.w, huaijiu1Location.h, 2 .ELSEIF huaijiu1Status == 1 INVOKE GdipDrawImagePointRectI, graphics, huaijiu1HoverBtn, huaijiu1Location.x, huaijiu1Location.y, 0, 0, huaijiu1Location.w, huaijiu1Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, huaijiu1Btn, huaijiu1Location.x, huaijiu1Location.y, 0, 0, huaijiu1Location.w, huaijiu1Location.h, 2 .ENDIF .IF huidu1Status == 0 INVOKE GdipDrawImagePointRectI, graphics, huidu1Btn, huidu1Location.x, huidu1Location.y, 0, 0, huidu1Location.w, huidu1Location.h, 2 .ELSEIF huidu1Status == 1 INVOKE GdipDrawImagePointRectI, graphics, huidu1HoverBtn, huidu1Location.x, huidu1Location.y, 0, 0, huidu1Location.w, huidu1Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, huidu1Btn, huidu1Location.x, huidu1Location.y, 0, 0, huidu1Location.w, huidu1Location.h, 2 .ENDIF .IF hedu1Status == 0 INVOKE GdipDrawImagePointRectI, graphics, hedu1Btn, hedu1Location.x, hedu1Location.y, 0, 0, hedu1Location.w, hedu1Location.h, 2 .ELSEIF hedu1Status == 1 INVOKE GdipDrawImagePointRectI, graphics, hedu1HoverBtn, hedu1Location.x, hedu1Location.y, 0, 0, hedu1Location.w, hedu1Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, hedu1Btn, hedu1Location.x, hedu1Location.y, 0, 0, hedu1Location.w, hedu1Location.h, 2 .ENDIF .IF danya1Status == 0 INVOKE GdipDrawImagePointRectI, graphics, danya1Btn, danya1Location.x, danya1Location.y, 0, 0, danya1Location.w, danya1Location.h, 2 .ELSEIF danya1Status == 1 INVOKE GdipDrawImagePointRectI, graphics, danya1HoverBtn, danya1Location.x, danya1Location.y, 0, 0, danya1Location.w, danya1Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, danya1Btn, danya1Location.x, danya1Location.y, 0, 0, danya1Location.w, danya1Location.h, 2 .ENDIF .IF gete1Status == 0 INVOKE GdipDrawImagePointRectI, graphics, gete1Btn, gete1Location.x, gete1Location.y, 0, 0, gete1Location.w, gete1Location.h, 2 .ELSEIF gete1Status == 1 INVOKE GdipDrawImagePointRectI, graphics, gete1HoverBtn, gete1Location.x, gete1Location.y, 0, 0, gete1Location.w, gete1Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, gete1Btn, gete1Location.x, gete1Location.y, 0, 0, gete1Location.w, gete1Location.h, 2 .ENDIF .IF menghuan1Status == 0 INVOKE GdipDrawImagePointRectI, graphics, menghuan1Btn, menghuan1Location.x, menghuan1Location.y, 0, 0, menghuan1Location.w, menghuan1Location.h, 2 .ELSEIF menghuan1Status == 1 INVOKE GdipDrawImagePointRectI, graphics, menghuan1HoverBtn, menghuan1Location.x, menghuan1Location.y, 0, 0, menghuan1Location.w, menghuan1Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, menghuan1Btn, menghuan1Location.x, menghuan1Location.y, 0, 0, menghuan1Location.w, menghuan1Location.h, 2 .ENDIF .IF yuhua1Status == 0 INVOKE GdipDrawImagePointRectI, graphics, yuhua1Btn, yuhua1Location.x, yuhua1Location.y, 0, 0, yuhua1Location.w, yuhua1Location.h, 2 .ELSEIF yuhua1Status == 1 INVOKE GdipDrawImagePointRectI, graphics, yuhua1HoverBtn, yuhua1Location.x, yuhua1Location.y, 0, 0, yuhua1Location.w, yuhua1Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, yuhua1Btn, yuhua1Location.x, yuhua1Location.y, 0, 0, yuhua1Location.w, yuhua1Location.h, 2 .ENDIF .IF mopi1Status == 0 INVOKE GdipDrawImagePointRectI, graphics, mopi1Btn, mopi1Location.x, mopi1Location.y, 0, 0, mopi1Location.w, mopi1Location.h, 2 .ELSEIF mopi1Status == 1 INVOKE GdipDrawImagePointRectI, graphics, mopi1HoverBtn, mopi1Location.x, mopi1Location.y, 0, 0, mopi1Location.w, mopi1Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, mopi1Btn, mopi1Location.x, mopi1Location.y, 0, 0, mopi1Location.w, mopi1Location.h, 2 .ENDIF .ELSEIF interfaceID == 2 ; 绘制背景图 INVOKE GdipDrawImagePointRectI, graphics, background2, 0, 0, 0, 0, 1024, 768, 2 ; 绘制按钮 .IF backStatus == 0 INVOKE GdipDrawImagePointRectI, graphics, backBtn, backLocation.x, backLocation.y, 0, 0, backLocation.w, backLocation.h, 2 .ELSEIF backStatus == 1 INVOKE GdipDrawImagePointRectI, graphics, backHoverBtn, backLocation.x, backLocation.y, 0, 0, backLocation.w, backLocation.h, 2 .ENDIF .IF saveStatus == 0 INVOKE GdipDrawImagePointRectI, graphics, saveBtn, saveLocation.x, saveLocation.y, 0, 0, saveLocation.w, saveLocation.h, 2 .ELSEIF saveStatus == 1 INVOKE GdipDrawImagePointRectI, graphics, saveHoverBtn, saveLocation.x, saveLocation.y, 0, 0, saveLocation.w, saveLocation.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, saveBtn, saveLocation.x, saveLocation.y, 0, 0, saveLocation.w, saveLocation.h, 2 .ENDIF .IF yuantu2Status == 0 INVOKE GdipDrawImagePointRectI, graphics, yuantu2Btn, yuantu2Location.x, yuantu2Location.y, 0, 0, yuantu2Location.w, yuantu2Location.h, 2 .ELSEIF yuantu2Status == 1 INVOKE GdipDrawImagePointRectI, graphics, yuantu2HoverBtn, yuantu2Location.x, yuantu2Location.y, 0, 0, yuantu2Location.w, yuantu2Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, yuantu2Btn, yuantu2Location.x, yuantu2Location.y, 0, 0, yuantu2Location.w, yuantu2Location.h, 2 .ENDIF .IF sumiao2Status == 0 INVOKE GdipDrawImagePointRectI, graphics, sumiao2Btn, sumiao2Location.x, sumiao2Location.y, 0, 0, sumiao2Location.w, sumiao2Location.h, 2 .ELSEIF sumiao2Status == 1 INVOKE GdipDrawImagePointRectI, graphics, sumiao2HoverBtn, sumiao2Location.x, sumiao2Location.y, 0, 0, sumiao2Location.w, sumiao2Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, sumiao2Btn, sumiao2Location.x, sumiao2Location.y, 0, 0, sumiao2Location.w, sumiao2Location.h, 2 .ENDIF .IF fudiao2Status == 0 INVOKE GdipDrawImagePointRectI, graphics, fudiao2Btn, fudiao2Location.x, fudiao2Location.y, 0, 0, fudiao2Location.w, fudiao2Location.h, 2 .ELSEIF fudiao2Status == 1 INVOKE GdipDrawImagePointRectI, graphics, fudiao2HoverBtn, fudiao2Location.x, fudiao2Location.y, 0, 0, fudiao2Location.w, fudiao2Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, fudiao2Btn, fudiao2Location.x, fudiao2Location.y, 0, 0, fudiao2Location.w, fudiao2Location.h, 2 .ENDIF .IF maoboli2Status == 0 INVOKE GdipDrawImagePointRectI, graphics, maoboli2Btn, maoboli2Location.x, maoboli2Location.y, 0, 0, maoboli2Location.w, maoboli2Location.h, 2 .ELSEIF maoboli2Status == 1 INVOKE GdipDrawImagePointRectI, graphics, maoboli2HoverBtn, maoboli2Location.x, maoboli2Location.y, 0, 0, maoboli2Location.w, maoboli2Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, maoboli2Btn, maoboli2Location.x, maoboli2Location.y, 0, 0, maoboli2Location.w, maoboli2Location.h, 2 .ENDIF .IF huaijiu2Status == 0 INVOKE GdipDrawImagePointRectI, graphics, huaijiu2Btn, huaijiu2Location.x, huaijiu2Location.y, 0, 0, huaijiu2Location.w, huaijiu2Location.h, 2 .ELSEIF huaijiu2Status == 1 INVOKE GdipDrawImagePointRectI, graphics, huaijiu2HoverBtn, huaijiu2Location.x, huaijiu2Location.y, 0, 0, huaijiu2Location.w, huaijiu2Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, huaijiu2Btn, huaijiu2Location.x, huaijiu2Location.y, 0, 0, huaijiu2Location.w, huaijiu2Location.h, 2 .ENDIF .IF huidu2Status == 0 INVOKE GdipDrawImagePointRectI, graphics, huidu2Btn, huidu2Location.x, huidu2Location.y, 0, 0, huidu2Location.w, huidu2Location.h, 2 .ELSEIF huidu2Status == 1 INVOKE GdipDrawImagePointRectI, graphics, huidu2HoverBtn, huidu2Location.x, huidu2Location.y, 0, 0, huidu2Location.w, huidu2Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, huidu2Btn, huidu2Location.x, huidu2Location.y, 0, 0, huidu2Location.w, huidu2Location.h, 2 .ENDIF .IF hedu2Status == 0 INVOKE GdipDrawImagePointRectI, graphics, hedu2Btn, hedu2Location.x, hedu2Location.y, 0, 0, hedu2Location.w, hedu2Location.h, 2 .ELSEIF hedu2Status == 1 INVOKE GdipDrawImagePointRectI, graphics, hedu2HoverBtn, hedu2Location.x, hedu2Location.y, 0, 0, hedu2Location.w, hedu2Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, hedu2Btn, hedu2Location.x, hedu2Location.y, 0, 0, hedu2Location.w, hedu2Location.h, 2 .ENDIF .IF danya2Status == 0 INVOKE GdipDrawImagePointRectI, graphics, danya2Btn, danya2Location.x, danya2Location.y, 0, 0, danya2Location.w, danya2Location.h, 2 .ELSEIF danya2Status == 1 INVOKE GdipDrawImagePointRectI, graphics, danya2HoverBtn, danya2Location.x, danya2Location.y, 0, 0, danya2Location.w, danya2Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, danya2Btn, danya2Location.x, danya2Location.y, 0, 0, danya2Location.w, danya2Location.h, 2 .ENDIF .IF gete2Status == 0 INVOKE GdipDrawImagePointRectI, graphics, gete2Btn, gete2Location.x, gete2Location.y, 0, 0, gete2Location.w, gete2Location.h, 2 .ELSEIF gete2Status == 1 INVOKE GdipDrawImagePointRectI, graphics, gete2HoverBtn, gete2Location.x, gete2Location.y, 0, 0, gete2Location.w, gete2Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, gete2Btn, gete2Location.x, gete2Location.y, 0, 0, gete2Location.w, gete2Location.h, 2 .ENDIF .IF menghuan2Status == 0 INVOKE GdipDrawImagePointRectI, graphics, menghuan2Btn, menghuan2Location.x, menghuan2Location.y, 0, 0, menghuan2Location.w, menghuan2Location.h, 2 .ELSEIF menghuan2Status == 1 INVOKE GdipDrawImagePointRectI, graphics, menghuan2HoverBtn, menghuan2Location.x, menghuan2Location.y, 0, 0, menghuan2Location.w, menghuan2Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, menghuan2Btn, menghuan2Location.x, menghuan2Location.y, 0, 0, menghuan2Location.w, menghuan2Location.h, 2 .ENDIF .IF yuhua2Status == 0 INVOKE GdipDrawImagePointRectI, graphics, yuhua2Btn, yuhua2Location.x, yuhua2Location.y, 0, 0, yuhua2Location.w, yuhua2Location.h, 2 .ELSEIF yuhua2Status == 1 INVOKE GdipDrawImagePointRectI, graphics, yuhua2HoverBtn, yuhua2Location.x, yuhua2Location.y, 0, 0, yuhua2Location.w, yuhua2Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, yuhua2Btn, yuhua2Location.x, yuhua2Location.y, 0, 0, yuhua2Location.w, yuhua2Location.h, 2 .ENDIF .IF mopi2Status == 0 INVOKE GdipDrawImagePointRectI, graphics, mopi2Btn, mopi2Location.x, mopi2Location.y, 0, 0, mopi2Location.w, mopi2Location.h, 2 .ELSEIF mopi2Status == 1 INVOKE GdipDrawImagePointRectI, graphics, mopi2HoverBtn, mopi2Location.x, mopi2Location.y, 0, 0, mopi2Location.w, mopi2Location.h, 2 .ELSE INVOKE GdipDrawImagePointRectI, graphics, mopi2Btn, mopi2Location.x, mopi2Location.y, 0, 0, mopi2Location.w, mopi2Location.h, 2 .ENDIF .ELSEIF interfaceID == 3 ; 绘制背景图 INVOKE GdipDrawImagePointRectI, graphics, background2, 0, 0, 0, 0, 1024, 768, 2 INVOKE LoadImageFromFile, OFFSET absoluteCompressFileName, ADDR tmpImage INVOKE GdipDrawImagePointRectI, graphics, tmpImage, 55, 80, 0, 0, 800, 600, 2 ; 绘制按钮 .IF backStatus == 0 INVOKE GdipDrawImagePointRectI, graphics, backBtn, backLocation.x, backLocation.y, 0, 0, backLocation.w, backLocation.h, 2 .ELSEIF backStatus == 1 INVOKE GdipDrawImagePointRectI, graphics, backHoverBtn, backLocation.x, backLocation.y, 0, 0, backLocation.w, backLocation.h, 2 .ENDIF .IF saveStatus == 0 INVOKE GdipDrawImagePointRectI, graphics, saveBtn, saveLocation.x, saveLocation.y, 0, 0, saveLocation.w, saveLocation.h, 2 .ELSEIF saveStatus == 1 INVOKE GdipDrawImagePointRectI, graphics, saveHoverBtn, saveLocation.x, saveLocation.y, 0, 0, saveLocation.w, saveLocation.h, 2 .ENDIF .ENDIF INVOKE BitBlt, hdc, 0, 0, 1024, 768, hMemDC, 0, 0, SRCCOPY ; 绘图 ; 释放内存 INVOKE GdipDisposeImage, szImage INVOKE GdipDisposeImage, tmpImage INVOKE GdipDeleteGraphics, graphics INVOKE DeleteObject, pbitmap INVOKE DeleteDC, hMemDC INVOKE EndPaint, hWnd, ADDR ps .ELSEIF uMsg == WM_MOUSEMOVE ; 获取当前鼠标坐标 mov eax, lParam and eax, 0000FFFFh ; x坐标 mov ebx, lParam shr ebx, 16 ; y坐标 ; 改变按钮状态 .IF interfaceID == 0 INVOKE ChangeBtnStatus, eax, ebx, openLocation, OFFSET openStatus, 1 INVOKE ChangeBtnStatus, eax, ebx, cameraLocation, OFFSET cameraStatus, 1 INVOKE ChangeBtnStatus, eax, ebx, exitLocation, OFFSET exitStatus, 1 .ELSEIF interfaceID == 1 INVOKE ChangeBtnStatus, eax, ebx, backLocation, OFFSET backStatus, 1 INVOKE ChangeBtnStatus, eax, ebx, saveLocation, OFFSET saveStatus, 1 INVOKE ChangeBtnStatus, eax, ebx, yuantu1Location, OFFSET yuantu1Status, 1 INVOKE ChangeBtnStatus, eax, ebx, sumiao1Location, OFFSET sumiao1Status, 1 INVOKE ChangeBtnStatus, eax, ebx, fudiao1Location, OFFSET fudiao1Status, 1 INVOKE ChangeBtnStatus, eax, ebx, maoboli1Location, OFFSET maoboli1Status, 1 INVOKE ChangeBtnStatus, eax, ebx, huaijiu1Location, OFFSET huaijiu1Status, 1 INVOKE ChangeBtnStatus, eax, ebx, huidu1Location, OFFSET huidu1Status, 1 INVOKE ChangeBtnStatus, eax, ebx, hedu1Location, OFFSET hedu1Status, 1 INVOKE ChangeBtnStatus, eax, ebx, danya1Location, OFFSET danya1Status, 1 INVOKE ChangeBtnStatus, eax, ebx, gete1Location, OFFSET gete1Status, 1 INVOKE ChangeBtnStatus, eax, ebx, menghuan1Location, OFFSET menghuan1Status, 1 INVOKE ChangeBtnStatus, eax, ebx, yuhua1Location, OFFSET yuhua1Status, 1 INVOKE ChangeBtnStatus, eax, ebx, mopi1Location, OFFSET mopi1Status, 1 .ELSEIF interfaceID == 2 INVOKE ChangeBtnStatus, eax, ebx, backLocation, OFFSET backStatus, 1 INVOKE ChangeBtnStatus, eax, ebx, saveLocation, OFFSET saveStatus, 1 INVOKE ChangeBtnStatus, eax, ebx, yuantu2Location, OFFSET yuantu2Status, 1 INVOKE ChangeBtnStatus, eax, ebx, sumiao2Location, OFFSET sumiao2Status, 1 INVOKE ChangeBtnStatus, eax, ebx, fudiao2Location, OFFSET fudiao2Status, 1 INVOKE ChangeBtnStatus, eax, ebx, maoboli2Location, OFFSET maoboli2Status, 1 INVOKE ChangeBtnStatus, eax, ebx, huaijiu2Location, OFFSET huaijiu2Status, 1 INVOKE ChangeBtnStatus, eax, ebx, huidu2Location, OFFSET huidu2Status, 1 INVOKE ChangeBtnStatus, eax, ebx, hedu2Location, OFFSET hedu2Status, 1 INVOKE ChangeBtnStatus, eax, ebx, danya2Location, OFFSET danya2Status, 1 INVOKE ChangeBtnStatus, eax, ebx, gete2Location, OFFSET gete2Status, 1 INVOKE ChangeBtnStatus, eax, ebx, menghuan2Location, OFFSET menghuan2Status, 1 INVOKE ChangeBtnStatus, eax, ebx, yuhua2Location, OFFSET yuhua2Status, 1 INVOKE ChangeBtnStatus, eax, ebx, mopi2Location, OFFSET mopi2Status, 1 .ELSEIF interfaceID == 3 INVOKE ChangeBtnStatus, eax, ebx, backLocation, OFFSET backStatus, 1 INVOKE ChangeBtnStatus, eax, ebx, saveLocation, OFFSET saveStatus, 1 .ENDIF .ELSEIF uMsg == WM_LBUTTONDOWN ; 获取当前鼠标坐标 mov eax, lParam and eax, 0000FFFFh ; x坐标 mov ebx, lParam shr ebx, 16 ; y坐标 .IF interfaceID == 0 ; 改变按钮状态 INVOKE ChangeBtnStatus, eax, ebx, openLocation, offset openStatus, 2 INVOKE ChangeBtnStatus, eax, ebx, cameraLocation, offset cameraStatus, 2 INVOKE ChangeBtnStatus, eax, ebx, exitLocation, offset exitStatus, 2 ; 鼠标位于Open mov eax, openStatus .IF eax == 2 ; 打开文件选取窗口 INVOKE GetFileNameFromDialog, ADDR szFilterString, ADDR szInitialDir, ADDR szFileName, ADDR szTitle ; 等于0说明没有打开文件 .IF eax != 0 ; 切换界面状态 mov edx, 1 mov interfaceID, edx ; 更改按键初始值 mov edx, 0 mov backStatus, edx ; 压缩图片 mov esi, OFFSET compressFileName push esi mov esi, OFFSET szFileName push esi CALL compressFunc pop esi pop esi .ENDIF .ENDIF ; 鼠标位于Camera mov eax, cameraStatus .IF eax == 2 ; 切换界面状态 mov edx, 2 mov interfaceID, edx .ENDIF ; 鼠标位于Exit mov eax, exitStatus .IF eax == 2 INVOKE ExitProcess, 0 .ENDIF .ELSEIF interfaceID == 1 ; 改变按钮状态 INVOKE ChangeBtnStatus, eax, ebx, backLocation, OFFSET backStatus, 2 INVOKE ChangeBtnStatus, eax, ebx, saveLocation, OFFSET saveStatus, 2 INVOKE ChangeBtnStatus, eax, ebx, yuantu1Location, OFFSET yuantu1Status, 2 INVOKE ChangeBtnStatus, eax, ebx, sumiao1Location, OFFSET sumiao1Status, 2 INVOKE ChangeBtnStatus, eax, ebx, fudiao1Location, OFFSET fudiao1Status, 2 INVOKE ChangeBtnStatus, eax, ebx, maoboli1Location, OFFSET maoboli1Status, 2 INVOKE ChangeBtnStatus, eax, ebx, huaijiu1Location, OFFSET huaijiu1Status, 2 INVOKE ChangeBtnStatus, eax, ebx, huidu1Location, OFFSET huidu1Status, 2 INVOKE ChangeBtnStatus, eax, ebx, hedu1Location, OFFSET hedu1Status, 2 INVOKE ChangeBtnStatus, eax, ebx, danya1Location, OFFSET danya1Status, 2 INVOKE ChangeBtnStatus, eax, ebx, gete1Location, OFFSET gete1Status, 2 INVOKE ChangeBtnStatus, eax, ebx, menghuan1Location, OFFSET menghuan1Status, 2 INVOKE ChangeBtnStatus, eax, ebx, yuhua1Location, OFFSET yuhua1Status, 2 INVOKE ChangeBtnStatus, eax, ebx, mopi1Location, OFFSET mopi1Status, 2 ; 鼠标位于save mov eax, saveStatus .IF eax == 2 ; todo INVOKE SaveImg xor eax, eax ret .ENDIF ; 清空缓存 INVOKE DeleteTmpImage INVOKE RandStr INVOKE DeleteCompressImage ; 鼠标位于back mov eax, backStatus .IF eax == 2 ; 切换界面状态 mov edx, 0 mov interfaceID, edx ; 切换图片状态 mov eax, 0 mov isFiltered, eax .ENDIF ; 鼠标位于yuantu mov eax, yuantu1Status .IF eax == 2 ; 切换状态 mov eax, 0 mov isFiltered, eax mov eax, 2 mov filterBtnClicked, eax .ENDIF ; 鼠标位于sumiao mov eax, sumiao1Status .IF eax == 2 ; 调用素描滤镜函数 mov ebx, OFFSET tmpFileName mov edx, OFFSET szFileName push ebx push edx call sumiaoFunc pop eax pop eax ; 切换状态 mov eax, 1 mov isFiltered, eax mov filterBtnClicked, eax .ENDIF ; 鼠标位于fudiao mov eax, fudiao1Status .IF eax == 2 ; 调用浮雕滤镜函数 mov ebx, OFFSET tmpFileName mov edx, OFFSET szFileName push ebx push edx call fudiaoFunc pop eax pop eax ; 切换状态 mov eax, 1 mov isFiltered, eax mov filterBtnClicked, eax .ENDIF ; 鼠标位于maoboli mov eax, maoboli1Status .IF eax == 2 ; 调用毛玻璃滤镜函数 mov ebx, OFFSET tmpFileName mov edx, OFFSET szFileName push ebx push edx call maoboliFunc pop eax pop eax ; 切换状态 mov eax, 1 mov isFiltered, eax mov filterBtnClicked, eax .ENDIF ; 鼠标位于huaijiu mov eax, huaijiu1Status .IF eax == 2 ; 调用怀旧滤镜函数 mov ebx, OFFSET tmpFileName mov edx, OFFSET szFileName push ebx push edx call huaijiuFunc pop eax pop eax ; 切换状态 mov eax, 1 mov isFiltered, eax mov filterBtnClicked, eax .ENDIF ; 鼠标位于huidu mov eax, huidu1Status .IF eax == 2 ; 调用灰度滤镜函数 mov ebx, OFFSET tmpFileName mov edx, OFFSET szFileName push ebx push edx call huiduFunc pop eax pop eax ; 切换状态 mov eax, 1 mov isFiltered, eax mov filterBtnClicked, eax .ENDIF ; 鼠标位于hedu mov eax, hedu1Status .IF eax == 2 ; 调用褐度滤镜函数 mov ebx, OFFSET tmpFileName mov edx, OFFSET szFileName push ebx push edx call heduFunc pop eax pop eax ; 切换状态 mov eax, 1 mov isFiltered, eax mov filterBtnClicked, eax .ENDIF ; 鼠标位于danya mov eax, danya1Status .IF eax == 2 ; 调用淡雅滤镜函数 mov ebx, OFFSET tmpFileName mov edx, OFFSET szFileName push ebx push edx call danyaFunc pop eax pop eax ; 切换状态 mov eax, 1 mov isFiltered, eax mov filterBtnClicked, eax .ENDIF ; 鼠标位于gete mov eax, gete1Status .IF eax == 2 ; 调用哥特滤镜函数 mov ebx, OFFSET tmpFileName mov edx, OFFSET szFileName push ebx push edx call geteFunc pop eax pop eax ; 切换状态 mov eax, 1 mov isFiltered, eax mov filterBtnClicked, eax .ENDIF ; 鼠标位于menghuan mov eax, menghuan1Status .IF eax == 2 ; 调用梦幻滤镜函数 mov ebx, OFFSET tmpFileName mov edx, OFFSET szFileName push ebx push edx call menghuanFunc pop eax pop eax ; 切换状态 mov eax, 1 mov isFiltered, eax mov filterBtnClicked, eax .ENDIF ; 鼠标位于yuhua mov eax, yuhua1Status .IF eax == 2 ; 调用羽化滤镜函数 mov ebx, OFFSET tmpFileName mov edx, OFFSET szFileName push ebx push edx call yuhuaFunc pop eax pop eax ; 切换状态 mov eax, 1 mov isFiltered, eax mov filterBtnClicked, eax .ENDIF ; 鼠标位于mopi mov eax, mopi1Status .IF eax == 2 ; 调用磨皮滤镜函数 mov ebx, OFFSET tmpFileName mov edx, OFFSET szFileName push ebx push edx call mopiFunc pop eax pop eax ; 切换状态 mov eax, 1 mov isFiltered, eax mov filterBtnClicked, eax .ENDIF mov eax, filterBtnClicked .IF eax == 1 ; 压缩图片 mov esi, OFFSET compressFileName push esi mov esi, OFFSET tmpFileName push esi CALL compressFunc pop esi pop esi .ELSEIF eax == 2 mov esi, OFFSET compressFileName push esi mov esi, OFFSET szFileName push esi CALL compressFunc pop esi pop esi .ENDIF mov eax, 0 mov filterBtnClicked, eax .ELSEIF interfaceID == 2 ; 改变按钮状态 INVOKE ChangeBtnStatus, eax, ebx, backLocation, OFFSET backStatus, 2 INVOKE ChangeBtnStatus, eax, ebx, saveLocation, OFFSET saveStatus, 2 INVOKE ChangeBtnStatus, eax, ebx, yuantu2Location, OFFSET yuantu2Status, 2 INVOKE ChangeBtnStatus, eax, ebx, sumiao2Location, OFFSET sumiao2Status, 2 INVOKE ChangeBtnStatus, eax, ebx, fudiao2Location, OFFSET fudiao2Status, 2 INVOKE ChangeBtnStatus, eax, ebx, maoboli2Location, OFFSET maoboli2Status, 2 INVOKE ChangeBtnStatus, eax, ebx, huaijiu2Location, OFFSET huaijiu2Status, 2 INVOKE ChangeBtnStatus, eax, ebx, huidu2Location, OFFSET huidu2Status, 2 INVOKE ChangeBtnStatus, eax, ebx, hedu2Location, OFFSET hedu2Status, 2 INVOKE ChangeBtnStatus, eax, ebx, danya2Location, OFFSET danya2Status, 2 INVOKE ChangeBtnStatus, eax, ebx, gete2Location, OFFSET gete2Status, 2 INVOKE ChangeBtnStatus, eax, ebx, menghuan2Location, OFFSET menghuan2Status, 2 INVOKE ChangeBtnStatus, eax, ebx, yuhua2Location, OFFSET yuhua2Status, 2 INVOKE ChangeBtnStatus, eax, ebx, mopi2Location, OFFSET mopi2Status, 2 ; 鼠标位于back mov eax, backStatus .IF eax == 2 ; 切换界面状态 mov edx, 0 mov interfaceID, edx ; 杀死摄像头线程 INVOKE TerminateThread, hThread, OFFSET cameraThreadID call releaseFunc .ENDIF ; 鼠标位于save mov eax, saveStatus .IF eax == 2 INVOKE RandStr INVOKE Regular2Absolute, addr currentWorkDir, addr tmpFileName, addr tmp_Image ; 捕获一帧并保存 INVOKE TerminateThread, hThread, OFFSET cameraThreadID call releaseFunc mov ebx, cameraFilterType push ebx mov edx, OFFSET tmp_Image push edx call frameFunc pop eax pop eax call releaseFunc INVOKE Regular2Absolute, addr currentWorkDir, addr compressFileName, addr absoluteCompressFileName ; 压缩图片 mov esi, OFFSET absoluteCompressFileName push esi mov esi, OFFSET tmp_Image push esi CALL compressFunc pop esi pop esi mov eax, 3 mov interfaceID, eax xor eax, eax ret .ENDIF ; 鼠标位于yuantu mov eax, yuantu2Status .IF eax == 2 INVOKE TerminateThread, hThread, OFFSET cameraThreadID call releaseFunc mov ebx, 0 mov cameraFilterType, ebx INVOKE CreateThread, NULL, 0, OFFSET cameraThread, NULL, 0, OFFSET cameraThreadID mov hThread, eax ; 获取进程句柄 .ENDIF ; 鼠标位于sumiao mov eax, sumiao2Status .IF eax == 2 INVOKE TerminateThread, hThread, OFFSET cameraThreadID call releaseFunc mov ebx, 1 mov cameraFilterType, ebx INVOKE CreateThread, NULL, 0, OFFSET cameraThread, NULL, 0, OFFSET cameraThreadID mov hThread, eax ; 获取进程句柄 .ENDIF ; 鼠标位于fudiao mov eax, fudiao2Status .IF eax == 2 INVOKE TerminateThread, hThread, OFFSET cameraThreadID call releaseFunc mov ebx, 2 mov cameraFilterType, ebx INVOKE CreateThread, NULL, 0, OFFSET cameraThread, NULL, 0, OFFSET cameraThreadID mov hThread, eax ; 获取进程句柄 .ENDIF ; 鼠标位于maoboli mov eax, maoboli2Status .IF eax == 2 INVOKE TerminateThread, hThread, OFFSET cameraThreadID call releaseFunc mov ebx, 3 mov cameraFilterType, ebx INVOKE CreateThread, NULL, 0, OFFSET cameraThread, NULL, 0, OFFSET cameraThreadID mov hThread, eax ; 获取进程句柄 .ENDIF ; 鼠标位于huaijiu mov eax, huaijiu2Status .IF eax == 2 INVOKE TerminateThread, hThread, OFFSET cameraThreadID call releaseFunc mov ebx, 4 mov cameraFilterType, ebx INVOKE CreateThread, NULL, 0, OFFSET cameraThread, NULL, 0, OFFSET cameraThreadID mov hThread, eax ; 获取进程句柄 .ENDIF ; 鼠标位于huidu mov eax, huidu2Status .IF eax == 2 INVOKE TerminateThread, hThread, OFFSET cameraThreadID call releaseFunc mov ebx, 5 mov cameraFilterType, ebx INVOKE CreateThread, NULL, 0, OFFSET cameraThread, NULL, 0, OFFSET cameraThreadID mov hThread, eax ; 获取进程句柄 .ENDIF ; 鼠标位于hedu mov eax, hedu2Status .IF eax == 2 INVOKE TerminateThread, hThread, OFFSET cameraThreadID call releaseFunc mov ebx, 6 mov cameraFilterType, ebx INVOKE CreateThread, NULL, 0, OFFSET cameraThread, NULL, 0, OFFSET cameraThreadID mov hThread, eax ; 获取进程句柄 .ENDIF ; 鼠标位于danya mov eax, danya2Status .IF eax == 2 INVOKE TerminateThread, hThread, OFFSET cameraThreadID call releaseFunc mov ebx, 7 mov cameraFilterType, ebx INVOKE CreateThread, NULL, 0, OFFSET cameraThread, NULL, 0, OFFSET cameraThreadID mov hThread, eax ; 获取进程句柄 .ENDIF ; 鼠标位于gete mov eax, gete2Status .IF eax == 2 INVOKE TerminateThread, hThread, OFFSET cameraThreadID call releaseFunc mov ebx, 8 mov cameraFilterType, ebx INVOKE CreateThread, NULL, 0, OFFSET cameraThread, NULL, 0, OFFSET cameraThreadID mov hThread, eax ; 获取进程句柄 .ENDIF ; 鼠标位于menghuan mov eax, menghuan2Status .IF eax == 2 INVOKE TerminateThread, hThread, OFFSET cameraThreadID call releaseFunc mov ebx, 9 mov cameraFilterType, ebx INVOKE CreateThread, NULL, 0, OFFSET cameraThread, NULL, 0, OFFSET cameraThreadID mov hThread, eax ; 获取进程句柄 .ENDIF ; 鼠标位于yuhua mov eax, yuhua2Status .IF eax == 2 INVOKE TerminateThread, hThread, OFFSET cameraThreadID call releaseFunc mov ebx, 10 mov cameraFilterType, ebx INVOKE CreateThread, NULL, 0, OFFSET cameraThread, NULL, 0, OFFSET cameraThreadID mov hThread, eax ; 获取进程句柄 .ENDIF ; 鼠标位于mopi mov eax, mopi2Status .IF eax == 2 INVOKE TerminateThread, hThread, OFFSET cameraThreadID call releaseFunc mov ebx, 11 mov cameraFilterType, ebx INVOKE CreateThread, NULL, 0, OFFSET cameraThread, NULL, 0, OFFSET cameraThreadID mov hThread, eax ; 获取进程句柄 .ENDIF .ELSEIF interfaceID == 3 ; 改变按钮状态 INVOKE ChangeBtnStatus, eax, ebx, backLocation, OFFSET backStatus, 2 INVOKE ChangeBtnStatus, eax, ebx, saveLocation, OFFSET saveStatus, 2 ; 鼠标位于save mov eax, saveStatus .IF eax == 2 ; todo INVOKE RtlZeroMemory, addr save_ofn, sizeof save_ofn mov save_ofn.lStructSize, sizeof save_ofn ;结构的大小 mov save_ofn.lpstrFilter, OFFSET szFilterString ;文件过滤器 mov save_ofn.lpstrInitialDir, OFFSET szInitialDir ; 初始目录 mov save_ofn.lpstrFile, OFFSET saveFileName ;文件名的存放位置 mov save_ofn.nMaxFile, 256 ;文件名的最大长度 mov save_ofn.Flags, OFN_PATHMUSTEXIST INVOKE GetSaveFileName, addr save_ofn .IF eax != 0 ;若选择了文件 ; 拼接字符串 tmp_Image为临时文件的绝对路径 INVOKE Regular2Absolute, addr currentWorkDir, addr tmpFileName, addr tmp_Image mov esi, OFFSET saveFileName push esi mov esi, OFFSET tmp_Image push esi CALL saveImageFunc pop esi pop esi INVOKE DeleteFile, addr tmp_Image .ENDIF xor eax, eax ret .ENDIF ; 鼠标位于back mov eax, backStatus .IF eax == 2 ; 切换界面状态 mov edx, 0 mov interfaceID, edx ; 清空缓存 INVOKE Regular2Absolute, addr currentWorkDir, addr tmpFileName, addr tmp_Image INVOKE DeleteFile, addr tmp_Image INVOKE RandStr INVOKE DeleteFile, addr absoluteCompressFileName .ENDIF .ENDIF ; 根据定时器定时更新界面 .ELSEIF uMsg == WM_TIMER ; 获得当前窗口的rectangle invoke GetClientRect, hWnd, addr stRect ; 指定重绘区域 invoke InvalidateRect, hWnd, addr stRect, 0 ; 发送绘制信息 invoke SendMessage, hWnd, WM_PAINT, NULL, NULL .ELSEIF uMsg == WM_DESTROY INVOKE PostQuitMessage, NULL .ELSE INVOKE DefWindowProc, hWnd, uMsg, wParam, lParam ret .ENDIF xor eax, eax ret WndProc ENDP cameraThread PROC mov ebx, cameraFilterType push ebx call cameraFunc pop eax mov eax, 233 ret cameraThread ENDP ;----------------------------------------------------- ChangeBtnStatus PROC USES eax ebx ecx edx esi x:DWORD, y:DWORD, btn_location:location, btn_status_addr:DWORD, new_status:DWORD ; 改变按钮状态 ;----------------------------------------------------- mov esi, btn_status_addr mov DWORD PTR [esi], 0 mov eax, x mov ebx, y .IF eax > btn_location.x mov ecx, btn_location.x add ecx, btn_location.w .IF eax < ecx .IF ebx > btn_location.y mov ecx, btn_location.y add ecx, btn_location.h .IF ebx < ecx mov esi, btn_status_addr mov edx, new_status mov [esi], edx .ENDIF .ENDIF .ENDIF .ENDIF ret ChangeBtnStatus ENDP ;----------------------------------------------------- SaveImg PROC USES esi edi ecx ; 保存图片到指定路径 ;----------------------------------------------------- INVOKE RtlZeroMemory, addr save_ofn, sizeof save_ofn mov save_ofn.lStructSize, sizeof save_ofn ;结构的大小 mov save_ofn.lpstrFilter, OFFSET szFilterString ;文件过滤器 mov save_ofn.lpstrInitialDir, OFFSET szInitialDir ; 初始目录 mov save_ofn.lpstrFile, OFFSET saveFileName ;文件名的存放位置 mov save_ofn.nMaxFile, 256 ;文件名的最大长度 mov save_ofn.Flags, OFN_PATHMUSTEXIST INVOKE GetSaveFileName, addr save_ofn .IF eax != 0 ;若选择了文件 ; 获得了当前可执行文件的目录 含\*.exe ; INVOKE GetModuleFileName, hInstance, addr currentWorkDir, 256 ; INVOKE MessageBoxA, NULL, addr currentWorkDir, addr szTitle, NULL ; 拼接字符串 tmp_Image为临时文件的绝对路径 INVOKE Regular2Absolute, addr szFileName, addr tmpFileName, addr tmp_Image mov esi, OFFSET saveFileName push esi mov esi, OFFSET tmp_Image push esi CALL saveImageFunc pop esi pop esi INVOKE DeleteFile, addr tmp_Image .ENDIF ret SaveImg ENDP ;----------------------------------------------------- DeleteTmpImage PROC ; 删除滤镜过程中出现的临时图 ;----------------------------------------------------- INVOKE Regular2Absolute, addr szFileName, addr tmpFileName, addr tmp_Image INVOKE DeleteFile, addr tmp_Image ret DeleteTmpImage ENDP ;----------------------------------------------------- DeleteCompressImage PROC ; 删除压缩图片 ;----------------------------------------------------- INVOKE Regular2Absolute, addr szFileName, addr compressFileName, addr absoluteCompressFileName INVOKE DeleteFile, addr absoluteCompressFileName ret DeleteCompressImage ENDP ;----------------------------------------------------- Regular2Absolute PROC USES esi edi ecx absolute:DWORD, regular:DWORD, dst:DWORD ; 参数:原绝对路径(含文件名)、相对路径文件名、绝对路径保存的位置 ; 转化成同级文件夹的绝对路径 ;----------------------------------------------------- mov esi, absolute mov edi, dst mov al, [esi] L1: mov bl, [esi] mov [edi], bl add esi, 1 add edi, 1 mov al, [esi] cmp al, 0 jne L1 sub edi, 1 mov al, [edi] L2: mov al, 0 mov [edi], al sub edi, 1 mov al, [edi] cmp al, '\' jne L2 add edi, 1 mov esi, regular mov al, [esi] L3: mov bl, [esi] mov [edi], bl add esi, 1 add edi, 1 mov al, [esi] cmp al, 0 jne L3 ret Regular2Absolute ENDP ;----------------------------------------------------- RandStr PROC ; 将tmpFileName置为随机字符串 ;----------------------------------------------------- mov esi, OFFSET tmpFileName xor ebx, ebx mov ecx, 10 L1: push ecx ;mov ah, 00h ;int 1ah ;mov ax, dx INVOKE rand xor dx, dx mov cx, 10 div cx add dl, '0' mov BYTE PTR [esi + ebx], dl add ebx, 1 pop ecx Loop L1 mov edi, OFFSET pngType xor edx, edx L2: mov cl, BYTE PTR [edi + edx] mov [esi + ebx], cl add edx, 1 add ebx, 1 test cl, cl jnz L2 ret RandStr ENDP END START
32.954153
156
0.719272
2b8a6b91d6c884125110a3000ee437affac53655
5,687
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_sm_/i7-7700_9_0x48_notsx.log_21829_1650.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_sm_/i7-7700_9_0x48_notsx.log_21829_1650.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_sm_/i7-7700_9_0x48_notsx.log_21829_1650.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 %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xfc5b, %rsi lea addresses_normal_ht+0xe05b, %rdi nop nop dec %rbp mov $11, %rcx rep movsb nop nop nop nop and $29358, %r13 lea addresses_UC_ht+0x1545b, %rbx clflush (%rbx) nop nop add $27738, %rdx movups (%rbx), %xmm2 vpextrq $0, %xmm2, %rbp add $3151, %rbx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r13 ret .global s_faulty_load s_faulty_load: push %r14 push %r8 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi // Store lea addresses_D+0x1d65b, %rsi nop nop cmp %r14, %r14 movw $0x5152, (%rsi) nop sub $62115, %rbx // Store lea addresses_A+0xe15b, %rcx nop nop and $458, %rbp mov $0x5152535455565758, %r14 movq %r14, (%rcx) nop nop nop nop nop sub %rbx, %rbx // Store lea addresses_UC+0x1dd1b, %r8 nop nop nop nop nop add $34108, %rsi movw $0x5152, (%r8) add $28051, %rbp // Store lea addresses_WC+0xb323, %r8 nop inc %rbp mov $0x5152535455565758, %rcx movq %rcx, %xmm2 movups %xmm2, (%r8) nop sub %rbp, %rbp // REPMOV lea addresses_D+0x1d65b, %rsi lea addresses_PSE+0xb55b, %rdi nop nop nop nop sub $21034, %r9 mov $77, %rcx rep movsl nop dec %r14 // Faulty Load lea addresses_D+0x1d65b, %rdi nop nop cmp $29423, %rbp mov (%rdi), %r14w lea oracles, %rdi and $0xff, %r14 shlq $12, %r14 mov (%rdi,%r14,1), %r14 pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r9 pop %r8 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_D', 'congruent': 0}} {'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_D', 'congruent': 0}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_A', 'congruent': 8}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_UC', 'congruent': 6}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC', 'congruent': 2}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 8, 'type': 'addresses_PSE'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 0, 'type': 'addresses_D'}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': True, 'size': 2, 'type': 'addresses_D', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'congruent': 9, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_WT_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_UC_ht', 'congruent': 8}} {'52': 21829} 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 */
39.493056
2,999
0.656234
6d34b9455e04f722331fc4a7be6039f42977806e
3,516
asm
Assembly
projects/Kirbys_Dream_Land_2.windfish/configuration/regions.asm
jverkoey/awaken
743755248996deb7181ae92f6e60be5656439c44
[ "Apache-2.0" ]
68
2020-12-16T10:06:48.000Z
2022-03-29T19:54:01.000Z
projects/Kirbys_Dream_Land_2.windfish/configuration/regions.asm
jverkoey/awaken
743755248996deb7181ae92f6e60be5656439c44
[ "Apache-2.0" ]
62
2020-12-19T04:28:41.000Z
2021-02-15T22:18:16.000Z
projects/Kirbys_Dream_Land_2.windfish/configuration/regions.asm
jverkoey/awaken
743755248996deb7181ae92f6e60be5656439c44
[ "Apache-2.0" ]
4
2021-01-17T03:51:22.000Z
2021-01-21T16:26:53.000Z
RST_0000: ; [Region] $00:$0000 [8] RST_0008: ; [Region] $00:$0008 [8] RST_0010: ; [Region] $00:$0010 [8] RST_0018: ; [Region] $00:$0018 [8] RST_0020: ; [Region] $00:$0020 [8] RST_0028: ; [Region] $00:$0028 [8] RST_0030: ; [Region] $00:$0030 [8] RST_0038: ; [Region] $00:$0038 [8] VBlankInterrupt: ; [Region] $00:$0040 [8] LCDCInterrupt: ; [Region] $00:$0048 [8] TimerOverflowInterrupt: ; [Region] $00:$0050 [8] SerialTransferCompleteInterrupt: ; [Region] $00:$0058 [8] JoypadTransitionInterrupt: ; [Region] $00:$0060 [8] Boot: ; [Region] $00:$0100 [4] HeaderLogo: ; [Image (1bpp)] $00:$0104 [48] HeaderTitle: ; [String] $00:$0134 [15] HeaderNewLicenseeCode: ; [Label] $00:$0144 [0] HeaderOldLicenseeCode: ; [Label] $00:$014B [0] HeaderMaskROMVersion: ; [Label] $00:$014C [0] HeaderComplementCheck: ; [Label] $00:$014D [0] HeaderGlobalChecksum: ; [Label] $00:$014E [0] main: ; [Label] $00:$0150 [0] memset: ; [Function] $00:$062F [0] memcpy: ; [Function] $00:$0621 [0] startCopying: ; [Label] $00:$0628 [0] copy: ; [Label] $00:$0625 [0] loadBank: ; [Label] $00:$05F3 [0] changeBankAndCall: ; [Label] $00:$05E5 [0] copyHLToFF30: ; [Label] $00:$3001 [0] loop: ; [Label] $00:$3006 [0] stashHL: ; [Label] $00:$0604 [0] cbcallWithoutInterrupts: ; [Label] $00:$05CF [0] loadBank: ; [Label] $00:$05DD [0] LCDInterruptTrampolineReturn: ; [Function] $00:$0342 [0] LCDCInterruptHandler: ; [Function] $00:$030C [0] wait: ; [Label] $00:$0318 [0] toc_00_022B: ; [Function] $00:$022B [0] paintPixel: ; [Label] $00:$0757 [0] whilePixelsRemain: ; [Label] $00:$0750 [0] readCommandByte: ; [Label] $00:$070E [0] fill: ; [Label] $00:$074F [0] copyBytes: ; [Label] $00:$0743 [0] decompressHAL: ; [Label] $00:$0708 [0] readLongCommand: ; [Label] $00:$0718 [0] vblankHandler: ; [Label] $00:$0159 [0] waitForVBlank: ; [Label] $00:$015E [0] passC0ToDMATransfer: ; [Label] $00:$0177 [0] startDMATransfer: ; [Label] $00:$017C [0] loadScrollPosition: ; [Label] $00:$018D [0] doCE82PlusB: ; [Label] $00:$2F31 [0] joypadHandler: ; [Label] $00:$041E [0] readJoypad: ; [Label] $00:$0386 [0] resetCounter: ; [Label] $00:$0432 [0] checkCounter: ; [Label] $00:$0429 [0] toc_01_0DFF: ; [Function] $01:$0DFF [0] toc_01_0DCE: ; [Function] $01:$0DCE [0] toc_01_0684: ; [Function] $01:$0684 [0] initialize: ; [Function] $1A:$4000 [0] waitForVBlank: ; [Label] $1A:$4003 [0] DMARoutine: ; [Function] $1A:$40E8 [0] initializeHardware: ; [Function] $1E:$4232 [0] toc_07_57BC: ; [Function] $07:$57BC [0] toc_07_401D: ; [Function] $07:$401D [0] toc_08_4062: ; [Function] $08:$4062 [0] data_446E: ; [Data] $1E:$446E [48] data_5B6F: ; [Data] $1E:$5B6F [198] setCE06ToAA: ; [Label] $1E:$4268 [0] clearCE56: ; [Label] $1F:$4242 [0] memcpy4281_to_CE2E: ; [Label] $1F:$424E [0] data_1F_4281: ; [Data] $1F:$4281 [20] data_1E_4343: ; [Label] $1E:$4343 [20] toc_1E_5FE1: ; [Function] $1E:$5FE1 [0] toc_1E_5F68: ; [Function] $1E:$5F68 [0] toc_07_5FEE: ; [Function] $07:$5FEE [0] toc_08_4000: ; [Function] $08:$4000 [0] toc_1A_4246: ; [Function] $1A:$4246 [0] toc_1E_6002: ; [Function] $1E:$6002 [0] toc_1E_5FEB: ; [Function] $1E:$5FEB [0] toc_1E_5DFF: ; [Function] $1E:$5DFF [0] toc_1E_4299: ; [Function] $1E:$4299 [0] toc_08_5E92: ; [Function] $08:$5E92 [0] toc_0F_68D2: ; [Function] $0F:$68D2 [0] toc_10_7A2D: ; [Function] $10:$7A2D [0] data_10_72D1: ; [Data] $10:$72D1 [26] wait: ; [Label] $1A:$40EE [0] toc_1E_6011: ; [Function] $1E:$6011 [0] toc_1E_606D: ; [Function] $1E:$606D [0]
20.323699
57
0.628555
4cb3db3c7d55698b96e703671c563d80bb37177d
3,017
asm
Assembly
base/mvdm/wow16/user/wsphelp.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
base/mvdm/wow16/user/wsphelp.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
base/mvdm/wow16/user/wsphelp.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
;++ ; ; WOW v1.0 ; ; Copyright (c) 1991, Microsoft Corporation ; ; WSPHELP.ASM ; Win16 wsprintf/wvsprintf helper services ; ; History: ; ; Created 28-May-1991 by Jeff Parsons (jeffpar) ; Copied from WIN31 and edited (as little as possible) for WOW16 ;-- ; ; WSPHELP.ASM ; ; Assembly language helper functions for wvsprintf(), primarily for ; space optimization. ; ; History: ; 2/15/89 craigc Initial ; memS=1 ?PLM=1 ?WIN=1 ifdef WOW SEGNAME equ <TEXT> endif .xlist include cmacros.inc .list createSeg _%SEGNAME,%SEGNAME,WORD,public,CODE sBegin %SEGNAME assumes cs,%SEGNAME ; ; SP_PutNumber ; ; Takes an unsigned long integer and places it into a buffer, respecting ; a buffer limit, a radix, and a case select (upper or lower, for hex). ; cProc SP_PutNumber, <NEAR,PUBLIC>, <si,di> parmD lpb parmD n parmW limit parmW radix parmW case cBegin mov al,'a'-'0'-10 ; figure out conversion offset cmp case,0 jz pn_lower mov al,'A'-'0'-10 pn_lower: mov byte ptr case,al mov bx,word ptr n[0] ; bx:dx=number mov dx,word ptr n[2] mov cx,radix ; cx=radix les di,lpb ; es:di->string mov si,limit ; cchLimit ; ; following adapted from fultoa.asm ; ; dx:bx = unsigned number, cx = radix, es:di->output ; divdown: xchg ax,dx ; divide hi xor dx,dx or ax,ax jz nohigh ; save a divide div cx ; dx = rem, ax = hi div nohigh: xchg ax,bx ; ax = lo, bx = hi div div cx ; dx = rem, bx:ax = div xchg ax,dx ; ax = rem, bx:dx = div xchg dx,bx ; ax = rem, dx:bx = div (tight!!!!) add al,'0' cmp al,'9' jbe isadig ; is a digit already add al,byte ptr case ; convert to letter isadig: dec si ; decrement cchLimit jz pn_exit ; go away if end of string stosb ; stick it in mov ax,dx or ax,bx jnz divdown ; crack out next digit pn_exit: mov ax,di sub ax,word ptr lpb[0] ; find number of chars output cEnd ; ; SP_Reverse ; ; Reverses a string in place ; cProc SP_Reverse,<NEAR,PUBLIC>,<si,di> parmD lpFirst parmD lpLast cBegin push ds lds si,lpFirst les di,lpLast mov cx,di ; number of character difference sub cx,si inc cx shr cx,1 ; number of swaps required jcxz spr_boring ; nuthin' to do spr100: mov ah,es:[di] mov al,[si] ; load the two characters mov [si],ah mov es:[di],al ; swap them inc si dec di ; adjust the pointers loop spr100 ; ...until we've done 'em all spr_boring: pop ds cEnd sEnd %SEGNAME end
21.397163
75
0.53762
8c913177a2abe7434c7f97680584e1a8a40e4375
730
asm
Assembly
PRG/levels/Plains/4-5Bonus.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/levels/Plains/4-5Bonus.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/levels/Plains/4-5Bonus.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
; Original address was $AF30 ; 4-5 bonus room and unused exit .word W405L ; Alternate level layout .word W405O ; Alternate object layout .byte LEVEL1_SIZE_05 | LEVEL1_YSTART_170 .byte LEVEL2_BGPAL_05 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 | LEVEL2_UNUSEDFLAG .byte LEVEL3_TILESET_11 | LEVEL3_VSCROLL_LOCKED | LEVEL3_PIPENOTEXIT .byte LEVEL4_BGBANK_INDEX(1) | LEVEL4_INITACT_NOTHING .byte LEVEL5_BGM_UNDERGROUND | LEVEL5_TIME_300 .byte $40, $00, $BF, $21, $50, $00, $BA, $00, $5A, $00, $B0, $10, $50, $0E, $BA, $13 .byte $37, $05, $92, $37, $09, $13, $59, $0D, $08, $1A, $20, $D0, $2F, $58, $22, $22 .byte $19, $27, $93, $16, $2B, $00, $12, $27, $E2, $13, $30, $E2, $19, $30, $93, $40 .byte $39, $09, $E0, $12, $75, $FF
48.666667
85
0.656164
6bfae31d61c650ba074ce6d3494b6958a874c0e9
4,539
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1568.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1568.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1568.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 %r15 push %rbp push %rsi lea addresses_normal_ht+0x11349, %r10 nop xor %r12, %r12 mov (%r10), %r15d nop nop add $63627, %r12 lea addresses_normal_ht+0x12619, %r12 nop nop nop sub $53278, %rsi movw $0x6162, (%r12) nop nop nop cmp $61272, %rbp pop %rsi pop %rbp pop %r15 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r15 push %r8 push %rax push %rbp push %rcx push %rdi // Store lea addresses_normal+0x49d9, %rax sub $34422, %r8 mov $0x5152535455565758, %r11 movq %r11, (%rax) nop nop nop nop dec %r8 // Faulty Load lea addresses_RW+0x16289, %rcx nop nop nop nop and %rbp, %rbp mov (%rcx), %r8 lea oracles, %rcx and $0xff, %r8 shlq $12, %r8 mov (%rcx,%r8,1), %r8 pop %rdi pop %rcx pop %rbp pop %rax pop %r8 pop %r15 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 4, 'size': 8, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': True, 'congruent': 6, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 4, 'size': 2, 'same': False, 'NT': False}} {'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 */
52.172414
2,999
0.661159
50425cefa477a986e11c36b9938dcd266c61b78c
667
asm
Assembly
iod/con2/aur8/sppref.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
iod/con2/aur8/sppref.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
iod/con2/aur8/sppref.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; 8 bit sprite preference table V2.02  1999 Tony Tebby ; ; 2002-11-12 2.01 Added mode 64 definition (MK) ; 2002-12-15 2.02 Added more mode definitions (JG) section driver xdef pt_sppref ; 14 sprite preference table xdef pt_spnative ; The size and order of the table must comply with the definition ; in iod_con2_16_spcch_asm! ; ; Currently the order is: native, 24bit, mode 33, mode 32, 8bit, 8bit pal ; , 4 bit, 4 bit pal, 2 bit (ql 4 colour like), 2 bit pal, ; , 4 colour ql, 1 bit, 1 bit pal, 8 colour ql ; pt_spnative pt_sppref dc.w $0210,$0240,$0221,$0220,$0210,$021f dc.w $0208,$020f,$0204,$0207 dc.w $0100,$0200,$0203,$0101 end
26.68
73
0.685157
6a71578783e201770a04b2ae33c1a2fb63572e02
257
asm
Assembly
libsrc/stdio/abc80/getk.asm
andydansby/z88dk-mk2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
1
2020-09-15T08:35:49.000Z
2020-09-15T08:35:49.000Z
libsrc/stdio/abc80/getk.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
libsrc/stdio/abc80/getk.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
; ; ABC80 Routines ; ; getk() Read key status ; ; Maj 2000 - Stefano Bodrato ; ; ; $Id: getk.asm,v 1.2 2001/04/13 14:13:59 stefano Exp $ ; XLIB getk .getk in a,(56) bit 7,a jr z,nokey sub 128 jr keyread .nokey xor a .keyread ld l,a ld h,0 ret
9.178571
55
0.618677
9327cf3940e4c56d86db3ad2fe6546c19352230c
582
asm
Assembly
programs/oeis/132/A132226.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/132/A132226.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/132/A132226.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A132226: Placement sequence for the dense normalized fractal sequence A132224. ; 1,2,3,2,5,4,3,2,9,8,7,6,5,4,3,2,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,33,32,31,30,29,28,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,65,64,63,62,61,60,59,58,57,56,55,54,53,52,51,50,49,48,47,46,45,44,43,42,41,40,39,38,37,36,35,34,33,32,31,30 seq $0,261693 ; Irregular triangle read by rows in which row n lists the positive odd numbers in decreasing order starting with 2^n - 1. T(0, 1) = 0 and T(n, k) for n >= 1, 1 <= k <= 2^(n-1). mov $1,3 add $1,$0 div $1,2 mov $0,$1
64.666667
269
0.654639
e315ad557e5ca0c84ea32102f0c4b7ba69e1ea4f
350
asm
Assembly
iod/con2/q40ql/initb.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
iod/con2/q40ql/initb.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
iod/con2/q40ql/initb.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; Q40 QL Mode initialise Display  1992 Tony Tebby QJUMP section init xdef cn_initb xdef cn_crcol xdef cn.inkcl include 'dev8_keys_q40' section con section init ;+++ ; Set console linkage ; ; d1 s ; d2 s ; a0 s ; a1 s ; a3 c p console linkage ; a4 s ;--- cn_initb moveq #q40.d4,d1 jsr cn_disp_size jmp cn_disp_clear end
11.666667
63
0.671429
fa0b65e27a26a0cfaa805192134feb5286f90368
324
asm
Assembly
programs/oeis/292/A292552.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/292/A292552.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/292/A292552.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A292552: Nontotients of the form 10^k - 2. ; 98,998,9998,99998,999998,9999998,99999998,999999998,9999999998,99999999998,999999999998,9999999999998,99999999999998,999999999999998,9999999999999998,99999999999999998,999999999999999998,9999999999999999998,99999999999999999998 add $0,2 mov $1,10 pow $1,$0 sub $1,2 mov $0,$1
36
229
0.820988
6f50e650d1a97f2d6ca3a2b92ec735c74f62b963
692
asm
Assembly
oeis/289/A289215.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/289/A289215.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/289/A289215.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A289215: a(n) = n! * Laguerre(n,-9). ; Submitted by Jon Maiga ; 1,10,119,1626,24945,422994,7836255,157169826,3388099329,78031713690,1910451937671,49510386761130,1353167691897969,38878205830928226,1170930069982659375,36875214316479123954,1211549306913066598785,41445016025330141416746,1473442955416649975287959,54350190756958933044220410,2076896249428618145043626481,82104736168647334034493160050,3353535034771640767829405044479,141352199572043291790093182937666,6141703142640226374063462975979905,274799915319636193624587179234738874 add $0,1 mov $2,1 lpb $0 sub $0,1 add $2,$1 add $2,$1 mul $1,$0 add $1,$2 add $1,$2 add $1,$2 mul $2,$0 add $2,$1 lpe mov $0,$1 div $0,3
34.6
471
0.802023
3e4c5fcd1ccf82b85ae8e04112f5cd8edcfc6698
854
asm
Assembly
y2s2/csa/practicals/prac-4/p4-ex-3-1.asm
ouldevloper/university
4bb4a7e86912b46aa625900d2985b4d1e436cf4e
[ "MIT" ]
8
2019-06-22T14:29:51.000Z
2021-09-22T16:58:12.000Z
y2s2/csa/practicals/prac-4/p4-ex-3-1.asm
ouldevloper/university
4bb4a7e86912b46aa625900d2985b4d1e436cf4e
[ "MIT" ]
1
2020-06-30T06:38:00.000Z
2020-07-08T06:37:57.000Z
y2s2/csa/practicals/prac-4/p4-ex-3-1.asm
ouldevloper/university
4bb4a7e86912b46aa625900d2985b4d1e436cf4e
[ "MIT" ]
9
2020-04-04T12:59:50.000Z
2022-03-27T22:44:58.000Z
; Ex 2, allow user to enter 2 digit, diplay product ; Note: prod must less than 10 .MODEL SMALL .STACK 100 .DATA txt1 DB "Enter 1st digit: $" txt2 DB "Enter 2nd digit: $" NL DB 13, 10, "$" .CODE MAIN PROC MOV AX,@DATA MOV DS,AX ; Accept input MOV AH, 09H LEA DX, txt1 INT 21H MOV AH, 01H INT 21H ; Store in BL SUB AL, "0" MOV BL, AL ; Newline MOV AH, 09H LEA DX, NL INT 21H ; Accept input MOV AH, 09H LEA DX, txt2 INT 21H MOV AH, 01H INT 21H SUB AL, "0" ; Multiply MUL BL MOV BL, AL ; Display ; Newline MOV AH, 09H LEA DX, NL INT 21H ADD BL, "0" MOV DL, BL MOV AH, 02H INT 21H MOV AX,4C00H INT 21H MAIN ENDP END MAIN
13.138462
51
0.492974
bbad54463cc6a06ed67e787723853a4683e28d8c
463
asm
Assembly
oeis/339/A339411.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/339/A339411.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/339/A339411.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A339411: Product of partial sums of odd squares. ; Submitted by Jon Maiga ; 1,1,10,350,29400,4851000,1387386000,631260630000,429257228400000,415950254319600000,553213838245068000000,979741707532015428000000,2253405927323635484400000000,6591212337421633791870000000000,24084289880938649875492980000000000,108258883014819231190340945100000000000 sub $0,1 mov $2,5 lpb $0 mov $1,$0 sub $0,1 mul $1,2 add $1,3 bin $1,3 mul $2,$1 lpe mov $0,$2 div $0,5
27.235294
269
0.792657
799e41f75b0ab020ce365799800d66bb138b30e4
548
asm
Assembly
programs/oeis/001/A001333.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/001/A001333.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/001/A001333.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A001333: Numerators of continued fraction convergents to sqrt(2). ; 1,1,3,7,17,41,99,239,577,1393,3363,8119,19601,47321,114243,275807,665857,1607521,3880899,9369319,22619537,54608393,131836323,318281039,768398401,1855077841,4478554083,10812186007,26102926097,63018038201,152139002499,367296043199,886731088897,2140758220993,5168247530883,12477253282759,30122754096401,72722761475561,175568277047523,423859315570607,1023286908188737,2470433131948081,5964153172084899 mov $1,1 lpb $0 sub $0,1 mov $2,$1 add $3,$1 mov $1,$3 add $3,$2 lpe
45.666667
399
0.813869
a0e58493e3f3cdc387aa382a70041c3be781ed8c
897
asm
Assembly
oeis/086/A086616.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/086/A086616.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/086/A086616.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A086616: Partial sums of the large Schroeder numbers (A006318). ; Submitted by Jon Maiga ; 1,3,9,31,121,515,2321,10879,52465,258563,1296281,6589727,33887465,175966211,921353249,4858956287,25786112993,137604139011,737922992937,3974647310111,21493266631001,116642921832963,635074797251889,3467998148181631,18989465797056721,104239408386028035,573525556257865401,3162284447218503199,17470690556316346825,96698722376309481475,536141504991923843137,2977404514238099695615,16559690128452002885569,92232235466248463785987,514390763273169713469001,2872435798269986809987615 mov $4,$0 mov $6,$0 add $6,1 lpb $6 mov $0,$4 sub $6,1 sub $0,$6 mov $1,1 mov $2,1 mov $3,$0 lpb $3 mul $1,$0 mul $1,2 add $3,1 mul $2,$3 sub $3,1 mul $2,$3 add $1,$2 sub $3,1 max $3,1 add $0,$3 lpe mul $1,$0 div $1,$2 mov $0,$1 add $0,1 add $5,$0 lpe mov $0,$5
26.382353
476
0.722408
ce2ff9d3776111cbabacb45476207a495e1d7e88
386
asm
Assembly
Engine Hacks/FE8-Item Range Fix/Weapon Attack.asm
sme23/Christmas2
f3f3daeda1afe2b78bfed38cbf60d8bc17ca9f79
[ "CC0-1.0" ]
3
2020-06-15T14:22:38.000Z
2020-06-28T19:44:52.000Z
Wizardry/Necessary/ItemRangeFix/RangeDisplay/Weapon_Attack.asm
sme23/WhatHeck
746a2be83358aaa4e855182176b47c4808f2587a
[ "CC0-1.0" ]
null
null
null
Wizardry/Necessary/ItemRangeFix/RangeDisplay/Weapon_Attack.asm
sme23/WhatHeck
746a2be83358aaa4e855182176b47c4808f2587a
[ "CC0-1.0" ]
null
null
null
.thumb .org 0x0 @r4 has min nibble, r3 = r2 = max nibble push {r14} lsl r1,r4,#0x4 orr r1,r2 cmp r1,#0xFF bne NotTotal mov r4,#0x1 mov r2,r1 b GoBack NotTotal: cmp r2,#0x0 bne GoBack ldr r0,CurrentCharPtr ldr r0,[r0] ldr r3,GetMagOver2 bl goto_r3 mov r2,r0 GoBack: pop {r0} bx r0 goto_r3: bx r3 .align CurrentCharPtr: .long 0x03004E50 GetMagOver2: .long 0x08018A1C+1
12.0625
40
0.704663
35a8b99f4cd7c0ff7d6cd7b6a175f0ee1582042f
266
asm
Assembly
libsrc/_DEVELOPMENT/arch/zx/display/c/sccz80/zx_saddrpdown.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/zx/display/c/sccz80/zx_saddrpdown.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/zx/display/c/sccz80/zx_saddrpdown.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void *zx_saddrpdown(void *saddr) SECTION code_clib SECTION code_arch PUBLIC zx_saddrpdown EXTERN asm_zx_saddrpdown defc zx_saddrpdown = asm_zx_saddrpdown ; SDCC bridge for Classic IF __CLASSIC PUBLIC _zx_saddrpdown defc _zx_saddrpdown = zx_saddrpdown ENDIF
14
38
0.830827
47d08951fd6d8baf17db0a8bbe2b3dd91a367ffb
7,085
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1147.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_1147.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_1147.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 %r15 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x1908b, %rax nop nop sub $24108, %r15 mov (%rax), %rcx sub %r10, %r10 lea addresses_normal_ht+0x2c8b, %rdi nop nop nop and %rax, %rax mov (%rdi), %r15w nop nop nop nop nop xor %rdi, %rdi lea addresses_A_ht+0x7b8b, %rdi nop nop nop nop nop add %rbp, %rbp movb $0x61, (%rdi) nop nop nop cmp $22454, %r10 lea addresses_WT_ht+0x1e46d, %rbp nop and $6392, %r12 movl $0x61626364, (%rbp) nop nop nop nop and $37984, %rdi lea addresses_normal_ht+0x10e8b, %r15 cmp $10915, %rdi mov (%r15), %r12 nop nop nop nop xor $54647, %rcx lea addresses_A_ht+0x1954b, %rbp nop nop nop nop nop add $56686, %r10 movl $0x61626364, (%rbp) nop nop nop nop xor %rcx, %rcx lea addresses_normal_ht+0x14c8b, %rax clflush (%rax) nop nop nop nop and $62248, %rbp movw $0x6162, (%rax) nop sub $58549, %rbp lea addresses_WC_ht+0x16cdb, %r12 clflush (%r12) nop nop nop nop nop sub $7195, %r10 mov (%r12), %ebp and %r12, %r12 lea addresses_A_ht+0x14e0b, %rsi lea addresses_A_ht+0xc183, %rdi nop nop nop nop add %rbp, %rbp mov $49, %rcx rep movsq nop sub $47248, %r12 lea addresses_WT_ht+0x630b, %rdi nop nop nop nop sub $24626, %rbp movb $0x61, (%rdi) nop nop nop and $62372, %rsi pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r15 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r15 push %r8 push %rax push %rbx push %rcx push %rdi // Store lea addresses_D+0x3c2b, %r15 sub %rcx, %rcx mov $0x5152535455565758, %r12 movq %r12, (%r15) and $36459, %r12 // Load lea addresses_WC+0x12693, %r8 sub $65300, %rdi movups (%r8), %xmm2 vpextrq $0, %xmm2, %rax nop nop nop nop nop sub %r8, %r8 // Store lea addresses_US+0x186cf, %rcx clflush (%rcx) nop nop xor %r12, %r12 mov $0x5152535455565758, %rax movq %rax, (%rcx) nop nop nop nop nop xor $26051, %r8 // Faulty Load lea addresses_PSE+0x348b, %r12 nop cmp %rax, %rax mov (%r12), %rbx lea oracles, %rax and $0xff, %rbx shlq $12, %rbx mov (%rax,%rbx,1), %rbx pop %rdi pop %rcx pop %rbx pop %rax pop %r8 pop %r15 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': True, 'same': False, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_D', 'AVXalign': False, 'size': 8}} {'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_WC', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_US', 'AVXalign': False, 'size': 8}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_A_ht', 'AVXalign': True, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 1, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4}} {'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2}} {'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 5, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 4, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1}} {'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 */
34.0625
2,999
0.653211
4ab73fb2d159a405235acd30d00afeff06408d69
1,283
asm
Assembly
libsrc/_DEVELOPMENT/EXAMPLES/sms/speechbubbles/font_8x8_bubble.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/EXAMPLES/sms/speechbubbles/font_8x8_bubble.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/EXAMPLES/sms/speechbubbles/font_8x8_bubble.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION rodata_user PUBLIC _font_8x8_bubble _font_8x8_bubble: ; A defb 0, 0, 0, 0, 0, 0, 0, 0 ; B - top left defb %00000000 defb %00000111 defb %00001000 defb %00010000 defb %00010000 defb %00010000 defb %00010000 defb %00010000 ; C - left or right side defb %00010000 defb %00010000 defb %00010000 defb %00010000 defb %00010000 defb %00010000 defb %00010000 defb %00010000 ; D - bottom left defb %00010000 defb %00010000 defb %00010000 defb %00010000 defb %00010000 defb %00100000 defb %01001111 defb %11110000 ; E - top right defb %00000000 defb %11000000 defb %00100000 defb %00010000 defb %00010000 defb %00010000 defb %00010000 defb %00010000 ; F - bottom right defb %00010000 defb %00010000 defb %00010000 defb %00010000 defb %00010000 defb %00100000 defb %11000000 defb %00000000 ; G - top defb %00000000 defb %11111111 defb %00000000 defb %00000000 defb %00000000 defb %00000000 defb %00000000 defb %00000000 ; H - bottom defb %00000000 defb %00000000 defb %00000000 defb %00000000 defb %00000000 defb %00000000 defb %11111111 defb %00000000
14.747126
28
0.629774
7609fbeaa03f6ade96237c9e1b0121f06378be39
6,617
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_9616_1742.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_9616_1742.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_9616_1742.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r8 push %rax push %rcx push %rdi push %rsi lea addresses_WC_ht+0xff64, %rsi lea addresses_D_ht+0x18954, %rdi nop cmp %r15, %r15 mov $68, %rcx rep movsq nop nop cmp $51803, %rsi lea addresses_WC_ht+0x47b4, %r13 add $62693, %rdi mov $0x6162636465666768, %rax movq %rax, (%r13) nop nop cmp %rax, %rax lea addresses_WT_ht+0x15634, %r15 and %r8, %r8 movw $0x6162, (%r15) nop nop nop nop cmp %r15, %r15 lea addresses_D_ht+0x18b3c, %rcx nop nop nop nop add %r8, %r8 movl $0x61626364, (%rcx) nop add %r15, %r15 lea addresses_WC_ht+0x18a34, %rcx nop nop and %rdi, %rdi mov $0x6162636465666768, %r13 movq %r13, %xmm6 movups %xmm6, (%rcx) cmp %rsi, %rsi lea addresses_WC_ht+0xed34, %rsi lea addresses_UC_ht+0x7104, %rdi nop nop nop nop nop dec %r15 mov $76, %rcx rep movsb nop nop inc %rsi lea addresses_normal_ht+0x3734, %rcx nop and $49658, %r13 movb (%rcx), %r8b nop nop nop xor %rdi, %rdi lea addresses_WT_ht+0x16b, %r15 nop nop nop cmp %r13, %r13 movb (%r15), %al nop nop nop xor $30535, %r8 lea addresses_A_ht+0x8eb4, %rsi lea addresses_WT_ht+0x8a34, %rdi clflush (%rdi) nop nop cmp $5387, %r8 mov $43, %rcx rep movsl inc %rcx lea addresses_WC_ht+0xd634, %rax nop nop nop sub $64097, %r13 movl $0x61626364, (%rax) sub %r15, %r15 pop %rsi pop %rdi pop %rcx pop %rax pop %r8 pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r13 push %r15 push %r9 push %rcx push %rdi push %rdx push %rsi // Store lea addresses_D+0x1bd60, %r15 clflush (%r15) nop nop nop nop dec %rdi mov $0x5152535455565758, %rdx movq %rdx, (%r15) nop nop nop nop add %r15, %r15 // Faulty Load lea addresses_A+0xf234, %rcx nop sub %rsi, %rsi mov (%rcx), %r15 lea oracles, %r13 and $0xff, %r15 shlq $12, %r15 mov (%r13,%r15,1), %r15 pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r15 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': True}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'00': 9616} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
38.47093
2,999
0.656491
7b2344b1aa9a89f29282bc74efa92324081e7ccc
682
asm
Assembly
oeis/241/A241478.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/241/A241478.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/241/A241478.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A241478: a(n) = 4^n*(n/4 + binomial(n-1/2, -1/2)). ; Submitted by Jamie Morken(s4) ; 1,3,14,68,326,1532,7068,32104,143942,638444,2806196,12239768,53035804,228504408,979640696,4181649360,17780949574,75348050252,318312780612,1341015321784,5635404667700,23628002057736,98861122208008,412853709749168,1721097463947036,7163285024204152,29769316110856328,123544129364651504,512051848866255992,2119737493599451184,8765175866116213744,36205994996067517344,149406576730619003462,615961982866431469068,2537210235499739596516,10442362959094011750392,42943810886103643702468 mov $1,$0 add $1,$0 mov $2,$0 mov $0,4 pow $0,$2 div $0,2 bin $1,$2 mul $1,2 mul $2,$0 add $1,$2 mov $0,$1 div $0,2
40.117647
479
0.807918
c8f6fa81cc324545504cbc0218edbe322e962790
90
asm
Assembly
lab15/cases/character.asm
Brant-Skywalker/ZJUI-ECE-120-SP21
b8d444620f4a57766ac3f1346d7ec4608b35adbe
[ "MIT" ]
null
null
null
lab15/cases/character.asm
Brant-Skywalker/ZJUI-ECE-120-SP21
b8d444620f4a57766ac3f1346d7ec4608b35adbe
[ "MIT" ]
null
null
null
lab15/cases/character.asm
Brant-Skywalker/ZJUI-ECE-120-SP21
b8d444620f4a57766ac3f1346d7ec4608b35adbe
[ "MIT" ]
null
null
null
; sample test file for lab 14 .ORIG x5000 .FILL x20 .FILL x41 .STRINGZ "E" .END
8.181818
29
0.622222
4832da0e9ad73a5d2b56b4d2137c239629898b27
458
nasm
Assembly
Projetos/F-Assembly/src/nasm/div.nasm
brunoartc/GladOS
ba8ccbb6e0e46dbe5f93cb6533d8956cd7ffffae
[ "Unlicense" ]
null
null
null
Projetos/F-Assembly/src/nasm/div.nasm
brunoartc/GladOS
ba8ccbb6e0e46dbe5f93cb6533d8956cd7ffffae
[ "Unlicense" ]
40
2018-03-12T00:40:25.000Z
2020-02-20T21:58:52.000Z
Projetos/F-Assembly/src/nasm/div.nasm
brunoartc/Z01-GladOS
ba8ccbb6e0e46dbe5f93cb6533d8956cd7ffffae
[ "Unlicense" ]
1
2018-03-02T13:32:33.000Z
2018-03-02T13:32:33.000Z
; Arquivo: Div.nasm ; Curso: Elementos de Sistemas ; Criado por: Luciano Soares ; Data: 27/03/2017 ; Divide R0 por R1 e armazena o resultado em R2. ; (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.) ; divisao para numeros inteiros positivos leaw $0, %A movw (%A), %D leaw $1, %A DIVS: ; Label para saltar leaw $1, %A subw %D,(%A),%D incw %S leaw $DIVS, %A jg %D nop leaw $2,%A movw %S, (%A)
20.818182
66
0.578603
6228851d07cb49500165781cec77bd1ed77d8061
405
asm
Assembly
data/mapObjects/route11gateupstairs.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
16
2018-08-28T21:47:01.000Z
2022-02-20T20:29:59.000Z
data/mapObjects/route11gateupstairs.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
5
2019-04-03T19:53:11.000Z
2022-03-11T22:49:34.000Z
data/mapObjects/route11gateupstairs.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
2
2019-12-09T19:46:02.000Z
2020-12-05T21:36:30.000Z
Route11GateUpstairsObject: db $a ; border block db $1 ; warps db $7, $7, $4, ROUTE_11_GATE_1F db $2 ; signs db $2, $1, $3 ; Route11GateUpstairsText3 db $2, $6, $4 ; Route11GateUpstairsText4 db $2 ; objects object SPRITE_BUG_CATCHER, $4, $2, WALK, $2, $1 ; person object SPRITE_OAK_AIDE, $2, $6, STAY, NONE, $2 ; person ; warp-to EVENT_DISP ROUTE_11_GATE_2F_WIDTH, $7, $7 ; ROUTE_11_GATE_1F
23.823529
61
0.681481
c962229ce31c896f959116cdd5cdaf5ff62a7626
6,021
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1316.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_1316.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_1316.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0xd3fe, %rsi lea addresses_normal_ht+0x13a6e, %rdi nop nop nop add %rdx, %rdx mov $90, %rcx rep movsb nop sub $10105, %r11 lea addresses_WT_ht+0x160ae, %rcx nop nop nop nop cmp $22671, %r15 mov (%rcx), %si nop nop nop nop dec %r11 lea addresses_UC_ht+0xc26e, %rsi lea addresses_WC_ht+0x3dee, %rdi nop and %r15, %r15 mov $8, %rcx rep movsq nop nop nop add %r15, %r15 lea addresses_A_ht+0x9ee, %rcx nop xor $3856, %r15 mov $0x6162636465666768, %rdi movq %rdi, %xmm4 and $0xffffffffffffffc0, %rcx vmovaps %ymm4, (%rcx) nop nop sub %rcx, %rcx lea addresses_A_ht+0x1efb6, %r15 nop nop nop nop sub %rax, %rax mov $0x6162636465666768, %rdx movq %rdx, %xmm2 vmovups %ymm2, (%r15) and $19149, %r15 lea addresses_D_ht+0xe9ee, %rdi add $7136, %rdx vmovups (%rdi), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $1, %xmm6, %rcx nop nop nop cmp $42094, %rdx lea addresses_normal_ht+0xb85b, %r15 xor %rax, %rax mov (%r15), %esi nop nop nop nop xor $40392, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r15 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %rbp push %rbx push %rdi push %rsi // Store lea addresses_D+0x85ee, %r10 nop nop nop xor %rdi, %rdi movw $0x5152, (%r10) nop nop nop nop dec %r10 // Faulty Load lea addresses_D+0x85ee, %rdi nop nop dec %rbp vmovups (%rdi), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $0, %xmm5, %r13 lea oracles, %r10 and $0xff, %r13 shlq $12, %r13 mov (%r10,%r13,1), %r13 pop %rsi pop %rdi pop %rbx pop %rbp pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_UC_ht'}, 'dst': {'same': True, 'congruent': 6, 'type': 'addresses_normal_ht'}} {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 10}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 3}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 10}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}} {'36': 21829} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
40.14
2,999
0.659691
1ee781228bf4297461d0e226900790e3de3ba279
447
asm
Assembly
libsrc/math/z88math/dne.asm
Toysoft/z88dk
f930bef9ac4feeec91a07303b79ddd9071131a24
[ "ClArtistic" ]
8
2017-01-18T12:02:17.000Z
2021-06-12T09:40:28.000Z
libsrc/math/z88math/dne.asm
Toysoft/z88dk
f930bef9ac4feeec91a07303b79ddd9071131a24
[ "ClArtistic" ]
1
2017-03-06T07:41:56.000Z
2017-03-06T07:41:56.000Z
libsrc/math/z88math/dne.asm
Toysoft/z88dk
f930bef9ac4feeec91a07303b79ddd9071131a24
[ "ClArtistic" ]
3
2017-03-07T03:19:40.000Z
2021-09-15T17:59:19.000Z
; ; Z88dk Z88 Maths Library ; ; ; $Id: dne.asm,v 1.4 2016-06-22 19:55:06 dom Exp $ SECTION code_fp PUBLIC dne EXTERN fsetup EXTERN stkequcmp INCLUDE "fpp.def" ; TOS != FA? .dne call fsetup fpp(FP_EQ) ;Invert the result, not particularly elegant, but it works! ex de,hl ld hl,0 ld a,e or d jp nz,stkequcmp inc hl jp stkequcmp
15.964286
59
0.52349
d97cc0e28511dc3f69ef8155441c3782a67a35be
515
asm
Assembly
programs/oeis/063/A063245.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/063/A063245.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/063/A063245.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A063245: Dimension of the space of weight 2n cuspidal newforms for Gamma_0( 98 ). ; 3,10,18,23,31,38,44,51,59,64,72,79,85,92,100,105,113,120,126,133,141,146,154,161,167,174,182,187,195,202,208,215,223,228,236,243,249,256,264,269,277,284,290,297,305,310,318,325,331,338 mov $1,$0 mov $2,$0 mov $5,$0 mul $0,2 mov $3,3 mov $4,$0 lpb $2,1 lpb $4,1 add $1,1 add $2,1 trn $4,$3 lpe lpb $0,1 trn $0,4 sub $1,1 add $1,$2 trn $2,$1 lpe lpe lpb $5,1 add $1,4 sub $5,1 lpe add $1,3
18.392857
186
0.603883
e904dcedf0659e6eb29a6782f71f4deaeeeffde0
8,864
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_1960.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_1960.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_1960.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r15 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0xe197, %r13 nop nop nop nop nop cmp $64471, %r12 movups (%r13), %xmm3 vpextrq $1, %xmm3, %rbx nop nop nop nop nop cmp %r15, %r15 lea addresses_D_ht+0x4557, %rcx dec %r10 mov (%rcx), %bp nop nop nop nop sub %rbp, %rbp lea addresses_normal_ht+0x18e37, %rcx nop nop dec %rbx movw $0x6162, (%rcx) nop nop nop nop sub %rbx, %rbx lea addresses_UC_ht+0x5a57, %rsi lea addresses_A_ht+0x11eaf, %rdi nop nop xor $9078, %r15 mov $70, %rcx rep movsb nop nop nop nop nop add $18124, %r13 lea addresses_WC_ht+0x73c7, %rdi nop nop nop nop nop xor $28162, %rbx movl $0x61626364, (%rdi) nop nop nop sub %r10, %r10 lea addresses_D_ht+0x8d57, %rcx clflush (%rcx) nop nop nop nop cmp %rbp, %rbp movb (%rcx), %r15b nop nop nop nop nop sub %r15, %r15 lea addresses_UC_ht+0x6157, %rsi lea addresses_D_ht+0x82c, %rdi nop nop nop nop cmp $31915, %r12 mov $0, %rcx rep movsl nop xor $22431, %r12 lea addresses_D_ht+0x16357, %rsi lea addresses_UC_ht+0x11957, %rdi clflush (%rsi) nop nop nop nop and $40894, %rbx mov $32, %rcx rep movsq nop nop nop dec %r10 lea addresses_D_ht+0xd97, %rsi lea addresses_UC_ht+0x66d7, %rdi nop nop nop dec %r12 mov $40, %rcx rep movsl nop nop nop cmp $227, %rbp lea addresses_D_ht+0x59eb, %r10 nop nop nop nop nop sub $34660, %r13 mov (%r10), %bx nop nop nop and $55897, %rbx lea addresses_A_ht+0xeb57, %rsi lea addresses_normal_ht+0x2b17, %rdi clflush (%rsi) nop nop nop xor $6939, %r15 mov $37, %rcx rep movsw sub %rsi, %rsi lea addresses_WT_ht+0x9557, %r10 nop sub $30764, %r12 mov $0x6162636465666768, %rcx movq %rcx, %xmm7 vmovups %ymm7, (%r10) nop nop sub $45274, %r15 lea addresses_WT_ht+0xecaa, %rdi nop nop and $24778, %rbp movb (%rdi), %r15b nop nop nop nop nop cmp $20510, %r15 lea addresses_UC_ht+0xb57, %r13 dec %r10 mov (%r13), %rbx nop nop nop cmp $19324, %rsi lea addresses_UC_ht+0x11557, %r10 nop nop nop nop inc %rbx movups (%r10), %xmm7 vpextrq $1, %xmm7, %r15 nop nop nop nop and $13677, %rbp pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r15 pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r15 push %r8 push %rax push %rbp push %rcx // Store lea addresses_WC+0x1803b, %rcx nop nop nop xor %rbp, %rbp movl $0x51525354, (%rcx) nop add %r15, %r15 // Store lea addresses_D+0xd1b7, %rbp nop nop nop add $23918, %r11 movb $0x51, (%rbp) nop nop nop cmp %r15, %r15 // Store mov $0x2740a70000000657, %rcx xor $25572, %r11 mov $0x5152535455565758, %rbp movq %rbp, %xmm3 vmovaps %ymm3, (%rcx) nop nop nop nop nop dec %r8 // Store lea addresses_PSE+0xdd7, %rbp nop nop nop sub $30850, %rax movl $0x51525354, (%rbp) nop nop nop sub $48985, %r8 // Faulty Load lea addresses_UC+0x1cd57, %rax nop nop nop and %r8, %r8 vmovaps (%rax), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $0, %xmm6, %rbp lea oracles, %r8 and $0xff, %rbp shlq $12, %rbp mov (%r8,%rbp,1), %rbp pop %rcx pop %rbp pop %rax pop %r8 pop %r15 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_UC', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WC', 'same': False, 'size': 4, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_D', 'same': False, 'size': 1, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_NC', 'same': False, 'size': 32, 'congruent': 6, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'dst': {'type': 'addresses_PSE', 'same': False, 'size': 4, 'congruent': 7, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_UC', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 16, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 2, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_normal_ht', 'same': True, 'size': 2, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 4, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D_ht', 'same': True, 'size': 1, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WT_ht', 'same': True, 'size': 1, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 8, 'congruent': 8, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 16, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
29.350993
2,999
0.654445
7bbd38bcfff851dcc60fc53313c7ab6636301ab9
611
asm
Assembly
oeis/053/A053643.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/053/A053643.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/053/A053643.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A053643: a(n) = ceiling(binomial(n,6)/n). ; 0,0,0,0,0,1,1,4,10,21,42,77,132,215,334,501,728,1032,1428,1938,2584,3392,4389,5609,7084,8855,10964,13455,16380,19793,23751,28319,33563,39556,46376,54106,62832,72650,83657,95960,109668,124900,141778,160433,181002,203627,228459,255657,285384,317814,353127,391510,433160,478281,527085,579794,636636,697851,763686,834398,910252,991525,1078501,1171475,1270752,1376648,1489488,1609608,1737355,1873086,2017169,2169985,2331924,2503389,2684794,2876565,3079140,3292970,3518515,3756253,4006670,4270266,4547556 mov $2,$0 mov $0,4 bin $2,5 add $2,5 div $2,6 add $0,$2 sub $0,4
55.545455
500
0.782324
cfbc91c3f467fd483c4a3a69026d46dcf0dd5a66
5,223
asm
Assembly
tp_01_09/include/utils_64.asm
mjFer/TDIII-UTN-FRBA-TPS-2014
1b57b52fa8233c78297b0e5471d1c82e4c85451b
[ "MIT" ]
2
2020-04-01T14:45:17.000Z
2020-04-01T14:45:23.000Z
tp_01_10/include/utils_64.asm
mjFer/TDIII-UTN-FRBA-TPS-2014
1b57b52fa8233c78297b0e5471d1c82e4c85451b
[ "MIT" ]
null
null
null
tp_01_10/include/utils_64.asm
mjFer/TDIII-UTN-FRBA-TPS-2014
1b57b52fa8233c78297b0e5471d1c82e4c85451b
[ "MIT" ]
null
null
null
;*********************************************************** ; UTN-2014-UTILS ;*********************************************************** ;*********************************************************** ; Author : Fernandez Marcelo Joaquin ; Date : 23th May 2014 ;*********************************************************** [BITS 64] %define VID_MEM_64 0x0 ;ahora el video esta direccionado a la pagina (0x000b8000) ;----------------------------------------------------------- ; Invierte los colores de la pantalla ; Recibe: Nada ; Devuelve: Nada ;------------------------------------------------------------ RutinaInversionPantalla_64: ; xchg bx, bx push rcx mov esi, VID_MEM_64 ;Memoria de video esi es un puntero a datos (ds) mov ecx,2000 mov al,[esi] lazo_1: mov edi,[esi +1] xor edi,01110111b mov [esi +1],edi add esi,2 loop lazo_1 pop rcx ret ;----------------------------------------------------------- ; Print en Pantalla de un string ; Recibe: (char string_ptr, char columna, char fila, char color); ; Devuelve: Nada ; void print (char string_ptr, char columna, char fila, char color); ; edi (primer argumento) char string_ptr ; esi (segundo argumento) char columna ; edx (tercer argumento) char fila ; ECX (cuarto arguemto) char color ;------------------------------------------------------------ Print_64: ; xchg bx,bx push rbx mov eax,edx ;muevo a al el contenido de esi o sea la fila mov ebx,160 mul bl ;multiplico por el largo de 80caracteres de 2 bytes (uso bl por que si uso bx usa ax y deposita parte alta en dx) mov edx,eax ;resguardo el calculo mov eax,esi ;muevo el numero de columna mov ebx,2 mul bl ;multiplico por 2 para el numero de bytes por char TODO:ACA ESTA FALLANDO ME ESTA MODIFICANDO DX add eax,edx ;le sumo el contenido de r9 add eax, VID_MEM_64 mov esi,eax ;dejo en esi la posicion a partir de la cual arranco a dibujar _lazo_1: mov al,[ds:edi] mov [ds:esi],al inc esi mov [ds:esi],ecx inc esi inc edi cmp byte [ds:edi], 0 jne _lazo_1 pop rbx ret ;----------------------------------------------------------- ; Limpia la pantalla con un color definido ; Recibe: (char color); ; Devuelve: Nada ; void print ( char color); ; edi (primer argumento) char color ;------------------------------------------------------------ clrScr_64: ; xchg bx, bx push rcx push rsi mov esi, VID_MEM_64 ;apuntando a 0 ahora apunta a la zona de video mov ecx,2000 llazo_1: mov byte [esi],0x00 ;pongo caracter null add esi,2 loop llazo_1 pop rsi pop rcx ret ;-------------------------------------------------------------------------------- ;| Título: Generador de numeros aleatorios | ;| Versión: 1.0 Fecha: 16/07/2009 | ;| Autor: D.GARCIA Modelo: IA-64 (64 bits) | ;| ------------------------------------------------------------------------| ;| Descripción: | ;| Generador de numeros aleatorios de 64 bits | ;| X(n+1) = A * X(n) + C | ;| ------------------------------------------------------------------------| ;| Recibe: | ;| RAX = Semilla o cero para default | ;| Retorna: | ;| RAX = Numero pseudoaleatorio | ;| ------------------------------------------------------------------------| ;| Revisiones: | ;| 1.0 | 15/02/2010 | D.GARCIA | Original | ;-------------------------------------------------------------------------------- Rand: push rbx cmp rax, 0 ; Si es cero uso la semilla preestablecida jnz DefaultSeed ; Si no es cero lo uso como semilla mov rax, [X0_RND] ; Cargo semilla preestablecida DefaultSeed: mov rbx, [A_RND] mul rbx add rax, [C_RND] mov [X0_RND], rax pop rbx ret ALIGN 8 X0_RND dq 2B17351BFB31357Eh ; Semilla A_RND dq 6EFF46AB66A98E9Ah ; Coeficiente A C_RND dq 3D717FCCDCF08F5Ah ; COeficiente C ;----------------------------------------------------------- ; canonisado de un numero (despues del bit 47 mantiene el ultimo bit hasta 64) ; Recibe: rax =numero; ; Devuelve: rax = numero canonisado ;------------------------------------------------------------ canonise: push rbx mov rbx,rax and qword rbx, 0x0000800000000000 ;enmascaro todo menos el bit47 cmp qword rbx, 0x0000800000000000 je canonise_seteo_a_uno and rax, 0x0000FFFFFFFFFFFF ;como el bit 47 era cero hago cero todo lo posterior jmp canonise_fin canonise_seteo_a_uno: or rax, 0xFFFF000000000000 ;como el bit 47 era uno hago uno todo lo posterior canonise_fin: pop rbx ret ;----------------------------------------------------------- ; canonisado de un numero (despues del bit 29 mantiene el ultimo bit hasta 64) ; Recibe: rax =numero; ; Devuelve: rax = numero canonisado ;------------------------------------------------------------ canonise1Mega: push rbx mov rbx,rax and qword rbx, 0x0000000040000000 ;enmascaro todo menos el bit47 cmp qword rbx, 0x0000000040000000 je canonise1Mega_seteo_a_uno and rax, 0x000000007FFFFFFF ;como el bit 47 era cero hago cero todo lo posterior jmp canonise1Mega_fin canonise1Mega_seteo_a_uno: or rax, 0xFFFFFFFF90000000 ;como el bit 47 era uno hago uno todo lo posterior canonise1Mega_fin: pop rbx ret
30.723529
123
0.531495
d560c5b185d5a30a65232772010d02d51205083b
233
asm
Assembly
libsrc/stdio/mtx/fgetc_cons.asm
andydansby/z88dk-mk2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
1
2020-09-15T08:35:49.000Z
2020-09-15T08:35:49.000Z
libsrc/stdio/mtx/fgetc_cons.asm
andydansby/z88dk-MK2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
null
null
null
libsrc/stdio/mtx/fgetc_cons.asm
andydansby/z88dk-MK2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
null
null
null
; ; Memotech MTX stdio ; ; getkey() Wait for keypress ; ; Stefano Bodrato - Aug. 2010 ; ; ; $Id: fgetc_cons.asm,v 1.1 2010/08/05 06:14:09 stefano Exp $ ; XLIB fgetc_cons .fgetc_cons call $79 jr z,fgetc_cons ld h,0 ld l,a ret
11.65
61
0.660944
a512531d1ae3cc68764ddf64ec64e25a11c1b0a0
110
asm
Assembly
data/mcp/asm/prog_09_02.asm
colinw7/CZ80
458e83ffdca23dcfc92e78de9b802219a85f059a
[ "MIT" ]
null
null
null
data/mcp/asm/prog_09_02.asm
colinw7/CZ80
458e83ffdca23dcfc92e78de9b802219a85f059a
[ "MIT" ]
null
null
null
data/mcp/asm/prog_09_02.asm
colinw7/CZ80
458e83ffdca23dcfc92e78de9b802219a85f059a
[ "MIT" ]
null
null
null
0D00 06 01 0D02 78 0D03 CD 00 0E 0D06 4F 0D07 04 0D08 C3 02 0D 0E00 57 0E01 CB 27 0E03 CB 27 0E05 82 0E06 C9
8.461538
13
0.727273
7281fb5c9585c40d824909e63de856a881e59386
3,513
asm
Assembly
Multiplication.asm
erg0dic/Sec_dict
b0ba213fa9b3ae78c3872da303d232b45a9e0c4a
[ "MIT" ]
null
null
null
Multiplication.asm
erg0dic/Sec_dict
b0ba213fa9b3ae78c3872da303d232b45a9e0c4a
[ "MIT" ]
null
null
null
Multiplication.asm
erg0dic/Sec_dict
b0ba213fa9b3ae78c3872da303d232b45a9e0c4a
[ "MIT" ]
null
null
null
#include p18f87k22.inc global Mul_temp_A, Mul_temp_C, Mul_temp_B, Mul_temp_D, Mul_temp_E global hex_to_dec extern LCD_Write_Hex, LCD_Clear_Screen acs0 udata_acs Mul_temp_1 res 1 ; reserve 1 byte for each variable Mul_temp Mul_temp_2 res 1 Mul_temp_3 res 1 Mul_temp_4 res 1 Mul_temp_5 res 1 Mul_temp_6 res 1 Mul_temp_A res 1 Mul_temp_B res 1 Mul_temp_C res 1 Mul_temp_D res 1 Mul_temp_E res 1 dec_1 res 1 dec_2 res 1 dec_3 res 1 dec_4 res 1 multiplication code mul_8x16 ; Multiply BA x W 16 bit by 8 bit ; Result is in temp 321 ;Have 8 bit number already in W register mulwf Mul_temp_A, 0 movff PRODL, Mul_temp_1 ;store least significant byte in temp register Mul_temp_1 movff PRODH, Mul_temp_2 mulwf Mul_temp_B, 0 ; assuming that w is unchanged movf PRODL, 0 addwfc Mul_temp_2, 1, 0 ;add bits and store middle significant byte in temp register Mul_temp_2 movlw 0x00 addwfc PRODH, 0, 0 ;add 0 and carry bit to most significant byte movwf Mul_temp_3 ;store most significant byte in temp register Mul_temp_3 ;from W to f reg return mul_16x16 ; Multiply BA x DC 16 bit by 16 bit ; Result is temp 3214 movf Mul_temp_C, 0 ;move least sig byte to W reg for 8x16 mul call mul_8x16 ;complete multiplication movff Mul_temp_1, Mul_temp_4 ;move straight to final address - doesn't need to be added movff Mul_temp_2, Mul_temp_5 movff Mul_temp_3, Mul_temp_6 movlw 0x00 movwf Mul_temp_1 movwf Mul_temp_2 movwf Mul_temp_3 movf Mul_temp_D, 0 ;move most sig byte into W reg for mul call mul_8x16 movf Mul_temp_5, 0 ;move Mul_temp_5 to W reg for addition addwfc Mul_temp_1, 1 ;add with appropriate num from other mul movf Mul_temp_6, 0 ;repeat prev addwfc Mul_temp_2, 1 movlw 0x00 ;move 0 to w reg addwfc Mul_temp_3, 1 ;add 0 with carry to most sig byte return mul_8x24 ; Multiply CBA x E 24 bit by 8 bit ; Result is in temp 4321 movf Mul_temp_E, 0 ; move least sig byte to W reg for 8x16 mul call mul_8x16 ;complete multiplication movf Mul_temp_E, 0 mulwf Mul_temp_C, 0 movf PRODL, 0 addwfc Mul_temp_3, 1 movff PRODH, Mul_temp_4 movlw 0x00 addwfc Mul_temp_4, 1 return hex_to_dec ; define a 16 x 16 bit input using temp_B and temp_A (BA) movlw 0x8A movwf Mul_temp_C movlw 0x41 movwf Mul_temp_D ; define DC the second 16 bit that is generic for the algorithm call mul_16x16 ; have result in order temp_3214 movff Mul_temp_3, dec_1 ; get most sig decimal (first output) ; movf dec_1, 0 ; call LCD_Write_Hex movff Mul_temp_2, Mul_temp_C movff Mul_temp_1, Mul_temp_B movff Mul_temp_4, Mul_temp_A movlw 0x0A ; second step of the algorithm movwf Mul_temp_E call mul_8x24 ; have result in order temp_4321 movff Mul_temp_4, dec_2 ; get most sig decimal (second output) movff Mul_temp_3, Mul_temp_C movff Mul_temp_2, Mul_temp_B movff Mul_temp_1, Mul_temp_A call mul_8x24 ; have result in order temp_4321 movff Mul_temp_4, dec_3 ; get most sig decimal (third output) movff Mul_temp_3, Mul_temp_C movff Mul_temp_2, Mul_temp_B movff Mul_temp_1, Mul_temp_A call mul_8x24 ; have result in order temp_4321 movff Mul_temp_4, dec_4 ; get most sig decimal (fourth output) swapf dec_1, 0 addwf dec_2, 1 swapf dec_3, 0 addwf dec_4, 1 ; call LCD_Clear_Screen return end
23.736486
99
0.715058
7623b03fe7a06d9b7112cdadc26caca8cf9d4aa3
266
asm
Assembly
programs/oeis/033/A033417.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/033/A033417.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/033/A033417.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A033417: a(n) = floor(97/n). ; 97,48,32,24,19,16,13,12,10,9,8,8,7,6,6,6,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 add $0,1 mov $1,97 div $1,$0 mov $0,$1
33.25
194
0.522556
a68b9f2b5545fe0ec0ebf152673f7077a0c586b0
4,329
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca.log_21829_1779.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca.log_21829_1779.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca.log_21829_1779.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 %rcx push %rdi push %rsi lea addresses_UC_ht+0x108cb, %r13 xor $33359, %r12 mov (%r13), %r10d nop nop add %r8, %r8 lea addresses_UC_ht+0x1d23, %rsi lea addresses_WC_ht+0x11ee3, %rdi nop nop nop nop nop cmp %r12, %r12 mov $97, %rcx rep movsq nop nop nop nop nop sub %r10, %r10 pop %rsi pop %rdi pop %rcx pop %r8 pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r8 push %rax push %rbx push %rdx // Faulty Load lea addresses_US+0xbae3, %rax nop nop nop nop dec %rbx mov (%rax), %r11w lea oracles, %rax and $0xff, %r11 shlq $12, %r11 mov (%rax,%r11,1), %r11 pop %rdx pop %rbx pop %rax pop %r8 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 2, 'NT': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 5, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_WC_ht'}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
54.1125
2,999
0.662509
22648cd7ed716bfe12e58b30a2e94902e93ab6bf
598
asm
Assembly
programs/oeis/080/A080855.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/080/A080855.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/080/A080855.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A080855: a(n) = (9*n^2 - 3*n + 2)/2. ; 1,4,16,37,67,106,154,211,277,352,436,529,631,742,862,991,1129,1276,1432,1597,1771,1954,2146,2347,2557,2776,3004,3241,3487,3742,4006,4279,4561,4852,5152,5461,5779,6106,6442,6787,7141,7504,7876,8257,8647,9046,9454,9871,10297,10732,11176,11629,12091,12562,13042,13531,14029,14536,15052,15577,16111,16654,17206,17767,18337,18916,19504,20101,20707,21322,21946,22579,23221,23872,24532,25201,25879,26566,27262,27967,28681,29404,30136,30877,31627,32386,33154,33931,34717,35512,36316,37129,37951,38782,39622,40471,41329,42196,43072,43957 mul $0,3 bin $0,2 add $0,1
85.428571
530
0.769231
dedb9e9e078b7c41bebf117169f89ae5c8262ee7
1,517
asm
Assembly
_build/dispatcher/jmp_ippsGFpECSetPointHashBackCompatible_aa97efb1.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
1
2021-10-04T10:21:54.000Z
2021-10-04T10:21:54.000Z
_build/dispatcher/jmp_ippsGFpECSetPointHashBackCompatible_aa97efb1.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
_build/dispatcher/jmp_ippsGFpECSetPointHashBackCompatible_aa97efb1.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
extern m7_ippsGFpECSetPointHashBackCompatible:function extern n8_ippsGFpECSetPointHashBackCompatible:function extern y8_ippsGFpECSetPointHashBackCompatible:function extern e9_ippsGFpECSetPointHashBackCompatible:function extern l9_ippsGFpECSetPointHashBackCompatible:function extern n0_ippsGFpECSetPointHashBackCompatible:function extern k0_ippsGFpECSetPointHashBackCompatible:function extern ippcpJumpIndexForMergedLibs extern ippcpSafeInit:function segment .data align 8 dq .Lin_ippsGFpECSetPointHashBackCompatible .Larraddr_ippsGFpECSetPointHashBackCompatible: dq m7_ippsGFpECSetPointHashBackCompatible dq n8_ippsGFpECSetPointHashBackCompatible dq y8_ippsGFpECSetPointHashBackCompatible dq e9_ippsGFpECSetPointHashBackCompatible dq l9_ippsGFpECSetPointHashBackCompatible dq n0_ippsGFpECSetPointHashBackCompatible dq k0_ippsGFpECSetPointHashBackCompatible segment .text global ippsGFpECSetPointHashBackCompatible:function (ippsGFpECSetPointHashBackCompatible.LEndippsGFpECSetPointHashBackCompatible - ippsGFpECSetPointHashBackCompatible) .Lin_ippsGFpECSetPointHashBackCompatible: db 0xf3, 0x0f, 0x1e, 0xfa call ippcpSafeInit wrt ..plt align 16 ippsGFpECSetPointHashBackCompatible: db 0xf3, 0x0f, 0x1e, 0xfa mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc] movsxd rax, dword [rax] lea r11, [rel .Larraddr_ippsGFpECSetPointHashBackCompatible] mov r11, qword [r11+rax*8] jmp r11 .LEndippsGFpECSetPointHashBackCompatible:
38.897436
167
0.854977
202d1c314f0e59bf6e0a87a80bac1991a2996799
35,348
asm
Assembly
Code/CustomControl/RATools/Src/Tools.asm
CherryDT/FbEditMOD
beb0eb22cae1b8f7203d55bd6b293d8ec88231ca
[ "Unlicense" ]
11
2016-12-03T16:35:42.000Z
2022-03-26T06:02:53.000Z
Code/CustomControl/RATools/Src/Tools.asm
CherryDT/FbEditMOD
beb0eb22cae1b8f7203d55bd6b293d8ec88231ca
[ "Unlicense" ]
1
2018-02-24T20:17:46.000Z
2018-03-02T08:57:40.000Z
Code/CustomControl/RATools/Src/Tools.asm
CherryDT/FbEditMOD
beb0eb22cae1b8f7203d55bd6b293d8ec88231ca
[ "Unlicense" ]
4
2018-10-19T01:14:55.000Z
2021-09-11T18:51:48.000Z
;ToolCldWndProc PROTO :DWORD,:DWORD,:DWORD,:DWORD .code Do_ToolFloat proc uses esi,lpTool:DWORD LOCAL tW:DWORD LOCAL tH:DWORD mov esi,lpTool mov eax,[esi].TOOL.dck.fr.right sub eax,[esi].TOOL.dck.fr.left mov tW,eax mov eax,[esi].TOOL.dck.fr.bottom sub eax,[esi].TOOL.dck.fr.top mov tH,eax invoke CreateWindowEx,WS_EX_TOOLWINDOW,addr szToolClass,[esi].TOOL.dck.Caption, WS_CAPTION or WS_SIZEBOX or WS_SYSMENU or WS_POPUP or WS_CLIPCHILDREN or WS_CLIPSIBLINGS, [esi].TOOL.dck.fr.left,[esi].TOOL.dck.fr.top,tW,tH,hWnd,0,hInstance,esi mov [esi].TOOL.hWin,eax ret Do_ToolFloat endp ToolDrawRect proc uses esi edi,lpRect:DWORD,nFun:DWORD,nInx:DWORD LOCAL ht:DWORD LOCAL wt:DWORD LOCAL rect:RECT invoke CopyRect,addr rect,lpRect lea esi,rect sub [esi].RECT.right,1 mov eax,[esi].RECT.right sub eax,[esi].RECT.left jns @f mov eax,[esi].RECT.right xchg eax,[esi].RECT.left mov [esi].RECT.right,eax sub eax,[esi].RECT.left dec [esi].RECT.left inc [esi].RECT.right inc eax @@: mov wt,eax sub [esi].RECT.bottom,1 mov eax,[esi].RECT.bottom sub eax,[esi].RECT.top jns @f mov eax,[esi].RECT.bottom xchg eax,[esi].RECT.top mov [esi].RECT.bottom,eax sub eax,[esi].RECT.top dec [esi].RECT.top inc [esi].RECT.bottom inc eax @@: mov ht,eax dec [esi].RECT.right dec [esi].RECT.bottom mov edi,nInx shl edi,4 add edi,offset hRect .if nFun==0 invoke CreateWindowEx,0,addr szStatic,0,WS_POPUP or SS_BLACKRECT,[esi].RECT.left,[esi].RECT.top,wt,2,hWnd,0,hInstance,0 mov [edi],eax invoke ShowWindow,eax,SW_SHOWNOACTIVATE invoke CreateWindowEx,0,addr szStatic,0,WS_POPUP or SS_BLACKRECT,[esi].RECT.right,[esi].RECT.top,2,ht,hWnd,0,hInstance,0 mov [edi+4],eax invoke ShowWindow,eax,SW_SHOWNOACTIVATE invoke CreateWindowEx,0,addr szStatic,0,WS_POPUP or SS_BLACKRECT,[esi].RECT.left,[esi].RECT.bottom,wt,2,hWnd,0,hInstance,0 mov [edi+8],eax invoke ShowWindow,eax,SW_SHOWNOACTIVATE invoke CreateWindowEx,0,addr szStatic,0,WS_POPUP or SS_BLACKRECT,[esi].RECT.left,[esi].RECT.top,2,ht,hWnd,0,hInstance,0 mov [edi+12],eax invoke ShowWindow,eax,SW_SHOWNOACTIVATE .elseif nFun==1 invoke MoveWindow,[edi],[esi].RECT.left,[esi].RECT.top,wt,3,TRUE invoke MoveWindow,[edi+4],[esi].RECT.right,[esi].RECT.top,3,ht,TRUE invoke MoveWindow,[edi+8],[esi].RECT.left,[esi].RECT.bottom,wt,3,TRUE invoke MoveWindow,[edi+12],[esi].RECT.left,[esi].RECT.top,3,ht,TRUE .elseif nFun==2 invoke DestroyWindow,[edi] mov dword ptr [edi],0 invoke DestroyWindow,[edi+4] mov dword ptr [edi+4],0 invoke DestroyWindow,[edi+8] mov dword ptr [edi+8],0 invoke DestroyWindow,[edi+12] mov dword ptr [edi+12],0 .endif ret ToolDrawRect endp Rotate proc uses esi edi,hBmpDest:DWORD,hBmpSrc:DWORD,x:DWORD,y:DWORD,nRotate:DWORD LOCAL bmd:BITMAP LOCAL nbitsd:DWORD LOCAL hmemd:DWORD LOCAL bms:BITMAP LOCAL nbitss:DWORD LOCAL hmems:DWORD ;Get info on destination bitmap invoke GetObject,hBmpDest,sizeof BITMAP,addr bmd mov eax,bmd.bmWidthBytes mov edx,bmd.bmHeight mul edx mov nbitsd,eax ;Allocate memory for destination bitmap bits invoke GlobalAlloc,GMEM_FIXED,nbitsd mov hmemd,eax ;Get the destination bitmap bits invoke GetBitmapBits,hBmpDest,nbitsd,hmemd ;Get info on source bitmap invoke GetObject,hBmpSrc,sizeof BITMAP,addr bms mov eax,bms.bmWidthBytes mov edx,bms.bmHeight mul edx mov nbitss,eax ;Allocate memory for source bitmap bits invoke GlobalAlloc,GMEM_FIXED,nbitss mov hmems,eax ;Get the source bitmap bits invoke GetBitmapBits,hBmpSrc,nbitss,hmems ;Copy the pixels one by one xor edx,edx .while edx<bms.bmHeight xor ecx,ecx .while ecx<bms.bmWidth call CopyPix inc ecx .endw inc edx .endw ;Copy back the destination bitmap bits invoke SetBitmapBits,hBmpDest,nbitsd,hmemd ;Free allocated memory invoke GlobalFree,hmems invoke GlobalFree,hmemd ret CopyPix: push ecx push edx mov esi,hmems push edx mov eax,bms.bmWidthBytes mul edx add esi,eax movzx eax,bms.bmBitsPixel shr eax,3 mul ecx add esi,eax pop edx mov eax,nRotate .if eax==1 ;Rotate 90 degrees sub edx,bms.bmHeight neg edx xchg ecx,edx .elseif eax==2 ;Rotate 180 degrees sub edx,bms.bmHeight neg edx sub ecx,bms.bmWidth neg ecx .elseif eax==3 ;Rotate 270 degrees sub ecx,bms.bmWidth neg ecx xchg ecx,edx .endif ;Add the destination offsets add ecx,x add edx,y .if ecx<bmd.bmWidth && edx<bmd.bmHeight ;Calculate destination adress mov edi,hmemd mov eax,bmd.bmWidthBytes mul edx add edi,eax movzx eax,bmd.bmBitsPixel shr eax,3 xchg eax,ecx mul ecx add edi,eax ;And copy the byte(s) rep movsb .endif pop edx pop ecx retn Rotate endp GetToolPtr proc mov edx,offset ToolPool-sizeof TOOLPOOL @@: add edx,sizeof TOOLPOOL cmp [edx].TOOLPOOL.hCld,0 jz @f cmp eax,[edx].TOOLPOOL.hCld jnz @b mov edx,[edx].TOOLPOOL.lpTool ret @@: xor edx,edx ret GetToolPtr endp ToolHitTest proc uses ebx,lpRect:DWORD,lpPoint:DWORD push edx mov edx,lpPoint mov ebx,lpRect mov eax,[edx].POINT.x mov edx,[edx].POINT.y .if sdword ptr eax>=[ebx].RECT.left && sdword ptr eax<[ebx].RECT.right && sdword ptr edx>=[ebx].RECT.top && sdword ptr edx<[ebx].RECT.bottom mov eax,TRUE .else xor eax,eax .endif pop edx ret ToolHitTest endp GetToolPtrID proc push edx mov edx,offset ToolPool-sizeof TOOLPOOL @@: add edx,sizeof TOOLPOOL cmp [edx].TOOLPOOL.hCld,0 je @f push edx mov edx,dword ptr [edx].TOOLPOOL.lpTool cmp eax,[edx].TOOL.dck.ID pop edx jne @b mov eax,dword ptr [edx].TOOLPOOL.lpTool pop edx ret @@: xor eax,eax pop edx ret GetToolPtrID endp IsOnTool proc uses ebx,lpPt:DWORD push ecx push edx mov ebx,lpPt mov edx,offset ToolData @@: mov eax,[edx].TOOL.dck.ID .if eax mov eax,[edx].TOOL.dck.Visible and eax,[edx].TOOL.dck.Docked .if eax mov eax,[edx].TOOL.dck.IsChild .if !eax mov eax,[ebx].POINT.x .if sdword ptr eax>[edx].TOOL.dr.left && sdword ptr eax<[edx].TOOL.dr.right mov eax,[ebx].POINT.y .if sdword ptr eax>[edx].TOOL.dr.top && sdword ptr eax<[edx].TOOL.dr.bottom mov eax,[edx].TOOL.dck.ID jmp @f .endif .endif .endif .endif add edx,sizeof TOOL jmp @b .endif @@: pop edx pop ecx ret IsOnTool endp SetIsChildTo proc nID:DWORD,nToID:DWORD push edx mov edx,offset ToolData @@: mov eax,[edx].TOOL.dck.ID .if eax mov eax,[edx].TOOL.dck.IsChild .if eax==nID mov eax,nToID mov [edx].TOOL.dck.IsChild,eax .endif add edx,sizeof TOOL jmp @b .endif pop edx ret SetIsChildTo endp ToolMsg proc uses ebx esi,hCld:DWORD,uMsg:UINT,lpRect:DWORD LOCAL rect:RECT LOCAL dWidth:DWORD LOCAL dHeight:DWORD LOCAL hWin:HWND LOCAL hDC:HDC LOCAL hCur:DWORD LOCAL parPosition:DWORD LOCAL pardWidth:DWORD LOCAL pardHeight:DWORD LOCAL parDocked:DWORD LOCAL pt:POINT LOCAL rect2:RECT LOCAL sDC:HDC LOCAL hBmp1:DWORD LOCAL hBmp2:DWORD mov eax,hCld call GetToolPtr mov esi,edx mov ebx,lpRect mov eax,uMsg .if eax==TLM_MOUSEMOVE mov [esi].TOOL.dCurFlag,0 mov hCur,0 .if [esi].TOOL.dck.Visible && [esi].TOOL.dck.Docked && !ToolResize ;Check if mouse is on this tools caption, close button or sizeing boarder and set cursor mov hCur,0 invoke ToolHitTest,addr [esi].TOOL.rr,ebx .if eax ;Cursor on resize bar mov [esi].TOOL.dCurFlag,TL_ONRESIZE mov eax,[esi].TOOL.dck.Position .if eax==TL_TOP || eax==TL_BOTTOM mov eax,hSplitCurH mov hCur,eax .else mov eax,hSplitCurV mov hCur,eax .endif .else invoke ToolHitTest,addr [esi].TOOL.cr,ebx .if eax ;Cursor on caption mov hCur,IDC_HAND mov [esi].TOOL.dCurFlag,TL_ONCAPTION invoke ToolHitTest,addr [esi].TOOL.br,ebx .if eax ;Cursor on close button mov hCur,IDC_ARROW mov [esi].TOOL.dCurFlag,TL_ONCLOSE .endif invoke LoadCursor,0,hCur mov hCur,eax .endif .endif mov eax,hCur .if eax mov MoveCur,eax invoke SetCursor,eax mov eax,TRUE ret .endif .endif .elseif eax==TLM_MOVETEST call ToolMov .elseif eax==TLM_SETTBR mov eax,[esi].TOOL.dck.ID .if eax==1 ; mov eax,IDM_VIEW_PROJECTBROWSER ; .elseif eax==2 ; mov eax,IDM_VIEW_OUTPUTWINDOW ; .elseif eax==3 ; mov eax,IDM_VIEW_TOOLBOX ; .elseif eax==4 ; mov eax,IDM_VIEW_PROPERTIES ; .elseif eax==5 ; mov eax,0 .endif .if eax ; invoke SendMessage,hToolBar,TB_CHECKBUTTON,eax,[esi].TOOL.Visible .endif mov eax,TRUE ret .elseif eax==TLM_LBUTTONDOWN .if [esi].TOOL.dCurFlag .if [esi].TOOL.dCurFlag==TL_ONCLOSE mov [esi].TOOL.dck.Visible,FALSE invoke ToolMsg,hCld,TLM_SETTBR,0 invoke SendMessage,hWnd,WM_SIZE,0,0 mov eax,TRUE ret .else invoke SetFocus,hCld mov pt.x,0 mov pt.y,0 invoke ClientToScreen,hWnd,addr pt invoke CopyRect,addr DrawRect,addr [esi].TOOL.dr mov eax,pt.x dec eax add DrawRect.left,eax inc eax inc eax add DrawRect.right,eax mov eax,pt.y add DrawRect.top,eax inc eax add DrawRect.bottom,eax invoke CopyRect,addr MoveRect,addr DrawRect invoke SetCursor,MoveCur invoke SetCapture,hWnd .if [esi].TOOL.dCurFlag==TL_ONRESIZE mov eax,hCld mov ToolResize,eax invoke ShowWindow,hSize,SW_SHOWNOACTIVATE mov eax,TRUE ret .elseif [esi].TOOL.dCurFlag==TL_ONCAPTION mov eax,hCld mov ToolMove,eax invoke ToolDrawRect,addr DrawRect,0,0 mov eax,TRUE ret .endif .endif .endif .elseif eax==TLM_LBUTTONUP invoke ReleaseCapture .if ToolResize mov edx,[esi].TOOL.dck.Position .if edx==TL_BOTTOM || edx==TL_TOP mov eax,DrawRect.bottom sub eax,DrawRect.top sub eax,1 mov [esi].TOOL.dck.dHeight,eax .elseif edx==TL_LEFT || edx==TL_RIGHT mov eax,DrawRect.right sub eax,DrawRect.left sub eax,2 .if edx==TL_RIGHT dec eax .endif mov [esi].TOOL.dck.dWidth,eax .endif invoke ShowWindow,hSize,SW_HIDE .elseif ToolMove invoke ToolDrawRect,addr DrawRect,2,0 call ToolMov .if ![esi].TOOL.dck.Docked mov eax,FloatRect.right sub eax,FloatRect.left mov edx,FloatRect.bottom sub edx,FloatRect.top invoke MoveWindow,[esi].TOOL.hWin,FloatRect.left,FloatRect.top,eax,edx,TRUE .endif .endif invoke SendMessage,hWnd,WM_SIZE,0,0 invoke SetFocus,hCld .elseif eax==TLM_DOCKING ;Docked/floating xor [esi].TOOL.dck.Docked,TRUE .if ![esi].TOOL.dck.Visible invoke ToolMsg,hCld,TLM_HIDE,lpRect .else invoke SendMessage,hWnd,WM_SIZE,0,0 .endif mov eax,TRUE ret .elseif eax==TLM_HIDE ;Hide/show xor [esi].TOOL.dck.Visible,TRUE invoke ToolMsg,hCld,TLM_SETTBR,0 invoke SendMessage,hWnd,WM_SIZE,0,0 invoke InvalidateRect,hClient,NULL,TRUE mov eax,TRUE ret .elseif eax==TLM_CAPTION ;Draw the tools caption .if [esi].TOOL.dck.Visible && [esi].TOOL.dck.Docked ;Draw caption background invoke GetDC,hWnd mov hDC,eax invoke GetStockObject,DEFAULT_GUI_FONT invoke SelectObject,hDC,eax push eax invoke FillRect,hDC,addr [esi].TOOL.tr,COLOR_BTNFACE+1 invoke SetBkMode,hDC,TRANSPARENT ;Draw resizing bar invoke FillRect,hDC,addr [esi].TOOL.rr,COLOR_BTNFACE+1 ;Draw Caption .if [esi].TOOL.dFocus invoke GetSysColor,COLOR_CAPTIONTEXT invoke SetTextColor,hDC,eax mov eax,COLOR_ACTIVECAPTION+1 .else invoke GetSysColor,COLOR_INACTIVECAPTIONTEXT invoke SetTextColor,hDC,eax mov eax,COLOR_INACTIVECAPTION+1 .endif mov ebx,eax invoke FillRect,hDC,addr [esi].TOOL.cr,eax mov eax,[esi].TOOL.dck.IsChild xor ecx,ecx .if eax invoke GetToolPtrID mov edx,eax mov ecx,[edx].TOOL.dck.Visible and ecx,[edx].TOOL.dck.Docked .endif mov eax,[esi].TOOL.dck.Position .if fRightCaption .if ((eax==TL_TOP || eax==TL_BOTTOM) && !ecx) || (eax==TL_RIGHT && ecx) mov eax,[esi].TOOL.dck.Caption mov al,byte ptr [eax] .if al dec ebx invoke GetSysColor,ebx mov ebx,eax ;Create a memory DC for the source invoke CreateCompatibleDC,hDC mov sDC,eax invoke GetTextColor,hDC invoke SetTextColor,sDC,eax invoke GetStockObject,DEFAULT_GUI_FONT invoke SelectObject,sDC,eax push eax ;Get size of text to draw mov rect2.left,0 mov rect2.top,0 mov rect2.right,0 mov rect2.bottom,0 invoke DrawText,sDC,[esi].TOOL.dck.Caption,-1,addr rect2,DT_CALCRECT or DT_SINGLELINE or DT_LEFT or DT_TOP ;Create a bitmap for the rotated text invoke CreateCompatibleBitmap,hDC,rect2.bottom,rect2.right mov hBmp1,eax ;Create a bitmap for the text invoke CreateCompatibleBitmap,hDC,rect2.right,rect2.bottom mov hBmp2,eax ;and select it into source DC invoke SelectObject,sDC,hBmp2 push eax invoke SetBkColor,sDC,ebx ;Draw the text invoke DrawText,sDC,[esi].TOOL.dck.Caption,-1,addr rect2,DT_SINGLELINE or DT_LEFT or DT_TOP ;Rotate the bitmap invoke Rotate,hBmp1,hBmp2,0,0,1 pop eax invoke SelectObject,sDC,eax ;Delete created source bitmap invoke DeleteObject,eax invoke SelectObject,sDC,hBmp1 push eax ;Blit the destination bitmap onto window bitmap mov eax,[esi].TOOL.cr.top inc eax mov edx,[esi].TOOL.cr.left dec edx invoke BitBlt,hDC,edx,eax,rect2.bottom,rect2.right,sDC,0,0,SRCCOPY pop eax invoke SelectObject,sDC,eax ;Delete created source bitmap invoke DeleteObject,eax pop eax invoke SelectObject,sDC,eax invoke DeleteDC,sDC .endif .else dec [esi].TOOL.cr.top inc [esi].TOOL.cr.left invoke DrawText,hDC,[esi].TOOL.dck.Caption,-1,addr [esi].TOOL.cr,0 inc [esi].TOOL.cr.top dec [esi].TOOL.cr.left .endif .else dec [esi].TOOL.cr.top inc [esi].TOOL.cr.left invoke DrawText,hDC,[esi].TOOL.dck.Caption,-1,addr [esi].TOOL.cr,0 inc [esi].TOOL.cr.top dec [esi].TOOL.cr.left .endif ;Draw close button invoke DrawFrameControl,hDC,addr [esi].TOOL.br,DFC_CAPTION,DFCS_CAPTIONCLOSE invoke ReleaseDC,hWnd,hDC pop eax invoke SelectObject,hDC,eax .endif .elseif eax==TLM_REDRAW ;Hide/Show floating/docked window .if [esi].TOOL.dck.Visible .if [esi].TOOL.dck.Docked ;Hide the floating form invoke ShowWindow,[esi].TOOL.hWin,SW_HIDE ;Make the mdi frame the parent invoke SetParent,[esi].TOOL.hCld,hWnd mov eax,[esi].TOOL.wr.right sub eax,[esi].TOOL.wr.left mov dWidth,eax mov eax,[esi].TOOL.wr.bottom sub eax,[esi].TOOL.wr.top mov dHeight,eax invoke MoveWindow,[esi].TOOL.hCld,[esi].TOOL.wr.left,[esi].TOOL.wr.top,dWidth,dHeight,TRUE invoke ShowWindow,[esi].TOOL.hCld,SW_SHOWNOACTIVATE .else ;Show the floating window invoke SetParent,[esi].TOOL.hCld,[esi].TOOL.hWin invoke GetClientRect,[esi].TOOL.hWin,addr rect invoke MoveWindow,[esi].TOOL.hCld,rect.left,rect.top,rect.right,rect.bottom,FALSE invoke ShowWindow,[esi].TOOL.hWin,SW_SHOWNOACTIVATE invoke ShowWindow,[esi].TOOL.hCld,SW_SHOWNOACTIVATE .endif .else .if [esi].TOOL.dck.Docked ;Hide the floating form invoke ShowWindow,[esi].TOOL.hWin,SW_HIDE ;Hide docked window invoke ShowWindow,[esi].TOOL.hCld,SW_HIDE .else ;Hide the floating window invoke ShowWindow,[esi].TOOL.hCld,SW_HIDE invoke ShowWindow,[esi].TOOL.hWin,SW_HIDE .endif .endif .elseif eax==TLM_ADJUSTRECT .if [esi].TOOL.dck.Visible && [esi].TOOL.dck.Docked mov parPosition,-1 mov parDocked,0 mov eax,[esi].TOOL.dck.IsChild .if eax mov eax,[esi].TOOL.dck.dWidth mov dWidth,eax push esi ;Get parent from ID mov eax,[esi].TOOL.dck.IsChild invoke GetToolPtrID mov esi,eax mov eax,[esi].TOOL.dck.Position mov parPosition,eax mov eax,[esi].TOOL.dck.dWidth mov pardWidth,eax mov eax,[esi].TOOL.dck.dHeight mov pardHeight,eax ;Is parent visible & docked mov eax,[esi].TOOL.dck.Visible and eax,[esi].TOOL.dck.Docked mov parDocked,eax .if eax .if parPosition==TL_LEFT || parPosition==TL_RIGHT ;Resize the tool's client rect instead lea eax,[esi].TOOL.wr mov lpRect,eax pop eax push eax mov [eax].TOOL.dck.Position,TL_BOTTOM .else ;Resize the tool's client, top, caption & button rect instead lea eax,[esi].TOOL.wr mov lpRect,eax mov eax,dWidth .if fRightCaption add [esi].TOOL.wr.right,TOTCAPHT-1 inc eax sub [esi].TOOL.cr.left,eax sub [esi].TOOL.tr.left,eax sub [esi].TOOL.cr.right,eax sub [esi].TOOL.tr.right,eax sub [esi].TOOL.br.left,eax sub [esi].TOOL.br.right,eax .else sub [esi].TOOL.tr.right,eax sub [esi].TOOL.cr.right,eax sub [esi].TOOL.br.left,eax sub [esi].TOOL.br.right,eax .endif pop eax push eax mov [eax].TOOL.dck.Position,TL_RIGHT .endif .else pop esi push esi mov eax,parPosition mov [esi].TOOL.dck.Position,eax .if parPosition==TL_LEFT || parPosition==TL_RIGHT mov eax,pardWidth mov [esi].TOOL.dck.dWidth,eax .else mov eax,pardHeight mov [esi].TOOL.dck.dHeight,eax .endif .endif pop esi .endif ;Resize mdi client & calculate all the tools RECT's mov ebx,lpRect invoke CopyRect,addr [esi].TOOL.dr,ebx mov eax,[esi].TOOL.dck.Position .if eax==TL_LEFT mov eax,[esi].TOOL.dck.dWidth add [ebx].RECT.left,eax add eax,[esi].TOOL.dr.left mov [esi].TOOL.dr.right,eax call SizeRight call CaptionTop .elseif eax==TL_TOP mov eax,[esi].TOOL.dck.dHeight add [ebx].RECT.top,eax add eax,[esi].TOOL.dr.top mov [esi].TOOL.dr.bottom,eax call SizeBottom .if fRightCaption call CaptionRight .else call CaptionTop .endif .elseif eax==TL_RIGHT mov eax,[esi].TOOL.dck.dWidth sub [ebx].RECT.right,eax neg eax add eax,[esi].TOOL.dr.right ; dec eax mov [esi].TOOL.dr.left,eax call SizeLeft .if [esi].TOOL.dck.IsChild && fRightCaption && parDocked sub [ebx].RECT.right,TOTCAPHT call CaptionRight .else .if [esi].TOOL.dck.IsChild && parDocked sub [esi].TOOL.dr.top,TOTCAPHT sub [esi].TOOL.wr.top,TOTCAPHT sub [esi].TOOL.rr.top,TOTCAPHT .endif call CaptionTop .endif .elseif eax==TL_BOTTOM mov eax,[esi].TOOL.dck.dHeight sub [ebx].RECT.bottom,eax neg eax add eax,[esi].TOOL.dr.bottom mov [esi].TOOL.dr.top,eax call SizeTop .if ((parPosition==TL_LEFT || parPosition==TL_RIGHT) && parDocked) || !fRightCaption call CaptionTop .else call CaptionRight .endif .endif .endif .elseif eax==TLM_GETVISIBLE mov eax,[esi].TOOL.dck.Visible ret .elseif eax==TLM_GETDOCKED mov eax,[esi].TOOL.dck.Docked ret .elseif eax==TLM_GETSTRUCT mov eax,esi ret .endif mov eax,FALSE ret SizeLeft: invoke CopyRect,addr [esi].TOOL.wr,addr [esi].TOOL.dr mov eax,[esi].TOOL.wr.left mov [esi].TOOL.rr.left,eax add eax,RESIZEBAR mov [esi].TOOL.wr.left,eax mov [esi].TOOL.rr.right,eax mov eax,[esi].TOOL.wr.top mov [esi].TOOL.rr.top,eax mov eax,[esi].TOOL.wr.bottom mov [esi].TOOL.rr.bottom,eax retn SizeTop: invoke CopyRect,addr [esi].TOOL.wr,addr [esi].TOOL.dr mov eax,[esi].TOOL.wr.left mov [esi].TOOL.rr.left,eax mov eax,[esi].TOOL.wr.right mov [esi].TOOL.rr.right,eax mov eax,[esi].TOOL.wr.top mov [esi].TOOL.rr.top,eax add eax,RESIZEBAR mov [esi].TOOL.wr.top,eax mov [esi].TOOL.rr.bottom,eax retn SizeRight: invoke CopyRect,addr [esi].TOOL.wr,addr [esi].TOOL.dr mov eax,[esi].TOOL.wr.right mov [esi].TOOL.rr.right,eax sub eax,RESIZEBAR mov [esi].TOOL.wr.right,eax mov [esi].TOOL.rr.left,eax mov eax,[esi].TOOL.wr.top mov [esi].TOOL.rr.top,eax mov eax,[esi].TOOL.wr.bottom mov [esi].TOOL.rr.bottom,eax retn SizeBottom: invoke CopyRect,addr [esi].TOOL.wr,addr [esi].TOOL.dr mov eax,[esi].TOOL.wr.left mov [esi].TOOL.rr.left,eax mov eax,[esi].TOOL.wr.right mov [esi].TOOL.rr.right,eax mov eax,[esi].TOOL.wr.bottom mov [esi].TOOL.rr.bottom,eax sub eax,RESIZEBAR mov [esi].TOOL.wr.bottom,eax mov [esi].TOOL.rr.top,eax retn CaptionTop: mov eax,[esi].TOOL.wr.left mov [esi].TOOL.tr.left,eax mov [esi].TOOL.cr.left,eax mov eax,[esi].TOOL.wr.right mov [esi].TOOL.tr.right,eax mov [esi].TOOL.cr.right,eax mov eax,[esi].TOOL.wr.top mov [esi].TOOL.tr.top,eax inc eax mov [esi].TOOL.cr.top,eax add eax,TOTCAPHT-1 mov [esi].TOOL.wr.top,eax mov [esi].TOOL.tr.bottom,eax dec eax mov [esi].TOOL.cr.bottom,eax mov eax,[esi].TOOL.cr.top add eax,BUTTONT mov [esi].TOOL.br.top,eax add eax,BUTTONHT mov [esi].TOOL.br.bottom,eax mov eax,[esi].TOOL.cr.right sub eax,BUTTONR mov [esi].TOOL.br.right,eax sub eax,BUTTONWT mov [esi].TOOL.br.left,eax retn CaptionRight: mov eax,[esi].TOOL.wr.right mov [esi].TOOL.tr.right,eax dec eax mov [esi].TOOL.cr.right,eax sub eax,TOTCAPHT-1 mov [esi].TOOL.tr.left,eax inc eax mov [esi].TOOL.cr.left,eax mov [esi].TOOL.wr.right,eax mov eax,[esi].TOOL.wr.top mov [esi].TOOL.tr.top,eax mov [esi].TOOL.cr.top,eax mov eax,[esi].TOOL.wr.bottom mov [esi].TOOL.tr.bottom,eax mov [esi].TOOL.cr.bottom,eax mov eax,[esi].TOOL.cr.right sub eax,BUTTONT mov [esi].TOOL.br.right,eax sub eax,BUTTONHT mov [esi].TOOL.br.left,eax mov eax,[esi].TOOL.cr.bottom sub eax,BUTTONR mov [esi].TOOL.br.bottom,eax sub eax,BUTTONWT mov [esi].TOOL.br.top,eax retn ToolMov: invoke IsOnTool,ebx .if eax!=0 && eax!=[esi].TOOL.dck.ID ;If Tool has child mov [esi].TOOL.dck.IsChild,eax invoke SetIsChildTo,[esi].TOOL.dck.ID,eax .else mov eax,MoveRect.left sub eax,DrawRect.left .if sdword ptr eax<50 && sdword ptr eax>-50 mov eax,MoveRect.top sub eax,DrawRect.top .if sdword ptr eax<50 && sdword ptr eax>-50 retn .endif .endif invoke GetWindowRect,hWnd,addr rect2 sub rect2.left,50 sub rect2.top,50 add rect2.right,50 add rect2.bottom,50 mov eax,MoveRect.left sub eax,DrawRect.left mov ebx,lpRect mov eax,[ebx].POINT.x cwde mov [ebx].POINT.x,eax .if sdword ptr eax<rect2.left && sdword ptr eax>rect2.right mov [esi].TOOL.dck.Docked,FALSE retn .endif mov eax,[ebx].POINT.y cwde mov [ebx].POINT.y,eax .if sdword ptr eax<rect2.top && sdword ptr eax>rect2.bottom mov [esi].TOOL.dck.Docked,FALSE retn .endif mov eax,[ebx].POINT.x sub eax,ClientRect.left .if sdword ptr eax<50 && sdword ptr eax>-50 mov [esi].TOOL.dck.Position,TL_LEFT mov [esi].TOOL.dck.IsChild,0 .else mov eax,[ebx].POINT.y sub eax,ClientRect.top .if sdword ptr eax<50 && sdword ptr eax>-50 mov [esi].TOOL.dck.Position,TL_TOP mov [esi].TOOL.dck.IsChild,0 .else mov eax,[ebx].POINT.x sub eax,ClientRect.right .if sdword ptr eax<50 && sdword ptr eax>-50 mov [esi].TOOL.dck.Position,TL_RIGHT mov [esi].TOOL.dck.IsChild,0 .else mov eax,[ebx].POINT.y sub eax,ClientRect.bottom .if sdword ptr eax<50 && sdword ptr eax>-50 mov [esi].TOOL.dck.Position,TL_BOTTOM mov [esi].TOOL.dck.IsChild,0 .else mov [esi].TOOL.dck.Docked,FALSE .endif .endif .endif .endif .endif retn ToolMsg endp ToolMsgAll proc uses ecx esi,uMsg:UINT,lParam:LPARAM,fTpe:DWORD mov ecx,10 mov esi,offset ToolPool Nxt: mov eax,[esi].TOOLPOOL.hCld or eax,eax je Ex push ecx mov edx,[esi].TOOLPOOL.lpTool mov eax,[edx].TOOL.dck.IsChild .if fTpe==0 invoke ToolMsg,[esi].TOOLPOOL.hCld,uMsg,lParam .elseif fTpe==1 && !eax invoke ToolMsg,[esi].TOOLPOOL.hCld,uMsg,lParam .elseif fTpe==2 && eax invoke ToolMsg,[esi].TOOLPOOL.hCld,uMsg,lParam .elseif fTpe==3 mov ecx,lParam .if [edx].TOOL.dck.Docked && [ecx].TOOL.dck.Docked && eax==[ecx].TOOL.dck.ID mov eax,[edx].TOOL.dck.Visible .if eax!=[ecx].TOOL.dck.Visible invoke ToolMsg,[esi].TOOLPOOL.hCld,uMsg,lParam .endif .endif .endif pop ecx add esi,sizeof TOOLPOOL dec ecx jne Nxt Ex: ret ToolMsgAll endp ToolMessage proc uses ebx esi edi,hWin:HWND,uMsg:UINT,lParam:LPARAM LOCAl pt:POINT LOCAL rect:RECT LOCAL clW:DWORD LOCAL clH:DWORD LOCAL tls[10]:TOOL mov eax,uMsg .if eax==TLM_INIT mov ToolPtr,0 .elseif eax==TLM_SIZE invoke ToolMsgAll,TLM_ADJUSTRECT,lParam,1 invoke ToolMsgAll,TLM_ADJUSTRECT,lParam,2 invoke CopyRect,addr ClientRect,lParam mov edx,lParam mov eax,[edx].RECT.right sub eax,[edx].RECT.left mov clW,eax mov eax,[edx].RECT.bottom sub eax,[edx].RECT.top mov clH,eax invoke MoveWindow,hClient,[edx].RECT.left,[edx].RECT.top,clW,clH,TRUE invoke ToolMsgAll,TLM_REDRAW,0,1 invoke ToolMsgAll,TLM_REDRAW,0,2 .elseif eax==TLM_PAINT invoke ToolMsgAll,TLM_CAPTION,0,0 .elseif eax==TLM_CREATE push ecx mov esi,offset ToolPool mov eax,ToolPtr add esi,eax add ToolPtr,sizeof TOOLPOOL mov ecx,sizeof TOOLPOOL xor edx,edx div ecx mov ecx,sizeof TOOL mul ecx mov edi,offset ToolData add edi,eax push edi mov eax,hWin mov [esi].TOOLPOOL.hCld,eax mov [esi].TOOLPOOL.lpTool,edi mov esi,lParam mov ecx,sizeof DOCKING cld rep movsb mov ecx,sizeof TOOL - sizeof DOCKING xor al,al rep stosb pop edx push edx invoke Do_ToolFloat,edx pop edx push eax mov [edx].TOOL.hWin,eax mov eax,hWin mov [edx].TOOL.hCld,eax push edx invoke SetWindowLong,[edx].TOOL.hCld,GWL_USERDATA,edx pop edx invoke ToolMsg,[edx].TOOL.hCld,TLM_SETTBR,0 pop eax pop ecx .elseif eax==TLM_MOUSEMOVE mov eax,lParam movsx eax,ax mov pt.x,eax mov eax,lParam shr eax,16 movsx eax,ax mov pt.y,eax .if ToolResize invoke CopyRect,addr DrawRect,addr MoveRect mov eax,pt.x cwde .if sdword ptr eax<0 mov pt.x,0 .endif mov eax,pt.y cwde .if sdword ptr eax<0 mov pt.y,0 .endif mov eax,ToolResize call GetToolPtr mov eax,[edx].TOOL.dck.Position .if eax==TL_LEFT mov eax,ClientRect.right sub eax,RESIZEBAR .if eax<pt.x mov pt.x,eax .endif mov eax,[edx].TOOL.dr.left add eax,RESIZEBAR+2 .if eax>pt.x mov pt.x,eax .endif mov eax,pt.x sub eax,MovePt.x add DrawRect.right,eax mov eax,DrawRect.bottom sub eax,DrawRect.top invoke MoveWindow,hSize,DrawRect.right,DrawRect.top,2,eax,TRUE .elseif eax==TL_TOP mov eax,ClientRect.bottom sub eax,RESIZEBAR+1 .if eax<pt.y mov pt.y,eax .endif mov eax,[edx].TOOL.dr.top add eax,TOTCAPHT+RESIZEBAR+2 .if eax>pt.y mov pt.y,eax .endif mov eax,pt.y sub eax,MovePt.y add DrawRect.bottom,eax mov eax,DrawRect.right sub eax,DrawRect.left invoke MoveWindow,hSize,DrawRect.left,DrawRect.bottom,eax,2,TRUE .elseif eax==TL_RIGHT mov eax,ClientRect.left add eax,RESIZEBAR .if eax>pt.x mov pt.x,eax .endif mov eax,[edx].TOOL.dr.right sub eax,RESIZEBAR+2 .if eax<pt.x mov pt.x,eax .endif mov eax,pt.x sub eax,MovePt.x add DrawRect.left,eax mov eax,DrawRect.bottom sub eax,DrawRect.top invoke MoveWindow,hSize,DrawRect.left,DrawRect.top,2,eax,TRUE .elseif eax==TL_BOTTOM mov eax,ClientRect.top add eax,RESIZEBAR+1 .if eax>pt.y mov pt.y,eax .endif mov eax,[edx].TOOL.dr.bottom sub eax,TOTCAPHT+RESIZEBAR+2 .if eax<pt.y mov pt.y,eax .endif mov eax,pt.y sub eax,MovePt.y add DrawRect.top,eax mov eax,DrawRect.right sub eax,DrawRect.left invoke MoveWindow,hSize,DrawRect.left,DrawRect.top,eax,2,TRUE .endif invoke ShowWindow,hSize,SW_SHOWNOACTIVATE .elseif ToolMove lea edi,tls mov esi,offset ToolData mov ecx,sizeof tls rep movsb invoke CopyRect,addr DrawRect,addr MoveRect mov eax,pt.x sub eax,MovePt.x add DrawRect.left,eax add DrawRect.right,eax mov eax,pt.y sub eax,MovePt.y add DrawRect.top,eax add DrawRect.bottom,eax invoke ToolMsg,ToolMove,TLM_MOVETEST,addr pt invoke CopyRect,addr rect,offset mdirect invoke ToolMsgAll,TLM_ADJUSTRECT,addr rect,1 invoke ToolMsgAll,TLM_ADJUSTRECT,addr rect,2 mov eax,ToolMove invoke GetToolPtr .if [edx].TOOL.dck.Docked invoke CopyRect,addr rect,addr [edx].TOOL.dr invoke ClientToScreen,hWnd,addr rect invoke ClientToScreen,hWnd,addr rect.right .else invoke CopyRect,addr rect,addr [edx].TOOL.dck.fr invoke ClientToScreen,hWnd,addr pt mov edx,rect.right sub edx,rect.left mov eax,pt.x mov rect.left,eax add eax,edx mov rect.right,eax shr edx,1 sub rect.left,edx sub rect.right,edx mov edx,rect.bottom sub edx,rect.top mov eax,pt.y sub eax,10 mov rect.top,eax add eax,edx mov rect.bottom,eax invoke CopyRect,offset FloatRect,addr rect .endif lea esi,tls mov edi,offset ToolData mov ecx,sizeof tls rep movsb invoke ToolDrawRect,addr rect,1,0 .else invoke ToolMsgAll,uMsg,addr pt,0 .endif .elseif eax==TLM_LBUTTONDOWN mov eax,lParam movsx eax,ax mov MovePt.x,eax mov eax,lParam shr eax,16 movsx eax,ax mov MovePt.y,eax invoke ToolMsgAll,uMsg,addr pt,0 .elseif eax==TLM_LBUTTONUP mov eax,lParam movsx eax,ax mov pt.x,eax mov eax,lParam shr eax,16 movsx eax,ax mov pt.y,eax .if ToolResize invoke ToolMsg,ToolResize,uMsg,addr pt mov ToolResize,0 .elseif ToolMove invoke ToolMsg,ToolMove,uMsg,addr pt mov ToolMove,0 .endif invoke InvalidateRect,hClient,NULL,TRUE .elseif eax==TLM_HIDE invoke ToolMsg,hWin,uMsg,lParam mov eax,hWin invoke GetToolPtr invoke ToolMsgAll,uMsg,edx,3 .else invoke ToolMsg,hWin,uMsg,lParam .endif ret ToolMessage endp ToolWndProc proc uses ebx,hWin:HWND,uMsg:UINT,wParam:WPARAM,lParam:LPARAM LOCAL rect:RECT LOCAL pt:POINT LOCAL tlW:DWORD LOCAL tlH:DWORD mov eax,uMsg .if eax==WM_CREATE mov edx,lParam mov eax,[edx].CREATESTRUCT.lpCreateParams invoke SetWindowLong,hWin,GWL_USERDATA,eax .elseif eax==WM_SIZE mov eax,hWin call GetToolStruct mov ebx,edx .if [ebx].TOOL.dck.Visible invoke GetWindowRect,hWin,addr [ebx].TOOL.dck.fr invoke GetClientRect,hWin,addr rect mov eax,rect.right sub eax,rect.left mov tlW,eax mov eax,rect.bottom sub eax,rect.top mov tlH,eax invoke MoveWindow,[ebx].TOOL.hCld,rect.left,rect.top,tlW,tlH,TRUE invoke GetClientRect,hWin,addr rect invoke SendMessage,hWnd,WM_TOOLSIZE,hWin,addr rect .endif .elseif eax==WM_SHOWWINDOW mov eax,hWin call GetToolStruct .if ![edx].TOOL.dck.Visible || [edx].TOOL.dck.Docked xor eax,eax .endif .elseif eax==WM_MOVE mov eax,hWin call GetToolStruct invoke GetWindowRect,hWin,addr [edx].TOOL.dck.fr .elseif eax==WM_NCLBUTTONDOWN .if wParam==HTCAPTION invoke LoadCursor,0,IDC_HAND mov MoveCur,eax mov eax,hWin call GetToolStruct mov ebx,edx mov [ebx].TOOL.dCurFlag,TL_ONCAPTION mov [ebx].TOOL.dck.Docked,TRUE mov eax,[ebx].TOOL.dck.fr.top add eax,10 mov pt.y,eax mov eax,[ebx].TOOL.dck.fr.right sub eax,[ebx].TOOL.dck.fr.left shr eax,1 add eax,[ebx].TOOL.dck.fr.left mov pt.x,eax invoke SetCursorPos,pt.x,pt.y invoke ToolMsg,[ebx].TOOL.hCld,TLM_LBUTTONDOWN,addr pt xor eax,eax .endif ; .elseif eax==WM_NOTIFY ; mov ebx,lParam ; mov eax,[ebx].NMHDR.hwndFrom ; .if eax==hTab && [ebx].NMHDR.code==TCN_SELCHANGE ;; invoke TabToolSel,hClient ; .endif .elseif eax==WM_CLOSE mov eax,hWin call GetToolStruct mov eax,[edx].TOOL.hCld invoke ToolMessage,eax,TLM_HIDE,0 invoke InvalidateRect,hClient,NULL,TRUE xor eax,eax .else invoke DefWindowProc,hWin,uMsg,wParam,lParam .endif ret ToolWndProc endp ToolCldProc proc uses ebx esi,hWin:HWND,uMsg:UINT,wParam:WPARAM,lParam:LPARAM LOCAL rect:RECT mov eax,uMsg .if eax==WM_SIZE invoke GetClientRect,hWin,addr rect invoke SendMessage,hWnd,WM_TOOLSIZE,hWin,addr rect .elseif eax==WM_NOTIFY invoke SendMessage,hWnd,WM_NOTIFY,wParam,lParam .elseif eax==WM_COMMAND invoke SendMessage,hWnd,WM_TOOLCOMMAND,wParam,lParam .elseif eax==WM_SETFOCUS invoke GetWindowLong,hWin,GWL_USERDATA mov [eax].TOOL.dFocus,TRUE invoke ToolMsgAll,TLM_CAPTION,0,0 .elseif eax==WM_KILLFOCUS invoke GetWindowLong,hWin,GWL_USERDATA mov [eax].TOOL.dFocus,FALSE invoke ToolMsgAll,TLM_CAPTION,0,0 .endif invoke DefWindowProc,hWin,uMsg,wParam,lParam Ex: ret ToolCldProc endp GetToolStruct proc invoke GetWindowLong,eax,GWL_USERDATA mov edx,eax ret GetToolStruct endp
26.320179
142
0.639188
93d5ba7bdfba662278c7800ac38c36ed2a4382e6
496
asm
Assembly
programs/oeis/008/A008726.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/008/A008726.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/008/A008726.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A008726: Molien series 1/((1-x)^2*(1-x^8)) for 3-dimensional group [2,n] = *22n. ; 1,2,3,4,5,6,7,8,10,12,14,16,18,20,22,24,27,30,33,36,39,42,45,48,52,56,60,64,68,72,76,80,85,90,95,100,105,110,115,120,126,132,138,144,150,156,162,168,175,182,189,196,203,210,217,224,232,240,248,256,264,272,280,288,297,306,315,324,333,342,351,360,370,380,390,400,410,420,430,440,451,462,473,484,495,506,517,528,540,552,564,576,588,600,612,624,637,650,663,676 add $0,1 lpb $0 add $1,$0 trn $0,8 lpe mov $0,$1
49.6
358
0.675403
17d85fad2ed8bc04db37bd40c094c42b179df288
1,103
asm
Assembly
Programming for Embedded Systems/Labs/Lab 2/Task 1/Task 1/main.asm
sathwikkannam/courses-HKR
3a3fe0275575f21e27152ffcef4bcf47733404cd
[ "MIT" ]
null
null
null
Programming for Embedded Systems/Labs/Lab 2/Task 1/Task 1/main.asm
sathwikkannam/courses-HKR
3a3fe0275575f21e27152ffcef4bcf47733404cd
[ "MIT" ]
null
null
null
Programming for Embedded Systems/Labs/Lab 2/Task 1/Task 1/main.asm
sathwikkannam/courses-HKR
3a3fe0275575f21e27152ffcef4bcf47733404cd
[ "MIT" ]
null
null
null
;This program stores integers in registers and adds the contents of two registers. ;It then stores the result into memory. ;The process is repeated for different register pairs: (R1, R2), (R17, R18), (R19, R20) .include "m328pdef.inc" ;this file must correspond to the processor to be used .list tester: LDI R17, 16 ;set R17=16 (0x10) LDI R18, 32 ;set R18=32 (0x20) MOV R1, R17 ;set R1 = R17 MOV R2, R18 ;set R2 = R18 ADD R1, R2 ;R1 = R1+R2 CLR R27 ;clear higher byte of memory index register (=00) LDI R26, 80 ;set lower index register to destination memory address ST x+, R19 ;store the sum in memory pointed by pair R27:R26 STS 128, R1 ;store the sum (R1) at a pre-specified address (128) LDI R17, 127 ;(Refer to the comments above) LDI R18, 126 ADD R17, R18 INC R26 ;increment the index so that it points to the next memory location ST x+, R17 ;store the sum LDI R19, 254 ;(Refer to the comments above) LDI R20, 2 ADD R19, R20 INC R26 ;increment the index so that it points to the next memory location ST x+, R19 ;store the sum
36.766667
89
0.687217
e40dcf04e53fe77b593f51e0551acde6e0ee7182
1,181
asm
Assembly
programs/oeis/204/A204542.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/204/A204542.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/204/A204542.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A204542: Numbers that are congruent to {1, 4, 11, 14} mod 15. ; 1,4,11,14,16,19,26,29,31,34,41,44,46,49,56,59,61,64,71,74,76,79,86,89,91,94,101,104,106,109,116,119,121,124,131,134,136,139,146,149,151,154,161,164,166,169,176,179,181,184,191,194,196,199,206,209,211,214,221,224,226,229,236,239,241,244,251,254,256,259,266,269,271,274,281,284,286,289,296,299,301,304,311,314,316,319,326,329,331,334,341,344,346,349,356,359,361,364,371,374,376,379,386,389,391,394,401,404,406,409,416,419,421,424,431,434,436,439,446,449,451,454,461,464,466,469,476,479,481,484,491,494,496,499,506,509,511,514,521,524,526,529,536,539,541,544,551,554,556,559,566,569,571,574,581,584,586,589,596,599,601,604,611,614,616,619,626,629,631,634,641,644,646,649,656,659,661,664,671,674,676,679,686,689,691,694,701,704,706,709,716,719,721,724,731,734,736,739,746,749,751,754,761,764,766,769,776,779,781,784,791,794,796,799,806,809,811,814,821,824,826,829,836,839,841,844,851,854,856,859,866,869,871,874,881,884,886,889,896,899,901,904,911,914,916,919,926,929,931,934 mov $2,$0 add $0,3 lpb $0,1 trn $0,2 mov $1,1 trn $1,$0 trn $0,2 add $3,3 lpe add $1,$3 sub $1,2 lpb $2,1 add $1,3 sub $2,1 lpe
62.157895
973
0.707875
8d279b8936bb2b8fd3ef82cdff1504771f6402de
225
asm
Assembly
solutions/50 - Cubical Communication/size-9_speed-46.asm
michaelgundlach/7billionhumans
02c6f3963364362c95cb516cbc6ef1efc073bb2e
[ "MIT" ]
45
2018-09-05T04:56:59.000Z
2021-11-22T08:57:26.000Z
solutions/50 - Cubical Communication/size-9_speed-46.asm
michaelgundlach/7billionhumans
02c6f3963364362c95cb516cbc6ef1efc073bb2e
[ "MIT" ]
36
2018-09-01T11:34:26.000Z
2021-05-19T23:20:49.000Z
solutions/50 - Cubical Communication/size-9_speed-46.asm
michaelgundlach/7billionhumans
02c6f3963364362c95cb516cbc6ef1efc073bb2e
[ "MIT" ]
36
2018-09-01T07:44:19.000Z
2021-09-10T19:07:35.000Z
-- 7 Billion Humans (2056) -- -- 50: Cubical Communication -- -- Author: tiansh -- Size: 9 -- Speed: 46 mem1 = set sw a: b: if mem1 > 1: mem1 = calc mem1 - 1 jump b endif takefrom s giveto se step w mem1 = set 4 jump a
10.227273
31
0.622222
cca4231911959b768d235094a1720ccc9d1b94a7
408
asm
Assembly
programs/oeis/308/A308044.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/308/A308044.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/308/A308044.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A308044: a(n) = 2*prevprime(2*n-1) - 2*n, where prevprime(n) is the largest prime < n. ; 0,0,2,4,2,8,10,8,14,16,14,20,18,16,26,28,26,24,34,32,38,40,38,44,42,40,50,48,46,56,58,56,54,64,62,68,70,68,66,76,74,80,78,76,86,84,82,80,94,92,98,100,98,104,106,104,110,108,106,104,102,100,98,124 mul $0,2 add $0,1 seq $0,175856 ; a(n) = n for n = noncomposites, a(n) = previous term - 1 for n = composites. sub $0,2
51
197
0.644608
0560a4280a661f571b9cbad973136619e6a0eb8a
47
asm
Assembly
gfx/pokemon/starmie/anim_idle.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
gfx/pokemon/starmie/anim_idle.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
gfx/pokemon/starmie/anim_idle.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
frame 2, 08 frame 3, 08 dorepeat 1 endanim
9.4
12
0.680851
f9c17c7e9efa57d80062355f556724db9c65b6c0
549
asm
Assembly
14-factorial/factorial.asm
gashev/assembly-examples
3e7e5d37af00e6d6202a589ffa36a888edb5be16
[ "Unlicense" ]
1
2021-01-06T01:45:37.000Z
2021-01-06T01:45:37.000Z
14-factorial/factorial.asm
gashev/assembly-examples
3e7e5d37af00e6d6202a589ffa36a888edb5be16
[ "Unlicense" ]
null
null
null
14-factorial/factorial.asm
gashev/assembly-examples
3e7e5d37af00e6d6202a589ffa36a888edb5be16
[ "Unlicense" ]
null
null
null
extern exit extern printf SECTION .data format: db '%d! = %d', 10, 0 SECTION .text GLOBAL _start _start: ; Init factorial. mov rax, 1 ; Init index. mov rbx, 0 loop: ; Calc next factorial inc rbx mul rbx ; Print push rax mov rdx, rax ; Store factorial mov rsi, rbx ; Store index mov rdi, format ; Output format mov rax, 0 call printf pop rax ; Compare index value. cmp rbx, 10 jl loop end: ; Exit application. mov rdi, 0 call exit
13.725
41
0.562842
0c809a925da6ea9313d08d15ed8517338efbe37f
1,023
asm
Assembly
patches/free_7F4000/free_7F4000.asm
RPGHacker/SMW-Workspace
dbbc37a650b71800c5113b28f115aa6ffc59fa7f
[ "MIT" ]
9
2017-11-03T17:37:24.000Z
2021-10-16T23:01:24.000Z
patches/free_7F4000/free_7F4000.asm
RPGHacker/SMW-Workspace
dbbc37a650b71800c5113b28f115aa6ffc59fa7f
[ "MIT" ]
17
2017-11-03T17:37:16.000Z
2021-11-02T14:42:12.000Z
patches/free_7F4000/free_7F4000.asm
RPGHacker/SMW-Workspace
dbbc37a650b71800c5113b28f115aa6ffc59fa7f
[ "MIT" ]
3
2018-01-14T21:49:55.000Z
2019-06-27T10:41:27.000Z
@asar 1.50 ;;;;;;;;;;;;;;;;;;;;;;;;; ;OW Tilemap Reload Patch; ;;;;;;;;;;;;;;;;;;;;;;;;; incsrc freeconfig.cfg incsrc ../shared/shared.asm print "Free 7F4000 v1.0 - (c) RPG Hacker" math pri on math round off pushtable cleartable namespace free_7F4000_ ;;;;;;;;; ;Hijacks; ;;;;;;;;; ; Code to execute on overworld load org remap_rom($00A0B9) autoclean jsl HandleOWReload nop #2 ;;;;;;;;;;;;;;;;; ;MAIN CODE START; ;;;;;;;;;;;;;;;;; freecode FreecodeStart: ;;;;;;;;;;;;;;;; ;OW Load Hijack; ;;;;;;;;;;;;;;;; ; Hijacks OW load to make it reload some tilemap data if necessary HandleOWReload: if !use_dirty_flag_for_ow_reload == 1 lda remap_ram(!ow_dirty_flag) ; cmp #$00 beq .Recover endif { .OWTilemapDirty: jsl remap_rom($04DAAD) } .Recover: stz remap_ram($0DDA) ldx remap_ram($0DB3) .Return: rtl ;;;;;;;;;;;;;;; ;MAIN CODE END; ;;;;;;;;;;;;;;; print "Patch inserted at $",hex(FreecodeStart),", ",freespaceuse," bytes of free space used." namespace off pulltable
10.65625
93
0.59433
6270eb0af14e778f169807b0577b97c8bdf80ff5
11,794
asm
Assembly
Cameras/FFXIII/InjectableGenericCameraSystem/Interceptor.asm
ghostinthecamera/IGCS-GITC
d46db76d1b49384bb81e01765b9a0056f593da9c
[ "BSD-2-Clause" ]
42
2019-04-21T22:05:43.000Z
2022-03-29T18:18:31.000Z
Cameras/FFXIII/InjectableGenericCameraSystem/Interceptor.asm
ghostinthecamera/IGCS-GITC
d46db76d1b49384bb81e01765b9a0056f593da9c
[ "BSD-2-Clause" ]
13
2019-07-26T18:21:26.000Z
2021-06-28T21:27:39.000Z
Cameras/FFXIII/InjectableGenericCameraSystem/Interceptor.asm
ghostinthecamera/IGCS-GITC
d46db76d1b49384bb81e01765b9a0056f593da9c
[ "BSD-2-Clause" ]
8
2019-08-08T17:06:16.000Z
2022-03-29T18:20:06.000Z
;//////////////////////////////////////////////////////////////////////////////////////////////////////// ;// Part of Injectable Generic Camera System ;// Copyright(c) 2017, Frans Bouma ;// All rights reserved. ;// https://github.com/FransBouma/InjectableGenericCameraSystem ;// ;// Redistribution and use in source and binary forms, with or without ;// modification, are permitted provided that the following conditions are met : ;// ;// * Redistributions of source code must retain the above copyright notice, this ;// list of conditions and the following disclaimer. ;// ;// * Redistributions in binary form must reproduce the above copyright notice, ;// this list of conditions and the following disclaimer in the documentation ;// and / or other materials provided with the distribution. ;// ;// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ;// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ;// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ;// DISCLAIMED.IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE ;// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ;// DAMAGES(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR ;// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER ;// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ;// OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ;// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ;//////////////////////////////////////////////////////////////////////////////////////////////////////// ;--------------------------------------------------------------- ; Game specific asm file to intercept execution flow to obtain addresses, prevent writes etc. ;--------------------------------------------------------------- .model flat,C .stack 4096 ;--------------------------------------------------------------- ; Public definitions so the linker knows which names are present in this file PUBLIC cameraStructInterceptor PUBLIC DOFinterceptor PUBLIC ARread PUBLIC BLOOMinterceptor ;--------------------------------------------------------------- ;--------------------------------------------------------------- ; Externs which are used and set by the system. Read / write these ; values in asm to communicate with the system EXTERN g_cameraEnabled: byte EXTERN g_cameraStructAddress: dword EXTERN g_dofstructaddress: dword EXTERN g_ARvalueaddress: dword EXTERN g_bloomstructaddress: dword ;--------------------------------------------------------------- ;--------------------------------------------------------------- ; Own externs, defined in InterceptorHelper.cpp EXTERN _cameraStructInterceptionContinue: dword EXTERN _dofstructInterceptionContinue: dword EXTERN _ARInterceptionContinue: dword EXTERN _bloomstructinterceptionContinue: dword .data .code cameraStructInterceptor PROC ;ffxiiiimg.exe+A7C691 - 8B EC - mov ebp,esp ;ffxiiiimg.exe+A7C693 - 83 EC 14 - sub esp,14 { 20 } ;ffxiiiimg.exe+A7C696 - 89 4D EC - mov [ebp-14],ecx ;ffxiiiimg.exe+A7C699 - 8B 45 EC - mov eax,[ebp-14] ;ffxiiiimg.exe+A7C69C - 83 C0 08 - add eax,08 { 8 } ;ffxiiiimg.exe+A7C69F - 89 45 F0 - mov [ebp-10],eax ;ffxiiiimg.exe+A7C6A2 - 8B 4D 08 - mov ecx,[ebp+08] ;ffxiiiimg.exe+A7C6A5 - 8B 55 F0 - mov edx,[ebp-10] ;ffxiiiimg.exe+A7C6A8 - 8B 01 - mov eax,[ecx] <<<inject here ;ffxiiiimg.exe+A7C6AA - 89 02 - mov [edx],eax <<<<row 1 write ;ffxiiiimg.exe+A7C6AC - 8B 41 04 - mov eax,[ecx+04] ;ffxiiiimg.exe+A7C6AF - 89 42 04 - mov [edx+04],eax <<<<row 1 second value write ;ffxiiiimg.exe+A7C6B2 - 8B 41 08 - mov eax,[ecx+08] ;ffxiiiimg.exe+A7C6B5 - 89 42 08 - mov [edx+08],eax <<<row 1 second value write ;ffxiiiimg.exe+A7C6B8 - 8B 49 0C - mov ecx,[ecx+0C] ;ffxiiiimg.exe+A7C6BB - 89 4A 0C - mov [edx+0C],ecx ;ffxiiiimg.exe+A7C6BE - 8B 55 F0 - mov edx,[ebp-10] ;ffxiiiimg.exe+A7C6C1 - 83 C2 10 - add edx,10 { 16 } ;ffxiiiimg.exe+A7C6C4 - 89 55 FC - mov [ebp-04],edx ;ffxiiiimg.exe+A7C6C7 - 8B 45 08 - mov eax,[ebp+08] ;ffxiiiimg.exe+A7C6CA - 83 C0 10 - add eax,10 { 16 } ;ffxiiiimg.exe+A7C6CD - 8B 4D FC - mov ecx,[ebp-04] ;ffxiiiimg.exe+A7C6D0 - 8B 10 - mov edx,[eax] ;ffxiiiimg.exe+A7C6D2 - 89 11 - mov [ecx],edx <<<<row 2 first write ;ffxiiiimg.exe+A7C6D4 - 8B 50 04 - mov edx,[eax+04] ;ffxiiiimg.exe+A7C6D7 - 89 51 04 - mov [ecx+04],edx <<<<row 2 second write ;ffxiiiimg.exe+A7C6DA - 8B 50 08 - mov edx,[eax+08] ;ffxiiiimg.exe+A7C6DD - 89 51 08 - mov [ecx+08],edx <<<row 2 third write ;ffxiiiimg.exe+A7C6E0 - 8B 40 0C - mov eax,[eax+0C] ;ffxiiiimg.exe+A7C6E3 - 89 41 0C - mov [ecx+0C],eax ;ffxiiiimg.exe+A7C6E6 - 8B 4D F0 - mov ecx,[ebp-10] ;ffxiiiimg.exe+A7C6E9 - 83 C1 20 - add ecx,20 { 32 } ;ffxiiiimg.exe+A7C6EC - 89 4D F8 - mov [ebp-08],ecx ;ffxiiiimg.exe+A7C6EF - 8B 55 08 - mov edx,[ebp+08] ;ffxiiiimg.exe+A7C6F2 - 83 C2 20 - add edx,20 { 32 } ;ffxiiiimg.exe+A7C6F5 - 8B 45 F8 - mov eax,[ebp-08] ;ffxiiiimg.exe+A7C6F8 - 8B 0A - mov ecx,[edx] ;ffxiiiimg.exe+A7C6FA - 89 08 - mov [eax],ecx <<<<row 3 first write ;ffxiiiimg.exe+A7C6FC - 8B 4A 04 - mov ecx,[edx+04] ;ffxiiiimg.exe+A7C6FF - 89 48 04 - mov [eax+04],ecx <<<row 3 second write ;ffxiiiimg.exe+A7C702 - 8B 4A 08 - mov ecx,[edx+08] ;ffxiiiimg.exe+A7C705 - 89 48 08 - mov [eax+08],ecx <<<row 3 third write ;ffxiiiimg.exe+A7C708 - 8B 52 0C - mov edx,[edx+0C] ;ffxiiiimg.exe+A7C70B - 89 50 0C - mov [eax+0C],edx ;ffxiiiimg.exe+A7C70E - 8B 45 F0 - mov eax,[ebp-10] ;ffxiiiimg.exe+A7C711 - 83 C0 30 - add eax,30 { 48 } ;ffxiiiimg.exe+A7C714 - 89 45 F4 - mov [ebp-0C],eax ;ffxiiiimg.exe+A7C717 - 8B 4D 08 - mov ecx,[ebp+08] ;ffxiiiimg.exe+A7C71A - 83 C1 30 - add ecx,30 { 48 } ;ffxiiiimg.exe+A7C71D - 8B 55 F4 - mov edx,[ebp-0C] ;ffxiiiimg.exe+A7C720 - 8B 01 - mov eax,[ecx] ;ffxiiiimg.exe+A7C722 - 89 02 - mov [edx],eax <<<<coords x write ;ffxiiiimg.exe+A7C724 - 8B 41 04 - mov eax,[ecx+04] ;ffxiiiimg.exe+A7C727 - 89 42 04 - mov [edx+04],eax <<<<cords y write ;ffxiiiimg.exe+A7C72A - 8B 41 08 - mov eax,[ecx+08] ;ffxiiiimg.exe+A7C72D - 89 42 08 - mov [edx+08],eax <<<<coords z write ;ffxiiiimg.exe+A7C730 - 8B 49 0C - mov ecx,[ecx+0C] ;ffxiiiimg.exe+A7C733 - 89 4A 0C - mov [edx+0C],ecx mov [g_cameraStructAddress], edx cmp byte ptr [g_cameraEnabled], 1 je writeSkip mov eax,[ecx] mov [edx],eax mov eax,[ecx+04h] mov [edx+04h],eax mov eax,[ecx+08h] mov [edx+08h],eax mov ecx,[ecx+0Ch] mov [edx+0Ch],ecx mov edx,[ebp-10h] add edx,10h mov [ebp-04h],edx mov eax,[ebp+08h] add eax,10h mov ecx,[ebp-04h] mov edx,[eax] mov [ecx],edx mov edx,[eax+04h] mov [ecx+04h],edx mov edx,[eax+08h] mov [ecx+08h],edx mov eax,[eax+0Ch] mov [ecx+0Ch],eax mov ecx,[ebp-10h] add ecx,20h mov [ebp-08h],ecx mov edx,[ebp+08h] add edx,20h mov eax,[ebp-08h] mov ecx,[edx] mov [eax],ecx mov ecx,[edx+04h] mov [eax+04h],ecx mov ecx,[edx+08h] mov [eax+08h],ecx mov edx,[edx+0Ch] mov [eax+0Ch],edx mov eax,[ebp-10h] add eax,30h mov [ebp-0Ch],eax mov ecx,[ebp+08h] add ecx,30h mov edx,[ebp-0Ch] mov eax,[ecx] mov [edx],eax mov eax,[ecx+04h] mov [edx+04h],eax mov eax,[ecx+08h] mov [edx+08h],eax mov ecx,[ecx+0Ch] mov [edx+0Ch],ecx jmp exit writeSkip: mov eax,[ecx] ;mov [edx],eax mov eax,[ecx+04h] ;mov [edx+04h],eax mov eax,[ecx+08h] ;mov [edx+08h],eax mov ecx,[ecx+0Ch] mov [edx+0Ch],ecx mov edx,[ebp-10h] add edx,10h mov [ebp-04h],edx mov eax,[ebp+08h] add eax,10h mov ecx,[ebp-04h] mov edx,[eax] ;mov [ecx],edx mov edx,[eax+04h] ;mov [ecx+04h],edx mov edx,[eax+08h] ;mov [ecx+08h],edx mov eax,[eax+0Ch] mov [ecx+0Ch],eax mov ecx,[ebp-10h] add ecx,20h mov [ebp-08h],ecx mov edx,[ebp+08h] add edx,20h mov eax,[ebp-08h] mov ecx,[edx] ;mov [eax],ecx mov ecx,[edx+04h] ;mov [eax+04h],ecx mov ecx,[edx+08h] ;mov [eax+08h],ecx mov edx,[edx+0Ch] mov [eax+0Ch],edx mov eax,[ebp-10h] add eax,30h mov [ebp-0Ch],eax mov ecx,[ebp+08h] add ecx,30h mov edx,[ebp-0Ch] mov eax,[ecx] ;mov [edx],eax mov eax,[ecx+04h] ;mov [edx+04h],eax mov eax,[ecx+08h] ;mov [edx+08h],eax mov ecx,[ecx+0Ch] mov [edx+0Ch],ecx exit: jmp dword ptr [_cameraStructInterceptionContinue] ; jmp back into the original game code, which is the location after the original statements above. cameraStructInterceptor ENDP DOFinterceptor PROC ;ffxiiiimg.exe+B1E94F - F3 0F10 40 28 - movss xmm0,[eax+28] ;ffxiiiimg.exe+B1E954 - F3 0F5C 41 2C - subss xmm0,[ecx+2C] ;ffxiiiimg.exe+B1E959 - 8B 55 C0 - mov edx,[ebp-40] ;ffxiiiimg.exe+B1E95C - F3 0F11 42 40 - movss [edx+40],xmm0 <<<inject here - edx contains the dof struct so we need to get this ;ffxiiiimg.exe+B1E961 - 8B 45 C0 - mov eax,[ebp-40] ;ffxiiiimg.exe+B1E964 - 8B 4D C0 - mov ecx,[ebp-40] ;ffxiiiimg.exe+B1E967 - F3 0F10 40 28 - movss xmm0,[eax+28] ;ffxiiiimg.exe+B1E96C - F3 0F58 41 30 - addss xmm0,[ecx+30] <<<<return here mov [g_dofstructaddress],edx movss dword ptr [edx+40h],xmm0 mov eax,[ebp-40h] mov ecx,[ebp-40h] movss xmm0, dword ptr[eax+28h] exit: jmp dword ptr [_dofstructInterceptionContinue] DOFinterceptor ENDP ARread PROC ;ffxiiiimg.exe+228A5A - F3 0F11 84 24 88010000 - movss [esp+00000188],xmm0 ;ffxiiiimg.exe+228A63 - 6A 01 - push 01 { 1 } ;ffxiiiimg.exe+228A65 - 8B 8C 24 74030000 - mov ecx,[esp+00000374] ;ffxiiiimg.exe+228A6C - 51 - push ecx ;ffxiiiimg.exe+228A6D - D9 81 FC030000 - fld dword ptr [ecx+000003FC] <<<intercept here - this is the AR Read ;ffxiiiimg.exe+228A73 - D9 1C 24 - fstp dword ptr [esp] ;ffxiiiimg.exe+228A76 - F3 0F10 84 24 8C010000 - movss xmm0,[esp+0000018C] <<< return after this mov [g_ARvalueaddress],ecx fld dword ptr [ecx+000003FCh] fstp dword ptr [esp] movss xmm0,dword ptr [esp+0000018Ch] exit: jmp dword ptr [_ARInterceptionContinue] ARread ENDP BLOOMinterceptor PROC ;"ffxiiiimg.exe"+B67A30: 55 - push ebp ;"ffxiiiimg.exe"+B67A31: 8B EC - mov ebp,esp ;"ffxiiiimg.exe"+B67A33: 81 EC 1C 01 00 00 - sub esp,0000011C ;"ffxiiiimg.exe"+B67A39: 89 8D E4 FE FF FF - mov [ebp-0000011C],ecx <<inject here ;"ffxiiiimg.exe"+B67A3F: 8B 85 E4 FE FF FF - mov eax,[ebp-0000011C] ;"ffxiiiimg.exe"+B67A45: F3 0F 10 40 10 - movss xmm0,[eax+10] <<<eax has the bloom ;"ffxiiiimg.exe"+B67A4A: F3 0F 59 05 40 0D 0A 01 - mulss xmm0,[ffxiiiimg.exe+CA0D40] <<<return here ;"ffxiiiimg.exe"+B67A52: F3 0F 11 45 F8 - movss [ebp-08],xmm0 ;"ffxiiiimg.exe"+B67A57: 8B 8D E4 FE FF FF - mov ecx,[ebp-0000011C] ;"ffxiiiimg.exe"+B67A5D: 8B 91 1C 01 00 00 - mov edx,[ecx+0000011C] ;"ffxiiiimg.exe"+B67A63: 89 55 B0 - mov [ebp-50],edx mov [ebp-0000011Ch],ecx mov eax,[ebp-0000011Ch] mov [g_bloomstructaddress],eax movss xmm0,dword ptr [eax+10h] exit: jmp dword ptr [_bloomstructinterceptionContinue] BLOOMinterceptor ENDP END
40.390411
149
0.601068
579cd9152ab6736318edfa624fc3209000a0713c
567
asm
Assembly
oeis/127/A127952.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/127/A127952.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/127/A127952.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A127952: Triangle read by rows, T(n,k) = (n+1)*C(n-1,k-1). ; Submitted by Christian Krause ; 1,0,2,0,3,3,0,4,8,4,0,5,15,15,5,0,6,24,36,24,6,0,7,35,70,70,35,7,0,8,48,120,160,120,48,8,0,9,63,189,315,315,189,63,9,0,10,80,280,560,700,560,280,80,10,0,11,99,396,924,1386,1386,924,396,99,11,0,12,120,540,1440,2520,3024,2520,1440,540,120,12,0,13,143,715,2145,4290,6006,6006,4290,2145,715,143,13,0,14,168,924,3080,6930,11088,12936,11088 lpb $0 add $1,1 sub $0,$1 mov $2,$1 sub $2,$0 lpe mov $0,$1 sub $0,1 bin $0,$2 add $1,1 mul $1,16 mul $1,$0 mov $0,$1 div $0,16
29.842105
336
0.643739
bb8f6a99fa59312b8889cfb4b76019fc2578d7ce
1,889
asm
Assembly
assembly_code/chp7_06.asm
farhana1i/BelalHashmi-Assembly-Exercise-Solutions
065887fa443ff905384d417ab6e8e0ebbb6ced83
[ "MIT" ]
104
2018-08-25T00:01:41.000Z
2022-01-26T14:07:32.000Z
assembly_code/chp7_06.asm
farhana1i/BelalHashmi-Assembly-Exercise-Solutions
065887fa443ff905384d417ab6e8e0ebbb6ced83
[ "MIT" ]
5
2021-01-14T14:04:39.000Z
2021-06-14T10:48:35.000Z
assembly_code/chp7_06.asm
farhana1i/BelalHashmi-Assembly-Exercise-Solutions
065887fa443ff905384d417ab6e8e0ebbb6ced83
[ "MIT" ]
29
2018-09-19T19:26:34.000Z
2021-04-29T21:01:26.000Z
; Write a subroutine “strcpy” that takes the address of two parameters via stack, ;the one pushed first is source and the second is the destination. ;The function should copy the source on the destination ;including the null character assuming that sufficient space is reserved starting at destination. [org 0x0100] start: push src push dest call strcpy end: mov ax, 0x4c00 int 21h ;----------------------------------------------------------------------------------------------------------- strLen: push bp mov bp, sp pusha push es push ds pop es mov di, [bp+4] ;Point di to string mov cx, 0xFFFF ;Load Maximum No. in cx mov al, 0 ;Load a zero in al repne scasb ;find zero in the string mov ax, 0xFFFF ;Load Maximum No. in ax sub ax, cx ;Find change in cx dec ax ;Exclude null from length mov [bp+6], ax pop es popa pop bp ret 2 ;----------------------------------------------------------------------------------------------------------- strcpy: push bp mov bp, sp pusha push es ;bp + 6 = src address ;bp + 4 = dest address mov si, [bp + 6] ;Setting si to source str push ds pop es ;Setting es mov di, [bp + 4] ;Setting di to destination str sub sp, 2 push word [bp + 6] call strLen ;Calculating the length of source string ;because ultimately the source and the destination will be of the same size pop cx inc cx ;Incrementing cx by one so that null character gets included in the string length rep movsb pop es return: popa pop bp ret 4 ;----------------------------------------------------------------------------------------------------------- src: db 'My name is NULL',0 dest: db 000000000000000
18.70297
108
0.505558
b68f40c75d5e2c0f190a73ac511bf6f2ae88c388
1,855
asm
Assembly
programs/oeis/272/A272073.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/272/A272073.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/272/A272073.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A272073: Exponents of x in the numerator of cluster variables of rank 2 cluster algebras. ; 3,6,15,24,57,90,213,336,795,1254,2967,4680,11073,17466,41325,65184,154227,243270,575583,907896,2148105,3388314,8016837,12645360,29919243,47193126,111660135,176127144,416721297,657315450,1555225053,2453134656,5804178915,9155223174,21661490607,34167758040,80841783513,127515808986,301705643445,475895477904,1125980790267,1776066102630,4202217517623,6628368932616,15682889280225,24737409627834,58529339603277,92321269578720,218434469132883,344547668687046,815208536928255,1285869405169464,3042399678580137,4798929951990810,11354390177392293,17909850402793776,42375161030989035,66840471659184294,158146253946563847,249452036233943400,590209854755266353,930967673276589306,2202693165074501565,3474418656872413824,8220562805542739907,12966706954213065990,30679558057096458063,48392409159979850136,114497669422843092345,180602929685706334554,427311119634275911317,674019309582845488080,1594746809114260552923,2515474308645675617766,5951676116822766300375,9387877924999856982984,22211957658176804648577,35036037391353752314170,82896154515884452293933,130756271640415152273696,309372660405361004527155,487989049170306856780614,1154594487105559565814687,1821199925040812274848760,4309005288016877258731593,6796810650992942242614426,16081426664961949469111685,25366042678930956695608944,60016701371830920617715147,94667360064730884539821350,223985378822361733001748903,353303397579992581463676456,835924813917616011389280465,1318546230255239441314884474,3119713876848102312555372957,4920881523440965183795861440,11642930693474793238832211363,18364979863508621293868561286,43452008897051070642773472495,68539037930593519991678383704 mov $1,5 lpb $0 trn $2,$0 add $1,$2 add $1,$2 add $2,$1 sub $2,$0 sub $0,1 add $1,2 lpe sub $1,3 div $1,2 mul $1,3 mov $0,$1
103.055556
1,622
0.895418
1f2a7439c21b8bbd271338b2e85b81a9695e4c0a
4,329
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_847.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_847.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_847.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 %rcx push %rdi push %rsi lea addresses_normal_ht+0x17f01, %rsi lea addresses_normal_ht+0x1d981, %rdi xor $5554, %r9 mov $60, %rcx rep movsb nop nop nop and $50314, %r14 lea addresses_WT_ht+0xa301, %r12 nop sub %r11, %r11 movb (%r12), %r9b nop nop nop nop add $40974, %r9 pop %rsi pop %rdi pop %rcx pop %r9 pop %r14 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %r15 push %rax // Faulty Load lea addresses_UC+0xe301, %r13 nop add %r10, %r10 mov (%r13), %r15 lea oracles, %rax and $0xff, %r15 shlq $12, %r15 mov (%rax,%r15,1), %r15 pop %rax pop %r15 pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': False, 'type': 'addresses_UC'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_UC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 10, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'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 */
59.30137
2,999
0.663433
b1e577ce66ab12817844f1f028fb0ba70febae37
681
asm
Assembly
tests/nasm/punpckldq.asm
Tuna0128/Tuna0128.github.io
7976c8236209a09f82fddd7c74ebcec86119d491
[ "BSD-2-Clause-FreeBSD" ]
12,700
2015-01-04T15:03:42.000Z
2022-03-31T06:43:06.000Z
tests/nasm/punpckldq.asm
Tuna0128/Tuna0128.github.io
7976c8236209a09f82fddd7c74ebcec86119d491
[ "BSD-2-Clause-FreeBSD" ]
566
2015-01-01T18:16:40.000Z
2022-03-31T19:59:10.000Z
tests/nasm/punpckldq.asm
Tuna0128/Tuna0128.github.io
7976c8236209a09f82fddd7c74ebcec86119d491
[ "BSD-2-Clause-FreeBSD" ]
1,182
2015-01-05T09:20:48.000Z
2022-03-31T12:16:52.000Z
global _start section .data align 16 quad1: dq 0x00ad00adad007fff quad2: dq 0xac4b1b9de29df0ff quad3: dq 0x01008080f0f0ff42 quad4: dq 0x0123456789abcdef mydword: dd 0xcafebabe myaddress: dq 0x00adbeefc0de00ce %include "header.inc" movq mm0, [quad1] movq mm1, [quad2] movq mm2, [quad3] movq mm3, [quad4] movq mm4, [quad1] movq mm5, [quad2] movq mm6, [quad3] movq mm7, [quad4] punpckldq mm4, mm0 punpckldq mm5, mm1 punpckldq mm6, mm2 punpckldq mm7, mm3 punpckldq mm0, [quad2] punpckldq mm1, [quad3] punpckldq mm2, [quad4] punpckldq mm3, [quad1] punpckldq mm0, mm5 punpckldq mm1, mm6 punpckldq mm2, mm7 punpckldq mm3, mm4 %include "footer.inc"
15.837209
23
0.725404
8f9ffd07f5a5384bfd7a1404a516a22b62593ae9
401
asm
Assembly
sk/sfx/C2.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
9
2017-10-09T20:28:45.000Z
2021-06-29T21:19:20.000Z
sk/sfx/C2.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
12
2018-08-01T13:52:20.000Z
2022-02-21T02:19:37.000Z
sk/sfx/C2.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
2
2018-02-17T19:50:36.000Z
2019-10-30T19:28:06.000Z
Sound_C2_Header: smpsHeaderStartSong 3 smpsHeaderVoice Sound_C2_Voices smpsHeaderTempoSFX $01 smpsHeaderChanSFX $01 smpsHeaderSFXChannel cPSG3, Sound_C2_PSG3, $00, $00 ; PSG3 Data Sound_C2_PSG3: smpsPSGform $E7 dc.b nCs4 Sound_C2_Loop00: dc.b $04, $04, $04, $04, $03, $03 smpsContinuousLoop Sound_C2_Loop00 smpsStop ; Song seems to not use any FM voices Sound_C2_Voices:
19.095238
52
0.750623
5d420204a1b5eecc4bcb653bdbb8842b6161d0fc
191
asm
Assembly
MySource/1-mycode_template.asm
mdabdullahibnaharun/Assembly-Language
a56500622b961c7ecf9690ad9d2136c3e05ea1f7
[ "MIT" ]
null
null
null
MySource/1-mycode_template.asm
mdabdullahibnaharun/Assembly-Language
a56500622b961c7ecf9690ad9d2136c3e05ea1f7
[ "MIT" ]
null
null
null
MySource/1-mycode_template.asm
mdabdullahibnaharun/Assembly-Language
a56500622b961c7ecf9690ad9d2136c3e05ea1f7
[ "MIT" ]
null
null
null
org 100h include "emu8086.inc" .model small .stack 100h .data .code main proc mov ah,4ch int 21h main endp end main ret
8.681818
23
0.47644
ece77c70f55ca210d1b07794a8f4fe60fa08fc32
472
asm
Assembly
oeis/284/A284964.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/284/A284964.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/284/A284964.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A284964: Numbers with digits 3 and 9 only. ; Submitted by Jon Maiga ; 3,9,33,39,93,99,333,339,393,399,933,939,993,999,3333,3339,3393,3399,3933,3939,3993,3999,9333,9339,9393,9399,9933,9939,9993,9999,33333,33339,33393,33399,33933,33939,33993,33999,39333,39339,39393,39399,39933,39939 add $0,1 mov $2,1 lpb $0 mov $3,$0 mul $0,2 sub $0,1 div $0,4 mod $3,2 mul $3,$2 add $1,$3 mul $2,10 lpe mul $1,6 sub $2,$1 mul $2,7 mov $0,$2 sub $0,28 div $0,7 add $0,3
19.666667
213
0.665254
dabb6bf7ad48efda9e8648fba6d951094e0de749
4,283
nasm
Assembly
kernel/x86dev/pit.nasm
r-tty/radios
fdfaaadd256564ea3ed1b7fc408e7aecf648ae2b
[ "BSD-3-Clause" ]
null
null
null
kernel/x86dev/pit.nasm
r-tty/radios
fdfaaadd256564ea3ed1b7fc408e7aecf648ae2b
[ "BSD-3-Clause" ]
null
null
null
kernel/x86dev/pit.nasm
r-tty/radios
fdfaaadd256564ea3ed1b7fc408e7aecf648ae2b
[ "BSD-3-Clause" ]
null
null
null
;------------------------------------------------------------------------------- ; pit.nasm - Programmable Interval Timer (PIT) control routines. ;------------------------------------------------------------------------------- %include "hw/pit.ah" %include "hw/kbc.ah" publicproc TMR_InitCounter,TMR_CountCPUspeed publicdata ?CPUspeed section .bss ?CPUspeed RESD 1 section .text ; TMR_InitCounter - initialize counter. ; Input: AL=control byte, ; CX=divisor rate. ; Output: CF=0 - OK, ; CF=1 - error, AX=error code. proc TMR_InitCounter cmp al,0C0h ; Counter number is okay? jae .Err mpush eax,edx out PORT_TIMER_CTL,al mov ah,al shr al,6 ; AL=counter number mov dl,PORT_TIMER_C0 add dl,al xor dh,dh ; DX=counter port test ah,PITCW_LB ; Write low byte? jz .WrHiByte mov al,cl out dx,al test ah,PITCW_HB ; Write high byte? jz .OK .WrHiByte: mov al,ch out dx,al .OK: mpop edx,eax clc ret .Err: mov ax,ERR_TMR_BadCNBR ; Error: bad counter number stc ret endp ;--------------------------------------------------------------- ; TMR_ReadOnFly - read counter value "on the fly". ; Input: AL=counter number (0..2), ; CF=0 - read byte, ; CF=1 - read word. ; Output: CF=0 - OK, AX (AL)=read value; ; CF=1 - error, AX=error code. proc TMR_ReadOnFly pushfd cmp al,3 jae .Error push edx mov dx,PORT_TIMER_C0 add dl,al shl al,7 out PORT_TIMER_CTL,al PORTDELAY in al,dx test byte [esp+4],1 ; Read one byte? jz .OK xchg al,ah in al,dx xchg al,ah .OK: pop edx popfd clc ret .Error: popfd mov ax,ERR_TMR_BadCNBR ; Error: bad counter number stc .Exit: ret endp ;--------------------------------------------------------------- ; TMR_Delay - timer delay. ; Input: CX=number of counter 0 ticks. ; Output: none. ; Note: doesn't disable interrupt. proc TMR_Delay mpush eax,ecx xor al,al stc call TMR_ReadOnFly sbb ax,cx mov cx,ax .Loop: xor al,al stc call TMR_ReadOnFly cmp ax,cx jbe .Exit jmp .Loop .Exit: mpop ecx,eax ret endp ;--------------------------------------------------------------- ; TMR_DelayLong - long timer delay. ; Input: ECX=number of counter 0 ticks * 10000h ; Output:none. proc TMR_DelayLong push edx mov edx,ecx .Loop: mov cx,-1 call TMR_Delay dec edx jnz .Loop pop edx ret endp ;--------------------------------------------------------------- ; TMR_CountCPUspeed - count CPU speed rate and store it in ; the [?CPUspeed] variable. ; Input: none. ; Output: none. proc TMR_CountCPUspeed mpush eax,ebx,edx,esi,edi xor ebx,ebx xor ecx,ecx xor edx,edx mov bx,5555h mov di,7AAAh cli ; Disable GATE2 on keyboard controller mKBC_Gate2_ctrl 0 ; Initialize counter 2: clock generator (mode2), LSB/MSB mov al,PITCW_CT2+PITCW_Mode2+PITCW_LH call TMR_InitCounter mov cl,3Eh ; Start the counter mKBC_Gate2_ctrl 1 jmp .Loop1 ; Clear pipeline .Loop1: %rep 33 mov ax,di div bx %endrep dec cl jz .NextTest jmp .Loop1 ; Stop the counter and store its value in ESI .NextTest: mKBC_Gate2_ctrl 0 xor eax,eax in al,PORT_TIMER_C2 mov ah,al in al,PORT_TIMER_C2 xchg al,ah mov esi,eax xor ecx,ecx mov cl,3Eh xor edx,edx ; Start the counter again mKBC_Gate2_ctrl 1 jmp .Loop2 .Loop2: mov ax,di div bx loop .Loop2 ; Finally, count the clock in al,PORT_KBC_1 and al,~KBC_P1_T2G out PORT_KBC_1,al xor eax,eax in al,PORT_TIMER_C2 mov ah,al in al,PORT_TIMER_C2 xchg al,ah mov ecx,eax sub ecx,esi mov eax,5A26F5h xor edx,edx div ecx xor ecx,ecx .Loop3: inc ecx sub eax,64h ja .Loop3 mov [?CPUspeed],ecx .Exit: sti mpop edi,esi,edx,ebx,eax ret endp ;--------------------------------------------------------------- ; TMR_GetLoopsPerSecond - get number of loops per second. ; Input: none. ; Output: ECX=loops per second. proc TMR_GetLoopsPerSecond cli mov al,PITCW_CT1+PITCW_Mode2+PITCW_LH xor ecx,ecx call TMR_InitCounter mov ecx,32000 .Loop: nop dec ecx jnz .Loop in al,PORT_TIMER_C1 mov ah,al in al,PORT_TIMER_C1 xchg al,ah xor ecx,ecx ; XXX ret endp ;---------------------------------------------------------------
19.035556
80
0.585104
f14d67c19c758c4871b986fe910a6a3e4e855674
1,555
asm
Assembly
asm/doorrando.asm
oobitydoo/ALttPDoorRandomizer
ef5e94b4dd885344fa3c389c15c59af8179c3561
[ "MIT" ]
null
null
null
asm/doorrando.asm
oobitydoo/ALttPDoorRandomizer
ef5e94b4dd885344fa3c389c15c59af8179c3561
[ "MIT" ]
null
null
null
asm/doorrando.asm
oobitydoo/ALttPDoorRandomizer
ef5e94b4dd885344fa3c389c15c59af8179c3561
[ "MIT" ]
null
null
null
!add = "clc : adc" !sub = "sec : sbc" !bge = "bcs" !blt = "bcc" ; Free RAM notes ; Normal doors use $AB-AC for scrolling indicator ; Normal doors use $FE to store the trap door indicator ; Spiral doors use $045e to store stair type ; Gfx uses $b1 to for sub-sub-sub-module thing ; Hooks into various routines incsrc drhooks.asm ;Main Code org $278000 ;138000 incsrc normal.asm incsrc spiral.asm incsrc gfx.asm incsrc keydoors.asm incsrc overrides.asm ;incsrc edges.asm ;incsrc math.asm warnpc $279000 ; Data Section org $279000 OffsetTable: dw -8, 8 DRMode: dw 0 DRFlags: dw 0 DRScroll: db 0 ; Vert 0,6,0 Horz 2,0,8 org $279010 CoordIndex: ; Horizontal 1st db 2, 0 ; Coordinate Index $20-$23 OppCoordIndex: db 0, 2 ; Swapped coordinate Index $20-$23 (minor optimization) CameraIndex: ; Horizontal 1st db 0, 6 ; Camera Index $e2-$ea CamQuadIndex: ; Horizontal 1st db 8, 0 ; Camera quadrants $600-$60f ShiftQuadIndex: db 2, 1 ; see ShiftQuad func (relates to $a9,$aa) CamBoundIndex: ; Horizontal 1st db 0, 4 ; Camera Bounds $0618-$61f OppCamBoundIndex: ; Horizontal 1st db 4, 0 ; Camera Bounds $0618-$61f CamBoundBaseLine: ; X camera stuff is 1st column todo Y camera needs more testing dw $007f, $0077 ; Left/Top camera bounds when at edge or layout frozen dw $0007, $000b ; Left/Top camera bounds when not frozen + appropriate low byte $22/$20 (preadj. by #$78/#$6c) dw $00ff, $010b ; Right/Bot camera bounds when not frozen + appropriate low byte $20/$22 dw $017f, $0187 ; Right/Bot camera bound when at edge or layout frozen incsrc doortables.asm
25.916667
110
0.731833
c2a71731c2389b01028256eccdbd7358a5458bd8
603
asm
Assembly
factorial_iter.asm
jatin69/mca102-SP
5d46231025504f7f7b9bbd59e4f4f748d7369258
[ "MIT" ]
null
null
null
factorial_iter.asm
jatin69/mca102-SP
5d46231025504f7f7b9bbd59e4f4f748d7369258
[ "MIT" ]
null
null
null
factorial_iter.asm
jatin69/mca102-SP
5d46231025504f7f7b9bbd59e4f4f748d7369258
[ "MIT" ]
null
null
null
; Author - Jatin Rohilla ; Course - MCA 102 ; Objective - Factorial - iterative ; data segment DATA SEGMENT ; number whose factorial needs to be found ; works upto 7! due to DD size limits NUMBER DD 5 ; to store factorial of the number FACTORIAL DD ? DATA ENDS ; code segment CODE SEGMENT ASSUME DS:DATA,CS:CODE START: MOV AX,DATA MOV DS,AX ; base condition MOV AX,1 ; multiplication occurs as n(n-1)(n-2).. MOV CX,NUMBER FACT: MUL CX ;MOV FACTORIAL,AX LOOP FACT MOV FACTORIAL,AX CODE ENDS END START
15.461538
47
0.620232
b508c14c579d51a11fd6d919e4a8a2154604cf85
600
asm
Assembly
oeis/024/A024047.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/024/A024047.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/024/A024047.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A024047: a(n) = 4^n - n^11. ; Submitted by Jon Maiga ; 1,3,-2032,-177083,-4194048,-48827101,-362792960,-1977310359,-8589869056,-31380797465,-99998951424,-285307476307,-742991593472,-1792093285173,-4049296734208,-8648682117551,-17587891077120,-34254716438449,-64199690602496,-116215380991275,-203700488372224,-345879454031117,-566726115366912,-882441013736263,-1240206166458368,-1258285884173001,833255140382720,12455337942926461,63764084570456064,276029866386005915,1135206804606846976,4586277541530983073,18410715276690587648,73736434188324479647 mov $1,4 pow $1,$0 pow $0,11 sub $1,$0 mov $0,$1
60
494
0.823333
bd6d1334d3f1d99b9ea25918d68ba525decde46a
497
asm
Assembly
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/memalign.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/memalign.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/memalign.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; void *memalign(size_t alignment, size_t size) INCLUDE "clib_cfg.asm" SECTION code_alloc_malloc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $01 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _memalign EXTERN _aligned_alloc defc _memalign = _aligned_alloc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ELSE ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _memalign EXTERN _memalign_unlocked defc _memalign = _memalign_unlocked ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ENDIF ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
16.032258
47
0.49497
e62f594ef62e1b2f48a182e216e98e78c46cf671
592
asm
Assembly
oeis/031/A031371.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/031/A031371.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/031/A031371.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A031371: a(n) = prime(5n-1). ; Submitted by Simon Strandgaard ; 7,23,43,67,89,109,139,167,193,227,251,277,311,347,373,401,433,461,491,523,569,599,619,653,683,727,757,797,827,859,887,937,971,1009,1033,1063,1097,1129,1181,1217,1249,1289,1307,1367,1423,1447,1481,1499,1549,1579,1609,1637,1693,1723,1759,1801,1861,1879,1931,1979,2003,2039,2083,2113,2143,2207,2243,2281,2311,2351,2383,2417,2459,2521,2551,2609,2657,2683,2707,2731,2777,2803,2851,2897,2939,2971,3023,3067,3119,3169,3209,3253,3301,3329,3361,3407,3461,3499,3533,3559 mul $0,5 add $0,1 seq $0,173064 ; a(n) = prime(n) - 5. add $0,5
65.777778
462
0.741554
d616f01d22c8f0a6261c916504944e525eb0e1d8
1,372
asm
Assembly
eater-6502/snakeGame/lcd.asm
willgames-afk/code_stuff
6db4226c49077bdcc9a8cf1de5ae854ed366445b
[ "MIT" ]
null
null
null
eater-6502/snakeGame/lcd.asm
willgames-afk/code_stuff
6db4226c49077bdcc9a8cf1de5ae854ed366445b
[ "MIT" ]
null
null
null
eater-6502/snakeGame/lcd.asm
willgames-afk/code_stuff
6db4226c49077bdcc9a8cf1de5ae854ed366445b
[ "MIT" ]
null
null
null
;LCD SUBROUTINES ;Include labels.s lcd_wait: ;Checks the LCD busy flag until it's not set. pha ;don't overwrite the A register lda #%00000000 ;set PORTB to input sta DDRB lcd_busy: lda #RW ;Send Instruction sta PORTA lda #(RW | E) sta PORTA lda PORTB and #%10000000 ; We only care about the busy flag bne lcd_busy ;if it's set, keep looping. Otherwise, the LCD is ready. lda #RW ;Clear E bit sta PORTA lda #%11111111 ;set PORTB to output sta DDRB pla rts lcd_instruction: ;Sends an Instruction to the LCD jsr lcd_wait ;wait until the LCD is available sta PORTB ;Clear RS/RW/E, then Set E bit, then clear all. lda #0 sta PORTA lda #E sta PORTA lda #0 sta PORTA rts lcd_char: ;Sends a Character to the LCD jsr lcd_wait ;wait until the LCD is available sta PORTB ;Set RS, Clear RW/E, then Set E bit, then clear E bit. lda #RS STA PORTA lda #(RS | E) sta PORTA lda #RS sta PORTA rts lcd_initNormal: ;Sets up LCD LDA #%00111000 ;8-bit mode, 2-line display, 5x8 font jsr lcd_instruction lda #%00001110 ;Display on, Cursor on, blink off jsr lcd_instruction lda #%00000110 ;Increment and shift cursor but not display jsr lcd_instruction lda #%00000001 ;Clear the display jsr lcd_instruction
21.4375
75
0.653061
b982c02d2eaee4f818cab62c6fd1c5bea26104fc
368
asm
Assembly
data/mapHeaders/route5.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
16
2018-08-28T21:47:01.000Z
2022-02-20T20:29:59.000Z
data/mapHeaders/route5.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
5
2019-04-03T19:53:11.000Z
2022-03-11T22:49:34.000Z
data/mapHeaders/route5.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
2
2019-12-09T19:46:02.000Z
2020-12-05T21:36:30.000Z
Route5_h: db OVERWORLD ; tileset db ROUTE_5_HEIGHT, ROUTE_5_WIDTH ; dimensions (y, x) dw Route5Blocks, Route5TextPointers, Route5Script ; blocks, texts, scripts db NORTH | SOUTH ; connections NORTH_MAP_CONNECTION ROUTE_5, CERULEAN_CITY, -3, 2, CeruleanCityBlocks SOUTH_MAP_CONNECTION ROUTE_5, SAFFRON_CITY, -3, 2, SaffronCityBlocks, 1 dw Route5Object ; objects
40.888889
75
0.793478