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
394fb81197c0b51e548cbcafaaa8c19cbdcb00a6
643
asm
Assembly
oeis/097/A097137.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/097/A097137.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/097/A097137.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A097137: Convolution of 3^n and floor(n/2). ; Submitted by Jamie Morken(s3) ; 0,0,1,4,14,44,135,408,1228,3688,11069,33212,99642,298932,896803,2690416,8071256,24213776,72641337,217924020,653772070,1961316220,5883948671,17651846024,52955538084,158866614264,476599842805,1429799528428,4289398585298,12868195755908,38604587267739,115813761803232,347441285409712,1042323856229152,3126971568687473,9380914706062436,28142744118187326,84428232354561996,253284697063686007,759854091191058040,2279562273573174140,6838686820719522440,20516060462158567341,61548181386475702044 mov $1,3 pow $1,$0 div $1,2 mul $1,3 div $1,2 sub $1,$0 mov $0,$1 div $0,4
49.461538
488
0.838258
260d7c13ca6288c05db527c3aeb6bc68a2eae388
6,409
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_16280_90.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_16280_90.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_16280_90.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 %r15 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_D_ht+0x4410, %r13 nop nop add %rdi, %rdi movb $0x61, (%r13) nop inc %r8 lea addresses_WT_ht+0x1c298, %r9 nop nop nop nop nop and %r15, %r15 mov (%r9), %ecx nop nop and %rcx, %rcx lea addresses_WT_ht+0x13810, %r13 nop nop nop dec %r9 movb $0x61, (%r13) nop nop nop nop nop sub $13589, %r13 lea addresses_A_ht+0x2720, %rsi lea addresses_WT_ht+0x1bc10, %rdi clflush (%rsi) xor %r12, %r12 mov $108, %rcx rep movsw nop nop nop nop add %r13, %r13 lea addresses_D_ht+0x2551, %r13 nop nop nop sub $17745, %rcx mov $0x6162636465666768, %r9 movq %r9, %xmm5 movups %xmm5, (%r13) nop nop add $43313, %rcx lea addresses_WC_ht+0x110b0, %r8 sub $52918, %r13 movl $0x61626364, (%r8) nop nop nop nop nop add %rsi, %rsi lea addresses_WT_ht+0x1dcd0, %r15 nop nop dec %rdi movb (%r15), %cl nop nop add %r13, %r13 lea addresses_D_ht+0x12d90, %rsi lea addresses_WC_ht+0x1170, %rdi nop nop nop nop and %r9, %r9 mov $49, %rcx rep movsb lfence lea addresses_WT_ht+0x8710, %rsi lea addresses_A_ht+0x13b10, %rdi nop nop nop dec %r8 mov $50, %rcx rep movsw nop nop add $53896, %r12 lea addresses_WT_ht+0x12de0, %rsi lea addresses_WC_ht+0x1dcfe, %rdi nop nop nop and $22242, %r9 mov $17, %rcx rep movsl nop nop nop nop add $42791, %rcx pop %rsi pop %rdi pop %rcx pop %r9 pop %r8 pop %r15 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r8 push %rax push %rbx push %rdi // Faulty Load lea addresses_UC+0xf810, %rax nop nop nop nop and $22773, %rdi mov (%rax), %rbx lea oracles, %r13 and $0xff, %rbx shlq $12, %rbx mov (%r13,%rbx,1), %rbx pop %rdi pop %rbx pop %rax pop %r8 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': True, 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': True, 'congruent': 10, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}} {'00': 16280} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
37.046243
2,999
0.658293
4df3cbdc2cc108d08cd23f0065b9afa32b6ee7df
764
asm
Assembly
programs/oeis/008/A008676.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/008/A008676.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/008/A008676.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A008676: Expansion of 1/((1-x^3)*(1-x^5)). ; 1,0,0,1,0,1,1,0,1,1,1,1,1,1,1,2,1,1,2,1,2,2,1,2,2,2,2,2,2,2,3,2,2,3,2,3,3,2,3,3,3,3,3,3,3,4,3,3,4,3,4,4,3,4,4,4,4,4,4,4,5,4,4,5,4,5,5,4,5,5,5,5,5,5,5,6,5,5,6,5,6,6,5,6,6,6,6,6,6,6,7,6,6,7,6,7,7,6,7,7,7,7,7,7,7,8,7,7,8,7,8,8,7,8,8,8,8,8,8,8,9,8,8,9,8,9,9,8,9,9,9,9,9,9,9,10,9,9,10,9,10,10,9,10,10,10,10,10,10,10,11,10,10,11,10,11,11,10,11,11,11,11,11,11,11,12,11,11,12,11,12,12,11,12,12,12,12,12,12,12,13,12,12,13,12,13,13,12,13,13,13,13,13,13,13,14,13,13,14,13,14,14,13,14,14,14,14,14,14,14,15,14,14,15,14,15,15,14,15,15,15,15,15,15,15,16,15,15,16,15,16,16,15,16,16,16,16,16,16,16,17,16,16,17,16,17,17,16,17,17 mov $2,$0 mul $0,2 add $0,1 lpb $0 sub $0,4 trn $0,1 add $3,1 trn $3,$2 trn $2,3 lpe add $1,$3
50.933333
612
0.573298
c26c6e9ce7de44427fd312d6089733f78a9161cc
754
asm
Assembly
Ficha 5 - Programacao mista C++ & Assembly/2a.asm
FEUP-MIEIC/MPCP
63c9eed1a48c704a2034e04824e91fbc79538b3e
[ "MIT" ]
null
null
null
Ficha 5 - Programacao mista C++ & Assembly/2a.asm
FEUP-MIEIC/MPCP
63c9eed1a48c704a2034e04824e91fbc79538b3e
[ "MIT" ]
null
null
null
Ficha 5 - Programacao mista C++ & Assembly/2a.asm
FEUP-MIEIC/MPCP
63c9eed1a48c704a2034e04824e91fbc79538b3e
[ "MIT" ]
null
null
null
;; Funcao 2 em linguagem assembly ;; Valor de retorno: nenhum .686 .model flat, C .code ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Aumentar a intensidade da cor somando uma constante K às componentes ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; afunc3 PROC USES edi pixels: ptr byte, largura: dword, altura:dword LOCAL x: DWORD, y: DWORD ; definir posicao do pixel mov x, 0 ; [0, largura-1] mov y, 0 ; [0, altura-1] ; calcular posicao do pixel em memoria ; POS = pixels + [(y-1)*largura + (x-1)]*4 mov eax, y mul largura add eax, x shl eax, 2 mov edi, pixels add edi, eax ; mudar a cor para preto mov dword ptr [edi], 0FF000000h ret afunc3 ENDP END
22.848485
71
0.53183
561cd1bc42105fc401f7a0c9ae6133436193a6ef
4,512
asm
Assembly
demo/music/rushingheart.asm
stoneface86/tbengine
a3c6c0f2bf28426f89eedfabbd6f480f6c59d0db
[ "MIT" ]
6
2020-07-18T01:14:29.000Z
2022-03-11T18:18:52.000Z
scraps/demo/music/rushingheart.asm
stoneface86/gbsoundengine
774a9ea67143e5930f7692b86a6a011257adc0f1
[ "MIT" ]
null
null
null
scraps/demo/music/rushingheart.asm
stoneface86/gbsoundengine
774a9ea67143e5930f7692b86a6a011257adc0f1
[ "MIT" ]
null
null
null
; Artist: OmegaBagel (twitter: @omega_bagel) INCLUDE "tbengine.inc" SECTION "song_rushingheart", ROM0 PATTERN_SIZE EQU 64 DRUM_3 EQU C_6 DRUM_C EQU G_6 DRUM_7 EQU F_6 song_rushingheart:: DB $11 ; speed (2.125 frames per row, ~420 BPM) DW .ch1_main DW .ch2_main DW .ch3_main DW .ch4_main ; ============================================================================= __channel 1 .ch1_main: __track PATTERN_SIZE timbre1 setEnvelope $A7 duration 7 note G_3 duration 1 note NOTE_CUT duration 3 note G_3 duration 1 note NOTE_CUT duration 3 note D_4 duration 1 note NOTE_CUT duration 3 note D_4 duration 1 note NOTE_CUT duration 3 note C#4 duration 1 note NOTE_CUT duration 3 note C#4 duration 1 note NOTE_CUT duration 3 note D_4 duration 1 note NOTE_CUT duration 3 note D_4 duration 1 note NOTE_CUT duration 3 note G_4 duration 1 note NOTE_CUT duration 3 note G_4 duration 1 note NOTE_CUT duration 4 note D_4 duration 1 note A_4 duration 6 note A#4 duration 1 note NOTE_CUT duration 7 note A_4 duration 1 note NOTE_CUT __trackEnd snd_jump .ch1_main ; ============================================================================= __channel 2 .ch2_main: snd_call .ch2_tr0 __track PATTERN_SIZE timbre1 setEnvelope $57 duration 12 note G_5 timbre0 setEnvelope $77 duration 4 note F_3 duration 6 note G_3 duration 2 note NOTE_CUT duration 4 note A#3 duration 6 note C_4 duration 2 note NOTE_CUT duration 4 note F_3 duration 6 note G_3 duration 2 note NOTE_CUT duration 4 note C_3 note A#2 note G_2 note F_2 __trackEnd snd_call .ch2_tr0 __track PATTERN_SIZE timbre1 setEnvelope $57 duration 8 note G_5 duration 4 note NOTE_CUT timbre0 setEnvelope $77 note F_3 duration 6 note G_3 duration 2 note NOTE_CUT duration 2 note C_4 note D_4 note C_4 note A#3 duration 4 note G_3 duration 2 note C_4 note D_4 note C_4 note A#3 duration 4 note G_3 duration 2 note C_4 note D_4 note C_4 note A#3 note G_3 note F_3 note C_3 note A#2 __trackEnd snd_jump .ch2_main .ch2_tr0: __track PATTERN_SIZE timbre1 setEnvelope $57 duration 8 note G_5 duration 4 note NOTE_CUT timbre0 setEnvelope $77 note F_3 duration 6 note G_3 duration 2 note NOTE_CUT duration 4 note A#3 duration 6 note C_4 duration 2 note NOTE_CUT duration 4 note F_3 duration 6 note G_3 duration 2 note NOTE_CUT duration 4 note A#2 note C_3 note F_2 note G_2 __trackEnd snd_ret ; ============================================================================= __channel 3 .ch3_main: __track PATTERN_SIZE setEnvelope $00 duration 12 note G_3 duration 52 note NOTE_CUT __trackEnd snd_jump .ch3_main ; ============================================================================= __channel 4 .ch4_main: snd_call .ch4_tr0 __track PATTERN_SIZE setEnvelope $B1 duration 4 loopBegin note DRUM_3 loopEnd 2 duration 8 loopBegin note DRUM_C loopEnd 4 duration 4 note DRUM_C note DRUM_3 note DRUM_7 __trackEnd snd_call .ch4_tr0 __track PATTERN_SIZE setEnvelope $B1 duration 4 note DRUM_3 note DRUM_3 note DRUM_3 duration 8 note DRUM_C note DRUM_C note DRUM_C note DRUM_C note DRUM_C duration 4 note DRUM_7 duration 2 note DRUM_7 note DRUM_7 note DRUM_7 note DRUM_7 __trackEnd snd_jump .ch4_main .ch4_tr0: __track PATTERN_SIZE setEnvelope $B1 duration 4 note DRUM_3 note DRUM_3 note DRUM_3 duration 8 note DRUM_C note DRUM_C note DRUM_C note DRUM_C note DRUM_C duration 4 note DRUM_C note DRUM_7 note DRUM_C __trackEnd snd_ret __printSongSize song_rushingheart
11.480916
79
0.555851
5af03bf5dc10e785488b6f3e8c1f745f32d1a14b
910
asm
Assembly
programs/oeis/190/A190540.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/190/A190540.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/190/A190540.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A190540: 7^n - 2^n. ; 0,5,45,335,2385,16775,117585,823415,5764545,40353095,282474225,1977324695,13841283105,96889002215,678223056465,4747561477175,33232930504065,232630513856135,1628413597648305,11398895184848855,79792266296563425,558545864081186855,3909821048578793745,27368747340072527735,191581231380549637185,1341068619663931346375,9387480337647687196785,65712362363534145921815,459986536544739692541345,3219905755813179189966695,22539340290692257014121425,157775382034845804467559095,1104427674243920642010331905,7730993719707444515547159815,54116956037952111651779791665,378818692265664781648357887575,2651730845859653471710303904865,18562115921017574302315724717735,129934811447123020116897267791505,909543680129861140819655264075255,6366805760909027985740335627596225,44567640326363195900187846951312455,311973482284542371301325923775464945 mov $1,7 pow $1,$0 mov $2,2 pow $2,$0 sub $1,$2 mov $0,$1
91
828
0.906593
06e4690bbe06e0802a7d7e75c506e82b206c6876
406
nasm
Assembly
Projetos/I-VM/bin/nasm/SimpleGt.nasm
mariaeduardabicalho/Z01
a08eb895cb064aad16e512d20b09c3f02704f98d
[ "Unlicense" ]
2
2018-03-21T01:20:58.000Z
2018-04-16T14:35:51.000Z
Projetos/I-VM/bin/nasm/SimpleGt.nasm
LiuSeeker/Z01-Coldzera
097f0af689c0511598163bcf4c89afe987292f24
[ "Unlicense" ]
76
2018-03-09T12:22:41.000Z
2018-05-18T11:47:17.000Z
Projetos/I-VM/bin/nasm/SimpleGt.nasm
mariaeduardabicalho/Z01
a08eb895cb064aad16e512d20b09c3f02704f98d
[ "Unlicense" ]
null
null
null
; 0 - GT leaw $SP,%A movw (%A),%D decw %D movw %D,(%A) movw (%A),%A movw (%A),%D leaw $SP,%A subw (%A),$1,%A subw (%A),%D,%D leaw $GTscripts/../src/vmExamples/SimpleGt0,%A jg %D nop leaw $SP,%A subw (%A),$1,%A movw $0,(%A) leaw $GT2scripts/../src/vmExamples/SimpleGt0,%A jmp nop GTscripts/../src/vmExamples/SimpleGt0: leaw $SP,%A subw (%A),$1,%A movw $-1,(%A) GT2scripts/../src/vmExamples/SimpleGt0: ; End
15.615385
47
0.618227
04e8c0163faece9610084ee33b8e11d97c7e444c
15,097
asm
Assembly
src/up9600.asm
vbguyny/c64kernel
0c9c63e822aca3b9e834025da8992c825d38e733
[ "Unlicense" ]
2
2020-10-10T21:48:25.000Z
2021-04-20T03:00:10.000Z
src/up9600.asm
vbguyny/c64kernel
0c9c63e822aca3b9e834025da8992c825d38e733
[ "Unlicense" ]
1
2021-07-25T15:17:04.000Z
2021-07-27T14:49:14.000Z
src/up9600.asm
vbguyny/c64kernel
0c9c63e822aca3b9e834025da8992c825d38e733
[ "Unlicense" ]
null
null
null
;*=$C800 ; UP9600 KERNAL ADAPTER ; ORIGINALLY BY DANIAL DALLMAN ; ADAPTED 2017 FOR KERNAL BY BO ZIMMERMAN ; MODIFIED ON 2/14/2017 1:26A ; .D @0:UP9600.BIN ; PROVIDED FUNCTIONS JMP UP9600.INIT JMP UP9600.INSTALL; INSTALL AND (PROBE FOR) UP9600 (C=ERROR) JMP UP9600.ENABLE; (RE-)ENABLE INTERFACE JMP UP9600.DISABLE; DISABLE INTERFACE (EG. FOR FLOPPY ACCESSES) ; RSOUT AND RSIN BOTH MODIFY A AND X REGISTER JMP UP9600.RSOUT; PUT BYTE TO RS232 (BLOCKING) JMP UP9600.RSIN; READ BYTE FROM RS232 (C=TRYAGAIN) UP9600.IRQVECT = 788 UP9600.JIFFIES = $A2; LOWEST BYTE OF SYSTEM'S JIFFIE COUNTER UP9600.ORIGIRQ = $EA31; (MUST INCEASE JIFFIE-COUNTER !) UP9600.ORIGNMI = $FE47 UP9600.NMIVECT = 792 UP9600.WRSPTR = 670; WRITE-POINTER INTO SEND BUFFER UP9600.RDSPTR = 669; READ-POINTER INTO SEND BUFFER UP9600.WRRPTR = 667; WRITE-POINTER INTO RECEIVE BUFFER UP9600.RDRPTR = 668; READ-POINTER INTO RECEIVE BUFFER ; STATIC VARIABLES UP9600.STIME BYTE 0;; COPY OF $A2=JIFFIES TO DETECT TIMEOUTS UP9600.OUTSTAT = 169 UP9600.UPFLAG BYTE 0 UP9600.SAVBYTE BYTE 0,0,0,0 ; JIFFIES .BYTE 0 UP9600.RECPTR = 247; RECBUF = $CB00;; 247 - 248 UP9600.SNDPTR = 249; SNDBUF = $CC00;; 249 - 250 ; ; UP9600.INIT SEI LDA #<UP9600.DOOPEN STA $031A LDA #>UP9600.DOOPEN STA $031B LDA #<UP9600.DOCLOSE STA $031C LDA #>UP9600.DOCLOSE STA $031D LDA #<UP9600.DOCHKIN STA $031E LDA #>UP9600.DOCHKIN STA $031F LDA #<UP9600.DOCHKOUT STA $0320 LDA #>UP9600.DOCHKOUT STA $0321 LDA #<UP9600.DOCHRIN STA $0324 LDA #>UP9600.DOCHRIN STA $0325 LDA #<UP9600.DOGETIN STA $032A LDA #>UP9600.DOGETIN STA $032B LDA #<UP9600.DOPUT STA $0326 LDA #>UP9600.DOPUT STA $0327 CLI RTS ; ******************************* UP9600.DOOPEN PHA TYA PHA JSR UP9600.DISABLE JSR $F34A; CALL IOPEN LDY #$00 LDA $BA CMP #$02 BNE UP9600.EOPEN LDY #$00 LDA ($BB),Y CMP #$0C BCC UP9600.EOPEN LDA #$01 STA UP9600.UPFLAG JSR UP9600.INSTALL UP9600.EOPEN PLA TAY PLA LDX #$00 CLC RTS ; ******************************* UP9600.DOCHRIN LDA UP9600.UPFLAG BEQ UP9600.NOCHRIN LDA $99 CMP #$02 BEQ UP9600.DOGET2 UP9600.NOCHRIN JMP $F157 UP9600.DOGETIN LDA UP9600.UPFLAG BEQ UP9600.NOGETIN LDA $99 CMP #$02 BEQ UP9600.DOGET2 UP9600.NOGETIN JMP $F13E UP9600.DOGET2 TYA PHA TXA PHA LDA #$00 STA UP9600.SAVBYTE STA $0297 JSR UP9600.RSIN BCC UP9600.DOGOTIN PLA TAX PLA TAY LDA #$08 STA $0297 LDA #$00 CLC RTS UP9600.DOGOTIN STA UP9600.SAVBYTE UP9600.DOGET4 PLA TAX PLA TAY LDA UP9600.SAVBYTE CLC RTS ; ******************************* UP9600.DOPUT PHA LDA UP9600.UPFLAG BEQ UP9600.NOPUT1 LDA $9A CMP #$02 BEQ UP9600.DOPUT2 UP9600.NOPUT1 PLA JMP $F1CA UP9600.DOPUT2 CLC PLA JSR UP9600.RSOUT LDA #$00 STA $0297 CLC UP9600.DOPUT4 RTS ; ******************************* ; ;;;;;;;;;;;;;;;; nop nop UP9600.DOCLOSE PHA JSR UP9600.DISABLE JSR $F314 BEQ UP9600.DOCLO2 PLA CLC RTS UP9600.DOCLO2 JSR $F31F; SET BA LDA $BA CMP #$02 BEQ UP9600.DOCLO4 UP9600.DOCLO3 PLA JMP $F291 UP9600.DOCLO4 LDA #$00 STA UP9600.UPFLAG PLA LDX #$00 CLC RTS ; ******************************* UP9600.DOCHKIN PHA LDA UP9600.UPFLAG BNE UP9600.DOCHKI1 PLA JMP $F20E UP9600.DOCHKI1 PLA JSR $F30F BEQ UP9600.DOCHKI2 JMP $F701 UP9600.DOCHKI2 JSR $F31F LDA $BA CMP #$02 BEQ UP9600.DOCHKI4 CMP #$04 BCC UP9600.NOCHKIN UP9600.DOCHKI3 JSR UP9600.DISABLE JMP UP9600.NOCHKIN UP9600.DOCHKI4 STA $99 JSR UP9600.ENABLE CLC RTS UP9600.NOCHKIN JMP $F219 ; UP9600.DOCHKOUT PHA LDA UP9600.UPFLAG BNE UP9600.DOCHKO1 PLA JMP $F250 UP9600.DOCHKO1 PLA JSR $F30F BEQ UP9600.DOCHKO2 JMP $F701 UP9600.DOCHKO2 JSR $F31F LDA $BA CMP #$02 BEQ UP9600.DOCHKO4 CMP #$04 BCC UP9600.NOCHKOUT UP9600.DOCHKO3 JSR UP9600.DISABLE JMP UP9600.NOCHKOUT UP9600.DOCHKO4 STA $9A JSR UP9600.ENABLE CLC RTS UP9600.NOCHKOUT JMP $F25B ; ******************************* UP9600.NMIDOBIT PHA BIT $DD0D; CHECK BIT 7 (STARTBIT PRINT) BPL UP9600.NMIDOBI2; NO STARTBIT RECEIVED, THEN SKIP LDA #$13 STA $DD0F; START TIMER B (FORCED RELOAD, SIGNAL AT PB7) STA $DD0D; DISABLE TIMER AND FLAG INTERRUPTS LDA #<UP9600.NMIBYTRY; ON NEXT NMI CALL NMIBYTRY STA UP9600.NMIVECT; (TRIGGERED BY SDR FULL) LDA #>UP9600.NMIBYTRY STA UP9600.NMIVECT+1 UP9600.NMIDOBI2 PLA; IGNORE, IF NMI WAS TRIGGERED BY RESTORE-KEY RTI ; UP9600.NMIBYTRY PHA BIT $DD0D; CHECK BIT 7 (SDR FULL PRINT) BPL UP9600.NMIDOBI2; SDR NOT FULL, THEN SKIP (EG. RESTORE-KEY) LDA #$92 STA $DD0F; STOP TIMER B (KEEP SIGNALLING AT PB7!) STA $DD0D; ENABLE FLAG (AND TIMER) INTERRUPTS LDA #<UP9600.NMIDOBIT; ON NEXT NMI CALL NMIDOBIT STA UP9600.NMIVECT; (TRIGGERED BY A STARTBIT) LDA #>UP9600.NMIDOBIT STA UP9600.NMIVECT+1 TXA PHA TYA PHA LDA $DD0C; READ SDR (BIT0=DATABIT7,...,BIT7=DATABIT0) CMP #128; MOVE BIT7 INTO CARRY-FLAG AND #127 TAX LDA UP9600.REVTAB,X; READ DATABITS 1-7 FROM LOOKUP TABLE ADC #0; ADD DATABIT0 LDY UP9600.WRRPTR; AND WRITE IT INTO THE RECEIVE BUFFER STA (UP9600.RECPTR),Y INY STY UP9600.WRRPTR SEC;;START BUFFER FULL CHK TYA SBC UP9600.RDRPTR CMP #200 BCC UP9600.NMIBYTR2 LDA $DD01;; MORE THAN 200 BYTES IN THE RECEIVE BUFFER AND #$FD;; THEN DISABLE RTS STA $DD01 UP9600.NMIBYTR2 PLA TAY PLA TAX PLA RTI ; ******************************************************* ; IRQ PART UP9600.NEWIRQ LDA $DC0D UP9600.NEWIRQ1 LSR; READ IRQ-MASK LSR; MOVE BIT1 INTO CARRY-FLAG (TIMER B - FLAG) AND #$02; TEST BIT3 (SDR - FLAG) BEQ UP9600.NEWIRQ3; SDR NOT EMPTY, THEN SKIP THE FIRST PART LDX UP9600.OUTSTAT BEQ UP9600.NEWIRQ2; SKIP, IF WE'RE NOT WAITING FOR AN EMPTY SDR DEX STX UP9600.OUTSTAT UP9600.NEWIRQ2 ;BCC UP9600.NEWIRQ6 bcs UP9600.NEWIRQ3 jmp UP9600.NEWIRQ6 UP9600.NEWIRQ3 CLI JSR $FFEA LDA $CC ;BNE UP9600.NEWIRQ5 beq UP9600.NEWIRQ3_1 jmp UP9600.NEWIRQ5 UP9600.NEWIRQ3_1 DEC $CD ;BNE UP9600.NEWIRQ5 beq UP9600.NEWIRQ3_2 jmp UP9600.NEWIRQ5 UP9600.NEWIRQ3_2 LDA #$14 STA $CD LDY $D3 LSR $CF LDX $0287 LDA ($D1),Y BCS UP9600.NEWIRQ4 INC $CF STA $CE JSR $EA24 LDA ($F3),Y STA $0287 LDX $0286 LDA $CE UP9600.NEWIRQ4 EOR #$80 JSR $EA1C UP9600.NEWIRQ5 JSR $EA87 UP9600.NEWIRQ6 JMP $EA81 ; ******************************* ; GET BYTE FROM SERIAL INTERFACE UP9600.RSIN LDY UP9600.RDRPTR CPY UP9600.WRRPTR BEQ UP9600.RSIN3; SKIP (EMPTY BUFFER, RETURN WITH CARRY SET) LDA (UP9600.RECPTR),Y INY STY UP9600.RDRPTR PHA;;BEGIN BUFFER EMPTYING CHK TYA SEC SBC UP9600.WRRPTR CMP #206;;256-50 BCC UP9600.RSIN2 LDA #2 ORA $DD01 STA $DD01;; ENABLE RTS CLC UP9600.RSIN2 PLA UP9600.RSIN3 RTS ; ****************************** ; PUT BYTE TO SERIAL INTERFACE UP9600.RSOUT PHA STA $9E CMP #$80 AND #$7F STX $A8 STY $A7 TAX JSR UP9600.RSOUTX UP9600.RSOUT3 LDA UP9600.REVTAB,X ADC #$00 LSR SEI STA $DC0C LDA #$02 STA UP9600.OUTSTAT ROR ORA #$7F STA $DC0C CLI LDX $A8 LDY $A7 PLA RTS UP9600.RSOUTX CLI LDA #$FD STA $A2 UP9600.RSOUTX2 LDA UP9600.OUTSTAT BEQ UP9600.RSOUTX3 BIT $A2 BMI UP9600.RSOUTX2 UP9600.RSOUTX3 JMP $F490 ; ****************************** ; INSTALL (AND PROBE FOR) SERIAL INTERFACE ; RETURN WITH CARRY SET IF THERE WAS AN ERROR UP9600.INSTERR CLI SEC RTS UP9600.INSTALL SEI LDA UP9600.IRQVECT CMP #<UP9600.ORIGIRQ BNE UP9600.INSTERR; IRQ-VECTOR ALREADY CHANGED LDA UP9600.IRQVECT+1 CMP #>UP9600.ORIGIRQ BNE UP9600.INSTERR; IRQ-VECTOR ALREADY CHANGED LDA UP9600.NMIVECT CMP #<UP9600.ORIGNMI BNE UP9600.INSTERR; NMI-VECTOR ALREADY CHANGED LDA UP9600.NMIVECT+1 CMP #>UP9600.ORIGNMI BNE UP9600.INSTERR; NMI-VECTOR ALREADY CHANGED LDY #0 STY UP9600.WRSPTR STY UP9600.RDSPTR STY UP9600.WRRPTR STY UP9600.RDRPTR ; PROBE FOR RS232 INTERFACE CLI LDA #$7F STA $DD0D; DISABLE ALL NMIS LDA #$80 STA $DD03; PB7 USED AS OUTPUT STA $DD0E; STOP TIMERA STA $DD0F; STOP TIMERB BIT $DD0D; CLEAR PENDING INTERRUPTS LDX #8 UP9600.INSTALL2 STX $DD01; TOGGLE TXD STA $DD01; AND LOOK IF IT TRIGGERS AN DEX; SHIFT-REGISTER INTERRUPT BNE UP9600.INSTALL2 LDA $DD0D; CHECK FOR BIT3 (SDR-FLAG) AND #8 BEQ UP9600.INSTERR; NO INTERFACE DETECTED ; GENERATE LOOKUP TABLE LDX #0 UP9600.INSTALL3 STX UP9600.OUTSTAT; OUTSTAT USED AS TEMPORARY VARIABLE LDY #8 UP9600.INSTALL4 ASL UP9600.OUTSTAT ROR DEY BNE UP9600.INSTALL4 STA UP9600.REVTAB,X INX BPL UP9600.INSTALL3 ; ****************************** ; ENABLE SERIAL INTERFACE (IRQ+NMI) UP9600.ENABLE PHA TXA PHA TYA PHA LDA UP9600.IRQVECT CMP #<UP9600.NEWIRQ ;BNE UP9600.ENABL2 beq UP9600.ENABLE_1 jmp UP9600.ENABL2 nop nop nop nop UP9600.ENABLE_1 LDA UP9600.IRQVECT+1 CMP #>UP9600.NEWIRQ ;BNE UP9600.ENABL2 beq UP9600.ENABLE_2 jmp UP9600.ENABL2 UP9600.ENABLE_2 PLA TAY PLA TAX PLA RTS UP9600.ENABL2 SEI LDX #<UP9600.NEWIRQ; INSTALL NEW IRQ-HANDLER LDY #>UP9600.NEWIRQ STX UP9600.IRQVECT STY UP9600.IRQVECT+1 LDX #<UP9600.NMIDOBIT; INSTALL NEW NMI-HANDLER LDY #>UP9600.NMIDOBIT STX UP9600.NMIVECT STY UP9600.NMIVECT+1 LDX $2A6; PAL OR NTSC VERSION PRINT LDA UP9600.ILOTAB,X; (KEYSCAN INTERRUPT ONCE EVERY 1/64 SECOND) STA $DC06; (SORRY THIS WILL BREAK CODE, THAT USES LDA UP9600.IHITAB,X; THE TI$ - VARIABLE) STA $DC07; START VALUE FOR TIMER B (OF CIA1) TXA ASL EOR #$33; ** TIME CONSTANT FOR SENDER ** LDX #0; 51 OR 55 DEPENDING ON PAL/NTSC VERSION STA $DC04; START VALUE FOR TIMERA (OF CIA1) STX $DC05; (TIME IS AROUND 1/(2*BAUDRATE) ) ASL; ** TIME CONSTANT FOR RECEIVER ** ORA #1; 103 OR 111 DEPENDING ON PAL/NTSC VERSION STA $DD06; START VALUE FOR TIMERB (OF CIA2) STX $DD07; (TIME IS AROUND 1/BAUDRATE ) LDA #$41; START TIMERA OF CIA1, SP1 USED AS OUTPUT STA $DC0E; GENERATES THE SENDER'S BIT CLOCK LDA #1 STA UP9600.OUTSTAT STA $DC0D; DISABLE TIMERA (CIA1) INTERRUPT STA $DC0F; START TIMERB OF CIA1 (GENERATES KEYSCAN IRQ) LDA #$92; STOP TIMERB OF CIA2 (ENABLE SIGNAL AT PB7) STA $DD0F LDA #$98 BIT $DD0D; CLEAR PENDING NMIS STA $DD0D; ENABLE NMI (SDR AND FLAG) (CIA2) LDA #$8A STA $DC0D; ENABLE IRQ (TIMERB AND SDR) (CIA1) LDA #$FF STA $DD01; PB0-7 DEFAULT TO 1 STA $DC0C; SP1 DEFAULTS TO 1 SEC LDA UP9600.WRRPTR SBC UP9600.RDRPTR CMP #200 BCS UP9600.ENABLE2;; DON'T ENABLE RTS IF REC-BUFFER IS FULL LDA #2;; ENABLE RTS STA $DD03;; (THE RTS LINE IS THE ONLY OUTPUT) UP9600.ENABLE2 CLI PLA TAY PLA TAX PLA RTS ; TABLE OF TIMER VALUES FOR PAL AND NTSC VERSION UP9600.ILOTAB BYTE 149,37 ; UP9600.IHITAB BYTE 66,64 ; ******************************************************* ; DISABLE SERIAL INTERFACE UP9600.DISABLE PHA TXA PHA TYA PHA LDA UP9600.IRQVECT CMP #<UP9600.NEWIRQ BNE UP9600.NODIS LDA UP9600.IRQVECT+1 CMP #>UP9600.NEWIRQ BEQ UP9600.DISABL2 UP9600.NODIS PLA TAY PLA TAX PLA RTS UP9600.DISABL2 SEI LDA $DD01; DISABLE RTS AND #$FD STA $DD01 LDA #$7F STA $DD0D; DISABLE ALL CIA INTERRUPTS STA $DC0D LDA #$41; QUICK (AND DIRTY) HACK TO SWITCH BACK STA $DC05; TO THE DEFAULT CIA1 CONFIGURATION LDA #$81 STA $DC0D; ENABLE TIMER1 (THIS IS DEFAULT) LDA #<UP9600.ORIGIRQ; RESTORE OLD IRQ-HANDLER STA UP9600.IRQVECT LDA #>UP9600.ORIGIRQ STA UP9600.IRQVECT+1 LDA #<UP9600.ORIGNMI; RESTORE OLD NMI-HANDLER STA UP9600.NMIVECT LDA #>UP9600.ORIGNMI STA UP9600.NMIVECT+1 CLI PLA TAY PLA TAX PLA RTS ; ; UP9600.REVTAB ; .BUF 128 UP9600.PRINT NOP; :F$="UP9600.BAS":OPEN1,8,15,"S0:UP9600*":CLOSE1:SAVEF$,8
24.1552
71
0.521958
dd97568e9953d8a1fd6336c92c8ffee6ed1ff1c4
938
asm
Assembly
LAB8/q2.asm
Avigdor-Kolonimus/ASM
23327c9765ab1cc6bfe3dfaaa9a129dda5aac77a
[ "MIT" ]
null
null
null
LAB8/q2.asm
Avigdor-Kolonimus/ASM
23327c9765ab1cc6bfe3dfaaa9a129dda5aac77a
[ "MIT" ]
null
null
null
LAB8/q2.asm
Avigdor-Kolonimus/ASM
23327c9765ab1cc6bfe3dfaaa9a129dda5aac77a
[ "MIT" ]
null
null
null
MYDS SEGMENT N EQU 3 ; כמות התלמידים M DB 3 ; ציונים לתלמיד כמות MAT DB 65,37,80,0,0,0 DB 40,74,68,0,0,0 DB 87,91,79,0,0,0 MYDS ENDS sseg segment stack dw 100h dup(?) sseg ends cseg segment assume ds:MYDS,cs:cseg,ss:sseg start: mov ax,MYDS mov ds,ax ;initialization mov bx,0 mov si,0 mov ch,N ;initialization 2 L4: mov ax,0 mov cl,M mov dh,MAT[si] mov dl,MAT[si] mov al,MAT[si] inc si dec cl ;check at maximum L3: mov bl,MAT[si] cmp bl,dh jb L1 mov dh,bl ;check at minimum L1: cmp bl,dl ja L2 mov dl,bl ;addition grades L2: adc ax,bx inc si dec cl jnz L3 ;entering the maximum, minimum and average grades mov MAT[si],dl inc si mov MAT[si],dh inc si mov dx,0 mov bl,M div bx mov MAT[si],al inc si dec ch jnz L4 SOF: mov ah,4ch int 21h cseg ends end start
16.172414
52
0.579957
f3b8425973b28ae2bf878074d597657ab9a17f75
1,232
asm
Assembly
unittests/ASM/REP/F3_2A.asm
cobalt2727/FEX
13087f8425aeaad28dc81bed46a83e1d72ff0db8
[ "MIT" ]
628
2020-03-06T14:01:32.000Z
2022-03-31T06:35:14.000Z
unittests/ASM/REP/F3_2A.asm
cobalt2727/FEX
13087f8425aeaad28dc81bed46a83e1d72ff0db8
[ "MIT" ]
576
2020-03-06T08:25:12.000Z
2022-03-30T04:05:29.000Z
unittests/ASM/REP/F3_2A.asm
cobalt2727/FEX
13087f8425aeaad28dc81bed46a83e1d72ff0db8
[ "MIT" ]
38
2020-03-07T06:10:00.000Z
2022-03-29T09:27:36.000Z
%ifdef CONFIG { "RegData": { "XMM0": ["0x414243443f800000", "0x5152535455565758"], "XMM1": ["0x4142434440000000", "0x5152535455565758"], "XMM2": ["0x4142434440400000", "0x5152535455565758"], "XMM3": ["0x4142434440800000", "0x5152535455565758"], "XMM4": ["0x41424344C0800000", "0x5152535455565758"], "XMM5": ["0x41424344C0800000", "0x5152535455565758"] }, "MemoryRegions": { "0x100000000": "4096" } } %endif mov rdx, 0xe0000000 mov rax, 0x4142434445464748 mov [rdx + 8 * 0], rax mov rax, 0x5152535455565758 mov [rdx + 8 * 1], rax mov rax, 0x1 mov [rdx + 8 * 2], rax mov rax, 0x2 mov [rdx + 8 * 3], rax mov rax, 0x3 mov [rdx + 8 * 4], rax mov rax, 0x4 mov [rdx + 8 * 5], rax ; Stick something in the top 32bits to ensure correctness mov rax, 0x7fc00000FFFFFFFC mov [rdx + 8 * 6], rax movapd xmm0, [rdx + 8 * 0] movapd xmm1, [rdx + 8 * 0] movapd xmm2, [rdx + 8 * 0] movapd xmm3, [rdx + 8 * 0] movapd xmm4, [rdx + 8 * 0] movapd xmm5, [rdx + 8 * 0] mov rax, [rdx + 8 * 2] mov rbx, [rdx + 8 * 3] cvtsi2ss xmm0, rax cvtsi2ss xmm1, ebx cvtsi2ss xmm2, dword [rdx + 8 * 4] cvtsi2ss xmm3, qword [rdx + 8 * 5] mov rbx, [rdx + 8 * 6] cvtsi2ss xmm4, ebx cvtsi2ss xmm5, dword [rdx + 8 * 6] hlt
20.881356
58
0.62987
3dcd83c8d4bce94f4c55179d4bdfa803a331e78b
362
asm
Assembly
programs/oeis/165/A165984.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/165/A165984.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/165/A165984.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A165984: Number of ways to put n indistinguishable balls into n^3 distinguishable boxes. ; 1,1,36,3654,766480,275234400,151111164204,117774526188844,123672890985095232,168324948170849366820,288216356245328994082600,606320062786763763996747618,1537230010624231669678572481296,4622745700243196227504110670860680 sub $2,$0 pow $2,3 bin $2,$0 gcd $1,$2 mov $0,$1
40.222222
220
0.837017
4ce8c03a189c08edbdda6e88f062882b40a6acb5
6,991
asm
Assembly
Transynther/x86/_processed/NONE/_ht_st_zr_un_/i9-9900K_12_0xa0.log_435_650.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_/i9-9900K_12_0xa0.log_435_650.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_/i9-9900K_12_0xa0.log_435_650.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x16bf9, %r8 nop and $17950, %rbx mov $0x6162636465666768, %r13 movq %r13, %xmm4 movups %xmm4, (%r8) nop cmp $64323, %rdi lea addresses_WT_ht+0x25f9, %rsi lea addresses_UC_ht+0xd799, %rdi nop nop nop nop nop xor %rax, %rax mov $14, %rcx rep movsl nop nop nop nop nop and $57478, %rbx lea addresses_WT_ht+0x17d75, %rax nop nop nop and %rsi, %rsi mov $0x6162636465666768, %r13 movq %r13, %xmm4 movups %xmm4, (%rax) nop nop nop nop nop and $860, %rsi lea addresses_UC_ht+0xe119, %rbx clflush (%rbx) nop nop nop nop add $33467, %rcx mov $0x6162636465666768, %rdi movq %rdi, %xmm1 vmovups %ymm1, (%rbx) dec %rsi lea addresses_WT_ht+0x5bf9, %rax clflush (%rax) nop nop nop and $51576, %rbx mov (%rax), %rsi nop nop add %rax, %rax lea addresses_WT_ht+0x133f9, %rsi lea addresses_UC_ht+0x39d1, %rdi and $10612, %r15 mov $3, %rcx rep movsb nop nop nop nop and $11255, %r13 lea addresses_A_ht+0x173f9, %rsi lea addresses_D_ht+0xf281, %rdi nop nop add %r13, %r13 mov $80, %rcx rep movsq nop nop nop inc %rax lea addresses_A_ht+0x4d99, %rbx nop nop nop lfence movb (%rbx), %r13b nop nop nop sub $50462, %r15 lea addresses_UC_ht+0x7bf9, %r8 clflush (%r8) dec %rsi movb $0x61, (%r8) dec %r8 lea addresses_A_ht+0x19f59, %r8 nop nop nop nop nop add %rcx, %rcx vmovups (%r8), %ymm1 vextracti128 $1, %ymm1, %xmm1 vpextrq $0, %xmm1, %rdi sub %r13, %r13 lea addresses_WT_ht+0x37f9, %rsi nop nop nop nop nop sub $55116, %rbx movups (%rsi), %xmm6 vpextrq $0, %xmm6, %rcx nop nop and $33298, %r15 lea addresses_D_ht+0x1ab62, %rcx clflush (%rcx) xor $4885, %r13 vmovups (%rcx), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $0, %xmm0, %rsi nop nop nop xor $37584, %rcx lea addresses_WC_ht+0xae38, %rsi lea addresses_A_ht+0x71d2, %rdi nop nop nop nop xor $30562, %r15 mov $96, %rcx rep movsw nop nop nop nop sub $14247, %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r8 pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %r15 push %r8 push %rbp push %rsi // Store lea addresses_WT+0x10913, %r11 clflush (%r11) nop nop add $1917, %rsi movw $0x5152, (%r11) nop nop nop nop nop sub $57791, %r8 // Store lea addresses_UC+0x1b3f9, %r11 nop nop nop inc %r15 mov $0x5152535455565758, %r12 movq %r12, (%r11) nop nop nop xor $23201, %r14 // Store lea addresses_A+0x3bf9, %rsi clflush (%rsi) nop nop cmp $24050, %r15 movb $0x51, (%rsi) nop nop nop nop nop add $43132, %r15 // Faulty Load lea addresses_A+0x3bf9, %r12 nop dec %r14 movups (%r12), %xmm0 vpextrq $1, %xmm0, %rbp lea oracles, %r15 and $0xff, %rbp shlq $12, %rbp mov (%r15,%rbp,1), %rbp pop %rsi pop %rbp pop %r8 pop %r15 pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_A', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_WT', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 10, 'type': 'addresses_UC', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_A', 'AVXalign': False, 'size': 1}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_A', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16}} {'src': {'same': True, 'congruent': 7, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16}} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 4, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32}} {'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 11, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_UC_ht'}} {'src': {'same': False, 'congruent': 11, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_D_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 1}} {'src': {'NT': False, 'same': True, 'congruent': 2, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 0, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_A_ht'}} {'a4': 1, '00': 39, '3b': 1, '61': 2, '21': 2, '03': 2, '44': 2, '76': 2, 'c9': 1, 'fc': 1, '4c': 2, '42': 10, '74': 1, 'e9': 2, 'f5': 15, '84': 2, '3a': 5, '0e': 4, 'c1': 1, '45': 28, '8b': 1, '70': 1, 'c6': 1, '5c': 1, 'de': 7, 'd9': 1, '01': 2, '9d': 1, 'ee': 4, 'f0': 6, '4f': 3, '02': 2, '14': 2, '40': 5, '95': 1, '8a': 1, 'ff': 211, '65': 1, 'dd': 4, 'a2': 1, 'f2': 1, '31': 11, 'fb': 1, 'f7': 1, 'f3': 1, '7a': 21, '19': 1, 'bb': 2, '2a': 1, '24': 2, '3f': 1, '05': 4, '93': 1, '9c': 6, 'd7': 1, '4a': 1} 00 9c 9c 9c 9c 9c 9c ff ff 00 00 8b ff ff ff ff ff ff ff ff ff 74 7a 7a 7a 7a de 00 00 7a 7a 7a 7a 7a ff ff ff ff ff ff ff 4c 4c de 45 44 45 de de ff 31 31 00 45 45 de de ff ff ff 00 00 05 05 05 05 01 01 f3 ee ee ff ff ff ff ff 00 42 00 ff 45 42 00 c9 ff ff c1 00 00 00 bb bb ff ff ff ff ff 42 ff ff ff ff ff de 93 42 45 00 00 ff 7a ff ff ff ff 76 76 42 ff 31 ff ff ff 5c 7a ff ff ff ff ff ff ff ff ff 31 ff ff ff 31 45 ff ff ff ff ff ff ff ff 00 2a ff 21 21 31 ff 45 00 00 ff ff ff fc ff ff 31 ee ee e9 e9 31 ff ff ff ff 7a 45 45 45 ff 31 42 31 42 42 31 7a 45 a2 ff ff 9d ff ff ff 40 ff 8a f5 f5 45 f5 f5 f5 ff ff 70 ff ff 45 7a f5 45 7a 7a f5 ff 00 ff ff ff ff ff 45 ff ff ff 3b 45 ff 7a 7a ff 7a f5 00 24 24 19 ff ff ff ff ff f5 f5 f5 00 00 42 02 ff fb ff 00 f5 f5 ff f0 f0 45 ff ff ff ff f5 ff dd dd dd dd d9 ff ff ff ff c6 ff ff ff ff ff 45 45 45 45 45 00 00 00 00 95 f5 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 7a ff ff ff ff ff 45 ff ff ff ff ff ff ff 45 ff 00 ff ff ff ff ff 4f 4f 4f ff 3a 40 3a 3a 3f 40 3a ff 7a 00 ff ff ff ff ff ff 14 14 ff 3a ff ff 03 03 02 00 00 00 00 00 f7 f2 f0 f0 f0 f0 ff ff 45 ff ff d7 40 ff ff ff ff ff 40 ff ff ff ff ff ff ff ff 00 a4 00 00 ff 00 ff ff 0e ff ff 84 84 ff ff ff ff ff ff ff ff ff 42 ff ff ff ff ff 65 61 61 ff 45 ff 45 ff ff ff 4a 44 0e 0e 0e */
26.992278
1,304
0.630239
53f3a44fa51f3f8a114fb6899e516075b32def0c
840
asm
Assembly
src/z80asm/dev/z80asm_lib/sbc_hl_sp.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
src/z80asm/dev/z80asm_lib/sbc_hl_sp.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
src/z80asm/dev/z80asm_lib/sbc_hl_sp.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
; Substitute for the z80 sbc hl,sp instruction ; CPU Min T Max T ; 8080 156 156 ; 8085 154 154 ; gbz80 232 232 ; r2k 4 4 ; z180 10 10 ; z80 15 15 ; z80n 15 15 SECTION code_crt0_sccz80 PUBLIC __z80asm__sbc_hl_sp __z80asm__sbc_hl_sp: push bc ld b, a push de ex de, hl ; subtrahed to de IF __CPU_GBZ80__ ld hl, sp+6 ; minuend to hl, compensate for return address, DE and BC in stack ELSE push af ld hl, 8 ; minuend to hl, compensate for return address, DE, BC and AF in stack add hl, sp pop af ENDIF ld a, e sbc a, l ld e, a ld a, d sbc a, h ld d, a ex de, hl pop de ld a, b pop bc ret
20.487805
100
0.495238
0fa7c61ee40623d51592c09da72b9d7781682fb8
35,522
asm
Assembly
ioq3/build/release-js-js/baseq3/game/g_target.asm
RawTechnique/quake-port
2e7c02095f0207831a6026ec23b1c1d75c24f98d
[ "MIT" ]
1
2021-12-31T10:26:58.000Z
2021-12-31T10:26:58.000Z
ioq3/build/release-js-js/baseq3/game/g_target.asm
unfriendly/quake-port
2e7c02095f0207831a6026ec23b1c1d75c24f98d
[ "MIT" ]
28
2019-03-05T20:45:07.000Z
2019-03-05T20:45:57.000Z
ioq3/build/release-js-js/baseq3/game/g_target.asm
unfriendly/quake-port
2e7c02095f0207831a6026ec23b1c1d75c24f98d
[ "MIT" ]
null
null
null
export Use_Target_Give code proc Use_Target_Give 64 12 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 8 ADDRFP4 8 INDIRP4 ASGNP4 ADDRFP4 8 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CVPU4 4 CNSTU4 0 NEU4 $54 ADDRGP4 $53 JUMPV LABELV $54 ADDRFP4 0 INDIRP4 CNSTI4 644 ADDP4 INDIRP4 CVPU4 4 CNSTU4 0 NEU4 $56 ADDRGP4 $53 JUMPV LABELV $56 ADDRLP4 4 ARGP4 CNSTI4 0 ARGI4 CNSTU4 56 ARGU4 ADDRGP4 qk_memset CALLP4 pop ADDRLP4 0 CNSTP4 0 ASGNP4 ADDRGP4 $59 JUMPV LABELV $58 ADDRLP4 0 INDIRP4 CNSTI4 800 ADDP4 INDIRP4 CVPU4 4 CNSTU4 0 NEU4 $61 ADDRGP4 $59 JUMPV LABELV $61 ADDRLP4 0 INDIRP4 ARGP4 ADDRFP4 8 INDIRP4 ARGP4 ADDRLP4 4 ARGP4 ADDRGP4 Touch_Item CALLV pop ADDRLP4 0 INDIRP4 CNSTI4 684 ADDP4 CNSTI4 0 ASGNI4 ADDRLP4 0 INDIRP4 ARGP4 ADDRGP4 trap_UnlinkEntity CALLV pop LABELV $59 ADDRLP4 0 INDIRP4 ARGP4 CNSTI4 648 ARGI4 ADDRFP4 0 INDIRP4 CNSTI4 644 ADDP4 INDIRP4 ARGP4 ADDRLP4 60 ADDRGP4 G_Find CALLP4 ASGNP4 ADDRLP4 0 ADDRLP4 60 INDIRP4 ASGNP4 ADDRLP4 60 INDIRP4 CVPU4 4 CNSTU4 0 NEU4 $58 LABELV $53 endproc Use_Target_Give 64 12 export SP_target_give proc SP_target_give 0 0 ADDRFP4 0 INDIRP4 CNSTI4 704 ADDP4 ADDRGP4 Use_Target_Give ASGNP4 LABELV $63 endproc SP_target_give 0 0 export Use_target_remove_powerups proc Use_target_remove_powerups 0 12 ADDRFP4 8 ADDRFP4 8 INDIRP4 ASGNP4 ADDRFP4 8 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CVPU4 4 CNSTU4 0 NEU4 $65 ADDRGP4 $64 JUMPV LABELV $65 ADDRFP4 8 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CNSTI4 340 ADDP4 INDIRI4 CNSTI4 0 EQI4 $67 CNSTI4 1 ARGI4 ADDRGP4 Team_ReturnFlag CALLV pop ADDRGP4 $68 JUMPV LABELV $67 ADDRFP4 8 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CNSTI4 344 ADDP4 INDIRI4 CNSTI4 0 EQI4 $69 CNSTI4 2 ARGI4 ADDRGP4 Team_ReturnFlag CALLV pop ADDRGP4 $70 JUMPV LABELV $69 ADDRFP4 8 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CNSTI4 348 ADDP4 INDIRI4 CNSTI4 0 EQI4 $71 CNSTI4 0 ARGI4 ADDRGP4 Team_ReturnFlag CALLV pop LABELV $71 LABELV $70 LABELV $68 ADDRFP4 8 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CNSTI4 312 ADDP4 ARGP4 CNSTI4 0 ARGI4 CNSTU4 64 ARGU4 ADDRGP4 qk_memset CALLP4 pop LABELV $64 endproc Use_target_remove_powerups 0 12 export SP_target_remove_powerups proc SP_target_remove_powerups 0 0 ADDRFP4 0 INDIRP4 CNSTI4 704 ADDP4 ADDRGP4 Use_target_remove_powerups ASGNP4 LABELV $73 endproc SP_target_remove_powerups 0 0 export Think_Target_Delay proc Think_Target_Delay 4 8 ADDRLP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 ARGP4 ADDRLP4 0 INDIRP4 CNSTI4 768 ADDP4 INDIRP4 ARGP4 ADDRGP4 G_UseTargets CALLV pop LABELV $74 endproc Think_Target_Delay 4 8 export Use_Target_Delay proc Use_Target_Delay 8 0 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRLP4 0 ADDRGP4 qk_rand CALLI4 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 684 ADDP4 ADDRGP4 level+32 INDIRI4 CVIF4 4 CNSTF4 1148846080 ADDRFP4 0 INDIRP4 CNSTI4 792 ADDP4 INDIRF4 ADDRFP4 0 INDIRP4 CNSTI4 796 ADDP4 INDIRF4 CNSTF4 1073741824 ADDRLP4 0 INDIRI4 CNSTI4 32767 BANDI4 CVIF4 4 CNSTF4 1191181824 DIVF4 CNSTF4 1056964608 SUBF4 MULF4 MULF4 ADDF4 MULF4 ADDF4 CVFI4 4 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 688 ADDP4 ADDRGP4 Think_Target_Delay ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 768 ADDP4 ADDRFP4 8 INDIRP4 ASGNP4 LABELV $75 endproc Use_Target_Delay 8 0 export SP_target_delay proc SP_target_delay 4 12 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRGP4 $80 ARGP4 ADDRGP4 $81 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 792 ADDP4 ARGP4 ADDRLP4 0 ADDRGP4 G_SpawnFloat CALLI4 ASGNI4 ADDRLP4 0 INDIRI4 CNSTI4 0 NEI4 $78 ADDRGP4 $82 ARGP4 ADDRGP4 $83 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 792 ADDP4 ARGP4 ADDRGP4 G_SpawnFloat CALLI4 pop LABELV $78 ADDRFP4 0 INDIRP4 CNSTI4 792 ADDP4 INDIRF4 CNSTF4 0 NEF4 $84 ADDRFP4 0 INDIRP4 CNSTI4 792 ADDP4 CNSTF4 1065353216 ASGNF4 LABELV $84 ADDRFP4 0 INDIRP4 CNSTI4 704 ADDP4 ADDRGP4 Use_Target_Delay ASGNP4 LABELV $77 endproc SP_target_delay 4 12 export Use_Target_Score proc Use_Target_Score 4 12 ADDRFP4 8 INDIRP4 ARGP4 ADDRLP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CNSTI4 488 ADDP4 ARGP4 ADDRLP4 0 INDIRP4 CNSTI4 756 ADDP4 INDIRI4 ARGI4 ADDRGP4 AddScore CALLV pop LABELV $86 endproc Use_Target_Score 4 12 export SP_target_score proc SP_target_score 0 0 ADDRFP4 0 INDIRP4 CNSTI4 756 ADDP4 INDIRI4 CNSTI4 0 NEI4 $88 ADDRFP4 0 INDIRP4 CNSTI4 756 ADDP4 CNSTI4 1 ASGNI4 LABELV $88 ADDRFP4 0 INDIRP4 CNSTI4 704 ADDP4 ADDRGP4 Use_Target_Score ASGNP4 LABELV $87 endproc SP_target_score 0 0 export Use_Target_Print proc Use_Target_Print 4 8 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 8 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $91 ADDRFP4 0 INDIRP4 CNSTI4 528 ADDP4 INDIRI4 CNSTI4 4 BANDI4 CNSTI4 0 EQI4 $91 ADDRGP4 $93 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 636 ADDP4 INDIRP4 ARGP4 ADDRLP4 0 ADDRGP4 va CALLP4 ASGNP4 ADDRFP4 8 INDIRP4 CVPU4 4 ADDRGP4 g_entities CVPU4 4 SUBU4 CVUI4 4 CNSTI4 804 DIVI4 ARGI4 ADDRLP4 0 INDIRP4 ARGP4 ADDRGP4 trap_SendServerCommand CALLV pop ADDRGP4 $90 JUMPV LABELV $91 ADDRFP4 0 INDIRP4 CNSTI4 528 ADDP4 INDIRI4 CNSTI4 3 BANDI4 CNSTI4 0 EQI4 $94 ADDRFP4 0 INDIRP4 CNSTI4 528 ADDP4 INDIRI4 CNSTI4 1 BANDI4 CNSTI4 0 EQI4 $96 ADDRGP4 $93 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 636 ADDP4 INDIRP4 ARGP4 ADDRLP4 0 ADDRGP4 va CALLP4 ASGNP4 CNSTI4 1 ARGI4 ADDRLP4 0 INDIRP4 ARGP4 ADDRGP4 G_TeamCommand CALLV pop LABELV $96 ADDRFP4 0 INDIRP4 CNSTI4 528 ADDP4 INDIRI4 CNSTI4 2 BANDI4 CNSTI4 0 EQI4 $90 ADDRGP4 $93 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 636 ADDP4 INDIRP4 ARGP4 ADDRLP4 0 ADDRGP4 va CALLP4 ASGNP4 CNSTI4 2 ARGI4 ADDRLP4 0 INDIRP4 ARGP4 ADDRGP4 G_TeamCommand CALLV pop ADDRGP4 $90 JUMPV LABELV $94 ADDRGP4 $93 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 636 ADDP4 INDIRP4 ARGP4 ADDRLP4 0 ADDRGP4 va CALLP4 ASGNP4 CNSTI4 -1 ARGI4 ADDRLP4 0 INDIRP4 ARGP4 ADDRGP4 trap_SendServerCommand CALLV pop LABELV $90 endproc Use_Target_Print 4 8 export SP_target_print proc SP_target_print 0 0 ADDRFP4 0 INDIRP4 CNSTI4 704 ADDP4 ADDRGP4 Use_Target_Print ASGNP4 LABELV $100 endproc SP_target_print 0 0 export Use_Target_Speaker proc Use_Target_Speaker 4 12 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 528 ADDP4 INDIRI4 CNSTI4 3 BANDI4 CNSTI4 0 EQI4 $102 ADDRFP4 0 INDIRP4 CNSTI4 156 ADDP4 INDIRI4 CNSTI4 0 EQI4 $104 ADDRFP4 0 INDIRP4 CNSTI4 156 ADDP4 CNSTI4 0 ASGNI4 ADDRGP4 $103 JUMPV LABELV $104 ADDRFP4 0 INDIRP4 CNSTI4 156 ADDP4 ADDRFP4 0 INDIRP4 CNSTI4 788 ADDP4 INDIRI4 ASGNI4 ADDRGP4 $103 JUMPV LABELV $102 ADDRFP4 0 INDIRP4 CNSTI4 528 ADDP4 INDIRI4 CNSTI4 8 BANDI4 CNSTI4 0 EQI4 $106 ADDRFP4 8 INDIRP4 ARGP4 CNSTI4 45 ARGI4 ADDRFP4 0 INDIRP4 CNSTI4 788 ADDP4 INDIRI4 ARGI4 ADDRGP4 G_AddEvent CALLV pop ADDRGP4 $107 JUMPV LABELV $106 ADDRFP4 0 INDIRP4 CNSTI4 528 ADDP4 INDIRI4 CNSTI4 4 BANDI4 CNSTI4 0 EQI4 $108 ADDRFP4 0 INDIRP4 ARGP4 CNSTI4 46 ARGI4 ADDRFP4 0 INDIRP4 CNSTI4 788 ADDP4 INDIRI4 ARGI4 ADDRGP4 G_AddEvent CALLV pop ADDRGP4 $109 JUMPV LABELV $108 ADDRFP4 0 INDIRP4 ARGP4 CNSTI4 45 ARGI4 ADDRFP4 0 INDIRP4 CNSTI4 788 ADDP4 INDIRI4 ARGI4 ADDRGP4 G_AddEvent CALLV pop LABELV $109 LABELV $107 LABELV $103 LABELV $101 endproc Use_Target_Speaker 4 12 export SP_target_speaker proc SP_target_speaker 96 16 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRGP4 $82 ARGP4 ADDRGP4 $81 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 792 ADDP4 ARGP4 ADDRGP4 G_SpawnFloat CALLI4 pop ADDRGP4 $111 ARGP4 ADDRGP4 $81 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 796 ADDP4 ARGP4 ADDRGP4 G_SpawnFloat CALLI4 pop ADDRGP4 $114 ARGP4 ADDRGP4 $115 ARGP4 ADDRLP4 0 ARGP4 ADDRLP4 68 ADDRGP4 G_SpawnString CALLI4 ASGNI4 ADDRLP4 68 INDIRI4 CNSTI4 0 NEI4 $112 ADDRFP4 0 INDIRP4 CNSTI4 92 ADDP4 ARGP4 ADDRLP4 72 ADDRGP4 vtos CALLP4 ASGNP4 ADDRGP4 $116 ARGP4 ADDRLP4 72 INDIRP4 ARGP4 ADDRGP4 G_Error CALLV pop LABELV $112 ADDRLP4 0 INDIRP4 INDIRI1 CVII4 1 CNSTI4 42 NEI4 $117 ADDRLP4 72 ADDRFP4 0 INDIRP4 CNSTI4 528 ADDP4 ASGNP4 ADDRLP4 72 INDIRP4 ADDRLP4 72 INDIRP4 INDIRI4 CNSTI4 8 BORI4 ASGNI4 LABELV $117 ADDRLP4 0 INDIRP4 ARGP4 ADDRGP4 $121 ARGP4 ADDRLP4 72 ADDRGP4 qk_strstr CALLP4 ASGNP4 ADDRLP4 72 INDIRP4 CVPU4 4 CNSTU4 0 NEU4 $119 ADDRLP4 4 ARGP4 CNSTI4 64 ARGI4 ADDRGP4 $122 ARGP4 ADDRLP4 0 INDIRP4 ARGP4 ADDRGP4 Com_sprintf CALLI4 pop ADDRGP4 $120 JUMPV LABELV $119 ADDRLP4 4 ARGP4 ADDRLP4 0 INDIRP4 ARGP4 CNSTI4 64 ARGI4 ADDRGP4 Q_strncpyz CALLV pop LABELV $120 ADDRLP4 4 ARGP4 ADDRLP4 76 ADDRGP4 G_SoundIndex CALLI4 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 788 ADDP4 ADDRLP4 76 INDIRI4 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 4 ADDP4 CNSTI4 7 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 184 ADDP4 ADDRFP4 0 INDIRP4 CNSTI4 788 ADDP4 INDIRI4 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 172 ADDP4 CNSTF4 1092616192 ADDRFP4 0 INDIRP4 CNSTI4 792 ADDP4 INDIRF4 MULF4 CVFI4 4 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 168 ADDP4 CNSTF4 1092616192 ADDRFP4 0 INDIRP4 CNSTI4 796 ADDP4 INDIRF4 MULF4 CVFI4 4 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 528 ADDP4 INDIRI4 CNSTI4 1 BANDI4 CNSTI4 0 EQI4 $123 ADDRFP4 0 INDIRP4 CNSTI4 156 ADDP4 ADDRFP4 0 INDIRP4 CNSTI4 788 ADDP4 INDIRI4 ASGNI4 LABELV $123 ADDRFP4 0 INDIRP4 CNSTI4 704 ADDP4 ADDRGP4 Use_Target_Speaker ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 528 ADDP4 INDIRI4 CNSTI4 4 BANDI4 CNSTI4 0 EQI4 $125 ADDRLP4 92 ADDRFP4 0 INDIRP4 CNSTI4 424 ADDP4 ASGNP4 ADDRLP4 92 INDIRP4 ADDRLP4 92 INDIRP4 INDIRI4 CNSTI4 32 BORI4 ASGNI4 LABELV $125 ADDRFP4 0 INDIRP4 CNSTI4 24 ADDP4 ADDRFP4 0 INDIRP4 CNSTI4 92 ADDP4 INDIRB ASGNB 12 ADDRFP4 0 INDIRP4 ARGP4 ADDRGP4 trap_LinkEntity CALLV pop LABELV $110 endproc SP_target_speaker 96 16 export target_laser_think proc target_laser_think 120 32 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 764 ADDP4 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $128 ADDRLP4 80 ADDRFP4 0 INDIRP4 CNSTI4 764 ADDP4 ASGNP4 ADDRLP4 84 ADDRLP4 80 INDIRP4 INDIRP4 ASGNP4 ADDRLP4 88 CNSTF4 1056964608 ASGNF4 ADDRLP4 0 ADDRLP4 84 INDIRP4 CNSTI4 92 ADDP4 INDIRF4 ADDRLP4 88 INDIRF4 ADDRLP4 84 INDIRP4 CNSTI4 436 ADDP4 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 92 ADDRLP4 80 INDIRP4 INDIRP4 ASGNP4 ADDRLP4 0+4 ADDRLP4 92 INDIRP4 CNSTI4 96 ADDP4 INDIRF4 ADDRLP4 88 INDIRF4 ADDRLP4 92 INDIRP4 CNSTI4 440 ADDP4 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 96 ADDRFP4 0 INDIRP4 CNSTI4 764 ADDP4 INDIRP4 ASGNP4 ADDRLP4 0+8 ADDRLP4 96 INDIRP4 CNSTI4 100 ADDP4 INDIRF4 CNSTF4 1056964608 ADDRLP4 96 INDIRP4 CNSTI4 444 ADDP4 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 100 CNSTF4 1056964608 ASGNF4 ADDRLP4 104 ADDRFP4 0 INDIRP4 CNSTI4 764 ADDP4 ASGNP4 ADDRLP4 0 ADDRLP4 0 INDIRF4 ADDRLP4 100 INDIRF4 ADDRLP4 104 INDIRP4 INDIRP4 CNSTI4 448 ADDP4 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 0+4 ADDRLP4 0+4 INDIRF4 ADDRLP4 100 INDIRF4 ADDRLP4 104 INDIRP4 INDIRP4 CNSTI4 452 ADDP4 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 0+8 ADDRLP4 0+8 INDIRF4 CNSTF4 1056964608 ADDRFP4 0 INDIRP4 CNSTI4 764 ADDP4 INDIRP4 CNSTI4 456 ADDP4 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 672 ADDP4 ADDRLP4 0 INDIRF4 ADDRFP4 0 INDIRP4 CNSTI4 92 ADDP4 INDIRF4 SUBF4 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 676 ADDP4 ADDRLP4 0+4 INDIRF4 ADDRFP4 0 INDIRP4 CNSTI4 96 ADDP4 INDIRF4 SUBF4 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 680 ADDP4 ADDRLP4 0+8 INDIRF4 ADDRFP4 0 INDIRP4 CNSTI4 100 ADDP4 INDIRF4 SUBF4 ASGNF4 ADDRFP4 0 INDIRP4 CNSTI4 672 ADDP4 ARGP4 ADDRGP4 VectorNormalize CALLF4 pop LABELV $128 ADDRLP4 84 CNSTF4 1157627904 ASGNF4 ADDRLP4 12 ADDRFP4 0 INDIRP4 CNSTI4 92 ADDP4 INDIRF4 ADDRLP4 84 INDIRF4 ADDRFP4 0 INDIRP4 CNSTI4 672 ADDP4 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 12+4 ADDRFP4 0 INDIRP4 CNSTI4 96 ADDP4 INDIRF4 ADDRLP4 84 INDIRF4 ADDRFP4 0 INDIRP4 CNSTI4 676 ADDP4 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 12+8 ADDRFP4 0 INDIRP4 CNSTI4 100 ADDP4 INDIRF4 CNSTF4 1157627904 ADDRFP4 0 INDIRP4 CNSTI4 680 ADDP4 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 24 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 92 ADDP4 ARGP4 ADDRLP4 96 CNSTP4 0 ASGNP4 ADDRLP4 96 INDIRP4 ARGP4 ADDRLP4 96 INDIRP4 ARGP4 ADDRLP4 12 ARGP4 ADDRFP4 0 INDIRP4 INDIRI4 ARGI4 CNSTI4 100663297 ARGI4 ADDRGP4 trap_Trace CALLV pop ADDRLP4 24+52 INDIRI4 CNSTI4 0 EQI4 $140 CNSTI4 804 ADDRLP4 24+52 INDIRI4 MULI4 ADDRGP4 g_entities ADDP4 ARGP4 ADDRFP4 0 INDIRP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 768 ADDP4 INDIRP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 672 ADDP4 ARGP4 ADDRLP4 24+12 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 736 ADDP4 INDIRI4 ARGI4 CNSTI4 4 ARGI4 CNSTI4 21 ARGI4 ADDRGP4 G_Damage CALLV pop LABELV $140 ADDRFP4 0 INDIRP4 CNSTI4 104 ADDP4 ADDRLP4 24+12 INDIRB ASGNB 12 ADDRFP4 0 INDIRP4 ARGP4 ADDRGP4 trap_LinkEntity CALLV pop ADDRFP4 0 INDIRP4 CNSTI4 684 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 100 ADDI4 ASGNI4 LABELV $127 endproc target_laser_think 120 32 export target_laser_on proc target_laser_on 4 4 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 768 ADDP4 INDIRP4 CVPU4 4 CNSTU4 0 NEU4 $148 ADDRFP4 0 INDIRP4 CNSTI4 768 ADDP4 ADDRFP4 0 INDIRP4 ASGNP4 LABELV $148 ADDRFP4 0 INDIRP4 ARGP4 ADDRGP4 target_laser_think CALLV pop LABELV $147 endproc target_laser_on 4 4 export target_laser_off proc target_laser_off 0 4 ADDRFP4 0 INDIRP4 ARGP4 ADDRGP4 trap_UnlinkEntity CALLV pop ADDRFP4 0 INDIRP4 CNSTI4 684 ADDP4 CNSTI4 0 ASGNI4 LABELV $150 endproc target_laser_off 0 4 export target_laser_use proc target_laser_use 0 4 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 768 ADDP4 ADDRFP4 8 INDIRP4 ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 684 ADDP4 INDIRI4 CNSTI4 0 LEI4 $152 ADDRFP4 0 INDIRP4 ARGP4 ADDRGP4 target_laser_off CALLV pop ADDRGP4 $153 JUMPV LABELV $152 ADDRFP4 0 INDIRP4 ARGP4 ADDRGP4 target_laser_on CALLV pop LABELV $153 LABELV $151 endproc target_laser_use 0 4 export target_laser_start proc target_laser_start 16 16 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 4 ADDP4 CNSTI4 5 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 644 ADDP4 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $155 CNSTP4 0 ARGP4 CNSTI4 648 ARGI4 ADDRFP4 0 INDIRP4 CNSTI4 644 ADDP4 INDIRP4 ARGP4 ADDRLP4 4 ADDRGP4 G_Find CALLP4 ASGNP4 ADDRLP4 0 ADDRLP4 4 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CVPU4 4 CNSTU4 0 NEU4 $157 ADDRFP4 0 INDIRP4 CNSTI4 92 ADDP4 ARGP4 ADDRLP4 8 ADDRGP4 vtos CALLP4 ASGNP4 ADDRGP4 $159 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 524 ADDP4 INDIRP4 ARGP4 ADDRLP4 8 INDIRP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 644 ADDP4 INDIRP4 ARGP4 ADDRGP4 G_Printf CALLV pop LABELV $157 ADDRFP4 0 INDIRP4 CNSTI4 764 ADDP4 ADDRLP4 0 INDIRP4 ASGNP4 ADDRGP4 $156 JUMPV LABELV $155 ADDRFP4 0 INDIRP4 CNSTI4 116 ADDP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 672 ADDP4 ARGP4 ADDRGP4 G_SetMovedir CALLV pop LABELV $156 ADDRFP4 0 INDIRP4 CNSTI4 704 ADDP4 ADDRGP4 target_laser_use ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 688 ADDP4 ADDRGP4 target_laser_think ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 736 ADDP4 INDIRI4 CNSTI4 0 NEI4 $160 ADDRFP4 0 INDIRP4 CNSTI4 736 ADDP4 CNSTI4 1 ASGNI4 LABELV $160 ADDRFP4 0 INDIRP4 CNSTI4 528 ADDP4 INDIRI4 CNSTI4 1 BANDI4 CNSTI4 0 EQI4 $162 ADDRFP4 0 INDIRP4 ARGP4 ADDRGP4 target_laser_on CALLV pop ADDRGP4 $163 JUMPV LABELV $162 ADDRFP4 0 INDIRP4 ARGP4 ADDRGP4 target_laser_off CALLV pop LABELV $163 LABELV $154 endproc target_laser_start 16 16 export SP_target_laser proc SP_target_laser 0 0 ADDRFP4 0 INDIRP4 CNSTI4 688 ADDP4 ADDRGP4 target_laser_start ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 684 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 100 ADDI4 ASGNI4 LABELV $164 endproc SP_target_laser 0 0 export target_teleporter_use proc target_teleporter_use 12 12 ADDRFP4 8 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 CVPU4 4 CNSTU4 0 NEU4 $167 ADDRGP4 $166 JUMPV LABELV $167 ADDRFP4 0 INDIRP4 CNSTI4 644 ADDP4 INDIRP4 ARGP4 ADDRLP4 4 ADDRGP4 G_PickTarget CALLP4 ASGNP4 ADDRLP4 0 ADDRLP4 4 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CVPU4 4 CNSTU4 0 NEU4 $169 ADDRGP4 $171 ARGP4 ADDRGP4 G_Printf CALLV pop ADDRGP4 $166 JUMPV LABELV $169 ADDRFP4 8 INDIRP4 ARGP4 ADDRLP4 0 INDIRP4 CNSTI4 92 ADDP4 ARGP4 ADDRLP4 0 INDIRP4 CNSTI4 116 ADDP4 ARGP4 ADDRGP4 TeleportPlayer CALLV pop LABELV $166 endproc target_teleporter_use 12 12 export SP_target_teleporter proc SP_target_teleporter 4 12 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 648 ADDP4 INDIRP4 CVPU4 4 CNSTU4 0 NEU4 $173 ADDRFP4 0 INDIRP4 CNSTI4 92 ADDP4 ARGP4 ADDRLP4 0 ADDRGP4 vtos CALLP4 ASGNP4 ADDRGP4 $175 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 524 ADDP4 INDIRP4 ARGP4 ADDRLP4 0 INDIRP4 ARGP4 ADDRGP4 G_Printf CALLV pop LABELV $173 ADDRFP4 0 INDIRP4 CNSTI4 704 ADDP4 ADDRGP4 target_teleporter_use ASGNP4 LABELV $172 endproc SP_target_teleporter 4 12 export target_relay_use proc target_relay_use 36 12 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 8 ADDRFP4 8 INDIRP4 ASGNP4 ADDRLP4 0 CNSTI4 1 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 528 ADDP4 INDIRI4 ADDRLP4 0 INDIRI4 BANDI4 CNSTI4 0 EQI4 $177 ADDRLP4 4 ADDRFP4 8 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 ASGNP4 ADDRLP4 4 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $177 ADDRLP4 4 INDIRP4 CNSTI4 616 ADDP4 INDIRI4 ADDRLP4 0 INDIRI4 EQI4 $177 ADDRGP4 $176 JUMPV LABELV $177 ADDRLP4 8 CNSTI4 2 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 528 ADDP4 INDIRI4 ADDRLP4 8 INDIRI4 BANDI4 CNSTI4 0 EQI4 $179 ADDRLP4 12 ADDRFP4 8 INDIRP4 CNSTI4 516 ADDP4 INDIRP4 ASGNP4 ADDRLP4 12 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $179 ADDRLP4 12 INDIRP4 CNSTI4 616 ADDP4 INDIRI4 ADDRLP4 8 INDIRI4 EQI4 $179 ADDRGP4 $176 JUMPV LABELV $179 ADDRFP4 0 INDIRP4 CNSTI4 528 ADDP4 INDIRI4 CNSTI4 4 BANDI4 CNSTI4 0 EQI4 $181 ADDRFP4 0 INDIRP4 CNSTI4 644 ADDP4 INDIRP4 ARGP4 ADDRLP4 20 ADDRGP4 G_PickTarget CALLP4 ASGNP4 ADDRLP4 16 ADDRLP4 20 INDIRP4 ASGNP4 ADDRLP4 24 ADDRLP4 16 INDIRP4 ASGNP4 ADDRLP4 28 CNSTU4 0 ASGNU4 ADDRLP4 24 INDIRP4 CVPU4 4 ADDRLP4 28 INDIRU4 EQU4 $176 ADDRLP4 24 INDIRP4 CNSTI4 704 ADDP4 INDIRP4 CVPU4 4 ADDRLP4 28 INDIRU4 EQU4 $176 ADDRLP4 32 ADDRLP4 16 INDIRP4 ASGNP4 ADDRLP4 32 INDIRP4 ARGP4 ADDRFP4 0 INDIRP4 ARGP4 ADDRFP4 8 INDIRP4 ARGP4 ADDRLP4 32 INDIRP4 CNSTI4 704 ADDP4 INDIRP4 CALLV pop ADDRGP4 $176 JUMPV LABELV $181 ADDRFP4 0 INDIRP4 ARGP4 ADDRFP4 8 INDIRP4 ARGP4 ADDRGP4 G_UseTargets CALLV pop LABELV $176 endproc target_relay_use 36 12 export SP_target_relay proc SP_target_relay 0 0 ADDRFP4 0 INDIRP4 CNSTI4 704 ADDP4 ADDRGP4 target_relay_use ASGNP4 LABELV $185 endproc SP_target_relay 0 0 export target_kill_use proc target_kill_use 8 32 ADDRFP4 8 INDIRP4 ARGP4 ADDRLP4 0 CNSTP4 0 ASGNP4 ADDRLP4 0 INDIRP4 ARGP4 ADDRLP4 0 INDIRP4 ARGP4 ADDRLP4 4 CNSTP4 0 ASGNP4 ADDRLP4 4 INDIRP4 ARGP4 ADDRLP4 4 INDIRP4 ARGP4 CNSTI4 100000 ARGI4 CNSTI4 8 ARGI4 CNSTI4 18 ARGI4 ADDRGP4 G_Damage CALLV pop LABELV $186 endproc target_kill_use 8 32 export SP_target_kill proc SP_target_kill 0 0 ADDRFP4 0 INDIRP4 CNSTI4 704 ADDP4 ADDRGP4 target_kill_use ASGNP4 LABELV $187 endproc SP_target_kill 0 0 export SP_target_position proc SP_target_position 4 8 ADDRLP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 ARGP4 ADDRLP4 0 INDIRP4 CNSTI4 92 ADDP4 ARGP4 ADDRGP4 G_SetOrigin CALLV pop LABELV $188 endproc SP_target_position 4 8 proc target_location_linkup 16 8 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRGP4 level+9168 INDIRI4 CNSTI4 0 EQI4 $190 ADDRGP4 $189 JUMPV LABELV $190 ADDRGP4 level+9168 CNSTI4 1 ASGNI4 ADDRGP4 level+9172 CNSTP4 0 ASGNP4 CNSTI4 608 ARGI4 ADDRGP4 $195 ARGP4 ADDRGP4 trap_SetConfigstring CALLV pop ADDRLP4 0 CNSTI4 0 ASGNI4 ADDRFP4 0 ADDRGP4 g_entities ASGNP4 ADDRLP4 4 CNSTI4 1 ASGNI4 ADDRGP4 $199 JUMPV LABELV $196 ADDRLP4 8 ADDRFP4 0 INDIRP4 CNSTI4 524 ADDP4 INDIRP4 ASGNP4 ADDRLP4 8 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $201 ADDRLP4 8 INDIRP4 ARGP4 ADDRGP4 $203 ARGP4 ADDRLP4 12 ADDRGP4 Q_stricmp CALLI4 ASGNI4 ADDRLP4 12 INDIRI4 CNSTI4 0 NEI4 $201 ADDRFP4 0 INDIRP4 CNSTI4 728 ADDP4 ADDRLP4 4 INDIRI4 ASGNI4 ADDRLP4 4 INDIRI4 CNSTI4 608 ADDI4 ARGI4 ADDRFP4 0 INDIRP4 CNSTI4 636 ADDP4 INDIRP4 ARGP4 ADDRGP4 trap_SetConfigstring CALLV pop ADDRLP4 4 ADDRLP4 4 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 ADDRFP4 0 INDIRP4 CNSTI4 604 ADDP4 ADDRGP4 level+9172 INDIRP4 ASGNP4 ADDRGP4 level+9172 ADDRFP4 0 INDIRP4 ASGNP4 LABELV $201 LABELV $197 ADDRLP4 0 ADDRLP4 0 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 ADDRFP4 0 ADDRFP4 0 INDIRP4 CNSTI4 804 ADDP4 ASGNP4 LABELV $199 ADDRLP4 0 INDIRI4 ADDRGP4 level+12 INDIRI4 LTI4 $196 LABELV $189 endproc target_location_linkup 16 8 export SP_target_location proc SP_target_location 4 8 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 688 ADDP4 ADDRGP4 target_location_linkup ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 684 ADDP4 ADDRGP4 level+32 INDIRI4 CNSTI4 200 ADDI4 ASGNI4 ADDRFP4 0 INDIRP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 92 ADDP4 ARGP4 ADDRGP4 G_SetOrigin CALLV pop LABELV $206 endproc SP_target_location 4 8 import trap_SnapVector import trap_GeneticParentsAndChildSelection import trap_BotResetWeaponState import trap_BotFreeWeaponState import trap_BotAllocWeaponState import trap_BotLoadWeaponWeights import trap_BotGetWeaponInfo import trap_BotChooseBestFightWeapon import trap_BotAddAvoidSpot import trap_BotInitMoveState import trap_BotFreeMoveState import trap_BotAllocMoveState import trap_BotPredictVisiblePosition import trap_BotMovementViewTarget import trap_BotReachabilityArea import trap_BotResetLastAvoidReach import trap_BotResetAvoidReach import trap_BotMoveInDirection import trap_BotMoveToGoal import trap_BotResetMoveState import trap_BotFreeGoalState import trap_BotAllocGoalState import trap_BotMutateGoalFuzzyLogic import trap_BotSaveGoalFuzzyLogic import trap_BotInterbreedGoalFuzzyLogic import trap_BotFreeItemWeights import trap_BotLoadItemWeights import trap_BotUpdateEntityItems import trap_BotInitLevelItems import trap_BotSetAvoidGoalTime import trap_BotAvoidGoalTime import trap_BotGetLevelItemGoal import trap_BotGetMapLocationGoal import trap_BotGetNextCampSpotGoal import trap_BotItemGoalInVisButNotVisible import trap_BotTouchingGoal import trap_BotChooseNBGItem import trap_BotChooseLTGItem import trap_BotGetSecondGoal import trap_BotGetTopGoal import trap_BotGoalName import trap_BotDumpGoalStack import trap_BotDumpAvoidGoals import trap_BotEmptyGoalStack import trap_BotPopGoal import trap_BotPushGoal import trap_BotResetAvoidGoals import trap_BotRemoveFromAvoidGoals import trap_BotResetGoalState import trap_BotSetChatName import trap_BotSetChatGender import trap_BotLoadChatFile import trap_BotReplaceSynonyms import trap_UnifyWhiteSpaces import trap_BotMatchVariable import trap_BotFindMatch import trap_StringContains import trap_BotGetChatMessage import trap_BotEnterChat import trap_BotChatLength import trap_BotReplyChat import trap_BotNumInitialChats import trap_BotInitialChat import trap_BotNumConsoleMessages import trap_BotNextConsoleMessage import trap_BotRemoveConsoleMessage import trap_BotQueueConsoleMessage import trap_BotFreeChatState import trap_BotAllocChatState import trap_Characteristic_String import trap_Characteristic_BInteger import trap_Characteristic_Integer import trap_Characteristic_BFloat import trap_Characteristic_Float import trap_BotFreeCharacter import trap_BotLoadCharacter import trap_EA_ResetInput import trap_EA_GetInput import trap_EA_EndRegular import trap_EA_View import trap_EA_Move import trap_EA_DelayedJump import trap_EA_Jump import trap_EA_SelectWeapon import trap_EA_MoveRight import trap_EA_MoveLeft import trap_EA_MoveBack import trap_EA_MoveForward import trap_EA_MoveDown import trap_EA_MoveUp import trap_EA_Crouch import trap_EA_Respawn import trap_EA_Use import trap_EA_Attack import trap_EA_Talk import trap_EA_Gesture import trap_EA_Action import trap_EA_Command import trap_EA_SayTeam import trap_EA_Say import trap_AAS_PredictClientMovement import trap_AAS_Swimming import trap_AAS_AlternativeRouteGoals import trap_AAS_PredictRoute import trap_AAS_EnableRoutingArea import trap_AAS_AreaTravelTimeToGoalArea import trap_AAS_AreaReachability import trap_AAS_IntForBSPEpairKey import trap_AAS_FloatForBSPEpairKey import trap_AAS_VectorForBSPEpairKey import trap_AAS_ValueForBSPEpairKey import trap_AAS_NextBSPEntity import trap_AAS_PointContents import trap_AAS_TraceAreas import trap_AAS_PointReachabilityAreaIndex import trap_AAS_PointAreaNum import trap_AAS_Time import trap_AAS_PresenceTypeBoundingBox import trap_AAS_Initialized import trap_AAS_EntityInfo import trap_AAS_AreaInfo import trap_AAS_BBoxAreas import trap_BotUserCommand import trap_BotGetServerCommand import trap_BotGetSnapshotEntity import trap_BotLibTest import trap_BotLibUpdateEntity import trap_BotLibLoadMap import trap_BotLibStartFrame import trap_BotLibDefine import trap_BotLibVarGet import trap_BotLibVarSet import trap_BotLibShutdown import trap_BotLibSetup import trap_DebugPolygonDelete import trap_DebugPolygonCreate import trap_GetEntityToken import trap_GetUsercmd import trap_BotFreeClient import trap_BotAllocateClient import trap_EntityContact import trap_EntitiesInBox import trap_UnlinkEntity import trap_LinkEntity import trap_AreasConnected import trap_AdjustAreaPortalState import trap_InPVSIgnorePortals import trap_InPVS import trap_PointContents import trap_Trace import trap_SetBrushModel import trap_GetServerinfo import trap_SetUserinfo import trap_GetUserinfo import trap_GetConfigstring import trap_SetConfigstring import trap_SendServerCommand import trap_DropClient import trap_LocateGameData import trap_Cvar_VariableStringBuffer import trap_Cvar_VariableValue import trap_Cvar_VariableIntegerValue import trap_Cvar_Set import trap_Cvar_Update import trap_Cvar_Register import trap_SendConsoleCommand import trap_FS_Seek import trap_FS_GetFileList import trap_FS_FCloseFile import trap_FS_Write import trap_FS_Read import trap_FS_FOpenFile import trap_Args import trap_Argv import trap_Argc import trap_RealTime import trap_Milliseconds import trap_Error import trap_Print import g_proxMineTimeout import g_singlePlayer import g_enableBreath import g_enableDust import g_rankings import pmove_msec import pmove_fixed import g_smoothClients import g_blueteam import g_redteam import g_cubeTimeout import g_obeliskRespawnDelay import g_obeliskRegenAmount import g_obeliskRegenPeriod import g_obeliskHealth import g_filterBan import g_banIPs import g_teamForceBalance import g_teamAutoJoin import g_allowVote import g_blood import g_doWarmup import g_warmup import g_motd import g_synchronousClients import g_weaponTeamRespawn import g_weaponRespawn import g_debugDamage import g_debugAlloc import g_debugMove import g_inactivity import g_forcerespawn import g_quadfactor import g_knockback import g_speed import g_gravity import g_needpass import g_password import g_friendlyFire import g_capturelimit import g_timelimit import g_fraglimit import g_dmflags import g_restarted import g_maxGameClients import g_maxclients import g_cheats import g_dedicated import g_gametype import g_entities import level import Pickup_Team import CheckTeamStatus import TeamplayInfoMessage import Team_GetLocationMsg import Team_GetLocation import SelectCTFSpawnPoint import Team_FreeEntity import Team_ReturnFlag import Team_InitGame import Team_CheckHurtCarrier import Team_FragBonuses import Team_DroppedFlagThink import AddTeamScore import TeamColorString import TeamName import OtherTeam import BotTestAAS import BotAIStartFrame import BotAIShutdownClient import BotAISetupClient import BotAILoadMap import BotAIShutdown import BotAISetup import BotInterbreedEndMatch import Svcmd_BotList_f import Svcmd_AddBot_f import G_BotConnect import G_RemoveQueuedBotBegin import G_CheckBotSpawn import G_GetBotInfoByName import G_GetBotInfoByNumber import G_InitBots import Svcmd_AbortPodium_f import SpawnModelsOnVictoryPads import UpdateTournamentInfo import G_WriteSessionData import G_InitWorldSession import G_InitSessionData import G_ReadSessionData import Svcmd_GameMem_f import G_InitMemory import G_Alloc import CheckObeliskAttack import Team_CheckDroppedItem import OnSameTeam import G_RunClient import ClientEndFrame import ClientThink import ClientCommand import ClientBegin import ClientDisconnect import ClientUserinfoChanged import ClientConnect import G_Error import G_Printf import SendScoreboardMessageToAllClients import G_LogPrintf import AddTournamentQueue import G_RunThink import CheckTeamLeader import SetLeader import FindIntermissionPoint import MoveClientToIntermission import DeathmatchScoreboardMessage import FireWeapon import G_FilterPacket import G_ProcessIPBans import ConsoleCommand import SpotWouldTelefrag import CalculateRanks import AddScore import player_die import ClientSpawn import InitBodyQue import BeginIntermission import ClientRespawn import CopyToBodyQue import SelectSpawnPoint import SetClientViewAngle import PickTeam import TeamLeader import TeamCount import Weapon_HookThink import Weapon_HookFree import CheckGauntletAttack import SnapVectorTowards import CalcMuzzlePoint import LogAccuracyHit import TeleportPlayer import trigger_teleporter_touch import Touch_DoorTrigger import G_RunMover import fire_grapple import fire_bfg import fire_rocket import fire_grenade import fire_plasma import G_RunMissile import TossClientCubes import TossClientItems import body_die import G_InvulnerabilityEffect import G_RadiusDamage import G_Damage import CanDamage import BuildShaderStateConfig import AddRemap import G_SetOrigin import G_AddEvent import G_AddPredictableEvent import vectoyaw import vtos import tv import G_TouchTriggers import G_EntitiesFree import G_FreeEntity import G_Sound import G_TempEntity import G_Spawn import G_InitGentity import G_SetMovedir import G_UseTargets import G_PickTarget import G_Find import G_KillBox import G_TeamCommand import G_SoundIndex import G_ModelIndex import SaveRegisteredItems import RegisterItem import ClearRegisteredItems import Touch_Item import Add_Ammo import ArmorIndex import Think_Weapon import FinishSpawningItem import G_SpawnItem import SetRespawn import LaunchItem import Drop_Item import PrecacheItem import UseHoldableItem import RespawnItem import G_RunItem import G_CheckTeamItems import Cmd_FollowCycle_f import SetTeam import BroadcastTeamChange import StopFollowing import Cmd_Score_f import G_NewString import G_SpawnEntitiesFromString import G_SpawnVector import G_SpawnInt import G_SpawnFloat import G_SpawnString import BG_PlayerTouchesItem import BG_PlayerStateToEntityStateExtraPolate import BG_PlayerStateToEntityState import BG_TouchJumpPad import BG_AddPredictableEventToPlayerstate import BG_EvaluateTrajectoryDelta import BG_EvaluateTrajectory import BG_CanItemBeGrabbed import BG_FindItemForHoldable import BG_FindItemForPowerup import BG_FindItemForWeapon import BG_FindItem import bg_numItems import bg_itemlist import Pmove import PM_UpdateViewAngles import Com_Printf import Com_Error import Info_NextPair import Info_Validate import Info_SetValueForKey_Big import Info_SetValueForKey import Info_RemoveKey_Big import Info_RemoveKey import Info_ValueForKey import Com_TruncateLongString import va import Q_CountChar import Q_CleanStr import Q_PrintStrlen import Q_strcat import Q_strncpyz import Q_stristr import Q_strupr import Q_strlwr import Q_stricmpn import Q_strncmp import Q_stricmp import Q_isintegral import Q_isanumber import Q_isalpha import Q_isupper import Q_islower import Q_isprint import Com_RandomBytes import Com_SkipCharset import Com_SkipTokens import Com_sprintf import Com_HexStrToInt import Parse3DMatrix import Parse2DMatrix import Parse1DMatrix import SkipRestOfLine import SkipBracedSection import COM_MatchToken import COM_ParseWarning import COM_ParseError import COM_Compress import COM_ParseExt import COM_Parse import COM_GetCurrentParseLine import COM_BeginParseSession import COM_DefaultExtension import COM_CompareExtension import COM_StripExtension import COM_GetExtension import COM_SkipPath import Com_Clamp import PerpendicularVector import AngleVectors import MatrixMultiply import MakeNormalVectors import RotateAroundDirection import RotatePointAroundVector import ProjectPointOnPlane import PlaneFromPoints import AngleDelta import AngleNormalize180 import AngleNormalize360 import AnglesSubtract import AngleSubtract import LerpAngle import AngleMod import BoundsIntersectPoint import BoundsIntersectSphere import BoundsIntersect import BoxOnPlaneSide import SetPlaneSignbits import AxisCopy import AxisClear import AnglesToAxis import vectoangles import Q_crandom import Q_random import Q_rand import Q_acos import Q_log2 import VectorRotate import Vector4Scale import VectorNormalize2 import VectorNormalize import CrossProduct import VectorInverse import VectorNormalizeFast import DistanceSquared import Distance import VectorLengthSquared import VectorLength import VectorCompare import AddPointToBounds import ClearBounds import RadiusFromBounds import NormalizeColor import ColorBytes4 import ColorBytes3 import _VectorMA import _VectorScale import _VectorCopy import _VectorAdd import _VectorSubtract import _DotProduct import ByteToDir import DirToByte import ClampShort import ClampChar import Q_rsqrt import Q_fabs import Q_isnan import axisDefault import vec3_origin import g_color_table import colorDkGrey import colorMdGrey import colorLtGrey import colorWhite import colorCyan import colorMagenta import colorYellow import colorBlue import colorGreen import colorRed import colorBlack import bytedirs import Hunk_AllocDebug import FloatSwap import LongSwap import ShortSwap import CopyLongSwap import CopyShortSwap import qk_acos import qk_fabs import qk_abs import qk_tan import qk_atan2 import qk_cos import qk_sin import qk_sqrt import qk_floor import qk_ceil import qk_memcpy import qk_memset import qk_memmove import qk_sscanf import qk_vsnprintf import qk_strtol import qk_atoi import qk_strtod import qk_atof import qk_toupper import qk_tolower import qk_strncpy import qk_strstr import qk_strrchr import qk_strchr import qk_strcmp import qk_strcpy import qk_strcat import qk_strlen import qk_rand import qk_srand import qk_qsort lit align 1 LABELV $203 byte 1 116 byte 1 97 byte 1 114 byte 1 103 byte 1 101 byte 1 116 byte 1 95 byte 1 108 byte 1 111 byte 1 99 byte 1 97 byte 1 116 byte 1 105 byte 1 111 byte 1 110 byte 1 0 align 1 LABELV $195 byte 1 117 byte 1 110 byte 1 107 byte 1 110 byte 1 111 byte 1 119 byte 1 110 byte 1 0 align 1 LABELV $175 byte 1 117 byte 1 110 byte 1 116 byte 1 97 byte 1 114 byte 1 103 byte 1 101 byte 1 116 byte 1 101 byte 1 100 byte 1 32 byte 1 37 byte 1 115 byte 1 32 byte 1 97 byte 1 116 byte 1 32 byte 1 37 byte 1 115 byte 1 10 byte 1 0 align 1 LABELV $171 byte 1 67 byte 1 111 byte 1 117 byte 1 108 byte 1 100 byte 1 110 byte 1 39 byte 1 116 byte 1 32 byte 1 102 byte 1 105 byte 1 110 byte 1 100 byte 1 32 byte 1 116 byte 1 101 byte 1 108 byte 1 101 byte 1 112 byte 1 111 byte 1 114 byte 1 116 byte 1 101 byte 1 114 byte 1 32 byte 1 100 byte 1 101 byte 1 115 byte 1 116 byte 1 105 byte 1 110 byte 1 97 byte 1 116 byte 1 105 byte 1 111 byte 1 110 byte 1 10 byte 1 0 align 1 LABELV $159 byte 1 37 byte 1 115 byte 1 32 byte 1 97 byte 1 116 byte 1 32 byte 1 37 byte 1 115 byte 1 58 byte 1 32 byte 1 37 byte 1 115 byte 1 32 byte 1 105 byte 1 115 byte 1 32 byte 1 97 byte 1 32 byte 1 98 byte 1 97 byte 1 100 byte 1 32 byte 1 116 byte 1 97 byte 1 114 byte 1 103 byte 1 101 byte 1 116 byte 1 10 byte 1 0 align 1 LABELV $122 byte 1 37 byte 1 115 byte 1 46 byte 1 119 byte 1 97 byte 1 118 byte 1 0 align 1 LABELV $121 byte 1 46 byte 1 119 byte 1 97 byte 1 118 byte 1 0 align 1 LABELV $116 byte 1 116 byte 1 97 byte 1 114 byte 1 103 byte 1 101 byte 1 116 byte 1 95 byte 1 115 byte 1 112 byte 1 101 byte 1 97 byte 1 107 byte 1 101 byte 1 114 byte 1 32 byte 1 119 byte 1 105 byte 1 116 byte 1 104 byte 1 111 byte 1 117 byte 1 116 byte 1 32 byte 1 97 byte 1 32 byte 1 110 byte 1 111 byte 1 105 byte 1 115 byte 1 101 byte 1 32 byte 1 107 byte 1 101 byte 1 121 byte 1 32 byte 1 97 byte 1 116 byte 1 32 byte 1 37 byte 1 115 byte 1 0 align 1 LABELV $115 byte 1 78 byte 1 79 byte 1 83 byte 1 79 byte 1 85 byte 1 78 byte 1 68 byte 1 0 align 1 LABELV $114 byte 1 110 byte 1 111 byte 1 105 byte 1 115 byte 1 101 byte 1 0 align 1 LABELV $111 byte 1 114 byte 1 97 byte 1 110 byte 1 100 byte 1 111 byte 1 109 byte 1 0 align 1 LABELV $93 byte 1 99 byte 1 112 byte 1 32 byte 1 34 byte 1 37 byte 1 115 byte 1 34 byte 1 0 align 1 LABELV $83 byte 1 49 byte 1 0 align 1 LABELV $82 byte 1 119 byte 1 97 byte 1 105 byte 1 116 byte 1 0 align 1 LABELV $81 byte 1 48 byte 1 0 align 1 LABELV $80 byte 1 100 byte 1 101 byte 1 108 byte 1 97 byte 1 121 byte 1 0
12.645781
45
0.854513
126fc03d7d0ad9b57e46ba5f5726a014918859ca
4,498
asm
Assembly
12_TIPO_CHAR.asm
aleattene/lc2-exams
516ca7ea7979898238267af0bf095fc4538dac1a
[ "MIT" ]
null
null
null
12_TIPO_CHAR.asm
aleattene/lc2-exams
516ca7ea7979898238267af0bf095fc4538dac1a
[ "MIT" ]
null
null
null
12_TIPO_CHAR.asm
aleattene/lc2-exams
516ca7ea7979898238267af0bf095fc4538dac1a
[ "MIT" ]
null
null
null
; ************ DESCRIZIONE SOTTOPROGRAMMA ************ Il seguente sottoprogramma denominato TIPO_CAR riceve nel registro R0 il codice ASCII standard di un carattere (quindi un valore decimale compreso fra 0 e 127, estremi inclusi) e restituisce nel registro R1 un numero che indichi il tipo di carattere ricevuto in ingresso, ovvero: - 1 se il carattere è un carattere di controllo (codifica ASCII minore del numero decimale 32); - 2 se il carattere è una cifra (codifica ASCII compresa fra i numeri decimali 48 e 57, estremi inclusi); - 3 se il carattere è una lettera maiuscola (codifica ASCII compresa fra i numeri decimali 65 e 90, estremi inclusi); - 4 se il carattere è una lettera minuscola (codifica ASCII compresa fra i numeri decimali 97 e 122, estremi inclusi); - 5 se il carattere non è nessuno dei tipi precedenti. Nonostante l'utilizzo di altri registri della CPU, il sottoprogramma restituisce il controllo al programma chiamante senza che tali registri risultino alterati. ************ ESEMPI FUNZIONAMENTO SOTTOPROGRAMMA ************ INPUT 1 INPUT 2 INPUT 3 R0 109 (car. “m”) R0 36 (car. “$”) R0 55 (car. “7”) OUTPUT 1 OUTPUT 2 OUTPUT 3 R1 4 R1 5 R1 2 ; ********** PROGRAMMA TEST ********* .orig x3000 LD R0, car ; in R0 <- ASCII decimale carattere ingresso ; ********** SOTTOPROGRAMMA ********* ; TIPO_CAR ; nome sottoprogramma ST R2, store2 ; contenuto R2 -> cella indirizzata store2 ST R3, store3 ; contenuto R3 -> cella indirizzata store3 ST R4, store4 ; contenuto R4 -> cella indirizzata store4 ST R5, store5 ; contenuto R5 -> cella indirizzata store5 ST R6, store6 ; contenuto R6 -> cella indirizzata store6 AND R1,R1,#0 ; azzeramento registro output "tipo carattere" LD R2, contr_1 ; in R2 valore -31 (da costante contr_1) ADD R3,R0,R2 ; in R3 -> confr ASCII_car e ASCII_car 0 - 31 BRNZ car_cont ; se risultato nullo/negativo -> car controllo LD R4, contr_2 ; in R2 valore -47 (da costante contr_2) ADD R3,R0,R4 ; in R3 -> confr ASCII_car e ASCII_car 32 - 47 BRNZ no_car ; se risultato nullo/negativo -> no carattere ADD R4,R4,#-10 ; in R2 valore -57 ADD R3,R0,R4 ; in R3 -> confr ASCII_car e ASCII_car 48 - 57 BRNZ cifra ; se risultato nullo/negativo -> cifra ADD R4,R4,#-7 ; in R2 valore -64 ADD R3,R0,R4 ; in R3 -> confr ASCII_car e ASCII_car 58 - 64 BRNZ no_car ; se risultato nullo/negativo -> no carattere LD R5, contr_3 ; in R2 valore -90 (da costante contr_3) ADD R3,R0,R5 ; in R3 -> confr ASCII_car e ASCII_car 65 - 90 BRNZ MAIU ; se risultato nullo/negativo -> MAIUSCOLA ADD R4,R4,#-6 ; in R2 valore -96 ADD R3,R0,R4 ; in R3 -> confr ASCII_car e ASCII_car 91 - 96 BRNZ no_car ; se risultato nullo/negativo -no carattere LD R6, contr_4 ; in R6 valore -122 (da costante contr_4) ADD R3,R0,R6 ; in R3 -> confr ASCII_car e ASCII_car 97 - 122 BRNZ minu ; se risultato nullo/negativo -> minuscola BRP no_car ; se risultato positivo -> car controllo car_cont ADD R1,R1,#1 ; output R1 = 1 (come da specifica) BRNZP fine cifra ADD R1,R1,#2 ; output R1 = 2 (come da specifica) BRNZP fine MAIU ADD R1,R1,#3 ; output R1 = 3 (come da specifica) BRNZP fine minu ADD R1,R1,#4 ; output R1 = 4 (come da specifica) BRNZP fine no_car ADD R1,R1,#5 ; output R1 = 5 (come da specifica) fine LD R2, store2 ; contenuto cella indirizzata store2 -> in R2 LD R3, store3 ; contenuto cella indirizzata store3 -> in R3 LD R4, store4 ; contenuto cella indirizzata store4 -> in R4 LD R5, store5 ; contenuto cella indirizzata store5 -> in R5 LD R6, store6 ; contenuto cella indirizzata store6 -> in R6 ; RET ; ritorno da sottoprogramma ; ********** VARIABILI ************** contr_1 .fill #-31 ; costante per intervallo ASCII 0 - 31 contr_2 .fill #-47 ; costante per intervallo ASCII 32 - 47 contr_3 .fill #-90 ; costante per intervallo ASCII 65 - 90 contr_4 .fill #-122 ; costante per intervallo ASCII 97 - 122 store2 .blkw 1 ; riservo una cella memoria per contenuto R2 store3 .blkw 1 ; riservo una cella memoria per contenuto R3 store4 .blkw 1 ; riservo una cella memoria per contenuto R4 store5 .blkw 1 ; riservo una cella memoria per contenuto R5 store6 .blkw 1 ; riservo una cella memoria per contenuto R6 ;car .fill #109 ;car .fill #36 ;car .fill #55 ;car .fill #75 ;car .fill #10 ;car .fill #57 car .fill #122 ;car .fill #123 .end ; fine programma
39.113043
108
0.685416
6a4e504bb5bddd99f22acdd014567a524ebea56a
373
asm
Assembly
programs/oeis/022/A022416.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/022/A022416.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/022/A022416.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A022416: Kim-sums: "Kimberling sums" K_n + K_5. ; 4,13,16,18,21,24,26,29,31,34,37,39,42,45,47,50,52,55,58,60,63,65,68,71,73,76,79,81,84,86,89,92,94,97,100,102,105,107,110,113,115,118,120,123,126,128,131,134,136,139,141,144,147,149,152,154,157,160,162,165,168,170 mul $0,89 mov $2,17 lpb $0 div $0,$2 div $0,2 add $0,7 mov $1,$0 mov $0,1 lpe add $1,4 mov $0,$1
24.866667
214
0.640751
d4dc78f9db82472b181eca3d6fc9a8339e91974c
4,046
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2_notsx.log_21_975.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2_notsx.log_21_975.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2_notsx.log_21_975.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 %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x1208d, %r11 nop nop nop nop nop sub %r12, %r12 mov (%r11), %dx nop nop nop nop dec %r10 lea addresses_WT_ht+0x11ed, %rsi lea addresses_WT_ht+0x1a48d, %rdi nop nop nop cmp $47614, %r10 mov $103, %rcx rep movsb dec %r10 lea addresses_WT_ht+0x5b6d, %rsi lea addresses_UC_ht+0x990d, %rdi nop inc %r9 mov $112, %rcx rep movsl nop and $23143, %rdi lea addresses_UC_ht+0xf245, %rsi lea addresses_A_ht+0x1ceb6, %rdi nop nop nop nop nop dec %r10 mov $122, %rcx rep movsq nop nop xor %rcx, %rcx lea addresses_UC_ht+0x13d8d, %rdi nop nop lfence and $0xffffffffffffffc0, %rdi vmovaps (%rdi), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $1, %xmm5, %r10 nop dec %rdx lea addresses_A_ht+0x18a8d, %r10 clflush (%r10) dec %rcx movups (%r10), %xmm3 vpextrq $1, %xmm3, %rdi nop and $21037, %r11 lea addresses_WT_ht+0x928d, %rdi nop nop nop sub %r9, %r9 mov (%rdi), %r10 nop nop xor $50809, %r12 lea addresses_normal_ht+0x1ad9, %r10 clflush (%r10) nop nop nop nop inc %rdi mov $0x6162636465666768, %r11 movq %r11, %xmm4 vmovups %ymm4, (%r10) nop nop nop nop sub $24339, %r12 lea addresses_UC_ht+0x1488d, %r11 clflush (%r11) nop nop and $48619, %r10 movb (%r11), %cl xor %r11, %r11 lea addresses_normal_ht+0x1708d, %rdi nop nop nop nop xor $55698, %r10 movb (%rdi), %cl and $35000, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r15 push %r8 push %rbp push %rbx push %rdi // Store lea addresses_normal+0x948d, %rbp xor %r12, %r12 mov $0x5152535455565758, %r10 movq %r10, (%rbp) inc %r12 // Store lea addresses_RW+0x1f8c5, %rbp inc %rdi mov $0x5152535455565758, %r8 movq %r8, %xmm1 movups %xmm1, (%rbp) nop nop add %rbp, %rbp // Faulty Load lea addresses_normal+0x948d, %rbx sub $53540, %rbp movb (%rbx), %r15b lea oracles, %r12 and $0xff, %r15 shlq $12, %r15 mov (%r12,%r15,1), %r15 pop %rdi pop %rbx pop %rbp pop %r8 pop %r15 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'58': 21} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
21.752688
148
0.652249
8671851c9e3d656f8083941abe5c7c8f035d7398
1,860
asm
Assembly
programs/oeis/174/A174333.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/174/A174333.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/174/A174333.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A174333: 61*n^2. ; 0,61,244,549,976,1525,2196,2989,3904,4941,6100,7381,8784,10309,11956,13725,15616,17629,19764,22021,24400,26901,29524,32269,35136,38125,41236,44469,47824,51301,54900,58621,62464,66429,70516,74725,79056,83509,88084,92781,97600,102541,107604,112789,118096,123525,129076,134749,140544,146461,152500,158661,164944,171349,177876,184525,191296,198189,205204,212341,219600,226981,234484,242109,249856,257725,265716,273829,282064,290421,298900,307501,316224,325069,334036,343125,352336,361669,371124,380701,390400,400221,410164,420229,430416,440725,451156,461709,472384,483181,494100,505141,516304,527589,538996,550525,562176,573949,585844,597861,610000,622261,634644,647149,659776,672525,685396,698389,711504,724741,738100,751581,765184,778909,792756,806725,820816,835029,849364,863821,878400,893101,907924,922869,937936,953125,968436,983869,999424,1015101,1030900,1046821,1062864,1079029,1095316,1111725,1128256,1144909,1161684,1178581,1195600,1212741,1230004,1247389,1264896,1282525,1300276,1318149,1336144,1354261,1372500,1390861,1409344,1427949,1446676,1465525,1484496,1503589,1522804,1542141,1561600,1581181,1600884,1620709,1640656,1660725,1680916,1701229,1721664,1742221,1762900,1783701,1804624,1825669,1846836,1868125,1889536,1911069,1932724,1954501,1976400,1998421,2020564,2042829,2065216,2087725,2110356,2133109,2155984,2178981,2202100,2225341,2248704,2272189,2295796,2319525,2343376,2367349,2391444,2415661,2440000,2464461,2489044,2513749,2538576,2563525,2588596,2613789,2639104,2664541,2690100,2715781,2741584,2767509,2793556,2819725,2846016,2872429,2898964,2925621,2952400,2979301,3006324,3033469,3060736,3088125,3115636,3143269,3171024,3198901,3226900,3255021,3283264,3311629,3340116,3368725,3397456,3426309,3455284,3484381,3513600,3542941,3572404,3601989,3631696,3661525,3691476,3721549,3751744,3782061 mov $1,$0 pow $1,2 mul $1,61
265.714286
1,810
0.852688
fa47f4a55e72f1f8e64b596e9178b6b630dc5b5b
692
asm
Assembly
oeis/051/A051049.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/051/A051049.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/051/A051049.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A051049: Number of moves needed to solve an (n+1)-ring baguenaudier if two simultaneous moves of the two end rings are counted as one. ; 1,1,4,7,16,31,64,127,256,511,1024,2047,4096,8191,16384,32767,65536,131071,262144,524287,1048576,2097151,4194304,8388607,16777216,33554431,67108864,134217727,268435456,536870911,1073741824,2147483647,4294967296,8589934591,17179869184,34359738367,68719476736,137438953471,274877906944,549755813887,1099511627776,2199023255551,4398046511104,8796093022207,17592186044416,35184372088831,70368744177664,140737488355327,281474976710656,562949953421311,1125899906842624,2251799813685247,4503599627370496 mov $1,2 pow $1,$0 div $1,3 mul $1,3 add $1,1 mov $0,$1
69.2
497
0.836705
8ff0c066925d0ffe4fffe80dca702ce124e82606
842
asm
Assembly
ArmPkg/Library/CompilerIntrinsicsLib/Arm/mullu.asm
nicklela/edk2
dfafa8e45382939fb5dc78e9d37b97b500a43613
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
3,012
2015-01-01T19:58:18.000Z
2022-03-31T22:07:14.000Z
ArmPkg/Library/CompilerIntrinsicsLib/Arm/mullu.asm
nicklela/edk2
dfafa8e45382939fb5dc78e9d37b97b500a43613
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
1,199
2015-01-12T08:00:01.000Z
2022-03-29T18:14:42.000Z
ArmPkg/Library/CompilerIntrinsicsLib/Arm/mullu.asm
nicklela/edk2
dfafa8e45382939fb5dc78e9d37b97b500a43613
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
1,850
2015-01-01T11:28:12.000Z
2022-03-31T18:10:59.000Z
//------------------------------------------------------------------------------ // // Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR> // // SPDX-License-Identifier: BSD-2-Clause-Patent // //------------------------------------------------------------------------------ EXPORT __ARM_ll_mullu EXPORT __aeabi_lmul AREA Math, CODE, READONLY ; ;INT64 ;EFIAPI ;__aeabi_lmul ( ; IN INT64 Multiplicand ; IN INT32 Multiplier ; ); ; __ARM_ll_mullu mov r3, #0 // Make upper part of INT64 Multiplier 0 and use __aeabi_lmul ; ;INT64 ;EFIAPI ;__aeabi_lmul ( ; IN INT64 Multiplicand ; IN INT64 Multiplier ; ); ; __aeabi_lmul stmdb sp!, {lr} mov lr, r0 umull r0, ip, r2, lr mla r1, r2, r1, ip mla r1, r3, lr, r1 ldmia sp!, {pc} END
19.136364
81
0.477435
0b5450d7e95715c4a1f4501a26ef2a75e5d9608f
6,424
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_12000_763.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_12000_763.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_12000_763.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %r8 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x1e4ac, %rbx nop and %r8, %r8 movups (%rbx), %xmm6 vpextrq $0, %xmm6, %r11 nop nop nop nop sub $11906, %rdx lea addresses_WT_ht+0x8ac, %rcx nop nop nop nop nop dec %r15 movl $0x61626364, (%rcx) nop nop nop nop and $39128, %r8 lea addresses_A_ht+0x19c24, %rcx nop nop dec %rdx movl $0x61626364, (%rcx) nop nop nop cmp %r8, %r8 lea addresses_A_ht+0x7b2c, %rsi lea addresses_normal_ht+0x314c, %rdi clflush (%rdi) nop add $7898, %r11 mov $17, %rcx rep movsb dec %rdx lea addresses_WC_ht+0x4b8c, %rdx nop nop nop nop cmp %r8, %r8 movb (%rdx), %r9b add $11205, %r11 lea addresses_WC_ht+0x1da8c, %r9 nop cmp %rdi, %rdi movb $0x61, (%r9) nop nop nop and $32096, %r15 lea addresses_normal_ht+0x1be2c, %rbx nop nop nop nop cmp %rcx, %rcx movw $0x6162, (%rbx) cmp %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r8 pop %r15 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi // Store mov $0xd4c, %rdx nop nop inc %r14 mov $0x5152535455565758, %r9 movq %r9, (%rdx) nop nop and %r10, %r10 // REPMOV lea addresses_WT+0x1342c, %rsi lea addresses_D+0x502c, %rdi nop nop nop nop sub %r9, %r9 mov $17, %rcx rep movsb nop nop nop and %rsi, %rsi // Store lea addresses_normal+0x1e78a, %rcx nop nop nop nop sub $47581, %r14 mov $0x5152535455565758, %r10 movq %r10, (%rcx) nop nop xor %rdx, %rdx // Faulty Load lea addresses_normal+0x1582c, %r14 clflush (%r14) nop nop nop nop nop add %r10, %r10 mov (%r14), %cx lea oracles, %rdi and $0xff, %rcx shlq $12, %rcx mov (%rdi,%rcx,1), %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_P', 'size': 8, 'AVXalign': False}} {'src': {'type': 'addresses_WT', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_normal', 'size': 8, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_A_ht', 'size': 4, 'AVXalign': True}} {'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': True}} {'src': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False}} {'34': 12000} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
35.491713
2,999
0.655666
66b522556106d16fc50ae2ac4a9cce03fc353168
7,734
asm
Assembly
Driver/Printer/PrintCom/Graphics/Rotate/rotate2pass8.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Driver/Printer/PrintCom/Graphics/Rotate/rotate2pass8.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Driver/Printer/PrintCom/Graphics/Rotate/rotate2pass8.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: commom print driver routines FILE: rotate2pass8.asm AUTHOR: Dave Durran 28 Feb 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- Dave 2/28/92 Initial revision DESCRIPTION: Group of routines to support the 2 pass 8 bit high for printers that need to not print horizontally adjacent dots on the same pass. Bit 7 is the top bit. APPLICATIONS: Epson 9-pin printers 6 pass hi res mode epson9.geo eprx9.geo $Id: rotate2pass8.asm,v 1.1 97/04/18 11:51:10 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PrSend8HiresLines %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Scans to find the live print width of this group of scanlines, and sends them out, using the even/odd column hi res method for the Epson 9-pin FX type printers. CALLED BY: Driver Hi res graphics routine. PASS: es = segment of PState RETURN: newScanNumber adjusted to 3 past the end of buffer. DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Dave 03/12/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ PrSend8HiresLines proc near uses cx curBand local BandVariables .enter inherit entry: call PrLoadBandBuffer ;fill the bandBuffer call PrScanBandBuffer ;determine live print width. mov cx,dx ; jcxz colors ;if no data, just exit. mov si,offset pr_codes_SetHiGraphics call PrSendGraphicControlCode ;send the graphics code for this band jc exit call PrRotate8LinesEvenColumns ;send an interleave jc exit mov si,offset pr_codes_SetHiGraphics ;cx must live from ScanBuffer to here for this to work. call PrSendGraphicControlCode ;send the graphics code for this band jc exit call PrRotate8LinesOddColumns jc exit colors: call SetNextCMYK mov cx,es:[PS_curColorNumber] ;see if the color is the first. jcxz exit mov ax,curBand.BV_bandStart mov es:[PS_newScanNumber],ax ;set back to start of band jmp entry ;do the next color. exit: .leave ret PrSend8HiresLines endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PrRotate8LinesEvenColumns %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: CALLED BY: Internal PASS: bx = byte width of the live print area es = segment address of PState RETURN: DESTROYED: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Dave 02/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ PrRotate8LinesEvenColumns proc near uses ax,bx,cx,dx,ds,di,si,es,bp .enter mov bp,es:[PS_bandBWidth] ;width of bitmap mov si,offset GPB_bandBuffer ;source of data. segmov ds,es,ax ;save the PState segment in ds. mov es,es:[PS_bufSeg] ;get segment of output buffer. mov di, offset GPB_outputBuffer ;output buffer groupLoop: push si ;save the scan line start position mov ah,8 ;do 8 bits in one byte. byteloop: mov al,es:[si] ;get the byte for this shift shr al ;shift out the even columns.... shr al ;4 bits into target registers..... rcl dh shr al shr al rcl dl shr al shr al rcl ch shr al shr al rcl cl add si,bp ;add for the next byte down vertically. dec ah ;adjust the loop counter. jnz byteloop ;clr ah ;ah should be cleared from above.... mov al,cl ;store the target regs into the output buff. stosw ;di should be correct, and is adjusted here. mov al,ch stosw mov al,dl stosw mov al,dh stosw cmp di,PRINT_OUTPUT_BUFFER_SIZE jb bufferNotFull mov ax,ds ;swap PState, and output buffer segs. mov dx,es mov ds,dx mov es,ax call PrSendOutputBuffer jc exitPop mov ax,ds ;swap PState, and output buffer segs back. mov dx,es mov ds,dx mov es,ax bufferNotFull: ; advance the scanline start position one byte to get to next ; set of 8 pixels in the buffer pop si ;get back, and adjust scan line start inc si dec bx ; any more bytes in the row? jnz groupLoop or di,di ;see if there is any spare data left in jz exit ;if not, just exit. mov ax,ds ;swap PState, and output buffer segs. mov dx,es mov ds,dx mov es,ax call PrSendOutputBuffer ;flush out the partial buffer. exit: .leave ret exitPop: pop si ;dummy pop from inside grouploop jmp exit PrRotate8LinesEvenColumns endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PrRotate8LinesOddColumns %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: CALLED BY: Internal PASS: bx = byte width of live print area es = segment address of PState RETURN: DESTROYED: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Dave 02/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ PrRotate8LinesOddColumns proc near uses ax,bx,cx,dx,ds,di,si,es,bp .enter mov bp,es:[PS_bandBWidth] ;width of bitmap mov si,offset GPB_bandBuffer ;source of data. segmov ds,es,ax ;save the PState segment in ds. mov es,es:[PS_bufSeg] ;get segment of output buffer. mov di, offset GPB_outputBuffer ;output buffer groupLoop: push si ;save the scan line start position mov ah,8 ;do 8 bits in one byte. byteloop: mov al,es:[si] ;get the byte for this shift shr al ;store the bits into 4 target regs. rcl dh shr al shr al rcl dl shr al shr al rcl ch shr al shr al rcl cl add si,bp ;add for the next byte down vertically. dec ah ;adjust the loop counter. jnz byteloop clr al ;store the target regs into the outputBuffer mov ah,cl stosw ;di should be correct, and is adjusted here. mov ah,ch stosw mov ah,dl stosw mov ah,dh stosw cmp di,PRINT_OUTPUT_BUFFER_SIZE jb bufferNotFull mov ax,ds ;swap PState, and output buffer segs. mov dx,es mov ds,dx mov es,ax call PrSendOutputBuffer jc exitPop mov ax,ds ;swap PState, and output buffer segs back. mov dx,es mov ds,dx mov es,ax bufferNotFull: ; advance the scanline start position one byte to get to next ; set of 8 pixels in the buffer pop si ;get back, and adjust scan line start inc si dec bx ; any more bytes in the row? jnz groupLoop or di,di ;see if there is any spare data left in jz exit ;if not, just exit. mov ax,ds ;swap PState, and output buffer segs. mov dx,es mov ds,dx mov es,ax call PrSendOutputBuffer ;flush out the partial buffer. exit: .leave ret exitPop: pop si ;dummy pop from inside grouploop jmp exit PrRotate8LinesOddColumns endp
23.87037
80
0.582622
4c331e14aee28241f865d679a265f593bc6e254b
348
asm
Assembly
programs/oeis/047/A047375.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/047/A047375.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/047/A047375.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A047375: Numbers that are congruent to {0, 4, 5} mod 7. ; 0,4,5,7,11,12,14,18,19,21,25,26,28,32,33,35,39,40,42,46,47,49,53,54,56,60,61,63,67,68,70,74,75,77,81,82,84,88,89,91,95,96,98,102,103,105,109,110,112,116,117,119,123,124,126,130,131,133,137,138,140 mov $1,$0 mov $2,$0 lpb $2,1 trn $2,2 add $2,3 add $1,$2 trn $2,4 sub $1,$2 lpe
26.769231
198
0.626437
e72766a5028630790d65f029bfbe4fae8ebf8743
344
asm
Assembly
programs/oeis/123/A123903.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/123/A123903.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/123/A123903.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A123903: Total number of "Emperors" in all tournaments on n labeled nodes. ; 0,1,2,6,32,320,6144,229376,16777216,2415919104,687194767360,387028092977152,432345564227567616,959230691832896684032,4231240368651202111471616,37138201178561408246973726720,649037107316853453566312041152512 mov $1,2 mov $2,$0 sub $2,1 bin $2,2 pow $1,$2 mul $0,$1
34.4
208
0.811047
f09022bfd9e64a1e7d65f7f9bef95e73b94ad696
7,151
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_849.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_849.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_849.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_A_ht+0xcf99, %rsi nop nop nop nop nop dec %rdx movb (%rsi), %r14b nop sub %r12, %r12 lea addresses_WT_ht+0x2d21, %rsi sub %r10, %r10 mov (%rsi), %ecx and $42844, %rcx lea addresses_A_ht+0x9121, %rsi lea addresses_WC_ht+0x8121, %rdi nop cmp %rax, %rax mov $123, %rcx rep movsl nop nop cmp %r12, %r12 lea addresses_UC_ht+0xce41, %rdx nop inc %rsi mov $0x6162636465666768, %r12 movq %r12, %xmm3 vmovups %ymm3, (%rdx) nop nop nop cmp %r10, %r10 lea addresses_A_ht+0x11561, %rsi sub $36952, %rcx movb (%rsi), %al nop nop nop nop add $64510, %rsi lea addresses_D_ht+0x8ef4, %r12 nop nop nop nop and $52654, %rdi mov (%r12), %si nop xor $29750, %r12 lea addresses_normal_ht+0x1c0b1, %r14 nop xor $53910, %rax movups (%r14), %xmm5 vpextrq $1, %xmm5, %rdx nop nop nop nop add $19449, %rdx lea addresses_WC_ht+0x14521, %rcx nop nop and $7651, %rdx movb (%rcx), %r12b and %r14, %r14 lea addresses_normal_ht+0x1b21, %rdi nop nop nop and $60514, %r10 mov (%rdi), %ax nop nop nop nop nop sub $48469, %r10 lea addresses_D_ht+0x1121, %r10 nop nop add %rsi, %rsi movb (%r10), %r14b nop nop nop nop and %r12, %r12 lea addresses_D_ht+0x1b721, %rsi nop nop nop xor $20386, %rdx movb (%rsi), %cl inc %r12 lea addresses_WT_ht+0x18ce7, %rax sub %rdi, %rdi movb (%rax), %r10b nop nop and $24170, %r10 lea addresses_UC_ht+0x5937, %r14 nop sub $20734, %rax mov $0x6162636465666768, %r12 movq %r12, (%r14) nop nop nop xor %rdx, %rdx lea addresses_UC_ht+0xd321, %rax nop add %r12, %r12 mov (%rax), %rdi nop nop nop and %r12, %r12 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 %r10 push %r12 push %rbp push %rbx push %rdi push %rsi // Faulty Load lea addresses_normal+0x13921, %rbp nop and %rbx, %rbx movb (%rbp), %r12b lea oracles, %rbx and $0xff, %r12 shlq $12, %r12 mov (%rbx,%r12,1), %r12 pop %rsi pop %rdi pop %rbx pop %rbp pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
37.835979
2,999
0.652776
7d7a008e135996dd71a25db5f4b84c911280db13
108
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_dlt_s.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_dlt_s.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/z80/asm_dlt_s.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 asm_dlt_s EXTERN am48_dlt_s defc asm_dlt_s = am48_dlt_s
10.8
27
0.842593
ea956cde15ad757b1d3282cbdaa07c1abb0ab361
73
asm
Assembly
gfx/pokemon/wurmple/anim.asm
Ebernacher90/pokecrystal-allworld
5d623c760e936842cf92563912c5bd64dd69baef
[ "blessing" ]
null
null
null
gfx/pokemon/wurmple/anim.asm
Ebernacher90/pokecrystal-allworld
5d623c760e936842cf92563912c5bd64dd69baef
[ "blessing" ]
null
null
null
gfx/pokemon/wurmple/anim.asm
Ebernacher90/pokecrystal-allworld
5d623c760e936842cf92563912c5bd64dd69baef
[ "blessing" ]
null
null
null
setrepeat 2 frame 1, 12 frame 2, 08 frame 3, 08 dorepeat 1 endanim
10.428571
12
0.684932
720ebfa9eaf0583168fa47da8e36532f642669c8
157
asm
Assembly
src/test/resources/data/generationtests/sjasmplus-test2-expected.asm
cpcitor/mdlz80optimizer
75070d984e1f08474e6d397c7e0eb66d8be0c432
[ "Apache-2.0" ]
36
2020-06-29T06:52:26.000Z
2022-02-10T19:41:58.000Z
src/test/resources/data/generationtests/sjasmplus-test2-expected.asm
cpcitor/mdlz80optimizer
75070d984e1f08474e6d397c7e0eb66d8be0c432
[ "Apache-2.0" ]
39
2020-07-02T18:19:34.000Z
2022-03-27T18:08:54.000Z
src/test/resources/data/generationtests/sjasmplus-test2-expected.asm
cpcitor/mdlz80optimizer
75070d984e1f08474e6d397c7e0eb66d8be0c432
[ "Apache-2.0" ]
7
2020-07-02T06:00:05.000Z
2021-11-28T17:31:13.000Z
; Test case: evaluation of "$" inside macros and eager variables org #2000 db 8192 db 8193 db $ db 1 db 2 dw #ffff org #4000 loop: jr loop
13.083333
64
0.630573
dbfbcc365713d76a43e401e87e2e2d97e4f174f6
75
asm
Assembly
kernel/paging/paging_func.asm
kawasaki384/384OS-64
2ae4fb7c6378d60c726ffc396533490fe3a86d9d
[ "Apache-2.0", "MIT" ]
null
null
null
kernel/paging/paging_func.asm
kawasaki384/384OS-64
2ae4fb7c6378d60c726ffc396533490fe3a86d9d
[ "Apache-2.0", "MIT" ]
null
null
null
kernel/paging/paging_func.asm
kawasaki384/384OS-64
2ae4fb7c6378d60c726ffc396533490fe3a86d9d
[ "Apache-2.0", "MIT" ]
null
null
null
global SetCR3 ;void SetCR3(uint64_t value); SetCR3: mov cr3,rdi ret
18.75
43
0.706667
73d753949f93a42404e0d3cf106a045dc3aaf72e
6,888
asm
Assembly
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xca.log_21829_1810.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xca.log_21829_1810.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xca.log_21829_1810.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xbe57, %rdx and $9505, %r13 movw $0x6162, (%rdx) nop nop nop nop add $8054, %r10 lea addresses_D_ht+0x2b57, %r9 nop nop nop add %r13, %r13 mov (%r9), %bp nop nop nop sub $40736, %r13 lea addresses_UC_ht+0x1ba57, %rsi lea addresses_UC_ht+0xb6d2, %rdi nop nop nop nop nop dec %r13 mov $50, %rcx rep movsw xor %r14, %r14 lea addresses_D_ht+0x10eff, %rdx nop nop nop nop nop add $17823, %rbp mov $0x6162636465666768, %r13 movq %r13, (%rdx) nop nop nop nop nop dec %rbp lea addresses_D_ht+0x2f97, %rdx nop nop nop cmp $34421, %r10 mov (%rdx), %r13d nop nop nop nop nop cmp $1356, %rsi lea addresses_normal_ht+0x1d257, %rdx nop nop nop nop nop xor %r9, %r9 movw $0x6162, (%rdx) inc %r10 lea addresses_UC_ht+0x1657, %rcx nop nop nop nop inc %rsi movl $0x61626364, (%rcx) nop nop nop nop cmp %rdi, %rdi lea addresses_D_ht+0x9163, %rsi lea addresses_normal_ht+0x13a57, %rdi nop nop nop nop nop and %r9, %r9 mov $103, %rcx rep movsq nop sub %r9, %r9 lea addresses_A_ht+0xddd7, %rcx nop nop nop nop xor $14152, %rdx vmovups (%rcx), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %r10 nop nop dec %r9 lea addresses_normal_ht+0xc657, %rdx nop and %rdi, %rdi vmovups (%rdx), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $1, %xmm7, %r13 nop nop sub %rcx, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 pop %r14 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %rax push %rbp push %rcx // Store lea addresses_normal+0x1c9a7, %r10 nop dec %rcx movb $0x51, (%r10) nop xor %rcx, %rcx // Load lea addresses_US+0xea57, %r13 clflush (%r13) nop sub $9581, %rbp mov (%r13), %rax sub $15643, %rbp // Faulty Load lea addresses_US+0xea57, %r11 and %r10, %r10 mov (%r11), %r13w lea oracles, %r11 and $0xff, %r13 shlq $12, %r13 mov (%r11,%r13,1), %r13 pop %rcx pop %rbp pop %rax pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_US', 'same': True, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 4}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_US', 'same': True, 'AVXalign': False, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_US', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 10}} {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 2}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 1}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 10}} {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_A_ht', 'same': True, 'AVXalign': False, 'congruent': 6}} {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 10}} {'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.142857
2,999
0.655488
cd84bc52f913cad2d531fd994971b193a8337702
891
asm
Assembly
programs/oeis/322/A322844.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/322/A322844.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/322/A322844.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A322844: a(n) = (1/12)*n^2*(3*(1 + n^2) - 2*(2 + n^2)*(n mod 2)). ; 0,0,5,6,68,50,333,196,1040,540,2525,1210,5220,2366,9653,4200,16448,6936,26325,10830,40100,16170,58685,23276,83088,32500,114413,44226,153860,58870,202725,76880,262400,98736,334373,124950,420228,156066,521645,192660,640400,235340,778365,284746,937508,341550,1119893,406456,1327680,480200,1563125,563550,1828580,657306,2126493,762300,2459408,879396,2829965,1009490,3240900,1153510,3695045,1312416,4195328,1487200,4744773,1678886,5346500,1888530,6003725,2117220,6719760,2366076,7498013,2636250,8341988,2928926,9255285,3245320,10241600,3586680,11304725,3954286,12448548,4349450,13677053,4773516,14994320,5227860,16404525,5713890,17911940,6233046,19520933,6786800,21235968,7376656,23061605,8004150 pow $0,2 lpb $0 mov $2,$0 sub $0,2 seq $2,26219 ; Position of n in A026218. add $1,$2 sub $1,2 lpe div $1,2 mov $0,$1
63.642857
693
0.774411
ea1a9b61051c6d7b65af98b842d088c306e4ac45
543
asm
Assembly
nand2tetris/projects/04/mult/Mult.asm
matija94/show-me-the-code
7e98b15da03712e28417f2c808c4324989ce9bd7
[ "MIT" ]
1
2017-07-10T21:05:46.000Z
2017-07-10T21:05:46.000Z
nand2tetris/projects/04/mult/Mult.asm
matija94/show-me-the-code
7e98b15da03712e28417f2c808c4324989ce9bd7
[ "MIT" ]
null
null
null
nand2tetris/projects/04/mult/Mult.asm
matija94/show-me-the-code
7e98b15da03712e28417f2c808c4324989ce9bd7
[ "MIT" ]
null
null
null
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/04/Mult.asm // Multiplies R0 and R1 and stores the result in R2. // (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.) // Put your code here. @res M=0 // res = 0 (LOOP) // loop @R1 D=M @END D;JEQ // if ( r1 == 0) goto end @R1 M=M-1 // r1--; @R0 D=M @res D=D+M M=D // res = res + R0 @LOOP 0;JMP // goto loop (END) @res D=M @R2 M=D
14.675676
67
0.574586
bccedb6a5f19a6236a3cb4a134005d551239466a
826
asm
Assembly
oeis/270/A270607.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/270/A270607.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/270/A270607.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A270607: Number of 2X2X2 triangular 0..n arrays with some element plus some adjacent element totalling n+1 or n-1 exactly once. ; 6,0,36,36,96,120,204,252,360,432,564,660,816,936,1116,1260,1464,1632,1860,2052,2304,2520,2796,3036,3336,3600,3924,4212,4560,4872,5244,5580,5976,6336,6756,7140,7584,7992,8460,8892,9384,9840,10356,10836,11376,11880,12444,12972,13560,14112,14724,15300,15936,16536,17196,17820,18504,19152,19860,20532,21264,21960,22716,23436,24216,24960,25764,26532,27360,28152,29004,29820,30696,31536,32436,33300,34224,35112,36060,36972,37944,38880,39876,40836,41856,42840,43884,44892,45960,46992,48084,49140,50256 mov $2,$0 pow $0,2 mov $3,1 add $3,$0 mov $0,$3 add $0,4 mov $3,1 trn $3,$2 sub $3,1 pow $3,$0 sub $0,$3 add $0,2 add $2,$3 lpb $0 sub $0,1 sub $0,$2 add $0,2 mov $2,0 lpe sub $0,6 mul $0,6
33.04
496
0.733656
588699863d03bacab5e159357d0f2c7e4641890a
14,845
asm
Assembly
engine/printer/printer.asm
genterz/pokecross
5e62ab6c23e624ea82d599af306f9c52d768a8b4
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
engine/printer/printer.asm
genterz/pokecross
5e62ab6c23e624ea82d599af306f9c52d768a8b4
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
engine/printer/printer.asm
genterz/pokecross
5e62ab6c23e624ea82d599af306f9c52d768a8b4
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
SendScreenToPrinter: .loop call JoyTextDelay call CheckCancelPrint jr c, .cancel ld a, [wJumptableIndex] bit 7, a jr nz, .finished call PrinterJumptableIteration call CheckPrinterStatus call PlacePrinterStatusString call DelayFrame jr .loop .finished and a ret .cancel scf ret Printer_CleanUpAfterSend: xor a ld [wPrinterConnectionOpen], a ld [wPrinterOpcode], a ret Printer_PrepareTileMapForPrint: push af call Printer_StartTransmission pop af ld [wPrinterMargins], a call Printer_CopyTileMapToBuffer ret Printer_ExitPrinter: call ReturnToMapFromSubmenu call Printer_RestartMapMusic ret PrintDexEntry: ld a, [wPrinterQueueLength] push af ld hl, vTiles1 ld de, FontInversed lb bc, BANK(FontInversed), $80 call Request1bpp xor a ldh [hPrinter], a call Printer_PlayMusic ldh a, [rIE] push af xor a ldh [rIF], a ld a, (1 << SERIAL) | (1 << VBLANK) ldh [rIE], a call Printer_StartTransmission ln a, 1, 0 ld [wPrinterMargins], a farcall PrintPage1 call ClearTileMap ld a, %11100100 call DmgToCgbBGPals call DelayFrame ld hl, hVBlank ld a, [hl] push af ld [hl], $4 ld a, 8 ; 16 rows ld [wPrinterQueueLength], a call Printer_ResetJoypadRegisters call SendScreenToPrinter jr c, .skip_second_page ; canceled or got an error call Printer_CleanUpAfterSend ld c, 12 call DelayFrames xor a ldh [hBGMapMode], a call Printer_StartTransmission ln a, 0, 3 ld [wPrinterMargins], a farcall PrintPage2 call Printer_ResetJoypadRegisters ld a, 4 ld [wPrinterQueueLength], a call SendScreenToPrinter .skip_second_page pop af ldh [hVBlank], a call Printer_CleanUpAfterSend xor a ldh [rIF], a pop af ldh [rIE], a call Printer_ExitPrinter ld c, 8 .low_volume_delay_frames call LowVolume call DelayFrame dec c jr nz, .low_volume_delay_frames pop af ld [wPrinterQueueLength], a ret PrintPCBox: ld a, [wPrinterQueueLength] push af ld a, 18 / 2 ld [wPrinterQueueLength], a ld a, e ld [wAddrOfBoxToPrint], a ld a, d ld [wAddrOfBoxToPrint + 1], a ld a, b ld [wBankOfBoxToPrint], a ld a, c ld [wWhichBoxToPrint], a xor a ldh [hPrinter], a ld [wFinishedPrintingBox], a call Printer_PlayMusic ldh a, [rIE] push af xor a ldh [rIF], a ld a, (1 << SERIAL) | (1 << VBLANK) ldh [rIE], a ld hl, hVBlank ld a, [hl] push af ld [hl], 4 xor a ldh [hBGMapMode], a call PrintPCBox_Page1 ln a, 1, 0 ; to be loaded to wPrinterMargins call Printer_PrepareTileMapForPrint call Printer_ResetRegistersAndStartDataSend jr c, .cancel call Printer_CleanUpAfterSend ld c, 12 call DelayFrames xor a ldh [hBGMapMode], a call PrintPCBox_Page2 ln a, 0, 0 ; to be loaded to wPrinterMargins call Printer_PrepareTileMapForPrint call Printer_ResetRegistersAndStartDataSend jr c, .cancel call Printer_CleanUpAfterSend ld c, 12 call DelayFrames xor a ldh [hBGMapMode], a call PrintPCBox_Page3 ln a, 0, 0 ; to be loaded to wPrinterMargins call Printer_PrepareTileMapForPrint call Printer_ResetRegistersAndStartDataSend jr c, .cancel call Printer_CleanUpAfterSend ld c, 12 call DelayFrames xor a ldh [hBGMapMode], a call PrintPCBox_Page4 ln a, 0, 3 ; to be loaded to wPrinterMargins call Printer_PrepareTileMapForPrint call Printer_ResetRegistersAndStartDataSend .cancel pop af ldh [hVBlank], a call Printer_CleanUpAfterSend xor a ldh [rIF], a pop af ldh [rIE], a call Printer_ExitPrinter pop af ld [wPrinterQueueLength], a ret Printer_ResetRegistersAndStartDataSend: call Printer_ResetJoypadRegisters call SendScreenToPrinter ret PrintUnownStamp: ld a, [wPrinterQueueLength] push af xor a ldh [hPrinter], a call Printer_PlayMusic ldh a, [rIE] push af xor a ldh [rIF], a ld a, (1 << SERIAL) | (1 << VBLANK) ldh [rIE], a ld hl, hVBlank ld a, [hl] push af ld [hl], $4 xor a ldh [hBGMapMode], a call LoadTileMapToTempTileMap farcall PlaceUnownPrinterFrontpic ln a, 0, 0 ; to be loaded to wPrinterMargins call Printer_PrepareTileMapForPrint call Call_LoadTempTileMapToTileMap call Printer_ResetJoypadRegisters ld a, 18 / 2 ld [wPrinterQueueLength], a .loop call JoyTextDelay call CheckCancelPrint jr c, .done ld a, [wJumptableIndex] bit 7, a jr nz, .done call PrinterJumptableIteration ld a, [wJumptableIndex] cp $2 jr nc, .check_status ld a, 6 / 2 ld [wPrinterRowIndex], a .check_status call CheckPrinterStatus call PlacePrinterStatusString call DelayFrame jr .loop .done pop af ldh [hVBlank], a call Printer_CleanUpAfterSend call Call_LoadTempTileMapToTileMap xor a ldh [rIF], a pop af ldh [rIE], a pop af ld [wPrinterQueueLength], a ret PrintMailAndExit: call PrintMail call Printer_ExitPrinter ret PrintMail: ld a, [wPrinterQueueLength] push af xor a ldh [hPrinter], a call Printer_PlayMusic ldh a, [rIE] push af xor a ldh [rIF], a ld a, (1 << SERIAL) | (1 << VBLANK) ldh [rIE], a xor a ldh [hBGMapMode], a ln a, 1, 3 ; to be loaded to wPrinterMargins call Printer_PrepareTileMapForPrint ld hl, hVBlank ld a, [hl] push af ld [hl], %0100 ld a, 18 / 2 ld [wPrinterQueueLength], a call SendScreenToPrinter pop af ldh [hVBlank], a call Printer_CleanUpAfterSend call Printer_CopyBufferToTileMap xor a ldh [rIF], a pop af ldh [rIE], a pop af ld [wPrinterQueueLength], a ret PrintPartymon: ld a, [wPrinterQueueLength] push af xor a ldh [hPrinter], a call Printer_PlayMusic ldh a, [rIE] push af xor a ldh [rIF], a ld a, (1 << SERIAL) | (1 << VBLANK) ldh [rIE], a xor a ldh [hBGMapMode], a farcall PrintPartyMonPage1 ln a, 1, 0 ; to be loaded to wPrinterMargins call Printer_PrepareTileMapForPrint ld hl, hVBlank ld a, [hl] push af ld [hl], %0100 ld a, 16 / 2 ld [wPrinterQueueLength], a call Printer_ResetJoypadRegisters call SendScreenToPrinter jr c, .cancel call Printer_CleanUpAfterSend ld c, 12 call DelayFrames xor a ldh [hBGMapMode], a farcall PrintPartyMonPage2 ln a, 0, 3 ; to be loaded to wPrinterMargins call Printer_PrepareTileMapForPrint ld a, 18 / 2 ld [wPrinterQueueLength], a call Printer_ResetJoypadRegisters call SendScreenToPrinter .cancel pop af ldh [hVBlank], a call Printer_CleanUpAfterSend call Printer_CopyBufferToTileMap xor a ldh [rIF], a pop af ldh [rIE], a call Printer_ExitPrinter pop af ld [wPrinterQueueLength], a ret _PrintDiploma: ld a, [wPrinterQueueLength] push af farcall PlaceDiplomaOnScreen xor a ldh [hPrinter], a call Printer_PlayMusic ldh a, [rIE] push af xor a ldh [rIF], a ld a, (1 << SERIAL) | (1 << VBLANK) ldh [rIE], a ld hl, hVBlank ld a, [hl] push af ld [hl], %0100 ln a, 1, 0 ; to be loaded to wPrinterMargins call Printer_PrepareTileMapForPrint call Printer_ResetJoypadRegisters ld a, 18 / 2 ld [wPrinterQueueLength], a call SendScreenToPrinter jr c, .cancel call Printer_CleanUpAfterSend ld c, 12 call DelayFrames call LoadTileMapToTempTileMap xor a ldh [hBGMapMode], a farcall PrintDiplomaPage2 ln a, 0, 3 ; to be loaded to wPrinterMargins call Printer_PrepareTileMapForPrint call Call_LoadTempTileMapToTileMap call Printer_ResetJoypadRegisters ld a, 18 / 2 ld [wPrinterQueueLength], a call SendScreenToPrinter .cancel pop af ldh [hVBlank], a call Printer_CleanUpAfterSend xor a ldh [rIF], a pop af ldh [rIE], a call Printer_ExitPrinter pop af ld [wPrinterQueueLength], a ret CheckCancelPrint: ldh a, [hJoyDown] and B_BUTTON jr nz, .pressed_b and a ret .pressed_b ld a, [wca80] cp $c jr nz, .cancel .loop ld a, [wPrinterOpcode] and a jr nz, .loop ld a, $16 ; cancel ld [wPrinterOpcode], a ld a, $88 ldh [rSB], a ld a, (0 << rSC_ON) | (1 << rSC_CLOCK) ldh [rSC], a ld a, (1 << rSC_ON) | (1 << rSC_CLOCK) ldh [rSC], a .loop2 ld a, [wPrinterOpcode] and a jr nz, .loop2 .cancel ld a, $1 ldh [hPrinter], a scf ret Printer_CopyTileMapToBuffer: hlcoord 0, 0 ld de, wPrinterTileMapBuffer ld bc, SCREEN_WIDTH * SCREEN_HEIGHT call CopyBytes ret Printer_CopyBufferToTileMap: ld hl, wPrinterTileMapBuffer decoord 0, 0 ld bc, SCREEN_WIDTH * SCREEN_HEIGHT call CopyBytes ret Printer_ResetJoypadRegisters: xor a ldh [hJoyReleased], a ldh [hJoyPressed], a ldh [hJoyDown], a ldh [hJoyLast], a ret Printer_PlayMusic: ld de, MUSIC_PRINTER call PlayMusic2 ret Printer_RestartMapMusic: call RestartMapMusic ret CheckPrinterStatus: ; Check for printer errors ; If [ca88] == -1, we're disconnected ld a, [wPrinterHandshake] cp -1 jr nz, .printer_connected ld a, [wPrinterStatusFlags] cp -1 jr z, .error_2 .printer_connected ; ca89 contains printer status flags ld a, [wPrinterStatusFlags] and %11100000 ret z ; no error bit 7, a jr nz, .error_1 bit 6, a jr nz, .error_4 ; paper error ld a, PRINTER_ERROR_3 jr .load_text_index .error_4 ; temperature error ld a, PRINTER_ERROR_4 jr .load_text_index .error_1 ; printer battery low ld a, PRINTER_ERROR_1 jr .load_text_index .error_2 ; connection error ld a, PRINTER_ERROR_2 .load_text_index ld [wPrinterStatus], a ret PlacePrinterStatusString: ; Print nonzero printer status ld a, [wPrinterStatus] and a ret z push af xor a ldh [hBGMapMode], a hlcoord 0, 5 lb bc, 10, 18 call Textbox pop af ld e, a ld d, 0 ld hl, PrinterStatusStringPointers add hl, de add hl, de ld e, [hl] inc hl ld d, [hl] hlcoord 1, 7 ld a, BANK(GBPrinterStrings) call FarString hlcoord 2, 15 ld de, String_PressBToCancel call PlaceString ld a, $1 ldh [hBGMapMode], a xor a ld [wPrinterStatus], a ret Unreferenced_Function847bd: ld a, [wPrinterStatus] and a ret z push af xor a ldh [hBGMapMode], a hlcoord 2, 4 lb bc, 13, 16 call ClearBox pop af ld e, a ld d, 0 ld hl, PrinterStatusStringPointers add hl, de add hl, de ld e, [hl] inc hl ld d, [hl] hlcoord 4, 7 ld a, BANK(GBPrinterStrings) call FarString hlcoord 4, 15 ld de, String_PressBToCancel call PlaceString ld a, $1 ldh [hBGMapMode], a xor a ld [wPrinterStatus], a ret String_PressBToCancel: db "Press B to Cancel@" PrinterStatusStringPointers: dw GBPrinterString_Null ; @ dw GBPrinterString_CheckingLink ; CHECKING LINK dw GBPrinterString_Transmitting ; TRANSMITTING dw GBPrinterString_Printing ; PRINTING dw GBPrinterString_PrinterError1 ; error 1 dw GBPrinterString_PrinterError2 ; error 2 dw GBPrinterString_PrinterError3 ; error 3 dw GBPrinterString_PrinterError4 ; error 4 PrintPCBox_Page1: xor a ld [wWhichBoxMonToPrint], a hlcoord 0, 0 ld bc, SCREEN_HEIGHT * SCREEN_WIDTH ld a, " " call ByteFill call Printer_PlaceEmptyBoxSlotString hlcoord 0, 0 ld bc, 9 * SCREEN_WIDTH ld a, " " call ByteFill call Printer_PlaceSideBorders call Printer_PlaceTopBorder hlcoord 4, 3 ld de, .String_PokemonList call PlaceString ld a, [wWhichBoxToPrint] ld bc, BOX_NAME_LENGTH ld hl, wBoxNames call AddNTimes ld d, h ld e, l hlcoord 6, 5 call PlaceString ld a, 1 call Printer_GetBoxMonSpecies hlcoord 2, 9 ld c, 3 call Printer_PrintBoxListSegment ret .String_PokemonList: db "#MON LIST@" PrintPCBox_Page2: hlcoord 0, 0 ld bc, SCREEN_HEIGHT * SCREEN_WIDTH ld a, " " call ByteFill call Printer_PlaceEmptyBoxSlotString call Printer_PlaceSideBorders ld a, [wFinishedPrintingBox] and a ret nz ld a, 4 call Printer_GetBoxMonSpecies hlcoord 2, 0 ld c, 6 call Printer_PrintBoxListSegment ret PrintPCBox_Page3: hlcoord 0, 0 ld bc, SCREEN_HEIGHT * SCREEN_WIDTH ld a, " " call ByteFill call Printer_PlaceEmptyBoxSlotString call Printer_PlaceSideBorders ld a, [wFinishedPrintingBox] and a ret nz ld a, 10 call Printer_GetBoxMonSpecies hlcoord 2, 0 ld c, 6 call Printer_PrintBoxListSegment ret PrintPCBox_Page4: hlcoord 0, 0 ld bc, SCREEN_HEIGHT * SCREEN_WIDTH ld a, " " call ByteFill call Printer_PlaceEmptyBoxSlotString hlcoord 1, 15 lb bc, 2, 18 call ClearBox call Printer_PlaceSideBorders call Printer_PlaceBottomBorders ld a, [wFinishedPrintingBox] and a ret nz ld a, 16 call Printer_GetBoxMonSpecies hlcoord 2, 0 ld c, 5 call Printer_PrintBoxListSegment ret Printer_PrintBoxListSegment: ld a, [wBankOfBoxToPrint] call GetSRAMBank .loop ld a, c and a jp z, .max_length dec c ld a, [de] cp $ff jp z, .finish ld [wNamedObjectIndexBuffer], a ld [wCurPartySpecies], a push bc push hl push de push hl ld bc, 16 ld a, " " call ByteFill pop hl push hl call GetBasePokemonName pop hl push hl call PlaceString ld a, [wCurPartySpecies] cp EGG pop hl jr z, .ok2 ld bc, MON_NAME_LENGTH add hl, bc call Printer_GetMonGender ld bc, SCREEN_WIDTH - MON_NAME_LENGTH add hl, bc ld a, "/" ld [hli], a push hl ld bc, 14 ld a, " " call ByteFill pop hl push hl ld a, [wAddrOfBoxToPrint] ld l, a ld a, [wAddrOfBoxToPrint + 1] ld h, a ld bc, sBoxMonNicknames - sBox add hl, bc ld bc, MON_NAME_LENGTH ld a, [wWhichBoxMonToPrint] call AddNTimes ld e, l ld d, h pop hl push hl call PlaceString pop hl ld bc, MON_NAME_LENGTH add hl, bc push hl ld a, [wAddrOfBoxToPrint] ld l, a ld a, [wAddrOfBoxToPrint + 1] ld h, a ld bc, 2 + MONS_PER_BOX + MON_LEVEL add hl, bc ld bc, BOXMON_STRUCT_LENGTH ld a, [wWhichBoxMonToPrint] call AddNTimes ld a, [hl] pop hl call PrintLevel_Force3Digits .ok2 ld hl, wWhichBoxMonToPrint inc [hl] pop de pop hl ld bc, 3 * SCREEN_WIDTH add hl, bc pop bc inc de jp .loop .finish ld a, $1 ld [wFinishedPrintingBox], a .max_length call CloseSRAM ret Printer_GetMonGender: push hl ld a, [wAddrOfBoxToPrint] ld l, a ld a, [wAddrOfBoxToPrint + 1] ld h, a ld bc, 2 + MONS_PER_BOX + MON_DVS add hl, bc ld bc, BOXMON_STRUCT_LENGTH ld a, [wWhichBoxMonToPrint] call AddNTimes ld de, wTempMonDVs ld a, [hli] ld [de], a inc de ld a, [hli] ld [de], a ld a, [wWhichBoxMonToPrint] ld [wCurPartyMon], a ld a, TEMPMON ld [wMonType], a farcall GetGender ld a, " " jr c, .got_gender ld a, "♂" jr nz, .got_gender ld a, "♀" .got_gender pop hl ld [hli], a ret Printer_GetBoxMonSpecies: push hl ld e, a ld d, $0 ld a, [wAddrOfBoxToPrint] ld l, a ld a, [wAddrOfBoxToPrint + 1] ld h, a add hl, de ld e, l ld d, h pop hl ret Printer_PlaceTopBorder: hlcoord 0, 0 ld a, "┌" ld [hli], a ld a, "─" ld c, SCREEN_WIDTH - 2 .loop ld [hli], a dec c jr nz, .loop ld a, "┐" ld [hl], a ret Printer_PlaceSideBorders: hlcoord 0, 0 ld de, SCREEN_WIDTH - 1 ld c, SCREEN_HEIGHT .loop ld a, "│" ld [hl], a add hl, de ld a, "│" ld [hli], a dec c jr nz, .loop ret Printer_PlaceBottomBorders: hlcoord 0, 17 ld a, "└" ld [hli], a ld a, "─" ld c, SCREEN_WIDTH - 2 .loop ld [hli], a dec c jr nz, .loop ld a, "┘" ld [hl], a ret Printer_PlaceEmptyBoxSlotString: hlcoord 2, 0 ld c, $6 .loop push bc push hl ld de, String84a25 call PlaceString pop hl ld bc, 3 * SCREEN_WIDTH add hl, bc pop bc dec c jr nz, .loop ret String84a25: db " ------@"
16.083424
51
0.723678
d2bedc83043e5fdda6f27039c769a3952ca0505d
542
asm
Assembly
oeis/334/A334202.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/334/A334202.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/334/A334202.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A334202: a(n) = A064097(n) - A323077(n). ; Submitted by Jamie Morken(w2) ; 0,1,2,1,3,2,4,1,2,3,5,2,5,4,3,1,5,2,6,3,4,5,7,2,3,5,2,4,7,3,7,1,5,5,4,2,7,6,5,3,7,4,8,5,3,7,9,2,4,3,5,5,8,2,5,4,6,7,9,3,8,7,4,1,5,5,9,5,7,4,9,2,8,7,3,6,5,5,9,3,2,7,9,4,5,8,7,5,9,3,5,7,7,9,6,2,8,4,5,3 seq $0,6530 ; Gpf(n): greatest prime dividing n, for n >= 2; a(1)=1. pow $0,2 mov $2,1 add $2,$0 mul $0,$2 sub $0,$2 seq $0,64097 ; A quasi-logarithm defined inductively by a(1) = 0 and a(p) = 1 + a(p-1) if p is prime and a(n*m) = a(n) + a(m) if m,n > 1. div $0,4
41.692308
201
0.557196
937c94b40876c5ec80d407be19ec35ed9c38a3d8
798
asm
Assembly
oeis/141/A141951.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/141/A141951.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/141/A141951.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A141951: Primes congruent to 5 mod 27. ; Submitted by Jon Maiga ; 5,59,113,167,383,491,599,653,761,977,1031,1193,1301,1409,1571,1733,1787,1949,2003,2111,2273,2381,2543,3083,3137,3191,3299,3407,3461,3623,3677,3947,4001,4217,4271,4649,4703,4919,4973,5081,5189,5297,5351,5783,6053,6269,6323,6701,6863,6917,6971,7079,7187,7349,7457,7673,7727,8429,8537,8699,8753,8807,8861,8969,9239,9293,9833,9887,9941,10103,10211,10427,10589,10859,11399,11777,11831,11939,12101,12263,12479,12641,12911,13127,13397,13451,13613,13721,13829,13883,14153,14207,14369,14423,14639,14747,15017 mov $2,$0 pow $2,2 mov $4,4 lpb $2 mov $3,$4 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 mov $1,$0 max $1,0 cmp $1,$0 mul $2,$1 sub $2,1 add $4,54 lpe mov $0,$4 add $0,1
38
501
0.726817
04810a851bf6b125a23fbafe8f1763b3446da764
4,676
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_384.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_384.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_384.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r15 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x1592b, %rax nop and $31565, %rbx movups (%rax), %xmm1 vpextrq $1, %xmm1, %r15 nop nop cmp $37781, %rsi lea addresses_WC_ht+0xb713, %rsi lea addresses_D_ht+0x11193, %rdi nop nop sub $659, %r10 mov $56, %rcx rep movsl nop nop nop nop nop and $4457, %rsi lea addresses_WC_ht+0x1e5d3, %rsi lea addresses_WT_ht+0x14193, %rdi nop nop sub $49281, %r15 mov $108, %rcx rep movsl nop nop nop nop xor %rcx, %rcx pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r15 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r15 push %r8 push %rax push %rcx push %rdi // Faulty Load lea addresses_D+0x18593, %r15 nop nop nop nop nop sub %r8, %r8 mov (%r15), %rdi lea oracles, %rcx and $0xff, %rdi shlq $12, %rdi mov (%rcx,%rdi,1), %rdi pop %rdi pop %rcx pop %rax pop %r8 pop %r15 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': True, 'congruent': 5, 'type': 'addresses_WC_ht'}, 'dst': {'same': True, 'congruent': 10, 'type': 'addresses_D_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_WT_ht'}} {'36': 21829} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
49.221053
2,999
0.662746
ba2197edace6649f4035133682d11ff2edc91e05
362
asm
Assembly
oeis/021/A021399.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/021/A021399.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/021/A021399.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A021399: Decimal expansion of 1/395. ; Submitted by Jon Maiga ; 0,0,2,5,3,1,6,4,5,5,6,9,6,2,0,2,5,3,1,6,4,5,5,6,9,6,2,0,2,5,3,1,6,4,5,5,6,9,6,2,0,2,5,3,1,6,4,5,5,6,9,6,2,0,2,5,3,1,6,4,5,5,6,9,6,2,0,2,5,3,1,6,4,5,5,6,9,6,2,0,2,5,3,1,6,4,5,5,6,9,6,2,0,2,5,3,1,6,4 mov $1,-2 lpb $0 sub $0,1 add $2,$1 mul $1,10 div $2,8 lpe sub $3,$2 mov $0,$3 mod $0,10
24.133333
199
0.541436
f3dd01e82019504fe011c91578a15f7d29841f58
472
asm
Assembly
programs/oeis/257/A257063.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/257/A257063.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/257/A257063.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A257063: Number of length 1 1..(n+1) arrays with every leading partial sum divisible by 2 or 3. ; 1,2,3,3,4,4,5,6,7,7,8,8,9,10,11,11,12,12,13,14,15,15,16,16,17,18,19,19,20,20,21,22,23,23,24,24,25,26,27,27,28,28,29,30,31,31,32,32,33,34,35,35,36,36,37,38,39,39,40,40,41,42,43,43,44,44,45,46,47,47,48,48,49,50,51,51,52,52,53,54,55,55,56,56,57,58,59,59,60,60,61,62,63,63,64,64,65,66,67,67 add $0,4 mov $1,2 add $1,$0 gcd $0,2 mul $1,2 add $1,$0 div $1,3 sub $1,3 mov $0,$1
36.307692
288
0.644068
bee64e5a3b751f627ee41d158c62e1c148d52fc0
854
asm
Assembly
oeis/142/A142235.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142235.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142235.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142235: Primes congruent to 38 mod 41. ; Submitted by Jon Maiga ; 79,571,653,1063,1637,1801,2129,2293,2539,2621,3359,3769,3851,4261,4507,4999,5081,5573,5737,6229,6311,6803,6967,7213,7459,7541,7951,8443,8689,9181,10247,10657,10739,10903,11149,11887,11969,12379,12953,13691,14347,14593,15331,15413,15823,16069,16561,16889,17053,17299,17627,17791,18119,19267,19759,19841,20333,20743,21317,21481,21563,21727,23039,23203,23531,24023,25171,25253,26237,26647,26729,26893,27631,28123,28697,29599,29927,30091,30829,30911,31321,31567,31649,32059,32141,32633,32797,33289,33617 mov $2,$0 add $2,2 pow $2,2 lpb $2 sub $2,1 mov $3,$1 add $1,$4 mul $3,$4 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,39 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 mul $4,2 lpe mov $0,$1 sub $0,80 mul $0,2 add $0,79
32.846154
501
0.721311
d1134466493f6fc2628e9445f1490fb2004043bf
427
asm
Assembly
oeis/349/A349975.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/349/A349975.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/349/A349975.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A349975: Expansion of g.f. (x^4*(x^2 + 2*x + 3))/((x - 1)^4*(x + 1)*(x^2 + x + 1)). ; Submitted by Jon Maiga ; 0,0,0,0,3,8,17,31,51,77,112,155,208,272,348,436,539,656,789,939,1107,1293,1500,1727,1976,2248,2544,2864,3211,3584,3985,4415,4875,5365,5888,6443,7032,7656,8316,9012,9747,10520,11333,12187,13083,14021,15004,16031,17104 mov $1,$0 add $0,1 add $1,$0 mov $0,$1 sub $1,5 pow $1,2 div $1,2 mul $1,$0 mov $0,$1 div $0,24
28.466667
218
0.641686
f3e351a93ce2a0743595cd9a236466109db4e76a
1,135
asm
Assembly
Tests/IO/Global.e.asm
lehtojo/Evie
f41b3872f6a1a7da1778c241c7b01823b36ac78d
[ "MIT" ]
12
2020-07-12T06:22:11.000Z
2022-02-27T13:19:19.000Z
Tests/IO/Global.e.asm
lehtojo/Evie
f41b3872f6a1a7da1778c241c7b01823b36ac78d
[ "MIT" ]
2
2020-07-12T06:22:48.000Z
2021-11-28T01:23:25.000Z
Tests/IO/Global.e.asm
lehtojo/Evie
f41b3872f6a1a7da1778c241c7b01823b36ac78d
[ "MIT" ]
3
2021-09-16T19:02:19.000Z
2021-11-28T00:50:15.000Z
.intel_syntax noprefix .global _Z4mainv .global _Z10Start_Testv .section .text #.text _Z10Start_Testv: mov ecx, dword ptr [rip + a ] #REG_a0, .RIP_a add ecx, dword ptr [rip + b ] #REG_a0, .RIP_b mov eax, ecx #Returning_REG1, REG_a0 ret # ret # _Z4mainv: jmp Return_Here_139 #Return_Here_139 Return_Here_139: mov eax, 1 #Returning_REG0, 1 ret # ret # .section .data #.data a: .long 1 #1 b: .long 3 #3 std_MAX_CONSOLE_BUFFER_LENGHT: .long 4096 #4096 std_GENERIC_WRITE: .long 1073741824 #1073741824 std_GENERIC_READ: .quad 2147483648 #2147483648 std_FILE_SHARE_NONE: .long 0 #0 std_FILE_SHARE_READ: .long 1 #1 std_FILE_SHARE_WRITE: .long 2 #2 std_FILE_SHARE_DELETE: .long 4 #4 std_CREATE_NEW: .long 1 #1 std_CREATE_ALWAYS: .long 2 #2 std_OPEN_EXISTING: .long 3 #3 std_OPEN_ALWAYS: .long 4 #4 std_TRUNCATE_EXISTING: .long 4 #4 std_FILE_ATTRIBUTE_NORMAL: .long 128 #128 std_FILE_ATTRIBUTE_FOLDER: .long 16 #16 std_MAXIMUM_PATH_LENGTH: .long 260 #260 std_ERROR_INSUFFICIENT_BUFFER: .long 122 #122 std_MINIMUM_PROCESS_FILENAME_LENGTH: .long 50 #50 GLOBAL_SCOPE_a: .long 0 #0 GLOBAL_SCOPE_b: .long 0 #0
17.734375
46
0.751542
45a6e2c3fd32f68951ce0788ad35ffc89c4cb932
1,947
asm
Assembly
target_code/fib.asm
jbush001/risc_processor
9542d3a18f8c4224ef6865bb224e2cefe35a731f
[ "Apache-2.0" ]
14
2017-05-02T11:00:32.000Z
2021-06-24T18:31:12.000Z
target_code/fib.asm
jbush001/risc_processor
9542d3a18f8c4224ef6865bb224e2cefe35a731f
[ "Apache-2.0" ]
null
null
null
target_code/fib.asm
jbush001/risc_processor
9542d3a18f8c4224ef6865bb224e2cefe35a731f
[ "Apache-2.0" ]
6
2016-01-24T19:29:15.000Z
2021-06-24T18:31:12.000Z
; ; Copyright 2008-2012 Jeff Bush ; ; Licensed under the Apache License, Version 2.0 (the "License"); ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; http://www.apache.org/licenses/LICENSE-2.0 ; ; Unless required by applicable law or agreed to in writing, software ; distributed under the License is distributed on an "AS IS" BASIS, ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ; See the License for the specific language governing permissions and ; limitations under the License. ; # r29 = stack add sp, r0, 1000 # set stack add r1, r0, 8 call fib call print_hex halt # r1 = n. r1 = return value # r2, r3, r4 = temporaries fib sub sp, sp, 16 storew link, (sp) storew r2, 4(sp) storew r3, 8(sp) storew r4, 12(sp) bnez r1, not_zero jump epilogue # fib(0) = 0 not_zero sub r2, r1, 1 bnez r2, not_one jump epilogue # fib(1) = 1 not_one sub r1, r1, 1 # return fib(n - 1, n - 2) add r3, r1, 0 call fib add r4, r1, 0 sub r1, r3, 1 call fib add r1, r4, r1 epilogue loadw link, (sp) loadw r2, 4(sp) loadw r3, 8(sp) loadw r4, 12(sp) add sp, sp, 16 move pc, link # r1 = digit value # r2 = word value # r3 = temporary print_hex sub sp, sp, 4 storew link, (sp) move r2, r1 looptop lsr r1, r2, 28 and r1, r1, 0xf sgt r3, r1, 9 bnez r3, isAlpha add r1, r1, '0' call print_char jump loopbot isAlpha add r1, r1, 'A' - 10 call print_char loopbot lsl r2, r2, 4 bnez r2, looptop loadw link, (sp) add sp, sp, 4 move pc, link # r1 = character to print print_char sub sp, sp, 4 storew r3, (sp) loadw r3, =ser_addr storeb r1, (r3) loadw r3, (sp) add sp, sp, 4 move pc, link ser_addr .long 0xA0000000
20.712766
74
0.601438
32868cd3826af621f7738d780cc97b9cb84b5a75
477
asm
Assembly
Kernel/asm/lock.asm
tsoracco/gatOS.v2
456293adcfdf2c050f93c724c0980ec553b84c77
[ "BSD-3-Clause" ]
null
null
null
Kernel/asm/lock.asm
tsoracco/gatOS.v2
456293adcfdf2c050f93c724c0980ec553b84c77
[ "BSD-3-Clause" ]
null
null
null
Kernel/asm/lock.asm
tsoracco/gatOS.v2
456293adcfdf2c050f93c724c0980ec553b84c77
[ "BSD-3-Clause" ]
null
null
null
;lock.asm GLOBAL _testAndSet GLOBAL _unlocked ; returns 1 if lock acquired, else 0 _testAndSet: push rbp mov rbp, rsp xor edx, edx xor eax, eax xor ecx, ecx xor ebx, ebx inc ebx lock CMPXCHG8B [rdi] jnz .lockNotAcquired mov rax, 1 mov rsp, rbp pop rbp ret .lockNotAcquired: mov rax, 0 mov rsp, rbp pop rbp ret _unlocked: mov rax, 0 xchg rax, [rdi] ret
12.552632
37
0.551363
3273715a9fa48df690f16034724ace01f1d01a94
31,260
asm
Assembly
src/ui.asm
Q-Bert-Reynolds/gbedit
d74e7f3527531ae1e4f34df794ba1cd1c5fe2069
[ "MIT" ]
1
2021-06-04T15:47:25.000Z
2021-06-04T15:47:25.000Z
src/ui.asm
Q-Bert-Reynolds/gbedit
d74e7f3527531ae1e4f34df794ba1cd1c5fe2069
[ "MIT" ]
null
null
null
src/ui.asm
Q-Bert-Reynolds/gbedit
d74e7f3527531ae1e4f34df794ba1cd1c5fe2069
[ "MIT" ]
null
null
null
SECTION "UI Bank 0", ROM0 ; LoadFontTiles ; RevealTextAndWait hl = text ; RevealText a = draw flags, de = xy hl = text ; FlashNextArrow a = draw flags, de = xy ; DrawUIBox a=draw flags, bc = xy, de = wh ; DrawText a = draw flags, hl = text, de = xy, bc = max lines ; DisplayText a = draw flags, hl = text ; DrawListMenuArrow a = draw flags, de = xy, _j = current index, _c = count ; MoveListMenuArrow a = draw flags, de = xy, _j = current index, _c = count, must call UpdateInput first, returns direction in a ; ShowListMenu a = draw flags, bc = xy, de = wh, [list_selection] = initial selection, [str_buffer] = text, [name_buffer] = title, returns choice in a (0 = cancel) ; AskYesNo a = draw flags, bc = xy, returns choice in a (0 = cancel, 1 = yes, 2 = no) ; ShowTextEntry bc = title, de = str, l = max_len -> puts text in name_buffer ; ShowNumberPicker a = draw flags, bc = xy, de = wh, h = max number, returns number in a (0 = cancel) LoadFontTiles:: ld a, [loaded_bank] push af;bank ld a, UI_BANK call SetBank call UILoadFontTiles pop af;bank call SetBank ret RevealTextAndWait:: ;hl = text ld de, str_buffer call str_Copy ld a, [loaded_bank] push af;bank ld a, UI_BANK call SetBank ld hl, str_buffer ld a, DRAW_FLAGS_PAD_TOP call UIRevealTextAndWait pop af;bank call SetBank ret RevealText:: ;a = draw flags, de = xy, hl = text ld b, a;draw flags ld a, [loaded_bank] push af;bank push bc;draw flags push de;xy ld de, str_buffer call str_Copy ld a, UI_BANK call SetBank pop de;xy pop af;draw flags ld hl, str_buffer call UIRevealText pop af;bank call SetBank ret FlashNextArrow:: ;a = draw flags, de = xy push de;xy push af;draw flags ld bc, tile_buffer ld a, ARROW_DOWN ld [bc], a ;tile_buffer[0] = ARROW_DOWN; ld hl, $0101 pop af;draw flags push af call SetTiles WAITPAD_UP ld l, 20 .loop1 ;for (a = 20; a > 0; --a) { UPDATE_INPUT_AND_JUMP_TO_IF_BUTTONS .exitFlashNextArrow, (PADF_A | PADF_B) ld de, 10 call gbdk_Delay dec l jp nz, .loop1 ld bc, tile_buffer ld a, " " ld [bc], a ld hl, $0101 pop af;draw flags pop de ;xy push de ;xy push af call SetTiles ld l, 20 .loop2 UPDATE_INPUT_AND_JUMP_TO_IF_BUTTONS .exitFlashNextArrow, (PADF_A | PADF_B) ld de, 10 call gbdk_Delay dec l jp nz, .loop2 pop af;draw flags pop de ;xy jp FlashNextArrow .exitFlashNextArrow PLAY_SFX SelectSound pop af;draw flags pop de ;xy ret GetUIBoxTiles: ;Entry: de = wh, Affects: hl, fills tile_buffer PUSH_VAR _i PUSH_VAR _j ld hl, tile_buffer xor a ld [_j], a .rowLoop ;for (j = 0; j < h; ++j) { xor a ld [_i], a .columnLoop ;for (i = 0; i < w; ++i) { .testTop ;if (j == 0) { ld a, [_j] and a jr nz, .testBottom .testUpperLeft ;if (i == 0) k = BOX_UPPER_LEFT; ld a, [_i] and a jr nz, .testUpperRight ld a, BOX_UPPER_LEFT jp .setTile .testUpperRight ;else if (i == w-1) k = BOX_UPPER_RIGHT; ld a, [_i] sub a, d inc a jr nz, .setHorizontal ld a, BOX_UPPER_RIGHT jp .setTile .testBottom ;else if (j == h-1) { ld a, [_j] sub a, e inc a jr nz, .testSides .testLowerLeft ;if (i == 0) k = BOX_LOWER_LEFT; ld a, [_i] and a jr nz, .testLowerRight ld a, BOX_LOWER_LEFT jp .setTile .testLowerRight ;else if (i == w-1) k = BOX_LOWER_RIGHT; ld a, [_i] sub a, d inc a jr nz, .setHorizontal ld a, BOX_LOWER_RIGHT jp .setTile .testSides ;else if (i == 0 || i == w-1) k = BOX_VERTICAL; ld a, [_i] and a jr z, .setVertical sub d inc a jr z, .setVertical .setNone ld a, " " jr .setTile .setVertical ld a, BOX_VERTICAL jr .setTile .setHorizontal ld a, BOX_HORIZONTAL .setTile ld [hli], a ;tiles[j*w+i] = k; ld a, [_i] inc a ld [_i], a sub a, d jr nz, .columnLoop ld a, [_j] inc a ld [_j], a sub a, e jr nz, .rowLoop POP_VAR _j POP_VAR _i ret DrawUIBox::;a=draw flags, bc = xy, de = wh push af ;draw flags push bc ;xy push de ;wh call GetUIBoxTiles ld a, [sys_info] and a, SYS_INFO_GBC jr z, .setTiles .isGBC ld a, 1 ld [rVBK], a pop bc ;wh pop de ;xy pop af;draw flags push af ;draw flags push de ;xy push bc ;wh and a, DRAW_FLAGS_WIN jr z, .window .background ld hl, _SCRN1 jr .setPalettes .window ld hl, _SCRN0 .setPalettes xor a call gbdk_SetTilesTo xor a ld [rVBK], a .setTiles pop hl ;wh pop de ;xy pop af;draw flags ld bc, tile_buffer call SetTiles ret DrawText:: ;a = draw flags, hl = text, de = xy, bc = max lines push bc;max lines push af;draw flags push de;xy ld de, tile_buffer ld a, "\n" call str_CopyLine xor a cp a, c;if length of line is 0, next line jr z, .checkDone pop de;xy pop af;draw flags push af;draw flags push de;xy push hl;next line ld h, c;width ld l, 1;height ld bc, tile_buffer call SetTiles pop hl;line .checkDone dec hl ld a, [hli] and a jr z, .exit pop de;xy inc e pop af;draw flags bit 2, a;DRAW_FLAGS_NO_SPACE jr nz, .nextLine inc e;y+=2 .nextLine pop bc;max lines dec c ret z jr DrawText .exit pop de;xy pop af;draw flags pop bc;max lines ret DisplayTextAtPos:: ;a = draw flags, hl = text, bc = xy push hl;text push af;draw flags ld d, 20 ld e, 6 pop af;draw flags push af;draw flags push bc;xy call DrawUIBox pop de;xy inc d inc e pop af;draw flags push af;draw flags and a, DRAW_FLAGS_PAD_TOP jr z, .skipPad inc e .skipPad pop af;draw flags pop hl;text push af;draw flags ld bc, 2;max lines call DrawText ;a = draw flags, hl = text, de = xy, bc = max lines pop af;draw flags ret DisplayText:: ;a = draw flags, hl = text ld bc, 0 call DisplayTextAtPos .show and a, DRAW_FLAGS_WIN ret z;no reason to show win if not drawing on win ld a, 7 ld [rWX], a ld a, 96 ld [rWY], a SHOW_WIN ret DrawListMenuArrow:: ;a = draw flags, de = xy, _j = current index, _c = count push af;draw flags and a, DRAW_FLAGS_NO_SPACE ld a, [_c] jr nz, .skip add a, a .skip inc a ld b, 0 ld c, a ld hl, tile_buffer ld a, " " call mem_Set pop af;draw flags push af;draw flags and a, DRAW_FLAGS_NO_SPACE ld a, [_j] jr nz, .skip2 add a, a .skip2 inc a ld b, 0 ld c, a ld hl, tile_buffer add hl, bc ld a, ARROW_RIGHT ld [hl], a ld a, 1 ld h, a ;w=1 pop af;draw flags push af;draw flags and a, DRAW_FLAGS_NO_SPACE ld a, [_c] jr nz, .skip3 add a, a jr .skip4 .skip3 inc a .skip4 ld l, a ;h=_c*2 pop af;draw flags push af ld bc, tile_buffer and a, DRAW_FLAGS_PAD_TOP jr nz, .setTiles inc bc dec l .setTiles pop af;draw flags call SetTiles ret MoveListMenuArrow:: ;a = draw flags, de = xy, _j = current index, _c = count, must call UpdateInput first, returns direction in a push af;draw flags .checkMoveArrowUp ;if (button_state & PADF_UP && j > 0) { ld a, [button_state] and a, PADF_UP jp z, .checkMoveArrowDown ld a, [_j] or a jp z, .failMoveUp call gbdk_WaitVBL ld a, [_j] dec a ld [list_selection], a ld [_j], a ;--j pop af;draw flags push af call DrawListMenuArrow;move_menu_arrow(--j); .failMoveUp pop af;draw flags WAITPAD_UP_OR_FRAMES 20 ld a, -1 ret .checkMoveArrowDown ;else if (button_state & PADF_DOWN && _j < _c-1) { ld a, [button_state] and a, PADF_DOWN jr z, .noMove ld a, [_c] dec a ld b, a ld a, [_j] cp b jr nc, .failMoveDown call gbdk_WaitVBL ld a, [_j] inc a ld [list_selection], a ld [_j], a ;++j pop af;draw flags push af call DrawListMenuArrow;move_menu_arrow(++j); .failMoveDown pop af;draw flags WAITPAD_UP_OR_FRAMES 20 ld a, 1 ret .noMove pop af xor a;0 ret ShowListMenu:: ;a = draw flags, bc = xy, de = wh, [list_selection] = initial selection, [str_buffer] = text, [name_buffer] = title, returns choice in a (0 = cancel) ld h, a;draw flags ld a, [loaded_bank] push af;bank push hl;draw flags ld a, UI_BANK call SetBank pop af;draw flags call UIShowListMenu ld b, a;choice pop af;bank call SetBank ld a, b;choice ret; return a=choice; AskYesNo::;a = draw flags, bc = xy, returns choice in a (0 = cancel, 1 = yes, 2 = no) push af;draw flags push bc;xy ld hl, YesNoText ld de, str_buffer call str_Copy xor a ld [name_buffer], a ld [list_selection], a pop bc;xy ld d, 6 ld e, 5 pop af;draw flags call ShowListMenu ret ShowTextEntry:: ;bc = title, de = str, l = max_len -> puts text in name_buffer ld a, [loaded_bank] push af ;bank push hl ;max_len push de ;str ld h, b ld l, c ld de, str_buffer call str_Copy pop hl ;str ld de, name_buffer call str_Copy ld a, UI_BANK call SetBank ld de, str_buffer ld hl, name_buffer pop bc ;max_len call UIShowTextEntry pop af;bank call SetBank ret ShowNumberPicker::; a = draw flags, bc = xy, de = wh, h = max number, returns number in a (0 = cancel) ld l, a;draw flags ld a, [loaded_bank] push af;bank ld a, UI_BANK call SetBank ld a, l;draw flags call UIShowNumberPicker ld b, a;number pop af;bank call SetBank ld a, b;number ret SECTION "UI", ROMX, BANK[UI_BANK] INCLUDE "img/ui_font.asm" ;UILoadFontTiles ;UIRevealText - a = draw flags, hl = text, de = xy ;UIRevealTextAndWait - a = draw flags, hl = text ;UIShowTextEntry - a = draw flags, de = title, hl = str, c = max_len ;UIShowListMenu - a = draw flags, bc = xy, de = wh, text = [str_buffer], title = [name_buff], returns choice in a ;UIShowNumberPicker - a = draw flags, bc = xy, de = wh, h = max number, returns number in a (0 = cancel) ;UIDrawSaveStats - a = draw flags, de = xy ; Text Entry LowerCase: DB "abcdefghijklmnopqrstuvwxyz *():;[]#%-?!*+/.,↵", 0 LowerCaseTitle: DB "lower case", 0 UpperCase: DB "ABCDEFGHIJKLMNOPQRSTUVWXYZ *():;[]#%-?!*+/.,↵", 0 UpperCaseTitle: DB "UPPER CASE", 0 UILoadFontTiles:: ld hl, _UiFontTiles ld de, _VRAM+$1000 ld bc, _UI_FONT_TILE_COUNT*16 call mem_CopyVRAM ;doesn't loop so mem_CopyToTileData is unnecessary ret UIRevealText:: ;a = draw flags, hl = text, de = xy ld b, a;draw flags PUSH_VAR _i PUSH_VAR _j PUSH_VAR _l PUSH_VAR _w PUSH_VAR _x PUSH_VAR _y ld a, b;draw flags push af;draw flags push hl;text push de;xy ld b, d ld c, e ld d, 20 ld e, 6 call DrawUIBox pop de;xy pop hl;text pop af;draw flags push af;draw flags push hl;text push de;xy and a, DRAW_FLAGS_WIN jr z, .skipWin SHOW_WIN .skipWin xor a ld [_i], a ld [_x], a ld [_y], a ld [_w], a pop de;xy pop hl;text push hl;text push de;xy call str_Length ;de = length ld a, e ;assumes length < 256 ld [_l], a; l = strlen(text); .revealTextLoop; for (i = 0; i < l; ++i) { pop de;xy pop hl;text push hl;text push de;xy .testNewLine; if (text[i] == '\n') { xor a ld b, a ld a, [_i] ld c, a add hl, bc;text[i] ld a, [hl] cp "\n" jp nz, .drawCharacter ld a, [_y] inc a ld [_y], a sub a, 2 jp nz, .skipFlash ;if (y == 2) { pop de;xy pop hl;text pop af;draw flags push af;draw flags push hl;text push de;xy push af;draw flags ld a, d add a, 18 ld d, a ld a, e add a, 4 ld e, a pop af;draw flags call FlashNextArrow ;flash_next_arrow(18,4); ld a, 1 ld [_y], a pop de;xy pop hl;text push hl;text push de;xy xor a ld b, a ld a, [_w] ld c, a add hl, bc;text+w ld de, str_buffer ld a, [_i] sub a, c ld c, a;i-w call mem_Copy ;memcpy(str_buff,text+w,i-w); ld a, [_x] and a jr z, .skipWhiteSpace ld bc, 17 ld hl, str_buffer .whiteSpaceLoop dec bc inc hl dec a jr nz, .whiteSpaceLoop ld a, " " call mem_Set .skipWhiteSpace pop de;xy pop hl;text pop af;draw flags push af;draw flags push hl;text push de;xy push af;draw flags and a, DRAW_FLAGS_PAD_TOP rr a add a, e add a, 1 ld e, a;y ld a, d add a, 1 ld d, a;x ld h, 17 ;w ld l, 1 ;h ld bc, str_buffer pop af call SetTiles ld bc, 17 ld hl, str_buffer ld a, " " call mem_Set pop de;xy pop hl;text pop af;draw flags push af;draw flags push hl;text push de;xy push af;draw flags and a, DRAW_FLAGS_PAD_TOP rr a add a, e add a, 3 ld e, a;y ld a, d add a, 1 ld d, a;x ld h, 17 ;w ld l, 1 ;h ld bc, str_buffer pop af call SetTiles .skipFlash xor a ld [_x], a ld a, [_i] inc a ld [_w], a jr .getTextSpeed .drawCharacter ;else { pop de;xy pop hl;text pop af;draw flags push af;draw flags push hl;text push de;xy push af;draw flags xor a ld b, a ld a, [_i] ld c, a add hl, bc ld b, h ld c, l;bc = text+i ld a, [_x] inc a ld [_x], a ld d, a ;_x+1 ld a, [_y] add a, a;_y*2 add a, 1;_y*2+1 ld e, a ;y=_y*2+1 pop af;draw flags push af;draw flags and a, DRAW_FLAGS_PAD_TOP rr a add a, e ld e, a;if pad top, y=_y*2+2 pop af;draw flags pop hl;xy push hl;xy push af;draw flags ld a, d add a, h ld d, a ld a, e add a, l ld e, a ld h, 1 ;w ld l, 1 ;h pop af;draw flags call SetTiles .getTextSpeed ld a, [text_speed] cp a, 2 ld de, 100 jr z, .delay cp a, 1 ld de, 50 jr z, .delay ld de, 10 .delay call gbdk_Delay ld a, [_i] inc a ld [_i], a ld b, a ld a, [_l] sub b jp nz, .revealTextLoop pop de;xy pop hl;text pop af;draw flags POP_VAR _y POP_VAR _x POP_VAR _w POP_VAR _l POP_VAR _j POP_VAR _i ret UIRevealTextAndWait:: ld a, 7 ld [rWX], a ld a, 96 ld [rWY], a; move_win(7,96); ld de, 0 ld a, DRAW_FLAGS_PAD_TOP | DRAW_FLAGS_WIN call UIRevealText ld d, 18 ld e, 4 ld a, DRAW_FLAGS_PAD_TOP | DRAW_FLAGS_WIN call FlashNextArrow ;flash_next_arrow(18,4); ret MoveTextEntryArrow: ; bc = from xy, de = to xy push bc ;from xy push de ;to xy call gbdk_WaitVBL ld hl, tile_buffer ld a, " " ld [hl], a; tiles[0] = " "; ld a, c cp 5; if (from_y == 5) { jr nz, .notFromLineFive ld e, 15 ld a, 1 ld d, a ld h, a ld l, a ld bc, tile_buffer call gbdk_SetWinTiles ;set_win_tiles(1,15,1,1,tile_buffer); jr .setArrow .notFromLineFive; else { ld a, b ;from_x add a, a ;from_x*2 inc a ;from_x*2+1 ld d, a ld a, c ;from_y add a, a ;from_y*2 add a, 5 ;from_y*2+5 ld e, a ld a, 1 ld h, a ld l, a ld bc, tile_buffer call gbdk_SetWinTiles ;set_win_tiles(from_x*2+1,from_y*2+5,1,1,tile_buffer); .setArrow pop de ;to xy pop bc ;from xy ld hl, tile_buffer ld a, ARROW_RIGHT ld [hl], a; tiles[0] = ARROW_RIGHT; ld a, e cp 5; if (to_y == 5) { jr nz, .notToLineFive push bc ;from xy push de ;to xy ld e, 15 ld a, 1 ld d, a ld h, a ld l, a ld bc, tile_buffer call gbdk_SetWinTiles ;set_win_tiles(1,15,1,1,tile_buffer); pop de ;to xy pop bc ;from xy jr .waitPadUp .notToLineFive; else { ld a, d ;to_x add a, a ;to_x*2 inc a ;to_x*2+1 ld d, a ld a, e ;to_y add a, a ;to_y*2 add a, 5 ;to_y*2+5 ld e, a ld a, 1 ld h, a ld l, a ld bc, tile_buffer call gbdk_SetWinTiles ;set_win_tiles(to_x*2+1,to_y*2+5,1,1,tile_buffer); .waitPadUp WAITPAD_UP; update_waitpadup(); ret UpdateTextEntryDisplay: ; hl = str, d = max_len push de; d = max_len push hl; str ld a, " " ld hl, _SCRN1 + 2 * 32 + 10 ld b, 0 ld c, d call mem_SetVRAM pop hl;str push hl;str call str_Length ld a, e and a jr z, .printCaret .printText ld h, a;width ld l, 1;height ld d, 10;x ld e, 2;y pop bc ;str push bc ;str call gbdk_SetWinTiles .printCaret pop bc ;str pop de ;d =max_len push de push bc ;str ld c, d ;c = max_len xor a ld b, a ld a, "-" ld hl, tile_buffer call mem_Set pop hl ;str push hl call str_Length; w = strlen(str); ld hl, tile_buffer add hl, de ld a, "^" ld [hl], a ld d, 10;x ld e, 3;y pop bc ;str pop hl; h = max_len = width ld bc, tile_buffer ld l, 1; l = height call gbdk_SetWinTiles; set_win_tiles(10,2,max_len,1,str); ret UIShowTextEntry:: ; de = title, hl = str, c = max_len PUSH_VAR _c PUSH_VAR _i PUSH_VAR _j PUSH_VAR _l PUSH_VAR _x PUSH_VAR _y push bc;c = max_len push hl;str push de;title DISPLAY_OFF ld a, " " ld b, 0;b = 0, c = max_len call mem_Set; for (i = 0; i != max_len; ++i) str[i] = 0; CLEAR_WIN_AREA 0,0,20,18," " ld a, 7 ld [rWX], a xor a ld [rWY], a; move_win(7,0); pop hl;title push hl call str_Length; l = strlen(title); ld a, e ;assumes len < 256 ld [_l], a and a jp z, .skipTiles; if (l > 0) pop bc;title push bc xor a ld d, a ld a, 1 ld e, a ld l, a ld a, [_l] ld h, a call gbdk_SetWinTiles;set_win_tiles(0,1,l,1,title); .skipTiles pop bc; title pop hl; str pop de; e = max_len push de push hl ;str ld d, e; d = max_len call UpdateTextEntryDisplay; update_text_entry_display(str, max_len); xor a ld b, a ld a, 4 ld c, a ld a, 20 ld d, a ld a, 11 ld e, a ld a, DRAW_FLAGS_WIN call DrawUIBox DISPLAY_ON pop hl ;str pop de; e = max_len push de; e = max_len push hl; str xor a ld [_x], a ld [_y], a ld [_c], a ld [_l], a .drawTextBoxLoop; while (1) { ld de, str_buffer ld bc, 46 ld a, [_c] and a jp nz, .shouldUseUpper .shouldUseLower; if (c == 0) { ld hl, UpperCase call mem_Copy; memcpy(str_buff, upper_case, 46); ld bc, LowerCaseTitle;set_win_tiles(2,15,10,1,"lower case"); jr .setCaseTiles .shouldUseUpper; else { ld hl, LowerCase call mem_Copy; memcpy(str_buff, lower_case, 46); ld bc, UpperCaseTitle;set_win_tiles(2,15,10,1,"UPPER CASE"); .setCaseTiles ld d, 2 ld e, 15 ld h, 10 ld l, 1 call gbdk_SetWinTiles xor a ld [_j], a .rowLoop; for (j = 0; j < 5; ++j) { xor a ld [_i], a ld a, [_j] add a, a; j*2 ld de, 18 call math_Multiply; hl = 18 * j*2 ld b, h ld c, l ;bc = j*2*18 ld hl, tile_buffer add hl, bc ;tiles[j*2*18] push hl ld hl, str_buffer ld a, [_j] add a, a ;_j*2 add a, a ;_j*4 add a, a ;_j*8 ld c, a ld a, [_j] add a, c ;_j*9 ld c, a add hl, bc ;str_buff[j*9] ld d, h ld e, l pop hl ;tiles[j*2*18] .collumnLoop1; for (i = 0; i < 9; ++i) { ld a, [_x] ld b, a ld a, [_i] sub a, b jr nz, .notArrowTile ld a, [_y] ld b, a ld a, [_j] sub a, b jr nz, .notArrowTile;(x==i && y==j) ? ld a, ARROW_RIGHT ld [hli], a;tiles[j*2*18+i*2] = ARROW_RIGHT jr .setCharTile .notArrowTile ld a, " " ld [hli], a;tiles[j*2*18+i*2] = 0 .setCharTile ld a, [de] ld [hli], a ;tiles[j*2*18+i*2+1] = str_buff[j*9+i]; inc de ld a, [_i] inc a ld [_i], a sub 9 jr nz, .collumnLoop1 xor a ld [_i], a ld a, [_j] add a, a; j*2 inc a ;j*2+1 ld de, 18 call math_Multiply; hl = 18 * (j*2+1) ld b, h ld c, l ;bc = (j*2+1)*18 ld hl, tile_buffer add hl, bc ;tiles[(j*2+1)*18] .collumnLoop2 ;for (i = 0; i < 9; ++i) { ld a, " " ld [hli], a ;tiles[(j*2+1)*18+i*2] = " "; ld [hli], a ;tiles[(j*2+1)*18+i*2+1] = " "; ld a, [_i] inc a ld [_i], a sub 9 jp nz, .collumnLoop2 ld a, [_j] inc a ld [_j], a sub a, 5 jp nz, .rowLoop ld d, 1 ld e, 5 ld h, 18 ld l, 9 ld bc, tile_buffer call gbdk_SetWinTiles;set_win_tiles(1,5,18,9,tile_buffer); WAITPAD_UP .moveArrowLoop; while (1) { call UpdateInput;k = joypad(); ld a, [_x] ld b, a ld d, a ld a, [_y] ld c, a ld e, a .moveUp;if (button_state & PADF_UP && y > 0) { ld a, [button_state] and PADF_UP jr z, .moveDown ld a, [_y] and a jr z, .moveDown dec e ld a, e ld [_y], a;--y; call MoveTextEntryArrow; move_text_entry_arrow(x,y,x,y-1); jp .startOrAPressed .moveDown;else if (button_state & PADF_DOWN && y < 5) { ld a, [button_state] and PADF_DOWN jr z, .moveLeft ld a, [_y] sub a, 5 jr z, .moveLeft inc e ld a, e ld [_y], a;++y; call MoveTextEntryArrow; move_text_entry_arrow(x,y,x,y+1); jp .startOrAPressed .moveLeft;else if (button_state & PADF_LEFT && x > 0 && y < 5) { ld a, [button_state] and PADF_LEFT jr z, .moveRight ld a, [_y] sub a, 5 jr z, .moveRight ld a, [_x] and a jr z, .moveRight dec d ld a, d ld [_x], a; --x; call MoveTextEntryArrow; move_text_entry_arrow(x,y,x-1,y); jp .startOrAPressed .moveRight;else if (button_state & PADF_RIGHT && x < 8 && y < 5) { ld a, [button_state] and PADF_RIGHT jr z, .startOrAPressed ld a, [_y] sub a, 5 jr z, .startOrAPressed ld a, [_x] sub a, 8 jr z, .startOrAPressed inc d ld a, d ld [_x], a; ++x; call MoveTextEntryArrow; move_text_entry_arrow(x,y,x+1,y); .startOrAPressed ;if (button_state & (PADF_START | PADF_A)) { ld a, [button_state] and PADF_START | PADF_A jp z, .bPressed ld a, [_y] sub a, 5 jr nz, .testEnd; if (y == 5) { PLAY_SFX SelectSound ld a, [_c] ld b, a ld a, 1 sub a, b ld [_c], a ;c = 1-c; jp .exitMoveArrowLoop ;break; .testEnd ; else if (str_buff[y*9+x] == '\x1E') { ld hl, str_buffer xor a ld b, a ld a, [_y] add a, a;y*2 add a, a;y*4 add a, a;y*8 ld c, a ld a, [_y] add a, c;y*9 ld c, a ld a, [_x] add a, c;y*9+x ld c, a add hl, bc ;str_buff[y*9+x] ld a, [hl] cp "↵" ;0x1E jp nz, .testLength ld a, [_l] and a jp nz, .exitTextEntryLoop ; if (l > 0) return; jp .waitVBL .testLength;else if (l < max_len) { ld a, [_l] pop hl ;str pop de ;e = max_len push de push hl cp e jr nc, .waitVBL pop hl ;str push hl ld c, a; _l inc a ld [_l], a;_l++ xor a ld b, a add hl, bc;hl = str[_l] push hl ;str[_l] ld hl, str_buffer ld a, [_y] add a, a;y*2 add a, a;y*4 add a, a;y*8 ld c, a ld a, [_y] add a, c;y*9 ld c, a ld a, [_x] add a, c;y*9+x ld c, a add hl, bc ;str_buff[y*9+x] pop bc;str[_l] ld a, [hl] ld [bc], a ;str[l++] = str_buff[y*9+x]; inc bc ;make sure there is a 0 at the end of the string xor a ld [bc], a dec bc pop hl ;str pop de ;e = max_len push de ld d, e ;d = max_len xor a ld e, a push hl ;str call UpdateTextEntryDisplay;update_text_entry_display(str, max_len); PLAY_SFX SelectSound WAITPAD_UP jr .waitVBL .bPressed; else if (button_state & PADF_B && l > 0) { ld a, [button_state] and PADF_B jr z, .waitVBL ld a, [_l] and a jr z, .waitVBL dec a ld [_l], a;--l ld c, a xor a ld b, a pop hl;str push hl add hl, bc;str[l] ld [hl], a;str[l] = 0; pop hl;str pop de ;e = max_len push de ld d, e ;d = max_len xor a ld e, a push hl;str call UpdateTextEntryDisplay ;update_text_entry_display(str, max_len); WAITPAD_UP .waitVBL call gbdk_WaitVBL jp .moveArrowLoop .exitMoveArrowLoop jp .drawTextBoxLoop .exitTextEntryLoop PLAY_SFX SelectSound pop af;str pop af;a = max_len POP_VAR _y POP_VAR _x POP_VAR _l POP_VAR _j POP_VAR _i POP_VAR _c ret DrawListEntry:; a=draw flags, bc=xy, de=wh, hl=text ;store register state push bc ;xy push de ;wh push hl ;text ;reorganize registers to use with gbdk_SetBkgTiles pop bc ;text pop hl ;wh pop de ;xy push de ;xy push hl ;wh push bc ;text push af ;draw flags ld a, d add a, 2 ld d, a;x = x+2 ld a, [_j] ld e, a;y = _j pop af ;draw flags push af ;draw flags and a, DRAW_FLAGS_PAD_TOP rr a add a, e ld e, a;+1 if pad ld a, [_l] ld h, a;w = _l ld a, 1 ld l, a;h = 1 ld bc, tile_buffer pop af;draw flags call SetTiles ;restore initial register state pop hl ;text pop de ;wh pop bc ;xy ret UIShowListMenu::; a = draw flags, bc = xy, de = wh, text = [str_buffer], title = [name_buff], returns choice in a ld h, a;draw flags PUSH_VAR _c PUSH_VAR _j PUSH_VAR _l ld a, h ;draw flags push af ;draw flags push bc ;xy push de ;wh call DrawUIBox pop de ;wh pop bc ;xy pop af ;draw flags push af ;draw flags xor a ld [_l], a ; length of current entry ld [_c], a ; number of rows (used later) ld a, c add a, 1 ld [_j], a ;y position to draw entry ld hl, str_buffer ; first letter of current entry (from text) pop af ;draw flags .drawListEntriesLoop push bc ;xy push de ;wh push hl ;text push af ;draw flags .testNewLine; if (text[k] == '\n') { ld a, [hl] ;text cp "\n" jr nz, .testStringEnd pop af ;draw flags push af call DrawListEntry xor a ld [_l], a pop af;draw flags push af;draw flags ld c, 2;spacing and a, DRAW_FLAGS_NO_SPACE jr z, .incrementY ld c, 1 .incrementY ld a, [_j] add a, c;spacing ld [_j], a ld a, [_c] inc a ld [_c], a pop af;draw flags pop hl;text push af push hl jr .nextCharacter .testStringEnd; else if (text[k] == '\0') { and a jr nz, .copyCharacterToTiles pop af ;draw flags push af call DrawListEntry ld a, [_c] inc a ld [_c], a pop af ;draw flags pop hl ;text pop de ;wh pop bc ;xy jr .exitDrawListEntriesLoop ;break; .copyCharacterToTiles; else tiles[++l] = text[k]; ld hl, tile_buffer xor a ld b, a ld a, [_l] ld c, a inc a ld [_l], a add hl, bc pop af;draw flags pop bc ;text push af;draw flags ld a, [bc] ld [hl], a push bc ;text .nextCharacter pop hl ;text pop af ;draw flags inc hl pop de ;wh pop bc ;xy jp .drawListEntriesLoop .exitDrawListEntriesLoop push bc ;xy push de ;wh push af ;draw flags ld a, [list_selection] ld [_j], a ld d, b inc d ld e, c inc e pop af ;draw flags push af ;draw flags call DrawListMenuArrow pop af ;draw flags pop de ;wh pop bc ;xy push bc ;xy push de ;wh push af ;draw flags .drawTitle push de ;wh ld hl, name_buffer call str_Length; puts length in de ld a, e ;assumes length is less than 256 pop de ;wh ld e, a ;l = strlen(title); and a jr z, .skipTitle;if (l > 0) { ld a, d ;w sub a, e ;w-l srl a;i = (w-l)/2; add a, b;x+i ld b, a ld d, e ;w = l ld a, 1 ld e, a ;h = 1 ;surely there's a better way to do this than rearrange registers pop af ;draw flags push bc ;xy push de ;wh ld bc, name_buffer pop hl ;wh pop de ;xy push af call SetTiles ;set_bkg_tiles(x+i,y,l,1,title); pop af pop de push de push af .skipTitle pop af pop de ;wh pop bc ;xy push bc ;xy push af;draw flags WAITPAD_UP;update_waitpadup(); ld a, [list_selection] ld [_j], a ;j = 0; .moveMenuArrowLoop ;while (1) { call UpdateInput pop af;draw flags pop de;xy push de inc d inc e push af;draw flags call MoveListMenuArrow .selectMenuItem ;if (button_state & (PADF_START | PADF_A)) ld a, [button_state] and a, PADF_START | PADF_A jr z, .back PLAY_SFX SelectSound ld a, [_j] inc a ;return j+1; jr .exitMenu .back ;else if (button_state & PADF_B) ld a, [button_state] and a, PADF_B jr z, .waitVBLThenLoop xor a ;return 0; jr .exitMenu .waitVBLThenLoop call gbdk_WaitVBL ;update_vbl(); jp .moveMenuArrowLoop .exitMenu pop de ;discard draw flags pop bc ;xy ld h, a;choice POP_VAR _l POP_VAR _j POP_VAR _c ld a, h;choice ret UIShowNumberPicker::; a = draw flags, bc = xy, de = wh, hl = max/start nums, returns number in a (0 = cancel) push hl;max/start nums push bc;xy push af;draw flags call DrawUIBox ld a, "x" ld [name_buffer], a pop af;draw flags pop de;xy inc d inc e push de;xy push af;draw flags ld bc, name_buffer ld hl, $0101 call SetTiles pop hl;draw flags pop de;xy inc d pop bc;max/start nums .loop push hl;draw flags push de;xy push bc;max/current nums ld h, 0 ld l, c ld de, name_buffer call str_Number pop bc;max/current nums push bc ld a, c cp a, 10 jr nc, .drawDigits ld hl, name_buffer ld a, [hli] ld [hld], a ld a, "0" ld [hl], a .drawDigits pop bc;max/current nums pop de;xy pop af;draw flags push af;draw flags push de;xy push bc;max/current nums ld bc, name_buffer ld hl, $0201 call SetTiles .inputLoop call gbdk_WaitVBL call UpdateInput .wait ld a, [last_button_state] and a jr nz, .inputLoop .checkUp ld a, [button_state] and a, PADF_UP jr z, .checkDown pop bc;max/current nums ld a, c;current num cp a, b jr c, .currentLessThanMax ld c, 0;wrap around .currentLessThanMax inc c push bc;max/current nums jr .finishInput .checkDown ld a, [button_state] and a, PADF_DOWN jr z, .checkStartA pop bc;max/current nums dec c jr nz, .currentGreaterThanZero ld c, b;wrap around .currentGreaterThanZero push bc;max/current nums jr .finishInput .checkStartA ld a, [button_state] and a, PADF_A | PADF_START jr z, .checkB PLAY_SFX SelectSound pop bc;max/current nums pop de;xy pop hl;draw flags ld a, c;selected num ret .checkB ld a, [button_state] and a, PADF_B jr z, .inputLoop pop bc;max/current nums pop de;xy pop hl;draw flags xor a ret .finishInput pop bc;max/current nums pop de;xy pop hl;draw flags jp .loop
19.320148
170
0.57556
a96b9dfb74289773fac4591ae0f5482e0b00cb2a
1,555
asm
Assembly
programs/oeis/001/A001585.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/001/A001585.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/001/A001585.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A001585: a(n) = 3^n + n^3. ; 1,4,17,54,145,368,945,2530,7073,20412,60049,178478,533169,1596520,4785713,14352282,43050817,129145076,387426321,1162268326,3486792401,10460362464,31381070257,94143190994,282429550305,847288625068,2541865845905,7625597504670,22876792476913,68630377389272,205891132121649,617673396313738,1853020188884609,5559060566591460,16677181699705873,50031545099042582,150094635297045777,450283905891048016,1350851717673046961,4052555153019035586,12157665459056992801,36472996377170855324,109418989131512433297,328256967394537157134,984770902183611318065,2954312706550833789768,8862938119652501193265,26588814358957503391610,79766443076872509973953,239299329230617529707732,717897987691852588895249,2153693963075557766443398,6461081889226673299072849,19383245667680019896945600,58149737003040059690547633,174449211009120179071336882,523347633027360537213687137,1570042899082081611640719756,4710128697246244834921798801,14130386091738734504765016446,42391158275216203514294649201,127173474825648610542883526584,381520424476945831628650137137,1144561273430837494885949946474,3433683820292512484657849351425,10301051460877537453973547542468,30903154382632612361920642091025,92709463147897837085761925711350,278128389443693511257285776546193,834385168331080533771857329023792,2503155504993241601315571986428849,7509466514979724803946715958615458,22528399544939174411840147875145889,67585198634817523235520443624706940,202755595904452569706561330873358993,608266787713357709119683992619283182 mov $1,3 pow $1,$0 pow $0,3 add $1,$0 mov $0,$1
172.777778
1,476
0.924116
6e5b2965102d39c64f21224bbac404edf5c0dcf0
682
asm
Assembly
oeis/321/A321837.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/321/A321837.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/321/A321837.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A321837: Expansion of e.g.f.: exp(x/(1-3*x)). ; Submitted by Jon Maiga ; 1,1,7,73,1009,17341,355951,8488117,230439553,7013527129,236419161751,8740611892321,351566026652017,15280473017519893,713558666964639679,35623071889296787981,1893073661362838712961,106682309871314293118257,6354033593729143021851943,398786580330877026134182009,26302741336552555784170650481,1818781596991259820505746237421,131560900565721336340064713334287,9935105894951279399565714018263653,781851378221932870846979544014304769,64010843756062310215769566639340363401 mov $1,1 mov $2,1 mov $3,$0 mov $4,2 lpb $3 mul $1,$3 sub $3,1 mul $1,$3 mul $1,6 add $5,$4 div $1,$5 add $2,$1 lpe mov $0,$2
35.894737
467
0.812317
99d3a63a1dc23d8dd0784df6f77faa111f55fa23
881
a51
Assembly
EEL7030/Keil/C51/Examples/Infineon TLE983x/config_NAC_NAD.a51
GSimas/MicroC
ac9ef54bbeed027db532885407cc3e783fcb28eb
[ "MIT" ]
null
null
null
EEL7030/Keil/C51/Examples/Infineon TLE983x/config_NAC_NAD.a51
GSimas/MicroC
ac9ef54bbeed027db532885407cc3e783fcb28eb
[ "MIT" ]
null
null
null
EEL7030/Keil/C51/Examples/Infineon TLE983x/config_NAC_NAD.a51
GSimas/MicroC
ac9ef54bbeed027db532885407cc3e783fcb28eb
[ "MIT" ]
null
null
null
;//**************************************************************************** ;// @Module ;// @Filename CONFIG_NAC_NAD.A51 ;//---------------------------------------------------------------------------- ;// @Controller Infineon XC8xx ;// @Compiler Keil ;// @Description: This file configures the NAC and NAD. ;//---------------------------------------------------------------------------- ;// @Date 12.05.2009 ;//**************************************************************************** CSEG AT 0x7FFC DB 0x01 ; NAC - Non Activity Counter - jump to USER Code (time = ((NAC&0x7F)-1)*5ms) DB 0xFE ; NAC - inverse value ; DB 0x08 ; NAC - Non Activity Counter 35 ms (max. 40 ms allowed) ; DB 0xF7 ; NAC - inverse value DB 0x01 ; NAD - Lin address DB 0xFE ; NAD - inverse value of the NAD END
38.304348
89
0.368899
2aa176fc98decc6f8e905ca6fe32d16b9dd9398c
988
asm
Assembly
p8/upload/timer/timer.asm
t0ush1/ComputerOrganization
8093949bbd3e48678cea832133e9bf8990bbdf27
[ "MIT" ]
2
2022-03-06T06:05:24.000Z
2022-03-10T09:08:08.000Z
p8/upload/timer/timer.asm
t0ush1/ComputerOrganization
8093949bbd3e48678cea832133e9bf8990bbdf27
[ "MIT" ]
null
null
null
p8/upload/timer/timer.asm
t0ush1/ComputerOrganization
8093949bbd3e48678cea832133e9bf8990bbdf27
[ "MIT" ]
null
null
null
.text # li $t0, 10 # sw $t0, 0x7f50($0) # set default values and init li $t0, 0x1401 # 1_0100_0000_0001 mtc0 $t0, $12 li $t0, 60000000 # frequency -> preset sw $t0, 0x7f04($0) li $a0, 9 # 1001 li $a1, -1 # 111...111 li $s0, 0 # cnt li $s1, 0 # pre-value loop: lw $t0, 0x7f50($0) beq $s1, $t0, if_1_end nop sw $0, 0x7f00($0) # stop count addu $s1, $0, $t0 addu $s0, $0, $t0 # reload sw $0, 0x7f60($0) # LED off sw $a0, 0x7f00($0) # restart count if_2_end: if_1_end: sw $s0, 0x7f40($0) # digitalTube j loop nop .ktext 0x4180 sw $a0, 0x7f00($0) sw $0, 0x7f60($0) # LED off bnez $s0, if_3_end nop addu $s0, $0, $s1 # reload eret if_3_end: addiu $s0, $s0, -1 bnez $s0, if_4_end nop sw $a1, 0x7f60($0) # LED on eret if_4_end: eret
21.478261
46
0.464575
d1fcf7458cf910265e4896e601ca800d059329ad
3,564
asm
Assembly
gameMemory.asm
lvcabral/spaceshooter
ae9afd448991981b7bf51b0111cce2c0642519fa
[ "MIT" ]
5
2019-06-21T12:03:31.000Z
2020-11-17T09:51:34.000Z
gameMemory.asm
lvcabral/spaceshooter
ae9afd448991981b7bf51b0111cce2c0642519fa
[ "MIT" ]
null
null
null
gameMemory.asm
lvcabral/spaceshooter
ae9afd448991981b7bf51b0111cce2c0642519fa
[ "MIT" ]
null
null
null
;=============================================================================== ; $00-$FF PAGE ZERO (256 bytes) ; $00-$01 Reserved for IO ZeroPageTemp = $02 ; $03-$8F Reserved for BASIC ; using $73-$8A CHRGET as BASIC not used for our game ZeroPageParam1 = $73 ZeroPageParam2 = $74 ZeroPageParam3 = $75 ZeroPageParam4 = $76 ZeroPageParam5 = $77 ZeroPageParam6 = $78 ZeroPageParam7 = $79 ZeroPageParam8 = $7A ZeroPageParam9 = $7B ; $90-$FA Reserved for Kernal ZeroPageLow = $FB ZeroPageHigh = $FC ZeroPageLow2 = $FD ZeroPageHigh2 = $FE ; $FF Reserved for Kernal ;=============================================================================== ; $0100-$01FF STACK (256 bytes) ;=============================================================================== ; $0200-$9FFF RAM (40K) SCREENRAM = $0400 SPRITE0 = $07F8 ; $0801 ; Game code is placed here by using the *=$0801 directive ; in gameMain.asm ; 192 decimal * 64(sprite size) = 12288(hex $3000) SPRITERAM = 192 * = $3000 incbin sprites.bin * = $3800 incbin characters.bin ;=============================================================================== ; $A000-$BFFF BASIC ROM (8K) ;=============================================================================== ; Names taken from 'Mapping the Commodore 64' book MODE = $0291 CINVLOW = $0314 CINVHIGH = $0315 ISTOP = $0328 ;=============================================================================== ; C64 registers that are mapped into IO memory space SP0X = $D000 SP0Y = $D001 MSIGX = $D010 SCROLY = $D011 RASTER = $D012 SPENA = $D015 SCROLX = $D016 YXPAND = $D017 VMCSB = $D018 IRQFLAG = $D019 IRQCTRL = $D01A SPBGPR = $D01B SPMC = $D01C XXPAND = $D01D SPSPCL = $D01E EXTCOL = $D020 BGCOL0 = $D021 BGCOL1 = $D022 BGCOL2 = $D023 BGCOL3 = $D024 SPMC0 = $D025 SPMC1 = $D026 SP0COL = $D027 FRELO1 = $D400 ;(54272) FREHI1 = $D401 ;(54273) PWLO1 = $D402 ;(54274) PWHI1 = $D403 ;(54275) VCREG1 = $D404 ;(54276) ATDCY1 = $D405 ;(54277) SUREL1 = $D406 ;(54278) FRELO2 = $D407 ;(54279) FREHI2 = $D408 ;(54280) PWLO2 = $D409 ;(54281) PWHI2 = $D40A ;(54282) VCREG2 = $D40B ;(54283) ATDCY2 = $D40C ;(54284) SUREL2 = $D40D ;(54285) FRELO3 = $D40E ;(54286) FREHI3 = $D40F ;(54287) PWLO3 = $D410 ;(54288) PWHI3 = $D411 ;(54289) VCREG3 = $D412 ;(54290) ATDCY3 = $D413 ;(54291) SUREL3 = $D414 ;(54292) SIGVOL = $D418 ;(54296) COLORRAM = $D800 CIAPRA = $DC00 CIAPRB = $DC01 CIDDRA = $DC02 CIDDRB = $DC03 CIAICR = $DC0D CI2PRA = $DD00 CI2ICR = $DD0D ;=============================================================================== ; Kernal Subroutines IRQCONTINUE = $EA81 IRQFINISH = $EA31 SCNKEY = $FF9F GETIN = $FFE4 CLOSE = $FFC3 OPEN = $FFC0 SETNAM = $FFBD SETLFS = $FFBA CLRCHN = $FFCC CHROUT = $FFD2 LOAD = $FFD5 SAVE = $FFD8 RDTIM = $FFDE
27
80
0.412458
12633361ce4b7c9b147801615520ae52f746bf47
6,678
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_569.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_569.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_569.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 %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0xd935, %rsi lea addresses_UC_ht+0x1903d, %rdi inc %rdx mov $60, %rcx rep movsq nop nop nop nop cmp %r14, %r14 lea addresses_normal_ht+0x1cc85, %rsi lea addresses_normal_ht+0x17405, %rdi and $16391, %rbx mov $52, %rcx rep movsl nop nop nop cmp %r14, %r14 lea addresses_D_ht+0x15805, %rsi lea addresses_A_ht+0x1ec6d, %rdi nop nop nop xor $63972, %r9 mov $60, %rcx rep movsq nop xor $45393, %rbx lea addresses_A_ht+0x14235, %rcx nop nop nop nop inc %rdx mov $0x6162636465666768, %rbx movq %rbx, (%rcx) cmp $1318, %rbx lea addresses_normal_ht+0x8805, %rdi nop nop dec %rdx mov $0x6162636465666768, %r9 movq %r9, (%rdi) nop nop nop nop nop and %rdi, %rdi lea addresses_WT_ht+0x1ea05, %rsi nop nop nop nop nop cmp $58249, %r14 movb $0x61, (%rsi) nop nop nop nop xor %r9, %r9 lea addresses_WC_ht+0x4085, %r14 clflush (%r14) nop nop and %rdx, %rdx mov (%r14), %si nop dec %rdi lea addresses_WT_ht+0x113a5, %rdi nop nop nop cmp %rcx, %rcx movups (%rdi), %xmm6 vpextrq $1, %xmm6, %rsi nop nop inc %r14 lea addresses_WT_ht+0x10a05, %r9 nop nop nop nop xor %r14, %r14 mov $0x6162636465666768, %rbx movq %rbx, (%r9) nop nop nop nop dec %rcx lea addresses_D_ht+0xff05, %rcx nop nop nop nop dec %rbx mov $0x6162636465666768, %r14 movq %r14, %xmm6 movups %xmm6, (%rcx) and $7145, %r9 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r14 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r15 push %r8 push %rbp push %rbx push %rsi // Store lea addresses_A+0x13b05, %r13 nop inc %r8 movl $0x51525354, (%r13) nop nop nop dec %r10 // Faulty Load lea addresses_UC+0x10005, %r15 nop nop nop inc %rsi movb (%r15), %r10b lea oracles, %r13 and $0xff, %r10 shlq $12, %r10 mov (%r13,%r10,1), %r10 pop %rsi pop %rbx pop %rbp pop %r8 pop %r15 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_UC', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_A', 'same': False, 'size': 4, 'congruent': 8, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_UC', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 4, 'NT': True, 'AVXalign': True}, 'OP': 'STOR'} {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 8, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 1, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WC_ht', 'same': True, 'size': 2, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'same': True, 'size': 16, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 8, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 16, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'37': 21829} 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 */
36.293478
2,999
0.659179
9bab8d7cc16759369d0c72b931b3a882e9dc2486
1,248
asm
Assembly
programs/oeis/079/A079057.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/079/A079057.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/079/A079057.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A079057: a(n)=sum(k=1,n,bigomega(tau(k))). ; 0,1,2,3,4,6,7,9,10,12,13,15,16,18,20,21,22,24,25,27,29,31,32,35,36,38,40,42,43,46,47,49,51,53,55,57,58,60,62,65,66,69,70,72,74,76,77,79,80,82,84,86,87,90,92,95,97,99,100,103,104,106,108,109,111,114,115,117,119,122,123,126,127,129,131,133,135,138,139,141,142,144,145,148,150,152,154,157,158,161,163,165,167,169,171,174,175,177,179,181,182,185,186,189,192,194,195,198,199,202,204,206,207,210,212,214,216,218,220,224,225,227,229,231,233,236,237,240,242,245,246,249,251,253,256,259,260,263,264,267,269,271,273,275,277,279,281,283,284,287,288,291,293,296,298,301,302,304,306,309,311,313,314,316,319,321,322,326,327,330,332,334,335,338,340,342,344,346,347,350,351,354,356,359,361,364,366,368,371,374,375,377,378,380,383,385,386,389,390,393,395,397,399,402,404,406,408,410,412,416,417,419,421,423,425,429,431,433,435,438,440,443,444,447,449,451,452,455,456,459,462,465,466,469,471,473,475,478,479,482,483,485,487,489,491,494,496,499,501,504 mov $2,$0 mov $4,$0 lpb $2 mov $0,$4 sub $2,1 sub $0,$2 cal $0,5 ; d(n) (also called tau(n) or sigma_0(n)), the number of divisors of n. mul $0,2 cal $0,214560 ; Number of 0's in binary expansion of n^2. mov $3,$0 sub $3,2 div $3,2 add $1,$3 lpe
69.333333
935
0.690705
cb3a95942000bbeabb9d95bdec10514060b66338
271
asm
Assembly
programs/oeis/186/A186032.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/186/A186032.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/186/A186032.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A186032: a(n) = (-1)^A048881(n). ; 1,1,-1,1,-1,-1,1,1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,1,1,-1,-1,1,1,-1,1,-1,-1,1,1,-1,-1,1,-1,1,1,-1,-1,1,1,-1,1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,1,-1,-1,1,-1,1 add $0,1 mov $1,1 lpb $0,1 sub $1,$0 div $0,2 lpe mod $1,2 mul $1,2 add $1,1
20.846154
153
0.450185
be2c356ad8d03c955fdf225ade5f9620e5a85f74
411
asm
Assembly
oeis/216/A216706.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/216/A216706.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/216/A216706.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A216706: a(n) = Product_{k=1..n} (100 - 10/k). ; Submitted by Jon Maiga ; 1,90,8550,826500,80583750,7897207500,776558737500,76546504125000,7558967282343750,747497875698437500,74002289694145312500,7332954160601671875000,727184620926332460937500,72159089307305298046875000,7164366724082454591796875000 add $0,1 mov $1,$0 seq $1,25755 ; 10th-order Patalan numbers (generalization of Catalan numbers). mul $0,$1
45.666667
227
0.810219
5fba6bba81147da9a04c59ccb4766a60d08de295
1,803
asm
Assembly
programs/oeis/055/A055849.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/055/A055849.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/055/A055849.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A055849: a(n) = 3*a(n-1) - a(n-2) with a(0)=1, a(1)=9. ; 1,9,26,69,181,474,1241,3249,8506,22269,58301,152634,399601,1046169,2738906,7170549,18772741,49147674,128670281,336863169,881919226,2308894509,6044764301,15825398394,41431430881,108468894249,283975251866,743456861349,1946395332181,5095729135194,13340792073401,34926647085009,91439149181626,239390800459869,626733252197981,1640808956134074,4295693616204241,11246271892478649,29443122061231706,77083094291216469,201806160812417701,528335388146036634,1383200003625692201,3621264622731039969,9480593864567427706,24820516970971243149,64980957048346301741,170122354174067662074,445386105473856684481,1166035962247502391369,3052721781268650489626,7992129381558449077509,20923666363406696742901,54778869708661641151194,143412942762578226710681,375459958579073038980849,982966932974640890231866,2573440840344849631714749,6737355588059908004912381,17638625923834874383022394,46178522183444715144154801,120896940626499271049442009,316512299696053098004171226,828639958461660022963071669,2169407575688926970885043781,5679582768605120889692059674,14869340730126435698191135241,38928439421774186204881346049,101915977535196122916452902906,266819493183814182544477362669,698542502016246424716979185101,1828808012864925091606460192634,4787881536578528850102401392801,12534836596870661458700743985769,32816628254033455525999830564506,85915048165229705119298747707749,224928516241655659831896412558741,588870500559737274376390489968474,1541682985437556163297275057346681,4036178455752931215515434682071569,10566852381821237483249028988868026,27664378689710781234231652284532509,72426283687311106219445927864729501,189614472372222537424106131309655994,496417133429356506052872466064238481 mov $1,1 mov $2,8 lpb $0 sub $0,1 add $1,$2 add $2,$1 lpe mov $0,$1
150.25
1,670
0.913478
bc8c49c62e886a21bbe1f2a0f8157c94c038cb6e
6,688
asm
Assembly
libtool/src/gmp-6.1.2/mpn/x86/p6/aorsmul_1.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
1,602
2015-01-06T11:26:31.000Z
2022-03-30T06:17:21.000Z
libtool/src/gmp-6.1.2/mpn/x86/p6/aorsmul_1.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
11,789
2015-01-05T04:50:15.000Z
2022-03-31T23:39:19.000Z
libtool/src/gmp-6.1.2/mpn/x86/p6/aorsmul_1.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
498
2015-01-08T18:58:18.000Z
2022-03-20T15:37:45.000Z
dnl Intel P6 mpn_addmul_1/mpn_submul_1 -- add or subtract mpn multiple. dnl Copyright 1999-2002, 2005 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of either: dnl dnl * the GNU Lesser General Public License as published by the Free dnl Software Foundation; either version 3 of the License, or (at your dnl option) any later version. dnl dnl or dnl dnl * the GNU General Public License as published by the Free Software dnl Foundation; either version 2 of the License, or (at your option) any dnl later version. dnl dnl or both in parallel, as here. dnl dnl The GNU MP Library is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License dnl for more details. dnl dnl You should have received copies of the GNU General Public License and the dnl GNU Lesser General Public License along with the GNU MP Library. If not, dnl see https://www.gnu.org/licenses/. include(`../config.m4') C cycles/limb C P5 C P6 model 0-8,10-12 6.44 C P6 model 9 (Banias) 6.15 C P6 model 13 (Dothan) 6.11 C P4 model 0 (Willamette) C P4 model 1 (?) C P4 model 2 (Northwood) C P4 model 3 (Prescott) C P4 model 4 (Nocona) C AMD K6 C AMD K7 C AMD K8 dnl P6 UNROLL_COUNT cycles/limb dnl 8 6.7 dnl 16 6.35 dnl 32 6.3 dnl 64 6.3 dnl Maximum possible with the current code is 64. deflit(UNROLL_COUNT, 16) ifdef(`OPERATION_addmul_1', ` define(M4_inst, addl) define(M4_function_1, mpn_addmul_1) define(M4_function_1c, mpn_addmul_1c) define(M4_description, add it to) define(M4_desc_retval, carry) ',`ifdef(`OPERATION_submul_1', ` define(M4_inst, subl) define(M4_function_1, mpn_submul_1) define(M4_function_1c, mpn_submul_1c) define(M4_description, subtract it from) define(M4_desc_retval, borrow) ',`m4_error(`Need OPERATION_addmul_1 or OPERATION_submul_1 ')')') MULFUNC_PROLOGUE(mpn_addmul_1 mpn_addmul_1c mpn_submul_1 mpn_submul_1c) C mp_limb_t M4_function_1 (mp_ptr dst, mp_srcptr src, mp_size_t size, C mp_limb_t mult); C mp_limb_t M4_function_1c (mp_ptr dst, mp_srcptr src, mp_size_t size, C mp_limb_t mult, mp_limb_t carry); C C Calculate src,size multiplied by mult and M4_description dst,size. C Return the M4_desc_retval limb from the top of the result. C C This code is pretty much the same as the K6 code. The unrolled loop is C the same, but there's just a few scheduling tweaks in the setups and the C simple loop. C C A number of variations have been tried for the unrolled loop, with one or C two carries, and with loads scheduled earlier, but nothing faster than 6 C cycles/limb has been found. ifdef(`PIC',` deflit(UNROLL_THRESHOLD, 5) ',` deflit(UNROLL_THRESHOLD, 5) ') defframe(PARAM_CARRY, 20) defframe(PARAM_MULTIPLIER,16) defframe(PARAM_SIZE, 12) defframe(PARAM_SRC, 8) defframe(PARAM_DST, 4) TEXT ALIGN(32) PROLOGUE(M4_function_1c) pushl %ebx deflit(`FRAME',4) movl PARAM_CARRY, %ebx jmp L(start_nc) EPILOGUE() PROLOGUE(M4_function_1) push %ebx deflit(`FRAME',4) xorl %ebx, %ebx C initial carry L(start_nc): movl PARAM_SIZE, %ecx pushl %esi deflit(`FRAME',8) movl PARAM_SRC, %esi pushl %edi deflit(`FRAME',12) movl PARAM_DST, %edi pushl %ebp deflit(`FRAME',16) cmpl $UNROLL_THRESHOLD, %ecx movl PARAM_MULTIPLIER, %ebp jae L(unroll) C simple loop C this is offset 0x22, so close enough to aligned L(simple): C eax scratch C ebx carry C ecx counter C edx scratch C esi src C edi dst C ebp multiplier movl (%esi), %eax addl $4, %edi mull %ebp addl %ebx, %eax adcl $0, %edx M4_inst %eax, -4(%edi) movl %edx, %ebx adcl $0, %ebx decl %ecx leal 4(%esi), %esi jnz L(simple) popl %ebp popl %edi popl %esi movl %ebx, %eax popl %ebx ret C------------------------------------------------------------------------------ C VAR_JUMP holds the computed jump temporarily because there's not enough C registers when doing the mul for the initial two carry limbs. C C The add/adc for the initial carry in %ebx is necessary only for the C mpn_add/submul_1c entry points. Duplicating the startup code to C eliminate this for the plain mpn_add/submul_1 doesn't seem like a good C idea. dnl overlapping with parameters already fetched define(VAR_COUNTER,`PARAM_SIZE') define(VAR_JUMP, `PARAM_DST') C this is offset 0x43, so close enough to aligned L(unroll): C eax C ebx initial carry C ecx size C edx C esi src C edi dst C ebp movl %ecx, %edx decl %ecx subl $2, %edx negl %ecx shrl $UNROLL_LOG2, %edx andl $UNROLL_MASK, %ecx movl %edx, VAR_COUNTER movl %ecx, %edx C 15 code bytes per limb ifdef(`PIC',` call L(pic_calc) L(here): ',` shll $4, %edx negl %ecx leal L(entry) (%edx,%ecx,1), %edx ') movl (%esi), %eax C src low limb movl %edx, VAR_JUMP leal ifelse(UNROLL_BYTES,256,128+) 4(%esi,%ecx,4), %esi mull %ebp addl %ebx, %eax C initial carry (from _1c) adcl $0, %edx movl %edx, %ebx C high carry leal ifelse(UNROLL_BYTES,256,128) (%edi,%ecx,4), %edi movl VAR_JUMP, %edx testl $1, %ecx movl %eax, %ecx C low carry cmovnz( %ebx, %ecx) C high,low carry other way around cmovnz( %eax, %ebx) jmp *%edx ifdef(`PIC',` L(pic_calc): shll $4, %edx negl %ecx C See mpn/x86/README about old gas bugs leal (%edx,%ecx,1), %edx addl $L(entry)-L(here), %edx addl (%esp), %edx ret_internal ') C ----------------------------------------------------------- ALIGN(32) L(top): deflit(`FRAME',16) C eax scratch C ebx carry hi C ecx carry lo C edx scratch C esi src C edi dst C ebp multiplier C C VAR_COUNTER loop counter C C 15 code bytes per limb addl $UNROLL_BYTES, %edi L(entry): deflit(CHUNK_COUNT,2) forloop(`i', 0, UNROLL_COUNT/CHUNK_COUNT-1, ` deflit(`disp0', eval(i*4*CHUNK_COUNT ifelse(UNROLL_BYTES,256,-128))) deflit(`disp1', eval(disp0 + 4)) Zdisp( movl, disp0,(%esi), %eax) mull %ebp Zdisp( M4_inst,%ecx, disp0,(%edi)) adcl %eax, %ebx movl %edx, %ecx adcl $0, %ecx movl disp1(%esi), %eax mull %ebp M4_inst %ebx, disp1(%edi) adcl %eax, %ecx movl %edx, %ebx adcl $0, %ebx ') decl VAR_COUNTER leal UNROLL_BYTES(%esi), %esi jns L(top) deflit(`disp0', eval(UNROLL_BYTES ifelse(UNROLL_BYTES,256,-128))) M4_inst %ecx, disp0(%edi) movl %ebx, %eax popl %ebp popl %edi popl %esi popl %ebx adcl $0, %eax ret EPILOGUE()
20.834891
79
0.68451
f5ab0301105d61a524dac8ceee7a197168b05b63
560
asm
Assembly
programs/oeis/008/A008822.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/008/A008822.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/008/A008822.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A008822: Expansion of (1 + 2*x^2 + x^3)/((1 - x)^2*(1 - x^3)). ; 1,2,5,10,15,22,31,40,51,64,77,92,109,126,145,166,187,210,235,260,287,316,345,376,409,442,477,514,551,590,631,672,715,760,805,852,901,950,1001,1054,1107,1162,1219,1276,1335,1396,1457,1520,1585,1650,1717,1786,1855,1926,1999,2072,2147,2224,2301,2380,2461,2542,2625,2710,2795,2882,2971,3060,3151,3244,3337,3432,3529,3626,3725,3826,3927,4030,4135,4240,4347,4456,4565,4676,4789,4902,5017,5134,5251,5370,5491,5612,5735,5860,5985,6112,6241,6370,6501,6634 add $0,1 mul $0,2 bin $0,2 add $0,2 div $0,3
62.222222
448
0.717857
ee19df1c8775f94ff48dcb22d67e3eecda8c297f
690
asm
Assembly
oeis/200/A200887.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/200/A200887.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/200/A200887.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A200887: Number of 0..n arrays x(0..3) of 4 elements without any interior element greater than both neighbors. ; 12,51,144,325,636,1127,1856,2889,4300,6171,8592,11661,15484,20175,25856,32657,40716,50179,61200,73941,88572,105271,124224,145625,169676,196587,226576,259869,296700,337311,381952,430881,484364,542675,606096,674917,749436,829959,916800,1010281,1110732,1218491,1333904,1457325,1589116,1729647,1879296,2038449,2207500,2386851,2576912,2778101,2990844,3215575,3452736,3702777,3966156,4243339,4534800,4841021,5162492,5499711,5853184,6223425,6610956,7016307,7440016,7882629,8344700,8826791,9329472,9853321 add $0,2 mov $1,3 add $1,$0 mul $1,$0 sub $1,1 mul $1,$0 mul $0,$1 div $0,3
57.5
499
0.8
2366ff97fc7098be24a108fb2fc4d5c14a2c1042
284
asm
Assembly
audio/sfx/cry02_3.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
16
2018-08-28T21:47:01.000Z
2022-02-20T20:29:59.000Z
audio/sfx/cry02_3.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
5
2019-04-03T19:53:11.000Z
2022-03-11T22:49:34.000Z
audio/sfx/cry02_3.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
2
2019-12-09T19:46:02.000Z
2020-12-05T21:36:30.000Z
SFX_Cry02_3_Ch1: duty 0 unknownsfx0x20 8, 245, 128, 4 unknownsfx0x20 2, 225, 224, 5 unknownsfx0x20 8, 209, 220, 5 endchannel SFX_Cry02_3_Ch2: dutycycle 165 unknownsfx0x20 7, 149, 65, 4 unknownsfx0x20 2, 129, 33, 5 unknownsfx0x20 8, 97, 26, 5 SFX_Cry02_3_Ch3: endchannel
15.777778
30
0.739437
1149cf10cf232f9f3156c9e3468650db7ff358b7
6,102
asm
Assembly
Transynther/x86/_processed/NONE/_ht_st_zr_un_/i7-7700_9_0xca.log_21829_800.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_/i7-7700_9_0xca.log_21829_800.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_/i7-7700_9_0xca.log_21829_800.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 %r8 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x5bea, %rsi lea addresses_UC_ht+0x17f28, %rdi xor $18334, %rdx mov $43, %rcx rep movsq nop nop sub $10494, %r8 lea addresses_UC_ht+0x14592, %rsi lea addresses_UC_ht+0x123ea, %rdi nop nop add $62525, %rbx mov $16, %rcx rep movsq nop nop nop and $46108, %rbx lea addresses_A_ht+0x16f2a, %rdx xor %r11, %r11 movl $0x61626364, (%rdx) nop nop nop nop dec %rdx lea addresses_UC_ht+0x74ca, %rdx nop nop nop nop inc %rdi mov (%rdx), %rcx nop nop nop nop nop sub $48239, %rcx lea addresses_A_ht+0x712a, %rsi nop and %rdi, %rdi vmovups (%rsi), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $1, %xmm0, %r11 nop nop nop nop add $53410, %rbx lea addresses_UC_ht+0x93ea, %rdx nop nop nop nop xor $1643, %rsi mov $0x6162636465666768, %rdi movq %rdi, (%rdx) nop nop nop nop nop cmp %rbx, %rbx lea addresses_A_ht+0xf5ea, %rsi lea addresses_UC_ht+0xd33e, %rdi add %r9, %r9 mov $5, %rcx rep movsb nop nop add %rdi, %rdi lea addresses_WT_ht+0x1a7b2, %rsi lea addresses_A_ht+0x1022a, %rdi inc %r9 mov $14, %rcx rep movsb nop nop nop nop dec %rbx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r8 pop %r11 ret .global s_faulty_load s_faulty_load: push %r14 push %r15 push %rbp push %rcx push %rdi // Faulty Load lea addresses_A+0x1c3ea, %r15 nop nop nop nop dec %rdi vmovups (%r15), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $0, %xmm4, %rbp lea oracles, %rdi and $0xff, %rbp shlq $12, %rbp mov (%rdi,%rbp,1), %rbp pop %rdi pop %rcx pop %rbp pop %r15 pop %r14 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 32, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 9, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_UC_ht'}} {'src': {'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_A_ht'}} {'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 8, 'NT': True, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_UC_ht'}} {'src': {'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_UC_ht'}} {'src': {'congruent': 2, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_A_ht'}} {'46': 875, '79': 23, '47': 1537, '00': 5665, 'ff': 12546, '02': 1, '53': 496, '45': 274, 'ab': 412} ff ff ff 00 ff ff ff 00 ab 00 46 00 ff 00 47 ff ff ff ff ff 47 00 ff 46 47 00 ab 00 46 ff ff ff ff ff ff ff 45 00 ff ff ff ff ff 47 00 00 46 ff ff ff ff 00 ff 00 46 ff ff ff 00 47 ff ff 00 ff ff 00 ff 00 ab 00 ff ff 47 00 ff ff 00 ff ff 00 ab 00 ff ff ff ff ff ff ff ff ff ff ff 00 00 ff ff ff ff ff ff ff ff ff ff ff ff 00 ff ff 46 ff ff ff ff ff ff ff ff ff 47 00 00 00 00 ff ff ab 00 46 47 00 00 ff 47 00 ff ff ff ff ff ff ff 47 00 ff ff 47 00 47 00 00 ff ff 00 47 ff ab 00 46 53 00 ff ff ff ff 47 00 47 00 ff ff ff ff ff 46 53 00 ff ff ff ff ff 53 00 46 ff ff ff 00 46 00 47 ff ff ff ff ff ff ff ff ff ff ff 47 ff ff 46 00 47 53 00 ff ff ff 00 ff ff ff ff ff ff ff 00 ff 00 00 ff ff ff ff 00 ff ff ff ff 47 ff 47 00 47 00 ff ff ff ff ff ff ff 00 ff 00 47 00 ff 00 00 ff 00 ff ff ff ff 00 00 46 ff ff 00 ff 00 00 ff ff ff ff 46 ff 00 ff ff ff ff ff 47 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff 47 00 ff 00 ff ff ff ff ff ff ff ff ff 00 ff 00 ff ff ff 00 ab 00 ff 46 47 00 ff ff ff 53 00 ff 00 00 00 ff 00 ff 47 00 ff ff ff 00 ff ff ff 00 00 ff ff 00 ff ff ff 47 00 47 46 47 00 ff ff ff ff ff ff ff ff ff 47 00 47 00 ff 00 ff ff 47 00 00 ff ff ab 00 ff 00 ff ff ff ff 46 ff 47 ff ff 00 ff ff ff ff ff 00 ab 00 ff ff ff ff 00 ff ff ff ff 47 00 00 ff 53 00 00 ff ff 46 ff ff 00 47 00 ff ff 00 ff ff ff 00 00 46 ff ff 53 00 ff 47 00 ff 45 47 00 ff ff ff ff ff ff ff ff 00 ff ff ff ff ff ff ff ff ff ff 00 46 47 00 ff ff 00 00 ff ff ff 47 00 00 ff ff ff ff 46 47 00 46 ff ff 53 00 ff ff ff ff ff ff ff ff ff ff ff ff 47 00 00 ff 47 00 ff ff ff ff ff 46 00 47 00 ff ff ff ff ff ff 00 ff ff ff ff ff ff 46 53 00 00 ff 45 00 ff ff 00 ff ff ff 46 00 ff ff ff ff ff ff ff ff 45 00 47 ff ff 53 00 ff 00 ff ff ff ff ff ff ff ff ff ff ff ff 46 47 00 00 ff 00 ff ff 53 00 00 00 ff ff ff 47 00 ff ff 00 ff ff 47 ff ff ff ff ff ff 53 00 ff ff ff ff ff 00 ff 47 00 47 00 ff 46 ff ff ff ff ff 47 00 ff ff ff ff ff ff 46 ff 00 ff ab 00 ff ff ff ff 46 00 47 00 00 ff 47 00 ff ff 00 ff ff 00 00 ab 00 00 53 00 ff 00 ff ff ff ff ff ff ff ff 00 00 47 00 ff ff 00 ff 46 00 47 00 ff ff 46 ff ff ff ff ff ff ff ff ff ff 47 00 ff 47 00 00 00 ff ff ff 47 00 00 ff ff 53 00 ff 47 00 00 ff ff ab 00 ff ff ff ff ff ff ff 47 00 ff ff 00 00 ff ff ff 00 47 47 00 ff 47 00 ff ff ff ff ff ff 53 00 ff ff 53 ff 00 ff ff ff 47 00 ff ff ff 46 00 47 00 ff ff ff ff ff ff ff ff ff ff 47 00 ff 00 00 ff 00 ff 47 00 47 00 00 ff ff ff 00 ff 00 ff ff ff 47 00 00 ff ff ff ff ff ff ff 47 00 00 ff ff 00 ab 00 ff ff ab 00 46 ff ff ff 47 00 00 47 00 ff ff ab 00 ff 00 46 00 ff ff 00 ff 53 00 ff 00 ff ff ff ff ff 45 00 00 00 00 47 00 45 47 00 ff ff ff ff 53 00 ff ff 00 46 00 47 00 ff ff 47 00 ab 00 ff 46 46 ff ff 45 53 00 ff ff 00 ff 00 ff 00 ff ff ff 00 ff ff ff ff 00 ff ff ff ff ff ff 00 ff 00 ff ff 53 46 ff 53 00 00 ab 00 46 ff ff ff ff ff ff 00 47 00 53 00 ff ff ff ff ff ff ff ff ff ff ff ff 00 ff ff ff 00 ff 00 ff 00 ff 00 ff ff ff ff 47 00 47 00 ff 00 00 ab 00 ff 46 00 ff ff 46 ff 45 00 00 ff ff 46 53 00 ff 46 00 47 ff ff 00 ff */
40.410596
2,999
0.657653
e7383cdc25f8f1149c026f4be80bcefb668841c2
6,787
asm
Assembly
src/main.asm
BlockoS/up-18
e46af2ff4d96025def8d39b3a1e4b39756f2c195
[ "BSD-2-Clause" ]
3
2020-11-27T20:10:54.000Z
2020-11-29T21:49:32.000Z
src/main.asm
BlockoS/up-18
e46af2ff4d96025def8d39b3a1e4b39756f2c195
[ "BSD-2-Clause" ]
null
null
null
src/main.asm
BlockoS/up-18
e46af2ff4d96025def8d39b3a1e4b39756f2c195
[ "BSD-2-Clause" ]
null
null
null
.include "system.inc" .include "irq.inc" .include "vce.inc" .include "vdc.inc" .include "psg.inc" .include "macro.inc" .include "word.inc" .include "byte.inc" .include "memcpy.inc" .include "joypad.inc" .include "sprite.inc" .zp _frame .ds 2 _part .ds 1 _scroll_x .ds 2 _scroll_y .ds 3 _txt .ds 2 .code .bank 0 .org $e000 align_org 256 .include "math_tbl.asm" .include "irq_reset.asm" .include "vdc.asm" .include "vce.asm" .include "psg.asm" .include "utils.asm" .include "joypad.asm" .include "vgm.asm" .include "random.asm" .include "screen02.asm" .include "torus.asm" .include "screen03.asm" .code main: jsr rand8_seed jsr vdc_yres_224 jsr vdc_xres_256 lda #VDC_BG_64x64 jsr vdc_set_bat_size stz <irq_m lda #low(song_base_address) sta <vgm_base sta <vgm_ptr lda #high(song_base_address) sta <vgm_base+1 sta <vgm_ptr+1 lda #song_bank sta <vgm_bank lda <vgm_base+1 clc adc #$20 sta <vgm_end lda #song_loop_bank sta <vgm_loop_bank stw #song_loop, <vgm_loop_ptr irq_on #INT_IRQ1 irq_enable_vec #VSYNC irq_set_vec #VSYNC, #vsync_callback irq_enable_vec #HSYNC irq_set_vec #HSYNC, #hsync_callback vdc_reg #VDC_CR vdc_data #$00 jsr torus_load_gfx ; we upload it once and for all stw #txtData, <_txt stz <_txtCount stw #torus.pal.0, <torus.ptr stz <_part cla jsr init_part cli .loop: lda <_frame sec sbc #$01 sta <_frame lda <_frame+1 sbc #$00 sta <_frame+1 ora <_frame bne .go jsr init_next_part .go: ldx <_part jsr update_part stz <irq_cnt .wait_vsync: lda <irq_cnt beq .wait_vsync bra .loop init_next_part: lda <_part clc adc #$02 cmp #(part_count*2) bne .no_reset cla .no_reset: sta <_part init_part: tax tay lda frame_count, Y sta <_frame iny lda frame_count, Y sta <_frame+1 jmp [init_routines, X] update_part: jmp [update_routines, X] ; ---------------------------------------------------------------- ; [todo] bat size and tile index are hardcorded ; [todo] add a flag to wait? clear_bat: ; disable hblank, bg and sprite display. vdc_reg #VDC_CR vdc_data #$0000 ; clear bat using DMA ; 1. set the first word vdc_reg #VDC_MAWR vdc_data #$0000 vdc_reg #VDC_DATA st1 #low($2000>>4) st2 #high($2000>>4) st2 #high($2000>>4) ; 2. DMA copy vdc_reg #VDC_DMA_CR vdc_data #(VDC_DMA_VRAM_ENABLE | VDC_DMA_SRC_INC | VDC_DMA_DST_INC) st0 #VDC_DMA_SRC st1 #low($0000) st2 #high($0000) st0 #VDC_DMA_DST st1 #low($0002) st2 #high($0002) st0 #VDC_DMA_LEN st1 #low(64*64-2) st2 #high(64*64-2) rts dma_wait: .wait: lda video_reg bit #VDC_STATUS_VRAM_DMA_END beq .wait rts ; ---------------------------------------------------------------- vsync_callback: ply plx pla rti ; ---------------------------------------------------------------- hsync_callback: ply plx pla rti ;----------------------------------------------------------------------- ; Timer interrupt ;----------------------------------------------------------------------- _timer: timer_ack ; acknowledge timer interrupt rti ;----------------------------------------------------------------------- ; IRQ2 interrupt ;----------------------------------------------------------------------- _irq_2: rti ;----------------------------------------------------------------------- ; NMI interrupt ;----------------------------------------------------------------------- _nmi: rti ;----------------------------------------------------------------------- ; IRQ1 interrupt ;----------------------------------------------------------------------- _irq_1: pha ; save registers phx phy lda video_reg ; get VDC status register sta <vdc_sr @vsync: ; vsync interrupt bbr5 <vdc_sr, @hsync inc <irq_cnt ; update irq counter (for wait_vsync) jsr vgm_update jmp [vsync_hook] @hsync: bbr2 <vdc_sr, @exit jmp [hsync_hook] @exit: _dummy: ply plx pla rti @user_hsync: jmp [hsync_hook] @user_vsync: jmp [vsync_hook] part_count = 5 init_routines: .dw screen02_init .dw screen03_init .dw torus_init .dw screen03_init .dw torus_init update_routines: .dw screen02_update .dw screen03_update.0 .dw torus_update .dw screen03_update.1 .dw torus_update.1 frame_count: .dw $0100 .dw $0100 .dw $0200 .dw $0100 ;----------------------------------------------------------------------- ; Data ;----------------------------------------------------------------------- logo.ptr.lo: .dwl divine_stylers.gfx, genesis_project.gfx, pacific.gfx, tulou.gfx, uprough.gfx logo.ptr.hi: .dwh divine_stylers.gfx, genesis_project.gfx, pacific.gfx, tulou.gfx, uprough.gfx logo.size.lo: .dwl 4480, 1280, 2080, 1600, 3840 logo.size.hi: .dwh 4480, 1280, 2080, 1600, 3840 logo.bat.lo: .dwl $201, $28d, $2b5, $2f6, $328 logo.bat.hi: .dwh $201, $28d, $2b5, $2f6, $328 logo.width: .db 28, 8, 13, 10, 24 logo.height = 5 logo.size = 13280 logo.count = 5 .data .bank 1 .org $8000 logo.gfx: divine_stylers.gfx: .incbin "./data/logos/divine_stylers.tiles" genesis_project.gfx: .incbin "./data/logos/genesis_project.tiles" pacific.gfx: .incbin "./data/logos/pacific.tiles" tulou.gfx: .incbin "./data/logos/tulou.tiles" uprough.gfx: .incbin "./data/logos/uprough.tiles" .bank 3 .org $8000 font.pal: .incbin "./data/fnt_toy3.pal" font.gfx: .incbin "./data/fnt_toy3.bin" font.size = 7680 .bank 4 .org $8000 torus: .incbin "./data/torus.bin" torus.size=14848 .include "data/song/song.inc" .bank $25 .org $8000 ds_logo.pal: .incbin "./data/logo_ds.pal" ds_logo.gfx: .incbin "./data/logo_ds.bin" ds_logo.size = 12800 ;----------------------------------------------------------------------- ; Vector table ;----------------------------------------------------------------------- .data .bank 0 .org $fff6 .dw _irq_2 .dw _irq_1 .dw _timer .dw _nmi .dw _reset
19.845029
89
0.488581
50e0665a7c0fbc764835121c99f6b4117c3aec83
732
asm
Assembly
oeis/031/A031369.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/031/A031369.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/031/A031369.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A031369: a(n) = prime(3n-1). ; Submitted by Jon Maiga ; 3,11,19,31,43,59,71,83,101,109,131,149,163,179,193,211,229,241,263,277,293,313,337,353,373,389,409,431,443,461,479,499,521,547,569,587,601,617,641,653,673,691,719,739,757,773,809,823,839,859,881,907,929,947,971,991,1013,1031,1049,1063,1091,1103,1123,1153,1181,1201,1223,1237,1277,1289,1301,1319,1361,1381,1423,1433,1451,1471,1487,1499,1531,1553,1571,1597,1609,1621,1657,1669,1699,1723,1747,1777,1789,1823,1861,1873,1889,1913,1949,1979 mov $2,36 mul $2,$0 mul $0,3 mov $4,2 lpb $2 mov $3,$4 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 mov $1,$0 max $1,0 cmp $1,$0 mul $2,$1 sub $2,1 add $4,2 lpe mov $0,$4 add $0,1
33.272727
436
0.688525
10943ff4453c2ec896d7ee6cd9b33e498955a24c
639
asm
Assembly
oeis/154/A154244.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/154/A154244.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/154/A154244.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A154244: a(n) = 6*a(n-1) - 2*a(n-2) for n>1; a(1)=1, a(2)=6. ; 1,6,34,192,1084,6120,34552,195072,1101328,6217824,35104288,198190080,1118931904,6317211264,35665403776,201358000128,1136817193216,6418187159040,36235488567808,204576557088768,1154988365396992,6520777078204416,36814685738432512,207846560274186240,1173449990168252416,6625006820461142016,37403140942430347264,211168832013659799552,1192206710197098102784,6730902597155269017600,38001002162537417900032,214544207780913969364992,1211263242360408980389888,6838491038600625943609344 mov $1,1 mov $2,1 lpb $0 sub $0,1 add $2,$1 add $1,$2 add $2,$1 mul $1,2 lpe mov $0,$1
45.642857
477
0.809077
cae0bab033ee77bec8f1ed7dd57edfe730614e25
2,048
asm
Assembly
programs/oeis/035/A035006.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/035/A035006.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/035/A035006.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A035006: Number of possible rook moves on an n X n chessboard. ; 0,8,36,96,200,360,588,896,1296,1800,2420,3168,4056,5096,6300,7680,9248,11016,12996,15200,17640,20328,23276,26496,30000,33800,37908,42336,47096,52200,57660,63488,69696,76296,83300,90720,98568,106856,115596,124800,134480,144648,155316,166496,178200,190440,203228,216576,230496,245000,260100,275808,292136,309096,326700,344960,363888,383496,403796,424800,446520,468968,492156,516096,540800,566280,592548,619616,647496,676200,705740,736128,767376,799496,832500,866400,901208,936936,973596,1011200,1049760,1089288,1129796,1171296,1213800,1257320,1301868,1347456,1394096,1441800,1490580,1540448,1591416,1643496,1696700,1751040,1806528,1863176,1920996,1980000,2040200,2101608,2164236,2228096,2293200,2359560,2427188,2496096,2566296,2637800,2710620,2784768,2860256,2937096,3015300,3094880,3175848,3258216,3341996,3427200,3513840,3601928,3691476,3782496,3875000,3969000,4064508,4161536,4260096,4360200,4461860,4565088,4669896,4776296,4884300,4993920,5105168,5218056,5332596,5448800,5566680,5686248,5807516,5930496,6055200,6181640,6309828,6439776,6571496,6705000,6840300,6977408,7116336,7257096,7399700,7544160,7690488,7838696,7988796,8140800,8294720,8450568,8608356,8768096,8929800,9093480,9259148,9426816,9596496,9768200,9941940,10117728,10295576,10475496,10657500,10841600,11027808,11216136,11406596,11599200,11793960,11990888,12189996,12391296,12594800,12800520,13008468,13218656,13431096,13645800,13862780,14082048,14303616,14527496,14753700,14982240,15213128,15446376,15681996,15920000,16160400,16403208,16648436,16896096,17146200,17398760,17653788,17911296,18171296,18433800,18698820,18966368,19236456,19509096,19784300,20062080,20342448,20625416,20910996,21199200,21490040,21783528,22079676,22378496,22680000,22984200,23291108,23600736,23913096,24228200,24546060,24866688,25190096,25516296,25845300,26177120,26511768,26849256,27189596,27532800,27878880,28227848,28579716,28934496,29292200,29652840,30016428,30382976,30752496,31125000 mov $1,$0 add $0,1 mul $1,$0 mul $1,$0 mul $1,2
227.555556
1,933
0.857422
98ecb64335e6898a8d628a02997860d41a25cf2d
2,546
asm
Assembly
libsrc/_DEVELOPMENT/target/yaz180/driver/i2c/z180/asm_i2c1_read_set.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/target/yaz180/driver/i2c/z180/asm_i2c1_read_set.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/target/yaz180/driver/i2c/z180/asm_i2c1_read_set.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
;============================================================================== ; Contents of this file are copyright Phillip Stevens ; ; You have permission to use this for NON COMMERCIAL USE ONLY ; If you wish to use it elsewhere, please include an acknowledgement to myself. ; ; https://github.com/feilipu/ ; ; https://feilipu.me/ ; ; ; This work was authored in Marrakech, Morocco during May/June 2017. INCLUDE "config_private.inc" SECTION code_driver PUBLIC asm_i2c1_read_set EXTERN __i2c1RxPtr EXTERN __i2c1ControlEcho, __i2c1ControlInput, __i2c1SlaveAddr, __i2c1SentenceLgth ; Read from the I2C Interface, using Byte Mode transmission ; void i2c_read_set( char addr, char *dp, char length, char mode ); ; parameters passed in registers ; HL = pointer to receive buffer, uint8_t *dp ; D = 7 bit address of slave device, uint8_t _i2c1SlaveAddr ; C = length of data sentence expected, uint8_t _i2c1SentenceLgth ; B = mode with buffer/byte [1|0] and boolean stop at conclusion [0x10|0x00], uint8_t _i2c1ControlInput .asm_i2c1_read_set ld a,(__i2c1ControlEcho) tst __IO_I2C_CON_ECHO_BUS_RESTART|__IO_I2C_CON_ECHO_BUS_ILLEGAL ret NZ ;just exit if a fault and __IO_I2C_CON_ECHO_BUS_STOPPED jr Z,asm_i2c1_read_set ;if the bus is not stopped, then wait till it is ld a,c cp __IO_I2C_RX_SIZE ;check the sentence for over length ret NC or a ;check the sentence expected for zero length ret Z ;return if the sentence is 0 length ld (__i2c1SentenceLgth),a ;store the sentence length ld a,d ;store the 7 bit slave address scf rla ;ensure we're reading Bit 0:[R=1] ld (__i2c1SlaveAddr),a ld (__i2c1RxPtr),hl ;store the buffer pointer ld a,b ;store the mode and stop booleans ld (__i2c1ControlInput),a and a,__IO_I2C_CON_MODE ;check whether buffer or byte mode is required or a,__IO_I2C_CON_ENSIO|__IO_I2C_CON_STA ld (__i2c1ControlEcho),a ;store enabled, start flag, and mode in the control echo ld bc,__IO_I2C1_PORT_BASE|__IO_I2C_PORT_CON di in0 a,(ITC) ;get INT/TRAP Control Register (ITC) or ITC_ITE1 ;mask in INT1 out0 (ITC),a ;enable external interrupt ld a,(__i2c1ControlEcho) out (c),a ;then set the interface enable, STA bit, and mode bit ei ret
34.876712
106
0.642184
074ee3e48457e85eb230b8bb8824c1b88c3f369e
653
asm
Assembly
oeis/015/A015568.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/015/A015568.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/015/A015568.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A015568: Expansion of x/(1 - 7*x - 10*x^2). ; Submitted by Jamie Morken(s4) ; 0,1,7,59,483,3971,32627,268099,2202963,18101731,148741747,1222209539,10042884243,82522285091,678084838067,5571816717379,45783565402323,376203124990051,3091257528953587,25400833952575619,208718412957565203,1715037230228712611,14092444741176640307,115797485490523608259,951506845845431660883,7818522775823257708771,64244727889217120570227,527898322982752421079299,4337735539771438153257363,35643132008227591283594531,292879279455307520517735347,2406586276269428556460092739 mov $1,1 lpb $0 sub $0,1 mov $2,$3 mul $2,10 mul $3,7 add $3,$1 mov $1,$2 lpe mov $0,$3
43.533333
473
0.82389
f584c6b2d0068f8a7baf78a957d78785a80cf3c0
360
asm
Assembly
libsrc/math/z88math/c/sccz80/deq.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/math/z88math/c/sccz80/deq.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/math/z88math/c/sccz80/deq.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; ; Z88dk Z88 Maths Library ; ; ; $Id: deq.asm,v 1.4 2016-06-22 19:55:06 dom Exp $ SECTION code_fp PUBLIC deq EXTERN fsetup EXTERN stkequcmp IF FORz88 INCLUDE "target/z88/def/fpp.def" ELSE INCLUDE "fpp.def" ENDIF ; TOS != FA? .deq call fsetup IF FORz88 fpp(FP_EQ) ELSE ld a,+(FP_EQ) call FPP ENDIF jp stkequcmp
12
56
0.625
703c8f7b7bb1a53650d6c2b14b593714853af8f3
9,062
asm
Assembly
MSP430F541xA_MSP430F543xA_Code_Examples/Assembly_CCS/msp430x54xA_adc12_06.asm
sususweet/MSP430F541x-MSP430F543x-Code-Examples
183b45c1aea66c1e71f717c697159acc4261d9cd
[ "Apache-2.0" ]
null
null
null
MSP430F541xA_MSP430F543xA_Code_Examples/Assembly_CCS/msp430x54xA_adc12_06.asm
sususweet/MSP430F541x-MSP430F543x-Code-Examples
183b45c1aea66c1e71f717c697159acc4261d9cd
[ "Apache-2.0" ]
null
null
null
MSP430F541xA_MSP430F543xA_Code_Examples/Assembly_CCS/msp430x54xA_adc12_06.asm
sususweet/MSP430F541x-MSP430F543x-Code-Examples
183b45c1aea66c1e71f717c697159acc4261d9cd
[ "Apache-2.0" ]
null
null
null
; --COPYRIGHT--,BSD_EX ; Copyright (c) 2012, Texas Instruments Incorporated ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions ; are met: ; ; * Redistributions of source code must retain the above copyright ; notice, this list of conditions and the following disclaimer. ; ; * Redistributions in binary form must reproduce the above copyright ; notice, this list of conditions and the following disclaimer in the ; documentation and/or other materials provided with the distribution. ; ; * Neither the name of Texas Instruments Incorporated nor the names of ; its contributors may be used to endorse or promote products derived ; from this software without specific prior written permission. ; ; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, ; THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR ; PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR ; CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, ; EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, ; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; ; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, ; WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR ; OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, ; EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ; ; ****************************************************************************** ; ; MSP430 CODE EXAMPLE DISCLAIMER ; ; MSP430 code examples are self-contained low-level programs that typically ; demonstrate a single peripheral function or device feature in a highly ; concise manner. For this the code may rely on the device's power-on default ; register values and settings such as the clock configuration and care must ; be taken when combining code from several examples to avoid potential side ; effects. Also see www.ti.com/grace for a GUI- and www.ti.com/msp430ware ; for an API functional library-approach to peripheral configuration. ; ; --/COPYRIGHT-- ;****************************************************************************** ; MSP430F543xA Demo - ADC12_A, Repeated Sequence of Conversions ; ; Description: This example shows how to perform a repeated sequence of ; conversions using "repeat sequence-of-channels" mode. AVcc is used for the ; reference and repeated sequence of conversions is performed on Channels A0, ; A1, A2, and A3. Each conversion result is stored in ADC12MEM0, ADC12MEM1, ; ADC12MEM2, and ADC12MEM3 respectively. After each sequence, the 4 conversion ; results are moved to A0results[], A1results[], A2results[], and A3results[]. ; Test by applying voltages to channels A0 - A3. Open a watch window in ; debugger and view the results. Set Breakpoint1 in the index increment line ; to see the array values change sequentially and Breakpoint2 to see the entire ; array of conversion results in A0results[], A1results[], A2results[], and ; A3results[]for the specified Num_of_Results. ; ; Note that a sequence has no restrictions on which channels are converted. ; For example, a valid sequence could be A0, A3, A2, A4, A2, A1, A0, and A7. ; See the 5xx User's Guide for instructions on using the ADC12_A. ; ; MSP430F5438A ; ----------------- ; /|\| | ; | | | ; --|RST | ; | | ; Vin0 -->|P6.0/A0 | ; Vin1 -->|P6.1/A1 | ; Vin2 -->|P6.2/A2 | ; Vin3 -->|P6.3/A3 | ; | | ; ; D. Dang ; Texas Instruments Inc. ; December 2009 ; Built with CCS Version: 4.0.2 and IAR Embedded Workbench Version: 4.11B ;****************************************************************************** .cdecls C,LIST,"msp430.h" ;------------------------------------------------------------------------------- .def RESET ; Export program entry-point to ; make it known to linker. ;------------------------------------------------------------------------------- ;------------------------------------------------------------------------------- .bss A0results,16 .bss A1results,16 .bss A2results,16 .bss A3results,16 ;------------------------------------------------------------------------------- .global _main .text ; Assemble to Flash memory ;------------------------------------------------------------------------------- _main RESET mov.w #0x5C00,SP ; Initialize stackpointer mov.w #WDTPW + WDTHOLD,&WDTCTL; Stop WDT clr.w R4 ; Clear the array index mov.b #0x0F,&P6SEL ; Enable A/D channel inputs mov.w #ADC12ON + ADC12MSC + ADC12SHT0_8,&ADC12CTL0 ; Turn on ADC12, extend sampling time ; to avoid overflow of results mov.w #ADC12SHP + ADC12CONSEQ_3,&ADC12CTL1 ; Use sampling timer, repeated sequence mov.b #ADC12INCH_0,&ADC12MCTL0; ref+=AVcc, channel = A0 mov.b #ADC12INCH_1,&ADC12MCTL1; ref+=AVcc, channel = A1 mov.b #ADC12INCH_2,&ADC12MCTL2; ref+=AVcc, channel = A2 mov.b #ADC12INCH_3 + ADC12EOS,&ADC12MCTL3 ; ref+=AVcc, channel = A3, end seq. mov.w #0x0008,&ADC12IE ; Enabled ADC12IFG.3 bis.w #ADC12ENC,&ADC12CTL0 ; Enable conversions bis.w #ADC12SC,&ADC12CTL0 ; Start conversion - sw trigger bis.w #LPM0 + GIE,SR ; Enter LPM0, enable interrupts nop ; Only for debugging purposes ;------------------------------------------------------------------------------- ADC12_ISR ;------------------------------------------------------------------------------- add.w &ADC12IV,PC ; Add offset to PC reti ; Vector 0: No interrupt reti ; Vector 2: ADC overflow reti ; Vector 4: ADC timing overflow reti ; Vector 6: ADC12IFG0 reti ; Vector 8: ADC12IFG1 reti ; Vector 10: ADC12IFG2 jmp ADC12IFG3_HND ; Vector 12: ADC12IFG3 reti ; Vector 14: ADC12IFG4 reti ; Vector 16: ADC12IFG5 reti ; Vector 18: ADC12IFG6 reti ; Vector 20: ADC12IFG7 reti ; Vector 22: ADC12IFG8 reti ; Vector 24: ADC12IFG9 reti ; Vector 26: ADC12IFG10 reti ; Vector 28: ADC12IFG11 reti ; Vector 30: ADC12IFG12 reti ; Vector 32: ADC12IFG13 reti ; Vector 34: ADC12IFG14 ADC12IFG3_HND rla.w R4 ; Index * 2 > indirect offset mov.w &ADC12MEM0,0x1C00(R4) ; Move A0 results, IFG is cleared mov.w &ADC12MEM1,0x1C10(R4) ; Move A1 results, IFG is cleared mov.w &ADC12MEM2,0x1C20(R4) ; Move A2 results, IFG is cleared mov.w &ADC12MEM3,0x1C30(R4) ; Move A3 results, IFG is cleared rra.w R4 ; Indirect offset / 2 > index inc.w R4 ; Increment arr_index cmp.b #0x08,R4 ; Is arr_index < 8 ? jne exit_isr ; yes -> Jump to exit_isr clr R4 ; no -> Clear arr_index nop ; Set breakpoint here exit_isr reti ; Return from interrupt ;------------------------------------------------------------------------------- ; Interrupt Vectors ;------------------------------------------------------------------------------- .sect ".int55" ; ADC12 isr vector .short ADC12_ISR .sect ".reset" ; POR, ext. Reset .short RESET .end
54.590361
83
0.488413
665a282baa4fdd457d6b104e249db84a1f31f3c0
4,037
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_1596.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_1596.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_1596.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 %r9 push %rcx push %rdi push %rsi lea addresses_normal_ht+0x31f3, %rsi lea addresses_WT_ht+0xc553, %rdi clflush (%rdi) xor $62978, %r14 mov $65, %rcx rep movsb add %r9, %r9 pop %rsi pop %rdi pop %rcx pop %r9 pop %r14 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %rdx push %rsi // Faulty Load lea addresses_UC+0xab1b, %rdx nop nop xor $2161, %rsi mov (%rdx), %r12 lea oracles, %r11 and $0xff, %r12 shlq $12, %r12 mov (%r11,%r12,1), %r12 pop %rsi pop %rdx pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': True, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
72.089286
2,999
0.663612
dc918ae955d3080d9cdf233e49ba52c5fa6ba735
360
asm
Assembly
programs/oeis/227/A227582.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/227/A227582.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/227/A227582.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A227582: Expansion of (2+3*x+2*x^2+2*x^3+3*x^4+x^5-x^6)/(1-2*x+x^2-x^5+2*x^6-x^7). ; 2,7,14,23,35,50,67,86,107,131,158,187,218,251,287,326,367,410,455,503,554,607,662,719,779,842,907,974,1043,1115,1190,1267,1346,1427,1511,1598,1687,1778,1871,1967,2066,2167,2270,2375,2483,2594,2707,2822,2939 mov $1,$0 add $1,3 mul $1,$0 mul $1,6 add $1,1 div $1,5 add $1,2
32.727273
208
0.663889
832e1e4632ba5e458adca8fdf4bbdb3160958b75
12,489
asm
Assembly
P6/data_P6_2/ALUTest156.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
1
2022-01-23T09:24:47.000Z
2022-01-23T09:24:47.000Z
P6/data_P6_2/ALUTest156.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
P6/data_P6_2/ALUTest156.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
sb $4,8($0) sra $4,$6,27 or $4,$1,$3 and $3,$2,$3 lw $3,0($0) slt $1,$0,$3 addu $5,$5,$3 lw $3,8($0) or $4,$4,$3 nor $1,$4,$3 addiu $1,$4,11958 subu $6,$0,$3 sltu $6,$1,$3 addu $3,$3,$3 addu $2,$2,$3 slt $4,$5,$3 sb $4,13($0) subu $3,$3,$3 ori $4,$3,14120 addiu $5,$3,-16894 andi $5,$2,62368 slti $4,$4,3627 and $4,$3,$3 xor $0,$4,$3 addiu $6,$3,-18531 srav $4,$3,$3 and $1,$1,$3 and $3,$3,$3 slt $5,$0,$3 sw $4,16($0) addiu $5,$6,30464 addiu $1,$3,-26695 srlv $4,$4,$3 srl $3,$3,16 slt $1,$4,$3 lw $1,16($0) ori $1,$3,20408 sra $0,$3,13 sll $3,$3,6 slt $3,$0,$3 srav $5,$5,$3 ori $3,$5,13034 lbu $4,11($0) slti $6,$6,13919 sh $4,2($0) slt $4,$0,$3 slti $4,$0,2563 sh $3,16($0) sltu $1,$2,$3 ori $3,$1,20098 sra $3,$6,26 sll $3,$3,8 lw $3,4($0) xori $3,$3,42427 sw $3,0($0) xori $5,$5,56973 lb $1,3($0) sll $5,$5,13 addiu $5,$5,-4676 lw $3,12($0) lbu $4,12($0) lb $4,13($0) sh $3,10($0) lhu $5,10($0) subu $3,$4,$3 andi $4,$3,56871 srl $1,$3,12 subu $5,$6,$3 subu $1,$4,$3 xori $3,$5,49918 sh $5,6($0) srlv $1,$2,$3 addu $1,$2,$3 lhu $3,8($0) nor $5,$5,$3 lw $5,4($0) xor $4,$6,$3 andi $3,$3,52237 sll $3,$5,8 or $1,$3,$3 ori $0,$4,59774 sra $3,$5,17 sh $4,16($0) sra $4,$1,8 addu $3,$3,$3 sll $5,$3,1 sra $5,$5,29 sw $4,16($0) addu $1,$6,$3 srav $3,$1,$3 ori $3,$6,11946 sll $3,$5,2 andi $4,$3,51933 sllv $4,$4,$3 sra $4,$3,27 sw $3,12($0) lb $0,8($0) srlv $4,$5,$3 sra $4,$4,11 andi $6,$5,28984 ori $4,$3,44871 slt $3,$3,$3 or $6,$5,$3 slt $4,$5,$3 or $0,$6,$3 and $4,$3,$3 lb $0,9($0) slt $3,$1,$3 xor $3,$1,$3 sllv $5,$1,$3 addu $4,$1,$3 srl $3,$1,14 srav $4,$6,$3 addiu $5,$1,-3984 subu $3,$3,$3 sltu $3,$2,$3 sltiu $4,$4,-15061 srlv $5,$1,$3 lhu $6,0($0) or $3,$3,$3 sltiu $5,$3,5425 sltiu $4,$3,22122 slt $5,$3,$3 subu $1,$4,$3 sllv $3,$1,$3 subu $3,$3,$3 lw $3,12($0) sb $4,16($0) srav $5,$4,$3 nor $3,$4,$3 sll $5,$4,31 lw $3,0($0) addu $3,$0,$3 nor $5,$3,$3 slt $1,$3,$3 xor $0,$4,$3 xori $5,$3,55678 srlv $4,$4,$3 lhu $3,0($0) or $3,$1,$3 sltu $3,$4,$3 slt $1,$4,$3 srl $5,$4,20 lhu $3,0($0) lhu $4,10($0) xori $6,$4,49098 slti $1,$1,21662 lb $3,9($0) xor $1,$6,$3 slti $4,$4,-20365 srl $5,$4,14 nor $1,$0,$3 sll $6,$5,14 srav $4,$4,$3 xor $3,$3,$3 lh $4,6($0) lb $3,7($0) lhu $0,2($0) slt $5,$4,$3 ori $1,$3,46928 sll $3,$6,28 subu $1,$3,$3 ori $3,$5,25204 addiu $4,$5,-1321 nor $6,$0,$3 and $1,$5,$3 lhu $3,14($0) addiu $4,$4,17128 sll $4,$5,3 lw $3,12($0) or $4,$4,$3 sltu $3,$1,$3 srlv $1,$6,$3 sw $6,16($0) addu $3,$1,$3 lhu $3,2($0) lw $5,12($0) sra $1,$3,12 andi $4,$4,21 addiu $4,$3,26350 ori $1,$2,26534 ori $4,$4,45393 lbu $4,2($0) addu $4,$4,$3 lbu $5,1($0) addiu $3,$4,24207 xori $5,$2,33636 sltiu $5,$1,8941 lb $3,16($0) slt $0,$4,$3 sll $4,$4,29 srav $4,$4,$3 subu $3,$4,$3 slt $3,$5,$3 ori $4,$3,9180 sltu $1,$1,$3 or $1,$1,$3 sll $4,$4,19 addu $3,$6,$3 lbu $4,11($0) lb $1,7($0) lb $5,16($0) ori $6,$3,48471 slt $4,$6,$3 srav $3,$3,$3 sltu $3,$2,$3 sltu $3,$3,$3 sra $0,$0,15 subu $6,$3,$3 addu $4,$0,$3 and $4,$5,$3 subu $3,$4,$3 sh $4,8($0) and $5,$4,$3 ori $5,$0,28898 srav $3,$3,$3 ori $4,$4,1612 sllv $3,$1,$3 xor $4,$6,$3 sw $6,12($0) ori $3,$3,59377 addu $6,$6,$3 srav $3,$4,$3 sltu $4,$6,$3 sll $4,$4,1 and $3,$6,$3 lb $4,0($0) srl $4,$3,10 slti $3,$5,-20646 addiu $0,$1,16843 addu $1,$1,$3 andi $5,$5,46152 sh $4,12($0) sw $6,16($0) srav $3,$4,$3 andi $4,$3,31600 xori $5,$5,42623 nor $6,$2,$3 srl $4,$4,21 xor $3,$6,$3 sllv $4,$4,$3 subu $4,$4,$3 sltiu $6,$3,7355 nor $6,$5,$3 nor $6,$1,$3 slti $0,$4,-22689 slti $5,$3,-5641 sltu $4,$3,$3 and $5,$0,$3 sltu $4,$4,$3 slt $5,$5,$3 srav $4,$3,$3 srav $4,$0,$3 sltiu $3,$3,10494 slti $3,$3,5866 sllv $3,$3,$3 sltu $3,$3,$3 sra $1,$4,19 sltu $1,$1,$3 lbu $5,11($0) lh $3,8($0) addu $3,$5,$3 xor $4,$4,$3 sh $1,14($0) addiu $1,$1,15107 slt $3,$3,$3 srav $5,$5,$3 srav $5,$4,$3 xori $0,$3,52432 srl $4,$3,25 lbu $4,9($0) nor $5,$6,$3 addiu $1,$4,20136 addiu $5,$5,-18259 andi $4,$3,63126 addu $1,$1,$3 ori $3,$3,9628 lw $3,16($0) sh $3,8($0) sllv $3,$3,$3 sllv $5,$4,$3 slti $6,$2,-28698 or $1,$1,$3 sb $5,5($0) lh $3,4($0) sltiu $4,$5,22625 sltiu $5,$2,10747 lb $0,3($0) and $1,$3,$3 sltu $1,$4,$3 sra $0,$3,25 andi $3,$3,46289 sh $1,12($0) addu $1,$0,$3 subu $4,$3,$3 sltu $4,$3,$3 and $5,$5,$3 addu $4,$4,$3 slt $4,$4,$3 nor $3,$3,$3 lhu $4,16($0) slt $3,$3,$3 sltu $3,$3,$3 addiu $6,$3,-9017 nor $3,$3,$3 sw $3,8($0) lh $4,8($0) srav $5,$6,$3 sll $3,$3,16 srl $3,$4,18 xori $4,$4,24211 sltu $1,$3,$3 sw $4,4($0) nor $3,$5,$3 and $4,$0,$3 sllv $1,$4,$3 addiu $3,$3,-20335 srav $4,$0,$3 srav $3,$3,$3 sltiu $4,$3,21368 sra $4,$4,23 slt $1,$3,$3 xori $4,$4,17363 ori $3,$4,16046 nor $4,$4,$3 slt $4,$5,$3 xor $0,$1,$3 nor $3,$1,$3 lb $3,16($0) subu $4,$4,$3 lh $3,8($0) sw $4,8($0) lhu $3,8($0) sltiu $5,$3,-26945 srav $0,$0,$3 sltu $5,$1,$3 srlv $5,$3,$3 lw $2,8($0) xor $5,$6,$3 sltu $5,$3,$3 xori $3,$3,18241 lhu $5,8($0) subu $0,$3,$3 ori $6,$4,27033 and $1,$1,$3 addiu $0,$4,-2057 addiu $6,$6,25313 srl $3,$6,25 lw $4,4($0) and $3,$4,$3 subu $1,$1,$3 sw $3,12($0) slti $4,$3,-25378 and $3,$3,$3 subu $3,$3,$3 sll $3,$3,23 slt $4,$2,$3 addiu $4,$6,25498 nor $3,$6,$3 subu $3,$3,$3 ori $6,$6,8098 slti $0,$2,-28549 sw $3,12($0) xori $4,$4,44695 addu $3,$6,$3 andi $0,$4,45940 xori $3,$4,56137 lw $5,12($0) xori $3,$4,49534 and $6,$4,$3 xor $0,$2,$3 subu $6,$5,$3 subu $4,$4,$3 slti $1,$5,-30909 addiu $4,$2,4925 subu $1,$1,$3 sw $5,8($0) srav $3,$4,$3 nor $6,$3,$3 srlv $1,$2,$3 sh $0,10($0) sra $1,$1,19 sra $4,$1,19 lb $3,6($0) srlv $1,$4,$3 sb $4,11($0) sltiu $4,$0,2215 andi $1,$4,7324 lb $1,10($0) subu $3,$1,$3 sltiu $3,$3,29820 srlv $3,$4,$3 sw $3,4($0) sra $5,$2,28 lhu $3,4($0) lbu $4,0($0) and $3,$5,$3 lbu $1,12($0) lh $0,6($0) sltu $0,$0,$3 xor $4,$2,$3 lh $0,14($0) lw $1,0($0) xor $4,$1,$3 srl $0,$0,4 lb $1,13($0) sllv $4,$4,$3 lb $4,10($0) xori $4,$1,58787 ori $1,$5,25258 sll $1,$1,13 srl $6,$3,2 srav $4,$3,$3 sllv $3,$4,$3 sw $3,8($0) ori $1,$6,35159 sltiu $1,$3,-4361 and $3,$2,$3 addu $6,$3,$3 nor $4,$3,$3 lb $3,4($0) and $3,$6,$3 sllv $3,$1,$3 sll $3,$4,12 or $4,$5,$3 lhu $6,14($0) subu $1,$3,$3 xor $4,$3,$3 subu $5,$0,$3 slt $4,$3,$3 subu $6,$1,$3 subu $5,$5,$3 xori $4,$5,42769 slt $1,$1,$3 lh $1,14($0) ori $6,$5,13646 srl $1,$0,10 addu $1,$1,$3 andi $3,$3,1212 slt $3,$4,$3 sltu $4,$3,$3 slt $3,$1,$3 subu $6,$6,$3 lw $5,8($0) sh $3,4($0) sltiu $1,$3,6670 xor $0,$0,$3 subu $4,$3,$3 slti $5,$5,8739 addu $6,$5,$3 sb $3,12($0) sb $4,16($0) sll $4,$0,17 sb $3,8($0) sb $0,12($0) lb $1,11($0) nor $3,$4,$3 sltiu $0,$5,-6753 lh $3,4($0) lw $6,0($0) addu $0,$1,$3 sltiu $6,$4,-7796 and $4,$4,$3 addiu $3,$3,20122 lh $4,4($0) lbu $0,4($0) xori $4,$1,40399 lb $3,1($0) xor $6,$4,$3 sltu $4,$3,$3 sw $6,8($0) lb $0,11($0) lw $3,8($0) or $3,$3,$3 lb $4,8($0) xor $5,$6,$3 xori $4,$4,41104 sltu $6,$6,$3 srlv $3,$1,$3 srav $3,$1,$3 subu $6,$6,$3 lh $4,14($0) and $0,$0,$3 sra $3,$3,24 sll $3,$4,9 andi $5,$0,48475 slti $3,$3,-6258 addiu $4,$4,-17627 srl $3,$4,30 ori $3,$4,36967 lb $4,13($0) subu $1,$3,$3 xori $4,$4,13366 addiu $4,$5,-2238 sra $5,$0,29 ori $3,$1,45623 srl $3,$3,9 srlv $5,$4,$3 addiu $3,$1,4915 sltiu $4,$4,-18918 and $6,$5,$3 or $4,$1,$3 lw $3,12($0) sltiu $3,$3,14051 srav $3,$0,$3 andi $4,$4,21629 lbu $4,10($0) sltu $3,$4,$3 addiu $0,$4,-14365 srl $3,$3,25 and $3,$3,$3 lh $6,10($0) andi $5,$3,41706 sltu $4,$4,$3 addiu $1,$1,-32607 and $1,$1,$3 lh $3,4($0) sb $4,14($0) subu $4,$0,$3 sll $3,$3,10 ori $4,$0,13063 sll $6,$6,5 srlv $3,$1,$3 sb $5,7($0) sltu $1,$3,$3 addiu $5,$5,-13716 xori $3,$4,17929 addu $1,$1,$3 addu $6,$3,$3 xor $0,$1,$3 xor $1,$1,$3 lh $3,2($0) nor $5,$5,$3 slt $1,$3,$3 lbu $3,13($0) srl $4,$5,19 sltu $6,$5,$3 ori $4,$3,9881 xori $3,$3,24732 lbu $0,11($0) sll $1,$6,23 srav $3,$5,$3 sh $0,4($0) lw $1,4($0) lb $3,1($0) sllv $5,$2,$3 sll $3,$4,4 ori $1,$3,57709 addiu $3,$4,-28317 sltu $1,$4,$3 sw $3,12($0) srl $3,$3,1 addiu $3,$3,-1444 slti $4,$4,9234 lw $4,12($0) andi $4,$4,51842 lh $0,2($0) and $1,$1,$3 srlv $6,$5,$3 srlv $3,$1,$3 srl $3,$4,22 sllv $3,$0,$3 slti $3,$3,18955 lb $5,10($0) slt $5,$5,$3 lb $4,6($0) slt $3,$3,$3 addu $6,$4,$3 addu $5,$0,$3 sb $5,9($0) subu $1,$4,$3 ori $3,$5,15500 slti $4,$0,2967 nor $0,$5,$3 srl $5,$4,21 xori $3,$6,41123 addiu $5,$6,-3334 sra $3,$3,6 sltiu $1,$5,-6691 addu $3,$4,$3 srl $6,$6,18 xori $3,$3,55426 nor $5,$4,$3 srlv $4,$6,$3 sltu $1,$4,$3 or $4,$0,$3 lh $5,8($0) sltu $3,$4,$3 and $3,$3,$3 sllv $3,$3,$3 andi $6,$6,41712 andi $1,$4,273 lbu $3,7($0) srav $4,$3,$3 sb $0,12($0) srl $6,$1,26 sll $3,$3,10 and $3,$5,$3 srl $3,$3,10 lbu $4,1($0) sra $3,$2,27 lb $5,14($0) ori $3,$3,16780 addu $3,$0,$3 xori $4,$1,50117 sltu $3,$6,$3 slt $4,$5,$3 sb $6,2($0) ori $4,$4,20796 sll $5,$3,18 srl $3,$6,5 slt $3,$0,$3 subu $6,$1,$3 addiu $1,$5,-19961 addiu $5,$5,-10453 nor $4,$4,$3 subu $1,$1,$3 nor $1,$1,$3 sltiu $3,$5,-30547 sw $1,8($0) lbu $0,9($0) lbu $4,6($0) xori $4,$4,48022 slt $3,$3,$3 addiu $3,$5,2978 xori $1,$4,38652 nor $3,$3,$3 sh $4,16($0) ori $5,$5,51232 ori $5,$4,33554 srl $1,$5,22 sh $3,12($0) and $4,$3,$3 andi $5,$4,14332 xori $3,$3,42143 and $4,$4,$3 sltiu $3,$4,-16851 addu $4,$4,$3 lh $4,10($0) sllv $0,$0,$3 sltu $4,$3,$3 lb $4,6($0) and $4,$3,$3 lhu $1,0($0) ori $3,$3,50428 and $4,$3,$3 lhu $3,10($0) xori $6,$4,39524 subu $5,$5,$3 subu $1,$4,$3 subu $3,$3,$3 sltiu $4,$4,-31612 or $3,$2,$3 xori $3,$5,49731 xori $5,$5,5654 and $4,$4,$3 addu $3,$6,$3 srlv $5,$3,$3 sltiu $4,$0,-1966 lhu $3,4($0) xor $3,$1,$3 subu $5,$5,$3 nor $0,$0,$3 andi $0,$0,27424 sb $4,3($0) lw $4,8($0) addu $4,$4,$3 or $3,$1,$3 sw $3,8($0) subu $4,$4,$3 lbu $1,0($0) srl $4,$5,27 subu $6,$6,$3 and $1,$3,$3 addu $3,$1,$3 addiu $4,$4,-19377 nor $4,$4,$3 addu $3,$5,$3 sll $3,$6,29 sll $3,$3,22 xor $1,$3,$3 addiu $0,$3,-20122 addu $0,$5,$3 sll $3,$3,13 xor $6,$3,$3 sllv $1,$1,$3 lb $5,3($0) lb $3,4($0) sw $3,12($0) sra $1,$5,9 lhu $3,10($0) sb $3,0($0) sb $1,7($0) xori $5,$5,27985 lw $3,8($0) xor $3,$3,$3 lbu $3,14($0) xori $6,$0,47598 xor $3,$1,$3 lw $3,0($0) sra $3,$3,8 subu $6,$2,$3 lb $5,6($0) xori $0,$0,19165 nor $3,$4,$3 sw $3,16($0) lbu $5,10($0) subu $3,$5,$3 nor $5,$4,$3 addu $1,$1,$3 xori $4,$3,27658 xor $5,$5,$3 addu $3,$3,$3 or $1,$1,$3 subu $3,$3,$3 lbu $4,8($0) sltiu $5,$1,-10580 or $4,$4,$3 sra $3,$0,17 sw $1,8($0) sw $3,4($0) sltu $4,$3,$3 and $3,$4,$3 lh $1,0($0) sll $1,$1,25 or $1,$1,$3 sltiu $4,$4,3567 and $4,$4,$3 srlv $3,$3,$3 addu $4,$2,$3 subu $3,$4,$3 addu $0,$1,$3 sll $4,$0,17 lb $6,11($0) srl $4,$5,12 ori $0,$3,37580 sllv $3,$3,$3 subu $0,$4,$3 lb $3,8($0) sra $5,$4,22 addu $1,$4,$3 srl $4,$5,11 sll $5,$2,16 srl $4,$3,30 lh $1,10($0) sb $4,10($0) srlv $5,$4,$3 nor $4,$1,$3 or $6,$5,$3 sw $1,4($0) addiu $4,$1,6220 lhu $4,4($0) sltu $5,$3,$3 or $5,$5,$3 andi $1,$1,47911 andi $5,$3,41918 sll $3,$3,18 or $1,$3,$3 lbu $3,6($0) slt $4,$4,$3 srlv $5,$5,$3 slt $3,$2,$3 addiu $3,$4,25916 xori $3,$3,28250 sra $1,$1,24 sh $4,10($0) slti $3,$3,-20347 sh $0,4($0) ori $5,$1,30259 srav $4,$1,$3 addu $5,$5,$3 sltu $5,$5,$3 or $6,$1,$3 sra $1,$4,15 lhu $4,10($0) srl $3,$3,3 sra $5,$3,8 srav $0,$1,$3 lw $1,0($0) lbu $4,3($0) addiu $3,$1,9433 sltu $4,$1,$3 ori $1,$4,21155 lhu $5,8($0) sltiu $0,$2,-18179 sllv $0,$4,$3 srav $4,$1,$3 slti $3,$4,-29985 ori $4,$4,1961 lbu $3,4($0) subu $0,$3,$3 sltu $1,$1,$3 nor $0,$0,$3 addu $3,$5,$3 andi $1,$6,11614 or $1,$1,$3 subu $3,$4,$3 xor $1,$5,$3 subu $1,$3,$3 addu $3,$5,$3 addiu $3,$3,-32258 addu $1,$4,$3 xori $3,$4,9868 sh $3,8($0) sb $3,10($0) lbu $1,10($0) slt $3,$3,$3 andi $3,$3,14835 or $2,$2,$3 sb $3,1($0) ori $3,$3,40029 xori $0,$4,9949 sltiu $5,$5,-10507 and $1,$4,$3 sltiu $2,$2,11129 xor $4,$1,$3 slt $4,$4,$3 lbu $4,8($0) or $3,$1,$3 sltu $3,$3,$3 or $3,$1,$3 lw $3,8($0) sllv $0,$0,$3 ori $4,$3,35657 lw $6,0($0) sh $3,10($0) nor $5,$1,$3 sh $5,12($0) addiu $3,$3,-5408 srlv $4,$4,$3 sllv $3,$3,$3 sllv $6,$3,$3 or $3,$5,$3 subu $4,$6,$3 sra $4,$4,22 ori $4,$4,52013 lw $5,12($0) sra $4,$3,19 sltiu $5,$5,11006 and $3,$3,$3 srlv $3,$3,$3 sll $4,$6,25 sllv $2,$2,$3 slti $1,$6,24859 sra $3,$5,26 or $1,$4,$3 sra $1,$1,13 srav $1,$4,$3 subu $0,$0,$3 sra $3,$5,11 sllv $4,$4,$3 sllv $3,$3,$3 slti $4,$4,26338 nor $4,$3,$3 sllv $4,$3,$3 sllv $6,$3,$3 sltu $1,$4,$3 lbu $3,9($0) nor $4,$3,$3 addu $2,$2,$3 sllv $4,$3,$3 srav $3,$1,$3 nor $3,$1,$3 slti $6,$3,-18062 xor $4,$3,$3 sra $1,$5,24 nor $3,$3,$3 slt $3,$4,$3 slti $1,$1,20999 sra $3,$3,27 addiu $3,$3,13032 ori $1,$3,25722 sh $5,16($0) slt $1,$3,$3 subu $4,$4,$3 subu $3,$1,$3 sltiu $1,$1,-20819 xor $3,$3,$3 or $1,$1,$3 srlv $6,$4,$3 sltiu $4,$4,-29960 srav $3,$3,$3 or $3,$3,$3 sltu $2,$2,$3 lbu $4,8($0) lb $3,2($0) subu $3,$6,$3 subu $4,$4,$3
14.048369
18
0.521979
1b9a3dd9100d57ee725a7e8ff2a5f0b3a297737d
10,577
asm
Assembly
rvv.asm
rodolfovalentim/sistemb2016-1
b9b2f961b757dd31296f9fcb906a926a4e5388d1
[ "MIT" ]
null
null
null
rvv.asm
rodolfovalentim/sistemb2016-1
b9b2f961b757dd31296f9fcb906a926a4e5388d1
[ "MIT" ]
null
null
null
rvv.asm
rodolfovalentim/sistemb2016-1
b9b2f961b757dd31296f9fcb906a926a4e5388d1
[ "MIT" ]
null
null
null
; Rodolfo Vieira Valentim ; Sistemas Embarcados 2016/1 %macro drawline 5 ;x1,y1,x2,y2,color mov ax,%1 push ax mov ax,%2 push ax mov ax,%3 push ax mov ax,%4 push ax mov byte[cor],%5 call line %endmacro %macro ponto 2 ; x,y,color add %1, 3 add %2, 100 push %1 push %2 call plot_xy sub %1, 3 sub %2, 100 %endmacro %macro writeword 4 mov byte[cor], %4 mov bx,0 mov dh,%2 ;linha 0-29 mov dl,%3 ;coluna 0-79 %%local: call cursor mov al,[bx+%1] cmp al, '$' je %%exit call caracter inc bx ;proximo caracter inc dl ;avanca a coluna jmp %%local %%exit: %endmacro ;******************************************************************* segment code ..start: mov ax,data mov ds,ax mov ax,stack mov ss,ax mov sp,stacktop ; salvar modo corrente de video(vendo como esta o modo de video da maquina) mov ah, 0Fh int 10h mov [modo_anterior], al ; alterar modo de video para grafico 640x480 16 cores mov al, 12h mov ah, 0 int 10h drawline 255, 0, 255, 479, branco_intenso drawline 255, 239, 639, 239, branco_intenso drawline 63, 479, 63, 431, branco_intenso drawline 127, 479, 127, 431, branco_intenso drawline 191, 479, 191, 431, branco_intenso drawline 0, 431, 255, 431, branco_intenso drawline 0, 63, 255, 63, branco_intenso writeword abrir, 1, 1, branco_intenso writeword sair, 1, 10, branco_intenso writeword hist, 1, 18, branco_intenso writeword eqhist, 1, 25, branco_intenso writeword txhist, 1, 33, branco_intenso writeword txeqhist, 16, 33, branco_intenso writeword nome, 27, 1, branco_intenso writeword disc, 28, 1, branco_intenso mov ax, 01h int 33h ETERNO: mov ax, 05h mov bx, 0 int 33h test bl, 1 jz ETERNO jmp LEFT_BUTTON_PRESSED EXIT: mov ah,0 ; set video mode mov al,[modo_anterior] ; modo anterior int 10h mov ah, 4Ch int 21h ;*******************Functions*************************************** OPEN: mov byte[flaghist], 0 mov byte[flageqhist], 0 mov bx, cfd mov di, histogram mov si, eqhistogram mov ax, 319 mov dx, 319 mov cx, 256 RESETH: mov word[bx], 00 mov word[di], 00 mov word[si], 00 add di, 2 add si, 2 add bx, 2 pusha drawline ax, 16, dx, 207, preto popa pusha drawline ax, 250, dx, 447, preto popa inc ax inc dx loop RESETH ;abre arquivo mov ah, 3Dh mov al, 00 mov dx, filename mov cx, 1 int 21h mov word[handle], ax mov si, image READ: mov ah, 3Fh mov bx, word[handle] mov cx, 1 mov dx, input int 21h ;verifica se o arquivo acabou cmp ax, cx jl FINISH_READ ;compara com o espaço mov dl, byte[input] cmp dl, 20h je STORE mov al, byte[buffer] sub dl, '0' mov bl, 0ah mul bl add al, dl mov byte[buffer], al jmp READ STORE: mov dl, byte[buffer] mov byte[si], dl inc si mov byte[buffer], 00h jmp READ FINISH_READ: ; termina a leitura da imagem mov dl, [buffer] mov byte[si], dl mov ah, 3Eh int 21h PRINT: ; print to screen mov si, 0 ; x mov di, 249 ; y mov bx, image L3: cmp di, 0 je EL3 mov ah, 00h mov al, byte[bx] shr al, 4 mov byte[cor], al ponto si, di inc si inc bx cmp si, 250 je RCAX jmp L3 RCAX: ;reset counter ax mov si, 0 sub di, 1 jmp L3 EL3: mov byte[flagopen], 1 jmp ETERNO ;******************************************************************* DO_HISTOGRAM: mov ax, [flagopen] cmp ax, 1 je ALOWED0 jmp ETERNO ALOWED0: mov ax, [flaghist] cmp ax, 0 je ALOWED1 jmp ETERNO ALOWED1: mov si, image mov di, histogram mov cx, 62501 L2: mov bh, 00h mov bl, byte[si] add bx, bx add word[di+bx], 0001h inc si loop L2 ; plot histogram mov cx, 319 mov bx, histogram L6: cmp cx, 575 je EL6 mov dx, word[bx] shr dx, 4 add dx, 250 drawline cx, 250, cx, dx, branco_intenso add bx, 2 inc cx jmp L6 EL6: mov byte[flaghist], 1 jmp ETERNO ;******************************************************************* ACUMULATE: mov ax, [flaghist] cmp ax, 1 je ALOWED2 jmp ETERNO ALOWED2: ; mov ax, [flageqhist] ; cmp ax, 0 ; je ALOWED3 ; jmp ETERNO ;ALOWED3: mov si, histogram mov di, cfd mov bx, [si] mov [di], bx add si, 2 mov cx, 255 L4: mov bx, [si] add [di+2], bx mov bx, [di] add [di+2], bx add di, 2 add si, 2 loop L4 equalize: mov di, image mov cx, 62500 mov bx, 62500 L7: mov al, byte[di] and ax, 00FFh mov si, ax add si, si mov ax, [cfd+si] mov bx, 256 mul bx mov bx, 62500 div bx mov [di], al inc di loop L7 DO_HISTOGRAM_EQ: mov si, image mov di, eqhistogram mov cx, 62501 L10: mov bh, 00h mov bl, byte[si] add bx, bx add word[di+bx], 0001h inc si loop L10 ; plot histogram mov cx, 319 mov bx, eqhistogram L5: cmp cx, 575 je EL5 mov dx, word[bx] shr dx, 4 add dx, 16 drawline cx, 16, cx, dx, branco_intenso add bx, 2 inc cx jmp L5 EL5: mov byte[flageqhist], 1 jmp PRINT LEFT_BUTTON_PRESSED: pusha writeword abrir, 1, 1, branco_intenso writeword sair, 1, 10,branco_intenso writeword hist, 1, 18,branco_intenso writeword eqhist, 1, 25,branco_intenso popa cmp dx, 48 jg CASEO cmp cx, 63 jl CASE1 cmp cx, 127 jl CASE2 cmp cx, 191 jl CASE3 cmp cx, 255 jl CASE4 jmp ETERNO CASEO: jmp ETERNO CASE1: writeword abrir, 1, 1, amarelo jmp OPEN CASE2: writeword sair, 1, 10, amarelo jmp EXIT CASE3: writeword hist, 1, 18, amarelo jmp DO_HISTOGRAM CASE4: writeword eqhist, 1, 25, amarelo jmp ACUMULATE ;*************************************************************************** ; função cursor ; dh = linha (0-29) e dl=coluna (0-79) ;*************************************************************************** cursor: pushf push ax push bx push cx push dx push si push di push bp mov ah,2 mov bh,0 int 10h pop bp pop di pop si pop dx pop cx pop bx pop ax popf ret ;_____________________________________________________________________________ ; ; fun��o caracter escrito na posi��o do cursor ; ; al= caracter a ser escrito ; cor definida na variavel cor caracter: pushf push ax push bx push cx push dx push si push di push bp mov ah,9 mov bh,0 mov cx,1 mov bl,[cor] int 10h pop bp pop di pop si pop dx pop cx pop bx pop ax popf ret ;_____________________________________________________________________________ ; ; função plot_xy ; ; push x; push y; call plot_xy; (x<639, y<479) ; cor definida na variavel cor plot_xy: push bp mov bp,sp pushf push ax push bx push cx push dx push si push di mov ah,0ch mov al,[cor] mov bh,0 mov dx,479 sub dx,[bp+4] mov cx,[bp+6] int 10h pop di pop si pop dx pop cx pop bx pop ax popf pop bp ret 4 ;----------------------------------------------------------------------------- ; ; fun��o line ; ; push x1; push y1; push x2; push y2; call line; (x<639, y<479) line: push bp mov bp,sp pushf ;coloca os flags na pilha push ax push bx push cx push dx push si push di mov ax,[bp+10] ; resgata os valores das coordenadas mov bx,[bp+8] ; resgata os valores das coordenadas mov cx,[bp+6] ; resgata os valores das coordenadas mov dx,[bp+4] ; resgata os valores das coordenadas cmp ax,cx je line2 jb line1 xchg ax,cx xchg bx,dx jmp line1 line2: ; deltax=0 cmp bx,dx ;subtrai dx de bx jb line3 xchg bx,dx ;troca os valores de bx e dx entre eles line3: ; dx > bx push ax push bx call plot_xy cmp bx,dx jne line31 jmp fim_line line31: inc bx jmp line3 ;deltax <>0 line1: ; comparar m�dulos de deltax e deltay sabendo que cx>ax ; cx > ax push cx sub cx,ax mov [deltax],cx pop cx push dx sub dx,bx ja line32 neg dx line32: mov [deltay],dx pop dx push ax mov ax,[deltax] cmp ax,[deltay] pop ax jb line5 ; cx > ax e deltax>deltay push cx sub cx,ax mov [deltax],cx pop cx push dx sub dx,bx mov [deltay],dx pop dx mov si,ax line4: push ax push dx push si sub si,ax ;(x-x1) mov ax,[deltay] imul si mov si,[deltax] ;arredondar shr si,1 ; se numerador (DX)>0 soma se <0 subtrai cmp dx,0 jl ar1 add ax,si adc dx,0 jmp arc1 ar1: sub ax,si sbb dx,0 arc1: idiv word [deltax] add ax,bx pop si push si push ax call plot_xy pop dx pop ax cmp si,cx je fim_line inc si jmp line4 line5: cmp bx,dx jb line7 xchg ax,cx xchg bx,dx line7: push cx sub cx,ax mov [deltax],cx pop cx push dx sub dx,bx mov [deltay],dx pop dx mov si,bx line6: push dx push si push ax sub si,bx ;(y-y1) mov ax,[deltax] imul si mov si,[deltay] ;arredondar shr si,1 ; se numerador (DX)>0 soma se <0 subtrai cmp dx,0 jl ar2 add ax,si adc dx,0 jmp arc2 ar2: sub ax, si sbb dx, 0 arc2: idiv word [deltay] mov di, ax pop ax add di, ax pop si push di push si call plot_xy pop dx cmp si, dx je fim_line inc si jmp line6 fim_line: pop di pop si pop dx pop cx pop bx pop ax popf pop bp ret 8 ;******************************************************************* segment data cor db branco_intenso ; I R G B COR ; 0 0 0 0 preto ; 0 0 0 1 azul ; 0 0 1 0 verde ; 0 0 1 1 cyan ; 0 1 0 0 vermelho ; 0 1 0 1 magenta ; 0 1 1 0 marrom ; 0 1 1 1 branco ; 1 0 0 0 cinza ; 1 0 0 1 azul claro ; 1 0 1 0 verde claro ; 1 0 1 1 cyan claro ; 1 1 0 0 rosa ; 1 1 0 1 magenta claro ; 1 1 1 0 amarelo ; 1 1 1 1 branco intenso preto equ 0 azul equ 1 verde equ 2 cyan equ 3 vermelho equ 4 magenta equ 5 marrom equ 6 branco equ 7 cinza equ 8 azul_claro equ 9 verde_claro equ 10 cyan_claro equ 11 rosa equ 12 magenta_claro equ 13 amarelo equ 14 branco_intenso equ 15 modo_anterior db 0 linha dw 0 coluna dw 0 deltax dw 0 deltay dw 0 abrir db 'ABRIR$' sair db 'SAIR$' hist db 'HIST$' eqhist db 'HISTEQ$' txhist db 'HISTOGRAMA ORIGINAL$' txeqhist db 'HISTOGRAMA EQUALIZADO$' nome db 'RODOLFO VALENTIM$' disc db 'SISTEMAS EMBARCADOS 2016/1$' filename db 'imagem.txt', 0 buffer db 0 handle dw 0 input db 0 flagopen db 0 flaghist db 0 flageqhist db 0 histogram: times 256 dw 0 cfd: times 256 dw 0 eqhistogram: times 256 dw 0 image: resb 62500 ;************************************************************************* segment stack stack resb 256 stacktop:
15.46345
78
0.59705
a83230d2c2c50e9e98611cad85bd58dc107943fa
497
asm
Assembly
oeis/256/A256303.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/256/A256303.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/256/A256303.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A256303: Apply the transformation 0 -> 1 -> 2 -> 0 to the digits of n written in base 3; do not convert back to base 10. ; Submitted by Christian Krause ; 1,2,0,21,22,20,1,2,0,211,212,210,221,222,220,201,202,200,11,12,10,21,22,20,1,2,0,2111,2112,2110,2121,2122,2120,2101,2102,2100,2211,2212,2210,2221,2222,2220,2201,2202,2200,2011,2012,2010,2021,2022,2020,2001 bin $2,$0 mov $3,1 lpb $0 mov $2,$0 div $0,3 add $2,7 mod $2,3 mul $2,$3 add $1,$2 mov $2,$1 mul $3,10 lpe mov $0,$2
27.611111
207
0.65996
55a627f4eb3bf166b1c13f9e3a7dde24ef5cbb7f
152
asm
Assembly
src/maths/multiplication.asm
Pentium1080Ti/x86-assembly
4af3caf07e17bdd23e08b85f6666d67f63f610c2
[ "MIT" ]
null
null
null
src/maths/multiplication.asm
Pentium1080Ti/x86-assembly
4af3caf07e17bdd23e08b85f6666d67f63f610c2
[ "MIT" ]
null
null
null
src/maths/multiplication.asm
Pentium1080Ti/x86-assembly
4af3caf07e17bdd23e08b85f6666d67f63f610c2
[ "MIT" ]
null
null
null
%include 'src/include/functions.asm' SECTION .text global _start _start: mov eax, 10 mov ebx, 10 mul ebx call iprintLF call quit
11.692308
36
0.657895
5dbb0149ba2befa7360e203830d2129df3d7fc81
446
asm
Assembly
programs/oeis/212/A212897.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/212/A212897.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/212/A212897.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A212897: Number of (w,x,y,z) with all terms in {0,...,n} and (least gapsize)>1. ; 0,0,2,16,74,230,562,1172,2186,3754,6050,9272,13642,19406,26834,36220,47882,62162,79426,100064,124490,153142,186482,224996,269194,319610,376802,441352,513866,594974,685330,785612,896522,1018786 mov $1,$0 mov $3,$0 sub $3,1 mul $1,$3 lpb $0,1 add $1,3 mov $2,$3 sub $2,$1 add $0,$2 add $0,2 mov $1,$2 mul $1,$0 cmp $0,$2 sub $0,1 add $1,2 lpe
22.3
194
0.64574
10aa89fb24e74f2f57e5065f443d48bc677eae30
869
asm
Assembly
oeis/208/A208178.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/208/A208178.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/208/A208178.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A208178: Primes of the form 256*k + 1. ; Submitted by Jon Maiga ; 257,769,3329,7681,7937,9473,10753,11777,12289,13313,14081,14593,15361,17921,18433,19457,22273,23041,23297,25601,26113,26881,30977,31489,32257,36097,36353,37633,37889,39937,40193,40961,41729,43777,45569,46337,49409,49921,50177,51713,57089,57601,58369,59393,60161,61441,64513,65537,67073,70657,70913,75521,76289,76801,77569,78593,79873,80897,81409,83969,84481,84737,86017,87041,87553,88321,91393,95233,96001,96769,98561,100609,101377,102913,103681,106753,107777,108289,109313,110849,112129,113153 mov $1,35 mov $2,$0 add $2,6 pow $2,2 lpb $2 add $1,24 sub $2,1 mov $3,$1 add $1,4 add $3,5 mul $3,4 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,36 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 sub $0,99 mul $0,4 add $0,257
31.035714
496
0.721519
423897dc5e36908b3af707bb35c7154451e83515
223
asm
Assembly
libsrc/_DEVELOPMENT/adt/bv_priority_queue/c/sdcc_iy/bv_priority_queue_pop.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/adt/bv_priority_queue/c/sdcc_iy/bv_priority_queue_pop.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/adt/bv_priority_queue/c/sdcc_iy/bv_priority_queue_pop.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; int bv_priority_queue_pop(bv_priority_queue_t *q) SECTION code_clib SECTION code_adt_bv_priority_queue PUBLIC _bv_priority_queue_pop EXTERN _ba_priority_queue_pop defc _bv_priority_queue_pop = _ba_priority_queue_pop
18.583333
52
0.883408
005aeae106dff3accf9460379bc470acbcefa2c8
717
asm
Assembly
oeis/005/A005327.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/005/A005327.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/005/A005327.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A005327: Certain subgraphs of a directed graph (inverse binomial transform of A005321). ; Submitted by Jon Maiga ; 1,0,1,6,91,2820,177661,22562946,5753551231,2940064679040,3007686166657921,6156733583148764286,25211824022994189751171,206510050572345408251841660,3383254158526734823389921915781,110859089012445519958017571414396026,7265150398430617150448681542642443563911,952250527872699420526459138475687720365378680,249625810128133044195067577937432206079741463311241,130875567114648489341899395234082519028929412575060610166,137232847787242539711682158357578077390759658790894179304813451 mov $3,1 lpb $0 sub $0,1 mov $4,$1 add $1,$3 add $1,$4 add $2,1 mul $1,$2 mul $2,2 mov $3,$4 lpe mov $0,$3
42.176471
477
0.841004
7e4b106112bf459234f284f5013f5c5ae4bd19da
889
asm
Assembly
programs/oeis/062/A062810.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/062/A062810.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/062/A062810.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A062810: a(n) = Sum_{i=1..n} i^(n - i) + (n - i)^i. ; 1,3,7,17,45,131,419,1465,5561,22755,99727,465537,2303829,12037571,66174411,381560425,2301307841,14483421859,94909491607,646309392369,4565559980989,33401808977411,252713264780595,1974606909857945,15914267811217673,132143545658494819,1129262582276287967,9922078182688862433,89550370158088375909,829495124034935903043,7879352200138952407515,76695086744093712305225,764424721089231918040977,7796502088490129619701539,81318046686986913062957159,866832870728420100543231313,9438395865828667286577013069,104915885253687210937868467587,1189986991407957549988561465795,13765426264679627175471604377977,162323842911945959515987705516377,1950420702099375598210550045598179,23869565118685006013617989219622703,297410304494016575729530732544607553 lpb $0 add $3,1 mov $2,$3 pow $2,$0 sub $0,1 add $1,$2 lpe mul $1,2 add $1,1 mov $0,$1
63.5
736
0.854893
4e5af274519bfe12b0841adf3d1bc367c10f92a8
148
asm
Assembly
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/sfc/ys_enmy14.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/sfc/ys_enmy14.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/sfc/ys_enmy14.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: ys_enmy14.asm Type: file Size: 100036 Last-Modified: '2016-05-13T04:51:45Z' SHA-1: B248E5BADBF1152D740E4DF6CC99E334A0ED5E0F Description: null
21.142857
47
0.817568
372235fe64e5f1883908e09379f8c01e72fcf3c6
184
asm
Assembly
data/pokemon/dex_entries/mew.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
data/pokemon/dex_entries/mew.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
data/pokemon/dex_entries/mew.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
db "NEW SPECIE@" ; species name db "Because it can" next "learn any move," next "some people began" page "research to see if" next "it is the ancestor" next "of all #MON.@"
18.4
32
0.657609
3cbb7d5f96ab9db8278a7dc0df14bfc5cd9fd0bf
714
asm
Assembly
programs/oeis/053/A053188.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/053/A053188.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/053/A053188.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A053188: Distance from n to nearest square. ; 0,0,1,1,0,1,2,2,1,0,1,2,3,3,2,1,0,1,2,3,4,4,3,2,1,0,1,2,3,4,5,5,4,3,2,1,0,1,2,3,4,5,6,6,5,4,3,2,1,0,1,2,3,4,5,6,7,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,10,10,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,10,11,11,10,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,10,11,12,12,11,10,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,13,12,11,10,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,15,14,13,12,11,10,9,8,7 mov $1,1 lpb $0 add $2,$1 trn $1,$0 trn $0,$2 add $0,$1 add $1,$2 add $1,2 trn $2,$0 lpe sub $1,$1 add $1,$0
44.625
543
0.537815
e1768f176c0fa206aecfd83b21ee9f2ab23c2a5f
580
asm
Assembly
memmap.asm
yignoth/x16-pminer
8cee8d3aa37a48baa7b822945b02b819fbaf6f5f
[ "Unlicense" ]
2
2019-10-28T16:48:13.000Z
2020-03-01T02:38:32.000Z
memmap.asm
yignoth/x16-pminer
8cee8d3aa37a48baa7b822945b02b819fbaf6f5f
[ "Unlicense" ]
null
null
null
memmap.asm
yignoth/x16-pminer
8cee8d3aa37a48baa7b822945b02b819fbaf6f5f
[ "Unlicense" ]
null
null
null
; ; Memory map ; HIMEM = $A000 * = $04 .dsection section_ZP .cerror * >= $90, "To many ZP variables" * = $0400 .dsection section_BSS .cerror * >= $0800, "To many BSS variables" * = $0801 .dsection section_CODE .cerror * >= $9f00, "CODE size is to big" .dsection section_DATA .cerror * >= $9f00, "DATA size is to big" * = $9f00 .dsection section_IO_AUDIO * = $9f20 .dsection section_IO_VERA * = $9f60 .dsection section_IO_VIA1 * = $9f70 .dsection section_IO_VIA2 * = $9f80 .dsection section_IO_RTC * = HIMEM .dsection section_HIMEM .cerror * > $bfff, "HIMEM data size to big"
17.058824
43
0.684483
c36c491c0cc13356428580207ef263115c8012c9
1,645
asm
Assembly
sys/kern/inthandler.asm
matsud224/tinyos
5ff5079c656913b809f8ee9091d931fc492d07de
[ "Unlicense" ]
49
2018-02-04T02:54:22.000Z
2022-01-26T11:17:46.000Z
sys/kern/inthandler.asm
matsud224/tinyos
5ff5079c656913b809f8ee9091d931fc492d07de
[ "Unlicense" ]
null
null
null
sys/kern/inthandler.asm
matsud224/tinyos
5ff5079c656913b809f8ee9091d931fc492d07de
[ "Unlicense" ]
3
2020-02-10T09:44:36.000Z
2021-08-09T01:49:19.000Z
[bits 32] section .text extern kernstack_setaddr extern thread_sched extern current %macro handler_enter 0 push eax push ecx push edx %endmacro %macro handler_leave 0 pop edx pop ecx pop eax iretd %endmacro extern pit_isr global pit_inthandler pit_inthandler: handler_enter call pit_isr handler_leave extern spurious_isr global spurious_inthandler spurious_inthandler: handler_enter call spurious_isr handler_leave extern ide1_isr global ide1_inthandler ide1_inthandler: handler_enter call ide1_isr handler_leave extern ide2_isr global ide2_inthandler ide2_inthandler: handler_enter call ide2_isr handler_leave extern com1_isr global com1_inthandler com1_inthandler: handler_enter call com1_isr handler_leave extern com2_isr global com2_inthandler com2_inthandler: handler_enter call com2_isr handler_leave extern rtl8139_isr global rtl8139_inthandler rtl8139_inthandler: handler_enter call rtl8139_isr handler_leave extern gpe_isr global gpe_inthandler gpe_inthandler: pop ebx ; pop error code handler_enter push ebx call gpe_isr pop ebx handler_leave extern pf_isr global pf_inthandler pf_inthandler: add esp, 4 ; pop error code handler_enter mov ecx, esp push eax mov eax, [ecx+24] ;saved esp push eax mov eax, [ecx+12] ;saved eip push eax mov eax, cr2 push eax call pf_isr add esp, 16 handler_leave extern syscall_isr global syscall_inthandler syscall_inthandler: handler_enter push edi push esi push edx push ecx push ebx push eax call syscall_isr add esp, 24 mov [esp+8], eax ;set return value handler_leave
14.557522
36
0.783587
6daa1bdb2d6e60251253b96f4cd9739a069e3540
11,060
asm
Assembly
Tools/unix/lzsa/asm/6502/decompress_small_v2.asm
davidknoll/RomWBW
8a7bc97fea27bf10a23c61ee508522a60e2909c6
[ "DOC", "MIT" ]
194
2015-08-20T03:18:01.000Z
2022-03-27T02:25:00.000Z
asm/6502/decompress_small_v2.asm
peterferrie/lzsa
2442d6e4892d846ae557bf27be8a74632b2a3b5c
[ "Zlib", "CC0-1.0" ]
234
2017-03-30T10:59:54.000Z
2022-03-26T20:05:52.000Z
asm/6502/decompress_small_v2.asm
peterferrie/lzsa
2442d6e4892d846ae557bf27be8a74632b2a3b5c
[ "Zlib", "CC0-1.0" ]
68
2016-12-18T18:20:12.000Z
2022-03-20T16:02:40.000Z
; ----------------------------------------------------------------------------- ; Decompress raw LZSA2 block. ; Create one with lzsa -r -f2 <original_file> <compressed_file> ; ; in: ; * LZSA_SRC_LO and LZSA_SRC_HI contain the compressed raw block address ; * LZSA_DST_LO and LZSA_DST_HI contain the destination buffer address ; ; out: ; * LZSA_DST_LO and LZSA_DST_HI contain the last decompressed byte address, +1 ; ; ----------------------------------------------------------------------------- ; Backward decompression is also supported, use lzsa -r -b -f2 <original_file> <compressed_file> ; To use it, also define BACKWARD_DECOMPRESS=1 before including this code! ; ; in: ; * LZSA_SRC_LO/LZSA_SRC_HI must contain the address of the last byte of compressed data ; * LZSA_DST_LO/LZSA_DST_HI must contain the address of the last byte of the destination buffer ; ; out: ; * LZSA_DST_LO/LZSA_DST_HI contain the last decompressed byte address, -1 ; ; ----------------------------------------------------------------------------- ; ; Copyright (C) 2019 Emmanuel Marty ; ; This software is provided 'as-is', without any express or implied ; warranty. In no event will the authors be held liable for any damages ; arising from the use of this software. ; ; Permission is granted to anyone to use this software for any purpose, ; including commercial applications, and to alter it and redistribute it ; freely, subject to the following restrictions: ; ; 1. The origin of this software must not be misrepresented; you must not ; claim that you wrote the original software. If you use this software ; in a product, an acknowledgment in the product documentation would be ; appreciated but is not required. ; 2. Altered source versions must be plainly marked as such, and must not be ; misrepresented as being the original software. ; 3. This notice may not be removed or altered from any source distribution. ; ----------------------------------------------------------------------------- NIBCOUNT = $FC ; zero-page location for temp offset DECOMPRESS_LZSA2 LDY #$00 STY NIBCOUNT DECODE_TOKEN JSR GETSRC ; read token byte: XYZ|LL|MMM PHA ; preserve token on stack AND #$18 ; isolate literals count (LL) BEQ NO_LITERALS ; skip if no literals to copy LSR ; shift literals count into place LSR LSR CMP #$03 ; LITERALS_RUN_LEN_V2? BCC PREPARE_COPY_LITERALS ; if less, count is directly embedded in token JSR GETNIBBLE ; get extra literals length nibble ; add nibble to len from token ADC #$02 ; (LITERALS_RUN_LEN_V2) minus carry CMP #$12 ; LITERALS_RUN_LEN_V2 + 15 ? BCC PREPARE_COPY_LITERALS ; if less, literals count is complete JSR GETSRC ; get extra byte of variable literals count ; the carry is always set by the CMP above ; GETSRC doesn't change it SBC #$EE ; overflow? PREPARE_COPY_LITERALS TAX BCC PREPARE_COPY_LITERALS_HIGH ; if not, literals count is complete ; handle 16 bits literals count ; literals count = directly these 16 bits JSR GETLARGESRC ; grab low 8 bits in X, high 8 bits in A TAY ; put high 8 bits in Y PREPARE_COPY_LITERALS_HIGH TXA BEQ COPY_LITERALS INY COPY_LITERALS JSR GETPUT ; copy one byte of literals DEX BNE COPY_LITERALS DEY BNE COPY_LITERALS NO_LITERALS PLA ; retrieve token from stack PHA ; preserve token again ASL BCS REPMATCH_OR_LARGE_OFFSET ; 1YZ: rep-match or 13/16 bit offset ASL ; 0YZ: 5 or 9 bit offset BCS OFFSET_9_BIT ; 00Z: 5 bit offset LDX #$FF ; set offset bits 15-8 to 1 JSR GETCOMBINEDBITS ; rotate Z bit into bit 0, read nibble for bits 4-1 ORA #$E0 ; set bits 7-5 to 1 BNE GOT_OFFSET_LO ; go store low byte of match offset and prepare match OFFSET_9_BIT ; 01Z: 9 bit offset ;;ASL ; shift Z (offset bit 8) in place ROL ROL AND #$01 EOR #$FF ; set offset bits 15-9 to 1 BNE GOT_OFFSET_HI ; go store high byte, read low byte of match offset and prepare match ; (*same as JMP GOT_OFFSET_HI but shorter) REPMATCH_OR_LARGE_OFFSET ASL ; 13 bit offset? BCS REPMATCH_OR_16_BIT ; handle rep-match or 16-bit offset if not ; 10Z: 13 bit offset JSR GETCOMBINEDBITS ; rotate Z bit into bit 8, read nibble for bits 12-9 ADC #$DE ; set bits 15-13 to 1 and substract 2 (to substract 512) BNE GOT_OFFSET_HI ; go store high byte, read low byte of match offset and prepare match ; (*same as JMP GOT_OFFSET_HI but shorter) REPMATCH_OR_16_BIT ; rep-match or 16 bit offset ;;ASL ; XYZ=111? BMI REP_MATCH ; reuse previous offset if so (rep-match) ; 110: handle 16 bit offset JSR GETSRC ; grab high 8 bits GOT_OFFSET_HI TAX JSR GETSRC ; grab low 8 bits GOT_OFFSET_LO STA OFFSLO ; store low byte of match offset STX OFFSHI ; store high byte of match offset REP_MATCH !ifdef BACKWARD_DECOMPRESS { ; Backward decompression - substract match offset SEC ; add dest + match offset LDA PUTDST+1 ; low 8 bits OFFSLO = *+1 SBC #$AA STA COPY_MATCH_LOOP+1 ; store back reference address LDA PUTDST+2 OFFSHI = *+1 SBC #$AA ; high 8 bits STA COPY_MATCH_LOOP+2 ; store high 8 bits of address SEC } else { ; Forward decompression - add match offset CLC ; add dest + match offset LDA PUTDST+1 ; low 8 bits OFFSLO = *+1 ADC #$AA STA COPY_MATCH_LOOP+1 ; store back reference address OFFSHI = *+1 LDA #$AA ; high 8 bits ADC PUTDST+2 STA COPY_MATCH_LOOP+2 ; store high 8 bits of address } PLA ; retrieve token from stack again AND #$07 ; isolate match len (MMM) ADC #$01 ; add MIN_MATCH_SIZE_V2 and carry CMP #$09 ; MIN_MATCH_SIZE_V2 + MATCH_RUN_LEN_V2? BCC PREPARE_COPY_MATCH ; if less, length is directly embedded in token JSR GETNIBBLE ; get extra match length nibble ; add nibble to len from token ADC #$08 ; (MIN_MATCH_SIZE_V2 + MATCH_RUN_LEN_V2) minus carry CMP #$18 ; MIN_MATCH_SIZE_V2 + MATCH_RUN_LEN_V2 + 15? BCC PREPARE_COPY_MATCH ; if less, match length is complete JSR GETSRC ; get extra byte of variable match length ; the carry is always set by the CMP above ; GETSRC doesn't change it SBC #$E8 ; overflow? PREPARE_COPY_MATCH TAX BCC PREPARE_COPY_MATCH_Y ; if not, the match length is complete BEQ DECOMPRESSION_DONE ; if EOD code, bail ; Handle 16 bits match length JSR GETLARGESRC ; grab low 8 bits in X, high 8 bits in A TAY ; put high 8 bits in Y PREPARE_COPY_MATCH_Y TXA BEQ COPY_MATCH_LOOP INY COPY_MATCH_LOOP LDA $AAAA ; get one byte of backreference JSR PUTDST ; copy to destination !ifdef BACKWARD_DECOMPRESS { ; Backward decompression -- put backreference bytes backward LDA COPY_MATCH_LOOP+1 BNE GETMATCH_DONE DEC COPY_MATCH_LOOP+2 GETMATCH_DONE DEC COPY_MATCH_LOOP+1 } else { ; Forward decompression -- put backreference bytes forward INC COPY_MATCH_LOOP+1 BNE GETMATCH_DONE INC COPY_MATCH_LOOP+2 GETMATCH_DONE } DEX BNE COPY_MATCH_LOOP DEY BNE COPY_MATCH_LOOP JMP DECODE_TOKEN GETCOMBINEDBITS EOR #$80 ASL PHP JSR GETNIBBLE ; get nibble into bits 0-3 (for offset bits 1-4) PLP ; merge Z bit as the carry bit (for offset bit 0) COMBINEDBITZ ROL ; nibble -> bits 1-4; carry(!Z bit) -> bit 0 ; carry cleared DECOMPRESSION_DONE RTS GETNIBBLE NIBBLES = *+1 LDA #$AA LSR NIBCOUNT BCS HAS_NIBBLES INC NIBCOUNT JSR GETSRC ; get 2 nibbles STA NIBBLES LSR LSR LSR LSR SEC HAS_NIBBLES AND #$0F ; isolate low 4 bits of nibble RTS !ifdef BACKWARD_DECOMPRESS { ; Backward decompression -- get and put bytes backward GETPUT JSR GETSRC PUTDST LZSA_DST_LO = *+1 LZSA_DST_HI = *+2 STA $AAAA LDA PUTDST+1 BNE PUTDST_DONE DEC PUTDST+2 PUTDST_DONE DEC PUTDST+1 RTS GETLARGESRC JSR GETSRC ; grab low 8 bits TAX ; move to X ; fall through grab high 8 bits GETSRC LZSA_SRC_LO = *+1 LZSA_SRC_HI = *+2 LDA $AAAA PHA LDA GETSRC+1 BNE GETSRC_DONE DEC GETSRC+2 GETSRC_DONE DEC GETSRC+1 PLA RTS } else { ; Forward decompression -- get and put bytes forward GETPUT JSR GETSRC PUTDST LZSA_DST_LO = *+1 LZSA_DST_HI = *+2 STA $AAAA INC PUTDST+1 BNE PUTDST_DONE INC PUTDST+2 PUTDST_DONE RTS GETLARGESRC JSR GETSRC ; grab low 8 bits TAX ; move to X ; fall through grab high 8 bits GETSRC LZSA_SRC_LO = *+1 LZSA_SRC_HI = *+2 LDA $AAAA INC GETSRC+1 BNE GETSRC_DONE INC GETSRC+2 GETSRC_DONE RTS }
32.818991
109
0.526763
f69ada5022e134d124c1cb93a0b12ee5892a1947
2,574
asm
Assembly
programs/oeis/211/A211412.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/211/A211412.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/211/A211412.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A211412: a(n) = 4*n^4 + 1. ; 5,65,325,1025,2501,5185,9605,16385,26245,40001,58565,82945,114245,153665,202501,262145,334085,419905,521285,640001,777925,937025,1119365,1327105,1562501,1827905,2125765,2458625,2829125,3240001,3694085,4194305,4743685,5345345,6002501,6718465,7496645,8340545,9253765,10240001,11303045,12446785,13675205,14992385,16402501,17909825,19518725,21233665,23059205,25000001,27060805,29246465,31561925,34012225,36602501,39337985,42224005,45265985,48469445,51840001,55383365,59105345,63011845,67108865,71402501,75898945,80604485,85525505,90668485,96040001,101646725,107495425,113592965,119946305,126562501,133448705,140612165,148060225,155800325,163840001,172186885,180848705,189833285,199148545,208802501,218803265,229159045,239878145,250968965,262440001,274299845,286557185,299220805,312299585,325802501,339738625,354117125,368947265,384238405,400000001,416241605,432972865,450203525,467943425,486202501,504990785,524318405,544195585,564632645,585640001,607228165,629407745,652189445,675584065,699602501,724255745,749554885,775511105,802135685,829440001,857435525,886133825,915546565,945685505,976562501,1008189505,1040578565,1073741825,1107691525,1142440001,1177999685,1214383105,1251602885,1289671745,1328602501,1368408065,1409101445,1450695745,1493204165,1536640001,1581016645,1626347585,1672646405,1719926785,1768202501,1817487425,1867795525,1919140865,1971537605,2025000001,2079542405,2135179265,2191925125,2249794625,2308802501,2368963585,2430292805,2492805185,2556515845,2621440001,2687592965,2754990145,2823647045,2893579265,2964802501,3037332545,3111185285,3186376705,3262922885,3340840001,3420144325,3500852225,3582980165,3666544705,3751562501,3838050305,3926024965,4015503425,4106502725,4199040001,4293132485,4388797505,4486052485,4584914945,4685402501,4787532865,4891323845,4996793345,5103959365,5212840001,5323453445,5435817985,5549952005,5665873985,5783602501,5903156225,6024553925,6147814465,6272956805,6400000001,6528963205,6659865665,6792726725,6927565825,7064402501,7203256385,7344147205,7487094785,7632119045,7779240001,7928477765,8079852545,8233384645,8389094465,8547002501,8707129345,8869495685,9034122305,9201030085,9370240001,9541773125,9715650625,9891893765,10070523905,10251562501,10435031105,10620951365,10809345025,11000233925,11193640001,11389585285,11588091905,11789182085,11992878145,12199202501,12408177665,12619826245,12834170945,13051234565,13271040001,13493610245,13718968385,13947137605,14178141185,14412002501,14648745025,14888392325,15130968065,15376496005,15625000001 add $0,1 pow $0,4 mov $1,$0 mul $1,4 add $1,1
286
2,497
0.887335
7339ed34425a31d3951d0c35b39a06ed19bf91bb
196
asm
Assembly
src/test_if/test5.asm
hra1129/zma
c2bfc79df45e1d4d01c6faa1b69216245a4e1d2c
[ "MIT" ]
8
2021-03-19T23:44:14.000Z
2022-03-22T07:29:02.000Z
src/test_if/test5.asm
hra1129/zma
c2bfc79df45e1d4d01c6faa1b69216245a4e1d2c
[ "MIT" ]
null
null
null
src/test_if/test5.asm
hra1129/zma
c2bfc79df45e1d4d01c6faa1b69216245a4e1d2c
[ "MIT" ]
1
2021-11-27T22:37:24.000Z
2021-11-27T22:37:24.000Z
; ----------------------------------------------------------------------------- ; test program ; ----------------------------------------------------------------------------- IF 1 LD A, 0 ENDIF
24.5
79
0.117347
8dd3c3ab28897a36c6a6392cd11833e0016016ee
465
asm
Assembly
programs/oeis/282/A282088.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/282/A282088.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/282/A282088.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A282088: Binary representation of the x-axis, from the left edge to the origin, of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 553", based on the 5-celled von Neumann neighborhood. ; 1,0,1,0,101,0,10101,0,1010101,0,101010101,0,10101010101,0,1010101010101,0,101010101010101,0,10101010101010101,0 mov $1,$0 gcd $0,2 lpb $0,1 mov $0,1 trn $1,2 mov $2,2 add $2,$1 lpe mov $1,10 add $3,$2 pow $1,$3 mul $1,2 div $1,198
27.352941
222
0.716129
a18d117e7dea4ebfa4e298d8e05441ae8152661d
256
asm
Assembly
libsrc/_DEVELOPMENT/compress/zx1/c/sdcc/dzx1_agile_rcs.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/compress/zx1/c/sdcc/dzx1_agile_rcs.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/compress/zx1/c/sdcc/dzx1_agile_rcs.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void dzx1_agile_rcs(void *src, void *dst) SECTION code_clib SECTION code_compress_zx1 PUBLIC _dzx1_agile_rcs EXTERN asm_dzx1_agile_rcs _dzx1_agile_rcs: pop af pop hl pop de push de push hl push af jp asm_dzx1_agile_rcs
11.636364
43
0.722656
453ac34b58d1ccce3f083b7c02e200545f9878e4
311
asm
Assembly
programs/oeis/108/A108982.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/108/A108982.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/108/A108982.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A108982: Inverse binomial of A003949. ; 1,6,29,146,729,3646,18229,91146,455729,2278646,11393229,56966146,284830729,1424153646,7120768229,35603841146,178019205729,890096028646,4450480143229,22252400716146,111262003580729,556310017903646,2781550089518229 mov $1,5 pow $1,$0 mul $1,7 sub $1,5 div $1,6 add $1,1
31.1
214
0.807074
eb506971b20c729934ddec4980eb91a4f13758f9
142
asm
Assembly
libsrc/_DEVELOPMENT/font/fzx/fonts/ao/SoixanteQuatre/_ff_ao_SoixanteQuatre.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/font/fzx/fonts/ao/SoixanteQuatre/_ff_ao_SoixanteQuatre.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/font/fzx/fonts/ao/SoixanteQuatre/_ff_ao_SoixanteQuatre.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
SECTION rodata_font_fzx PUBLIC _ff_ao_SoixanteQuatre _ff_ao_SoixanteQuatre: BINARY "font/fzx/fonts/ao/SoixanteQuatre/SoixanteQuatre.fzx"
14.2
60
0.852113
a9d180a04a29049b9ae0462e15ed09a256b475b5
297
asm
Assembly
programs/oeis/047/A047537.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/047/A047537.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/047/A047537.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A047537: Numbers that are congruent to {1, 4, 7} mod 8. ; 1,4,7,9,12,15,17,20,23,25,28,31,33,36,39,41,44,47,49,52,55,57,60,63,65,68,71,73,76,79,81,84,87,89,92,95,97,100,103,105,108,111,113,116,119,121,124,127,129,132,135,137,140,143,145,148,151,153,156,159 mov $1,8 mul $1,$0 add $1,5 div $1,3
37.125
200
0.666667
02e9756642bddad291ef76501e00c7951d41d9ae
984
asm
Assembly
programs/oeis/074/A074565.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/074/A074565.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/074/A074565.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A074565: a(n) = 4^n + 6^n + 7^n. ; 3,17,101,623,3953,25607,168401,1119863,7509953,50693447,343990001,2344318103,16034846753,110016813287,756855672401,5218820236343,36058335444353,249574353301127,1730042274055601,12008529803290583,83449524249302753,580487212770172967,4041460344611299601,28158547931878696823,196319894193864741953,1369500033593801444807,9558066569426959884401,66735870747010258871063,466127550816798814401953,3256751697330344771532647,22760415363334496052610001,159101830164856225189829303,1112386353800611120899242753,7778745760154099224281652487,54403468133058087280150596401,380537764246004824991157587543,2662045275380510490194840544353,18624002488697983447208776220327,130306130815426543122748659283601,911771596188566551401835454561783,6380173256656797539423903159906753,44647845298431961583055595749252167,312454712107283558841606587072431601 mov $3,$0 seq $0,74513 ; a(n) = 1^n + 4^n + 7^n. add $0,6 mov $4,6 pow $4,$3 mov $2,$4 add $2,2 add $0,$2 sub $0,9
75.692308
832
0.873984
e7b84440a65cf0759b7d96f13be9c8a3d9ddbf40
6,194
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca.log_21829_1160.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_1160.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_1160.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x59f2, %rsi lea addresses_WT_ht+0xa0ba, %rdi nop nop sub $53994, %r15 mov $21, %rcx rep movsb nop nop and %r14, %r14 lea addresses_D_ht+0x9973, %rsi lea addresses_WC_ht+0x1a749, %rdi inc %rdx mov $9, %rcx rep movsb add $5930, %rsi lea addresses_D_ht+0x447a, %rcx inc %rdx movw $0x6162, (%rcx) nop nop nop nop nop add %rsi, %rsi lea addresses_normal_ht+0x17a92, %rdx nop nop nop nop dec %r14 movups (%rdx), %xmm3 vpextrq $1, %xmm3, %r15 nop sub $651, %r15 lea addresses_WC_ht+0x19bf2, %rsi nop nop sub $60519, %rax mov $0x6162636465666768, %r15 movq %r15, %xmm3 vmovups %ymm3, (%rsi) add $17127, %rdi lea addresses_normal_ht+0xadf2, %rcx clflush (%rcx) nop nop nop nop nop and $27067, %rsi movb (%rcx), %al dec %r14 lea addresses_D_ht+0x8e4f, %rax nop nop and $10353, %r15 mov $0x6162636465666768, %rdx movq %rdx, %xmm3 vmovups %ymm3, (%rax) nop nop nop nop nop inc %r14 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r15 pop %r14 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r15 push %r8 push %r9 push %rcx push %rsi // Load mov $0xe52, %rsi nop nop nop nop nop and %r13, %r13 movb (%rsi), %r9b nop sub $54768, %r15 // Store lea addresses_US+0x111f2, %r8 nop nop nop nop nop inc %r12 mov $0x5152535455565758, %r13 movq %r13, (%r8) nop nop cmp %r12, %r12 // Faulty Load lea addresses_RW+0x163f2, %r12 and $23484, %rcx vmovups (%r12), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $1, %xmm4, %r8 lea oracles, %r15 and $0xff, %r8 shlq $12, %r8 mov (%r15,%r8,1), %r8 pop %rsi pop %rcx pop %r9 pop %r8 pop %r15 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'} {'src': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_P'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_US'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 32, 'NT': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 8, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}} {'src': {'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_D_ht'}} {'src': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_D_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 */
38.955975
2,999
0.65741
58922549ab19f60fdeecabf4ecaeca968db3f86d
3,081
asm
Assembly
programs/oeis/017/A017447.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/017/A017447.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/017/A017447.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A017447: a(n) = (11*n + 4)^11. ; 4194304,8649755859375,3670344486987776,177917621779460413,3116402981210161152,30155888444737842659,197732674300000000000,984770902183611232881,3996373778857415671808,13842338707244455781047,42262322980951656843264,116415321826934814453125,294393347626373780340736,692613069293330583916203,1531891323960362862344192,3211838877954855105157369,6426841007923200000000000,12341474201974794188822591,22848887739705683048654848,40942620682483067183061837,71240703863716132079796224,120710899174024038232421875,199657752537985561759389696,323045991615992848448948993,512250904963838973923295232,797344928059979319406571079,1220050976570582900000000000,1837517363158923337459953301,2727096677140470662732709888,3992342073809083968859805627,5770469301172549409712093184,8241571786385665345166015625,11639919523993182653074374656,16267720676218928340423448783,22511778046375868461571254272,30863531265827924755035773789,41943040000000000000000000000,56527534098288570421020715011,75585233766340778979313276928,100315226918403349419823702417,132194282275040704726925574144,173031575921620011303271484375,225032416361083806744810735616,290872169017591458452425905573,373781706123910725302654861312,477645842414670666895611255499,607116361520826305100000000000,767741392900401760208994397721,966113065040628757386093395968,1210035538032226855489750842207,1508715707964414645985848879104,1872979077447320389547705078125,2315513501476187716057433112576,2851143746359947452906740409363,3497140042107539438489709156352,4273564066072396123218280306209,5203656068383709388800000000000,6314267138338848586317495491431,7636340916102325292153969707008,9205449376372141424226031714997,11062387650764733594415151448064,13253833214176948070526123046875,15833075137960846385432769345536,18860819510059339094078792650153,22406077539973750801359691579392,26547143305255898455187983015919,31372668556835970837700000000000,36982842483623672740953133686141,43490684843175373757835848450048,51023461395537398959410867210787,59724231132399525700569787521024,69753535374179004859623681640625,81291239414371192166111034474496,94538538024226730825387205917943,109720136792337134058077437970432,127086621963831927815730676274629,146917032163423970918400000000000,169521646136309302021686557871851,195245001421769388725200341465088,224469159687083881075489084619577,257617235294899195717235700137984,295157204556382162758788037109375,337606014036199628522618894739456,385534007224496785957769137102733,439569689876502951538245838569472,500404855343088762626167517772339,568800092276459960937500000000000,645590698195138073036733040138561,731693023532396803558926742192128,828111271973355615696218673631367,935944784108950969703031485138944,1056395832700994595810654345703125,1190777959162481953767280571580416,1340524882212239026732552892694523,1507200011063909550683674734016512,1692506596957216818789562009999049,1898298558335424839065600000000000,2126592016518024767448492099776271,2379577580312947480371493281671168,2659633419659126572846956042336157 mul $0,11 add $0,4 pow $0,11
440.142857
3,017
0.956832
81bee9420a05e7c4bf51a9aae23d7b83dc383935
1,780
asm
Assembly
src/arch/x86_64/kernel/multitasking/tasking.asm
SydOS/Star
dc5a233daf916bde482c6fc3bc175331793063e5
[ "MIT" ]
13
2018-10-22T20:51:40.000Z
2021-09-16T21:58:13.000Z
src/arch/x86_64/kernel/multitasking/tasking.asm
Dylan-P-Green/SydOS
52acae993d1cb5ec8d3a93339d53b404ddabffb9
[ "MIT" ]
52
2018-02-09T22:44:44.000Z
2018-07-13T05:08:01.000Z
src/arch/x86_64/kernel/multitasking/tasking.asm
Dylan-P-Green/SydOS
52acae993d1cb5ec8d3a93339d53b404ddabffb9
[ "MIT" ]
3
2018-02-09T22:25:20.000Z
2018-07-27T05:08:34.000Z
; ; File: tasking.asm ; ; Copyright (c) 2017-2018 Sydney Erickson, John Davis ; ; Permission is hereby granted, free of charge, to any person obtaining a copy ; of this software and associated documentation files (the "Software"), to deal ; in the Software without restriction, including without limitation the rights ; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ; copies of the Software, and to permit persons to whom the Software is ; furnished to do so, subject to the following conditions: ; ; The above copyright notice and this permission notice shall be included in all ; copies or substantial portions of the Software. ; ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER ; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE ; SOFTWARE. ; ; 64-bit code. [bits 64] section .text extern tasking_kill_thread ; Thread execution shim. global _tasking_thread_exec _tasking_thread_exec: ; Get args in proper registers. ; RBX = arg1, C code expects RDI to be arg1. ; RCX = arg2, C code expects RSI to be arg2. ; RDX = arg3, C code expects RDX to be arg3. mov rdi, rbx mov rsi, rcx ; Clear now-unused registers. xor rbx, rbx xor rcx, rcx ; Execute the thread's function. ; The function address was put into RAX when the thread was created. call rax ; Kill thread and wait to die. call tasking_kill_thread .loop: jmp .loop
34.230769
80
0.737079
ae807b4eba62568841fcd7c82a8c262fcc8cebe2
387
asm
Assembly
programs/oeis/036/A036070.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/036/A036070.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/036/A036070.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A036070: Expansion of (-1+1/(1-4*x)^4)/(16*x); related to A038846. ; 1,10,80,560,3584,21504,122880,675840,3604480,18743296,95420416,477102080,2348810240,11408506880,54760833024,260113956864,1224065679360,5712306503680,26456998543360,121702193299456 add $0,3 mov $2,$0 add $0,1 mov $1,$2 mul $1,$2 sub $1,1 mul $1,$2 lpb $0,1 sub $0,1 mul $1,4 lpe sub $1,6144 div $1,6144 add $1,1
21.5
181
0.715762
8b9d8238f5971d029c7e07dabb104ca6a73502bc
297
asm
Assembly
belux/arch/i386/descriptor_tables.asm
mikestaszel/belux
662a6494d0f39d1a2f9da02923f036fbbe297528
[ "MIT" ]
null
null
null
belux/arch/i386/descriptor_tables.asm
mikestaszel/belux
662a6494d0f39d1a2f9da02923f036fbbe297528
[ "MIT" ]
6
2020-01-16T14:37:49.000Z
2020-04-25T15:30:12.000Z
belux/arch/i386/descriptor_tables.asm
mikestaszel/belux
662a6494d0f39d1a2f9da02923f036fbbe297528
[ "MIT" ]
null
null
null
align 4 global gdt_flush global load_idt global tss_flush gdt_flush: mov eax, [esp+4] lgdt [eax] mov ax, 0x10 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax jmp 0x08:.flush .flush: ret load_idt: mov edx, [esp + 4] lidt [edx] sti ret tss_flush: mov ax, 0x2B ltr ax ret
9.9
19
0.6633
8c98d2c4540b5c2cc74e23c552b126b253fd3095
8,096
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca_notsx.log_21829_1276.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca_notsx.log_21829_1276.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca_notsx.log_21829_1276.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r15 push %r8 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x8cad, %r8 nop nop nop nop nop and %r15, %r15 movl $0x61626364, (%r8) xor $24142, %rax lea addresses_UC_ht+0x1b72d, %rbp clflush (%rbp) nop nop nop dec %r11 movl $0x61626364, (%rbp) nop nop nop and $7188, %r14 lea addresses_WC_ht+0x5b4d, %rsi lea addresses_A_ht+0x173b7, %rdi nop nop nop nop nop inc %r14 mov $22, %rcx rep movsw nop nop nop add %rdi, %rdi lea addresses_WT_ht+0xd7fe, %r11 nop nop nop nop and %rbp, %rbp movl $0x61626364, (%r11) nop xor %rbp, %rbp lea addresses_A_ht+0x16c4d, %rdi nop nop nop sub %rbp, %rbp movw $0x6162, (%rdi) nop nop dec %rcx lea addresses_A_ht+0xda80, %r14 cmp %rbp, %rbp movb (%r14), %al dec %rcx lea addresses_A_ht+0x384d, %rax nop nop nop nop cmp %r11, %r11 movups (%rax), %xmm5 vpextrq $1, %xmm5, %r8 nop nop nop nop add $17224, %r14 lea addresses_WT_ht+0x2ecd, %r14 nop nop nop nop nop cmp %rbp, %rbp movb $0x61, (%r14) nop nop nop nop cmp $19477, %r11 lea addresses_UC_ht+0x64d, %rsi lea addresses_WT_ht+0x1211a, %rdi clflush (%rdi) nop add %r14, %r14 mov $109, %rcx rep movsb nop nop nop nop nop xor %r8, %r8 lea addresses_WC_ht+0x1baf5, %r14 clflush (%r14) nop nop and $8127, %rbp mov (%r14), %r11 nop inc %r8 lea addresses_D_ht+0x1a04d, %rsi lea addresses_WC_ht+0x584d, %rdi clflush (%rsi) nop dec %rax mov $7, %rcx rep movsb nop nop nop xor %r15, %r15 lea addresses_D_ht+0x144ee, %rsi lea addresses_D_ht+0x1544d, %rdi sub $2750, %rax mov $4, %rcx rep movsq and %r8, %r8 lea addresses_A_ht+0x8c4d, %rsi lea addresses_A_ht+0x1275, %rdi nop add %r8, %r8 mov $100, %rcx rep movsl nop nop nop nop dec %rcx lea addresses_normal_ht+0x165cd, %rsi nop nop dec %rcx mov $0x6162636465666768, %r8 movq %r8, %xmm3 and $0xffffffffffffffc0, %rsi vmovaps %ymm3, (%rsi) nop nop nop sub %r8, %r8 lea addresses_WT_ht+0x12c4d, %rsi lea addresses_UC_ht+0x464d, %rdi clflush (%rdi) nop nop nop nop add %r14, %r14 mov $65, %rcx rep movsq sub %rax, %rax pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r8 pop %r15 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r14 push %r9 push %rbp push %rcx push %rdi push %rsi // REPMOV lea addresses_WT+0xda4d, %rsi lea addresses_UC+0x17e99, %rdi clflush (%rdi) nop nop nop xor $60671, %r14 mov $126, %rcx rep movsw nop nop nop nop and $34779, %rcx // Faulty Load lea addresses_PSE+0x1b84d, %rdi nop nop nop cmp %rbp, %rbp mov (%rdi), %esi lea oracles, %rbp and $0xff, %rsi shlq $12, %rsi mov (%rbp,%rsi,1), %rsi pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_WT'}, 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_UC'}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_PSE', 'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 5}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 8}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 11}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_WT_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_D_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_UC_ht'}} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
32.777328
2,999
0.656991
8cb75839bc2eae967470f57cc43b14d0c8c242ce
48,514
asm
Assembly
source/amx/amxexecn.asm
Disinterpreter/pawn-3.2-plus
217256fa8358cf69f8fcb0be760945cc2ca192f9
[ "Zlib" ]
17
2017-07-28T22:06:11.000Z
2021-11-18T01:32:21.000Z
source/amx/amxexecn.asm
Disinterpreter/pawn-3.2-plus
217256fa8358cf69f8fcb0be760945cc2ca192f9
[ "Zlib" ]
3
2017-07-29T18:55:54.000Z
2018-08-26T16:01:08.000Z
source/amx/amxexecn.asm
Disinterpreter/pawn-3.2-plus
217256fa8358cf69f8fcb0be760945cc2ca192f9
[ "Zlib" ]
3
2017-07-29T18:02:20.000Z
2021-11-25T11:44:50.000Z
; AMXEXECN.ASM Abstract Machine for the "Pawn" language ; ;Some notes: ; * This file was adapted from AMXEXEC.ASM (for MASM/TASM/WASM). This ; version is for NASM (Netwide Assembler). NASM uses Intel syntax for ; the mnemonics, but it is not compatible with MASM. ; * The "calling convention" is __cdecl for the amx_exec_asm() itself and ; __cdecl or __stdcall for the native routines (the default is __cdecl, ; define the macro STDECL to set __stdcall). ; * The borland compiler uses different segment definitions as Microsoft ; Visual C/C++ and GNU GCC. To assemble the abstract machine with "Borland" ; segments, add the definition "BORLAND" on the command line. ; * You will need to compile the standard AMX.C file with the macro ASM32 ; defined. On the command line, use: ; nasmw -O1 -f obj -d BORLAND amxexecn.asm ; bcc32 -DASM32 srun.c amx.c amxcore.c amxcons.c amxexecn.obj ; or ; nasmw -O1 -f win32 amxexecn.asm ; or ; nasm -O1 -f elf amxexecn.asm ; gcc -o srun -DLINUX -DASM32 -I../linux srun.c amx.c amxcore.c amxcons.c amxexecn.o ; * See the notes in AMXEXEC.ASM for more information and a change log). ; ; ;Copyright and license of use, please read ;----------------------------------------- ;The assembler implementation of the abstract machine for the Pawn language, ;specifically the file AMXEXEC.ASM, is copyright (c) 1998-2000 by Marc Peter. ; ;Permission is hereby granted, without written agreement and without paid ;license or royalty fees, to use, copy, modify, and distribute this software ;and its documentation for any purpose, subject to the following conditions: ; ;1. The above copyright notice and this permission notice shall appear in all ; copies or substantial portions of this software. ; ;2. Modifications of this software that do not originate from me (Marc Peter) ; must be explicitly mentioned in a README file or another appropriate ; place. ; ;The use of this software as a subsystem of a larger software product is ;explicitly allowed, regardless of whether that larger product is proprietary, ;gratis or commercially available. ; ;I (Marc Peter) specifically disclaim any warranties, including, but not ;limited to, the implied warranties of merchantability and fitness for a ;particular purpose. The software is provided on an "as is" basis, ;and I have no obligation to provide maintenance, support, updates, ;enhancements or modifications. ; ;I cannot be held liable for any damage or loss of profits that results ;from the use of the software (or part thereof), or from the inability to ;use it. ; ; ;History (list of changes) ;------------------------- ; 18 May 2018 by Stanislav Gromov ; Fixed comment typos found with the codespell tool ; 14 december 2005 by Thiadmer Riemersma (TR) ; Addition of macro instructions, to speed up instruction decoding ; 17 february 2005 by Thiadmer Riemersma (TR) ; Addition of the BREAK opcode, removal of the older debugging opcode table. ; 6 march 2004 by Thiadmer Riemersma ; Corrected a bug in OP_FILL, where a cell preceding the array would ; be overwritten (zero'ed out). This bug was brought to my attention ; by Robert Daniels. ; 2 february 2004 by Thiadmer Riemersma (TR) ; Added checking of the return address in the RET and RETN opcodes. ; Changed handling of LINE opcode, so that the debugger can force a ; sleep. ; 22 december 2003 by Thiadmer Riemersma (TR) ; Added support for the SYMTAG and SYSCALL.D opcodes ; 3 october 2003 by Thiadmer Riemersma (TR) ; Added "non-debug" versions of various opcodes, to avoid repetitive ; checking of the "debug" flag. ; 15 September 2003 by Thiadmer Riemersma (TR) ; Minor corrections, mostly to support older versions of NASM ; 26 January 2003 by Thiadmer Riemersma (TR) ; Port to NASM ;----- ;CPU 386 -- some older versions of NASM do not support this keyword ; Macro to begin a code segment %macro Start_CODE 0 %ifdef BORLAND segment _TEXT public align=1 class=CODE use32 %else segment .text %endif %endmacro ; Macro to begin a data segment %macro Start_DATA 0 %ifdef BORLAND segment _DATA public align=4 class=DATA use32 %else segment .data %endif %endmacro %include "amxdefn.asm" ;#define PUSH(v) ( stk-=sizeof(cell), *(cell *)(data+(int)stk)=v ) %macro _PUSH 1 mov [edi+ecx-4],%1 sub ecx,4 %endmacro ;#define POP(v) ( v=*(cell *)(data+(int)stk), stk+=sizeof(cell) ) %macro _POP 1 mov %1,[edi+ecx] add ecx,4 %endmacro %macro GO_ON 0 jmp DWORD [esi] ; ALIGN 4 %endmacro %macro _CHKSTACK 0 cmp ecx,stp jg near err_stacklow %endmacro %macro _CHKMARGIN 0 lea ebp,[ecx-16*4] ;safety margin = 16 cells cmp hea,ebp jg near err_stack %endmacro %macro _CHKHEAP 0 mov ebp,amx mov ebp,[ebp+_hlw] cmp DWORD hea,ebp jl near err_heaplow %endmacro %macro _CHKDIVIDEZERO 0 or ebp,ebp ; check for divide by zero jz near err_divide %endmacro %macro _VERIFYADDRESS 1 ; used in load.i, store.i & lidx cmp %1,stp ; error if address >= stp jae near err_memaccess cmp %1,hea ; so address<stp, ok if address<hea jb short %%address_ok cmp %1,ecx ; so address<stp and address>=hea, ok if address>=stk jb near err_memaccess %%address_ok: %endmacro %macro _SAVEREGS 0 ; save the registers (that may not be PUSHAD ; __stdcall calling conventions) %endmacro %macro _RESTOREREGS 0 POPAD %endmacro %macro _DROPARGS 1 ; remove function arguments from the stack %ifndef STDECL ; (only for __cdecl calling convention) add esp,%1 %endif %endmacro Start_CODE ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; ;cell asm_exec( cell *regs, cell *retval, cell stp, cell hea ); ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; GLOBAL _amx_exec_asm GLOBAL amx_exec_asm amx_exec_asm: _amx_exec_asm: ;PROC push ebx mov eax,[esp+08h] mov edx,[esp+0ch] mov ebx,[esp+10h] mov ecx,[esp+14h] push edi push esi push ebp sub esp,4*3 ; place for PRI, ALT & STK at SYSREQs push DWORD [eax+20h] ; store code size push DWORD [eax+1ch] ; store pointer to code segment push DWORD [eax+18h] ; store pointer to AMX push edx ; store address of retval push ebx ; store STP push ecx ; store HEA push DWORD [eax+14h] ; store FRM %define stk [esp+36] ; define some aliases to registers %define alt [esp+32] ; that are stored on the stack %define pri [esp+28] %define codesiz [esp+24] %define code [esp+20] %define amx [esp+16] %define retval [esp+12] %define stp [esp+8] %define hea [esp+4] %define frm [esp] ; FRM is NOT stored in ebp, rather FRM+DAT ; is being held in ebx. mov edx,code ; change the code size to an... add codesiz,edx ; ..."end of code" address mov edx,[eax+04h] ; get ALT mov esi,[eax+08h] ; get CIP mov edi,[eax+0ch] ; get pointer to data segment mov ecx,[eax+10h] ; get STK mov ebx,[eax+14h] ; get FRM mov eax,[eax] ; get PRI add ebx,edi ; relocate frame GO_ON ; start interpreting OP_LOAD_PRI: mov eax,[esi+4] add esi,8 mov eax,[edi+eax] GO_ON OP_LOAD_ALT: mov edx,[esi+4] add esi,8 mov edx,[edi+edx] GO_ON ;good OP_LOAD_S_PRI: mov eax,[esi+4] add esi,8 mov eax,[ebx+eax] GO_ON ;good OP_LOAD_S_ALT: mov edx,[esi+4] add esi,8 mov edx,[ebx+edx] GO_ON OP_LOAD_I: add esi,4 _VERIFYADDRESS eax mov eax,[edi+eax] GO_ON OP_LODB_I: _VERIFYADDRESS eax mov ebp,[esi+4] mov eax,[edi+eax] ;subject to misalignment stalls add esi,8 and eax,DWORD [(lodb_and-4)+ebp*4] GO_ON OP_LREF_PRI: mov eax,[esi+4] add esi,8 mov eax,[edi+eax] mov eax,[edi+eax] GO_ON OP_LREF_ALT: mov edx,[esi+4] add esi,8 mov edx,[edi+edx] mov edx,[edi+edx] GO_ON OP_LREF_S_PRI: mov eax,[esi+4] add esi,8 mov eax,[ebx+eax] mov eax,[edi+eax] GO_ON OP_LREF_S_ALT: mov edx,[esi+4] add esi,8 mov edx,[ebx+edx] mov edx,[edi+edx] GO_ON ;good OP_CONST_PRI: mov eax,[esi+4] add esi,8 GO_ON ;good OP_CONST_ALT: mov edx,[esi+4] add esi,8 GO_ON ;good OP_ADDR_PRI: mov eax,[esi+4] add esi,8 add eax,frm GO_ON ;good OP_ADDR_ALT: mov edx,[esi+4] add esi,8 add edx,frm GO_ON OP_STOR_PRI: mov ebp,[esi+4] add esi,8 mov [ebp+edi],eax GO_ON OP_STOR_ALT: mov ebp,[esi+4] add esi,8 mov [ebp+edi],edx GO_ON ;good OP_STOR_S_PRI: mov ebp,[esi+4] add esi,8 mov [ebp+ebx],eax GO_ON ;good OP_STOR_S_ALT: mov ebp,[esi+4] add esi,8 mov [ebp+ebx],edx GO_ON ;good OP_STOR_I: add esi,4 _VERIFYADDRESS edx mov [edi+edx],eax GO_ON OP_STRB_I: _VERIFYADDRESS edx mov ebp,[esi+4] add esi,8 cmp ebp,1 jne short strb_not1byte mov [edi+edx],al GO_ON strb_not1byte: cmp ebp,4 je short strb_4byte mov [edi+edx],ax GO_ON strb_4byte: mov [edi+edx],eax GO_ON OP_SREF_PRI: mov ebp,[esi+4] add esi,8 mov ebp,[edi+ebp] mov [edi+ebp],eax GO_ON OP_SREF_ALT: mov ebp,[esi+4] add esi,8 mov ebp,[edi+ebp] mov [edi+ebp],edx GO_ON OP_SREF_S_PRI: mov ebp,[esi+4] add esi,8 mov ebp,[ebx+ebp] mov [edi+ebp],eax GO_ON OP_SREF_S_ALT: mov ebp,[esi+4] add esi,8 mov ebp,[ebx+ebp] mov [edi+ebp],edx GO_ON ;good OP_LIDX: lea eax,[edx+4*eax] add esi,4 _VERIFYADDRESS eax mov eax,[edi+eax] GO_ON OP_LIDX_B: push ecx mov ecx,[esi+4] shl eax,cl add esi,8 add eax,edx pop ecx _VERIFYADDRESS eax mov eax,[edi+eax] GO_ON ;good OP_IDXADDR: add esi,4 lea eax,[edx+4*eax] GO_ON OP_IDXADDR_B: push ecx mov ecx,[esi+4] add esi,8 shl eax,cl pop ecx add eax,edx GO_ON OP_ALIGN_PRI: mov ebp,4 ; ??? one operation too many? sub ebp,[esi+4] add esi,8 xor eax,ebp GO_ON OP_ALIGN_ALT: mov ebp,4 sub ebp,[esi+4] add esi,8 xor edx,ebp GO_ON OP_LCTRL: mov ebp,[esi+4] add esi,8 cmp ebp,0 jne short lctrl_1 mov eax,code ; COD GO_ON lctrl_1: cmp ebp,1 jne short lctrl_2 mov eax,edi ; DAT GO_ON lctrl_2: cmp ebp,2 jne short lctrl_3 mov eax,hea ; 2=HEA GO_ON lctrl_3: cmp ebp,3 jne short lctrl_4 mov ebp,amx mov eax,stp GO_ON lctrl_4: cmp ebp,4 jne short lctrl_5 mov eax,ecx ; 4=STK GO_ON lctrl_5: cmp ebp,5 jne short lctrl_6 mov eax,frm ; 5=FRM GO_ON lctrl_6: mov eax,esi ; 6=CIP sub eax,code GO_ON OP_SCTRL: mov ebp,[esi+4] add esi,8 cmp ebp,2 jne short sctrl_4 mov hea,eax ; 2=HEA GO_ON sctrl_4: cmp ebp,4 jne short sctrl_5 mov ecx,eax ; 4=STK GO_ON sctrl_5: cmp ebp,5 jne short sctrl_6 mov ebx,eax ; 5=FRM mov frm,eax add ebx,edi ; relocate FRM sctrl_6: GO_ON OP_MOVE_PRI: add esi,4 mov eax,edx GO_ON ;good OP_MOVE_ALT: add esi,4 mov edx,eax GO_ON OP_XCHG: add esi,4 xchg eax,edx GO_ON ;good OP_PUSH_PRI: add esi,4 _PUSH eax GO_ON ;good OP_PUSH_ALT: add esi,4 _PUSH edx GO_ON OP_PUSH_R_PRI: mov ebp,[esi+4] add esi,8 push_loop: _PUSH eax dec ebp jnz short push_loop GO_ON ;good OP_PUSH_C: mov ebp,[esi+4] add esi,8 _PUSH ebp GO_ON OP_PUSH: mov ebp,[esi+4] add esi,8 mov ebp,[ebp+edi] _PUSH ebp GO_ON ;good OP_PUSH_S: mov ebp,[esi+4] add esi,8 mov ebp,[ebp+ebx] _PUSH ebp GO_ON OP_POP_PRI: add esi,4 _POP eax GO_ON ;good OP_POP_ALT: add esi,4 _POP edx GO_ON ;good OP_STACK: mov edx,ecx add ecx,[esi+4] _CHKMARGIN _CHKSTACK add esi,8 GO_ON ;good OP_HEAP: mov ebp,[esi+4] mov edx,hea add esi,8 add hea,ebp _CHKMARGIN _CHKHEAP GO_ON ;good OP_PROC: mov ebx,frm add esi,4 _PUSH ebx mov ebx,edi mov frm,ecx add ebx,ecx _CHKMARGIN GO_ON OP_RET: _POP ebx _POP esi cmp esi,code ; verify ESI>=code jb err_memaccess cmp esi,codesiz ; verify ESI<codesiz ("end-of-code" pointer) jae err_memaccess mov frm,ebx add ebx,edi GO_ON ;good OP_RETN: _POP ebx _POP esi cmp esi,code ; verify ESI>=code jb err_memaccess cmp esi,codesiz ; verify ESI<codesiz ("end-of-code" pointer) jae err_memaccess mov frm,ebx add ebx,edi mov ebp,[edi+ecx] lea ecx,[ecx+ebp+4] GO_ON OP_CALL: lea ebp,[esi+8] mov esi,[esi+4] _PUSH ebp GO_ON OP_CALL_PRI: lea ebp,[esi+4] mov esi,eax add esi,code ; cip = PRI + code _PUSH ebp GO_ON ;good OP_JUMP: mov esi,[esi+4] GO_ON OP_JREL: add esi,[esi+4] add esi,8 GO_ON ;good OP_JZER: or eax,eax jz short jump_taken add esi,8 GO_ON jump_taken: mov esi,[esi+4] GO_ON ;good OP_JNZ: or eax,eax jnz short jump_taken add esi,8 GO_ON ;good OP_JEQ: cmp eax,edx je short jump_taken add esi,8 GO_ON OP_JNEQ: cmp eax,edx jne short jump_taken add esi,8 GO_ON OP_JLESS: cmp eax,edx jb short jump_taken add esi,8 GO_ON OP_JLEQ: cmp eax,edx jbe short jump_taken add esi,8 GO_ON OP_JGRTR: cmp eax,edx ja short jump_taken add esi,8 GO_ON OP_JGEQ: cmp eax,edx jae short jump_taken ; unsigned comparison add esi,8 GO_ON OP_JSLESS: cmp eax,edx jl short jump_taken add esi,8 GO_ON ;good OP_JSLEQ: cmp eax,edx jle near jump_taken add esi,8 GO_ON OP_JSGRTR: cmp eax,edx jg near jump_taken add esi,8 GO_ON OP_JSGEQ: cmp eax,edx jge near jump_taken ; signed comparison add esi,8 GO_ON OP_SHL: push ecx mov ecx,edx add esi,4 shl eax,cl pop ecx GO_ON OP_SHR: push ecx mov ecx,edx add esi,4 shr eax,cl pop ecx GO_ON OP_SSHR: push ecx mov ecx,edx add esi,4 sar eax,cl pop ecx GO_ON OP_SHL_C_PRI: push ecx mov ecx,[esi+4] add esi,8 shl eax,cl pop ecx GO_ON OP_SHL_C_ALT: push ecx mov ecx,[esi+4] add esi,8 shl edx,cl pop ecx GO_ON OP_SHR_C_PRI: push ecx mov ecx,[esi+4] add esi,8 shr eax,cl pop ecx GO_ON OP_SHR_C_ALT: push ecx mov ecx,[esi+4] add esi,8 shr edx,cl pop ecx GO_ON OP_SMUL: add esi,4 push edx imul edx pop edx GO_ON ;good OP_SDIV_ALT: xchg eax,edx ALIGN 4 OP_SDIV: mov ebp,edx xor edx,eax ; Check signs of the operands. cdq js short sdiv_fiddle ; If the signs of the operands are different ; we'll have to fiddle around to achieve ; proper rounding towards minus infinity. _CHKDIVIDEZERO add esi,4 ; default behavior is right in the other cases idiv ebp GO_ON sdiv_fiddle: _CHKDIVIDEZERO idiv ebp add esi,4 or edx,edx jz short sdiv_goon ; If there's no remainder the result is correct add edx,ebp ; else fix the result values. dec eax ; Amazing, how simple this is... sdiv_goon: GO_ON OP_UMUL: add esi,4 push edx mul edx pop edx GO_ON OP_UDIV: mov ebp,edx sub edx,edx _CHKDIVIDEZERO add esi,4 div ebp GO_ON OP_UDIV_ALT: mov ebp,eax mov eax,edx sub edx,edx _CHKDIVIDEZERO add esi,4 div ebp GO_ON ;good OP_ADD: add esi,4 add eax,edx GO_ON ;good OP_SUB: add esi,4 sub eax,edx GO_ON ;good OP_SUB_ALT: neg eax add esi,4 add eax,edx GO_ON OP_AND: add esi,4 and eax,edx GO_ON OP_OR: add esi,4 or eax,edx GO_ON OP_XOR: add esi,4 xor eax,edx GO_ON OP_NOT: add esi,4 neg eax ; sets CF if EAX != 0 sbb eax,eax ; EAX == -1 if CF set (zero otherwise) inc eax ; -1 => 0 and 0 => 1 GO_ON OP_NEG: add esi,4 neg eax GO_ON OP_INVERT: add esi,4 not eax GO_ON ;good OP_ADD_C: add eax,[esi+4] add esi,8 GO_ON ;good OP_SMUL_C: mov ebp,[esi+4] push edx imul ebp pop edx add esi,8 GO_ON ;good OP_ZERO_PRI: add esi,4 sub eax,eax GO_ON ;good OP_ZERO_ALT: add esi,4 sub edx,edx GO_ON OP_ZERO: mov ebp,[esi+4] add esi,8 mov DWORD [edi+ebp],0 GO_ON OP_ZERO_S: mov ebp,[esi+4] add esi,8 mov DWORD [ebx+ebp],0 GO_ON OP_SIGN_PRI: shl eax,24 add esi,4 sar eax,24 GO_ON OP_SIGN_ALT: shl edx,24 add esi,4 sar edx,24 GO_ON OP_EQ: add esi,4 cmp eax,edx ; PRI == ALT ? mov eax,0 sete al GO_ON OP_NEQ: add esi,4 cmp eax,edx ; PRI != ALT ? mov eax,0 setne al GO_ON OP_LESS: add esi,4 cmp eax,edx ; PRI < ALT ? (unsigned) mov eax,0 setb al GO_ON OP_LEQ: add esi,4 cmp eax,edx ; PRI <= ALT ? (unsigned) mov eax,0 setbe al GO_ON OP_GRTR: add esi,4 cmp eax,edx ; PRI > ALT ? (unsigned) mov eax,0 seta al GO_ON OP_GEQ: add esi,4 cmp eax,edx ; PRI >= ALT ? (unsigned) mov eax,0 setae al GO_ON ;good OP_SLESS: add esi,4 cmp eax,edx ; PRI < ALT ? (signed) mov eax,0 setl al GO_ON OP_SLEQ: add esi,4 cmp eax,edx ; PRI <= ALT ? (signed) mov eax,0 setle al GO_ON OP_SGRTR: add esi,4 cmp eax,edx ; PRI > ALT ? (signed) mov eax,0 setg al GO_ON OP_SGEQ: add esi,4 cmp eax,edx ; PRI >= ALT ? (signed) mov eax,0 setge al GO_ON OP_EQ_C_PRI: cmp eax,[esi+4] ; PRI == value ? lea esi,[esi+8] mov eax,0 sete al GO_ON OP_EQ_C_ALT: xor eax,eax cmp edx,[esi+4] ; ALT == value ? lea esi,[esi+8] sete al GO_ON OP_INC_PRI: add esi,4 inc eax GO_ON OP_INC_ALT: add esi,4 inc edx GO_ON OP_INC: mov ebp,[esi+4] add esi,8 inc DWORD [edi+ebp] GO_ON ;good OP_INC_S: mov ebp,[esi+4] add esi,8 inc DWORD [ebx+ebp] GO_ON OP_INC_I: add esi,4 inc DWORD [edi+eax] GO_ON OP_DEC_PRI: add esi,4 dec eax GO_ON OP_DEC_ALT: add esi,4 dec edx GO_ON OP_DEC: mov ebp,[esi+4] add esi,8 dec DWORD [edi+ebp] GO_ON OP_DEC_S: mov ebp,[esi+4] add esi,8 dec DWORD [ebx+ebp] GO_ON OP_DEC_I: add esi,4 sub DWORD [edi+eax],1 GO_ON OP_MOVS: _VERIFYADDRESS eax ; PRI _VERIFYADDRESS edx ; ALT mov ebp,eax add ebp,[esi+4] dec ebp _VERIFYADDRESS ebp ; PRI + size - 1 mov ebp,edx add ebp,[esi+4] dec ebp _VERIFYADDRESS ebp ; ALT + size - 1 push ecx mov ecx,[esi+4] add esi,8 push edi push esi lea esi,[edi+eax] lea edi,[edi+edx] push ecx shr ecx,2 rep movsd pop ecx and ecx,3 rep movsb pop esi pop edi pop ecx GO_ON OP_CMPS: _VERIFYADDRESS eax ; PRI _VERIFYADDRESS edx ; ALT mov ebp,eax add ebp,[esi+4] ; size in bytes dec ebp ; EBP = PRI + size - 1 _VERIFYADDRESS ebp ; PRI + size - 1 sub ebp,eax ; EBP = size - 1 add ebp,edx ; EBP = ALT + size - 1 _VERIFYADDRESS ebp ; ALT + size - 1 push ecx mov ecx,[esi+4] add esi,8 push edi push esi lea esi,[edi+edx] lea edi,[edi+eax] xor eax,eax repe cmpsb je short cmps1 sbb eax,eax sbb eax,0ffffffffh cmps1: pop esi pop edi pop ecx GO_ON OP_FILL: mov ebp,[esi+4] ; get byte count add esi,8 and ebp,0fffffffch ; align to words jz short fill_ready _VERIFYADDRESS edx ; ALT dec ebp ; EBP = size - 1 add ebp,edx ; EBP = ALT + size - 1 _VERIFYADDRESS ebp ; ALT + size - 1 sub ebp,edx ; restore EBP inc ebp push ecx push edi mov ecx,ebp ; ECX = count (in bytes) lea edi,[edi+edx] ; EDI = physical starting address shr ecx,2 ; ECX = count (in DWORDS) rep stosd pop edi pop ecx fill_ready: GO_ON OP_HALT: cmp DWORD retval,0 je short halt_no_retval mov ebp,retval mov [ebp],eax halt_no_retval: ; store the complete status in the AMX mov ebp,amx ; get amx into ebp mov [ebp+_pri],eax ; store values in AMX structure (PRI, ALT, STK, HEA, FRM, ...) mov [ebp+_alt],edx mov [ebp+_stk],ecx mov ecx,hea mov ebx,frm mov [ebp+_hea],ecx mov [ebp+_frm],ebx ; EBX & ECX are invalid by now mov ebx,[esi+4] ; EBX=parameter of the HALT opcode add esi,8 ; skip this instruction mov eax,esi ; EAX=CIP sub eax,code mov [ebp+_cip],eax mov eax,ebx ; return the parameter of the HALT opcode jmp _return OP_BOUNDS: mov ebp,[esi+4] add esi,8 cmp eax,ebp ja near err_bounds ; use unsigned comparison, so <0 is >bounds GO_ON OP_SYSREQ_C: mov eax,[esi+4] ; get function number add esi,4 OP_SYSREQ_PRI: mov ebp,amx ; get amx into ebp add esi,4 mov stk,ecx ; save STK mov alt,edx ; save ALT mov [ebp+_stk],ecx ; store values in AMX structure (STK, HEA, FRM) mov ecx,hea mov ebx,frm mov [ebp+_hea],ecx mov [ebp+_frm],ebx ; ebx & ecx are invalid by now mov ebx,esi ; also store CIP sub ebx,code mov [ebp+_cip],ebx mov edx,eax ; 2nd param: function number mov eax,ebp ; 1st param: amx mov ecx,stk lea ebx,pri ; 3rd param: addr. of retval add ecx,edi ; 4th param: addr. of function parameters ; save a few registers (it is not necessary to save them all ; and EAX should *not* be saved because it will hold the return ; value) push ebp push esi push edi ; push the parameters push ecx push ebx push edx push eax call [ebp+_callback] _DROPARGS 10h ; remove arguments from stack pop edi ; restore saved registers pop esi pop ebp cmp eax,AMX_ERR_NONE jne near _return ; return error code, if any mov eax,pri ; get retval into eax (PRI) mov edx,alt ; restore ALT mov ebx,frm mov ecx,stk ; restore STK add ebx,edi ; restore FRM GO_ON OP_SYSREQ_N: mov ebp,[esi+8] ; get # of bytes passed as parameters mov eax,[esi+4] ; get function number _PUSH ebp ; push 2nd parameter add esi,12 mov ebp,amx ; get amx into ebp mov stk,ecx ; save STK mov alt,edx ; save ALT mov [ebp+_stk],ecx ; store values in AMX structure (STK, HEA, FRM) mov ecx,hea mov ebx,frm mov [ebp+_hea],ecx mov [ebp+_frm],ebx ; ebx & ecx are invalid by now mov ebx,esi ; also store CIP sub ebx,code mov [ebp+_cip],ebx mov edx,eax ; 2nd param: function number mov eax,ebp ; 1st param: amx mov ecx,stk lea ebx,pri ; 3rd param: addr. of retval add ecx,edi ; 4th param: addr. of function parameters ; save a few registers (it is not necessary to save them all ; and EAX should *not* be saved because it will hold the return ; value) push ebp push esi push edi ; push the parameters push ecx push ebx push edx push eax call [ebp+_callback] _DROPARGS 10h ; remove arguments from stack pop edi ; restore saved registers pop esi pop ebp mov edx,alt ; restore ALT mov ebx,frm mov ecx,stk ; restore STK add ebx,edi ; restore FRM add ecx,[esi-4] ; remove "number of parameter bytes" from the stack add ecx,4 ; also remove the extra DWORD pushed cmp eax,AMX_ERR_NONE jne near _return ; return error code, if any mov eax,pri ; get retval into eax (PRI) GO_ON OP_SYSREQ_D: mov ebx,[esi+4] ; get function address mov ebp,amx ; get amx into ebp add esi,8 mov stk,ecx ; save STK mov alt,edx ; save ALT mov [ebp+_stk],ecx ; store values in AMX structure (STK, HEA, FRM) mov ecx,hea mov eax,frm mov [ebp+_hea],ecx mov [ebp+_frm],eax ; eax & ecx are invalid by now mov eax,ebp ; 1st param: amx mov edx,stk add edx,edi ; 2nd param: addr. of function parameters ; save a few registers (it is not necessary to save them all ; and EAX should *not* be saved because it will hold the return ; value) push ebp push esi push edi ; push the parameters push edx push eax call ebx ; direct call _DROPARGS 8 ; remove arguments from stack pop edi ; restore saved registers pop esi pop ebp cmp DWORD [ebp+_error],AMX_ERR_NONE jne near _return ; return error code, if any ; function result is in eax (PRI) mov edx,alt ; restore ALT mov ebx,frm mov ecx,stk ; restore STK add ebx,edi ; restore FRM GO_ON OP_SYSREQ_ND: mov ebp,[esi+8] ; get # of bytes passed as parameters mov ebx,[esi+4] ; get function number _PUSH ebp ; push 2nd parameter add esi,12 mov ebp,amx ; get amx into ebp mov stk,ecx ; save STK mov alt,edx ; save ALT mov [ebp+_stk],ecx ; store values in AMX structure (STK, HEA, FRM) mov ecx,hea mov eax,frm mov [ebp+_hea],ecx mov [ebp+_frm],eax ; eax & ecx are invalid by now mov eax,ebp ; 1st param: amx mov edx,stk add edx,edi ; 2nd param: addr. of function parameters ; save a few registers (it is not necessary to save them all ; and EAX should *not* be saved because it will hold the return ; value) push ebp push esi push edi ; push the parameters push edx push eax call ebx ; direct call _DROPARGS 8 ; remove arguments from stack pop edi ; restore saved registers pop esi pop ebp ; function result is in eax (PRI) mov edx,alt ; restore ALT mov ebx,frm mov ecx,stk ; restore STK add ebx,edi ; restore FRM add ecx,[esi-4] ; remove "number of parameter bytes" from the stack add ecx,4 ; also remove the extra DWORD pushed cmp DWORD [ebp+_error],AMX_ERR_NONE jne near _return ; return error code, if any GO_ON OP_FILE: jmp OP_INVALID OP_LINE: add esi,12 GO_ON OP_SYMBOL: add esi,[esi+4] add esi,8 ; skip "fixed" part GO_ON OP_SRANGE: add esi,12 GO_ON OP_SYMTAG: add esi,8 GO_ON OP_JUMP_PRI: mov esi,eax GO_ON OP_SWITCH: push ecx mov ebp,[esi+4] ; get offset of the switch table add ebp,4 ; skip the "OP_CASETBL" opcode mov ecx,[ebp] ; ECX = number of records mov esi,[ebp+4] ; preset ESI to "none-matched" case op_switch_loop: or ecx, ecx ; number of records == 0? jz short op_switch_end ; yes, no more records, exit loop add ebp,8 ; skip previous record dec ecx ; already decrement cases to do cmp eax,[ebp] ; PRI == case label? jne short op_switch_loop ; no, continue loop mov esi,[ebp+4] ; yes, get jump address and exit loop op_switch_end: pop ecx GO_ON OP_CASETBL: jmp OP_INVALID OP_SWAP_PRI: mov ebp,[edi+ecx] add esi,4 mov [edi+ecx],eax mov eax,ebp GO_ON OP_SWAP_ALT: mov ebp,[edi+ecx] add esi,4 mov [edi+ecx],edx mov edx,ebp GO_ON OP_PUSH_ADR: mov ebp,[esi+4] add esi,8 add ebp,frm _PUSH ebp GO_ON OP_NOP: add esi,4 GO_ON OP_BREAK: mov ebp,amx ; get amx into ebp add esi,4 cmp DWORD [ebp+_debug], 0 jnz break_calldebug GO_ON ; debug hook not active, ignore break_calldebug: ; store the status in the AMX (FRM, STK, HEA, CIP, and PRI + ALT) mov [ebp+_pri],eax mov [ebp+_alt],edx ; EAX and EDX are now free to use mov eax,frm mov edx,hea mov [ebp+_frm],eax ; store values in AMX structure (STK, FRM & HEA) mov [ebp+_hea],edx mov [ebp+_stk],ecx mov eax,esi sub eax,code ; EAX = CIP (relative to start of code segment) mov [ebp+_cip],eax ; call the debug hook mov eax,ebp ; 1st parm: amx _SAVEREGS push eax call [ebp+_debug] ; call debug function _DROPARGS 4 ; remove arguments from stack cmp eax,AMX_ERR_NONE je short break_noabort; continue running mov [ebp+_error],eax ; save EAX (error code) before restoring all regs _RESTOREREGS ; abort run, but restore stack first mov eax,[ebp+_error] ; get error code in EAX back again jmp _return ; return error code break_noabort: _RESTOREREGS mov eax,[ebp+_pri] ; restore PRI and ALT mov edx,[ebp+_alt] GO_ON OP_PUSH2_C: add esi,12 mov ebp,[esi-8] _PUSH ebp mov ebp,[esi-4] _PUSH ebp GO_ON OP_PUSH2: add esi,12 mov ebp,[esi-8] mov ebp,[ebp+edi] _PUSH ebp mov ebp,[esi-4] mov ebp,[ebp+edi] _PUSH ebp GO_ON OP_PUSH2_S: add esi,12 mov ebp,[esi-8] mov ebp,[ebp+ebx] _PUSH ebp mov ebp,[esi-4] mov ebp,[ebp+ebx] _PUSH ebp GO_ON OP_PUSH2_ADR: add esi,12 mov ebp,[esi-8] add ebp,frm _PUSH ebp mov ebp,[esi-4] add ebp,frm _PUSH ebp GO_ON OP_PUSH3_C: add esi,16 mov ebp,[esi-12] _PUSH ebp mov ebp,[esi-8] _PUSH ebp mov ebp,[esi-4] _PUSH ebp GO_ON OP_PUSH3: add esi,16 mov ebp,[esi-12] mov ebp,[ebp+edi] _PUSH ebp mov ebp,[esi-8] mov ebp,[ebp+edi] _PUSH ebp mov ebp,[esi-4] mov ebp,[ebp+edi] _PUSH ebp GO_ON OP_PUSH3_S: add esi,16 mov ebp,[esi-12] mov ebp,[ebp+ebx] _PUSH ebp mov ebp,[esi-8] mov ebp,[ebp+ebx] _PUSH ebp mov ebp,[esi-4] mov ebp,[ebp+ebx] _PUSH ebp GO_ON OP_PUSH3_ADR: add esi,16 mov ebp,[esi-12] add ebp,frm _PUSH ebp mov ebp,[esi-8] add ebp,frm _PUSH ebp mov ebp,[esi-4] add ebp,frm _PUSH ebp GO_ON OP_PUSH4_C: add esi,20 mov ebp,[esi-16] _PUSH ebp mov ebp,[esi-12] _PUSH ebp mov ebp,[esi-8] _PUSH ebp mov ebp,[esi-4] _PUSH ebp GO_ON OP_PUSH4: add esi,20 mov ebp,[esi-16] mov ebp,[ebp+edi] _PUSH ebp mov ebp,[esi-12] mov ebp,[ebp+edi] _PUSH ebp mov ebp,[esi-8] mov ebp,[ebp+edi] _PUSH ebp mov ebp,[esi-4] mov ebp,[ebp+edi] _PUSH ebp GO_ON OP_PUSH4_S: add esi,20 mov ebp,[esi-16] mov ebp,[ebp+ebx] _PUSH ebp mov ebp,[esi-12] mov ebp,[ebp+ebx] _PUSH ebp mov ebp,[esi-8] mov ebp,[ebp+ebx] _PUSH ebp mov ebp,[esi-4] mov ebp,[ebp+ebx] _PUSH ebp GO_ON OP_PUSH4_ADR: add esi,20 mov ebp,[esi-16] add ebp,frm _PUSH ebp mov ebp,[esi-12] add ebp,frm _PUSH ebp mov ebp,[esi-8] add ebp,frm _PUSH ebp mov ebp,[esi-4] add ebp,frm _PUSH ebp GO_ON OP_PUSH5_C: add esi,24 mov ebp,[esi-20] _PUSH ebp mov ebp,[esi-16] _PUSH ebp mov ebp,[esi-12] _PUSH ebp mov ebp,[esi-8] _PUSH ebp mov ebp,[esi-4] _PUSH ebp GO_ON OP_PUSH5: add esi,24 mov ebp,[esi-20] mov ebp,[ebp+edi] _PUSH ebp mov ebp,[esi-16] mov ebp,[ebp+edi] _PUSH ebp mov ebp,[esi-12] mov ebp,[ebp+edi] _PUSH ebp mov ebp,[esi-8] mov ebp,[ebp+edi] _PUSH ebp mov ebp,[esi-4] mov ebp,[ebp+edi] _PUSH ebp GO_ON OP_PUSH5_S: add esi,24 mov ebp,[esi-20] mov ebp,[ebp+ebx] _PUSH ebp mov ebp,[esi-16] mov ebp,[ebp+ebx] _PUSH ebp mov ebp,[esi-12] mov ebp,[ebp+ebx] _PUSH ebp mov ebp,[esi-8] mov ebp,[ebp+ebx] _PUSH ebp mov ebp,[esi-4] mov ebp,[ebp+ebx] _PUSH ebp GO_ON OP_PUSH5_ADR: add esi,24 mov ebp,[esi-20] add ebp,frm _PUSH ebp mov ebp,[esi-16] add ebp,frm _PUSH ebp mov ebp,[esi-12] add ebp,frm _PUSH ebp mov ebp,[esi-8] add ebp,frm _PUSH ebp mov ebp,[esi-4] add ebp,frm _PUSH ebp GO_ON OP_LOAD_BOTH: mov eax,[esi+4] mov edx,[esi+8] add esi,12 mov eax,[edi+eax] mov edx,[edi+edx] GO_ON OP_LOAD_S_BOTH: mov eax,[esi+4] mov edx,[esi+8] add esi,12 mov eax,[ebx+eax] mov edx,[ebx+edx] GO_ON OP_CONST: push eax mov ebp,[esi+4] mov eax,[esi+8] add esi,12 mov [ebp+edi],eax pop eax GO_ON OP_CONST_S: push eax mov ebp,[esi+4] mov eax,[esi+8] add esi,12 mov [ebp+ebx],eax pop eax GO_ON OP_INVALID: mov eax,AMX_ERR_INVINSTR jmp _return err_call: mov eax,AMX_ERR_CALLBACK jmp _return err_stack: mov eax,AMX_ERR_STACKERR jmp _return err_stacklow: mov eax,AMX_ERR_STACKLOW jmp _return err_memaccess: mov eax,AMX_ERR_MEMACCESS jmp _return err_bounds: mov eax,AMX_ERR_BOUNDS jmp _return err_heaplow: mov eax,AMX_ERR_HEAPLOW jmp _return err_divide: mov eax,AMX_ERR_DIVIDE jmp _return _return: ; save a few parameters, mostly for the "sleep"function mov ebp,amx ; get amx into ebp mov [ebp+_pri],eax ; store values in AMX structure (PRI, ALT) mov [ebp+_alt],edx ; store values in AMX structure (PRI, ALT) pop esi ; remove FRM from stack pop ecx pop ebx pop edx pop esi ; remove pointer to amx from stack pop esi ; remove code segment pointer pop esi ; remove code size add esp,4*3 ; place for PRI, ALT & STK at SYSREQs pop ebp pop esi pop edi pop ebx ret ; _amx_exec_asm ENDP Start_DATA ALIGN 4 ; This is essential to avoid misalignment stalls. lodb_and DD 0ffh, 0ffffh, 0, 0ffffffffh GLOBAL amx_opcodelist GLOBAL _amx_opcodelist amx_opcodelist: _amx_opcodelist DD OP_INVALID DD OP_LOAD_PRI DD OP_LOAD_ALT DD OP_LOAD_S_PRI DD OP_LOAD_S_ALT DD OP_LREF_PRI DD OP_LREF_ALT DD OP_LREF_S_PRI DD OP_LREF_S_ALT DD OP_LOAD_I DD OP_LODB_I DD OP_CONST_PRI DD OP_CONST_ALT DD OP_ADDR_PRI DD OP_ADDR_ALT DD OP_STOR_PRI DD OP_STOR_ALT DD OP_STOR_S_PRI DD OP_STOR_S_ALT DD OP_SREF_PRI DD OP_SREF_ALT DD OP_SREF_S_PRI DD OP_SREF_S_ALT DD OP_STOR_I DD OP_STRB_I DD OP_LIDX DD OP_LIDX_B DD OP_IDXADDR DD OP_IDXADDR_B DD OP_ALIGN_PRI DD OP_ALIGN_ALT DD OP_LCTRL DD OP_SCTRL DD OP_MOVE_PRI DD OP_MOVE_ALT DD OP_XCHG DD OP_PUSH_PRI DD OP_PUSH_ALT DD OP_PUSH_R_PRI ; obsolete DD OP_PUSH_C DD OP_PUSH DD OP_PUSH_S DD OP_POP_PRI DD OP_POP_ALT DD OP_STACK DD OP_HEAP DD OP_PROC DD OP_RET DD OP_RETN DD OP_CALL DD OP_CALL_PRI DD OP_JUMP DD OP_JREL DD OP_JZER DD OP_JNZ DD OP_JEQ DD OP_JNEQ DD OP_JLESS DD OP_JLEQ DD OP_JGRTR DD OP_JGEQ DD OP_JSLESS DD OP_JSLEQ DD OP_JSGRTR DD OP_JSGEQ DD OP_SHL DD OP_SHR DD OP_SSHR DD OP_SHL_C_PRI DD OP_SHL_C_ALT DD OP_SHR_C_PRI DD OP_SHR_C_ALT DD OP_SMUL DD OP_SDIV DD OP_SDIV_ALT DD OP_UMUL DD OP_UDIV DD OP_UDIV_ALT DD OP_ADD DD OP_SUB DD OP_SUB_ALT DD OP_AND DD OP_OR DD OP_XOR DD OP_NOT DD OP_NEG DD OP_INVERT DD OP_ADD_C DD OP_SMUL_C DD OP_ZERO_PRI DD OP_ZERO_ALT DD OP_ZERO DD OP_ZERO_S DD OP_SIGN_PRI DD OP_SIGN_ALT DD OP_EQ DD OP_NEQ DD OP_LESS DD OP_LEQ DD OP_GRTR DD OP_GEQ DD OP_SLESS DD OP_SLEQ DD OP_SGRTR DD OP_SGEQ DD OP_EQ_C_PRI DD OP_EQ_C_ALT DD OP_INC_PRI DD OP_INC_ALT DD OP_INC DD OP_INC_S DD OP_INC_I DD OP_DEC_PRI DD OP_DEC_ALT DD OP_DEC DD OP_DEC_S DD OP_DEC_I DD OP_MOVS DD OP_CMPS DD OP_FILL DD OP_HALT DD OP_BOUNDS DD OP_SYSREQ_PRI DD OP_SYSREQ_C DD OP_FILE ; obsolete DD OP_LINE ; obsolete DD OP_SYMBOL ; obsolete DD OP_SRANGE ; obsolete DD OP_JUMP_PRI DD OP_SWITCH DD OP_CASETBL DD OP_SWAP_PRI DD OP_SWAP_ALT DD OP_PUSH_ADR DD OP_NOP DD OP_SYSREQ_N DD OP_SYMTAG ; obsolete DD OP_BREAK ; macro opcodes DD OP_PUSH2_C DD OP_PUSH2 DD OP_PUSH2_S DD OP_PUSH2_ADR DD OP_PUSH3_C DD OP_PUSH3 DD OP_PUSH3_S DD OP_PUSH3_ADR DD OP_PUSH4_C DD OP_PUSH4 DD OP_PUSH4_S DD OP_PUSH4_ADR DD OP_PUSH5_C DD OP_PUSH5 DD OP_PUSH5_S DD OP_PUSH5_ADR DD OP_LOAD_BOTH DD OP_LOAD_S_BOTH DD OP_CONST DD OP_CONST_S ; "patch" opcodes DD OP_SYSREQ_D DD OP_SYSREQ_ND
23.969368
94
0.467824