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
26833d18b74f7805fb2c605fe71386e6638dd5dc
2,333
asm
Assembly
Library/Socket/socketManager.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Socket/socketManager.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Socket/socketManager.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1994 -- All Rights Reserved GEOWORKS CONFIDENTIAL PROJECT: PC/GEOS MODULE: Network messaging library FILE: socketManager.asm AUTHOR: Eric Weber, Mar 14, 1994 REVISION HISTORY: Name Date Description ---- ---- ----------- EW 3/14/94 Initial revision DESCRIPTION: Manager file for socket library $Id: socketManager.asm,v 1.1 97/04/07 10:46:06 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ;----------------------------------------------------------------------------- ; System Includes ;----------------------------------------------------------------------------- include geos.def include heap.def include geode.def include resource.def include ec.def include system.def include library.def include driver.def include sem.def include object.def include timer.def include timedate.def include assert.def include initfile.def include thread.def include medium.def include Internal/semInt.def include Internal/heapInt.def ;----------------------------------------------------------------------------- ; System Libraries ;----------------------------------------------------------------------------- UseLib ui.def UseLib Internal/netutils.def UseDriver Internal/socketDr.def ;----------------------------------------------------------------------------- ; Library Declaration ;----------------------------------------------------------------------------- DefLib socket.def DefLib Internal/socketInt.def ;----------------------------------------------------------------------------- ; Internal def files ;----------------------------------------------------------------------------- include socketConstant.def include socketMacro.def ;----------------------------------------------------------------------------- ; Code files ;----------------------------------------------------------------------------- include socketApi.asm include socketConnection.asm include socketControl.asm include socketError.asm include socketLink.asm include socketMisc.asm include socketPacket.asm include socketStrategy.asm include socketLoad.asm include socketCApi.asm
28.45122
79
0.439348
d7d95f0ade5bd7ed9730813a248af27364bf6ecf
859
asm
Assembly
programs/oeis/272/A272378.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/272/A272378.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/272/A272378.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A272378: a(n) = n*(6*n^2 - 8*n + 3). ; 0,1,22,99,268,565,1026,1687,2584,3753,5230,7051,9252,11869,14938,18495,22576,27217,32454,38323,44860,52101,60082,68839,78408,88825,100126,112347,125524,139693,154890,171151,188512,207009,226678,247555,269676,293077,317794,343863,371320,400201,430542,462379,495748,530685,567226,605407,645264,686833,730150,775251,822172,870949,921618,974215,1028776,1085337,1143934,1204603,1267380,1332301,1399402,1468719,1540288,1614145,1690326,1768867,1849804,1933173,2019010,2107351,2198232,2291689,2387758,2486475,2587876,2691997,2798874,2908543,3021040,3136401,3254662,3375859,3500028,3627205,3757426,3890727,4027144,4166713,4309470,4455451,4604692,4757229,4913098,5072335,5234976,5401057,5570614,5743683 mov $1,3 mov $2,$0 mul $2,3 sub $2,1 mov $3,$0 add $3,$0 mul $2,$3 add $2,1 sub $3,2 mul $3,$2 add $1,$3 div $1,2 mov $0,$1
50.529412
694
0.784633
492b8d5deccdf3af75e6ae81d4b9a150a41dbc31
1,524
asm
Assembly
tests/emra/PRED_MODE/asm/PR02.asm
ilebedev/stacktool
0750fb632d6a06596056edb97825baa035cec418
[ "MIT" ]
1
2021-02-17T17:44:59.000Z
2021-02-17T17:44:59.000Z
tests/emra/PRED_MODE/asm/PR02.asm
ilebedev/stacktool
0750fb632d6a06596056edb97825baa035cec418
[ "MIT" ]
null
null
null
tests/emra/PRED_MODE/asm/PR02.asm
ilebedev/stacktool
0750fb632d6a06596056edb97825baa035cec418
[ "MIT" ]
null
null
null
#define BASE_ADDR_0 0x00000000 // (core 0) #define BASE_ADDR_1 0x02000000 // (core 1) #define BASE_ADDR_2 0x04000000 // (core 2) #define BASE_ADDR_3 0x06000000 // (core 3) #int main() { # # int *localArr = (int *) BASE_ADDR_0; # int *remoteArr1 = (int *) BASE_ADDR_1; # # *(localArr) = 0; # *(remoteArr1) = 0; // remote access to core 1 # *(remoteArr1+1) = 0; // remote access to core 1 # *(remoteArr1+2) = 0; // remote access to core 1 # # for (int i = 0; i < 10; i++) { # *(remoteArr1)++; // this will become local accesses (by migrating to core 1) # *(remoteArr1+1)++; # *(remoteArr1+2)++; # *(localArr)++; // this will become remote accesses from core 1 # } #} #(RA) #@ENTRY: PUSH 0; PUSH 0; ST; PUSH 0; PUSH 0; SETHI 0x0200; ST; PUSH 0; PUSH 1; SETHI 0x0200; ST; PUSH 0; PUSH 2; SETHI 0x0200; ST; PUSH 0; #(i, RA) #@CONDITION: PULL_CP 0; PUSH 10; COMP_ULE; B_Z 2; #branch to @BODY #(i, RA) #@RETURN: DROP 0; HALT; #(i, RA) #@BODY: # *(remoteArr1)++; // this will become local accesses (by migrating to core 1) PUSH 0; SETHI 0x0200; PULL_CP 0; LD; PUSH 1; ADD; PULL 1; ST; # *(remoteArr1+1)++; PUSH 1; SETHI 0x0200; PULL_CP 0; LD; PUSH 1; ADD; PULL 1; ST; # *(remoteArr1+2)++; PUSH 2; SETHI 0x0200; PULL_CP 0; LD; PUSH 1; ADD; PULL 1; ST; # *(localArr)++; // this will become remote accesses from core 1 PUSH 0; LD; PUSH 1; ADD; PUSH 0; ST; #(i, RA) #@FOR.END: PUSH 1; ADD; J_REL -39; #jump to @CONDITION
14.377358
81
0.587927
a506169126939fab77c7f4d1d2fc0cc4b21683f1
954
asm
Assembly
data/pokemon/base_stats/tangrowth.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
data/pokemon/base_stats/tangrowth.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
data/pokemon/base_stats/tangrowth.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
2
2021-08-11T19:47:07.000Z
2022-01-01T07:07:56.000Z
db 0 ; species ID placeholder db 100, 100, 125, 50, 110, 50 ; hp atk def spd sat sdf db GRASS, GRASS ; type db 30 ; catch rate db 187 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 20 ; step cycles to hatch INCBIN "gfx/pokemon/tangrowth/front.dimensions" db GROWTH_MEDIUM_FAST ; growth rate dn EGG_PLANT, EGG_PLANT ; egg groups db 70 ; happiness ; tm/hm learnset tmhm TOXIC, BULLET_SEED, HIDDEN_POWER, SUNNY_DAY, HYPER_BEAM, PROTECT, GIGA_DRAIN, FRUSTRATION, SOLARBEAM, EARTHQUAKE, RETURN, BRICK_BREAK, DOUBLE_TEAM, REFLECT, SHOCK_WAVE, SLUDGE_BOMB, ROCK_TOMB, AERIAL_ACE, FACADE, SECRET_POWER, REST, ATTRACT, THIEF, FOCUS_BLAST, ENERGY_BALL, FLING, ENDURE, PAYBACK, GIGA_IMPACT, FLASH, SWORDS_DANCE, PSYCH_UP, CAPTIVATE, ROCK_SLIDE, SLEEP_TALK, NATURAL_GIFT, POISON_JAB, GRASS_KNOT, SWAGGER, SUBSTITUTE, CUT, STRENGTH, ROCK_SMASH, ANCIENTPOWER, KNOCK_OFF, MUD_SLAP, SEED_BOMB, SNORE, SYNTHESIS ; end
47.7
533
0.759958
7a9f0f660d7bfe398f012eed5b29eb972771013a
1,488
asm
Assembly
sem1/asc/Palindrom/main.asm
itsbratu/bachelor
b3bcae07fc8297fb0557a4bf752b20c6104c2563
[ "MIT" ]
null
null
null
sem1/asc/Palindrom/main.asm
itsbratu/bachelor
b3bcae07fc8297fb0557a4bf752b20c6104c2563
[ "MIT" ]
null
null
null
sem1/asc/Palindrom/main.asm
itsbratu/bachelor
b3bcae07fc8297fb0557a4bf752b20c6104c2563
[ "MIT" ]
null
null
null
bits 32 global start extern exit , printf import exit msvcrt.dll import printf msvcrt.dll segment data use32 class=data s db 10 , 1 , 9 , 88 , 77 , 88 , 9 , 1 , 10 , 100 len equ ($-s) copie dd -1 negative db "Sirul dat nu este palindromic!" , 0 affirmative db "Sirul dat este palindromic!" , 0 segment code use32 class=code start: mov ax , len cmp ax , 1 je is_palindrom mov bl , 2 div bl ; avem restul in ah si catul in al xor ecx , ecx mov cl , al sub cl , 1 mov eax , 0 mov edx , len sub edx , 1 mov esi , s parcurgere_palindrom: mov dword[copie] , ecx xor ecx , ecx mov cl , byte[esi+eax] mov bl , byte[esi+edx] cmp bl , cl jne not_palindrom mov ecx , dword[copie] inc eax dec edx loop parcurgere_palindrom jmp is_palindrom not_palindrom: push dword negative call [printf] add esp , 4 jmp final is_palindrom: push dword affirmative call [printf] add esp , 4 final: push dword 0 call [exit]
21.882353
57
0.432796
c480eba2d4b541e2e5a7c2413a3529645fc33750
42,245
asm
Assembly
Palmtree.Math.Core.Implements/vs_build/x86_Debug/CALC_divrem_critical.asm
rougemeilland/Palmtree.Math.Core.Implements
52f4f6c765d16c9b0baf1fd212c61a33daae138c
[ "MIT" ]
null
null
null
Palmtree.Math.Core.Implements/vs_build/x86_Debug/CALC_divrem_critical.asm
rougemeilland/Palmtree.Math.Core.Implements
52f4f6c765d16c9b0baf1fd212c61a33daae138c
[ "MIT" ]
null
null
null
Palmtree.Math.Core.Implements/vs_build/x86_Debug/CALC_divrem_critical.asm
rougemeilland/Palmtree.Math.Core.Implements
52f4f6c765d16c9b0baf1fd212c61a33daae138c
[ "MIT" ]
null
null
null
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1 TITLE Z:\Sources\Lunor\Repos\rougemeilland\Palmtree.Math.Core.Implements\Palmtree.Math.Core.Implements\CALC_divrem_critical.c .686P .XMM include listing.inc .model flat INCLUDELIB MSVCRTD INCLUDELIB OLDNAMES msvcjmc SEGMENT __7B7A869E_ctype@h DB 01H __457DD326_basetsd@h DB 01H __4384A2D9_corecrt_memcpy_s@h DB 01H __4E51A221_corecrt_wstring@h DB 01H __2140C079_string@h DB 01H __1887E595_winnt@h DB 01H __9FC7C64B_processthreadsapi@h DB 01H __FA470AEC_memoryapi@h DB 01H __F37DAFF1_winerror@h DB 01H __7A450CCC_winbase@h DB 01H __B4B40122_winioctl@h DB 01H __86261D59_stralign@h DB 01H __4522B509_pmc_internal@h DB 01H __1C66ECB2_pmc_debug@h DB 01H __7646DD32_calc_divrem_critical@c DB 01H msvcjmc ENDS PUBLIC _CalculateCriticalDataOfDivision PUBLIC __JustMyCode_Default EXTRN @_RTC_CheckStackVars@8:PROC EXTRN @__CheckForDebuggerJustMyCode@4:PROC EXTRN __RTC_CheckEsp:PROC EXTRN __RTC_InitBase:PROC EXTRN __RTC_Shutdown:PROC EXTRN __allshl:PROC EXTRN __aulldiv:PROC EXTRN __aullrem:PROC EXTRN __aullshr:PROC EXTRN _statistics_info:BYTE ; COMDAT rtc$TMZ rtc$TMZ SEGMENT __RTC_Shutdown.rtc$TMZ DD FLAT:__RTC_Shutdown rtc$TMZ ENDS ; COMDAT rtc$IMZ rtc$IMZ SEGMENT __RTC_InitBase.rtc$IMZ DD FLAT:__RTC_InitBase rtc$IMZ ENDS _DATA SEGMENT $SG95833 DB 'found: u0=0x%08x, u1=0x%08x, u2=0x%08x, u3=0x%08x, v1=0x' DB '%08x, v2=0x%08x, v3=0x%08x', 0aH, 00H ORG $+4 $SG95834 DB 'found: u0=0x%016llx, u1=0x%016llx, u2=0x%016llx, u3=0x%0' DB '16llx, v1=0x%016llx, v2=0x%016llx, v3=0x%016llx', 0aH, 00H _DATA ENDS ; Function compile flags: /Odt ; COMDAT __JustMyCode_Default _TEXT SEGMENT __JustMyCode_Default PROC ; COMDAT push ebp mov ebp, esp pop ebp ret 0 __JustMyCode_Default ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\calc_divrem_critical.c _TEXT SEGMENT tv89 = -52 ; size = 4 _rh_lo$ = -48 ; size = 4 _rh_mi$ = -40 ; size = 4 _rh_hi$ = -28 ; size = 4 _lh_lo$ = -20 ; size = 4 _lh_mi$ = -12 ; size = 4 _lh_hi$ = -4 ; size = 4 _q_$ = 8 ; size = 4 _u0$ = 12 ; size = 4 _u1$ = 16 ; size = 4 _u2$ = 20 ; size = 4 _v1$ = 24 ; size = 4 _v2$ = 28 ; size = 4 _CheckQ_ PROC ; 75 : { push ebp mov ebp, esp sub esp, 52 ; 00000034H push edi lea edi, DWORD PTR [ebp-52] mov ecx, 13 ; 0000000dH mov eax, -858993460 ; ccccccccH rep stosd mov ecx, OFFSET __7646DD32_calc_divrem_critical@c call @__CheckForDebuggerJustMyCode@4 ; 76 : const __UNIT_TYPE_DIV lh_hi = 0; mov DWORD PTR _lh_hi$[ebp], 0 ; 77 : __UNIT_TYPE_DIV lh_mi; ; 78 : __UNIT_TYPE_DIV lh_lo = _MULTIPLY_UNIT_DIV(v2, q_, &lh_mi); lea eax, DWORD PTR _lh_mi$[ebp] push eax mov ecx, DWORD PTR _q_$[ebp] push ecx mov edx, DWORD PTR _v2$[ebp] push edx call __MULTIPLY_UNIT_DIV add esp, 12 ; 0000000cH mov DWORD PTR _lh_lo$[ebp], eax ; 79 : __UNIT_TYPE_DIV rh_hi; ; 80 : __UNIT_TYPE_DIV rh_mi = _MULTIPLY_UNIT_DIV(q_, v1, &rh_hi); lea eax, DWORD PTR _rh_hi$[ebp] push eax mov ecx, DWORD PTR _v1$[ebp] push ecx mov edx, DWORD PTR _q_$[ebp] push edx call __MULTIPLY_UNIT_DIV add esp, 12 ; 0000000cH mov DWORD PTR _rh_mi$[ebp], eax ; 81 : __UNIT_TYPE_DIV rh_lo = u2; mov eax, DWORD PTR _u2$[ebp] mov DWORD PTR _rh_lo$[ebp], eax ; 82 : _SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(0, u1, rh_mi, &rh_mi), u0, rh_hi, &rh_hi); lea ecx, DWORD PTR _rh_hi$[ebp] push ecx mov edx, DWORD PTR _rh_hi$[ebp] push edx mov eax, DWORD PTR _u0$[ebp] push eax lea ecx, DWORD PTR _rh_mi$[ebp] push ecx mov edx, DWORD PTR _rh_mi$[ebp] push edx mov eax, DWORD PTR _u1$[ebp] push eax push 0 call __SUBTRUCT_UNIT_DIV add esp, 16 ; 00000010H movzx ecx, al push ecx call __SUBTRUCT_UNIT_DIV add esp, 16 ; 00000010H ; 83 : #ifdef ENABLED_PERFORMANCE_COUNTER ; 84 : if (sizeof(lh_hi) == sizeof(_UINT32_T)) mov edx, 1 test edx, edx je SHORT $LN2@CheckQ_ ; 85 : AddToMULTI32Counter(2); push 2 call _AddToMULTI32Counter add esp, 4 jmp SHORT $LN3@CheckQ_ $LN2@CheckQ_: ; 86 : else ; 87 : AddToMULTI64Counter(2); push 2 call _AddToMULTI64Counter add esp, 4 $LN3@CheckQ_: ; 88 : #endif ; 89 : if (lh_hi > rh_hi) mov eax, DWORD PTR _lh_hi$[ebp] cmp eax, DWORD PTR _rh_hi$[ebp] jbe SHORT $LN4@CheckQ_ ; 90 : return (TRUE); mov eax, 1 jmp SHORT $LN1@CheckQ_ jmp SHORT $LN1@CheckQ_ $LN4@CheckQ_: ; 91 : else if (lh_hi < rh_hi) mov ecx, DWORD PTR _lh_hi$[ebp] cmp ecx, DWORD PTR _rh_hi$[ebp] jae SHORT $LN6@CheckQ_ ; 92 : return (FALSE); xor eax, eax jmp SHORT $LN1@CheckQ_ jmp SHORT $LN1@CheckQ_ $LN6@CheckQ_: ; 93 : else if (lh_mi > rh_mi) mov edx, DWORD PTR _lh_mi$[ebp] cmp edx, DWORD PTR _rh_mi$[ebp] jbe SHORT $LN8@CheckQ_ ; 94 : return (TRUE); mov eax, 1 jmp SHORT $LN1@CheckQ_ jmp SHORT $LN1@CheckQ_ $LN8@CheckQ_: ; 95 : else if (lh_mi < rh_mi) mov eax, DWORD PTR _lh_mi$[ebp] cmp eax, DWORD PTR _rh_mi$[ebp] jae SHORT $LN10@CheckQ_ ; 96 : return (FALSE); xor eax, eax jmp SHORT $LN1@CheckQ_ jmp SHORT $LN1@CheckQ_ $LN10@CheckQ_: ; 97 : else ; 98 : return (lh_lo > rh_lo); mov ecx, DWORD PTR _lh_lo$[ebp] cmp ecx, DWORD PTR _rh_lo$[ebp] jbe SHORT $LN13@CheckQ_ mov DWORD PTR tv89[ebp], 1 jmp SHORT $LN14@CheckQ_ $LN13@CheckQ_: mov DWORD PTR tv89[ebp], 0 $LN14@CheckQ_: mov eax, DWORD PTR tv89[ebp] $LN1@CheckQ_: ; 99 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN19@CheckQ_ call @_RTC_CheckStackVars@8 pop eax pop edx pop edi add esp, 52 ; 00000034H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 3 $LN19@CheckQ_: DD 3 DD $LN18@CheckQ_ $LN18@CheckQ_: DD -12 ; fffffff4H DD 4 DD $LN15@CheckQ_ DD -28 ; ffffffe4H DD 4 DD $LN16@CheckQ_ DD -40 ; ffffffd8H DD 4 DD $LN17@CheckQ_ $LN17@CheckQ_: DB 114 ; 00000072H DB 104 ; 00000068H DB 95 ; 0000005fH DB 109 ; 0000006dH DB 105 ; 00000069H DB 0 $LN16@CheckQ_: DB 114 ; 00000072H DB 104 ; 00000068H DB 95 ; 0000005fH DB 104 ; 00000068H DB 105 ; 00000069H DB 0 $LN15@CheckQ_: DB 108 ; 0000006cH DB 104 ; 00000068H DB 95 ; 0000005fH DB 109 ; 0000006dH DB 105 ; 00000069H DB 0 _CheckQ_ ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\calc_divrem_critical.c _TEXT SEGMENT _q$ = -16 ; size = 4 _r$ = -8 ; size = 4 _u0$ = 8 ; size = 4 _u1$ = 12 ; size = 4 _v1$ = 16 ; size = 4 _AsumeQ_ PROC ; 60 : { push ebp mov ebp, esp sub esp, 16 ; 00000010H mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __7646DD32_calc_divrem_critical@c call @__CheckForDebuggerJustMyCode@4 ; 61 : if (u0 == v1) mov eax, DWORD PTR _u0$[ebp] cmp eax, DWORD PTR _v1$[ebp] jne SHORT $LN2@AsumeQ_ ; 62 : return ((__UNIT_TYPE_DIV)-1); or eax, -1 jmp SHORT $LN1@AsumeQ_ $LN2@AsumeQ_: ; 63 : __UNIT_TYPE_DIV r; ; 64 : __UNIT_TYPE_DIV q = _DIVREM_UNIT(u0, u1, v1, &r); lea ecx, DWORD PTR _r$[ebp] push ecx mov edx, DWORD PTR _v1$[ebp] push edx mov eax, DWORD PTR _u1$[ebp] push eax mov ecx, DWORD PTR _u0$[ebp] push ecx call __DIVREM_UNIT add esp, 16 ; 00000010H mov DWORD PTR _q$[ebp], eax ; 65 : #ifdef ENABLED_PERFORMANCE_COUNTER ; 66 : if (sizeof(r) == sizeof(_UINT64_T)) xor edx, edx je SHORT $LN3@AsumeQ_ ; 67 : IncrementDIV64Counter(); call _IncrementDIV64Counter jmp SHORT $LN4@AsumeQ_ $LN3@AsumeQ_: ; 68 : else ; 69 : IncrementDIV32Counter(); call _IncrementDIV32Counter $LN4@AsumeQ_: ; 70 : #endif ; 71 : return (q); mov eax, DWORD PTR _q$[ebp] $LN1@AsumeQ_: ; 72 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN8@AsumeQ_ call @_RTC_CheckStackVars@8 pop eax pop edx add esp, 16 ; 00000010H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 1 $LN8@AsumeQ_: DD 1 DD $LN7@AsumeQ_ $LN7@AsumeQ_: DD -8 ; fffffff8H DD 4 DD $LN6@AsumeQ_ $LN6@AsumeQ_: DB 114 ; 00000072H DB 0 _AsumeQ_ ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\calc_divrem_critical.c _TEXT SEGMENT _x1$ = 8 ; size = 4 _x2$ = 12 ; size = 4 _x3$ = 16 ; size = 4 _x4$ = 20 ; size = 4 _y$ = 24 ; size = 4 _SUBTRUCT_4W_UNIT PROC ; 55 : { push ebp mov ebp, esp mov ecx, OFFSET __7646DD32_calc_divrem_critical@c call @__CheckForDebuggerJustMyCode@4 ; 56 : return (_SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(0, *x4, y, x4), *x3, 0, x3), *x2, 0, x2), *x1, 0, x1)); mov eax, DWORD PTR _x1$[ebp] push eax push 0 mov ecx, DWORD PTR _x1$[ebp] mov edx, DWORD PTR [ecx] push edx mov eax, DWORD PTR _x2$[ebp] push eax push 0 mov ecx, DWORD PTR _x2$[ebp] mov edx, DWORD PTR [ecx] push edx mov eax, DWORD PTR _x3$[ebp] push eax push 0 mov ecx, DWORD PTR _x3$[ebp] mov edx, DWORD PTR [ecx] push edx mov eax, DWORD PTR _x4$[ebp] push eax mov ecx, DWORD PTR _y$[ebp] push ecx mov edx, DWORD PTR _x4$[ebp] mov eax, DWORD PTR [edx] push eax push 0 call __SUBTRUCT_UNIT_DIV add esp, 16 ; 00000010H movzx ecx, al push ecx call __SUBTRUCT_UNIT_DIV add esp, 16 ; 00000010H movzx edx, al push edx call __SUBTRUCT_UNIT_DIV add esp, 16 ; 00000010H movzx eax, al push eax call __SUBTRUCT_UNIT_DIV add esp, 16 ; 00000010H ; 57 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _SUBTRUCT_4W_UNIT ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\calc_divrem_critical.c _TEXT SEGMENT _x1$ = 8 ; size = 4 _x2$ = 12 ; size = 4 _x3$ = 16 ; size = 4 _y$ = 20 ; size = 4 _SUBTRUCT_3W_UNIT PROC ; 50 : { push ebp mov ebp, esp mov ecx, OFFSET __7646DD32_calc_divrem_critical@c call @__CheckForDebuggerJustMyCode@4 ; 51 : return (_SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(0, *x3, y, x3), *x2, 0, x2), *x1, 0, x1)); mov eax, DWORD PTR _x1$[ebp] push eax push 0 mov ecx, DWORD PTR _x1$[ebp] mov edx, DWORD PTR [ecx] push edx mov eax, DWORD PTR _x2$[ebp] push eax push 0 mov ecx, DWORD PTR _x2$[ebp] mov edx, DWORD PTR [ecx] push edx mov eax, DWORD PTR _x3$[ebp] push eax mov ecx, DWORD PTR _y$[ebp] push ecx mov edx, DWORD PTR _x3$[ebp] mov eax, DWORD PTR [edx] push eax push 0 call __SUBTRUCT_UNIT_DIV add esp, 16 ; 00000010H movzx ecx, al push ecx call __SUBTRUCT_UNIT_DIV add esp, 16 ; 00000010H movzx edx, al push edx call __SUBTRUCT_UNIT_DIV add esp, 16 ; 00000010H ; 52 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _SUBTRUCT_3W_UNIT ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\calc_divrem_critical.c _TEXT SEGMENT _x1$ = 8 ; size = 4 _x2$ = 12 ; size = 4 _x3$ = 16 ; size = 4 _x4$ = 20 ; size = 4 _y$ = 24 ; size = 4 _ADD_4W_UNIT PROC ; 45 : { push ebp mov ebp, esp mov ecx, OFFSET __7646DD32_calc_divrem_critical@c call @__CheckForDebuggerJustMyCode@4 ; 46 : return (_ADD_UNIT_DIV(_ADD_UNIT_DIV(_ADD_UNIT_DIV(_ADD_UNIT_DIV(0, *x4, y, x4), *x3, 0, x3), *x2, 0, x2), *x1, 0, x1)); mov eax, DWORD PTR _x1$[ebp] push eax push 0 mov ecx, DWORD PTR _x1$[ebp] mov edx, DWORD PTR [ecx] push edx mov eax, DWORD PTR _x2$[ebp] push eax push 0 mov ecx, DWORD PTR _x2$[ebp] mov edx, DWORD PTR [ecx] push edx mov eax, DWORD PTR _x3$[ebp] push eax push 0 mov ecx, DWORD PTR _x3$[ebp] mov edx, DWORD PTR [ecx] push edx mov eax, DWORD PTR _x4$[ebp] push eax mov ecx, DWORD PTR _y$[ebp] push ecx mov edx, DWORD PTR _x4$[ebp] mov eax, DWORD PTR [edx] push eax push 0 call __ADD_UNIT_DIV add esp, 16 ; 00000010H movzx ecx, al push ecx call __ADD_UNIT_DIV add esp, 16 ; 00000010H movzx edx, al push edx call __ADD_UNIT_DIV add esp, 16 ; 00000010H movzx eax, al push eax call __ADD_UNIT_DIV add esp, 16 ; 00000010H ; 47 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _ADD_4W_UNIT ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\calc_divrem_critical.c _TEXT SEGMENT _x1$ = 8 ; size = 4 _x2$ = 12 ; size = 4 _x3$ = 16 ; size = 4 _y$ = 20 ; size = 4 _ADD_3W_UNIT PROC ; 40 : { push ebp mov ebp, esp mov ecx, OFFSET __7646DD32_calc_divrem_critical@c call @__CheckForDebuggerJustMyCode@4 ; 41 : return (_ADD_UNIT_DIV(_ADD_UNIT_DIV(_ADD_UNIT_DIV(0, *x3, y, x3), *x2, 0, x2), *x1, 0, x1)); mov eax, DWORD PTR _x1$[ebp] push eax push 0 mov ecx, DWORD PTR _x1$[ebp] mov edx, DWORD PTR [ecx] push edx mov eax, DWORD PTR _x2$[ebp] push eax push 0 mov ecx, DWORD PTR _x2$[ebp] mov edx, DWORD PTR [ecx] push edx mov eax, DWORD PTR _x3$[ebp] push eax mov ecx, DWORD PTR _y$[ebp] push ecx mov edx, DWORD PTR _x3$[ebp] mov eax, DWORD PTR [edx] push eax push 0 call __ADD_UNIT_DIV add esp, 16 ; 00000010H movzx ecx, al push ecx call __ADD_UNIT_DIV add esp, 16 ; 00000010H movzx edx, al push edx call __ADD_UNIT_DIV add esp, 16 ; 00000010H ; 42 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _ADD_3W_UNIT ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\calc_divrem_critical.c _TEXT SEGMENT _mv3_lo$1 = -296 ; size = 4 _mv3_hi$2 = -288 ; size = 4 _mv2_lo$3 = -280 ; size = 4 _mv2_hi$4 = -272 ; size = 4 _mv1_lo$5 = -264 ; size = 4 _mv1_hi$6 = -256 ; size = 4 _bu3$7 = -244 ; size = 4 _bu2$8 = -232 ; size = 4 _bu1$9 = -220 ; size = 4 _bu0$10 = -208 ; size = 4 _q_$11 = -200 ; size = 4 _v3$12 = -192 ; size = 4 _v2$13 = -180 ; size = 4 _v1$14 = -168 ; size = 4 _v_count_3$15 = -156 ; size = 4 _v_count_2$16 = -144 ; size = 4 _v_count_1$17 = -132 ; size = 4 _u3$ = -120 ; size = 4 _u2$ = -108 ; size = 4 _u1$ = -96 ; size = 4 _u0$ = -84 ; size = 4 _u_count_3$ = -72 ; size = 4 _u_count_2$ = -60 ; size = 4 _u_count_1$ = -48 ; size = 4 _u_count_0$ = -36 ; size = 4 _u_min_3$ = -28 ; size = 4 _u_min_2$ = -24 ; size = 4 _u_min_1$ = -20 ; size = 4 _u_min_0$ = -16 ; size = 4 _v_min_3$ = -12 ; size = 4 _v_min_2$ = -8 ; size = 4 _v_min_1$ = -4 ; size = 4 _env$ = 8 ; size = 4 _CalculateCriticalDataOfDivision PROC ; 102 : { push ebp mov ebp, esp sub esp, 296 ; 00000128H push esi push edi lea edi, DWORD PTR [ebp-296] mov ecx, 74 ; 0000004aH mov eax, -858993460 ; ccccccccH rep stosd mov ecx, OFFSET __7646DD32_calc_divrem_critical@c call @__CheckForDebuggerJustMyCode@4 ; 103 : const __UNIT_TYPE_DIV v_min_1 = ~((__UNIT_TYPE_DIV)-1 >> 1); // 0x80000000 mov DWORD PTR _v_min_1$[ebp], -2147483648 ; 80000000H ; 104 : const __UNIT_TYPE_DIV v_min_2 = 0; // 0x00000000 mov DWORD PTR _v_min_2$[ebp], 0 ; 105 : const __UNIT_TYPE_DIV v_min_3 = 0; mov DWORD PTR _v_min_3$[ebp], 0 ; 106 : ; 107 : const __UNIT_TYPE_DIV u_min_0 = 0; // 0x00000000 mov DWORD PTR _u_min_0$[ebp], 0 ; 108 : const __UNIT_TYPE_DIV u_min_1 = ~((__UNIT_TYPE_DIV)-1 >> 1); // 0x80000000 mov DWORD PTR _u_min_1$[ebp], -2147483648 ; 80000000H ; 109 : const __UNIT_TYPE_DIV u_min_2 = 0; // 0x00000000 mov DWORD PTR _u_min_2$[ebp], 0 ; 110 : const __UNIT_TYPE_DIV u_min_3 = 0; // 0x00000000 mov DWORD PTR _u_min_3$[ebp], 0 ; 111 : ; 112 : __UNIT_TYPE_DIV u_count_0 = (__UNIT_TYPE_DIV)-1; // 0xffffffff mov DWORD PTR _u_count_0$[ebp], -1 ; 113 : __UNIT_TYPE_DIV u_count_1 = ~((__UNIT_TYPE_DIV)-1 >> 1); // 0x80000000 mov DWORD PTR _u_count_1$[ebp], -2147483648 ; 80000000H ; 114 : __UNIT_TYPE_DIV u_count_2 = 0; // 0x00000000 mov DWORD PTR _u_count_2$[ebp], 0 ; 115 : __UNIT_TYPE_DIV u_count_3 = 0; // 0x00000000 mov DWORD PTR _u_count_3$[ebp], 0 ; 116 : ; 117 : __UNIT_TYPE_DIV u0 = u_min_0; mov eax, DWORD PTR _u_min_0$[ebp] mov DWORD PTR _u0$[ebp], eax ; 118 : __UNIT_TYPE_DIV u1 = u_min_1; mov ecx, DWORD PTR _u_min_1$[ebp] mov DWORD PTR _u1$[ebp], ecx ; 119 : __UNIT_TYPE_DIV u2 = u_min_2; mov edx, DWORD PTR _u_min_2$[ebp] mov DWORD PTR _u2$[ebp], edx ; 120 : __UNIT_TYPE_DIV u3 = u_min_3; mov eax, DWORD PTR _u_min_3$[ebp] mov DWORD PTR _u3$[ebp], eax $LN4@CalculateC: ; 121 : ; 122 : for (;;) ; 123 : { ; 124 : __UNIT_TYPE_DIV v_count_1 = ~((__UNIT_TYPE_DIV)-1 >> 1); // 0x80000000 mov DWORD PTR _v_count_1$17[ebp], -2147483648 ; 80000000H ; 125 : __UNIT_TYPE_DIV v_count_2 = 0; // 0x00000000 mov DWORD PTR _v_count_2$16[ebp], 0 ; 126 : __UNIT_TYPE_DIV v_count_3 = 0; // 0x00000000 mov DWORD PTR _v_count_3$15[ebp], 0 ; 127 : __UNIT_TYPE_DIV v1 = v_min_1; mov ecx, DWORD PTR _v_min_1$[ebp] mov DWORD PTR _v1$14[ebp], ecx ; 128 : __UNIT_TYPE_DIV v2 = v_min_2; mov edx, DWORD PTR _v_min_2$[ebp] mov DWORD PTR _v2$13[ebp], edx ; 129 : __UNIT_TYPE_DIV v3 = v_min_3; mov eax, DWORD PTR _v_min_3$[ebp] mov DWORD PTR _v3$12[ebp], eax $LN7@CalculateC: ; 130 : for (;;) ; 131 : { ; 132 : __UNIT_TYPE_DIV q_ = AsumeQ_(u0, u1, v1); mov ecx, DWORD PTR _v1$14[ebp] push ecx mov edx, DWORD PTR _u1$[ebp] push edx mov eax, DWORD PTR _u0$[ebp] push eax call _AsumeQ_ add esp, 12 ; 0000000cH mov DWORD PTR _q_$11[ebp], eax ; 133 : if (CheckQ_(q_, u0, u1, u2, v1, v2)) mov ecx, DWORD PTR _v2$13[ebp] push ecx mov edx, DWORD PTR _v1$14[ebp] push edx mov eax, DWORD PTR _u2$[ebp] push eax mov ecx, DWORD PTR _u1$[ebp] push ecx mov edx, DWORD PTR _u0$[ebp] push edx mov eax, DWORD PTR _q_$11[ebp] push eax call _CheckQ_ add esp, 24 ; 00000018H test eax, eax je SHORT $LN8@CalculateC ; 134 : { ; 135 : --q_; mov ecx, DWORD PTR _q_$11[ebp] sub ecx, 1 mov DWORD PTR _q_$11[ebp], ecx ; 136 : if (CheckQ_(q_, u0, u1, u2, v1, v2)) mov edx, DWORD PTR _v2$13[ebp] push edx mov eax, DWORD PTR _v1$14[ebp] push eax mov ecx, DWORD PTR _u2$[ebp] push ecx mov edx, DWORD PTR _u1$[ebp] push edx mov eax, DWORD PTR _u0$[ebp] push eax mov ecx, DWORD PTR _q_$11[ebp] push ecx call _CheckQ_ add esp, 24 ; 00000018H test eax, eax je SHORT $LN8@CalculateC ; 137 : { ; 138 : --q_; mov edx, DWORD PTR _q_$11[ebp] sub edx, 1 mov DWORD PTR _q_$11[ebp], edx $LN8@CalculateC: ; 139 : } ; 140 : } ; 141 : __UNIT_TYPE_DIV bu0 = u0; mov eax, DWORD PTR _u0$[ebp] mov DWORD PTR _bu0$10[ebp], eax ; 142 : __UNIT_TYPE_DIV bu1 = u1; mov ecx, DWORD PTR _u1$[ebp] mov DWORD PTR _bu1$9[ebp], ecx ; 143 : __UNIT_TYPE_DIV bu2 = u2; mov edx, DWORD PTR _u2$[ebp] mov DWORD PTR _bu2$8[ebp], edx ; 144 : __UNIT_TYPE_DIV bu3 = u3; mov eax, DWORD PTR _u3$[ebp] mov DWORD PTR _bu3$7[ebp], eax ; 145 : __UNIT_TYPE_DIV mv1_hi; ; 146 : __UNIT_TYPE_DIV mv1_lo = _MULTIPLY_UNIT_DIV(v1, q_, &mv1_hi); lea ecx, DWORD PTR _mv1_hi$6[ebp] push ecx mov edx, DWORD PTR _q_$11[ebp] push edx mov eax, DWORD PTR _v1$14[ebp] push eax call __MULTIPLY_UNIT_DIV add esp, 12 ; 0000000cH mov DWORD PTR _mv1_lo$5[ebp], eax ; 147 : __UNIT_TYPE_DIV mv2_hi; ; 148 : __UNIT_TYPE_DIV mv2_lo = _MULTIPLY_UNIT_DIV(v2, q_, &mv2_hi); lea ecx, DWORD PTR _mv2_hi$4[ebp] push ecx mov edx, DWORD PTR _q_$11[ebp] push edx mov eax, DWORD PTR _v2$13[ebp] push eax call __MULTIPLY_UNIT_DIV add esp, 12 ; 0000000cH mov DWORD PTR _mv2_lo$3[ebp], eax ; 149 : __UNIT_TYPE_DIV mv3_hi; ; 150 : __UNIT_TYPE_DIV mv3_lo = _MULTIPLY_UNIT_DIV(v3, q_, &mv3_hi); lea ecx, DWORD PTR _mv3_hi$2[ebp] push ecx mov edx, DWORD PTR _q_$11[ebp] push edx mov eax, DWORD PTR _v3$12[ebp] push eax call __MULTIPLY_UNIT_DIV add esp, 12 ; 0000000cH mov DWORD PTR _mv3_lo$1[ebp], eax ; 151 : #ifdef ENABLED_PERFORMANCE_COUNTER ; 152 : if (sizeof(mv1_hi) == sizeof(_UINT32_T)) mov ecx, 1 test ecx, ecx je SHORT $LN10@CalculateC ; 153 : AddToMULTI32Counter(3); push 3 call _AddToMULTI32Counter add esp, 4 jmp SHORT $LN11@CalculateC $LN10@CalculateC: ; 154 : else ; 155 : AddToMULTI64Counter(3); push 3 call _AddToMULTI64Counter add esp, 4 $LN11@CalculateC: ; 156 : #endif ; 157 : ; 158 : // [bu0, bu1, bu2, bu3] -= mv3_lo; ; 159 : // [bu0, bu1, bu2] -= mv3_hi; ; 160 : // [bu0, bu1, bu2] -= mv2_lo; ; 161 : // [bu0, bu1] -= mv2_hi; ; 162 : // [bu0, bu1] -= mv1_lo; ; 163 : // [bu0] -= mv1_hi; ; 164 : ; 165 : ; 166 : if (_SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(0, bu3, mv3_lo, &bu3), bu2, mv3_hi, &bu2), bu1, 0, &bu1), bu0, 0, &bu0) || ; 167 : _SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(0, bu2, mv2_lo, &bu2), bu1, mv2_hi, &bu1), bu0, 0, &bu0) || lea edx, DWORD PTR _bu0$10[ebp] push edx push 0 mov eax, DWORD PTR _bu0$10[ebp] push eax lea ecx, DWORD PTR _bu1$9[ebp] push ecx push 0 mov edx, DWORD PTR _bu1$9[ebp] push edx lea eax, DWORD PTR _bu2$8[ebp] push eax mov ecx, DWORD PTR _mv3_hi$2[ebp] push ecx mov edx, DWORD PTR _bu2$8[ebp] push edx lea eax, DWORD PTR _bu3$7[ebp] push eax mov ecx, DWORD PTR _mv3_lo$1[ebp] push ecx mov edx, DWORD PTR _bu3$7[ebp] push edx push 0 call __SUBTRUCT_UNIT_DIV add esp, 16 ; 00000010H movzx eax, al push eax call __SUBTRUCT_UNIT_DIV add esp, 16 ; 00000010H movzx ecx, al push ecx call __SUBTRUCT_UNIT_DIV add esp, 16 ; 00000010H movzx edx, al push edx call __SUBTRUCT_UNIT_DIV add esp, 16 ; 00000010H movsx eax, al test eax, eax jne $LN13@CalculateC lea ecx, DWORD PTR _bu0$10[ebp] push ecx push 0 mov edx, DWORD PTR _bu0$10[ebp] push edx lea eax, DWORD PTR _bu1$9[ebp] push eax mov ecx, DWORD PTR _mv2_hi$4[ebp] push ecx mov edx, DWORD PTR _bu1$9[ebp] push edx lea eax, DWORD PTR _bu2$8[ebp] push eax mov ecx, DWORD PTR _mv2_lo$3[ebp] push ecx mov edx, DWORD PTR _bu2$8[ebp] push edx push 0 call __SUBTRUCT_UNIT_DIV add esp, 16 ; 00000010H movzx eax, al push eax call __SUBTRUCT_UNIT_DIV add esp, 16 ; 00000010H movzx ecx, al push ecx call __SUBTRUCT_UNIT_DIV add esp, 16 ; 00000010H movsx edx, al test edx, edx jne SHORT $LN13@CalculateC lea eax, DWORD PTR _bu0$10[ebp] push eax mov ecx, DWORD PTR _mv1_hi$6[ebp] push ecx mov edx, DWORD PTR _bu0$10[ebp] push edx lea eax, DWORD PTR _bu1$9[ebp] push eax mov ecx, DWORD PTR _mv1_lo$5[ebp] push ecx mov edx, DWORD PTR _bu1$9[ebp] push edx push 0 call __SUBTRUCT_UNIT_DIV add esp, 16 ; 00000010H movzx eax, al push eax call __SUBTRUCT_UNIT_DIV add esp, 16 ; 00000010H movsx ecx, al test ecx, ecx je $LN12@CalculateC $LN13@CalculateC: ; 168 : _SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(0, bu1, mv1_lo, &bu1), bu0, mv1_hi, &bu0)) ; 169 : { ; 170 : if (sizeof(__UNIT_TYPE_DIV) <= 4) mov edx, 1 test edx, edx je SHORT $LN14@CalculateC ; 171 : env->log("found: u0=0x%08x, u1=0x%08x, u2=0x%08x, u3=0x%08x, v1=0x%08x, v2=0x%08x, v3=0x%08x\n", u0, u1, u2, u3, v1, v2, v3); mov esi, esp mov eax, DWORD PTR _v3$12[ebp] push eax mov ecx, DWORD PTR _v2$13[ebp] push ecx mov edx, DWORD PTR _v1$14[ebp] push edx mov eax, DWORD PTR _u3$[ebp] push eax mov ecx, DWORD PTR _u2$[ebp] push ecx mov edx, DWORD PTR _u1$[ebp] push edx mov eax, DWORD PTR _u0$[ebp] push eax push OFFSET $SG95833 mov ecx, DWORD PTR _env$[ebp] mov edx, DWORD PTR [ecx] call edx add esp, 32 ; 00000020H cmp esi, esp call __RTC_CheckEsp jmp SHORT $LN15@CalculateC $LN14@CalculateC: ; 172 : else ; 173 : env->log("found: u0=0x%016llx, u1=0x%016llx, u2=0x%016llx, u3=0x%016llx, v1=0x%016llx, v2=0x%016llx, v3=0x%016llx\n", u0, u1, u2, u3, v1, v2, v3); mov esi, esp mov eax, DWORD PTR _v3$12[ebp] push eax mov ecx, DWORD PTR _v2$13[ebp] push ecx mov edx, DWORD PTR _v1$14[ebp] push edx mov eax, DWORD PTR _u3$[ebp] push eax mov ecx, DWORD PTR _u2$[ebp] push ecx mov edx, DWORD PTR _u1$[ebp] push edx mov eax, DWORD PTR _u0$[ebp] push eax push OFFSET $SG95834 mov ecx, DWORD PTR _env$[ebp] mov edx, DWORD PTR [ecx] call edx add esp, 32 ; 00000020H cmp esi, esp call __RTC_CheckEsp $LN15@CalculateC: ; 174 : env->pause(); mov eax, DWORD PTR _env$[ebp] mov esi, esp mov ecx, DWORD PTR [eax+4] call ecx cmp esi, esp call __RTC_CheckEsp $LN12@CalculateC: ; 175 : } ; 176 : ; 177 : if (SUBTRUCT_3W_UNIT(&v_count_1, &v_count_2, &v_count_3, 1)) push 1 lea edx, DWORD PTR _v_count_3$15[ebp] push edx lea eax, DWORD PTR _v_count_2$16[ebp] push eax lea ecx, DWORD PTR _v_count_1$17[ebp] push ecx call _SUBTRUCT_3W_UNIT add esp, 16 ; 00000010H movsx edx, al test edx, edx je SHORT $LN16@CalculateC ; 178 : break; jmp SHORT $LN6@CalculateC $LN16@CalculateC: ; 179 : ADD_3W_UNIT(&v1, &v2, &v3, 1); push 1 lea eax, DWORD PTR _v3$12[ebp] push eax lea ecx, DWORD PTR _v2$13[ebp] push ecx lea edx, DWORD PTR _v1$14[ebp] push edx call _ADD_3W_UNIT add esp, 16 ; 00000010H ; 180 : } jmp $LN7@CalculateC $LN6@CalculateC: ; 181 : if (SUBTRUCT_4W_UNIT(&u_count_0, &u_count_1, &u_count_2, &u_count_3, 1)) push 1 lea eax, DWORD PTR _u_count_3$[ebp] push eax lea ecx, DWORD PTR _u_count_2$[ebp] push ecx lea edx, DWORD PTR _u_count_1$[ebp] push edx lea eax, DWORD PTR _u_count_0$[ebp] push eax call _SUBTRUCT_4W_UNIT add esp, 20 ; 00000014H movsx ecx, al test ecx, ecx je SHORT $LN17@CalculateC ; 182 : break; jmp SHORT $LN1@CalculateC $LN17@CalculateC: ; 183 : ADD_4W_UNIT(&u0, &u1, &u2, &u3, 1); push 1 lea edx, DWORD PTR _u3$[ebp] push edx lea eax, DWORD PTR _u2$[ebp] push eax lea ecx, DWORD PTR _u1$[ebp] push ecx lea edx, DWORD PTR _u0$[ebp] push edx call _ADD_4W_UNIT add esp, 20 ; 00000014H ; 184 : } jmp $LN4@CalculateC $LN1@CalculateC: ; 185 : ; 186 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN41@CalculateC call @_RTC_CheckStackVars@8 pop eax pop edx pop edi pop esi add esp, 296 ; 00000128H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 1 $LN41@CalculateC: DD 21 ; 00000015H DD $LN40@CalculateC $LN40@CalculateC: DD -36 ; ffffffdcH DD 4 DD $LN19@CalculateC DD -48 ; ffffffd0H DD 4 DD $LN20@CalculateC DD -60 ; ffffffc4H DD 4 DD $LN21@CalculateC DD -72 ; ffffffb8H DD 4 DD $LN22@CalculateC DD -84 ; ffffffacH DD 4 DD $LN23@CalculateC DD -96 ; ffffffa0H DD 4 DD $LN24@CalculateC DD -108 ; ffffff94H DD 4 DD $LN25@CalculateC DD -120 ; ffffff88H DD 4 DD $LN26@CalculateC DD -132 ; ffffff7cH DD 4 DD $LN27@CalculateC DD -144 ; ffffff70H DD 4 DD $LN28@CalculateC DD -156 ; ffffff64H DD 4 DD $LN29@CalculateC DD -168 ; ffffff58H DD 4 DD $LN30@CalculateC DD -180 ; ffffff4cH DD 4 DD $LN31@CalculateC DD -192 ; ffffff40H DD 4 DD $LN32@CalculateC DD -208 ; ffffff30H DD 4 DD $LN33@CalculateC DD -220 ; ffffff24H DD 4 DD $LN34@CalculateC DD -232 ; ffffff18H DD 4 DD $LN35@CalculateC DD -244 ; ffffff0cH DD 4 DD $LN36@CalculateC DD -256 ; ffffff00H DD 4 DD $LN37@CalculateC DD -272 ; fffffef0H DD 4 DD $LN38@CalculateC DD -288 ; fffffee0H DD 4 DD $LN39@CalculateC $LN39@CalculateC: DB 109 ; 0000006dH DB 118 ; 00000076H DB 51 ; 00000033H DB 95 ; 0000005fH DB 104 ; 00000068H DB 105 ; 00000069H DB 0 $LN38@CalculateC: DB 109 ; 0000006dH DB 118 ; 00000076H DB 50 ; 00000032H DB 95 ; 0000005fH DB 104 ; 00000068H DB 105 ; 00000069H DB 0 $LN37@CalculateC: DB 109 ; 0000006dH DB 118 ; 00000076H DB 49 ; 00000031H DB 95 ; 0000005fH DB 104 ; 00000068H DB 105 ; 00000069H DB 0 $LN36@CalculateC: DB 98 ; 00000062H DB 117 ; 00000075H DB 51 ; 00000033H DB 0 $LN35@CalculateC: DB 98 ; 00000062H DB 117 ; 00000075H DB 50 ; 00000032H DB 0 $LN34@CalculateC: DB 98 ; 00000062H DB 117 ; 00000075H DB 49 ; 00000031H DB 0 $LN33@CalculateC: DB 98 ; 00000062H DB 117 ; 00000075H DB 48 ; 00000030H DB 0 $LN32@CalculateC: DB 118 ; 00000076H DB 51 ; 00000033H DB 0 $LN31@CalculateC: DB 118 ; 00000076H DB 50 ; 00000032H DB 0 $LN30@CalculateC: DB 118 ; 00000076H DB 49 ; 00000031H DB 0 $LN29@CalculateC: DB 118 ; 00000076H DB 95 ; 0000005fH DB 99 ; 00000063H DB 111 ; 0000006fH DB 117 ; 00000075H DB 110 ; 0000006eH DB 116 ; 00000074H DB 95 ; 0000005fH DB 51 ; 00000033H DB 0 $LN28@CalculateC: DB 118 ; 00000076H DB 95 ; 0000005fH DB 99 ; 00000063H DB 111 ; 0000006fH DB 117 ; 00000075H DB 110 ; 0000006eH DB 116 ; 00000074H DB 95 ; 0000005fH DB 50 ; 00000032H DB 0 $LN27@CalculateC: DB 118 ; 00000076H DB 95 ; 0000005fH DB 99 ; 00000063H DB 111 ; 0000006fH DB 117 ; 00000075H DB 110 ; 0000006eH DB 116 ; 00000074H DB 95 ; 0000005fH DB 49 ; 00000031H DB 0 $LN26@CalculateC: DB 117 ; 00000075H DB 51 ; 00000033H DB 0 $LN25@CalculateC: DB 117 ; 00000075H DB 50 ; 00000032H DB 0 $LN24@CalculateC: DB 117 ; 00000075H DB 49 ; 00000031H DB 0 $LN23@CalculateC: DB 117 ; 00000075H DB 48 ; 00000030H DB 0 $LN22@CalculateC: DB 117 ; 00000075H DB 95 ; 0000005fH DB 99 ; 00000063H DB 111 ; 0000006fH DB 117 ; 00000075H DB 110 ; 0000006eH DB 116 ; 00000074H DB 95 ; 0000005fH DB 51 ; 00000033H DB 0 $LN21@CalculateC: DB 117 ; 00000075H DB 95 ; 0000005fH DB 99 ; 00000063H DB 111 ; 0000006fH DB 117 ; 00000075H DB 110 ; 0000006eH DB 116 ; 00000074H DB 95 ; 0000005fH DB 50 ; 00000032H DB 0 $LN20@CalculateC: DB 117 ; 00000075H DB 95 ; 0000005fH DB 99 ; 00000063H DB 111 ; 0000006fH DB 117 ; 00000075H DB 110 ; 0000006eH DB 116 ; 00000074H DB 95 ; 0000005fH DB 49 ; 00000031H DB 0 $LN19@CalculateC: DB 117 ; 00000075H DB 95 ; 0000005fH DB 99 ; 00000063H DB 111 ; 0000006fH DB 117 ; 00000075H DB 110 ; 0000006eH DB 116 ; 00000074H DB 95 ; 0000005fH DB 48 ; 00000030H DB 0 _CalculateCriticalDataOfDivision ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_internal.h _TEXT SEGMENT _value$ = 8 ; size = 4 _AddToMULTI64Counter PROC ; 1112 : { push ebp mov ebp, esp mov ecx, OFFSET __4522B509_pmc_internal@h call @__CheckForDebuggerJustMyCode@4 ; 1113 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI64, value); mov eax, DWORD PTR _value$[ebp] mov ecx, OFFSET _statistics_info lock xadd DWORD PTR [ecx], eax ; 1114 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _AddToMULTI64Counter ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_internal.h _TEXT SEGMENT _value$ = 8 ; size = 4 _AddToMULTI32Counter PROC ; 1106 : { push ebp mov ebp, esp mov ecx, OFFSET __4522B509_pmc_internal@h call @__CheckForDebuggerJustMyCode@4 ; 1107 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value); mov eax, DWORD PTR _value$[ebp] mov ecx, OFFSET _statistics_info+4 lock xadd DWORD PTR [ecx], eax ; 1108 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _AddToMULTI32Counter ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_internal.h _TEXT SEGMENT _IncrementDIV64Counter PROC ; 1077 : { push ebp mov ebp, esp mov ecx, OFFSET __4522B509_pmc_internal@h call @__CheckForDebuggerJustMyCode@4 ; 1078 : _InterlockedIncrement(&statistics_info.COUNT_DIV64); lock inc (null) PTR _statistics_info+8 ; 1079 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _IncrementDIV64Counter ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_internal.h _TEXT SEGMENT _IncrementDIV32Counter PROC ; 1071 : { push ebp mov ebp, esp mov ecx, OFFSET __4522B509_pmc_internal@h call @__CheckForDebuggerJustMyCode@4 ; 1072 : _InterlockedIncrement(&statistics_info.COUNT_DIV32); lock inc (null) PTR _statistics_info+12 ; 1073 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _IncrementDIV32Counter ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_internal.h _TEXT SEGMENT _t$1 = -8 ; size = 8 _u_high$ = 8 ; size = 4 _u_low$ = 12 ; size = 4 _v$ = 16 ; size = 4 _r$ = 20 ; size = 4 __DIVREM_UNIT PROC ; 670 : { push ebp mov ebp, esp sub esp, 8 mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __4522B509_pmc_internal@h call @__CheckForDebuggerJustMyCode@4 ; 671 : #ifdef _MSC_VER ; 672 : if (sizeof(__UNIT_TYPE_DIV) == sizeof(_UINT32_T)) mov eax, 1 test eax, eax je SHORT $LN2@DIVREM_UNI ; 673 : { ; 674 : // 64bit/32bitの除算を行う組み込み関数は実装されていない。 ; 675 : _UINT64_T t = _FROMWORDTODWORD(u_high, u_low); mov ecx, DWORD PTR _u_low$[ebp] push ecx mov edx, DWORD PTR _u_high$[ebp] push edx call __FROMWORDTODWORD add esp, 8 mov DWORD PTR _t$1[ebp], eax mov DWORD PTR _t$1[ebp+4], edx ; 676 : *r = (_UINT32_T)(t % v); mov eax, DWORD PTR _v$[ebp] xor ecx, ecx push ecx push eax mov edx, DWORD PTR _t$1[ebp+4] push edx mov eax, DWORD PTR _t$1[ebp] push eax call __aullrem mov ecx, DWORD PTR _r$[ebp] mov DWORD PTR [ecx], eax ; 677 : return ((_UINT32_T)(t / v)); mov edx, DWORD PTR _v$[ebp] xor eax, eax push eax push edx mov ecx, DWORD PTR _t$1[ebp+4] push ecx mov edx, DWORD PTR _t$1[ebp] push edx call __aulldiv jmp SHORT $LN1@DIVREM_UNI ; 678 : } jmp SHORT $LN1@DIVREM_UNI $LN2@DIVREM_UNI: ; 679 : else if (sizeof(__UNIT_TYPE_DIV) == sizeof(_UINT64_T)) xor eax, eax je SHORT $LN4@DIVREM_UNI ; 680 : { ; 681 : // 以下の理由のため、MSVCでは 128bit/64bit の除算を実装できない。運用で回避すること。 ; 682 : // ・(x64 に限らず) 除算の組み込み関数が用意されていない。 ; 683 : // ・128bit 整数のデータ型が用意されていない。 ; 684 : // ・x64 ではインラインアセンブラがサポートされていない。 ; 685 : *r = 0; mov ecx, DWORD PTR _r$[ebp] mov DWORD PTR [ecx], 0 ; 686 : return (0); xor eax, eax jmp SHORT $LN1@DIVREM_UNI ; 687 : } jmp SHORT $LN1@DIVREM_UNI $LN4@DIVREM_UNI: ; 688 : else ; 689 : { ; 690 : // 未知のプラットフォームの場合はとりあえず適当なものを返す。 ; 691 : *r = 0; mov edx, DWORD PTR _r$[ebp] mov DWORD PTR [edx], 0 ; 692 : return (0); xor eax, eax $LN1@DIVREM_UNI: ; 693 : } ; 694 : #elif defined(__GNUC__) ; 695 : __UNIT_TYPE q; ; 696 : if (sizeof(__UNIT_TYPE_DIV) == sizeof(_UINT32_T)) ; 697 : __asm__("divl %4": "=a"(q), "=d"(*r) : "0"(u_low), "1"(u_high), "rm"(v)); ; 698 : else if (sizeof(__UNIT_TYPE_DIV) == sizeof(_UINT64_T)) ; 699 : __asm__("divq %4": "=a"(q), "=d"(*r) : "0"(u_low), "1"(u_high), "rm"(v)); ; 700 : else ; 701 : { ; 702 : // 未知のプラットフォームの場合はとりあえず適当なものを返す。 ; 703 : *r = 0; ; 704 : q = 0; ; 705 : } ; 706 : return (q); ; 707 : #else ; 708 : #error unknown compiler ; 709 : #endif ; 710 : } add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 __DIVREM_UNIT ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_internal.h _TEXT SEGMENT _u$ = 8 ; size = 4 _v$ = 12 ; size = 4 _w_hi$ = 16 ; size = 4 __MULTIPLY_UNIT_DIV PROC ; 602 : { push ebp mov ebp, esp mov ecx, OFFSET __4522B509_pmc_internal@h call @__CheckForDebuggerJustMyCode@4 ; 603 : #ifdef _MSC_VER ; 604 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi)); mov eax, DWORD PTR _w_hi$[ebp] push eax mov eax, DWORD PTR _u$[ebp] mul DWORD PTR _v$[ebp] push edx push eax call __FROMDWORDTOWORD add esp, 12 ; 0000000cH ; 605 : #elif defined(__GNUC__) ; 606 : #ifdef _M_IX86 ; 607 : _UINT32_T w_lo; ; 608 : __asm__("mull %3": "=a"(w_lo), "=d"(*w_hi) : "0"(u), "rm"(v)); ; 609 : return (w_lo); ; 610 : #elif defined(_M_X64) ; 611 : return (_umul128(u, v, w_hi)); ; 612 : #else ; 613 : #error unknown platform ; 614 : #endif ; 615 : #else ; 616 : #error unknown compiler ; 617 : #endif ; 618 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 __MULTIPLY_UNIT_DIV ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_internal.h _TEXT SEGMENT _borrow$ = 8 ; size = 1 _u$ = 12 ; size = 4 _v$ = 16 ; size = 4 _w$ = 20 ; size = 4 __SUBTRUCT_UNIT_DIV PROC ; 566 : { push ebp mov ebp, esp push ebx mov ecx, OFFSET __4522B509_pmc_internal@h call @__CheckForDebuggerJustMyCode@4 ; 567 : #ifdef _MSC_VER ; 568 : return (_subborrow_u32(borrow, u, v, w)); mov eax, DWORD PTR _w$[ebp] mov ecx, DWORD PTR _v$[ebp] mov edx, DWORD PTR _u$[ebp] mov bl, BYTE PTR _borrow$[ebp] add bl, 255 ; 000000ffH sbb edx, ecx setb cl mov DWORD PTR [eax], edx mov al, cl ; 569 : #elif defined(__GNUC__) ; 570 : #ifdef _M_IX86 ; 571 : return (_subborrow_u32(borrow, u, v, w)); ; 572 : #elif defined(_M_X64) ; 573 : return (_subborrow_u64(borrow, u, v, w)); ; 574 : #else ; 575 : #error unknown platform ; 576 : #endif ; 577 : #else ; 578 : #error unknown compiler ; 579 : #endif ; 580 : } pop ebx cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 __SUBTRUCT_UNIT_DIV ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_internal.h _TEXT SEGMENT _carry$ = 8 ; size = 1 _u$ = 12 ; size = 4 _v$ = 16 ; size = 4 _w$ = 20 ; size = 4 __ADD_UNIT_DIV PROC ; 510 : { push ebp mov ebp, esp push ebx mov ecx, OFFSET __4522B509_pmc_internal@h call @__CheckForDebuggerJustMyCode@4 ; 511 : #ifdef _MSC_VER ; 512 : return (_addcarry_u32(carry, u, v, w)); mov eax, DWORD PTR _w$[ebp] mov ecx, DWORD PTR _v$[ebp] mov edx, DWORD PTR _u$[ebp] mov bl, BYTE PTR _carry$[ebp] add bl, 255 ; 000000ffH adc edx, ecx setb cl mov DWORD PTR [eax], edx mov al, cl ; 513 : #elif defined(__GNUC__) ; 514 : #ifdef _M_IX86 ; 515 : return (_addcarry_u32(carry, u, v, w)); ; 516 : #elif defined(_M_X64) ; 517 : return (_addcarry_u64(carry, u, v, w)); ; 518 : #else ; 519 : #error unknown platform ; 520 : #endif ; 521 : #else ; 522 : #error unknown compiler ; 523 : #endif ; 524 : } pop ebx cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 __ADD_UNIT_DIV ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_internal.h _TEXT SEGMENT _value$ = 8 ; size = 8 _result_high$ = 16 ; size = 4 __FROMDWORDTOWORD PROC ; 468 : { push ebp mov ebp, esp mov ecx, OFFSET __4522B509_pmc_internal@h call @__CheckForDebuggerJustMyCode@4 ; 469 : *result_high = (_UINT32_T)(value >> 32); mov eax, DWORD PTR _value$[ebp] mov edx, DWORD PTR _value$[ebp+4] mov cl, 32 ; 00000020H call __aullshr mov ecx, DWORD PTR _result_high$[ebp] mov DWORD PTR [ecx], eax ; 470 : return ((_UINT32_T)value); mov eax, DWORD PTR _value$[ebp] ; 471 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 __FROMDWORDTOWORD ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_internal.h _TEXT SEGMENT _value_high$ = 8 ; size = 4 _value_low$ = 12 ; size = 4 __FROMWORDTODWORD PROC ; 463 : { push ebp mov ebp, esp mov ecx, OFFSET __4522B509_pmc_internal@h call @__CheckForDebuggerJustMyCode@4 ; 464 : return (((_UINT64_T)value_high << 32) | value_low); xor edx, edx mov eax, DWORD PTR _value_high$[ebp] mov cl, 32 ; 00000020H call __allshl xor ecx, ecx or eax, DWORD PTR _value_low$[ebp] or edx, ecx ; 465 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 __FROMWORDTODWORD ENDP _TEXT ENDS END
22.199159
175
0.647225
bbc493af0b05c97ec7feef438ef5c664111fbf47
3,351
asm
Assembly
main.asm
yezz007/ProyekAkhir
9650c70b7ac7d7d8a877d583e61958db823d738d
[ "MIT" ]
null
null
null
main.asm
yezz007/ProyekAkhir
9650c70b7ac7d7d8a877d583e61958db823d738d
[ "MIT" ]
null
null
null
main.asm
yezz007/ProyekAkhir
9650c70b7ac7d7d8a877d583e61958db823d738d
[ "MIT" ]
null
null
null
;_________________from 0_init.asm_________________ .include "m64def.inc" APP_INIT: ldi lcd_temp, low(RAMEND) out SPL, lcd_temp ldi lcd_temp, high(RAMEND) out SPH, lcd_temp rcall LCD_INIT_ALL QUIT: rjmp QUIT ;_________________from lcd_module.asm_________________ .def lcd_temp = r16 .def LCD_SETTINGS = r17 .def LCD = r18 .equ LCD_A = 0 .equ LCD_B = 1 .equ LCD_C = 2 .equ LCD_D = 3 .equ LCD_E = 4 .equ LINE1 = 0b10000000 //First char on line 1 .equ LINE2 = 0b11000000 //First char on line 2 .equ LINE3 = 0b10010100 //First char on line 3 .equ LINE4 = 0b11010100 //First char on line 4 LCD_INIT_ALL: ldi LCD, LCD_A rcall INIT_LCD rcall CLEAR_LCD ldi LCD, LCD_B rcall INIT_LCD rcall CLEAR_LCD ldi LCD, LCD_C rcall INIT_LCD rcall CLEAR_LCD ldi LCD, LCD_D rcall INIT_LCD rcall CLEAR_LCD ldi LCD, LCD_E rcall INIT_LCD rcall CLEAR_LCD ldi lcd_temp, 0xFF out DDRA, lcd_temp out DDRB, lcd_temp rcall WRITE_CACAD_TO_LCD_A rcall WRITE_KONYOL_TO_LCD_B rcall WRITE_KEREN_TO_LCD_C rcall WRITE_GAUL_TO_LCD_D rcall WRITE_AMPAS_TO_LCD_E rjmp LCD_INIT_ALL_END WRITE_CACAD_TO_LCD_A: ldi LCD, LCD_A ldi ZH, high(TEXT_CACAD*2) ldi ZL, low(TEXT_CACAD*2) rcall LOAD_BYTES ret WRITE_KONYOL_TO_LCD_B: ldi LCD, LCD_B ldi ZH, high(TEXT_KONYOL*2) ldi ZL, low(TEXT_KONYOL*2) rcall LOAD_BYTES ret WRITE_KEREN_TO_LCD_C: ldi LCD, LCD_C ldi ZH, high(TEXT_KEREN*2) ldi ZL, low(TEXT_KEREN*2) rcall LOAD_BYTES ret WRITE_GAUL_TO_LCD_D: ldi LCD, LCD_D ldi ZH, high(TEXT_GAUL*2) ldi ZL, low(TEXT_GAUL*2) rcall LOAD_BYTES ret WRITE_AMPAS_TO_LCD_E: ldi LCD, LCD_E ldi ZH, high(TEXT_AMPAS*2) ldi ZL, low(TEXT_AMPAS*2) rcall LOAD_BYTES ret LOAD_BYTES: lpm tst r0 breq WRITE_END mov LCD_SETTINGS, r0 rcall TEXT_LCD adiw ZL, 1 rjmp LOAD_BYTES WRITE_END: ret LCD_INIT_ALL_END: ret INIT_LCD: cbi PORTA, 1 ;add instruction ldi LCD_SETTINGS, 0b00111000 ; 8 bit 2 line 5x11 rcall WRITE_LCD ldi LCD_SETTINGS, 0b00001111 ; Display ON, curson ON, blink ON rcall WRITE_LCD ldi LCD_SETTINGS, 0b00000110 ; increment cursor, disable shift rcall WRITE_LCD ret WRITE_LCD: ldi lcd_temp, LCD_A cp LCD, lcd_temp breq WRITE_LCD_A ldi lcd_temp, LCD_B cp LCD, lcd_temp breq WRITE_LCD_B ldi lcd_temp, LCD_C cp LCD, lcd_temp breq WRITE_LCD_C ldi lcd_temp, LCD_D cp LCD, lcd_temp breq WRITE_LCD_D ldi lcd_temp, LCD_E cp LCD, lcd_temp breq WRITE_LCD_E ret WRITE_LCD_A: ;take data from LCD_SETTINGS out PORTB, LCD_SETTINGS sbi PORTA, 0 ; enable 1 cbi PORTA, 0 ; enable 0 ret WRITE_LCD_B: ;take data from LCD_SETTINGS out PORTB, LCD_SETTINGS sbi PORTA, 3 ; enable 1 cbi PORTA, 3 ; enable 0 ret WRITE_LCD_C: ;take data from LCD_SETTINGS out PORTB, LCD_SETTINGS sbi PORTA, 4 ; enable 1 cbi PORTA, 4 ; enable 0 ret WRITE_LCD_D: ;take data from LCD_SETTINGS out PORTB, LCD_SETTINGS sbi PORTA, 5 ; enable 1 cbi PORTA, 5 ; enable 0 ret WRITE_LCD_E: ;take data from LCD_SETTINGS out PORTB, LCD_SETTINGS sbi PORTA, 6 ; enable 1 cbi PORTA, 6 ; enable 0 ret TEXT_LCD: ;take char from LCD_SETTINGS sbi PORTA, 1 ;add data rcall WRITE_LCD cbi PORTA, 1 ;by default, add instruction not data ret CLEAR_LCD: cbi PORTA, 1 ldi LCD_SETTINGS, 0x01 rcall WRITE_LCD ret ;----------------- TEXT_CACAD: .db "cacadBgt" .db 0 TEXT_KONYOL: .db "konyolBgt" .db 0 TEXT_KEREN: .db "kerenBgt" .db 0 TEXT_GAUL: .db "gaulBgt" .db 0 TEXT_AMPAS: .db "ampasBgt" .db 0 TEXT_OP: .db "overpowered" .db 0
15.586047
62
0.769919
09c3553ecd964314b831dc63081f8e460b530e9f
7,676
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1678.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.log_21829_1678.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.log_21829_1678.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r15 push %r8 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x2292, %rsi lea addresses_normal_ht+0x14292, %rdi nop nop cmp $48224, %rdx mov $1, %rcx rep movsb nop nop nop nop and $44009, %r9 lea addresses_D_ht+0x8c9e, %rsi lea addresses_UC_ht+0x1ea92, %rdi nop and $12267, %rdx mov $74, %rcx rep movsl nop nop nop nop cmp $4218, %r9 lea addresses_A_ht+0x10212, %r15 dec %r8 movups (%r15), %xmm6 vpextrq $0, %xmm6, %rcx inc %rdi lea addresses_D_ht+0x1e92, %rcx nop nop nop nop cmp $6301, %rdi movb $0x61, (%rcx) nop nop xor $42828, %rdi lea addresses_D_ht+0x4892, %r15 clflush (%r15) nop nop nop nop nop and $11020, %rcx mov $0x6162636465666768, %rdx movq %rdx, %xmm5 vmovups %ymm5, (%r15) xor %rcx, %rcx lea addresses_WC_ht+0x15692, %r9 cmp %rdi, %rdi mov (%r9), %edx nop nop nop inc %rdx lea addresses_D_ht+0x728b, %rsi nop nop nop nop cmp %rdx, %rdx mov (%rsi), %r15w and $30930, %r8 lea addresses_WC_ht+0xe4ca, %rcx nop nop sub %rdx, %rdx movb (%rcx), %r15b nop nop sub %rdx, %rdx lea addresses_A_ht+0xf052, %r8 nop add %rsi, %rsi movw $0x6162, (%r8) sub %r15, %r15 lea addresses_WC_ht+0x13292, %rsi lea addresses_WC_ht+0xcc92, %rdi nop nop add %rax, %rax mov $45, %rcx rep movsl nop nop nop cmp $51028, %r9 lea addresses_WT_ht+0xa292, %rdi nop nop xor %r9, %r9 mov (%rdi), %rcx and $64748, %rax lea addresses_UC_ht+0x12492, %rcx nop sub $43075, %rdi mov (%rcx), %esi nop nop sub %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r8 pop %r15 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r14 push %r9 push %rbp push %rdi // Store mov $0x892, %rbp nop cmp $34150, %r13 mov $0x5152535455565758, %r9 movq %r9, (%rbp) inc %r13 // Load lea addresses_WT+0xa712, %r14 nop nop nop nop sub $21156, %rdi mov (%r14), %r11d nop add %r11, %r11 // Load lea addresses_UC+0x10dfa, %r10 sub %r14, %r14 movb (%r10), %r11b nop dec %r10 // Load lea addresses_WC+0x1256c, %rdi nop nop cmp %r11, %r11 mov (%rdi), %r13w nop nop cmp %r10, %r10 // Faulty Load lea addresses_D+0x1a92, %r9 clflush (%r9) nop inc %rbp mov (%r9), %r14d lea oracles, %r11 and $0xff, %r14 shlq $12, %r14 mov (%r11,%r14,1), %r14 pop %rdi pop %rbp pop %r9 pop %r14 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_D', 'same': True, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 6}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 1}} {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_D', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 11}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 11}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 10}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 10}} {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_D_ht', 'same': True, 'AVXalign': False, 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 2}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 4}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 9}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'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 */
35.869159
2,999
0.648906
3a0f893c829e1b8ae9f4f2b43d43e4b9ee571be2
585
asm
Assembly
iod/pipe/init.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
iod/pipe/init.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
iod/pipe/init.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; Prototpe PIPE driver section pipe xdef pipe_init xref.l pipe_vers xref iou_idset xref iou_idlk include 'dev8_keys_iod' include 'dev8_iod_pipe_data' include 'dev8_mac_vec' ;+++ ; PIPE initialisation ;--- pipe_init lea pip_link,a3 jsr iou_idset ; setup pipe linkage move.l #pil.defl,pil_defl(a3) jmp iou_idlk ; and link in pip_link dc.l pil_end+iod.sqhd dc.l 1<<iod..ssr+1<<iod..sdl+1<<iod..scn serial, delete and name novec ; no servers novec novec vec pipe_io ; but a full set of opens vec pipe_open vec pipe_close vec pipe_cnam ; name end
14.625
65
0.716239
1bde9c8f74339e0325237f3a5fe305fda36816a0
6,621
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_1631.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_1631.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_1631.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 %r13 push %r14 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0xac3f, %rdx nop nop add %r10, %r10 mov (%rdx), %r13 xor %rdi, %rdi lea addresses_WC_ht+0x145f, %rdi nop nop nop nop nop xor $31085, %r14 mov $0x6162636465666768, %rbp movq %rbp, %xmm2 movups %xmm2, (%rdi) nop nop nop nop cmp $7134, %rdx lea addresses_WT_ht+0x18257, %r10 nop nop nop nop nop dec %r11 movups (%r10), %xmm2 vpextrq $1, %xmm2, %rdi nop nop nop nop nop add %r14, %r14 lea addresses_A_ht+0xc02f, %rsi lea addresses_A_ht+0x1663f, %rdi nop nop nop nop and $59696, %rbp mov $97, %rcx rep movsl sub %rsi, %rsi lea addresses_normal_ht+0x143f, %r13 sub $8709, %rbp mov $0x6162636465666768, %r11 movq %r11, %xmm6 vmovups %ymm6, (%r13) nop nop nop add %r10, %r10 lea addresses_D_ht+0xe9ff, %rsi nop nop nop nop cmp $58064, %r10 mov (%rsi), %ecx sub $26620, %r11 lea addresses_UC_ht+0xb83f, %r10 nop nop nop nop and $34910, %rbp movw $0x6162, (%r10) sub %rbp, %rbp pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r14 pop %r13 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r13 push %rbp push %rbx push %rdi // Store lea addresses_A+0x1bc3f, %rbp nop xor $19101, %r13 mov $0x5152535455565758, %rbx movq %rbx, %xmm2 vmovups %ymm2, (%rbp) nop sub $54563, %r12 // Store lea addresses_normal+0x15f3f, %r11 clflush (%r11) nop nop nop nop nop sub %rdi, %rdi mov $0x5152535455565758, %rbx movq %rbx, (%r11) nop nop nop sub $59463, %r10 // Load lea addresses_normal+0xf13f, %rdi nop nop nop xor %r11, %r11 vmovups (%rdi), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %r10 nop nop nop nop add %rdi, %rdi // Faulty Load lea addresses_UC+0x143f, %r11 nop nop nop nop nop xor $49929, %rbx vmovups (%r11), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $0, %xmm0, %rdi lea oracles, %rbp and $0xff, %rdi shlq $12, %rdi mov (%rbp,%rdi,1), %rdi pop %rdi pop %rbx pop %rbp pop %r13 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'37': 21829} 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 */
35.031746
2,999
0.657756
60be95dfdecfa6bc662e87c721c95fc2e51d0a39
443
asm
Assembly
programs/oeis/037/A037634.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/037/A037634.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/037/A037634.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A037634: Base 6 digits are, in order, the first n terms of the periodic sequence with initial period 2,1,3. ; 2,13,81,488,2929,17577,105464,632785,3796713,22780280,136681681,820090089,4920540536,29523243217,177139459305,1062836755832,6377020534993,38262123209961,229572739259768,1377436435558609 cal $0,33142 ; Base-6 digits are, in order, the first n terms of the periodic sequence with initial period 1,0,0. mul $0,54 div $0,24 mov $1,$0
55.375
187
0.792325
2c81ce6507677af0794ad59dcdc223dead8f02eb
21,697
asm
Assembly
Library/Impex/UI/uiFormatListLow.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Impex/UI/uiFormatListLow.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Impex/UI/uiFormatListLow.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: Impex/UI FILE: uiFormatListLow.asm ROUTINES: Name Description ---- ----------- FormatEnum Find all formats that we could translate LocateLibraries Locate translation libraries with given token ImpexCheckLibraryType Called during FileEnum, checks type of xlat lib ProcessLibrary Finds all formats from a single library AlphaSort Callback for ChunkArraySort OpenLibrary Opens a translation library as a file LoadExtendedInfo Finds the format/info resource in the library REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 3/91 initial version don 11/91 Added comments, cleaned up code, etc. don 5/92 Removed LocateResource, cleaned up code, changed name of file. DESCRIPTION: $Id: uiFormatListLow.asm,v 1.1 97/04/04 23:09:21 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FormatListCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FormatEnum %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Locate all extended libraries with a given token and return a block of format and library descriptors giving all formats supported by the libraries. CALLED BY: FormatListSpecBuild Pass: ds = if called internally from within Impex library, the segment of the block containing FormatList object, so it can report errors that way. When calling this routine from outside the Impex lib, pass NULL_SEGMENT in ds. dx = mask IFA_IMPORT_CAPABLE - or - = mask IFA_EXPORT_CAPABLE bx = ImpexDataClasses Return: bx = FormatInfo block handle cx = # of formats available carry = clear - or - cx = ImpexError carry = Set DESTROYED: AX, DX, DI, BP PSEUDO CODE/STRATEGY: Find all translation libraries in the impex directory KNOWN BUGS/SIDE EFFECTS/IDEAS: * We're going to ignore all memory errors The check for errors processing libs NEEDS more work since it turns out that if there is more than one error, only the first error dialog box will be put up and rest will be thrown out. REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 3/91 Initial version jenny 12/91 Cleaned up, added check for errors %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FormatEnum proc far uses si, es .enter ; Allocate and initialize a block to hold all the info. ; push ds ; save FormatList segment - needs to ; be on stack so the error reporting ; function will work properly mov bp, bx ; bp <- data classes mov ax, LMEM_TYPE_GENERAL mov cx, size FormatInfo call MemAllocLMem ; FormatInfo block => BX call MemLock ; lock the sucker down mov ds, ax ; FormatInfo => DS ; Allocate and store the array for format descriptors ; mov bx, size lptr clr cx, si call ChunkArrayCreate mov ds:[FI_formats], si ; Allocate and store the array for library descriptors ; mov si, cx call ChunkArrayCreate mov ds:[FI_libraries], si mov si, bp ; si <- data classes app. supports ; Now locate all the libraries with the right token ; call ImpexChangeToImpexDir call LocateLibraries ; bx <- buffer holding library names jcxz done ; if none found, we're done ; Now process each of the libraries found ; call MemLock mov es, ax mov si, dx ; si <- ImpexFormatInfo clr dx ; es:dx <- start of libraries processLoop: call ProcessLibrary jc libraryError continue: add dx, IMPEX_NAME_SIZE loop processLoop call MemFree ; free names block ; Sort the array of formats alphabetically ; mov cx, SEGMENT_CS mov dx, offset AlphaSort mov si, ds:[FI_formats] call ChunkArraySort ; Figure the number of formats actually found. ; mov si, ds:[FI_formats] call ChunkArrayGetCount ; cx <- number of formats ; Unlock the data block and return it. done: mov bx, ds:[LMBH_handle] call MemUnlock call FilePopDir pop ds ; restore FormatList segment .leave ret ; We encountered an error with a library, so notify the user ; Pass: ; AX = ImpexError ; DS = FormatInfo block ; top of stack = segment passed in to this routine ; Destroy: ; AX, BP only! libraryError: pop bp push bp cmp bp, NULL_SEGMENT ; if not called by Impex library, je continue ; then don't display the error mov bp, ax ; ImpexError => BP mov ax, ds ; save current ds pop ds ; ds <- FormatList segment push ds push cx mov cx, es ; library name => CX:DX call FormatListShowError ; display error to user pop cx mov ds, ax ; restore ds jmp continue FormatEnum endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LocateLibraries %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Locate up to IMPEX_LIBRARIES_PER_ENUM libraries with the given token. CALLED BY: FormatEnum PASS: SI = ImpexDataClasses RETURN: BX = Buffer holding library names (= 0 if none found) CX = Number of libraries found DESTROYED: AX, DI, SI, BP PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 3/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ impexCBAttrs FileExtAttrDesc \ <FEA_TOKEN>, <FEA_END_OF_LIST> LocateLibraries proc near uses dx .enter if FULL_EXECUTE_IN_PLACE push ds xchg si, di ;di = ImpexDataClasses segmov ds, cs, cx mov si, offset impexCBAttrs mov cx, (length impexCBAttrs) * (size FileExtAttrDesc) call SysCopyToStackDSSI ;dssi = impexCBAttrs on stack xchg si, di ;dsdi = impexCBAttrs on stack ;si = ImpexDataClasses endif mov_tr ax, bp ; save bp in ax sub sp, size FileEnumParams mov bp, sp ; Search for GEOS executables only. ; Search by token, ignoring the manufacturer's ID. ; mov ss:[bp].FEP_searchFlags, mask FESF_GEOS_EXECS or \ mask FESF_CALLBACK ; All matching will be done by the callback. ; clr ax mov ss:[bp].FEP_matchAttrs.segment, ax ; Let the callback match only the characters from the passed token. ; mov ss:[bp].FEP_cbData1.low, si ; data classes app supports mov cx, SEGMENT_CS mov ss:[bp].FEP_callback.high, cx mov ss:[bp].FEP_callback.low, offset ImpexCheckLibraryType if FULL_EXECUTE_IN_PLACE mov ss:[bp].FEP_callbackAttrs.segment, ds mov ss:[bp].FEP_callbackAttrs.offset, di else mov ss:[bp].FEP_callbackAttrs.segment, cs mov ss:[bp].FEP_callbackAttrs.offset, offset impexCBAttrs endif clr ss:[bp].FEP_skipCount ; Return only the file names. ; mov ss:[bp].FEP_bufSize, FE_BUFSIZE_UNLIMITED mov ss:[bp].FEP_returnSize, size ImpexFileName mov ss:[bp].FEP_returnAttrs.segment, ax mov ss:[bp].FEP_returnAttrs.offset, FESRT_NAME ; Seek and maybe ye shall find. ; mov_tr bp, ax ; restore bp for callback routine ;) call FileEnum ; bx <- handle of buffer if FULL_EXECUTE_IN_PLACE pop ds call SysRemoveFromStack endif .leave ret LocateLibraries endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImpexCheckLibraryType %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Looks at the token for each file, and sees if it matches the type of translation library we are searching for CALLED BY: LocateLibraries (via FileEnum) PASS: DS = Segment of FileEnumCallbackData RETURN: Carry = Clear - accept the file = Set - reject the file DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 3/91 Initial version don 11/91 Re-written to save space/time %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ tokenTable TokenTableStruct \ < \ mask IDC_TEXT, \ XLAT_TOKEN_TEXT_12, \ XLAT_TOKEN_TEXT_34>, \ < \ mask IDC_GRAPHICS, \ XLAT_TOKEN_GRAPHICS_12, \ XLAT_TOKEN_GRAPHICS_34>, \ < \ mask IDC_SPREADSHEET, \ XLAT_TOKEN_SPREADSHEET_12, \ XLAT_TOKEN_SPREADSHEET_34>, \ < \ mask IDC_FONT, \ XLAT_TOKEN_FONT_12, \ XLAT_TOKEN_FONT_34> \ ImpexCheckLibraryType proc far params:FileEnumParams uses ax, bx, cx, di .enter inherit far ; Enter into a loop, comparing tokens ; mov ax, FEA_TOKEN call FileEnumLocateAttr ; es:di <- attrs for token jc done ; if error, reject file les di, es:[di].FEAD_value ; es:di <- &token clr bx mov cx, NUMBER_IMPEX_DATA_CLASSES mov dx, ss:[params].FEP_cbData1.low tokenLoop: test dx, cs:[tokenTable][bx].TTS_type jz next mov ax, {word} es:[di].GT_chars+0 cmp ax, cs:[tokenTable][bx].TTS_tokenWord1 jne next mov ax, {word} es:[di].GT_chars+2 cmp ax, cs:[tokenTable][bx].TTS_tokenWord2 je done ; we're done (carry clear) next: add bx, size TokenTableStruct loop tokenLoop ; try next token type stc ; set carry (we fail) done: .leave ret ImpexCheckLibraryType endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ProcessLibrary %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Process a single extended library, locating all formats it supports, etc. CALLED BY: FormatEnum PASS: ES:DX = Translation Library file name DS = FormatInfo segment SI = mask IFA_IMPORT_CAPABLE - or - = mask IFA_EXPORT_CAPABLE RETURN: DS = FormatInfo segment (may have moved) Carry = Clear - or - AX = ImpexError Carry = Set DESTROYED: Nothing PSEUDO CODE/STRATEGY: get data from library about what formats is supports and put data into chunk array for later use KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 3/91 Initial version jenny 12/91 Handle error msgs from LoadExtendedInfo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ProcessLibrary proc near formatInfo local ImpexFormatInfo \ push si dataSegment local sptr.FormatInfo libraryChunk local word ; chunk handle of new library descriptor libraryClass local ImpexDataClasses uses bx, cx, dx, di, si, es .enter ; Try to open the library, and obtain the format information ; call OpenLibrary jc done push bx ; save the file handle mov ss:[libraryChunk], ax mov ss:[dataSegment], ds ; record possibly-moved data block seg call LoadExtendedInfo ; data => BX, CX, DX, DS, ES jc closeFile mov ss:[libraryClass], dx ; Set up to loop through formats listed by this library ; mov ax, ss:[formatInfo] ; Import/Export flag => AX mov si, offset TLMBH_stringHandleTable clr dx ; dx = enumerated type value formatLoop: test ds:[si].IFGI_formatInfo, ax jz skipFormat ; if not capable, don't add format call AllocFormatDescriptor ; allocate & initialize descriptor inc dx ; go to next enumeration skipFormat: add si, size ImpexFormatGeodeInfo loop formatLoop ; loop until done call MemFree ; free the format strings block clc ; Close the translation library, preserving AX & carry state closeFile: pop bx ; bx <- file handle push ax ; save error message pushf ; preserve carry flag clr al ; pretend we'll handle any errors call FileClose ; close the library (ignore errors) popf ; restore carry flag pop ax ; restore error message mov ds, ss:[dataSegment] done: .leave ret ProcessLibrary endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AllocFormatDescriptor %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Allocate & initialize an ImpexFormatDescriptor CALLED BY: ProcessLibrary PASS: DS:SI = ImpexFormatGeodeInfo ES:SI = ImpexFormatGeodeInfo DX = Format # RETURN: Nothing DESTROYED: DI, ES PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 6/ 8/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AllocFormatDescriptor proc near uses ax, cx, si, es .enter inherit ProcessLibrary ; Find length of the format string ; push dx ; save the format # mov di, ds:[si].IFGI_headerString mov di, ds:[di] ; dereference the chunk handle push si push di ; save start of format string ChunkSizePtr ds,di,cx ; figure length of format string push cx ; save length of format string for copy ; Allocate a format descriptor and tack it onto the end of ; the formats array. ; mov ds, ss:[dataSegment] add cx, size ImpexFormatDescriptor call LMemAlloc mov si, ds:[FI_formats] call ChunkArrayAppend ; ds:di <- new element of array mov ds:[di], ax ; Initialize the format descriptor. ; xchg di, ax mov di, ds:[di] ; ds:di <- format descriptor mov ax, ss:[libraryChunk] mov ds:[di].IFD_library, ax mov ax, ss:[libraryClass] mov ds:[di].IFD_dataClass, ax pop cx ; cx <- format name length (with null) DBCS < shr cx, 1 ; cx <- format name length w/NULL > pop si ; si <- start of format name mov ds:[di].IFD_formatNameLen, cx ; Copy the format name into the descriptor. ; push di mov ss:[dataSegment], ds segxchg es, ds ; ds <- info block, es <- data block add di, offset IFD_formatName LocalCopyNString ; rep movsb/movsw pop di ; Now store the default file specification ; pop si ; si <- string table pointer push di push si mov si, ds:[si].IFGI_fileSpecString mov si, ds:[si] ; dereference the string chunk add di, offset IFD_defaultFileMask mov cx, IMPEX_FILE_MASK_STRING_LENGTH LocalCopyNString ; rep movsb/movsw pop si ; Now we get the handles (not really handles until after relocation) ; and stuff them away for safe-keeping. They are actually only used ; as binary values, as the relocated values are fetched from ; memory directly later. ; pop di mov ax, ds:[si].IFGI_importUI.handle mov es:[di].IFD_importUIFlag, ax mov ax, ds:[si].IFGI_exportUI.handle mov es:[di].IFD_exportUIFlag, ax pop dx mov es:[di].IFD_formatNumber, dx .leave ret AllocFormatDescriptor endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OpenLibrary %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Open the library and add it to the array of known translation libraries. CALLED BY: ProcessLibrary PASS: ES:DX = Translation library filename DS = FormatInfo block RETURN: DS = FormatInfo block (may have moved) BX = Translation library *file* handle AX = Chunk handle of ImpexLibraryDescriptor Carry = Clear - or - AX = ImpexError Carry = Set DESTROYED: cx, dx, es, di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 3/91 Initial version don 11/91 Cleaned up code, commenting %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OpenLibrary proc near uses si .enter ; First try and open the sucker. ; push ds ; save FormatInfo block segmov ds, es ; ds:dx <- filename mov al, FileAccessFlags <FE_DENY_WRITE, FA_READ_ONLY> call FileOpen pop ds ; ds <- FormatInfo block mov_tr bx, ax ; bx <- file handle mov ax, IE_COULD_NOT_OPEN_XLIB jc done ; Have it open, so create a ImpexLibraryDescriptor for it. ; mov cx, size ImpexLibraryDescriptor call LMemAlloc ; ax <- chunk handle of descriptor mov di, ax ; di <- ditto segxchg es, ds mov si, dx ; ds:si <- filename of library mov di, es:[di] CheckHack <(offset ILD_fileName) eq 0> mov cx, IMPEX_NAME_SIZE rep movsb ; Add it to the libraries array.... ; segmov ds, es mov si, ds:[FI_libraries] call ChunkArrayAppend ; ds:di <- new element mov ds:[di],ax clc ; return success done: .leave ret OpenLibrary endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LoadExtendedInfo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Load the TranslationLibraryHeader block for the library, CALLED BY: ProcessLibrary PASS: BX = Translation library *file* handle RETURN: DS,ES = Format strings segment BX = Format strings block handle CX = Number of formats DX = ImpexDataClasses for library Carry = Clear - or - AX = ImpexError Carry = Set DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 3/91 Initial version don 11/91 Cleaned up code, no longer closes file on error jenny 12/91 Check that library valid & memory allocated %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ LoadExtendedInfo proc near libraryTab local fptr libraryHeader local TranslationLibraryHeader .enter ; Find the TranslationLibraryHeader and read in the resource ID ; of the format strings resource table ; clr cx mov dx, offset GFH_coreBlock.GH_libEntryOff mov al, FILE_POS_START call FilePos segmov ds, ss lea dx, ss:[libraryTab] mov cx, size libraryTab clr al call FileRead jc readError ; if error, abort mov dx, ss:[libraryTab].offset mov cx, ss:[libraryTab].segment call GeodeFindResource ; Once we get the base position of the resource ; we must add the offset of the libraryEntryPoint ; and then subtract the size of the Header structure ; to get to the info we want. ; add dx, ss:[libraryTab].offset sub dx, size TranslationLibraryHeader mov al, FILE_POS_START call FilePos jc readError ; if error, abort lea dx, ss:[libraryHeader] mov cx, size TranslationLibraryHeader clr al call FileRead readError: mov ax, IE_ERROR_READING_XLIB ; error in reading the library jc exit ; Make sure this is really a TranslationLibraryHeader ; mov ax, TLH_VALID cmp {word}ss:[libraryHeader].TLH_validHeaderMarker, ax jne errorInvalidLibrary cmp {word}ss:[libraryHeader].TLH_validHeaderMarker2, ax jne errorInvalidLibrary ; Get the strings resource from the driver, patching it if ; necessary. mov cx, ss:[libraryHeader].TLH_stringsResource clr dx call GeodeSnatchResource jc readError ; Error. ; Set return data. mov ds, ax ; Strings address. mov es, ax ; Strings address. mov cx, ss:[libraryHeader].TLH_numberOfFormats mov dx, ss:[libraryHeader].TLH_dataClass exit: .leave ret errorInvalidLibrary: mov ax, IE_ERROR_INVALID_XLIB stc jmp exit LoadExtendedInfo endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AlphaSort %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Callback function for sorting the formats (case-insensitive alphabetic sort) CALLED BY: FormatEnum via ChunkArraySort PASS: ds:si = element #1 es:di = element #2 RETURN: flags set so jl, je, jg take as element #1 is less-than, equal-to or greater-than element #2 DESTROYED: si, di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 3/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AlphaSort proc far uses ax, cx, dx .enter ; Some set-up work ; mov si, ds:[si] ; si <- handle of elt #1 mov si, ds:[si] ; si <- offset of elt #1 mov di, ds:[di] ; di <- handle of elt #2 mov di, ds:[di] ; di <- offset of elt #2 ChunkSizePtr ds, si, cx ChunkSizePtr ds, di, ax add si, offset IFD_formatName add di, offset IFD_formatName ; Set CX to the smaller of the two lengths so we get a reasonable ; result. ; cmp cx, ax jle doCompare xchg cx, ax doCompare: sub cx, offset IFD_formatName ; subtract size of other data DBCS < shr cx, 1 ; cx <- length of strings > call LocalCmpStringsNoCase ; compare them strings .leave ret AlphaSort endp FormatListCode ends
27.429836
81
0.598792
3a5adaceee07b56d549333c12b5a15bd1baed1f9
5,487
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_1456_488.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_1456_488.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_1456_488.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r15 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x1b80c, %rax nop nop nop sub %r11, %r11 mov (%rax), %r12 nop sub %r11, %r11 lea addresses_WT_ht+0x1294c, %rsi lea addresses_A_ht+0xa0c, %rdi nop nop nop nop cmp %r15, %r15 mov $97, %rcx rep movsl and %rax, %rax lea addresses_UC_ht+0x420c, %r11 nop nop nop nop cmp %r12, %r12 mov (%r11), %cx nop nop nop nop cmp $62331, %rax lea addresses_A_ht+0x380c, %rsi lea addresses_WT_ht+0xef4c, %rdi nop nop nop nop dec %rbx mov $67, %rcx rep movsl nop nop nop nop nop sub $33810, %rdi lea addresses_A_ht+0x1db0c, %r15 nop nop nop nop nop sub %r11, %r11 mov $0x6162636465666768, %r12 movq %r12, %xmm2 vmovups %ymm2, (%r15) nop nop inc %rcx pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r15 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r14 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi // REPMOV lea addresses_normal+0xa00c, %rsi lea addresses_WT+0xaa85, %rdi sub %rbx, %rbx mov $55, %rcx rep movsl nop nop nop nop nop and $40750, %rdi // Faulty Load lea addresses_UC+0x1280c, %rbx nop nop nop nop and %rbp, %rbp mov (%rbx), %ecx lea oracles, %r14 and $0xff, %rcx shlq $12, %rcx mov (%r14,%rcx,1), %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} {'OP': 'REPM', 'src': {'type': 'addresses_normal', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WT', 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'37': 1456} 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 */
39.47482
2,999
0.660652
a52efcc08ce353580e9bfe7627bd2dee94ca8cf5
243
asm
Assembly
kernel/arch/i386/cpu/gdt/gdt_load.asm
qookei/quack
47808580dda218cb47d0c9ca04b51eb24f1e2266
[ "Zlib" ]
16
2019-06-25T15:18:03.000Z
2021-10-10T18:52:30.000Z
kernel/arch/i386/cpu/gdt/gdt_load.asm
qookei/quack
47808580dda218cb47d0c9ca04b51eb24f1e2266
[ "Zlib" ]
null
null
null
kernel/arch/i386/cpu/gdt/gdt_load.asm
qookei/quack
47808580dda218cb47d0c9ca04b51eb24f1e2266
[ "Zlib" ]
null
null
null
bits 32 global gdt_load gdtr: dw 0 dd 0 gdt_load: mov [gdtr + 2], ecx mov [gdtr], dx lgdt [gdtr] jmp 0x08:.reload_cs .reload_cs: mov ax, 0x10 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax mov ax, 0x28 ltr ax ret
9.346154
22
0.625514
c6de9c516079ff5a4bd7e7d64d0d7812e8bb4ed3
7,103
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0_notsx.log_21829_1527.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0_notsx.log_21829_1527.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0_notsx.log_21829_1527.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r15 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_UC_ht+0x160c5, %rsi lea addresses_D_ht+0x13e45, %rdi nop nop xor %r9, %r9 mov $40, %rcx rep movsb sub $53892, %rax lea addresses_WT_ht+0x3c5, %r12 nop nop sub %r15, %r15 mov (%r12), %edi add %r12, %r12 lea addresses_D_ht+0x150c5, %r15 nop nop xor $58988, %r9 movl $0x61626364, (%r15) nop nop nop nop nop and %rdi, %rdi lea addresses_WT_ht+0x15a39, %r9 nop nop nop add %r15, %r15 mov (%r9), %esi nop xor %r9, %r9 lea addresses_normal_ht+0x116f2, %rcx nop nop nop xor $48884, %rsi mov $0x6162636465666768, %r9 movq %r9, %xmm3 and $0xffffffffffffffc0, %rcx vmovntdq %ymm3, (%rcx) nop nop nop nop add $14293, %rax lea addresses_UC_ht+0x15125, %r15 nop nop nop nop nop and %rdi, %rdi vmovups (%r15), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $0, %xmm0, %r12 and %r15, %r15 lea addresses_normal_ht+0x89a5, %rsi lea addresses_WC_ht+0x1bbc, %rdi nop nop nop and $28276, %r11 mov $122, %rcx rep movsq nop xor %r9, %r9 lea addresses_A_ht+0x12d1d, %rdi nop nop nop inc %r12 mov $0x6162636465666768, %rax movq %rax, %xmm5 vmovups %ymm5, (%rdi) nop nop nop nop nop add $51870, %r12 lea addresses_A_ht+0x161c5, %r9 nop nop nop xor $52894, %rcx mov (%r9), %r11d nop inc %r15 lea addresses_WC_ht+0x56fd, %rsi lea addresses_D_ht+0x14ef5, %rdi nop nop nop cmp %r9, %r9 mov $5, %rcx rep movsq nop nop nop xor %r9, %r9 pop %rsi pop %rdi pop %rcx pop %rax pop %r9 pop %r15 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r15 push %r8 push %rbx push %rcx push %rdi push %rsi // Store lea addresses_WT+0x115e5, %rbx nop nop nop nop nop dec %rdi mov $0x5152535455565758, %r15 movq %r15, %xmm5 movups %xmm5, (%rbx) nop nop nop nop and $19614, %r14 // REPMOV lea addresses_WC+0x14fc5, %rsi mov $0x306df70000000cc5, %rdi nop nop nop nop and $55, %r12 mov $0, %rcx rep movsb cmp $44335, %r14 // Faulty Load lea addresses_A+0xd7c5, %r8 nop nop nop nop xor $4212, %r15 mov (%r8), %r14d lea oracles, %rbx and $0xff, %r14 shlq $12, %r14 mov (%rbx,%r14,1), %r14 pop %rsi pop %rdi pop %rcx pop %rbx pop %r8 pop %r15 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 3}} {'src': {'type': 'addresses_WC', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_NC', 'congruent': 7, 'same': False}} [Faulty Load] {'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 4, 'NT': True, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}} {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 1}} {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 2}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32, 'NT': True, 'same': False, 'congruent': 0}} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 5}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 2}} {'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}} {'35': 21829} 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 */
34.31401
2,999
0.65775
39b6a1604b3dea335db6c9a94426e34a024e1bc5
1,474
asm
Assembly
_maps/obj42.asm
NatsumiFox/AMPS-Sonic-1-2005
ac8730799f1b96291358c77a4b64529de94ce8a4
[ "Apache-2.0" ]
2
2020-04-09T19:36:35.000Z
2021-01-05T14:20:17.000Z
_maps/obj42.asm
NatsumiFox/AMPS-Sonic-1-2005
ac8730799f1b96291358c77a4b64529de94ce8a4
[ "Apache-2.0" ]
null
null
null
_maps/obj42.asm
NatsumiFox/AMPS-Sonic-1-2005
ac8730799f1b96291358c77a4b64529de94ce8a4
[ "Apache-2.0" ]
1
2020-06-17T14:16:35.000Z
2020-06-17T14:16:35.000Z
; --------------------------------------------------------------------------- ; Sprite mappings - Newtron enemy (GHZ) ; --------------------------------------------------------------------------- dc.w byte_DF58-Map_obj42, byte_DF68-Map_obj42 dc.w byte_DF78-Map_obj42, byte_DF88-Map_obj42 dc.w byte_DF9D-Map_obj42, byte_DFAD-Map_obj42 dc.w byte_DFB8-Map_obj42, byte_DFC8-Map_obj42 dc.w byte_DFD8-Map_obj42, byte_DFE8-Map_obj42 dc.w byte_DFF8-Map_obj42 byte_DF58: dc.b 3 dc.b $EC, $D, 0, 0, $EC dc.b $F4, 0, 0, 8, $C dc.b $FC, $E, 0, 9, $F4 byte_DF68: dc.b 3 dc.b $EC, 6, 0, $15, $EC dc.b $EC, 9, 0, $1B, $FC dc.b $FC, $A, 0, $21, $FC byte_DF78: dc.b 3 dc.b $EC, 6, 0, $2A, $EC dc.b $EC, 9, 0, $1B, $FC dc.b $FC, $A, 0, $21, $FC byte_DF88: dc.b 4 dc.b $EC, 6, 0, $30, $EC dc.b $EC, 9, 0, $1B, $FC dc.b $FC, 9, 0, $36, $FC dc.b $C, 0, 0, $3C, $C byte_DF9D: dc.b 3 dc.b $F4, $D, 0, $3D, $EC dc.b $FC, 0, 0, $20, $C dc.b 4, 8, 0, $45, $FC byte_DFAD: dc.b 2 dc.b $F8, $D, 0, $48, $EC dc.b $F8, 1, 0, $50, $C byte_DFB8: dc.b 3 dc.b $F8, $D, 0, $48, $EC dc.b $F8, 1, 0, $50, $C dc.b $FE, 0, 0, $52, $14 byte_DFC8: dc.b 3 dc.b $F8, $D, 0, $48, $EC dc.b $F8, 1, 0, $50, $C dc.b $FE, 4, 0, $53, $14 byte_DFD8: dc.b 3 dc.b $F8, $D, 0, $48, $EC dc.b $F8, 1, 0, $50, $C dc.b $FE, 0, $E0, $52, $14 byte_DFE8: dc.b 3 dc.b $F8, $D, 0, $48, $EC dc.b $F8, 1, 0, $50, $C dc.b $FE, 4, $E0, $53, $14 byte_DFF8: dc.b 0 even
28.901961
77
0.482361
268d4a19e6fb81ee426b23bfa74d59fd6743d381
217
asm
Assembly
programs/oeis/260/A260939.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/260/A260939.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/260/A260939.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A260939: Thirteen primes in arithmetic progression with difference 60060 and minimal initial term. ; 4943,65003,125063,185123,245183,305243,365303,425363,485423,545483,605543,665603,725663 mul $0,60060 add $0,4943
36.166667
100
0.81106
9351693b79435897d0fbd97826268f1762a7f733
882
asm
Assembly
source/jni/u2/water/routines.asm
Falken42/SecondReality
b998d193a066523cb4ca2b86c8041bea1bddfcb4
[ "Unlicense" ]
9
2015-05-13T21:02:00.000Z
2018-04-15T16:32:27.000Z
source/jni/u2/water/routines.asm
falken42/SecondReality
b998d193a066523cb4ca2b86c8041bea1bddfcb4
[ "Unlicense" ]
null
null
null
source/jni/u2/water/routines.asm
falken42/SecondReality
b998d193a066523cb4ca2b86c8041bea1bddfcb4
[ "Unlicense" ]
null
null
null
.MODEL large,PASCAL .CODE .386 ; dx = Bground seg ; ax = pos seg ; si = pos ofs ; cx = font seg ; bx = font ofs ; Front scroll Putrouts1 PROC FAR PUBLIC Putrouts1 push ds mov ds,ax mov ax,0a000h mov es,ax mov fs,cx mov gs,dx mov dx,158*34 @a1: lodsw or ax,ax je @no1 mov cx,ax @b1: lodsw mov di,ax mov al,byte ptr fs:[bx] or al,al jne @y mov al,byte ptr gs:[di] @y: mov byte ptr es:[di],al loop @b1 @no1: inc bx dec dx jnz @a1 pop ds ret Putrouts1 ENDP END
21
36
0.353741
0d3cdc62d2c836314dfbb6343e78f4b8feebf29d
1,854
asm
Assembly
notes/nasm/print_rax.asm
gr0uch0dev/AssemblyExercisesAndNotes
3b5fb0bb463dee439a8d7934d4ca74fe8f47179f
[ "MIT" ]
null
null
null
notes/nasm/print_rax.asm
gr0uch0dev/AssemblyExercisesAndNotes
3b5fb0bb463dee439a8d7934d4ca74fe8f47179f
[ "MIT" ]
null
null
null
notes/nasm/print_rax.asm
gr0uch0dev/AssemblyExercisesAndNotes
3b5fb0bb463dee439a8d7934d4ca74fe8f47179f
[ "MIT" ]
null
null
null
section .data codes: db '0123456789ABCDEF' newline: db 10 ; To copy the data to a file descriptor, the data needs to be in memory section .text global _start _start: mov rax, 0x1122334455667788 ;16 hex values. 4 bits (a nibble) are necessary to store each of them ( 0001-0001-0010-0010-.......) mov rdi, 1 ;the file descriptor we want to use (1 stands for stdout) mov rdx, 1 mov rcx, 64 ; rax will be filled with 64 bits. The first step is to take the first 4 bits from the left and print the desired value ; then we iterate the procedure ; Each 4 bits should be output as one hexadecimal digit ; Use shift and bitwise AND to isolate them ; the result is the offset in 'codes' array .loop: push rax; we push the rax register into the stack since we need to use it inside the loop to print the values sub rcx, 4 ; cl is a register, lowest significant byte of rcx shr rax, cl and rax, 0xf ; 0xf is 00000....F in hexadecimal ; 0000000....1111 is the mask for the bitwise and lea rsi, [codes + rax] ;codes points at the start of "codes" and "+ rax" says how much I have to move from there ; rsi is used by the system call to write to the file descriptor (here the STDOUT since we want to print) mov rax, 1 ; rax 1 means that we want to call the "write" system call ; (when we invoke syscall it is going to look at the value in rax) ; here is clear why we pushed rax into the stack to store its value ; indeed anytime we loop we print a char ; syscall changes rcx and r11 ; we say that in this case rcx is a "caller-saved registry" push rcx syscall pop rcx pop rax ; test can be used for the fastest 'is it a zero?' check test rcx, rcx jnz .loop ;print a new line mov rax, 1 mov rdi, 1 mov rsi, newline mov rdx, 1 syscall mov rax, 60 ; invoke 'exit' system call xor rdi, rdi syscall
29.903226
130
0.709817
12819e95293e8b5fb1622e555ab7e9e51830adfb
270
asm
Assembly
libsrc/_DEVELOPMENT/z180/c/sccz80/z180_otdmr.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/z180/c/sccz80/z180_otdmr.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/z180/c/sccz80/z180_otdmr.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void *z180_otdmr(void *src, uint8_t port, uint8_t num) SECTION code_clib SECTION code_z180 PUBLIC z180_otdmr EXTERN asm_z180_otdmr z180_otdmr: pop af pop de pop bc pop hl push hl push bc push de push af ld b,e jp asm_z180_otdmr
11.25
56
0.681481
24cb1745758aabfa3285ca938f59bb03f12f90e9
1,444
asm
Assembly
programs/oeis/189/A189450.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/189/A189450.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/189/A189450.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A189450: Number of 2 X n array permutations with each element moving zero or one space horizontally or diagonally. ; 1,5,16,61,225,841,3136,11705,43681,163021,608400,2270581,8473921,31625105,118026496,440480881,1643897025,6135107221,22896531856,85451020205,318907548961,1190179175641,4441809153600,16577057438761,61866420601441,230888624967005,861688079266576,3215863692099301,12001766689130625,44791203064423201,167163045568562176,623860979209825505,2328280871270739841,8689262505873133861,32428769152221795600,121025814103014048541,451674487259834398561,1685672134936323545705,6291014052485459784256,23478384075005515591321,87622522247536602581025,327011704915140894732781,1220424297413026976350096,4554685484736967010667605,16998317641534841066320321,63438585081402397254613681,236756022684074747952134400,883585505654896594553923921,3297585999935511630263561281,12306758494087149926500321205,45929447976413088075737723536,171411033411565202376450572941,639714685669847721430064568225,2387447709267825683343807699961,8910076151401455011945166231616,33252856896337994364436857226505,124101351433950522445802262674401,463152548839464095418772193471101,1728508843923905859229286511210000,6450882826856159341498373851368901,24075022463500731506764208894265601,89849207027146766685558461725693505,335321805645086335235469638008508416 add $0,2 seq $0,3500 ; a(n) = 4*a(n-1) - a(n-2) with a(0) = 2, a(1) = 4. div $0,4 sub $0,1 div $0,3 add $0,1
144.4
1,216
0.898892
c09fefcd3043e2968615f9e84355816fa68a50bf
400
asm
Assembly
iod/iou/date.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
iod/iou/date.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
iod/iou/date.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; Find date V2.00  1989 Tony Tebby QJUMP section iou xdef iou_date include 'dev8_keys_qdos_sms' ;+++ ; Find date ; ; d1 r (long) date ; ; status return arbitrary ;--- iou_date reg.date reg d2/a0 movem.l reg.date,-(sp) moveq #sms.rrtc,d0 trap #do.sms2 movem.l (sp)+,reg.date rts end
15.384615
49
0.4975
caaca0f2bb4d514e123d1e8bfe6795df23d6dc2a
691
asm
Assembly
oeis/024/A024868.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/024/A024868.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/024/A024868.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A024868: a(n) = 2*(n+1) + 3*n + ... + (k+1)*(n+2-k), where k = [ n/2 ]. ; Submitted by Jamie Morken(m3) ; 6,8,22,27,52,61,100,114,170,190,266,293,392,427,552,596,750,804,990,1055,1276,1353,1612,1702,2002,2106,2450,2569,2960,3095,3536,3688,4182,4352,4902,5091,5700,5909,6580,6810,7546,7798,8602,8877,9752,10051,11000,11324,12350,12700,13806,14183,15372,15777,17052,17486,18850,19314,20770,21265,22816,23343,24992,25552,27302,27896,29750,30379,32340,33005,35076,35778,37962,38702,41002,41781,44200,45019,47560,48420,51086,51988,54782,55727,58652,59641,62700,63734,66930,68010,71346,72473,75952,77127,80752 sub $2,$0 add $0,6 lpb $0 sub $0,2 add $2,$1 add $1,$0 lpe mov $0,$2 sub $0,4
49.357143
499
0.7178
dd559414dcabc31673a870ef0489a17e0bb4b31c
715
asm
Assembly
oeis/038/A038094.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/038/A038094.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/038/A038094.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A038094: Number of rooted graphs on n labeled nodes where the root has degree 2. ; Submitted by Jon Maiga ; 6,96,1920,61440,3440640,352321536,67645734912,24739011624960,17416264183971840,23779006032516218880,63309225660971181146112,330036748754793764694786048,3379576307249088150474609131520,68148896268269612624462764321013760,2711625111401228380723766402971902935040,213250875960949083790935305982199956900937728,33192072341569802993891498505517458891717155487744,10236591308127616983565521157918080874953296480210780160,6261408981048214061926199949649647250062099555852874426613760 add $0,1 mov $1,$0 seq $0,95351 ; Total number of edges in all labeled graphs on n nodes. add $1,2 mul $0,$1 div $0,3 mul $0,6
59.583333
478
0.872727
37c36b8523fb7566e9e6372e3abf20dc234a5825
267
asm
Assembly
libmikeos/src.os/os_input_dialog.asm
mynameispyo/InpyoOS
b6ddb6d9715b027ab65891bd4c4f46dbe5c9890d
[ "BSD-3-Clause", "MIT" ]
null
null
null
libmikeos/src.os/os_input_dialog.asm
mynameispyo/InpyoOS
b6ddb6d9715b027ab65891bd4c4f46dbe5c9890d
[ "BSD-3-Clause", "MIT" ]
null
null
null
libmikeos/src.os/os_input_dialog.asm
mynameispyo/InpyoOS
b6ddb6d9715b027ab65891bd4c4f46dbe5c9890d
[ "BSD-3-Clause", "MIT" ]
null
null
null
; @@@ void mikeos_input_dialog(char *buf, char *message); %include "os_vector.inc" section .text use16 global _mikeos_input_dialog _mikeos_input_dialog: push bp mov bp, sp mov ax, [bp + 4] mov bx, [bp + 6] mov bp, os_input_dialog call bp pop bp ret
12.136364
57
0.692884
d2b119a1bcaba267925e389e7bc61ba759968e5a
6,147
asm
Assembly
u7-common/patch-processKeyWithoutDialogs.asm
JohnGlassmyer/UltimaHacks
f9a114e00c4a1edf1ac7792b465feff2c9b88ced
[ "MIT" ]
68
2018-03-04T22:34:22.000Z
2022-03-10T15:18:32.000Z
u7-common/patch-processKeyWithoutDialogs.asm
JohnGlassmyer/UltimaHacks
f9a114e00c4a1edf1ac7792b465feff2c9b88ced
[ "MIT" ]
19
2018-11-20T04:06:49.000Z
2021-11-08T16:37:10.000Z
u7-common/patch-processKeyWithoutDialogs.asm
JohnGlassmyer/UltimaHacks
f9a114e00c4a1edf1ac7792b465feff2c9b88ced
[ "MIT" ]
4
2020-09-01T17:57:36.000Z
2022-01-04T20:51:11.000Z
[bits 16] startPatch EXE_LENGTH, processKeyWithoutDialogs %define mapAction(keyCode, off_handler) dw keyCode, off_handler unresponsiveAvatarActionMappingCount \ EQU (unresponsiveAvatarActionMappingEnd - actionMappingStart) / 4 responsiveAvatarActionMappingCount \ EQU (responsiveAvatarActionMappingEnd - actionMappingStart) / 4 startBlockAt addr_gameStep_callDiscardKeys ; was calling discardKeys, what a disgrace! times 5 nop endBlockOfLength 5 startBlockAt addr_callTranslateKeyBeforeProcessKey ; don't translate key here, so that eop-keyActions ; can process keys even when a mouse button is held times 20 nop endBlockAt off_callTranslateKeyBeforeProcessKey_end startBlockAt addr_keyMappingCode %assign arg_pn_remainingMovementSteps 0x0C %assign arg_mouseY 0x0A %assign arg_mouseX 0x08 %assign arg_keyCode 0x06 %assign var_wasKeyConsumed -0x02 ; skip processing keys if the avatar is moving cmp byte [reg_pn_stepsRemaining], 0 jnz calcJump(off_afterKeyHandlers) push 1 ; discard subsequent buffered keys callFromLoadModule pollKey pop cx mov [bp+arg_keyCode], ax ; let eop-keyActions try to use the key push word [bp+arg_keyCode] callVarArgsEopFromLoadModule keyActions, 1 pop cx mov [bp+var_wasKeyConsumed], ax ; translate (e.g. mapping mouse actions to key codes) the key code ; read by eop-keyActions lea ax, [bp+arg_mouseY] push ax lea ax, [bp+arg_mouseX] push ax lea ax, [bp+arg_keyCode] push ax callFromLoadModule translateKeyWithMouse add sp, 6 ; let eop-keepMoving try to use the translated key. push reg_pn_stepsRemaining push word [bp+arg_keyCode] callVarArgsEopFromLoadModule keepMoving, 2 pop cx pop cx or [bp+var_wasKeyConsumed], ax ; don't further process a key that has been consumed by either eop cmp word [bp+var_wasKeyConsumed], 0 jnz calcJump(off_afterKeyHandlers) %ifnum dseg_isPlayerControlDisabled ; don't further process any key if Usecode has disabled player control cmp byte [dseg_isPlayerControlDisabled], 0 jnz calcJump(off_afterKeyHandlers) %endif %ifdef reg_keyCode mov reg_keyCode, [bp+arg_keyCode] %endif push dseg_avatarIbo callFromLoadModule isNpcUnconscious pop cx or al, al jnz avatarUnresponsive avatarResponsive: mov ax, [bp+arg_keyCode] cmp ax, '1' jb notTranslatedNumberKey cmp ax, '9' ja notTranslatedNumberKey jmp calcJump(off_numberKeys) notTranslatedNumberKey: cmp ax, 0x147 jb notDirectionKey cmp ax, 0x151 ja notDirectionKey jmp calcJump(off_directionKeys) notDirectionKey: mov cx, responsiveAvatarActionMappingCount jmp tryKeyMappings avatarUnresponsive: mov bx, [bp+arg_pn_remainingMovementSteps] mov byte [bx], 0 cmp byte [dseg_playerActionSuspended], 0 jnz calcJump(off_endOfFunction) mov cx, unresponsiveAvatarActionMappingCount tryKeyMappings: cmp word [bp+arg_keyCode], 0 jz afterTryingMappings mov bx, off_actionMappingTable tryActionMapping: mov ax, [cs:bx] cmp ax, [bp+arg_keyCode] jnz notThisActionMapping jmp [cs:bx+2] notThisActionMapping: add bx, 4 loop tryActionMapping afterTryingMappings: jmp calcJump(off_afterKeyHandlers) ; --------- off_toggleCheats EQU block_currentOffset callVarArgsEopFromLoadModule toggleCheats, 0 jmp calcJump(off_afterKeyHandlers) gameSpecificKeyMappingCode endBlockAt off_keyMappingCode_end ;----------------------------------------------------------- ;----------------------------------------------------------- startBlockAt addr_actionMappingTable actionMappingStart: ; mappings which may be used by a conscious or unconscious Avatar mapAction(0x203, off_mouseUse) ; left button double mapAction(0x12B, off_toggleCheats) ; Alt+Backslash ; mapActionIfOffsetDefined keyCode, off_handler ; because different cheat keys/functions exist in U7BG vs in U7SI %macro mapActionIfOffsetDefined 2 %ifnum %2 mapAction(%1, %2) %endif %endmacro mapActionIfOffsetDefined 0x13B, off_cheat_f1 mapActionIfOffsetDefined 0x13C, off_cheat_f2 mapActionIfOffsetDefined 0x13D, off_cheat_f3 mapActionIfOffsetDefined 0x13E, off_cheat_f4 mapActionIfOffsetDefined 0x13F, off_cheat_f5 mapActionIfOffsetDefined 0x141, off_cheat_f7 mapActionIfOffsetDefined 0x142, off_cheat_f8 mapActionIfOffsetDefined 0x143, off_cheat_f9 mapActionIfOffsetDefined 0x16C, off_cheat_altf5 mapActionIfOffsetDefined 0x16E, off_cheat_altf7 mapActionIfOffsetDefined 0x16F, off_cheat_altf8 mapActionIfOffsetDefined 0x170, off_cheat_altf9 mapActionIfOffsetDefined 0x178, off_cheat_alt1 mapActionIfOffsetDefined 0x179, off_cheat_alt2 mapActionIfOffsetDefined 0x17A, off_cheat_alt3 mapActionIfOffsetDefined 0x17B, off_cheat_alt4 mapActionIfOffsetDefined 0x17C, off_cheat_alt5 mapActionIfOffsetDefined 0x17D, off_cheat_alt6 mapActionIfOffsetDefined 0x17E, off_cheat_alt7 mapActionIfOffsetDefined 0x17F, off_cheat_alt8 mapActionIfOffsetDefined 0x180, off_cheat_alt9 mapActionIfOffsetDefined '`', off_cheat_backquote mapActionIfOffsetDefined 0x119, off_cheat_altP ; (many actions are now handled by eop-keyActions rather than here, ; so that they are available also in dialog mode) unresponsiveAvatarActionMappingEnd: ; mappings which may only be used by a conscious Avatar ; to allow MB1-press here would enable not just labeling items, but ; also moving items, while unconscious. mapAction(0x201, off_mouseName) ; MB1 pressed mapAction(0x205, off_mouseName) ; MB1 held mapAction(0x202, off_mouseMove) ; MB2 pressed mapAction(0x206, off_mouseMove) ; MB2 held mapAction(0x204, off_mouseAutoroute) ; MB2 double-clicked responsiveAvatarActionMappingEnd: times 72 nop endBlockAt off_actionMappingTable_end endPatch
29.695652
72
0.733854
0e2691709dada015bea833196506b8c5e8654efc
923
asm
Assembly
programs/oeis/017/A017777.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/017/A017777.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/017/A017777.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A017777: Binomial coefficients C(61,n). ; 1,61,1830,35990,521855,5949147,55525372,436270780,2944827765,17341763505,90177170226,418094152866,1742058970275,6566222272575,22512762077400,70539987842520,202802465047245,536830054536825,1312251244423350,2969831763694950,6236646703759395,12176310231149295,22138745874816900,37539612570341700,59437719903041025,87967825456500717,121801604478231762,157890968768078210,191724747789809255,218169540588403635,232714176627630544,232714176627630544,218169540588403635,191724747789809255,157890968768078210,121801604478231762,87967825456500717,59437719903041025,37539612570341700,22138745874816900,12176310231149295,6236646703759395,2969831763694950,1312251244423350,536830054536825,202802465047245,70539987842520,22512762077400,6566222272575,1742058970275,418094152866,90177170226,17341763505,2944827765,436270780,55525372,5949147,521855,35990,1830,61,1 mov $1,61 bin $1,$0 mov $0,$1
131.857143
849
0.902492
3cdb3beebb7cffb24b4a1ff9dbeb733435f4e743
2,909
asm
Assembly
Kernel/src/arch/x86_64/entry.asm
borrrden/borrrdex
647223094f3778cc028c8e56d91299168a17d939
[ "BSD-2-Clause" ]
9
2021-03-09T22:57:40.000Z
2022-03-12T14:38:03.000Z
Kernel/src/arch/x86_64/entry.asm
borrrden/borrrdex
647223094f3778cc028c8e56d91299168a17d939
[ "BSD-2-Clause" ]
2
2021-05-22T14:56:53.000Z
2021-05-30T01:52:13.000Z
Kernel/src/arch/x86_64/entry.asm
borrrden/borrrdex
647223094f3778cc028c8e56d91299168a17d939
[ "BSD-2-Clause" ]
3
2021-03-24T12:37:24.000Z
2021-12-07T07:36:22.000Z
BITS 64 global GDT64Pointer64 global entry extern kinit_stivale2 KERNEL_VIRTUAL_BASE equ 0xFFFFFFFF80000000 KERNEL_BASE_PML4_INDEX equ (((KERNEL_VIRTUAL_BASE) >> 39) & 0x1FF) KERNEL_BASE_PDPT_INDEX equ (((KERNEL_VIRTUAL_BASE) >> 30) & 0x1FF) section .boot.data align 4096 kernel_pm4: times 512 dq 0 align 4096 kernel_pde: times 512 dq 0 align 4096 kernel_pdpt: times 512 dq 0 align 4096 kernel_pdpt2: times KERNEL_BASE_PDPT_INDEX dq 0 dw 0 align 16 GDT64: .Null1: equ $ - GDT64 ; Null dw 0xFFFF dw 0 db 0 db 0 db 0 db 0 .Code: equ $ - GDT64 ; Kernel Code dw 0 dw 0 db 0 db 10011010b db 00100000b db 0 .Data: equ $ - GDT64 ; Kernel Data dw 0 dw 0 db 0 db 10010010b db 00000000b db 0 .Null2: equ $ - GDT64 ; Null dw 0xFFFF dw 0 db 0 db 0 db 0 db 0 .UserData: equ $ - GDT64 ; User Data dw 0 dw 0 db 0 db 11110010b db 00000000b db 0 .UserCode: equ $ - GDT64 ; User Code dw 0 dw 0 db 0 db 11111010b db 00100000b db 0 .TSS: .len: dw 108 ; x86_64 TSS is 108 bytes long .low: dw 0 .mid: db 0 db 10001001b db 00000000b .high: db 0 .high32: dd 0 dd 0 ; Reserved GDT64Pointer64: dw GDT64Pointer64 - GDT64 - 1 dq GDT64 + KERNEL_VIRTUAL_BASE entry: cli hlt section .stivale2hdr stivale2hdr: dq entryst2 ; entry_point dq 0 ; stack dq 0 ; flags dq st2fbtag ; tags section .data st2fbtag: dq 0x3ecc1bc43d0f7971 ; framebuffer tag dq 0 ; next dw 0 ; width [automatic] dw 0 ; height [automatic] dw 0 ; bpp [automatic] extern _bss extern _bss_end section .text entryst2: lgdt [GDT64Pointer64] mov rbx, rdi ; Save RDI bootloader info mov rdi, _bss mov rcx, _bss_end sub rcx, _bss xor rax, rax rep stosb mov rdi, rbx mov rsp, stack_top mov rbp, rsp push 0x10 push rbp pushf push 0x8 push .cont iretq .cont: mov ax, 0x10 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax mov rax, cr0 and ax, 0xFFB ; Clear coprocessor emulation or ax, 0x2 ; Set coprocessor monitoring mov cr0, rax ; Enable SSE mov rax, cr4 or ax, 3 << 9 mov cr4, rax ; PAT MSR mov rcx, 0x277 rdmsr mov rbx, 0xFFFFFFFFFFFFFF and rax, rbx mov rbx, 0x100000000000000 or rax, rbx ; PA7 write combining wrmsr xor rbp, rbp call kinit_stivale2 cli hlt global __cxa_atexit __cxa_atexit: ret section .bss align 64 stack_bottom: resb 32768 stack_top: global __dso_handle __dso_handle: resq 1
15.983516
67
0.574424
8667ceda7ad9e0b4b12cf4824da49cee06514bc7
513
asm
Assembly
programs/oeis/023/A023705.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/023/A023705.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/023/A023705.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A023705: Numbers with no 0's in base 4 expansion. ; 1,2,3,5,6,7,9,10,11,13,14,15,21,22,23,25,26,27,29,30,31,37,38,39,41,42,43,45,46,47,53,54,55,57,58,59,61,62,63,85,86,87,89,90,91,93,94,95,101,102,103,105,106,107,109,110,111,117,118,119,121,122,123,125,126,127,149,150,151,153,154,155,157,158,159,165,166,167,169,170,171,173,174,175,181,182,183,185,186,187,189,190,191,213,214,215,217,218,219,221 add $0,1 seq $0,259568 ; Numbers following gaps in the sequence of base-4 numbers that don't contain 0. div $0,4
73.285714
346
0.71345
4531cc18d37c0753d9a4fee8bcf4c5c4ada8fc1d
837
asm
Assembly
oeis/142/A142379.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142379.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142379.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142379: Primes congruent to 28 mod 47. ; Submitted by Jon Maiga ; 263,733,827,1109,1297,1579,1861,2143,2237,2707,2801,3083,3271,3929,4211,4493,5527,5903,6091,6373,7219,7877,8629,9851,10039,10133,10321,10979,11261,11731,12107,12577,12671,12953,13799,14081,14551,15679,15773,16619,16901,17183,17747,18217,18311,18593,19157,20849,21319,21601,21977,22259,22447,22541,23011,23293,23669,23857,24421,25643,26113,26489,26959,27241,27617,28087,28181,28463,28933,29027,29873,31189,31847,32411,32693,34667,34949,35419,35983,36923,37957,38239,38333,38803,39367,39461,40213 mov $1,37 mov $2,$0 add $2,2 pow $2,2 lpb $2 sub $2,1 mov $3,$1 add $1,13 mul $3,2 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,34 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 mul $0,2 sub $0,93
33.48
496
0.727599
ec9fd0b9e2af7391182fc761ba416fcf7caca381
158
asm
Assembly
src/nes/input.asm
apvilkko/jane8-musicdisk
86d1ffa8c268f782b23e2b0bb32c62620eadfb58
[ "MIT" ]
null
null
null
src/nes/input.asm
apvilkko/jane8-musicdisk
86d1ffa8c268f782b23e2b0bb32c62620eadfb58
[ "MIT" ]
null
null
null
src/nes/input.asm
apvilkko/jane8-musicdisk
86d1ffa8c268f782b23e2b0bb32c62620eadfb58
[ "MIT" ]
null
null
null
ReadJoy: lda #$01 sta JOY1 sta buttons lsr a sta JOY1 joyloop: lda JOY1 lsr a rol buttons bcc joyloop rts
12.153846
16
0.512658
49410e9493050876c4ad9e2de47527bd7d814b63
238
asm
Assembly
libsrc/_DEVELOPMENT/target/scz180/device/csio/sdcc/csio_sd_write_byte_fastcall.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/target/scz180/device/csio/sdcc/csio_sd_write_byte_fastcall.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/target/scz180/device/csio/sdcc/csio_sd_write_byte_fastcall.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_driver PUBLIC _sd_write_byte_fastcall EXTERN asm_sd_write_byte ;Do a write bus cycle to the SD drive, via the CSIO ; ;input L = byte to write to SD drive defc _sd_write_byte_fastcall = asm_sd_write_byte
17
55
0.747899
4534a10e565289be084426ba1657319dcb53e934
2,747
asm
Assembly
G2553/Assembly/WDTBlink/wdtblink.asm
sonic2000gr/MSP430
455bc12943c48d43561323833bdccb4be311d2f6
[ "BSD-2-Clause" ]
1
2019-04-07T12:20:01.000Z
2019-04-07T12:20:01.000Z
G2553/Assembly/WDTBlink/wdtblink.asm
sonic2000gr/MSP430
455bc12943c48d43561323833bdccb4be311d2f6
[ "BSD-2-Clause" ]
null
null
null
G2553/Assembly/WDTBlink/wdtblink.asm
sonic2000gr/MSP430
455bc12943c48d43561323833bdccb4be311d2f6
[ "BSD-2-Clause" ]
null
null
null
;------------------------------------------------------------------------------- ; MSP430 Assembly Blink LED using the Watchdog Timer Interrupt ; for MSP430G2553 (value line launchpad) ; This is the efficient way to blink the LED! ; Default MCLK of 1 MHz used ; (C) 2015-2017 Manolis Kiagias ; Licensed under the BSD License ;------------------------------------------------------------------------------- .cdecls C,LIST,"msp430.h" ; Include device header file ;------------------------------------------------------------------------------- .def RESET ; Export program entry-point to ; make it known to linker. ;------------------------------------------------------------------------------- .text ; Assemble into program memory. .retain ; Override ELF conditional linking ; and retain current section. .retainrefs ; And retain any sections that have ; references to current section. ;------------------------------------------------------------------------------- RESET mov.w #__STACK_END,SP ; Initialize stackpointer mov.w #WDT_ADLY_1000, &WDTCTL ; WDT 1000ms, ACLK, interval timer ; In this example the WDT interrupt ; is used to blink LED efficiently bis.w #WDTIE, &IE1 ; Enable WDT interrupt ;------------------------------------------------------------------------------- ;- Initialize outputs ;------------------------------------------------------------------------------ bis.b #BIT0, &P1DIR ; make P1.0 output bic.b #BIT0, &P1OUT ; clear P1.0 (red led off) nop bis.w #LPM3 + GIE,SR ; Enter LPM3 w/interrupts enabled nop ; Required for debugger WDT_ISR xor.b #BIT0, &P1OUT ; Blink led once per second reti ;------------------------------------------------------------------------------- ; Stack Pointer definition ;------------------------------------------------------------------------------- .global __STACK_END .sect .stack ;------------------------------------------------------------------------------- ; Interrupt Vectors ;------------------------------------------------------------------------------- .sect ".reset" ; MSP430 RESET Vector .short RESET .sect ".int10" ; MSP430 WDT Interrupt Vector .short WDT_ISR
50.87037
80
0.341463
9f5f9435b2e95e660be40fb15c2b57f4f33e42d0
231
asm
Assembly
programs/oeis/016/A016831.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/016/A016831.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/016/A016831.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A016831: (4n+2)^7. ; 128,279936,10000000,105413504,612220032,2494357888,8031810176,21870000000,52523350144,114415582592,230539333248,435817657216,781250000000,1338925209984,2207984167552,3521614606208 mul $0,4 add $0,2 pow $0,7
33
181
0.822511
d44731ce0f1d454ffe015c39dc97998bff07bd65
1,617
asm
Assembly
c64/helper/macros.asm
alexkazik/disk2easyflash
1ee3b54756cab104ad7a131576ad663dfde6436c
[ "0BSD" ]
1
2021-04-08T05:41:41.000Z
2021-04-08T05:41:41.000Z
c64/helper/macros.asm
alexkazik/disk2easyflash
1ee3b54756cab104ad7a131576ad663dfde6436c
[ "0BSD" ]
null
null
null
c64/helper/macros.asm
alexkazik/disk2easyflash
1ee3b54756cab104ad7a131576ad663dfde6436c
[ "0BSD" ]
null
null
null
/* ** basic loader */ .macro BasicLoader(start){ .pc = $0801 "Basic Loader" .word nextline .word 3880 .byte $9e .text toIntString(start) .byte 0 nextline: .word 0 } /* ** read a full charset */ .macro CharSet(file){ .var charset = LoadPicture(file, List().add($ffffff, $000000)) .for (var y=0; y<8; y++) .for (var x=0;x<32; x++) .for(var charPosY=0; charPosY<8; charPosY++) .byte charset.getSinglecolorByte(x,charPosY+y*8) } /* ** Overall Memorymap */ /* .pc = $0000 "Zero Page" virtual .fill $100, 0 .pc = $0100 "Stack" virtual .fill $100, 0 .pc = $0200 "Kernal/Basic Temp" virtual .fill $200, 0 .pc = $a000 "BASIC ROM" virtual .fill $2000, 0 .pc = $d000 "I/O or Char Rom" virtual .fill $1000, 0 .pc = $e000 "KERNAL ROM" virtual .fill $2000, 0 .pc = $d800 "Color Memory" virtual .fill $400, 0 */ /* ** load indirect */ .macro lday(zp, ofs) { ldy #ofs lda (zp), y } .macro stay(zp, ofs) { ldy #ofs sta (zp), y } .macro movy(zp, ofs, dst) { ldy #ofs lda (zp), y sta dst } /* ** Constants */ // VIC .const BORDER_COLOR = $d020 .const BACKGROUND_COLOR = $d021 .const COLOR_MEMORY = $d800 // KERNAL .const READST = $ffb7 .const SETLFS = $ffba .const SETNAM = $ffbd .const OPEN = $ffc0 .const CLOSE = $ffc3 .const CHKIN = $ffc6 .const CHKOUT = $ffc9 .const CHRIN = $ffcf .const CHROUT = $ffd2 .const GETIN = $ffe4 .const ZP_LAST_USED_DRIVE = $ba /* ** en-/disable kernal */ .macro UseHidden(){ sei :mov #$31 ; $01 // only I/O } .macro UseKernal(){ :mov #$36 ; $01 // only I/O + KERNAL cli } .macro CallHidden(func){ :UseHidden() jsr func :UseKernal() }
14.4375
64
0.615337
cd605db5861fd1f1e48850088dce05911513ac57
7,040
asm
Assembly
audio/music/unused/Radio/Johto/route36.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
2
2022-02-17T11:11:03.000Z
2022-02-21T03:41:01.000Z
audio/music/unused/Radio/Johto/route36.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
audio/music/unused/Radio/Johto/route36.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
Music_Route36: ; e94e9 dbw $c0, Music_Route36_Ch1 dbw $01, Music_Route36_Ch2 dbw $02, Music_Route36_Ch3 dbw $03, Music_Route36_Ch4 ; e94f5 Music_Route36_Ch1: ; e94f5 tempo 144 volume $77 dutycycle $3 tone $0001 vibrato $10, $15 stereopanning $f notetype $c, $b3 octave 3 note C_, 4 note C_, 6 note F_, 1 note E_, 1 intensity $b5 note F_, 8 intensity $b3 note F_, 6 note A#, 1 note A_, 1 intensity $5d note A#, 4 Music_Route36_branch_e9517: ; e9517 intensity $b5 note F_, 4 note A_, 2 note G_, 2 note F_, 2 note E_, 2 note F_, 2 note A_, 2 note D#, 2 note A#, 4 note A_, 4 note G_, 2 note A#, 4 note F_, 4 note A_, 2 note G_, 2 note F_, 2 note E_, 2 note F_, 2 note A_, 2 note G_, 2 note A#, 4 note A_, 4 octave 4 note D#, 4 octave 3 note A#, 2 intensity $b6 octave 4 note F_, 10 intensity $b5 note C_, 2 note F_, 2 note C_, 2 octave 3 note A#, 2 octave 4 note D#, 4 note D_, 4 note C_, 2 octave 3 note A#, 4 intensity $b4 note A_, 2 octave 4 note D_, 2 octave 3 note F#, 2 note A_, 2 octave 4 note D_, 2 octave 3 note F#, 2 note A_, 2 octave 4 note D_, 2 intensity $a4 octave 3 note A_, 2 octave 4 note D_, 2 note F#, 2 octave 3 note A_, 2 octave 4 note D_, 2 note F#, 2 octave 3 note A_, 2 octave 4 note D_, 2 stereopanning $f0 intensity $95 octave 3 note D_, 6 octave 2 note A_, 6 octave 3 note D_, 4 octave 2 note A_, 6 octave 3 note D_, 6 note E_, 4 intensity $b5 note D_, 6 note A_, 6 note G_, 4 intensity $a5 octave 2 note A_, 6 octave 3 note F#, 6 note E_, 4 note D_, 6 octave 2 note A_, 6 octave 3 note D_, 4 intensity $b5 note F#, 6 note E_, 6 note C#, 4 note D_, 6 note A_, 6 note G_, 4 octave 2 note A_, 6 octave 3 note F#, 6 note D_, 4 note C_, 6 note G_, 6 note C_, 2 note E_, 2 intensity $b7 note C_, 6 note G_, 4 note D_, 2 note E_, 2 note G_, 2 note A_, 2 note G#, 2 note A_, 2 octave 4 note D_, 6 note C_, 2 octave 3 note B_, 2 note A_, 6 note D_, 6 stereopanning $f intensity $b5 note D#, 2 note E_, 2 loopchannel 0, Music_Route36_branch_e9517 ; e95af Music_Route36_Ch2: ; e95af dutycycle $3 vibrato $10, $36 stereopanning $f0 notetype $c, $c2 octave 3 note F_, 2 note C_, 1 note F_, 1 intensity $c7 note A_, 8 note C_, 4 intensity $c3 octave 4 note C_, 2 octave 3 note A_, 1 octave 4 note C_, 1 intensity $c7 note F_, 8 octave 3 note G_, 4 Music_Route36_branch_e95ce: ; e95ce intensity $c7 octave 4 note C_, 10 intensity $c4 octave 3 note A_, 2 octave 4 note C_, 2 note A_, 2 note G_, 3 intensity $c2 note D#, 1 intensity $c7 note D#, 12 note C_, 10 intensity $c4 octave 3 note A_, 2 octave 4 note C_, 2 note F_, 2 intensity $c2 note D#, 2 note D#, 1 note F_, 1 intensity $c7 note G_, 12 note A_, 10 intensity $c4 note F_, 2 note A_, 2 octave 5 note C_, 2 octave 4 note A#, 3 note A_, 1 intensity $c7 note G_, 8 note A#, 4 intensity $b0 note A_, 16 intensity $b7 note A_, 16 stereopanning $f intensity $a4 octave 3 note A_, 6 note G_, 6 note F#, 4 note E_, 6 note F#, 6 note G_, 4 intensity $b3 note A_, 2 note F#, 1 note A_, 1 intensity $b7 octave 4 note D_, 12 intensity $a4 octave 3 note F#, 2 note D_, 1 note F#, 1 intensity $a7 note A_, 12 intensity $c7 note A_, 6 note G_, 6 note F#, 4 note B_, 6 note A_, 6 note G_, 4 intensity $c3 note A_, 2 note F#, 1 note A_, 1 intensity $c7 octave 4 note D_, 12 intensity $c3 octave 3 note F#, 2 note D_, 1 note F#, 1 intensity $c7 note A_, 12 intensity $c2 note G_, 2 note E_, 1 note G_, 1 intensity $b0 octave 4 note C_, 2 intensity $b7 note C_, 10 intensity $c5 octave 3 note G_, 2 note E_, 1 note G_, 1 intensity $c7 octave 4 note C_, 8 note C#, 4 stereopanning $ff note D_, 6 note A_, 6 note G_, 2 note F#, 2 intensity $b0 note D_, 4 intensity $b7 note D_, 8 stereopanning $f0 intensity $c4 octave 3 note F#, 1 note G_, 1 note A_, 1 note B_, 1 loopchannel 0, Music_Route36_branch_e95ce ; e966b Music_Route36_Ch3: ; e966b notetype $c, $25 octave 3 note F_, 1 note __, 3 note F_, 1 note __, 1 octave 4 note C_, 4 octave 3 note C_, 2 note F_, 2 note C_, 2 note D#, 1 note __, 3 note D#, 1 note __, 1 octave 4 note F_, 4 octave 2 note A#, 2 octave 3 note D#, 2 note E_, 2 Music_Route36_branch_e9684: ; e9684 note F_, 4 note C_, 2 note F_, 4 note C_, 2 note F_, 2 note C_, 2 note G_, 4 note D#, 2 note G_, 4 note D#, 2 note G_, 2 note D#, 2 note F_, 4 note C_, 2 note F_, 4 note C_, 2 note F_, 2 note C_, 2 note G_, 4 note D#, 2 note G_, 4 note D#, 2 note G_, 2 note D#, 2 note A_, 4 note F_, 2 note A_, 4 note F_, 2 note A_, 2 note F_, 2 note A#, 4 note G_, 2 note A#, 4 note G_, 2 note A#, 2 note G_, 2 note F#, 4 note D_, 2 note F#, 4 note D_, 2 note F#, 2 note D_, 2 note D_, 4 octave 2 note A_, 2 octave 3 note D_, 4 octave 2 note A_, 2 octave 3 note D_, 2 octave 2 note A_, 2 octave 3 note F#, 4 note D_, 2 note F#, 4 note D_, 2 note F#, 2 note D_, 2 note G_, 4 note E_, 2 note G_, 4 note E_, 2 note G_, 2 note E_, 2 note F#, 4 note D_, 2 note F#, 4 note D_, 2 note F#, 2 note D_, 2 note F#, 4 note D_, 2 note F#, 4 note D_, 2 note E_, 2 note A_, 2 note F#, 4 note D_, 2 note F#, 4 note D_, 2 note F#, 2 note D_, 2 note G_, 4 note E_, 2 note G_, 4 note E_, 2 note G_, 2 note E_, 2 note F#, 4 note D_, 2 note F#, 4 note D_, 2 note F#, 2 note D_, 2 note F#, 4 note D_, 2 note F#, 4 note D_, 2 note F#, 2 note D_, 2 note G_, 4 note C_, 2 note G_, 4 note C_, 2 note G_, 2 note C_, 2 note G_, 4 note C_, 2 note G_, 4 note C_, 2 note E_, 2 note G_, 2 note A_, 6 octave 4 note F#, 4 octave 3 note D_, 2 note A_, 2 octave 4 note D_, 2 note C_, 3 note E_, 1 note F#, 6 octave 3 note D_, 2 note D#, 2 note E_, 2 loopchannel 0, Music_Route36_branch_e9684 ; e9709 Music_Route36_Ch4: ; e9709 togglenoise $1 notetype $c callchannel Music_Route36_branch_e9734 callchannel Music_Route36_branch_e9741 Music_Route36_branch_e9713: ; e9713 callchannel Music_Route36_branch_e9734 callchannel Music_Route36_branch_e973b callchannel Music_Route36_branch_e9734 callchannel Music_Route36_branch_e9741 loopchannel 2, Music_Route36_branch_e9713 Music_Route36_branch_e9723: ; e9723 note A#, 4 note A_, 2 note F_, 4 note B_, 1 note B_, 1 note A_, 4 loopchannel 11, Music_Route36_branch_e9723 callchannel Music_Route36_branch_e9741 loopchannel 0, Music_Route36_branch_e9713 ; e9734 Music_Route36_branch_e9734: ; e9734 note A_, 4 note A_, 6 note A#, 1 note A#, 1 note A_, 2 note A#, 2 endchannel ; e973b Music_Route36_branch_e973b: ; e973b note A_, 4 note A_, 6 note B_, 1 note A#, 1 note A_, 4 endchannel ; e9741 Music_Route36_branch_e9741: ; e9741 note A_, 4 note A_, 6 note A#, 1 note A#, 1 note A_, 2 notetype $6 note A#, 1 note A#, 1 note A_, 1 note A_, 1 notetype $c endchannel ; e974f
13.258004
43
0.64858
6d9f77b0011dbaa0ed7e2795791cfa366a37e9e7
207
asm
Assembly
libsrc/_DEVELOPMENT/string/c/sccz80/strstr_callee.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
8
2017-01-18T12:02:17.000Z
2021-06-12T09:40:28.000Z
libsrc/_DEVELOPMENT/string/c/sccz80/strstr_callee.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
1
2017-03-06T07:41:56.000Z
2017-03-06T07:41:56.000Z
libsrc/_DEVELOPMENT/string/c/sccz80/strstr_callee.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
3
2017-03-07T03:19:40.000Z
2021-09-15T17:59:19.000Z
; char *strstr(const char *s1, const char *s2) SECTION code_clib SECTION code_string PUBLIC strstr_callee EXTERN asm_strstr strstr_callee: pop af pop hl pop de push af jp asm_strstr
10.894737
46
0.710145
2ed574a2d6356fde162f346eaad777f66a8cd5c1
561
asm
Assembly
oeis/036/A036234.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/036/A036234.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/036/A036234.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A036234: Number of primes <= n, if 1 is counted as a prime. ; Submitted by Christian Krause ; 1,2,3,3,4,4,5,5,5,5,6,6,7,7,7,7,8,8,9,9,9,9,10,10,10,10,10,10,11,11,12,12,12,12,12,12,13,13,13,13,14,14,15,15,15,15,16,16,16,16,16,16,17,17,17,17,17,17,18,18,19,19,19,19,19,19,20,20,20,20,21,21,22,22,22,22,22,22,23,23,23,23,24,24,24,24,24,24,25,25,25,25,25,25,25,25,26,26,26,26 add $0,1 lpb $0 sub $0,1 div $0,2 mul $0,2 trn $0,1 seq $0,151799 ; Version 2 of the "previous prime" function: largest prime < n. sub $0,1 add $1,1 lpe mov $0,$1 add $0,1
33
279
0.632799
a7801da6819478af45d760d1847c8be63d6f7432
5,776
asm
Assembly
fpn.asm
yweweler/fixed-point-number
4ebdd47f0b1b1a25d740c3a38536a797ed16eab3
[ "MIT" ]
null
null
null
fpn.asm
yweweler/fixed-point-number
4ebdd47f0b1b1a25d740c3a38536a797ed16eab3
[ "MIT" ]
null
null
null
fpn.asm
yweweler/fixed-point-number
4ebdd47f0b1b1a25d740c3a38536a797ed16eab3
[ "MIT" ]
null
null
null
section .text ; int64 double2fixed(double n, int8 scale) global double2fixed ; double fixed2double(int64 n, int8 scale) global fixed2double ; int64 int2fixed(int64 n, int8 scale) global int2fixed ; int64 fixed2int(int64 n, int8 scale) global fixed2int ; int64 fraction(int64 n, int8 scale) global fraction ; int64 floor(int64 n, int8 scale) global floor ; int64 genepsilon() global genepsilon ; int64 genshift(int8 scale) global genshift ; int64 genfracmask(int8 scale) global genfracmask ; int64 genfloormask(int8 scale) global genfloormask double2fixed: ;; Convert a double to a 64 Bitfixed point number ;; ;; Arguments: ;; - rax: double ;; - ecx: 8 Bit integer scale ;; ;; Returns: 64 Bit fixed point number ; return (n * (double)(1<<scale)) xor rax, rax mov ecx, edi inc al shl rax, cl cvtsi2sd xmm1, rax mulsd xmm0, xmm1 cvttsd2si rax, xmm0 ret ;; --------------------------------------------------- fixed2double: ;; Convert a 64 Bit fixed point number to a double ;; ;; Arguments: ;; - rax: 64 Bit fixed point number ;; - ecx: 8 Bit integer scale ;; ;; Returns: double ; return ((double)n / (double)1<<scale) xor rax, rax mov ecx, esi inc al shl rax, cl cvtsi2sd xmm0, rdi cvtsi2sd xmm1, rax divsd xmm0, xmm1 movq rax, xmm0 ret ;; --------------------------------------------------- int2fixed: ;; Convert a 64 Bit integer to a 64 Bit fixed point number ;; ;; Arguments: ;; - rax: 64 Bit integer ;; - ecx: 8 Bit integer scale ;; ;; Returns: 64 Bit fixed point number mov rax, rdi mov ecx, esi shl rax, cl ret ;; --------------------------------------------------- fixed2int: ;; Convert a fixed point number to a 64 Bit integer ;; ;; Arguments: ;; - rax: 64 Bit fixed point number ;; - ecx: 8 Bit integer scale ;; ;; Returns: 64 Bit integer mov rax, rdi mov ecx, esi sar rax, cl ret ;; --------------------------------------------------- fraction: ; n & fracmask ;; Return the factorial of x as a fixed point number. ;; ;; Arguments: ;; - rax: 64 Bit fixed point number x ;; - ecx: 8 Bit integer scale ;; ;; Returns: 64 Bit fixed point number xor rax, rax inc al mov ecx, esi shl rax, cl dec rax and rax, rdi ret ;; --------------------------------------------------- floor: ; n & floormask ;; Return the floor of x as a fixed point number, ;; the largest integer value less than or equal to x. ;; ;; Arguments: ;; - rax: 64 Bit fixed point number x ;; - ecx: 8 Bit integer scale ;; ;; Returns: 64 Bit fixed point number xor rax, rax not rax mov ecx, esi shl rax, cl and rax, rdi ret ;; --------------------------------------------------- genepsilon: ;; Generate double epsilon as a fixed point number ;; ;; Arguments: ;; - al: 64 Bit fixed point number xor rax, rax inc al ret ;; --------------------------------------------------- genshift: ;; Generate a mask with only the n'th Bit set ;; ;; Arguments: ;; - al: 8 Bit integer scale ;; ;; Returns: 64 Bit integer mask xor rax, rax mov ecx, edi inc al shl rax, cl ret ;; --------------------------------------------------- ; --- 64 Bit ----------------------------------------------------- ; -------8------16------24------32------40------48------56------64 ; | | | | | | | | ; 0000000000000000000000000000000000000000000000000000000100000000 ; 0000000000000000000000000000000000000000000000010000000000000000 ; 0000000000000000000000000000000000000001000000000000000000000000 ; 0000000000000000000000000000000100000000000000000000000000000000 ; 0000000000000000000000010000000000000000000000000000000000000000 ; 0000000000000001000000000000000000000000000000000000000000000000 ; 0000000100000000000000000000000000000000000000000000000000000000 ; 0000000000000000000000000000000000000000000000000000000000000001 ; | | | | | | | | ;64------56------48------40------32------24------16-------8------- ; ---------------------------------------------------------------- ; --- ASM -------------------------------------------------------- ; 400b10: 48 31 c0 xor rax,rax ; 400b13: 89 f9 mov ecx,edi ; 400b15: fe c0 inc al ; 400b17: 48 d3 e0 shl rax,cl ; 400b1a: c3 ret ; --- GCC -------------------------------------------------------- ; 400a30: 48 89 f8 mov rax,rdi ; 400a33: 89 f1 mov ecx,esi ; 400a35: 48 d3 e0 shl rax,cl ; 400a38: c3 ret ; ---------------------------------------------------------------- genfracmask: ; (1 << scale)-1 ;; Generate the fraction mask based on a scale ;; ;; Calculation can be done once and reused in every ;; fixed point number calculation to enhance speed. ;; ;; Arguments: ;; - al: 8 Bit integer scale ;; ;; Returns: 64 Bit integer mask xor rax, rax inc al mov ecx, edi shl rax, cl dec rax ret ;; --------------------------------------------------- genfloormask: ; ~0 << scale ;; Generate the floor mask based on a scale. ;; ;; Calculation can be done once and reused in every ;; fixed point number calculation to enhance speed. ;; ;; Arguments: ;; - al: 8 Bit integer scale ;; ;; Returns: 64 Bit integer mask xor rax, rax not rax mov ecx, edi shl rax, cl ret ;; ---------------------------------------------------
23.966805
66
0.51108
6c886bb4949987308c4fc81ce90f57d5236b1b91
210
asm
Assembly
code/seg.asm
CornPrincess/Assembly
c8bd1a8cda0b019f47ea22b97351f59bea6053b6
[ "MIT" ]
null
null
null
code/seg.asm
CornPrincess/Assembly
c8bd1a8cda0b019f47ea22b97351f59bea6053b6
[ "MIT" ]
null
null
null
code/seg.asm
CornPrincess/Assembly
c8bd1a8cda0b019f47ea22b97351f59bea6053b6
[ "MIT" ]
null
null
null
assume cs:code code segment dw 0123h,0456h,0789h,0abch,0defh,0fedh,0cbah,0987h mov bx,0 mov ax,0 mov cx,8 s:add ax,cs:[bx] add bx,2 loop s mov ax,4c00h int 21h code ends end
15
54
0.62381
dfa5931760838fc0daa4ad966551d5c87586a457
571
asm
Assembly
oeis/056/A056525.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/056/A056525.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/056/A056525.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A056525: Palindromes with odd number of digits. ; Submitted by Jamie Morken(s2) ; 1,2,3,4,5,6,7,8,9,101,111,121,131,141,151,161,171,181,191,202,212,222,232,242,252,262,272,282,292,303,313,323,333,343,353,363,373,383,393,404,414,424,434,444,454,464,474,484,494,505,515,525,535,545,555,565,575,585,595,606,616,626,636,646,656,666,676,686,696,707,717,727,737,747,757,767,777,787,797,808,818,828,838,848,858,868,878,888,898,909,919,929,939,949,959,969,979,989,999,10001 add $0,1 lpb $0 mov $2,$0 div $0,10 mod $2,10 max $3,$0 mul $3,10 add $3,$2 lpe mov $0,$3
38.066667
385
0.695271
998fcfc936b2458e6bd22f9d39b05ad5562724ec
367
asm
Assembly
oeis/343/A343009.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/343/A343009.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/343/A343009.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A343009: a(n) = (n^(2n)-1)/(n^2-1) for n > 1. ; 5,91,4369,406901,62193781,14129647351,4467856773185,1876182941212489,1010101010101010101,678356244890331342611,555922008415320588345745,546031727340884622966664381,633213824057681722185793753109,856031514432518244055765015738351 add $0,2 mov $1,$0 mov $2,$0 mul $0,2 mul $1,$2 sub $1,1 pow $2,$0 div $2,$1 mov $0,$2
28.230769
230
0.765668
24ed243a1789ec79244d0a032e75612d8ecc4963
649
asm
Assembly
oeis/187/A187361.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/187/A187361.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/187/A187361.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A187361: Pell trisection: Pell(3*n+1), n >= 0. ; Submitted by Jon Maiga ; 1,12,169,2378,33461,470832,6625109,93222358,1311738121,18457556052,259717522849,3654502875938,51422757785981,723573111879672,10181446324101389,143263821649299118,2015874949414289041,28365513113449345692,399133058537705128729,5616228332641321147898,79026329715516201199301,1111984844349868137938112,15646814150613670132332869,220167382952941249990598278,3097990175491791170000708761,43592029839838017630000520932,613386407933224037990008001809,8631001740904974549490112546258 mul $0,3 mov $3,1 lpb $0 sub $0,1 mov $2,$3 mul $3,2 add $3,$1 mov $1,$2 lpe mov $0,$3
43.266667
476
0.836672
447ec5070ee94ea21cb3b5f19e4c4580f22fcd49
338
asm
Assembly
oeis/105/A105220.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/105/A105220.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/105/A105220.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A105220: Trajectory of 1 under the morphism 1->{1,2,1}, 2->{2,2,2}. ; 1,2,1,2,2,2,1,2,1,2,2,2,2,2,2,2,2,2,1,2,1,2,2,2,1,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,1,2,2,2,1,2,1,2,2,2,2,2,2,2,2,2,1,2,1,2,2,2,1,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 mov $1,$0 sub $0,1 dif $1,2 bin $0,$1 gcd $0,3 div $0,2 add $0,1
30.727273
201
0.529586
7e16b4649c8abb784f2320b9b7df79b204805093
589
asm
Assembly
programs/oeis/209/A209281.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/209/A209281.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/209/A209281.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A209281: Start with first run [0,1] then, for n >= 2, the n-th run has length 2^n and is the concatenation of [a(1),a(2),...,a(2^n/2)] and [n-a(1),n-a(2),...,n-a(2^n/2)]. ; 0,1,2,1,3,2,1,2,4,3,2,3,1,2,3,2,5,4,3,4,2,3,4,3,1,2,3,2,4,3,2,3,6,5,4,5,3,4,5,4,2,3,4,3,5,4,3,4,1,2,3,2,4,3,2,3,5,4,3,4,2,3,4,3,7,6,5,6,4,5,6,5,3,4,5,4,6,5,4,5,2,3,4,3,5,4,3 lpb $0 mov $2,$0 div $0,2 seq $2,10060 ; Thue-Morse sequence: let A_k denote the first 2^k terms; then A_0 = 0 and for k >= 0, A_{k+1} = A_k B_k, where B_k is obtained from A_k by interchanging 0's and 1's. add $1,$2 lpe mov $0,$1
53.545455
182
0.57725
f3dcd81cdaa48aecf8112a9d6c9f99bed04961da
375
asm
Assembly
programs/oeis/133/A133767.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/133/A133767.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/133/A133767.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A133767: a(n) = (4*n+3)*(4*n+5)*(4*n+7). ; 105,693,2145,4845,9177,15525,24273,35805,50505,68757,90945,117453,148665,184965,226737,274365,328233,388725,456225,531117,613785,704613,803985,912285,1029897,1157205,1294593,1442445,1601145,1771077,1952625 mov $3,$0 lpb $3,1 mov $2,4 add $4,3 add $2,$4 pow $2,2 add $1,$2 sub $3,1 add $4,1 lpe mul $1,12 add $1,105
23.4375
207
0.677333
b44b1fbe1ba82ec029cdabfd6cf7aa7300d63c29
584
asm
Assembly
Lab1/EminKartci_S014877_lab1.asm
eminkartci/MicroController-Assembly
827c40506e8201da48258f2a0c455d52d0f1ef5a
[ "Apache-2.0" ]
1
2021-05-08T19:46:37.000Z
2021-05-08T19:46:37.000Z
Lab1/EminKartci_S014877_lab1.asm
eminkartci/MicroController-Assembly
827c40506e8201da48258f2a0c455d52d0f1ef5a
[ "Apache-2.0" ]
null
null
null
Lab1/EminKartci_S014877_lab1.asm
eminkartci/MicroController-Assembly
827c40506e8201da48258f2a0c455d52d0f1ef5a
[ "Apache-2.0" ]
null
null
null
//Assume that the number at *100 is maximum number 0: CP 110 100 // To compare the numbers initialize *50 1: CP 50 100 // Check if first number is less than 101 2: LT 50 101 // if Location 50 is false jump tp *20 -> 5 line 3: BZJ 20 50 // otherwise set max number as *101 4: CP 110 101 // To check *102 and *110 initialize *51 5: CP 51 110 // Check if *51 less than *102 6: LT 51 102 // If *51 contains 0 jump to *21 -> 9 7: BZJ 21 51 // otherwise assign *110 to *102 8: CP 110 102 // then jump to *21 -> 9 (infinite loops) 9: BZJi 21 0 // MEMORY 20: 5 21: 9 100: 41 101: 39 102: 43
21.62963
50
0.664384
5c5cd2217821404c62cb92089d465f6bb14ca2d6
549
asm
Assembly
tests/emra/PRED_MODE/asm_for_rb/PR05_rb.asm
ilebedev/stacktool
0750fb632d6a06596056edb97825baa035cec418
[ "MIT" ]
1
2021-02-17T17:44:59.000Z
2021-02-17T17:44:59.000Z
tests/emra/PRED_MODE/asm_for_rb/PR05_rb.asm
ilebedev/stacktool
0750fb632d6a06596056edb97825baa035cec418
[ "MIT" ]
null
null
null
tests/emra/PRED_MODE/asm_for_rb/PR05_rb.asm
ilebedev/stacktool
0750fb632d6a06596056edb97825baa035cec418
[ "MIT" ]
null
null
null
push 0; push 0; st; push 0; push 1; st; push 0; push 0; sethi 0x0200; st; push 0; push 0; sethi 0x0400; st; push 0; push 0; drop 0; push 0; pull_cp 1; push 10; cmp_ugt; bz 47; pull_cp 0; push 2; cmp_ugt; bz 24; push 0; sethi 0x0200; pull_cp 0; ld; push 1; add; tuck 1; st; pull_cp 1; push 5; cmp_ule; bz 9; push 0; sethi 0x0400; pull_cp 0; ld; push 1; add; tuck 1; st; push 1; add; j_pc -26; push 0; pull_cp 0; ld; push 1; add; tuck 1; st; push 1; pull_cp 0; ld; push 1; add; tuck 1; st; pull 1; push 1; add; tuck 1 j_pc -51; drop 1; drop 0; halt;
7.625
13
0.648452
dc37f33b5846e4602c5ced3bd100e595ea0b5cf3
322
asm
Assembly
Asmt6/Asmt6_2.asm
wstern1234/COMSC-260
e1bd1a88698f09fa27a2d563e53da20d0c9a361e
[ "MIT" ]
null
null
null
Asmt6/Asmt6_2.asm
wstern1234/COMSC-260
e1bd1a88698f09fa27a2d563e53da20d0c9a361e
[ "MIT" ]
null
null
null
Asmt6/Asmt6_2.asm
wstern1234/COMSC-260
e1bd1a88698f09fa27a2d563e53da20d0c9a361e
[ "MIT" ]
null
null
null
; Asmt6_2.asm - Write a sequence of instructions that shift three memory words to the left by 1 bit position. INCLUDE Irvine32.inc .data wordArray WORD 810Dh, 0C064h,93ABh .code main PROC shr [wordArray + 2], 1 rcr [wordArray + 1], 1 rcr [wordArray], 1 INVOKE ExitProcess, 0 main ENDP END main
15.333333
110
0.692547
99343232c114bf1cf925c2a7eb6005085233276a
302
asm
Assembly
programs/oeis/040/A040554.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/040/A040554.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/040/A040554.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A040554: Continued fraction for sqrt(579). ; 24,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48,16,48 mov $1,2 pow $1,$0 add $1,2 gcd $1,6 sub $1,2 mul $1,8 add $1,16
27.454545
190
0.649007
d4d1a91c3b5d8d1b10ad094fdc30e70f0fd48b04
15,449
asm
Assembly
testCode/c_Code/snakeGame/snakeMain.asm
Dynamitelaw/scratchComputer
e180abc5d3c1d3c908df1cec8ad0891b5fd25aba
[ "CC0-1.0" ]
null
null
null
testCode/c_Code/snakeGame/snakeMain.asm
Dynamitelaw/scratchComputer
e180abc5d3c1d3c908df1cec8ad0891b5fd25aba
[ "CC0-1.0" ]
null
null
null
testCode/c_Code/snakeGame/snakeMain.asm
Dynamitelaw/scratchComputer
e180abc5d3c1d3c908df1cec8ad0891b5fd25aba
[ "CC0-1.0" ]
null
null
null
.text lui sp, 1 #Loading val 5120 addi sp, sp, 1024 la ra, PROGRAM_END la gp, HEAP_START main: mv a0, zero addi sp, sp, -4 sw ra, 0(sp) addi sp, sp, -4 sw s0, 0(sp) mv s0, ra jal clearScreen addi sp, sp, -8 addi t0, zero, 3 addi t1, sp, 0 addi t1, t1, 4 lw t2, 0(t1) mv t2, t0 sw t2, 0(t1) addi t0, zero, 1 addi t1, sp, 0 lw t2, 0(t1) mv t2, t0 sw t2, 0(t1) addi t0, sp, 0 addi t0, t0, 4 lw a0, 0(t0) addi t0, sp, 0 lw a1, 0(t0) lui a2, 4080 #Loading val 16711680 addi a2, a2, 0 addi sp, sp, -4 sw s1, 0(sp) mv s1, a0 addi sp, sp, -4 sw s10, 0(sp) mv s10, a1 addi sp, sp, -4 sw s11, 0(sp) mv s11, a2 jal updatePixel lui s1, 1 #Loading val 6008 addi s1, s1, 1912 addi sp, sp, -4 sw s1, 0(sp) addi sp, sp, -16 addi a0, zero, 16 mv s10, a0 jal malloc addi sp, sp, -4 sw a0, 0(sp) addi t0, zero, 2 addi t1, sp, 4 addi t1, t1, 4 lw t2, 0(t1) mv t2, t0 sw t2, 0(t1) addi t0, zero, 1 addi t1, sp, 4 lw t2, 0(t1) mv t2, t0 sw t2, 0(t1) addi t0, sp, 4 addi t0, t0, 8 lw t1, 0(t0) mv t1, zero sw t1, 0(t0) addi t0, sp, 4 addi t0, t0, 12 lw t1, 0(t0) mv t1, a0 sw t1, 0(t0) addi t0, zero, 2 mv t1, a0 addi t1, t1, 4 lw t2, 0(t1) mv t2, t0 sw t2, 0(t1) mv t0, a0 lw t1, 0(t0) mv t1, zero sw t1, 0(t0) addi t0, sp, 4 mv t1, a0 addi t1, t1, 8 lw t2, 0(t1) mv t2, t0 sw t2, 0(t1) mv t1, a0 addi t1, t1, 12 lw t2, 0(t1) mv t2, zero sw t2, 0(t1) addi s10, zero, 1 addi sp, sp, -4 sw s10, 0(sp) addi s11, zero, 0 addi sp, sp, -4 sw s11, 0(sp) addi sp, sp, -4 sw s2, 0(sp) addi s2, zero, 2 addi sp, sp, -4 sw s2, 0(sp) addi sp, sp, -4 sw s3, 0(sp) addi s3, zero, 100 addi sp, sp, -4 sw s3, 0(sp) addi sp, sp, -4 sw s4, 0(sp) addi s4, zero, 0 addi sp, sp, -4 sw s4, 0(sp) whileLoopStart_0: j whileLoopBody_0 whileLoopBody_0: mv t1, s1 addi t2, zero, 16 addi t3, zero, 1 mul t3, t2, t3 add t1, t1, t3 lb t3, 0(t1) bne t3, zero, true_0 j false_0 true_0: addi a0, zero, 0 mv ra, s0 lw s0, 76(sp) sw s1, 52(sp) lw s1, 64(sp) sw s10, 28(sp) lw s10, 60(sp) sw s11, 24(sp) lw s11, 56(sp) sw s2, 16(sp) lw s2, 20(sp) sw s3, 8(sp) lw s3, 12(sp) sw s4, 0(sp) lw s4, 4(sp) addi sp, sp, 84 jr ra addi sp, sp, -4 sw s0, 0(sp) mv s0, ra addi sp, sp, -4 sw s1, 0(sp) addi sp, sp, -4 sw s10, 0(sp) addi sp, sp, -4 sw s11, 0(sp) addi sp, sp, -4 sw s2, 0(sp) addi sp, sp, -4 sw s3, 0(sp) addi sp, sp, -4 sw s4, 0(sp) addi sp, sp, 0 j ifElseExit_0 false_0: ifElseExit_0: mv t1, s1 addi t4, zero, 106 addi t5, zero, 1 mul t5, t4, t5 add t1, t1, t5 lb t5, 0(t1) bne t5, zero, true_1 j false_1 true_1: mv s10, zero sw s10, 28(sp) addi t1, zero, 1 addi a1, zero, -1 mul t6, t1, a1 mv s11, t6 sw s11, 24(sp) j ifElseExit_1 false_1: ifElseExit_1: mv t1, s1 addi t6, zero, 107 addi a1, zero, 1 mul a1, t6, a1 add t1, t1, a1 lb a1, 0(t1) bne a1, zero, true_2 j false_2 true_2: mv s10, zero sw s10, 28(sp) addi t1, zero, 1 mv s11, t1 sw s11, 24(sp) j ifElseExit_2 false_2: ifElseExit_2: mv t1, s1 addi a2, zero, 108 addi a3, zero, 1 mul a3, a2, a3 add t1, t1, a3 lb a3, 0(t1) bne a3, zero, true_3 j false_3 true_3: addi t1, zero, 1 addi a5, zero, -1 mul a4, t1, a5 mv s10, a4 sw s10, 28(sp) mv s11, zero sw s11, 24(sp) j ifElseExit_3 false_3: ifElseExit_3: mv t1, s1 addi a4, zero, 109 addi a5, zero, 1 mul a5, a4, a5 add t1, t1, a5 lb a5, 0(t1) bne a5, zero, true_4 j false_4 true_4: addi t1, zero, 1 mv s10, t1 sw s10, 28(sp) mv s11, zero sw s11, 24(sp) j ifElseExit_4 false_4: ifElseExit_4: addi sp, sp, -4 sw s5, 0(sp) addi t1, sp, 40 addi t1, t1, 4 lw s5, 0(t1) addi sp, sp, -4 sw s5, 0(sp) addi sp, sp, -4 sw s6, 0(sp) addi a6, sp, 48 lw s6, 0(a6) addi sp, sp, -4 sw s6, 0(sp) addi sp, sp, -4 sw s7, 0(sp) addi sp, sp, -4 sw s8, 0(sp) addi s8, sp, 60 addi s8, s8, 4 addi sp, sp, -4 sw s9, 0(sp) lw s9, 0(s8) add s7, s9, s10 addi s8, zero, 32 rem a7, s7, s8 addi s8, sp, 64 addi s8, s8, 4 sw s0, 108(sp) lw s0, 0(s8) mv s0, a7 sw s0, 0(s8) addi s0, sp, 64 addi s0, s0, 4 lw s8, 0(s0) blt s8, zero, true_5 j false_5 true_5: addi s0, zero, 32 sw s1, 80(sp) addi s1, sp, 64 addi s1, s1, 4 sw a0, 60(sp) lw a0, 0(s1) mv a0, s0 sw a0, 0(s1) lw s1, 80(sp) lw a0, 60(sp) j ifElseExit_5 false_5: ifElseExit_5: sw s1, 80(sp) sw a0, 60(sp) addi a0, sp, 64 lw t0, 0(a0) add s1, t0, s11 addi a0, zero, 24 rem s0, s1, a0 addi a0, sp, 64 sw s10, 56(sp) lw s10, 0(a0) mv s10, s0 sw s10, 0(a0) addi a0, sp, 64 lw s10, 0(a0) blt s10, zero, true_6 j false_6 true_6: addi a0, zero, 24 sw s11, 52(sp) addi s11, sp, 64 sw s2, 44(sp) lw s2, 0(s11) mv s2, a0 sw s2, 0(s11) lw s11, 52(sp) lw s2, 44(sp) j ifElseExit_6 false_6: ifElseExit_6: sw s11, 52(sp) addi s11, sp, 64 addi s11, s11, 12 lw a0, 0(s11) addi sp, sp, -4 sw a0, 0(sp) sw s2, 48(sp) sw s3, 40(sp) addi s3, sp, 68 addi s3, s3, 4 lw s2, 0(s3) addi sp, sp, -4 sw s2, 0(sp) sw s4, 36(sp) addi t2, sp, 72 lw s4, 0(t2) addi sp, sp, -4 sw s4, 0(sp) whileLoopStart_1: bne a0, zero, whileLoopBody_1 j whileLoopEnd_1 whileLoopBody_1: mv t4, a0 addi t4, t4, 4 lw t5, 0(t4) slt t3, s2, t5 slt t4, t5, s2 add t3, t3, t4 slti t3, t3, 1 mv t6, a0 lw a1, 0(t6) slt t4, s4, a1 slt t6, a1, s4 add t4, t4, t6 slti t4, t4, 1 mul t6, t3, t4 bne t6, zero, true_7 j false_7 true_7: sw a0, 8(sp) mv a0, s2 mv a1, s4 lui a2, 1 #Loading val 16776960 addi a2, a2, 3840 lui t6, 4095 add a2, a2, t6 mv s2, a3 mv s4, a4 addi sp, sp, -4 sw a7, 0(sp) addi sp, sp, -4 sw t3, 0(sp) addi sp, sp, -4 sw t4, 0(sp) sw a0, 16(sp) sw a1, 12(sp) jal updatePixel lw a0, 16(sp) lw a1, 12(sp) lui a2, 1 #Loading val 16776960 addi a2, a2, 3840 lui t0, 4095 add a2, a2, t0 sw a0, 16(sp) sw a1, 12(sp) jal updatePixel addi a0, zero, 500 jal delay addi t0, zero, 1 addi t1, zero, -1 mul a0, t0, t1 lw ra, 132(sp) addi sp, sp, -4 sw s0, 0(sp) lw s0, 132(sp) addi sp, sp, -4 sw s1, 0(sp) lw s1, 124(sp) lw s10, 120(sp) lw s11, 116(sp) lw s2, 80(sp) lw s3, 72(sp) lw s4, 64(sp) sw s5, 52(sp) lw s5, 56(sp) sw s6, 44(sp) lw s6, 48(sp) addi sp, sp, -4 sw s7, 0(sp) lw s7, 44(sp) lw s8, 40(sp) lw s9, 36(sp) addi sp, sp, 148 jr ra addi sp, sp, -4 sw ra, 0(sp) addi sp, sp, -4 sw s0, 0(sp) addi sp, sp, -4 sw s1, 0(sp) addi sp, sp, -4 sw s10, 0(sp) addi sp, sp, -4 sw s11, 0(sp) addi sp, sp, -4 sw s2, 0(sp) addi sp, sp, -4 sw s3, 0(sp) addi sp, sp, -4 sw s4, 0(sp) addi sp, sp, -4 sw s5, 0(sp) addi sp, sp, -4 sw s6, 0(sp) addi sp, sp, -4 sw s7, 0(sp) addi sp, sp, -4 sw s8, 0(sp) addi sp, sp, -4 sw s9, 0(sp) addi sp, sp, -4 sw a0, 0(sp) addi sp, sp, 0 j ifElseExit_7 false_7: ifElseExit_7: mv t6, a0 addi t6, t6, 12 lw a2, 0(t6) mv a0, a2 sw a0, 8(sp) j whileLoopStart_1 whileLoopEnd_1: addi t4, sp, 76 addi t4, t4, 4 lw t5, 0(t4) addi t4, sp, 108 addi t4, t4, 4 lw t6, 0(t4) slt t3, t5, t6 slt t4, t6, t5 add t3, t3, t4 slti t3, t3, 1 addi a1, sp, 76 lw a2, 0(a1) addi a1, sp, 108 lw a3, 0(a1) slt t4, a2, a3 slt a1, a3, a2 add t4, t4, a1 slti t4, t4, 1 mul a1, t3, t4 bne a1, zero, true_8 j false_8 true_8: sw a0, 8(sp) addi a0, sp, 108 lw a1, 40(sp) addi sp, sp, -4 sw a7, 0(sp) addi sp, sp, -4 sw t3, 0(sp) addi sp, sp, -4 sw t4, 0(sp) sw a1, 52(sp) jal iterateFoodPosition lw t0, 68(sp) addi t0, t0, 1 sw t0, 68(sp) addi t1, zero, 4 lw t2, 60(sp) sub t2, t2, t1 sw t2, 60(sp) addi a0, zero, 16 sw t0, 68(sp) sw t2, 60(sp) jal malloc addi sp, sp, -4 sw a0, 0(sp) mv t0, a0 addi t0, t0, 4 lw t1, 0(t0) mv t1, s5 sw t1, 0(t0) mv t0, a0 lw t1, 0(t0) mv t1, s6 sw t1, 0(t0) addi t0, sp, 92 mv t1, a0 addi t1, t1, 8 lw t2, 0(t1) mv t2, t0 sw t2, 0(t1) addi t1, sp, 92 addi t1, t1, 12 lw t2, 0(t1) mv t1, a0 addi t1, t1, 12 lw t3, 0(t1) mv t3, t2 sw t3, 0(t1) addi t3, sp, 92 addi t3, t3, 12 lw t1, 0(t3) addi sp, sp, -4 sw t1, 0(sp) mv t4, t1 addi t4, t4, 8 lw t5, 0(t4) mv t5, a0 sw t5, 0(t4) addi t4, sp, 96 addi t4, t4, 12 lw t5, 0(t4) mv t5, a0 sw t5, 0(t4) addi t4, sp, 96 addi t4, t4, 4 sw a0, 4(sp) lw a0, 0(t4) addi t4, sp, 96 lw a1, 0(t4) lui a2, 1 #Loading val 65280 addi a2, a2, 3840 lui t4, 15 add a2, a2, t4 sw t1, 0(sp) jal updatePixel lw a7, 16(sp) lw a0, 28(sp) lw t3, 12(sp) lw t4, 8(sp) addi sp, sp, 20 j ifElseExit_8 false_8: lw a1, 72(sp) mv a4, a1 addi a4, a4, 4 sw a0, 8(sp) lw a0, 0(a4) mv a4, a1 sw a1, 72(sp) lw a1, 0(a4) mv a2, zero addi sp, sp, -4 sw a7, 0(sp) addi sp, sp, -4 sw t3, 0(sp) addi sp, sp, -4 sw t4, 0(sp) jal updatePixel addi t0, sp, 88 addi t0, t0, 4 lw a0, 0(t0) addi t0, sp, 88 lw a1, 0(t0) lui a2, 1 #Loading val 65280 addi a2, a2, 3840 lui t0, 15 add a2, a2, t0 jal updatePixel lw t1, 84(sp) mv t2, t1 addi t2, t2, 8 lw t0, 0(t2) addi sp, sp, -4 sw t0, 0(sp) mv t3, t1 addi t3, t3, 4 lw t4, 0(t3) mv t4, s5 sw t4, 0(t3) mv t3, t1 lw t4, 0(t3) mv t4, s6 sw t4, 0(t3) addi t3, sp, 92 mv t4, t1 addi t4, t4, 8 lw t5, 0(t4) mv t5, t3 sw t5, 0(t4) addi t4, sp, 92 addi t4, t4, 12 lw t5, 0(t4) mv t4, t1 addi t4, t4, 12 lw t6, 0(t4) mv t6, t5 sw t6, 0(t4) addi t6, sp, 92 addi t6, t6, 12 lw t4, 0(t6) addi sp, sp, -4 sw t4, 0(sp) mv a0, t4 addi a0, a0, 8 lw a1, 0(a0) mv a1, t1 sw a1, 0(a0) mv a0, t0 addi a0, a0, 12 lw a1, 0(a0) mv a1, zero sw a1, 0(a0) addi a0, sp, 96 addi a0, a0, 12 lw a1, 0(a0) mv a1, t1 sw a1, 0(a0) mv t1, t0 sw t1, 92(sp) sw t1, 92(sp) lw a7, 16(sp) lw a0, 28(sp) lw t3, 12(sp) sw t4, 0(sp) lw t4, 8(sp) addi sp, sp, 20 ifElseExit_8: addi a1, sp, 108 addi a1, a1, 4 sw a0, 8(sp) lw a0, 0(a1) addi a1, sp, 108 lw a1, 0(a1) lui a2, 4080 #Loading val 16711680 addi a2, a2, 0 addi sp, sp, -4 sw a7, 0(sp) addi sp, sp, -4 sw t3, 0(sp) addi sp, sp, -4 sw t4, 0(sp) jal updatePixel lw t0, 60(sp) blt zero, t0, true_9 j false_9 true_9: mv a0, t0 sw a0, 60(sp) jal delay lw t0, 60(sp) j ifElseExit_9 false_9: ifElseExit_9: lw t1, 52(sp) addi t1, t1, 1 sw t1, 52(sp) addi sp, sp, -4 sw s0, 0(sp) lw s0, 136(sp) addi sp, sp, -4 sw s1, 0(sp) lw s1, 112(sp) lw a0, 92(sp) lw s10, 88(sp) lw s11, 84(sp) sw s2, 24(sp) lw s2, 76(sp) mv s3, t0 sw s4, 20(sp) mv s4, t1 sw s5, 52(sp) lw s5, 56(sp) sw s6, 44(sp) lw s6, 48(sp) addi sp, sp, -4 sw s7, 0(sp) lw s7, 44(sp) lw s8, 40(sp) lw s9, 36(sp) addi sp, sp, 64 j whileLoopStart_0 whileLoopEnd_0: mv ra, s0 lw s0, 76(sp) sw s1, 52(sp) lw s1, 64(sp) sw s10, 28(sp) lw s10, 60(sp) sw s11, 24(sp) lw s11, 56(sp) sw s2, 16(sp) lw s2, 20(sp) sw s3, 8(sp) lw s3, 12(sp) sw s4, 0(sp) lw s4, 4(sp) addi sp, sp, 84 jr ra malloc: addi t5, zero, 5 bge a0, t5, ALIGN_WORD ALIGN_SUBWORD: rem t0, gp, a0 add gp, gp, t0 j INCREMENT_GP ALIGN_WORD: addi t4, zero, 4 rem t0, gp, t4 add gp, gp, t0 INCREMENT_GP: mv t0, gp add gp, gp, a0 mv a0, t0 jr ra jr ra updatePixel: lui t1, 1 #Loading val 6144 addi t1, t1, 2048 lui t2, 1 add t1, t1, t2 addi t3, zero, 4 addi t6, zero, 32 mul t5, a1, t6 add t4, t5, a0 mul t2, t3, t4 add t0, t1, t2 addi sp, sp, -4 sw t0, 0(sp) lw t1, 0(t0) mv t1, a2 sw t1, 0(t0) addi sp, sp, -4 sw t1, 0(sp) sw t0, 4(sp) addi sp, sp, 8 jr ra clearScreen: addi sp, sp, -4 sw s0, 0(sp) lui s0, 1 #Loading val 6144 addi s0, s0, 2048 lui t0, 1 add s0, s0, t0 addi sp, sp, -4 sw s0, 0(sp) addi sp, sp, -4 sw s1, 0(sp) addi s1, zero, 0 addi sp, sp, -4 sw s1, 0(sp) sw s1, 0(sp) forLoopStart_0: addi t0, zero, 24 blt s1, t0, forLoopBody_0 j forLoopEnd_0 forLoopBody_0: addi sp, sp, -4 sw s10, 0(sp) addi s10, zero, 0 addi sp, sp, -4 sw s10, 0(sp) sw s10, 0(sp) forLoopStart_1: addi t0, zero, 32 blt s10, t0, forLoopBody_1 j forLoopEnd_1 forLoopBody_1: lw t0, 0(s0) mv t0, a0 sw t0, 0(s0) addi sp, sp, -4 sw t0, 0(sp) sw s0, 20(sp) addi t0, zero, 4 lw s0, 20(sp) add s0, s0, t0 sw s0, 20(sp) addi sp, sp, 4 addi s10, s10, 1 sw s10, 0(sp) j forLoopStart_1 forLoopEnd_1: sw s10, 0(sp) lw s10, 4(sp) addi sp, sp, 8 addi s1, s1, 1 sw s1, 0(sp) j forLoopStart_0 forLoopEnd_0: sw s0, 8(sp) lw s0, 12(sp) sw s1, 0(sp) lw s1, 4(sp) addi sp, sp, 16 jr ra delay: addi sp, sp, -4 sw s0, 0(sp) addi s0, zero, 0 addi sp, sp, -4 sw s0, 0(sp) addi sp, sp, -4 sw s1, 0(sp) addi s1, zero, 0 addi sp, sp, -4 sw s1, 0(sp) sw s1, 0(sp) forLoopStart_2: blt s1, a0, forLoopBody_2 j forLoopEnd_2 forLoopBody_2: addi s0, s0, 1 sw s0, 8(sp) addi s1, s1, 1 sw s1, 0(sp) j forLoopStart_2 forLoopEnd_2: addi sp, sp, -4 sw a0, 0(sp) mv a0, s0 lw s0, 16(sp) sw s1, 4(sp) lw s1, 8(sp) addi sp, sp, 20 jr ra jr ra iterateFoodPosition: addi sp, sp, -4 sw s0, 0(sp) mv t0, a0 addi t0, t0, 4 lw s0, 0(t0) addi sp, sp, -4 sw s0, 0(sp) addi sp, sp, -4 sw s1, 0(sp) mv t0, a0 lw s1, 0(t0) addi sp, sp, -4 sw s1, 0(sp) addi t4, zero, 3 mul t3, s0, t4 addi t5, zero, 7 mul t4, s1, t5 add t2, t3, t4 addi t6, zero, 5 mul t5, a1, t6 add t1, t2, t5 addi t6, zero, 32 rem t0, t1, t6 addi sp, sp, -4 sw t0, 0(sp) addi a5, zero, 2 mul a4, s0, a5 addi a6, zero, 11 mul a5, s1, a6 add a3, a4, a5 addi a7, zero, 3 mul a6, a1, a7 add a2, a3, a6 addi a7, zero, 24 rem t6, a2, a7 addi sp, sp, -4 sw t6, 0(sp) mv a7, a0 addi a7, a7, 4 addi sp, sp, -4 sw s10, 0(sp) lw s10, 0(a7) mv s10, t0 sw s10, 0(a7) mv a7, a0 lw s10, 0(a7) mv s10, t6 sw s10, 0(a7) sw s0, 20(sp) lw s0, 24(sp) sw s1, 12(sp) lw s1, 16(sp) lw s10, 0(sp) addi sp, sp, 28 jr ra PROGRAM_END: add zero, zero, zero .data HEAP_START: .word 0
17.146504
38
0.514985
664afb060312f5130a4035d57d0db64fced697fe
453
asm
Assembly
oeis/112/A112336.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/112/A112336.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/112/A112336.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A112336: A number triangle related to the central binomial coefficients. ; Submitted by Jon Maiga ; 1,2,2,6,4,4,20,12,8,8,70,40,24,16,16,252,140,80,48,32,32,924,504,280,160,96,64,64,3432,1848,1008,560,320,192,128,128,12870,6864,3696,2016,1120,640,384,256,256,48620,25740,13728,7392,4032,2240,1280,768,512,512 lpb $0 add $1,1 sub $0,$1 lpe mov $2,$0 mul $2,2 sub $2,$0 sub $1,$2 mov $2,$1 mul $2,2 bin $2,$1 mov $1,2 pow $1,$0 mul $2,$1 mov $0,$2
22.65
210
0.675497
66ded6bbbf484adf9ab674ba3c1533888a9fa286
3,367
asm
Assembly
tests/Windows/basic/ApiLoops32/apiloops_32.asm
ncatlin/rgat
4375f738161c45485da68a07cdf3995e272b6254
[ "Apache-2.0" ]
381
2016-10-02T21:45:45.000Z
2022-03-04T05:28:55.000Z
tests/Windows/basic/ApiLoops32/apiloops_32.asm
ncatlin/rgat
4375f738161c45485da68a07cdf3995e272b6254
[ "Apache-2.0" ]
24
2016-10-03T02:39:07.000Z
2021-11-19T21:39:58.000Z
tests/Windows/basic/ApiLoops32/apiloops_32.asm
ncatlin/rgat
4375f738161c45485da68a07cdf3995e272b6254
[ "Apache-2.0" ]
45
2016-10-03T03:32:37.000Z
2022-03-18T20:29:36.000Z
.686p ;enable instructions .xmm ;enable instructions .model flat, stdcall ;use C naming convention (stdcall is default) .data ;initialized data message db "delmefff",0dh,0ah,0 message_end db 0 .data? .stack 4096 ;stack (optional, linker will default) .code ;code GetStdHandle PROTO STDCALL :DWORD ExitProcess PROTO STDCALL :DWORD WriteFile proto, hFile:dword, lpBuffer:near32, ;A handle to the device nNumberOfCharsToWrite:dword, ;The maximum number of bytes to be written. lpNumberOfbytesWritten:near32, ;A pointer to the variable that receives the number of bytes written lpOverlapped:near32 public main includelib msvcrtd includelib oldnames includelib kernel32 includelib legacy_stdio_definitions.lib ;for scanf, printf, ... main: ; exec count now 0 ; block 0, node 0, execs once mov ecx, 100 mov esi, ecx push -12 ;block 6 ;this tests how api calls are handled inside a deinstrumented loop loop1: mov eax, 20 ;node 3 mov ebx, 10 xchg eax, ebx push -11 call GetStdHandle ;7,8. block 1 is the thunk here ;block 2 ; mov ebx, eax ;9 push 0 lea eax, [ebp-4] ;11 push eax push (message_end - message) push offset message push ebx ;15 call writefile ;16,17 block 3 is the thunk here ;block 4 mov ecx, esi dec ecx mov esi, ecx jnz loop1 ;node 5, [->1 (x99), ->6 (x1)] call GetStdHandle ;block 5 ;block 7 ; exec count now 501 mov ecx, 1000 ;node 6 push ecx jmp loop2 ;block 8 ; exec count now 503 ;node 8-12, execs 1000 times ;test how api calls are handled at the base of a deinstrumented loop loop2: pop ecx dec ecx jz loop2end ;node 12, [->8 (x999), ->13 (x1)] ;block 9 mov eax, 20 mov ebx, 10 xchg eax, ebx push ecx push 1 call GetStdHandle ;block 10 in here jmp loop2 loop2end: ; exec count now 5503 mov ecx, 10000 push ecx push 2 jmp loop3 ; exec count now 5505 ;node 15-19, execs 10000 times ; this tests how api calls are handed at the top of a deinstrumented loop loop3: call GetStdHandle mov eax, 20 mov ebx, 10 xchg eax, ebx pop ecx dec ecx push ecx push 2 jnz loop3 ;node 19 [->15 (x9999), ->20 (x1)] pop eax ; exec count now 55505 mov ecx, 100000 jmp loop4 ; exec count now 55507 ;node 22-26, execs 100000 times loop4: mov eax, 20 mov ebx, 10 xchg eax, ebx dec ecx jnz loop4 ;node 24 [->22 (x99999), ->27 (x1)] ; exec count now 55507 mov ecx, 10000000 jmp loop5 ; exec count now 555509 ;node 29-33, execs 10000000 times loop5: mov eax, 20 mov ebx, 10 xchg eax, ebx dec ecx jnz loop5 ;node 33 [->29 (x999999), ->34 (x1)] ; exec count now 50555509 ; block ID 11 inc ecx ;node 34 inc ecx ;node 35 inc ecx ;node 36 inc ecx ;node 37 jmp final ;node 38 ;these should not execute or appear on the graph inc esi inc esi inc esi inc esi ; exec count now 50555514 final: xor ecx, ecx ret ;node 40 - ret to basethreadinitthunk ; exec count now 50,555,516 end main end
19.462428
115
0.610336
9f3d0cb9ff33aca2548efd1d1bd07d3d20ab7128
606
asm
Assembly
programs/oeis/123/A123290.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/123/A123290.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/123/A123290.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A123290: Number of distinct binomial(n,2)-tuples of zeros and ones that are obtained as the collection of all 2 X 2 minor determinants of a 2 X n matrix over GF(2). ; 2,8,36,156,652,2668,10796,43436,174252,698028,2794156,11180716,44731052,178940588,715795116,2863245996,11453115052,45812722348,183251413676,733006703276,2932028910252,11728119835308,46912487729836,187649967696556,750599904340652,3002399684471468 mov $1,2 pow $1,$0 mov $0,2 sub $1,1 mul $1,2 mov $3,$1 mul $3,2 add $0,$3 mul $1,2 mov $2,$1 mov $4,1 mul $4,$1 add $0,$4 add $2,3 mul $2,$1 mov $1,$0 add $1,$2 div $1,12 mul $1,2 add $1,2
25.25
247
0.739274
cfb8d82c001ce894c1b49991b46a7ab47e552fd3
4,293
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_553.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_553.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_553.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %rax push %rcx push %rdi push %rsi lea addresses_normal_ht+0xcba6, %rcx nop sub $20140, %r10 movw $0x6162, (%rcx) nop nop dec %r14 lea addresses_A_ht+0x813e, %rsi lea addresses_WT_ht+0x15256, %rdi nop nop inc %rax mov $66, %rcx rep movsb nop inc %rsi pop %rsi pop %rdi pop %rcx pop %rax pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r9 push %rbp push %rbx push %rsi // Faulty Load lea addresses_PSE+0x2fe6, %r12 nop nop nop nop nop sub $36260, %rbp movb (%r12), %bl lea oracles, %r9 and $0xff, %rbx shlq $12, %rbx mov (%r9,%rbx,1), %rbx pop %rsi pop %rbx pop %rbp pop %r9 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_PSE'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 6, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'src': {'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'} {'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 */
58.808219
2,999
0.663638
c31c7d581a72b820dbb2c4397c995577cece9f58
680
asm
Assembly
p2/judge.asm
t0ush1/ComputerOrganization
8093949bbd3e48678cea832133e9bf8990bbdf27
[ "MIT" ]
2
2022-03-06T06:05:24.000Z
2022-03-10T09:08:08.000Z
p2/judge.asm
t0ush1/ComputerOrganization
8093949bbd3e48678cea832133e9bf8990bbdf27
[ "MIT" ]
null
null
null
p2/judge.asm
t0ush1/ComputerOrganization
8093949bbd3e48678cea832133e9bf8990bbdf27
[ "MIT" ]
null
null
null
.data s: .space 20 #char s[20] .text li $v0, 5 #read n -> $s0 syscall move $s0, $v0 li $t0, 0 #for (int i = 0; i < n; i ++) i -> $t0 for_1_begin: beq $t0, $s0, for_1_end li $v0, 12 syscall sb $v0, s($t0) addi $t0, $t0, 1 j for_1_begin for_1_end: li $a0, 1 #flag = 1 li $t0, 0 #for (int i = 0, j = n-1; i < j; i ++, j --) addi $t1, $s0, -1 for_2_begin: beq $t0, $s0, for_2_end lb $t2, s($t0) lb $t3, s($t1) beq $t2, $t3, if_1_end #if (s[i] != s[j]) li $a0, 0 j for_2_end if_1_end: addi $t0, $t0, 1 addi $t1, $t1, -1 j for_2_begin for_2_end: li $v0, 1 syscall li $v0, 10 syscall
17.435897
65
0.491176
e0a5456a0a62ef5f24cb8b94289eb4690f252154
760
asm
Assembly
libsrc/_DEVELOPMENT/adt/w_vector/z80/asm_w_vector_back.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/w_vector/z80/asm_w_vector_back.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/w_vector/z80/asm_w_vector_back.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; =============================================================== ; Feb 2014 ; =============================================================== ; ; void *w_vector_back(w_vector_t *v) ; ; Return word stored at the end of the vector. ; If the vector is empty, return -1. ; ; =============================================================== SECTION code_adt_w_vector PUBLIC asm_w_vector_back EXTERN asm_w_array_back defc asm_w_vector_back = asm_w_array_back ; enter : hl = vector * ; ; exit : success ; ; de = & last word in vector ; hl = last word in vector ; carry reset ; ; fail if vector is empty ; ; hl = -1 ; carry set ; ; uses : af, bc, de, hl
21.714286
65
0.411842
8212897961d3cf9e7191335936e1718ce996f41b
122
asm
Assembly
src/test/resources/data/generationtests/glass-labels-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/glass-labels-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/glass-labels-expected.asm
cpcitor/mdlz80optimizer
75070d984e1f08474e6d397c7e0eb66d8be0c432
[ "Apache-2.0" ]
7
2020-07-02T06:00:05.000Z
2021-11-28T17:31:13.000Z
; Test to check labels are parsed like in Glass (reported by Torihino) DI: ds 1, 0 ; this should parse "DI" as a label
61
70
0.704918
ba5e701be506417fd30244c74558c3dc24b2de3a
395
asm
Assembly
II-sem/Microprocessor/Assembly Language Programs/loop-1.asm
ASHD27/JMI-MCA
61995cd2c8306b089a9b40d49d9716043d1145db
[ "MIT" ]
3
2020-03-18T16:27:33.000Z
2021-06-07T12:39:32.000Z
II-sem/Microprocessor/Assembly Language Programs/loop-1.asm
ASHD27/JMI-MCA
61995cd2c8306b089a9b40d49d9716043d1145db
[ "MIT" ]
null
null
null
II-sem/Microprocessor/Assembly Language Programs/loop-1.asm
ASHD27/JMI-MCA
61995cd2c8306b089a9b40d49d9716043d1145db
[ "MIT" ]
10
2019-11-11T06:49:10.000Z
2021-06-07T12:41:20.000Z
.model small .stack 100h .data str db 'HELLO WORLD$' .code main proc mov ax, @data mov ds, ax mov cx, 10 loop1: lea dx, str mov ah, 09h int 21h mov dl, 10 mov ah, 02h int 21h mov dl, 13 mov ah, 02h int 21h loop loop1 mov ah, 4ch int 21h main endp end main
13.62069
23
0.455696
24dcc9730cd6084636a7b36bf9c8504c608d2976
728
asm
Assembly
oeis/219/A219020.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/219/A219020.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/219/A219020.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A219020: Sum of the cubes of the first n even-indexed Fibonacci numbers divided by the sum of the first n terms. ; 1,7,45,297,2002,13630,93177,638001,4371235,29956465,205313076,1407206412,9645056785,66107994667,453110391657,3105663400665,21286529888422,145900036590826,1000013702089545,6854195814790005,46979356835860351,322001301602738017,2207029753248402600,15127206968164865112,103683419016126911137,710656726124358501775,4870913663801066310117,33385738920343521806601,228829258778238151039930,1568419072526366813446870,10750104248903824812306201,73682310669793849402376697,505026070439635953324153115 mov $1,2 mov $2,1 lpb $0 sub $0,1 add $2,$1 add $1,$2 lpe mov $0,$1 add $0,1 mul $0,$1 sub $0,6 div $0,4 add $0,1
42.823529
491
0.835165
5426b9d38157a95886a40cee531feaebfdf47c8a
952
asm
Assembly
knightos/templates/assembly/main.asm
t-c-b/fix-installer
e4a38cc7d6dfe4a23699ca7978d7da7fe0f44a1a
[ "MIT" ]
11
2015-02-09T12:33:55.000Z
2020-02-08T17:33:33.000Z
knightos/templates/assembly/main.asm
t-c-b/fix-installer
e4a38cc7d6dfe4a23699ca7978d7da7fe0f44a1a
[ "MIT" ]
10
2015-03-24T00:45:42.000Z
2020-06-11T03:07:34.000Z
knightos/templates/assembly/main.asm
t-c-b/fix-installer
e4a38cc7d6dfe4a23699ca7978d7da7fe0f44a1a
[ "MIT" ]
10
2015-03-24T00:17:14.000Z
2020-02-08T20:22:57.000Z
#include "kernel.inc" .db "KEXC" .db KEXC_ENTRY_POINT .dw start .db KEXC_STACK_SIZE .dw 20 .db KEXC_NAME .dw name .db KEXC_HEADER_END name: .db "{{ project_name }}", 0 start: ; This is an example program, replace it with your own! ; Get a lock on the devices we intend to use pcall(getLcdLock) pcall(getKeypadLock) ; Allocate and clear a buffer to store the contents of the screen pcall(allocScreenBuffer) pcall(clearBuffer) ; Draw `message` to 0, 0 (D, E = 0, 0) kld(hl, message) ld de, 0 pcall(drawStr) .loop: ; Copy the display buffer to the actual LCD pcall(fastCopy) ; flushKeys waits for all keys to be released pcall(flushKeys) ; waitKey waits for a key to be pressed, then returns the key code in A pcall(waitKey) cp kMODE jr nz, .loop ; Exit when the user presses "MODE" ret message: .db "Hello, world!", 0
21.155556
75
0.633403
0b35a949ac076d9b841e806be3ea512450b8ee3c
380
asm
Assembly
programs/oeis/100/A100679.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/100/A100679.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/100/A100679.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A100679: Floor of cube root of tetrahedral numbers. ; 0,1,1,2,2,3,3,4,4,5,6,6,7,7,8,8,9,9,10,10,11,12,12,13,13,14,14,15,15,16,17,17,18,18,19,19,20,20,21,22,22,23,23,24,24,25,25,26,26,27,28,28,29,29,30,30,31,31,32,33,33,34 add $0,3 mul $0,2 add $0,52 mul $0,2 add $0,3 mov $1,1 mov $2,$0 lpb $0 mov $0,1 mul $2,2 add $1,$2 add $1,$2 add $1,1 div $1,29 lpe sub $1,16
19
169
0.6
3436bf8ee57bdb7aa608f6f5646af2c3c6211aa2
87
asm
Assembly
src/instruction-test/and.asm
brgmnn/uob-cpu-simulator
e2a5367974e2712013409c7601274927d4023902
[ "MIT" ]
null
null
null
src/instruction-test/and.asm
brgmnn/uob-cpu-simulator
e2a5367974e2712013409c7601274927d4023902
[ "MIT" ]
null
null
null
src/instruction-test/and.asm
brgmnn/uob-cpu-simulator
e2a5367974e2712013409c7601274927d4023902
[ "MIT" ]
null
null
null
# bitwise and # and ra,rb,rc # ra = rb & rc mov r1,#7 mov r2,#28 and r0,r1,r2 halt
10.875
14
0.586207
ed0b764197f35136cb2bab8538cf2dd28065c834
6,338
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_138.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_138.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_138.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x1cae9, %rsi lea addresses_D_ht+0x12c4d, %rdi nop nop nop cmp %rbx, %rbx mov $25, %rcx rep movsw nop nop nop nop and %rax, %rax lea addresses_A_ht+0x13ffd, %rsi lea addresses_WC_ht+0x18ffd, %rdi clflush (%rdi) nop dec %r15 mov $111, %rcx rep movsw nop nop add $33252, %rdi lea addresses_UC_ht+0x184ed, %rsi lea addresses_WT_ht+0x7855, %rdi nop nop and %r12, %r12 mov $102, %rcx rep movsw nop nop nop nop inc %rbx lea addresses_WC_ht+0x26c5, %rcx nop sub $13405, %rbx vmovups (%rcx), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $1, %xmm2, %r12 nop nop nop nop nop sub $47885, %rcx lea addresses_A_ht+0x11bb5, %rbx nop nop nop nop nop cmp $3073, %r15 vmovups (%rbx), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $1, %xmm0, %rcx nop nop nop cmp $44934, %r15 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r15 pop %r12 ret .global s_faulty_load s_faulty_load: push %r12 push %r8 push %r9 push %rbp push %rbx push %rcx push %rdi // Store lea addresses_A+0x1f5ad, %rbp nop nop nop nop nop add %rcx, %rcx movl $0x51525354, (%rbp) nop nop nop nop nop and %r8, %r8 // Load lea addresses_WT+0x147fd, %rbp nop nop nop add %rdi, %rdi mov (%rbp), %bx add $30863, %rbx // Store lea addresses_WC+0x19db9, %r9 nop nop nop nop add $41321, %r12 mov $0x5152535455565758, %rbp movq %rbp, (%r9) nop nop nop nop nop inc %rdi // Store lea addresses_US+0x67d, %r8 nop nop nop xor $51811, %rbp movl $0x51525354, (%r8) nop nop nop cmp $47151, %rdi // Faulty Load lea addresses_normal+0x1b7fd, %rdi nop nop nop inc %r12 movups (%rdi), %xmm1 vpextrq $1, %xmm1, %rbp lea oracles, %r9 and $0xff, %rbp shlq $12, %rbp mov (%r9,%rbp,1), %rbp pop %rdi pop %rcx pop %rbx pop %rbp pop %r9 pop %r8 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 3, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 11, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 7, 'size': 4, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': True}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 2, 'size': 32, 'same': False, 'NT': False}} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
34.63388
2,999
0.658252
4e365b8f3c1ac8d92e3b3603078931b3993a4750
2,703
asm
Assembly
Data/ships/Krait.asm
ped7g/EliteNext
6e930f9b9924b295d7281ee6acb879600d7e597f
[ "Unlicense" ]
null
null
null
Data/ships/Krait.asm
ped7g/EliteNext
6e930f9b9924b295d7281ee6acb879600d7e597f
[ "Unlicense" ]
null
null
null
Data/ships/Krait.asm
ped7g/EliteNext
6e930f9b9924b295d7281ee6acb879600d7e597f
[ "Unlicense" ]
null
null
null
Krait: DB $01, $10, $0E DW KraitEdges DB KraitEdgesSize DB $00, $12 DB KraitVertSize DB KraitEdgesCnt DB $64,$00 DB KraitNormalsSize DB $14, $50, $1E DW KraitNormals DB $02, $10 DW KraitVertices DB 0,0 ; Type and Tactics KraitVertices: DB $00, $00, $60, $1F, $01, $23 DB $00, $12, $30, $3F, $03, $45 DB $00, $12, $30, $7F, $12, $45 DB $5A, $00, $03, $3F, $01, $44 DB $5A, $00, $03, $BF, $23, $55 DB $5A, $00, $57, $1C, $01, $11 DB $5A, $00, $57, $9C, $23, $33 DB $00, $05, $35, $09, $00, $33 DB $00, $07, $26, $06, $00, $33 DB $12, $07, $13, $89, $33, $33 DB $12, $07, $13, $09, $00, $00 DB $12, $0B, $27, $28, $44, $44 DB $12, $0B, $27, $68, $44, $44 DB $24, $00, $1E, $28, $44, $44 DB $12, $0B, $27, $A8, $55, $55 DB $12, $0B, $27, $E8, $55, $55 DB $24, $00, $1E, $A8, $55, $55 KraitVertSize equ $ - KraitVertices KraitEdges: DB $1F, $03, $00, $04, $1F, $12, $00, $08 DB $1F, $01, $00, $0C, $1F, $23, $00, $10 DB $1F, $35, $04, $10, $1F, $25, $10, $08 DB $1F, $14, $08, $0C, $1F, $04, $0C, $04 DB $1C, $01, $0C, $14, $1C, $23, $10, $18 DB $05, $45, $04, $08, $09, $00, $1C, $28 DB $06, $00, $20, $28, $09, $33, $1C, $24 DB $06, $33, $20, $24, $08, $44, $2C, $34 DB $08, $44, $34, $30, $07, $44, $30, $2C DB $07, $55, $38, $3C, $08, $55, $3C, $40 DB $08, $55, $40, $38 KraitEdgesSize equ $ - KraitEdges KraitEdgesCnt equ KraitEdgesSize/4 KraitNormals DB $1F, $07, $30, $06 DB $5F, $07, $30, $06, $DF, $07, $30, $06 DB $9F, $07, $30, $06, $3F, $4D, $00, $9A DB $BF, $4D, $00, $9A KraitNormalsSize equ $ - KraitNormals KraitLen equ $ - Krait
51.980769
70
0.301517
5fe5544008dfc9a05168f5fbd075ba5bcad12b60
1,109
asm
Assembly
_build/dispatcher/jmp_ippsTDESDecryptOFB_6c220ad5.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
1
2021-10-04T10:21:54.000Z
2021-10-04T10:21:54.000Z
_build/dispatcher/jmp_ippsTDESDecryptOFB_6c220ad5.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
_build/dispatcher/jmp_ippsTDESDecryptOFB_6c220ad5.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
extern m7_ippsTDESDecryptOFB:function extern n8_ippsTDESDecryptOFB:function extern y8_ippsTDESDecryptOFB:function extern e9_ippsTDESDecryptOFB:function extern l9_ippsTDESDecryptOFB:function extern n0_ippsTDESDecryptOFB:function extern k0_ippsTDESDecryptOFB:function extern ippcpJumpIndexForMergedLibs extern ippcpSafeInit:function segment .data align 8 dq .Lin_ippsTDESDecryptOFB .Larraddr_ippsTDESDecryptOFB: dq m7_ippsTDESDecryptOFB dq n8_ippsTDESDecryptOFB dq y8_ippsTDESDecryptOFB dq e9_ippsTDESDecryptOFB dq l9_ippsTDESDecryptOFB dq n0_ippsTDESDecryptOFB dq k0_ippsTDESDecryptOFB segment .text global ippsTDESDecryptOFB:function (ippsTDESDecryptOFB.LEndippsTDESDecryptOFB - ippsTDESDecryptOFB) .Lin_ippsTDESDecryptOFB: db 0xf3, 0x0f, 0x1e, 0xfa call ippcpSafeInit wrt ..plt align 16 ippsTDESDecryptOFB: db 0xf3, 0x0f, 0x1e, 0xfa mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc] movsxd rax, dword [rax] lea r11, [rel .Larraddr_ippsTDESDecryptOFB] mov r11, qword [r11+rax*8] jmp r11 .LEndippsTDESDecryptOFB:
28.435897
99
0.801623
664d8f9646f0f185a549ef8516c9f031f5b62779
796
asm
Assembly
programs/oeis/084/A084264.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/084/A084264.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/084/A084264.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A084264: Binomial transform of A084263. ; 1,2,7,22,64,176,464,1184,2944,7168,17152,40448,94208,217088,495616,1122304,2523136,5636096,12517376,27656192,60817408,133169152,290455552,631242752,1367343104,2952790016,6358564864,13656653824,29259464704 mov $5,2 mov $11,$0 lpb $5,1 mov $0,$11 sub $5,1 add $0,$5 sub $0,1 mov $7,$0 mov $9,2 lpb $9,1 mov $0,$7 sub $9,1 add $0,$9 sub $0,1 mov $2,$0 mov $4,1 lpb $2,1 bin $0,2 sub $2,1 add $4,1 add $4,$0 mov $0,1 mul $4,2 lpe mov $6,$4 mov $10,$9 lpb $10,1 mov $8,$6 sub $10,1 lpe lpe lpb $7,1 mov $7,0 sub $8,$6 lpe mov $3,$5 mov $6,$8 lpb $3,1 mov $1,$6 sub $3,1 lpe lpe lpb $11,1 sub $1,$6 mov $11,0 lpe
15.92
206
0.542714
eb475fe8d8a9caffb35fb76940a6f35df989de0b
632
asm
Assembly
LAB4/q2A.asm
Avigdor-Kolonimus/ASM
23327c9765ab1cc6bfe3dfaaa9a129dda5aac77a
[ "MIT" ]
null
null
null
LAB4/q2A.asm
Avigdor-Kolonimus/ASM
23327c9765ab1cc6bfe3dfaaa9a129dda5aac77a
[ "MIT" ]
null
null
null
LAB4/q2A.asm
Avigdor-Kolonimus/ASM
23327c9765ab1cc6bfe3dfaaa9a129dda5aac77a
[ "MIT" ]
null
null
null
dseg segment N1 DB 33H,41H,58H ;first number N2 DB 56H,44H,77H ;second number N3 DB ?,?,? ;answer number dseg ends sseg segment stack dw 100h dup(?) sseg ends cseg segment assume ds:dseg,cs:cseg,ss:sseg ;procedure add N1 and N2,answer saved in N3 sum proc ;initialization mov cx,3 mov si,2 ;summation of N1 and N2 P1: mov al,N1[si] mov bl,N2[si] add al,bl DAA jnc P2 cmp si,0 je P2 mov N3[si-1],1 P2: add N3[si],al dec si loop P1 ret sum endp start: mov ax,dseg mov ds,ax ;sum of two numbers call sum ; SOF: mov ah,4ch int 21h cseg ends end start
16.631579
44
0.631329
ee2d8f8632eedf409a2a268b8f2cdad2d2cc7480
442
asm
Assembly
ffight/lcs/enemy/18.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
6
2020-10-14T15:29:10.000Z
2022-02-12T18:58:54.000Z
ffight/lcs/enemy/18.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
ffight/lcs/enemy/18.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
1
2020-12-17T08:59:10.000Z
2020-12-17T08:59:10.000Z
copyright zengfr site:http://github.com/zengfr/romhack 002F84 move.w D1, ($18,A6) [boss+1C, enemy+1C] 002F88 move.w D1, ($1a,A6) [boss+18, enemy+18] 003A0A movem.l D0-D3, -(A6) 003A0E movem.l D0-D3, -(A6) 003DBC bpl $3dc2 [enemy+18] 003DC2 rts 003F78 rts [enemy+18] 0079C4 rts [boss+18, container+18, enemy+18] 0079D8 rts [1p+18, enemy+18] 009ACA dbra D5, $9ac8 copyright zengfr site:http://github.com/zengfr/romhack
29.466667
54
0.678733
b04f45e70cc47fb61e23011111fd5d0be0d11bd8
487
asm
Assembly
programs/oeis/305/A305716.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/305/A305716.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/305/A305716.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A305716: Order of rowmotion on the divisor lattice for n. ; 2,3,3,4,3,4,3,5,4,4,3,5,3,4,4,6,3,5,3,5,4,4,3,6,4,4,5,5,3,5,3,7,4,4,4,6,3,4,4,6,3,5,3,5,5,4,3,7,4,5,4,5,3,6,4,6,4,4,3,6,3,4,5,8,4,5,3,5,4,5,3,7,3,4,5,5,4,5,3,7,6,4,3,6,4,4,4,6,3,6,4,5,4,4,4,8,3,5,5,6,3,5,3,6 mov $1,$0 cal $0,86436 ; Maximum number of parts possible in a factorization of n; a(1) = 1, and for n > 1, a(n) = A001222(n) = bigomega(n). mov $2,17 lpb $2 sub $0,1 mul $1,$2 mov $2,$1 lpe mov $1,$0 add $1,2
34.785714
209
0.572895
bad7d98afaa8cf4818cf5da46076f87cacb4e010
717
asm
Assembly
PRG/objects/Bowser.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/objects/Bowser.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/objects/Bowser.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
.byte $00 ; Unknown purpose .byte OBJ_CFIRE_LASER, $18, $14 .byte OBJ_CFIRE_LASER, $1D, $14 .byte OBJ_CFIRE_LASER, $22, $14 .byte OBJ_INVISIBLELIFT, $31, $10 .byte OBJ_HOTFOOT_SHY, $4E, $15 .byte OBJ_ROTODISCCLOCKWISE, $55, $13 .byte OBJ_ROTODISCCLOCKWISE, $58, $0D .byte OBJ_ROTODISCCLOCKWISE, $5B, $07 .byte OBJ_PODOBOO, $6A, $09 .byte OBJ_PODOBOO, $6E, $09 .byte OBJ_PODOBOO, $74, $09 .byte OBJ_PODOBOO, $7A, $09 .byte OBJ_ROTODISCDUAL, $89, $12 .byte OBJ_THWOMPLEFTSLIDE, $9A, $0F .byte OBJ_PODOBOO, $A1, $13 .byte OBJ_ROTODISCCLOCKWISE, $A8, $18 .byte OBJ_PODOBOO, $AA, $13 .byte OBJ_PODOBOO, $AF, $13 .byte OBJ_BOSS_BOWSER, $CC, $0B .byte OBJ_BOSS_BOWSER, $EC, $0B .byte $FF ; Terminator
29.875
38
0.695955
cb442614a1f97a9f15b537f794f9eb7bc588b62d
167
asm
Assembly
kernel/src/font/font.asm
avdgrinten/windozz
9804e43ad52dcb717463c0f44594d62b00b3601b
[ "MIT" ]
1
2021-01-17T22:10:32.000Z
2021-01-17T22:10:32.000Z
kernel/src/font/font.asm
avdgrinten/windozz
9804e43ad52dcb717463c0f44594d62b00b3601b
[ "MIT" ]
null
null
null
kernel/src/font/font.asm
avdgrinten/windozz
9804e43ad52dcb717463c0f44594d62b00b3601b
[ "MIT" ]
null
null
null
; The Windozz Project ; Copyright (C) 2018-2019 by the Windozz authors. section .rodata ; Kernel Boot Log Font global font font: incbin "src/font/alotware.bin"
15.181818
49
0.730539
6cae7197a62d31642d7caf1b10475d869884a080
402
asm
Assembly
data/items/heal_hp.asm
pokeachromicdevs/pokeoctober
db74bb68bbfceac07eec6d64674bc24fd4c0b67f
[ "blessing" ]
1
2021-07-05T23:48:37.000Z
2021-07-05T23:48:37.000Z
data/items/heal_hp.asm
pokeachromicdevs/pokeoctober
db74bb68bbfceac07eec6d64674bc24fd4c0b67f
[ "blessing" ]
1
2020-12-16T01:11:20.000Z
2020-12-16T22:53:56.000Z
data/items/heal_hp.asm
pokeachromicdevs/pokeoctober
db74bb68bbfceac07eec6d64674bc24fd4c0b67f
[ "blessing" ]
1
2021-07-05T23:33:22.000Z
2021-07-05T23:33:22.000Z
HealingHPAmounts: dbw FRESH_WATER, 50 dbw SODA_POP, 60 dbw LEMONADE, 80 dbw HYPER_POTION, 200 dbw SUPER_POTION, 50 dbw POTION, 20 dbw MAX_POTION, MAX_STAT_VALUE dbw FULL_RESTORE, MAX_STAT_VALUE dbw MOOMOO_MILK, 100 dbw BERRY, 20 dbw APPLE, 50 dbw ENERGYPOWDER, 50 dbw ENERGY_ROOT, 200 dbw RAGECANDYBAR, 20 dbw BERRY_JUICE, 40 dbw -1, 0 ; end
22.333333
33
0.676617
f39264ad04d22d7187ef8a14ae384c0780fd9246
427
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/z80/am48_tan.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math48/z80/am48_tan.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math48/z80/am48_tan.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; double tan(double x) SECTION code_clib SECTION code_fp_math48 PUBLIC am48_tan EXTERN mm48_tan ; compute tan(AC') ; ; enter : AC' = double x in radians ; ; exit : success ; ; AC' = tan(x) ; carry reset ; ; fail if cos(x)=0 ; ; AC' = +-inf ; carry set, errno set ; ; uses : af, af', bc', de', hl' defc am48_tan = mm48_tan
15.25
38
0.489461
c3b327d1bdc237c08cc5e4b2368f2f70796bf949
2,063
asm
Assembly
boot/stage2/func32.asm
arushsharma24/KSOS
68eac53c81a8c89d02270ff099fd7d94740661a2
[ "MIT" ]
87
2020-04-30T12:05:14.000Z
2022-02-28T03:30:37.000Z
boot/stage2/func32.asm
arushsharma24/KSOS
68eac53c81a8c89d02270ff099fd7d94740661a2
[ "MIT" ]
14
2020-03-13T14:54:16.000Z
2020-04-19T06:28:56.000Z
boot/stage2/func32.asm
arushsharma24/KSOS
68eac53c81a8c89d02270ff099fd7d94740661a2
[ "MIT" ]
12
2020-04-29T12:28:38.000Z
2022-02-14T09:06:58.000Z
[bits 32] ;global print_esi_32 ;global set_cursor_32 ;global clrscr_32 print_esi_32: ;--------------ah = attribute pusha call get_cursor_32 ; mov ah,0x0f ;Background on foreground --------Keep this as a user input shl ebx,1 ;Multiply by 2 add ebx,0xb8000 ;Starting address _print_pm_loop: mov al,[esi] mov [ebx],ax add esi,1 add ebx,2 cmp al,0 je _print_pm_end jmp _print_pm_loop _print_pm_end: sub ebx,0xb8000 shr ebx,1 ;Divide by 2 dec ebx call set_cursor_32 popa ret set_cursor_32: ;bx is the location push dx push ax mov al, 0x0f ;Refer to the index register table port mapping for CRT (low byte) mov dx, 0x3d4 ; port number CRT index out dx,al ;Write 0x0f in port 0x3D4 --- note that the port registers are 1 byte in size mov dx,0x3d5 ;port number CRT data mov al,bl out dx,al mov al, 0x0e ;Refer to the index register table port mapping for CRT (high byte) mov dx, 0x3d4 ; port number CRT index out dx,al mov dx,0x3d5 ;port number CRT data mov al,bh out dx,al pop ax pop dx ret get_cursor_32: ;pusha can't use this becuase we expect a return vlaue in bx push dx push ax mov al, 0x0f ;Refer to the index register table port mapping for CRT (low byte) mov dx, 0x3d4 ; port number CRT index out dx,al ;Write 0x0f in port 0x3D4 --- note that the port registers are 1 byte in size mov dx,0x3d5 ;port number CRT data in al,dx ;Store the low byte in al -- Hardware forced to use al mov bl,al mov al, 0x0e ;Refer to the index register table port mapping for CRT (high byte) mov dx, 0x3d4 ; port number CRT index out dx,al ;Write 0x0f in port 0x3D4 --- note that the port registers are 1 byte in size mov dx,0x3d5 ;port number CRT data in al,dx ;Store the high byte in al -- Hardware forced to use al mov bh,al ;Store the high byte in bh pop ax pop dx ret clrscr_32: pusha mov ebx,0xb8000 ; mov ah,0x30 User defined mov al,' ' mov cx,2000 ;loop initialization clrscr_loop: mov word[ebx],ax add ebx,2 loop clrscr_loop mov bx,0 call set_cursor_32 popa ret
23.712644
91
0.71207
6a8ab826550861117970928b1e42c299f461c115
40,462
asm
Assembly
zombie.asm
TRamirez97/CSE460-HW02
321ead82e230f3f6948ef3934dba792d975d29f1
[ "MIT-0" ]
null
null
null
zombie.asm
TRamirez97/CSE460-HW02
321ead82e230f3f6948ef3934dba792d975d29f1
[ "MIT-0" ]
3
2020-03-10T00:51:25.000Z
2020-03-12T01:03:59.000Z
zombie.asm
TRamirez97/CSE460-HW02
321ead82e230f3f6948ef3934dba792d975d29f1
[ "MIT-0" ]
null
null
null
_zombie: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(void) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 push %ebp b: 89 e5 mov %esp,%ebp d: 51 push %ecx e: 83 ec 04 sub $0x4,%esp if(fork() > 0) 11: e8 65 02 00 00 call 27b <fork> 16: 85 c0 test %eax,%eax 18: 7e 0d jle 27 <main+0x27> sleep(5); // Let child exit before parent. 1a: 83 ec 0c sub $0xc,%esp 1d: 6a 05 push $0x5 1f: e8 ef 02 00 00 call 313 <sleep> 24: 83 c4 10 add $0x10,%esp exit(); 27: e8 57 02 00 00 call 283 <exit> 2c: 66 90 xchg %ax,%ax 2e: 66 90 xchg %ax,%ax 00000030 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 30: 55 push %ebp char *os; os = s; while((*s++ = *t++) != 0) 31: 31 c0 xor %eax,%eax { 33: 89 e5 mov %esp,%ebp 35: 53 push %ebx 36: 8b 4d 08 mov 0x8(%ebp),%ecx 39: 8b 5d 0c mov 0xc(%ebp),%ebx 3c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi while((*s++ = *t++) != 0) 40: 0f b6 14 03 movzbl (%ebx,%eax,1),%edx 44: 88 14 01 mov %dl,(%ecx,%eax,1) 47: 83 c0 01 add $0x1,%eax 4a: 84 d2 test %dl,%dl 4c: 75 f2 jne 40 <strcpy+0x10> ; return os; } 4e: 89 c8 mov %ecx,%eax 50: 5b pop %ebx 51: 5d pop %ebp 52: c3 ret 53: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 5a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00000060 <strcmp>: int strcmp(const char *p, const char *q) { 60: 55 push %ebp 61: 89 e5 mov %esp,%ebp 63: 53 push %ebx 64: 8b 4d 08 mov 0x8(%ebp),%ecx 67: 8b 55 0c mov 0xc(%ebp),%edx while(*p && *p == *q) 6a: 0f b6 01 movzbl (%ecx),%eax 6d: 0f b6 1a movzbl (%edx),%ebx 70: 84 c0 test %al,%al 72: 75 1d jne 91 <strcmp+0x31> 74: eb 2a jmp a0 <strcmp+0x40> 76: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 7d: 8d 76 00 lea 0x0(%esi),%esi 80: 0f b6 41 01 movzbl 0x1(%ecx),%eax p++, q++; 84: 83 c1 01 add $0x1,%ecx 87: 83 c2 01 add $0x1,%edx while(*p && *p == *q) 8a: 0f b6 1a movzbl (%edx),%ebx 8d: 84 c0 test %al,%al 8f: 74 0f je a0 <strcmp+0x40> 91: 38 d8 cmp %bl,%al 93: 74 eb je 80 <strcmp+0x20> return (uchar)*p - (uchar)*q; 95: 29 d8 sub %ebx,%eax } 97: 5b pop %ebx 98: 5d pop %ebp 99: c3 ret 9a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi a0: 31 c0 xor %eax,%eax return (uchar)*p - (uchar)*q; a2: 29 d8 sub %ebx,%eax } a4: 5b pop %ebx a5: 5d pop %ebp a6: c3 ret a7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi ae: 66 90 xchg %ax,%ax 000000b0 <strlen>: uint strlen(char *s) { b0: 55 push %ebp b1: 89 e5 mov %esp,%ebp b3: 8b 55 08 mov 0x8(%ebp),%edx int n; for(n = 0; s[n]; n++) b6: 80 3a 00 cmpb $0x0,(%edx) b9: 74 15 je d0 <strlen+0x20> bb: 31 c0 xor %eax,%eax bd: 8d 76 00 lea 0x0(%esi),%esi c0: 83 c0 01 add $0x1,%eax c3: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1) c7: 89 c1 mov %eax,%ecx c9: 75 f5 jne c0 <strlen+0x10> ; return n; } cb: 89 c8 mov %ecx,%eax cd: 5d pop %ebp ce: c3 ret cf: 90 nop for(n = 0; s[n]; n++) d0: 31 c9 xor %ecx,%ecx } d2: 5d pop %ebp d3: 89 c8 mov %ecx,%eax d5: c3 ret d6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi dd: 8d 76 00 lea 0x0(%esi),%esi 000000e0 <memset>: void* memset(void *dst, int c, uint n) { e0: 55 push %ebp e1: 89 e5 mov %esp,%ebp e3: 57 push %edi e4: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : e7: 8b 4d 10 mov 0x10(%ebp),%ecx ea: 8b 45 0c mov 0xc(%ebp),%eax ed: 89 d7 mov %edx,%edi ef: fc cld f0: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } f2: 89 d0 mov %edx,%eax f4: 5f pop %edi f5: 5d pop %ebp f6: c3 ret f7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi fe: 66 90 xchg %ax,%ax 00000100 <strchr>: char* strchr(const char *s, char c) { 100: 55 push %ebp 101: 89 e5 mov %esp,%ebp 103: 8b 45 08 mov 0x8(%ebp),%eax 106: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx for(; *s; s++) 10a: 0f b6 10 movzbl (%eax),%edx 10d: 84 d2 test %dl,%dl 10f: 75 12 jne 123 <strchr+0x23> 111: eb 1d jmp 130 <strchr+0x30> 113: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 117: 90 nop 118: 0f b6 50 01 movzbl 0x1(%eax),%edx 11c: 83 c0 01 add $0x1,%eax 11f: 84 d2 test %dl,%dl 121: 74 0d je 130 <strchr+0x30> if(*s == c) 123: 38 d1 cmp %dl,%cl 125: 75 f1 jne 118 <strchr+0x18> return (char*)s; return 0; } 127: 5d pop %ebp 128: c3 ret 129: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return 0; 130: 31 c0 xor %eax,%eax } 132: 5d pop %ebp 133: c3 ret 134: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 13b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 13f: 90 nop 00000140 <gets>: char* gets(char *buf, int max) { 140: 55 push %ebp 141: 89 e5 mov %esp,%ebp 143: 57 push %edi 144: 56 push %esi int i, cc; char c; for(i=0; i+1 < max; ){ 145: 31 f6 xor %esi,%esi { 147: 53 push %ebx 148: 89 f3 mov %esi,%ebx 14a: 83 ec 1c sub $0x1c,%esp 14d: 8b 7d 08 mov 0x8(%ebp),%edi for(i=0; i+1 < max; ){ 150: eb 2f jmp 181 <gets+0x41> 152: 8d b6 00 00 00 00 lea 0x0(%esi),%esi cc = read(0, &c, 1); 158: 83 ec 04 sub $0x4,%esp 15b: 8d 45 e7 lea -0x19(%ebp),%eax 15e: 6a 01 push $0x1 160: 50 push %eax 161: 6a 00 push $0x0 163: e8 33 01 00 00 call 29b <read> if(cc < 1) 168: 83 c4 10 add $0x10,%esp 16b: 85 c0 test %eax,%eax 16d: 7e 1c jle 18b <gets+0x4b> break; buf[i++] = c; 16f: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 173: 83 c7 01 add $0x1,%edi 176: 88 47 ff mov %al,-0x1(%edi) if(c == '\n' || c == '\r') 179: 3c 0a cmp $0xa,%al 17b: 74 23 je 1a0 <gets+0x60> 17d: 3c 0d cmp $0xd,%al 17f: 74 1f je 1a0 <gets+0x60> for(i=0; i+1 < max; ){ 181: 83 c3 01 add $0x1,%ebx 184: 89 fe mov %edi,%esi 186: 3b 5d 0c cmp 0xc(%ebp),%ebx 189: 7c cd jl 158 <gets+0x18> 18b: 89 f3 mov %esi,%ebx break; } buf[i] = '\0'; return buf; } 18d: 8b 45 08 mov 0x8(%ebp),%eax buf[i] = '\0'; 190: c6 03 00 movb $0x0,(%ebx) } 193: 8d 65 f4 lea -0xc(%ebp),%esp 196: 5b pop %ebx 197: 5e pop %esi 198: 5f pop %edi 199: 5d pop %ebp 19a: c3 ret 19b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 19f: 90 nop 1a0: 8b 75 08 mov 0x8(%ebp),%esi 1a3: 8b 45 08 mov 0x8(%ebp),%eax 1a6: 01 de add %ebx,%esi 1a8: 89 f3 mov %esi,%ebx buf[i] = '\0'; 1aa: c6 03 00 movb $0x0,(%ebx) } 1ad: 8d 65 f4 lea -0xc(%ebp),%esp 1b0: 5b pop %ebx 1b1: 5e pop %esi 1b2: 5f pop %edi 1b3: 5d pop %ebp 1b4: c3 ret 1b5: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 1bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 000001c0 <stat>: int stat(char *n, struct stat *st) { 1c0: 55 push %ebp 1c1: 89 e5 mov %esp,%ebp 1c3: 56 push %esi 1c4: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); 1c5: 83 ec 08 sub $0x8,%esp 1c8: 6a 00 push $0x0 1ca: ff 75 08 pushl 0x8(%ebp) 1cd: e8 f1 00 00 00 call 2c3 <open> if(fd < 0) 1d2: 83 c4 10 add $0x10,%esp 1d5: 85 c0 test %eax,%eax 1d7: 78 27 js 200 <stat+0x40> return -1; r = fstat(fd, st); 1d9: 83 ec 08 sub $0x8,%esp 1dc: ff 75 0c pushl 0xc(%ebp) 1df: 89 c3 mov %eax,%ebx 1e1: 50 push %eax 1e2: e8 f4 00 00 00 call 2db <fstat> close(fd); 1e7: 89 1c 24 mov %ebx,(%esp) r = fstat(fd, st); 1ea: 89 c6 mov %eax,%esi close(fd); 1ec: e8 ba 00 00 00 call 2ab <close> return r; 1f1: 83 c4 10 add $0x10,%esp } 1f4: 8d 65 f8 lea -0x8(%ebp),%esp 1f7: 89 f0 mov %esi,%eax 1f9: 5b pop %ebx 1fa: 5e pop %esi 1fb: 5d pop %ebp 1fc: c3 ret 1fd: 8d 76 00 lea 0x0(%esi),%esi return -1; 200: be ff ff ff ff mov $0xffffffff,%esi 205: eb ed jmp 1f4 <stat+0x34> 207: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 20e: 66 90 xchg %ax,%ax 00000210 <atoi>: int atoi(const char *s) { 210: 55 push %ebp 211: 89 e5 mov %esp,%ebp 213: 53 push %ebx 214: 8b 55 08 mov 0x8(%ebp),%edx int n; n = 0; while('0' <= *s && *s <= '9') 217: 0f be 02 movsbl (%edx),%eax 21a: 8d 48 d0 lea -0x30(%eax),%ecx 21d: 80 f9 09 cmp $0x9,%cl n = 0; 220: b9 00 00 00 00 mov $0x0,%ecx while('0' <= *s && *s <= '9') 225: 77 1e ja 245 <atoi+0x35> 227: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 22e: 66 90 xchg %ax,%ax n = n*10 + *s++ - '0'; 230: 83 c2 01 add $0x1,%edx 233: 8d 0c 89 lea (%ecx,%ecx,4),%ecx 236: 8d 4c 48 d0 lea -0x30(%eax,%ecx,2),%ecx while('0' <= *s && *s <= '9') 23a: 0f be 02 movsbl (%edx),%eax 23d: 8d 58 d0 lea -0x30(%eax),%ebx 240: 80 fb 09 cmp $0x9,%bl 243: 76 eb jbe 230 <atoi+0x20> return n; } 245: 89 c8 mov %ecx,%eax 247: 5b pop %ebx 248: 5d pop %ebp 249: c3 ret 24a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00000250 <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 250: 55 push %ebp 251: 89 e5 mov %esp,%ebp 253: 57 push %edi 254: 8b 45 10 mov 0x10(%ebp),%eax 257: 8b 55 08 mov 0x8(%ebp),%edx 25a: 56 push %esi 25b: 8b 75 0c mov 0xc(%ebp),%esi char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 25e: 85 c0 test %eax,%eax 260: 7e 13 jle 275 <memmove+0x25> 262: 01 d0 add %edx,%eax dst = vdst; 264: 89 d7 mov %edx,%edi 266: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 26d: 8d 76 00 lea 0x0(%esi),%esi *dst++ = *src++; 270: a4 movsb %ds:(%esi),%es:(%edi) while(n-- > 0) 271: 39 f8 cmp %edi,%eax 273: 75 fb jne 270 <memmove+0x20> return vdst; } 275: 5e pop %esi 276: 89 d0 mov %edx,%eax 278: 5f pop %edi 279: 5d pop %ebp 27a: c3 ret 0000027b <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 27b: b8 01 00 00 00 mov $0x1,%eax 280: cd 40 int $0x40 282: c3 ret 00000283 <exit>: SYSCALL(exit) 283: b8 02 00 00 00 mov $0x2,%eax 288: cd 40 int $0x40 28a: c3 ret 0000028b <wait>: SYSCALL(wait) 28b: b8 03 00 00 00 mov $0x3,%eax 290: cd 40 int $0x40 292: c3 ret 00000293 <pipe>: SYSCALL(pipe) 293: b8 04 00 00 00 mov $0x4,%eax 298: cd 40 int $0x40 29a: c3 ret 0000029b <read>: SYSCALL(read) 29b: b8 05 00 00 00 mov $0x5,%eax 2a0: cd 40 int $0x40 2a2: c3 ret 000002a3 <write>: SYSCALL(write) 2a3: b8 10 00 00 00 mov $0x10,%eax 2a8: cd 40 int $0x40 2aa: c3 ret 000002ab <close>: SYSCALL(close) 2ab: b8 15 00 00 00 mov $0x15,%eax 2b0: cd 40 int $0x40 2b2: c3 ret 000002b3 <kill>: SYSCALL(kill) 2b3: b8 06 00 00 00 mov $0x6,%eax 2b8: cd 40 int $0x40 2ba: c3 ret 000002bb <exec>: SYSCALL(exec) 2bb: b8 07 00 00 00 mov $0x7,%eax 2c0: cd 40 int $0x40 2c2: c3 ret 000002c3 <open>: SYSCALL(open) 2c3: b8 0f 00 00 00 mov $0xf,%eax 2c8: cd 40 int $0x40 2ca: c3 ret 000002cb <mknod>: SYSCALL(mknod) 2cb: b8 11 00 00 00 mov $0x11,%eax 2d0: cd 40 int $0x40 2d2: c3 ret 000002d3 <unlink>: SYSCALL(unlink) 2d3: b8 12 00 00 00 mov $0x12,%eax 2d8: cd 40 int $0x40 2da: c3 ret 000002db <fstat>: SYSCALL(fstat) 2db: b8 08 00 00 00 mov $0x8,%eax 2e0: cd 40 int $0x40 2e2: c3 ret 000002e3 <link>: SYSCALL(link) 2e3: b8 13 00 00 00 mov $0x13,%eax 2e8: cd 40 int $0x40 2ea: c3 ret 000002eb <mkdir>: SYSCALL(mkdir) 2eb: b8 14 00 00 00 mov $0x14,%eax 2f0: cd 40 int $0x40 2f2: c3 ret 000002f3 <chdir>: SYSCALL(chdir) 2f3: b8 09 00 00 00 mov $0x9,%eax 2f8: cd 40 int $0x40 2fa: c3 ret 000002fb <dup>: SYSCALL(dup) 2fb: b8 0a 00 00 00 mov $0xa,%eax 300: cd 40 int $0x40 302: c3 ret 00000303 <getpid>: SYSCALL(getpid) 303: b8 0b 00 00 00 mov $0xb,%eax 308: cd 40 int $0x40 30a: c3 ret 0000030b <sbrk>: SYSCALL(sbrk) 30b: b8 0c 00 00 00 mov $0xc,%eax 310: cd 40 int $0x40 312: c3 ret 00000313 <sleep>: SYSCALL(sleep) 313: b8 0d 00 00 00 mov $0xd,%eax 318: cd 40 int $0x40 31a: c3 ret 0000031b <uptime>: SYSCALL(uptime) 31b: b8 0e 00 00 00 mov $0xe,%eax 320: cd 40 int $0x40 322: c3 ret 00000323 <date>: SYSCALL(date) // date system call added for part 1 323: b8 16 00 00 00 mov $0x16,%eax 328: cd 40 int $0x40 32a: c3 ret 0000032b <getuid>: SYSCALL(getuid) //Gets the UID of a process 32b: b8 17 00 00 00 mov $0x17,%eax 330: cd 40 int $0x40 332: c3 ret 00000333 <getgid>: SYSCALL(getgid) //Gets the GID of a process 333: b8 18 00 00 00 mov $0x18,%eax 338: cd 40 int $0x40 33a: c3 ret 0000033b <getppid>: SYSCALL(getppid) //Gets the PPID of a process 33b: b8 19 00 00 00 mov $0x19,%eax 340: cd 40 int $0x40 342: c3 ret 00000343 <setuid>: SYSCALL(setuid) //Sets a new UID for a process 343: b8 1a 00 00 00 mov $0x1a,%eax 348: cd 40 int $0x40 34a: c3 ret 0000034b <setgid>: SYSCALL(setgid) //Sets a new GID for a process 34b: b8 1b 00 00 00 mov $0x1b,%eax 350: cd 40 int $0x40 352: c3 ret 00000353 <cps>: SYSCALL(cps) 353: b8 1c 00 00 00 mov $0x1c,%eax 358: cd 40 int $0x40 35a: c3 ret 35b: 66 90 xchg %ax,%ax 35d: 66 90 xchg %ax,%ax 35f: 90 nop 00000360 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { 360: 55 push %ebp 361: 89 e5 mov %esp,%ebp 363: 57 push %edi 364: 56 push %esi 365: 53 push %ebx 366: 83 ec 3c sub $0x3c,%esp 369: 89 4d c4 mov %ecx,-0x3c(%ebp) uint x; neg = 0; if(sgn && xx < 0){ neg = 1; x = -xx; 36c: 89 d1 mov %edx,%ecx { 36e: 89 45 b8 mov %eax,-0x48(%ebp) if(sgn && xx < 0){ 371: 85 d2 test %edx,%edx 373: 0f 89 7f 00 00 00 jns 3f8 <printint+0x98> 379: f6 45 08 01 testb $0x1,0x8(%ebp) 37d: 74 79 je 3f8 <printint+0x98> neg = 1; 37f: c7 45 bc 01 00 00 00 movl $0x1,-0x44(%ebp) x = -xx; 386: f7 d9 neg %ecx } else { x = xx; } i = 0; 388: 31 db xor %ebx,%ebx 38a: 8d 75 d7 lea -0x29(%ebp),%esi 38d: 8d 76 00 lea 0x0(%esi),%esi do{ buf[i++] = digits[x % base]; 390: 89 c8 mov %ecx,%eax 392: 31 d2 xor %edx,%edx 394: 89 cf mov %ecx,%edi 396: f7 75 c4 divl -0x3c(%ebp) 399: 0f b6 92 80 07 00 00 movzbl 0x780(%edx),%edx 3a0: 89 45 c0 mov %eax,-0x40(%ebp) 3a3: 89 d8 mov %ebx,%eax 3a5: 8d 5b 01 lea 0x1(%ebx),%ebx }while((x /= base) != 0); 3a8: 8b 4d c0 mov -0x40(%ebp),%ecx buf[i++] = digits[x % base]; 3ab: 88 14 1e mov %dl,(%esi,%ebx,1) }while((x /= base) != 0); 3ae: 39 7d c4 cmp %edi,-0x3c(%ebp) 3b1: 76 dd jbe 390 <printint+0x30> if(neg) 3b3: 8b 4d bc mov -0x44(%ebp),%ecx 3b6: 85 c9 test %ecx,%ecx 3b8: 74 0c je 3c6 <printint+0x66> buf[i++] = '-'; 3ba: c6 44 1d d8 2d movb $0x2d,-0x28(%ebp,%ebx,1) buf[i++] = digits[x % base]; 3bf: 89 d8 mov %ebx,%eax buf[i++] = '-'; 3c1: ba 2d 00 00 00 mov $0x2d,%edx while(--i >= 0) 3c6: 8b 7d b8 mov -0x48(%ebp),%edi 3c9: 8d 5c 05 d7 lea -0x29(%ebp,%eax,1),%ebx 3cd: eb 07 jmp 3d6 <printint+0x76> 3cf: 90 nop 3d0: 0f b6 13 movzbl (%ebx),%edx 3d3: 83 eb 01 sub $0x1,%ebx write(fd, &c, 1); 3d6: 83 ec 04 sub $0x4,%esp 3d9: 88 55 d7 mov %dl,-0x29(%ebp) 3dc: 6a 01 push $0x1 3de: 56 push %esi 3df: 57 push %edi 3e0: e8 be fe ff ff call 2a3 <write> while(--i >= 0) 3e5: 83 c4 10 add $0x10,%esp 3e8: 39 de cmp %ebx,%esi 3ea: 75 e4 jne 3d0 <printint+0x70> putc(fd, buf[i]); } 3ec: 8d 65 f4 lea -0xc(%ebp),%esp 3ef: 5b pop %ebx 3f0: 5e pop %esi 3f1: 5f pop %edi 3f2: 5d pop %ebp 3f3: c3 ret 3f4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi neg = 0; 3f8: c7 45 bc 00 00 00 00 movl $0x0,-0x44(%ebp) 3ff: eb 87 jmp 388 <printint+0x28> 401: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 408: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 40f: 90 nop 00000410 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 410: 55 push %ebp 411: 89 e5 mov %esp,%ebp 413: 57 push %edi 414: 56 push %esi 415: 53 push %ebx 416: 83 ec 2c sub $0x2c,%esp int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 419: 8b 75 0c mov 0xc(%ebp),%esi 41c: 0f b6 1e movzbl (%esi),%ebx 41f: 84 db test %bl,%bl 421: 0f 84 b8 00 00 00 je 4df <printf+0xcf> ap = (uint*)(void*)&fmt + 1; 427: 8d 45 10 lea 0x10(%ebp),%eax 42a: 83 c6 01 add $0x1,%esi write(fd, &c, 1); 42d: 8d 7d e7 lea -0x19(%ebp),%edi state = 0; 430: 31 d2 xor %edx,%edx ap = (uint*)(void*)&fmt + 1; 432: 89 45 d0 mov %eax,-0x30(%ebp) 435: eb 37 jmp 46e <printf+0x5e> 437: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 43e: 66 90 xchg %ax,%ax 440: 89 55 d4 mov %edx,-0x2c(%ebp) c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ state = '%'; 443: ba 25 00 00 00 mov $0x25,%edx if(c == '%'){ 448: 83 f8 25 cmp $0x25,%eax 44b: 74 17 je 464 <printf+0x54> write(fd, &c, 1); 44d: 83 ec 04 sub $0x4,%esp 450: 88 5d e7 mov %bl,-0x19(%ebp) 453: 6a 01 push $0x1 455: 57 push %edi 456: ff 75 08 pushl 0x8(%ebp) 459: e8 45 fe ff ff call 2a3 <write> 45e: 8b 55 d4 mov -0x2c(%ebp),%edx } else { putc(fd, c); 461: 83 c4 10 add $0x10,%esp for(i = 0; fmt[i]; i++){ 464: 0f b6 1e movzbl (%esi),%ebx 467: 83 c6 01 add $0x1,%esi 46a: 84 db test %bl,%bl 46c: 74 71 je 4df <printf+0xcf> c = fmt[i] & 0xff; 46e: 0f be cb movsbl %bl,%ecx 471: 0f b6 c3 movzbl %bl,%eax if(state == 0){ 474: 85 d2 test %edx,%edx 476: 74 c8 je 440 <printf+0x30> } } else if(state == '%'){ 478: 83 fa 25 cmp $0x25,%edx 47b: 75 e7 jne 464 <printf+0x54> if(c == 'd'){ 47d: 83 f8 64 cmp $0x64,%eax 480: 0f 84 9a 00 00 00 je 520 <printf+0x110> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 486: 81 e1 f7 00 00 00 and $0xf7,%ecx 48c: 83 f9 70 cmp $0x70,%ecx 48f: 74 5f je 4f0 <printf+0xe0> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 491: 83 f8 73 cmp $0x73,%eax 494: 0f 84 d6 00 00 00 je 570 <printf+0x160> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 49a: 83 f8 63 cmp $0x63,%eax 49d: 0f 84 8d 00 00 00 je 530 <printf+0x120> putc(fd, *ap); ap++; } else if(c == '%'){ 4a3: 83 f8 25 cmp $0x25,%eax 4a6: 0f 84 b4 00 00 00 je 560 <printf+0x150> write(fd, &c, 1); 4ac: 83 ec 04 sub $0x4,%esp 4af: c6 45 e7 25 movb $0x25,-0x19(%ebp) 4b3: 6a 01 push $0x1 4b5: 57 push %edi 4b6: ff 75 08 pushl 0x8(%ebp) 4b9: e8 e5 fd ff ff call 2a3 <write> putc(fd, c); } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); 4be: 88 5d e7 mov %bl,-0x19(%ebp) write(fd, &c, 1); 4c1: 83 c4 0c add $0xc,%esp 4c4: 6a 01 push $0x1 4c6: 83 c6 01 add $0x1,%esi 4c9: 57 push %edi 4ca: ff 75 08 pushl 0x8(%ebp) 4cd: e8 d1 fd ff ff call 2a3 <write> for(i = 0; fmt[i]; i++){ 4d2: 0f b6 5e ff movzbl -0x1(%esi),%ebx putc(fd, c); 4d6: 83 c4 10 add $0x10,%esp } state = 0; 4d9: 31 d2 xor %edx,%edx for(i = 0; fmt[i]; i++){ 4db: 84 db test %bl,%bl 4dd: 75 8f jne 46e <printf+0x5e> } } } 4df: 8d 65 f4 lea -0xc(%ebp),%esp 4e2: 5b pop %ebx 4e3: 5e pop %esi 4e4: 5f pop %edi 4e5: 5d pop %ebp 4e6: c3 ret 4e7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 4ee: 66 90 xchg %ax,%ax printint(fd, *ap, 16, 0); 4f0: 83 ec 0c sub $0xc,%esp 4f3: b9 10 00 00 00 mov $0x10,%ecx 4f8: 6a 00 push $0x0 4fa: 8b 5d d0 mov -0x30(%ebp),%ebx 4fd: 8b 45 08 mov 0x8(%ebp),%eax 500: 8b 13 mov (%ebx),%edx 502: e8 59 fe ff ff call 360 <printint> ap++; 507: 89 d8 mov %ebx,%eax 509: 83 c4 10 add $0x10,%esp state = 0; 50c: 31 d2 xor %edx,%edx ap++; 50e: 83 c0 04 add $0x4,%eax 511: 89 45 d0 mov %eax,-0x30(%ebp) 514: e9 4b ff ff ff jmp 464 <printf+0x54> 519: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi printint(fd, *ap, 10, 1); 520: 83 ec 0c sub $0xc,%esp 523: b9 0a 00 00 00 mov $0xa,%ecx 528: 6a 01 push $0x1 52a: eb ce jmp 4fa <printf+0xea> 52c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi putc(fd, *ap); 530: 8b 5d d0 mov -0x30(%ebp),%ebx write(fd, &c, 1); 533: 83 ec 04 sub $0x4,%esp putc(fd, *ap); 536: 8b 03 mov (%ebx),%eax write(fd, &c, 1); 538: 6a 01 push $0x1 ap++; 53a: 83 c3 04 add $0x4,%ebx write(fd, &c, 1); 53d: 57 push %edi 53e: ff 75 08 pushl 0x8(%ebp) putc(fd, *ap); 541: 88 45 e7 mov %al,-0x19(%ebp) write(fd, &c, 1); 544: e8 5a fd ff ff call 2a3 <write> ap++; 549: 89 5d d0 mov %ebx,-0x30(%ebp) 54c: 83 c4 10 add $0x10,%esp state = 0; 54f: 31 d2 xor %edx,%edx 551: e9 0e ff ff ff jmp 464 <printf+0x54> 556: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 55d: 8d 76 00 lea 0x0(%esi),%esi putc(fd, c); 560: 88 5d e7 mov %bl,-0x19(%ebp) write(fd, &c, 1); 563: 83 ec 04 sub $0x4,%esp 566: e9 59 ff ff ff jmp 4c4 <printf+0xb4> 56b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 56f: 90 nop s = (char*)*ap; 570: 8b 45 d0 mov -0x30(%ebp),%eax 573: 8b 18 mov (%eax),%ebx ap++; 575: 83 c0 04 add $0x4,%eax 578: 89 45 d0 mov %eax,-0x30(%ebp) if(s == 0) 57b: 85 db test %ebx,%ebx 57d: 74 17 je 596 <printf+0x186> while(*s != 0){ 57f: 0f b6 03 movzbl (%ebx),%eax state = 0; 582: 31 d2 xor %edx,%edx while(*s != 0){ 584: 84 c0 test %al,%al 586: 0f 84 d8 fe ff ff je 464 <printf+0x54> 58c: 89 75 d4 mov %esi,-0x2c(%ebp) 58f: 89 de mov %ebx,%esi 591: 8b 5d 08 mov 0x8(%ebp),%ebx 594: eb 1a jmp 5b0 <printf+0x1a0> s = "(null)"; 596: bb 78 07 00 00 mov $0x778,%ebx while(*s != 0){ 59b: 89 75 d4 mov %esi,-0x2c(%ebp) 59e: b8 28 00 00 00 mov $0x28,%eax 5a3: 89 de mov %ebx,%esi 5a5: 8b 5d 08 mov 0x8(%ebp),%ebx 5a8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 5af: 90 nop write(fd, &c, 1); 5b0: 83 ec 04 sub $0x4,%esp s++; 5b3: 83 c6 01 add $0x1,%esi 5b6: 88 45 e7 mov %al,-0x19(%ebp) write(fd, &c, 1); 5b9: 6a 01 push $0x1 5bb: 57 push %edi 5bc: 53 push %ebx 5bd: e8 e1 fc ff ff call 2a3 <write> while(*s != 0){ 5c2: 0f b6 06 movzbl (%esi),%eax 5c5: 83 c4 10 add $0x10,%esp 5c8: 84 c0 test %al,%al 5ca: 75 e4 jne 5b0 <printf+0x1a0> 5cc: 8b 75 d4 mov -0x2c(%ebp),%esi state = 0; 5cf: 31 d2 xor %edx,%edx 5d1: e9 8e fe ff ff jmp 464 <printf+0x54> 5d6: 66 90 xchg %ax,%ax 5d8: 66 90 xchg %ax,%ax 5da: 66 90 xchg %ax,%ax 5dc: 66 90 xchg %ax,%ax 5de: 66 90 xchg %ax,%ax 000005e0 <free>: static Header base; static Header *freep; void free(void *ap) { 5e0: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 5e1: a1 28 0a 00 00 mov 0xa28,%eax { 5e6: 89 e5 mov %esp,%ebp 5e8: 57 push %edi 5e9: 56 push %esi 5ea: 53 push %ebx 5eb: 8b 5d 08 mov 0x8(%ebp),%ebx 5ee: 8b 10 mov (%eax),%edx bp = (Header*)ap - 1; 5f0: 8d 4b f8 lea -0x8(%ebx),%ecx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 5f3: 39 c8 cmp %ecx,%eax 5f5: 73 19 jae 610 <free+0x30> 5f7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 5fe: 66 90 xchg %ax,%ax 600: 39 d1 cmp %edx,%ecx 602: 72 14 jb 618 <free+0x38> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 604: 39 d0 cmp %edx,%eax 606: 73 10 jae 618 <free+0x38> { 608: 89 d0 mov %edx,%eax for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 60a: 8b 10 mov (%eax),%edx 60c: 39 c8 cmp %ecx,%eax 60e: 72 f0 jb 600 <free+0x20> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 610: 39 d0 cmp %edx,%eax 612: 72 f4 jb 608 <free+0x28> 614: 39 d1 cmp %edx,%ecx 616: 73 f0 jae 608 <free+0x28> break; if(bp + bp->s.size == p->s.ptr){ 618: 8b 73 fc mov -0x4(%ebx),%esi 61b: 8d 3c f1 lea (%ecx,%esi,8),%edi 61e: 39 fa cmp %edi,%edx 620: 74 1e je 640 <free+0x60> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; 622: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 625: 8b 50 04 mov 0x4(%eax),%edx 628: 8d 34 d0 lea (%eax,%edx,8),%esi 62b: 39 f1 cmp %esi,%ecx 62d: 74 28 je 657 <free+0x77> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 62f: 89 08 mov %ecx,(%eax) freep = p; } 631: 5b pop %ebx freep = p; 632: a3 28 0a 00 00 mov %eax,0xa28 } 637: 5e pop %esi 638: 5f pop %edi 639: 5d pop %ebp 63a: c3 ret 63b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 63f: 90 nop bp->s.size += p->s.ptr->s.size; 640: 03 72 04 add 0x4(%edx),%esi 643: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 646: 8b 10 mov (%eax),%edx 648: 8b 12 mov (%edx),%edx 64a: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 64d: 8b 50 04 mov 0x4(%eax),%edx 650: 8d 34 d0 lea (%eax,%edx,8),%esi 653: 39 f1 cmp %esi,%ecx 655: 75 d8 jne 62f <free+0x4f> p->s.size += bp->s.size; 657: 03 53 fc add -0x4(%ebx),%edx freep = p; 65a: a3 28 0a 00 00 mov %eax,0xa28 p->s.size += bp->s.size; 65f: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 662: 8b 53 f8 mov -0x8(%ebx),%edx 665: 89 10 mov %edx,(%eax) } 667: 5b pop %ebx 668: 5e pop %esi 669: 5f pop %edi 66a: 5d pop %ebp 66b: c3 ret 66c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00000670 <malloc>: return freep; } void* malloc(uint nbytes) { 670: 55 push %ebp 671: 89 e5 mov %esp,%ebp 673: 57 push %edi 674: 56 push %esi 675: 53 push %ebx 676: 83 ec 1c sub $0x1c,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 679: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ 67c: 8b 3d 28 0a 00 00 mov 0xa28,%edi nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 682: 8d 70 07 lea 0x7(%eax),%esi 685: c1 ee 03 shr $0x3,%esi 688: 83 c6 01 add $0x1,%esi if((prevp = freep) == 0){ 68b: 85 ff test %edi,%edi 68d: 0f 84 ad 00 00 00 je 740 <malloc+0xd0> base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 693: 8b 07 mov (%edi),%eax if(p->s.size >= nunits){ 695: 8b 48 04 mov 0x4(%eax),%ecx 698: 39 f1 cmp %esi,%ecx 69a: 73 71 jae 70d <malloc+0x9d> 69c: 81 fe 00 10 00 00 cmp $0x1000,%esi 6a2: bb 00 10 00 00 mov $0x1000,%ebx 6a7: 0f 43 de cmovae %esi,%ebx p = sbrk(nu * sizeof(Header)); 6aa: 8d 0c dd 00 00 00 00 lea 0x0(,%ebx,8),%ecx 6b1: 89 4d e4 mov %ecx,-0x1c(%ebp) 6b4: eb 1b jmp 6d1 <malloc+0x61> 6b6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 6bd: 8d 76 00 lea 0x0(%esi),%esi for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 6c0: 8b 10 mov (%eax),%edx if(p->s.size >= nunits){ 6c2: 8b 4a 04 mov 0x4(%edx),%ecx 6c5: 39 f1 cmp %esi,%ecx 6c7: 73 4f jae 718 <malloc+0xa8> 6c9: 8b 3d 28 0a 00 00 mov 0xa28,%edi 6cf: 89 d0 mov %edx,%eax p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 6d1: 39 c7 cmp %eax,%edi 6d3: 75 eb jne 6c0 <malloc+0x50> p = sbrk(nu * sizeof(Header)); 6d5: 83 ec 0c sub $0xc,%esp 6d8: ff 75 e4 pushl -0x1c(%ebp) 6db: e8 2b fc ff ff call 30b <sbrk> if(p == (char*)-1) 6e0: 83 c4 10 add $0x10,%esp 6e3: 83 f8 ff cmp $0xffffffff,%eax 6e6: 74 1b je 703 <malloc+0x93> hp->s.size = nu; 6e8: 89 58 04 mov %ebx,0x4(%eax) free((void*)(hp + 1)); 6eb: 83 ec 0c sub $0xc,%esp 6ee: 83 c0 08 add $0x8,%eax 6f1: 50 push %eax 6f2: e8 e9 fe ff ff call 5e0 <free> return freep; 6f7: a1 28 0a 00 00 mov 0xa28,%eax if((p = morecore(nunits)) == 0) 6fc: 83 c4 10 add $0x10,%esp 6ff: 85 c0 test %eax,%eax 701: 75 bd jne 6c0 <malloc+0x50> return 0; } } 703: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 706: 31 c0 xor %eax,%eax } 708: 5b pop %ebx 709: 5e pop %esi 70a: 5f pop %edi 70b: 5d pop %ebp 70c: c3 ret if(p->s.size >= nunits){ 70d: 89 c2 mov %eax,%edx 70f: 89 f8 mov %edi,%eax 711: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(p->s.size == nunits) 718: 39 ce cmp %ecx,%esi 71a: 74 54 je 770 <malloc+0x100> p->s.size -= nunits; 71c: 29 f1 sub %esi,%ecx 71e: 89 4a 04 mov %ecx,0x4(%edx) p += p->s.size; 721: 8d 14 ca lea (%edx,%ecx,8),%edx p->s.size = nunits; 724: 89 72 04 mov %esi,0x4(%edx) freep = prevp; 727: a3 28 0a 00 00 mov %eax,0xa28 } 72c: 8d 65 f4 lea -0xc(%ebp),%esp return (void*)(p + 1); 72f: 8d 42 08 lea 0x8(%edx),%eax } 732: 5b pop %ebx 733: 5e pop %esi 734: 5f pop %edi 735: 5d pop %ebp 736: c3 ret 737: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 73e: 66 90 xchg %ax,%ax base.s.ptr = freep = prevp = &base; 740: c7 05 28 0a 00 00 2c movl $0xa2c,0xa28 747: 0a 00 00 base.s.size = 0; 74a: bf 2c 0a 00 00 mov $0xa2c,%edi base.s.ptr = freep = prevp = &base; 74f: c7 05 2c 0a 00 00 2c movl $0xa2c,0xa2c 756: 0a 00 00 for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 759: 89 f8 mov %edi,%eax base.s.size = 0; 75b: c7 05 30 0a 00 00 00 movl $0x0,0xa30 762: 00 00 00 if(p->s.size >= nunits){ 765: e9 32 ff ff ff jmp 69c <malloc+0x2c> 76a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi prevp->s.ptr = p->s.ptr; 770: 8b 0a mov (%edx),%ecx 772: 89 08 mov %ecx,(%eax) 774: eb b1 jmp 727 <malloc+0xb7>
33.774624
60
0.412016
d13fa53a52ffcabdb13493003c2292e6736ec3a4
211
asm
Assembly
programs/oeis/147/A147753.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/147/A147753.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/147/A147753.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A147753: Number of maximum-size subsets of {1,2,3,...,n} whose geometric means are an integer. ; 0,0,0,1,1,1,1,2,1,1,1,1,1,1,1,2,2,2,2,2 mov $1,$0 add $0,8 add $1,1 mov $2,$0 lpb $2 div $1,2 div $2,4 lpe
17.583333
96
0.601896
063a65c3386320de2e0672c1a9b03d6adb729d14
1,081
asm
Assembly
programs/oeis/135/A135671.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/135/A135671.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/135/A135671.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A135671: a(n) = ceiling(n - n^(2/3)). ; 0,1,1,2,3,3,4,4,5,6,7,7,8,9,9,10,11,12,12,13,14,15,15,16,17,18,18,19,20,21,22,22,23,24,25,26,26,27,28,29,30,30,31,32,33,34,34,35,36,37,38,39,39,40,41,42,43,44,44,45,46,47,48,48,49,50,51,52,53,54,54,55,56,57,58,59,59,60,61,62,63,64,64,65,66,67,68,69,70,70,71,72,73,74,75,76,76,77,78,79,80,81,82,82,83,84,85,86,87,88,88,89,90,91,92,93,94,94,95,96,97,98,99,100,100,101,102,103,104,105,106,107,107,108,109,110,111,112,113,114,114,115,116,117,118,119,120,121,121,122,123,124,125,126,127,128,128,129,130,131,132,133,134,135,135,136,137,138,139,140,141,142,142,143,144,145,146,147,148,149,150,150,151,152,153,154,155,156,157,157,158,159,160,161,162,163,164,165,165,166,167,168,169,170,171,172,173,173,174,175,176,177,178,179,180,180,181,182,183,184,185,186,187,188,189,189,190,191,192,193,194,195,196,197,197,198,199,200,201,202,203,204,205,205,206,207,208,209,210,211 mov $2,$0 add $0,1 cal $0,100196 ; Numbers of positive integer cubes <= n^2. mov $1,3 mov $3,$2 mov $4,$0 add $4,41 sub $3,$4 mul $3,2 add $3,338 add $1,$3 sub $1,257 div $1,2
63.588235
863
0.682701
d8fecd6006ff52a989bc10b4d5d91ba407a5b6db
520
asm
Assembly
programs/oeis/087/A087030.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/087/A087030.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/087/A087030.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A087030: n "reflected" in the next prime: a(n)=2p-n, p is smallest prime > n. ; 3,4,7,6,9,8,15,14,13,12,15,14,21,20,19,18,21,20,27,26,25,24,35,34,33,32,31,30,33,32,43,42,41,40,39,38,45,44,43,42,45,44,51,50,49,48,59,58,57,56,55,54,65,64,63,62,61,60,63,62,73,72,71,70,69,68,75,74,73,72,75,74,85,84,83,82,81,80,87,86,85,84,95,94,93,92,91,90,105,104,103,102,101,100,99,98,105,104,103,102 mov $2,$0 add $0,1 seq $0,308046 ; a(n) = 2*nextprime(n - 1) - 2*n, where nextprime(n) is the smallest prime > n. add $0,3 add $0,$2
57.777778
305
0.648077
250348b07c881db00447fe89b81c942d9661e3cf
209
asm
Assembly
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sdcc_iy/esx_m_errh.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sdcc_iy/esx_m_errh.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sdcc_iy/esx_m_errh.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void esx_m_errh(void (*handler)(uint8_t error)) SECTION code_esxdos PUBLIC _esx_m_errh EXTERN _esx_m_errh_fastcall _esx_m_errh: pop af pop hl push hl push af jp _esx_m_errh_fastcall
11.611111
49
0.732057
7375f6132e19a5696767062a99b7bd375f147469
1,327
asm
Assembly
velvet/equates.asm
bushy555/ZX-Spectrum-1-Bit-Routines
4d336dec9d7abc979a97af76d515104a9263f127
[ "BSD-3-Clause" ]
59
2015-02-28T14:15:56.000Z
2022-03-26T12:06:01.000Z
velvet/equates.asm
bushy555/ZX-Spectrum-1-Bit-Routines
4d336dec9d7abc979a97af76d515104a9263f127
[ "BSD-3-Clause" ]
1
2016-08-22T05:32:43.000Z
2016-08-22T09:33:28.000Z
velvet/equates.asm
bushy555/ZX-Spectrum-1-Bit-Routines
4d336dec9d7abc979a97af76d515104a9263f127
[ "BSD-3-Clause" ]
9
2015-02-28T14:16:31.000Z
2022-01-18T17:52:48.000Z
c0 equ #93 cis0 equ #9c d0 equ #a5 dis0 equ #af e0 equ #b9 f0 equ #c4 fis0 equ #d0 g0 equ #dc gis0 equ #e9 a0 equ #f7 ais0 equ #106 b0 equ #115 c1 equ #126 cis1 equ #137 d1 equ #14a dis1 equ #15e e1 equ #172 f1 equ #188 fis1 equ #1a0 g1 equ #1b8 gis1 equ #1d3 a1 equ #1ee ais1 equ #20c b1 equ #22b c2 equ #24c cis2 equ #26f d2 equ #294 dis2 equ #2bb e2 equ #2e5 f2 equ #311 fis2 equ #33f g2 equ #371 gis2 equ #3a5 a2 equ #3dd ais2 equ #417 b2 equ #456 c3 equ #498 cis3 equ #4de d3 equ #528 dis3 equ #576 e3 equ #5c9 f3 equ #621 fis3 equ #67f g3 equ #6e2 gis3 equ #74a a3 equ #7b9 ais3 equ #82f b3 equ #8ab c4 equ #92f cis4 equ #9bb d4 equ #a4f dis4 equ #aec e4 equ #b93 f4 equ #c43 fis4 equ #cfd g4 equ #dc3 gis4 equ #e95 a4 equ #f73 ais4 equ #105e b4 equ #1157 c5 equ #125f cis5 equ #1377 d5 equ #149f dis5 equ #15d9 e5 equ #1725 f5 equ #1886 fis5 equ #19fb g5 equ #1b86 gis5 equ #1d29 a5 equ #1ee5 ais5 equ #20bc b5 equ #22ae c6 equ #24be cis6 equ #26ed d6 equ #293e dis6 equ #2bb1 e6 equ #2e4a f6 equ #310b fis6 equ #33f6 g6 equ #370d gis6 equ #3a53 a6 equ #3dcb ais6 equ #4177 b6 equ #455c c7 equ #497b cis7 equ #4dda d7 equ #527b dis7 equ #5763 e7 equ #5c95 f7 equ #6216 fis7 equ #67eb g7 equ #6e19 gis7 equ #74a5 a7 equ #7b95
13.822917
15
0.645064
a31cc4b079584087d294d57569badc943b723e66
477
asm
Assembly
programs/oeis/325/A325102.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/325/A325102.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/325/A325102.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A325102: Number of ordered pairs of positive integers up to n with no binary carries. ; 0,0,2,2,8,10,12,12,26,32,38,40,46,48,50,50,80,94,108,114,128,134,140,142,156,162,168,170,176,178,180,180,242,272,302,316,346,360,374,380,410,424,438,444,458,464,470,472,502,516,530,536,550,556,562,564,578 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 sub $2,1 sub $0,$2 seq $0,80100 ; a(n) = 2^(number of 0's in binary representation of n). sub $0,1 add $1,$0 lpe mul $1,2 mov $0,$1
29.8125
206
0.662474
075f529a0c9d204a2efdae866f3b4779fa7b49ed
3,979
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48_notsx.log_21829_251.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48_notsx.log_21829_251.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48_notsx.log_21829_251.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 %r9 push %rax push %rcx lea addresses_UC_ht+0x115fc, %rax nop nop nop nop add $39831, %r9 movb $0x61, (%rax) sub $16988, %rcx pop %rcx pop %rax pop %r9 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %rax push %rcx push %rsi // Faulty Load lea addresses_UC+0x105fc, %rsi nop nop nop nop nop dec %rcx mov (%rsi), %eax lea oracles, %r10 and $0xff, %rax shlq $12, %rax mov (%r10,%rax,1), %rax pop %rsi pop %rcx pop %rax pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_UC', 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': True, 'size': 4, 'type': 'addresses_UC', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 10}, '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 */
66.316667
2,999
0.662478
558fb9bcca6aed487fde417cbf4810d1433a5372
142
asm
Assembly
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/mak.lzh/mak/Pole.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/mak.lzh/mak/Pole.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/mak.lzh/mak/Pole.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: Pole.asm Type: file Size: 32120 Last-Modified: '1992-02-13T07:47:46Z' SHA-1: 30B836E3053C39BDC70EDBDC9FAAEB76D6130D49 Description: null
20.285714
47
0.809859
7ccb29e21531f64618eaf6a198b813934557a840
5,109
asm
Assembly
src/amd64/debuggera.asm
dmarov/chamd
005c1395ad41e4387836c0b26b105fbeb4e98a8d
[ "MIT" ]
22
2021-08-31T21:54:46.000Z
2022-03-26T13:01:17.000Z
src/amd64/debuggera.asm
yzx20051/chamd
e4c42845a3cd948f1a88313799a43e6c51f4bdb7
[ "MIT" ]
7
2022-01-04T14:13:41.000Z
2022-03-11T17:17:06.000Z
src/amd64/debuggera.asm
yzx20051/chamd
e4c42845a3cd948f1a88313799a43e6c51f4bdb7
[ "MIT" ]
8
2021-09-18T00:10:34.000Z
2022-03-12T13:35:03.000Z
;RCX: 1st integer argument ;RDX: 2nd integer argument ;R8: 3rd integer argument ;R9: 4th integer argument CALLBACK struct A qword ? S qword ? CALLBACK ends ASMENTRY_STACK struct ;keep this 16 byte aligned Scratchspace qword ? Scratchspace2 qword ? Scratchspace3 qword ? Scratchspace4 qword ? Originalmxcsr qword ? OriginalRAX qword ? ;0 OriginalRBX qword ? ;1 OriginalRCX qword ? ;2 OriginalRDX qword ? ;3 OriginalRSI qword ? ;4 OriginalRDI qword ? ;5 OriginalRBP qword ? ;6 OriginalRSP qword ? ;7 not really 'original' OriginalR8 qword ? ;8 OriginalR9 qword ? ;9 OriginalR10 qword ? ;10 OriginalR11 qword ? ;11 OriginalR12 qword ? ;12 OriginalR13 qword ? ;13 OriginalR14 qword ? ;14 OriginalR15 qword ? ;15 OriginalES qword ? ;16 OriginalDS qword ? ;17 OriginalSS qword ? ;18 fxsavespace db 512 dup(?) ;fpu state ;errorcode/returnaddress ;19 ;4096 bytes ;eip ;20 ;cs ;21 ;eflags ;esp ;ss ASMENTRY_STACK ends _TEXT SEGMENT 'CODE' EXTERN interrupt1_centry : proc EXTERN Int1JumpBackLocation : CALLBACK PUBLIC interrupt1_asmentry interrupt1_asmentry: ;save stack position push [Int1JumpBackLocation.A] ;push an errorcode on the stack so the stackindex enum type can stay the same relative to interrupts that do have an errorcode (int 14). Also helps with variable interrupt handlers sub rsp,4096 ;functions like setThreadContext adjust the stackframe entry directly. I can't have that messing up my own stack cld ;stack is aligned at this point sub rsp,SIZEOF ASMENTRY_STACK mov (ASMENTRY_STACK PTR [rsp]).OriginalRBP,rbp lea rbp,(ASMENTRY_STACK PTR [rsp]).OriginalRAX mov (ASMENTRY_STACK PTR [rsp]).OriginalRAX,rax mov (ASMENTRY_STACK PTR [rsp]).OriginalRBX,rbx mov (ASMENTRY_STACK PTR [rsp]).OriginalRCX,rcx mov (ASMENTRY_STACK PTR [rsp]).OriginalRDX,rdx mov (ASMENTRY_STACK PTR [rsp]).OriginalRSI,rsi mov (ASMENTRY_STACK PTR [rsp]).OriginalRDI,rdi mov (ASMENTRY_STACK PTR [rsp]).OriginalRSP,rsp mov (ASMENTRY_STACK PTR [rsp]).OriginalR8,r8 mov (ASMENTRY_STACK PTR [rsp]).OriginalR9,r9 mov (ASMENTRY_STACK PTR [rsp]).OriginalR10,r10 mov (ASMENTRY_STACK PTR [rsp]).OriginalR11,r11 mov (ASMENTRY_STACK PTR [rsp]).OriginalR12,r12 mov (ASMENTRY_STACK PTR [rsp]).OriginalR13,r13 mov (ASMENTRY_STACK PTR [rsp]).OriginalR14,r14 mov (ASMENTRY_STACK PTR [rsp]).OriginalR15,r15 fxsave (ASMENTRY_STACK PTR [rsp]).fxsavespace mov ax,ds mov word ptr (ASMENTRY_STACK PTR [rsp]).OriginalDS,ax mov ax,es mov word ptr (ASMENTRY_STACK PTR [rsp]).OriginalES,ax mov ax,ss mov word ptr (ASMENTRY_STACK PTR [rsp]).OriginalSS,ax mov ax,2bh mov ds,ax mov es,ax mov ax,18h mov ss,ax ; rbp= pointer to OriginalRAX cmp qword ptr [rbp+8*21+512+4096],010h ;check if origin is in kernelmode (check ss) je skipswap1 ;if so, skip the swapgs swapgs ;swap gs with the kernel version skipswap1: stmxcsr dword ptr (ASMENTRY_STACK PTR [rsp]).Originalmxcsr mov (ASMENTRY_STACK PTR [rsp]).scratchspace2,1f80h ldmxcsr dword ptr (ASMENTRY_STACK PTR [rsp]).scratchspace2 mov rcx,rbp call interrupt1_centry ldmxcsr dword ptr (ASMENTRY_STACK PTR [rsp]).Originalmxcsr cmp qword ptr [rbp+8*21+512+4096],10h ;was it a kernelmode interrupt ? je skipswap2 ;if so, skip the swapgs part swapgs ;swap back skipswap2: cmp al,1 ;restore state fxrstor (ASMENTRY_STACK PTR [rsp]).fxsavespace mov ax,word ptr (ASMENTRY_STACK PTR [rsp]).OriginalDS mov ds,ax mov ax,word ptr (ASMENTRY_STACK PTR [rsp]).OriginalES mov es,ax mov ax,word ptr (ASMENTRY_STACK PTR [rsp]).OriginalSS mov ss,ax mov rax,(ASMENTRY_STACK PTR [rsp]).OriginalRAX mov rbx,(ASMENTRY_STACK PTR [rsp]).OriginalRBX mov rcx,(ASMENTRY_STACK PTR [rsp]).OriginalRCX mov rdx,(ASMENTRY_STACK PTR [rsp]).OriginalRDX mov rsi,(ASMENTRY_STACK PTR [rsp]).OriginalRSI mov rdi,(ASMENTRY_STACK PTR [rsp]).OriginalRDI mov r8, (ASMENTRY_STACK PTR [rsp]).OriginalR8 mov r9, (ASMENTRY_STACK PTR [rsp]).OriginalR9 mov r10,(ASMENTRY_STACK PTR [rsp]).OriginalR10 mov r11,(ASMENTRY_STACK PTR [rsp]).OriginalR11 mov r12,(ASMENTRY_STACK PTR [rsp]).OriginalR12 mov r13,(ASMENTRY_STACK PTR [rsp]).OriginalR13 mov r14,(ASMENTRY_STACK PTR [rsp]).OriginalR14 mov r15,(ASMENTRY_STACK PTR [rsp]).OriginalR15 je skip_original_int1 ;stack unwind mov rbp,(ASMENTRY_STACK PTR [rsp]).OriginalRBP add rsp,SIZEOF ASMENTRY_STACK add rsp,4096 ;at this point [rsp] holds the original int1 handler ret ; used to be add rsp,8 ;+8 for the push 0 ;todo: do a jmp [Int1JumpBackLocationCPUNR] and have 256 Int1JumpBackLocationCPUNR's and each cpu goes to it's own interrupt1_asmentry[cpunr] ;jmp [Int1JumpBackLocation.A] ;<-works fine skip_original_int1: ;stack unwind mov rbp,(ASMENTRY_STACK PTR [rsp]).OriginalRBP add rsp,SIZEOF ASMENTRY_STACK add rsp,4096 add rsp,8 ;+8 for the push iretq _TEXT ENDS END
25.80303
213
0.716187
9e134b1d07072dbea5edc4e49535783cc9a9211c
869
asm
Assembly
kernel/compiler/define.asm
paulscottrobson/color-forth-6502
d4895c7ac747569f2a5269885d80cae7c0d83f0a
[ "MIT" ]
null
null
null
kernel/compiler/define.asm
paulscottrobson/color-forth-6502
d4895c7ac747569f2a5269885d80cae7c0d83f0a
[ "MIT" ]
null
null
null
kernel/compiler/define.asm
paulscottrobson/color-forth-6502
d4895c7ac747569f2a5269885d80cae7c0d83f0a
[ "MIT" ]
null
null
null
; ****************************************************************************** ; ****************************************************************************** ; ; Name : define.asm ; Purpose : Buffer processor (Define) ; Author : Paul Robson (paul@robsons.org.uk) ; Created : 2nd October 2019 ; ; ****************************************************************************** ; ****************************************************************************** ; ****************************************************************************** ; ; Define a new word ; ; ****************************************************************************** BPDefineWord: jsr UtilSearchAll ; does it already exist bcs _BPDWDuplicate jsr DictionaryCreate ; create new word in the dictionary. rts ; _BPDWDuplicate: .ferror "DUPLICATE DEF"
33.423077
80
0.291139
cdb0b089b2c55d373d92e3cc00f21343cdd3f917
339
asm
Assembly
programs/oeis/129/A129069.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/129/A129069.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/129/A129069.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A129069: Numbers n such that (n-3)/2 is prime. ; 7,9,13,17,25,29,37,41,49,61,65,77,85,89,97,109,121,125,137,145,149,161,169,181,197,205,209,217,221,229,257,265,277,281,301,305,317,329,337,349,361,365,385,389,397,401,425,449,457,461,469,481,485,505,517,529 seq $0,6005 ; The odd prime numbers together with 1. mul $0,2 max $0,4 add $0,3
42.375
208
0.702065
cbab835843b1c01dbb81870ca943d6f4d63da13e
459
asm
Assembly
oeis/077/A077824.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/077/A077824.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/077/A077824.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A077824: Expansion of (1-x)^(-1)/(1-3*x-2*x^2-2*x^3). ; Submitted by Jamie Morken(s4) ; 1,4,15,56,207,764,2819,10400,38367,141540,522155,1926280,7106231,26215564,96711715,356778736,1316190767,4855553204,17912598619,66081283800,243780155047,899328229980,3317707567635,12239339472960,45152090014111,166570364123524 mov $1,1 mov $2,1 lpb $0 sub $0,1 mul $1,3 add $1,$4 add $1,$3 add $1,1 mul $2,2 mov $4,$3 mov $3,$2 mov $2,$1 lpe mov $0,$1
24.157895
226
0.697168
819efebf1744582980a7279b47b2a5d9bfaa97f0
1,570
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_22_1600.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_22_1600.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_22_1600.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 %rdi push %rsi lea addresses_normal_ht+0xfc7a, %r10 xor %rdi, %rdi mov (%r10), %si nop nop nop nop nop xor $22626, %r10 pop %rsi pop %rdi pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r8 push %rax push %rdx push %rsi // Load lea addresses_D+0x15a82, %r8 nop nop nop nop cmp %r13, %r13 movb (%r8), %al nop nop nop nop cmp $15948, %r8 // Store mov $0x4ad340000000430, %rax clflush (%rax) nop nop nop sub %r10, %r10 movl $0x51525354, (%rax) and %r13, %r13 // Faulty Load lea addresses_WT+0x15930, %r13 clflush (%r13) nop nop add $24369, %rax movups (%r13), %xmm7 vpextrq $1, %xmm7, %r10 lea oracles, %rax and $0xff, %r10 shlq $12, %r10 mov (%rax,%r10,1), %r10 pop %rsi pop %rdx pop %rax pop %r8 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 8}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 1}} {'39': 22} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
18.255814
128
0.640764
9986e8bcfa41e386ee92b9430c681f2c6b04eb10
7,488
asm
Assembly
libtool/src/gmp-6.1.2/mpn/x86_64/coreihwl/mullo_basecase.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
278
2015-11-03T03:01:20.000Z
2022-01-20T18:21:05.000Z
libtool/src/gmp-6.1.2/mpn/x86_64/coreihwl/mullo_basecase.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
374
2015-11-03T12:37:22.000Z
2021-12-17T14:18:08.000Z
libtool/src/gmp-6.1.2/mpn/x86_64/coreihwl/mullo_basecase.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
96
2015-11-22T07:47:26.000Z
2022-01-20T19:52:19.000Z
dnl AMD64 mpn_mullo_basecase optimised for Intel Haswell. dnl Contributed to the GNU project by Torbjörn Granlund. dnl Copyright 2008, 2009, 2011-2013 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 mul_2 addmul_2 C AMD K8,K9 n/a n/a C AMD K10 n/a n/a C AMD bull n/a n/a C AMD pile n/a n/a C AMD steam ? ? C AMD bobcat n/a n/a C AMD jaguar ? ? C Intel P4 n/a n/a C Intel core n/a n/a C Intel NHM n/a n/a C Intel SBR n/a n/a C Intel IBR n/a n/a C Intel HWL 1.86 2.15 C Intel BWL ? ? C Intel atom n/a n/a C VIA nano n/a n/a C The inner loops of this code are the result of running a code generation and C optimisation tool suite written by David Harvey and Torbjörn Granlund. C TODO C * Implement proper cor2, replacing current cor0. C * Micro-optimise. C When playing with pointers, set this to $2 to fall back to conservative C indexing in wind-down code. define(`I',`$1') define(`rp', `%rdi') define(`up', `%rsi') define(`vp_param', `%rdx') define(`n', `%rcx') define(`vp', `%r8') define(`X0', `%r14') define(`X1', `%r15') define(`w0', `%r10') define(`w1', `%r11') define(`w2', `%r12') define(`w3', `%r13') define(`i', `%rbp') define(`v0', `%r9') define(`v1', `%rbx') C rax rbx rcx rdx rdi rsi rbp r8 r9 r10 r11 r12 r13 r14 r15 ABI_SUPPORT(DOS64) ABI_SUPPORT(STD64) ASM_START() TEXT ALIGN(32) PROLOGUE(mpn_mullo_basecase) FUNC_ENTRY(4) mov vp_param, vp mov (up), %rdx cmp $4, n jb L(small) push %rbx push %rbp push %r12 push %r13 mov (vp), v0 mov 8(vp), v1 lea 2(n), i shr $2, i neg n add $2, n push up C put entry `up' on stack test $1, R8(n) jnz L(m2x1) L(m2x0):mulx( v0, w0, w3) xor R32(w2), R32(w2) test $2, R8(n) jz L(m2b2) L(m2b0):lea -8(rp), rp lea -8(up), up jmp L(m2e0) L(m2b2):lea -24(rp), rp lea 8(up), up jmp L(m2e2) L(m2x1):mulx( v0, w2, w1) xor R32(w0), R32(w0) test $2, R8(n) jnz L(m2b3) L(m2b1):jmp L(m2e1) L(m2b3):lea -16(rp), rp lea -16(up), up jmp L(m2e3) ALIGN(16) L(m2tp):mulx( v1, %rax, w0) add %rax, w2 mov (up), %rdx mulx( v0, %rax, w1) adc $0, w0 add %rax, w2 adc $0, w1 add w3, w2 L(m2e1):mov w2, (rp) adc $0, w1 mulx( v1, %rax, w2) add %rax, w0 mov 8(up), %rdx adc $0, w2 mulx( v0, %rax, w3) add %rax, w0 adc $0, w3 add w1, w0 L(m2e0):mov w0, 8(rp) adc $0, w3 mulx( v1, %rax, w0) add %rax, w2 mov 16(up), %rdx mulx( v0, %rax, w1) adc $0, w0 add %rax, w2 adc $0, w1 add w3, w2 L(m2e3):mov w2, 16(rp) adc $0, w1 mulx( v1, %rax, w2) add %rax, w0 mov 24(up), %rdx adc $0, w2 mulx( v0, %rax, w3) add %rax, w0 adc $0, w3 add w1, w0 lea 32(up), up L(m2e2):mov w0, 24(rp) adc $0, w3 dec i lea 32(rp), rp jnz L(m2tp) L(m2ed):mulx( v1, %rax, w0) add %rax, w2 mov (up), %rdx mulx( v0, %rax, w1) add w2, %rax add w3, %rax mov %rax, (rp) mov (%rsp), up C restore `up' to beginning lea 16(vp), vp lea 8(rp,n,8), rp C put back rp to old rp + 2 add $2, n jge L(cor1) push %r14 push %r15 L(outer): mov (vp), v0 mov 8(vp), v1 lea (n), i sar $2, i mov (up), %rdx test $1, R8(n) jnz L(bx1) L(bx0): mov (rp), X1 mov 8(rp), X0 mulx( v0, %rax, w3) add %rax, X1 adc $0, w3 mulx( v1, %rax, w0) add %rax, X0 adc $0, w0 mov 8(up), %rdx mov X1, (rp) mulx( v0, %rax, w1) test $2, R8(n) jz L(b2) L(b0): lea 8(rp), rp lea 8(up), up jmp L(lo0) L(b2): mov 16(rp), X1 lea 24(rp), rp lea 24(up), up jmp L(lo2) L(bx1): mov (rp), X0 mov 8(rp), X1 mulx( v0, %rax, w1) add %rax, X0 mulx( v1, %rax, w2) adc $0, w1 mov X0, (rp) add %rax, X1 adc $0, w2 mov 8(up), %rdx test $2, R8(n) jnz L(b3) L(b1): lea 16(up), up lea 16(rp), rp jmp L(lo1) L(b3): mov 16(rp), X0 lea 32(up), up mulx( v0, %rax, w3) inc i jz L(cj3) jmp L(lo3) ALIGN(16) L(top): mulx( v0, %rax, w3) add w0, X1 adc $0, w2 L(lo3): add %rax, X1 adc $0, w3 mulx( v1, %rax, w0) add %rax, X0 adc $0, w0 lea 32(rp), rp add w1, X1 mov -16(up), %rdx mov X1, -24(rp) adc $0, w3 add w2, X0 mov -8(rp), X1 mulx( v0, %rax, w1) adc $0, w0 L(lo2): add %rax, X0 mulx( v1, %rax, w2) adc $0, w1 add w3, X0 mov X0, -16(rp) adc $0, w1 add %rax, X1 adc $0, w2 add w0, X1 mov -8(up), %rdx adc $0, w2 L(lo1): mulx( v0, %rax, w3) add %rax, X1 adc $0, w3 mov (rp), X0 mulx( v1, %rax, w0) add %rax, X0 adc $0, w0 add w1, X1 mov X1, -8(rp) adc $0, w3 mov (up), %rdx add w2, X0 mulx( v0, %rax, w1) adc $0, w0 L(lo0): add %rax, X0 adc $0, w1 mulx( v1, %rax, w2) add w3, X0 mov 8(rp), X1 mov X0, (rp) mov 16(rp), X0 adc $0, w1 add %rax, X1 adc $0, w2 mov 8(up), %rdx lea 32(up), up inc i jnz L(top) L(end): mulx( v0, %rax, w3) add w0, X1 adc $0, w2 L(cj3): add %rax, X1 adc $0, w3 mulx( v1, %rax, w0) add %rax, X0 add w1, X1 mov -16(up), %rdx mov X1, 8(rp) adc $0, w3 add w2, X0 mulx( v0, %rax, w1) add X0, %rax add w3, %rax mov %rax, 16(rp) mov 16(%rsp), up C restore `up' to beginning lea 16(vp), vp lea 24(rp,n,8), rp C put back rp to old rp + 2 add $2, n jl L(outer) pop %r15 pop %r14 jnz L(cor0) L(cor1):mov (vp), v0 mov 8(vp), v1 mov (up), %rdx mulx( v0, %r12, %rbp) C u0 x v2 add (rp), %r12 C FIXME: rp[0] still available in reg? adc %rax, %rbp mov 8(up), %r10 imul v0, %r10 imul v1, %rdx mov %r12, (rp) add %r10, %rdx add %rbp, %rdx mov %rdx, 8(rp) pop %rax C deallocate `up' copy pop %r13 pop %r12 pop %rbp pop %rbx FUNC_EXIT() ret L(cor0):mov (vp), %r11 imul (up), %r11 add %rax, %r11 mov %r11, (rp) pop %rax C deallocate `up' copy pop %r13 pop %r12 pop %rbp pop %rbx FUNC_EXIT() ret ALIGN(16) L(small): cmp $2, n jae L(gt1) L(n1): imul (vp), %rdx mov %rdx, (rp) FUNC_EXIT() ret L(gt1): ja L(gt2) L(n2): mov (vp), %r9 mulx( %r9, %rax, %rdx) mov %rax, (rp) mov 8(up), %rax imul %r9, %rax add %rax, %rdx mov 8(vp), %r9 mov (up), %rcx imul %r9, %rcx add %rcx, %rdx mov %rdx, 8(rp) FUNC_EXIT() ret L(gt2): L(n3): mov (vp), %r9 mulx( %r9, %rax, %r10) C u0 x v0 mov %rax, (rp) mov 8(up), %rdx mulx( %r9, %rax, %rdx) C u1 x v0 imul 16(up), %r9 C u2 x v0 add %rax, %r10 adc %rdx, %r9 mov 8(vp), %r11 mov (up), %rdx mulx( %r11, %rax, %rdx) C u0 x v1 add %rax, %r10 adc %rdx, %r9 imul 8(up), %r11 C u1 x v1 add %r11, %r9 mov %r10, 8(rp) mov 16(vp), %r10 mov (up), %rax imul %rax, %r10 C u0 x v2 add %r10, %r9 mov %r9, 16(rp) FUNC_EXIT() ret EPILOGUE()
17.5363
79
0.59602
fd730bbe89ce7b1bddf73389fc0d46a388b7435a
5,428
asm
Assembly
Examples/libraries/shared/shared.asm
agguro/linux-nasm
3e72083c3db6d7118eb2aa430b73e0d20e88456b
[ "Unlicense" ]
6
2020-07-19T18:34:43.000Z
2022-03-26T10:21:09.000Z
Examples/libraries/shared/shared.asm
NrdyBhu1/linux-nasm
3e72083c3db6d7118eb2aa430b73e0d20e88456b
[ "Unlicense" ]
null
null
null
Examples/libraries/shared/shared.asm
NrdyBhu1/linux-nasm
3e72083c3db6d7118eb2aa430b73e0d20e88456b
[ "Unlicense" ]
3
2020-07-19T18:35:10.000Z
2021-07-25T17:34:50.000Z
;name: sharedlib.asm ; ;build: release version: ; nasm -felf64 -o sharedlib.o sharedlib.asm ; ld -lc --dynamic-linker /lib64/ld-linux-x86-64.so.2 -shared -soname sharedlib.so -o sharedlib.so.1.0 sharedlib.o -R . ; ln -sf sharedlib.so.1.0 sharedlib.so ; debug/development version ; nasm -felf64 -Fdwarf -g -o sharedlib-dev.o sharedlib.asm ; ld -lc --dynamic-linker /lib64/ld-linux-x86-64.so.2 -shared -soname sharedlib-dev.so -o sharedlib-dev.so.1.0 sharedlib-dev.o -R . ; ln -sf sharedlib-dev.so.1.0 sharedlib-dev.so ; ;description: A "simple" shared library to use with hello.asm bits 64 [list -] %include "unistd.inc" [list +] ; five macros to make life a bit easier ; each global function/method/routine (whatever you call it) must start with the PROLOGUE %macro _prologue 0 push rbp mov rbp,rsp push rbx call .get_GOT .get_GOT: pop rbx add rbx,_GLOBAL_OFFSET_TABLE_+$$-.get_GOT wrt ..gotpc %endmacro ; each global function/method/routine (whatever you call it) must end with the EPILOGUE %macro _epilogue 0 mov rbx,[rbp-8] mov rsp,rbp pop rbp ret %endmacro ; macro to initiate and export the global procedure while defining it as a PROCEDURE ; doing so it's harder to forget to export it %macro _proc 1 global %1:function %1: _prologue %endmacro ; macro to end the procedure %macro _endp 0 _epilogue %endmacro ; self defined macro to declare global data and export it the same time %macro _globaldata 3 global %1:data (%1.end - %1) section .data %1: %2 %3 %1.end: %endmacro extern _GLOBAL_OFFSET_TABLE_ extern printf ;function from libc extern glib_major_version ;variable from libg ;global functions global getversion:function global getversionstring1:function global getversionstring2:function global printversionstring1:function global printversionstring2:function ;data accessable from the mainprogram global versionstring1:data (versionstring1.len) section .data ;global data residing in the mainprograms data section ;don't forget the eol (ascii 10) at the end to flush to stdout or you see nothing on screen. versionstring1: db "sharedlib version 1.0.0.0 by agguro residing in .data section of program",10,0 .len: equ $-versionstring1 major_version: dq glib_major_version wrt ..sym section .rodata ;local data versionnr: dw 1,0,0,0 .len: equ $-versionnr ;global data residing in the data section of the library versionstring2: db "sharedlib version 1.0.0.0 by agguro residing in .rodata section of library",10,0 .len: equ $-versionstring2 shortversion: dq 1 section .text _start: ;a local function, not accessable from the main (unless declared global) .localproc: mov rax,major_version wrt ..gotoff add rax,rbx mov rax,[rax] ret ;we need to add ret ourselves ;a global function to get the version number returned in rax _proc getversion ;two ways to get the external vaiable ;first if it's stored in the datasegment, but this is a long approach mov rax,major_version wrt ..gotoff ;get offset to GOT add rax,rbx ;add GOT to get the address to the addres of the variable mov rax,[rax] ;get the address of the variable mov rax,[rax] ;get the value ;second, the short approach, is directly from the external libary mov rax,qword[rbx + glib_major_version wrt ..got] ;read address mov rax,[rax] ;read value at address _endp ;Because versionstring1 is declared global supplied with a size, it will reside in the data ;section of the main program instead of the data section of the library. ;We have to access it as a global variable instead of local one, therefor we use wrt ..got ;https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/doc/nasmdoc.pdf page 120 _proc getversionstring1 ;residing in datasegment of the mainprogram mov rax,[rbx + versionstring1 wrt ..got] ;the adress to the version string _endp _proc printversionstring1 mov rdi,[rbx + versionstring1 wrt ..got] ;the adress to the version string xor rax,rax ;in .data section of using program call printf wrt ..plt _endp ;versionstring2 isn't declared global, it will reside in the data section of the library rather ;than in the mainprograms data section. Hence we need to use wrt ..gotoff to address it. ;https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/doc/nasmdoc.pdf page 120 _proc getversionstring2 ;residing in datasegment of the mainprogram mov rax,versionstring2 wrt ..gotoff ;the adress to the version string2 add rax,rbx _endp _proc printversionstring2 mov rdi,versionstring2 wrt ..gotoff ;the adress to the version string add rdi,rbx ;in .data section of library xor rax,rax call printf wrt ..plt _endp
37.434483
141
0.643515
dc0cb611ef6527a524d59fea51153e33412c5410
625
asm
Assembly
oeis/010/A010016.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/010/A010016.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/010/A010016.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A010016: a(0) = 1, a(n) = 26*n^2 + 2 for n>0. ; 1,28,106,236,418,652,938,1276,1666,2108,2602,3148,3746,4396,5098,5852,6658,7516,8426,9388,10402,11468,12586,13756,14978,16252,17578,18956,20386,21868,23402,24988,26626,28316,30058,31852,33698,35596,37546,39548,41602,43708,45866,48076,50338,52652,55018,57436,59906,62428,65002,67628,70306,73036,75818,78652,81538,84476,87466,90508,93602,96748,99946,103196,106498,109852,113258,116716,120226,123788,127402,131068,134786,138556,142378,146252,150178,154156,158186,162268,166402,170588,174826,179116 pow $1,$0 gcd $1,2 mov $3,$0 mul $3,$0 mov $2,$3 mul $2,26 add $1,$2 mov $0,$1
52.083333
496
0.7584
e7c364eabfc9743b12f45d461374d6daacd6b1b9
551
nasm
Assembly
Projetos/F-Assembly/src/nasm/factorial.nasm
LiuSeeker/Z01-Coldzera
097f0af689c0511598163bcf4c89afe987292f24
[ "Unlicense" ]
1
2018-04-20T10:41:30.000Z
2018-04-20T10:41:30.000Z
Projetos/F-Assembly/src/nasm/factorial.nasm
LiuSeeker/Z01-Coldzera
097f0af689c0511598163bcf4c89afe987292f24
[ "Unlicense" ]
76
2018-03-09T12:22:41.000Z
2018-05-18T11:47:17.000Z
Projetos/F-Assembly/src/nasm/factorial.nasm
LiuSeeker/Z01-Coldzera
097f0af689c0511598163bcf4c89afe987292f24
[ "Unlicense" ]
null
null
null
; Arquivo: Factorial.nasm ; Curso: Elementos de Sistemas ; Criado por: Luciano Soares ; Data: 27/03/2017 ; Calcula o fatorial do número em R0 e armazena o valor em R1. leaw $R0, %A movw (%A), %D movw (%A), %S decw %D decw %D leaw $R1, %A movw %D, (%A) leaw $R0, %A addw (%A), %S, %S leaw $R2, %A movw %S, (%A) decw %D leaw $7,%A jg nop leaw $R1, %A movw (%A), %D leaw $R0, %A movw %S, (%A) decw %D leaw $R1, %A movw %D, (%A) leaw $7, %A jg nop leaw $2, %A movw (%A), %D leaw $31, %A jg nop incw %D leaw $1, %A movw %D, (%A)
13.119048
62
0.555354
4c229e356f8b3410c5dc8a2500c54d1f9c3697f3
346
asm
Assembly
programs/oeis/078/A078489.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/078/A078489.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/078/A078489.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A078489: a(n)=j such that binomial(n,j)<binomial(n-1,j-2). ; 2,2,3,4,4,5,6,6,7,7,8,9,9,10,10,11,12,12,13,14,14,15,15,16,17,17,18,19,19,20,20,21,22,22,23,23,24,25,25,26,27,27,28,28,29,30,30,31,32,32,33,33,34,35,35,36,36,37,38,38,39,40,40,41,41,42,43,43,44,44,45,46,46,47 add $0,40 seq $0,73869 ; a(n) = Sum_{i=0..n} A002251(i)/(n+1). sub $0,23
49.428571
210
0.621387
36071bfeb4092f0e44dc555095851572b3563331
3,655
asm
Assembly
coverage/PENDING_SUBMIT/amdvlk/0594-COVERAGE-instruction-simplify-2792/work/variant/1_spirv_asm/shader.frag.asm
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
null
null
null
coverage/PENDING_SUBMIT/amdvlk/0594-COVERAGE-instruction-simplify-2792/work/variant/1_spirv_asm/shader.frag.asm
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
47
2021-03-11T07:42:51.000Z
2022-03-14T06:30:14.000Z
coverage/PENDING_SUBMIT/amdvlk/0594-COVERAGE-instruction-simplify-2792/work/variant/1_spirv_asm/shader.frag.asm
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
4
2021-03-09T13:37:19.000Z
2022-02-25T07:32:11.000Z
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 68 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %9 OpExecutionMode %4 OriginUpperLeft OpSource ESSL 320 OpName %4 "main" OpName %9 "_GLF_color" OpName %14 "buf0" OpMemberName %14 0 "_GLF_uniform_int_values" OpName %16 "" OpName %35 "i" OpDecorate %9 Location 0 OpDecorate %13 ArrayStride 16 OpMemberDecorate %14 0 Offset 0 OpDecorate %14 Block OpDecorate %16 DescriptorSet 0 OpDecorate %16 Binding 0 %2 = OpTypeVoid %3 = OpTypeFunction %2 %6 = OpTypeFloat 32 %7 = OpTypeVector %6 4 %8 = OpTypePointer Output %7 %9 = OpVariable %8 Output %10 = OpTypeInt 32 1 %11 = OpTypeInt 32 0 %12 = OpConstant %11 3 %13 = OpTypeArray %10 %12 %14 = OpTypeStruct %13 %15 = OpTypePointer Uniform %14 %16 = OpVariable %15 Uniform %17 = OpConstant %10 0 %18 = OpConstant %10 1 %19 = OpTypePointer Uniform %10 %23 = OpConstant %10 2 %34 = OpTypePointer Function %10 %44 = OpTypeBool %4 = OpFunction %2 None %3 %5 = OpLabel %35 = OpVariable %34 Function %20 = OpAccessChain %19 %16 %17 %18 %21 = OpLoad %10 %20 %22 = OpConvertSToF %6 %21 %24 = OpAccessChain %19 %16 %17 %23 %25 = OpLoad %10 %24 %26 = OpConvertSToF %6 %25 %27 = OpAccessChain %19 %16 %17 %23 %28 = OpLoad %10 %27 %29 = OpConvertSToF %6 %28 %30 = OpAccessChain %19 %16 %17 %18 %31 = OpLoad %10 %30 %32 = OpConvertSToF %6 %31 %33 = OpCompositeConstruct %7 %22 %26 %29 %32 OpStore %9 %33 OpStore %35 %18 OpBranch %36 %36 = OpLabel OpLoopMerge %38 %39 None OpBranch %40 %40 = OpLabel %41 = OpLoad %10 %35 %42 = OpAccessChain %19 %16 %17 %17 %43 = OpLoad %10 %42 %45 = OpSLessThan %44 %41 %43 OpBranchConditional %45 %37 %38 %37 = OpLabel %46 = OpLoad %10 %35 %47 = OpSGreaterThan %44 %46 %17 OpSelectionMerge %49 None OpBranchConditional %47 %48 %50 %48 = OpLabel OpBranch %49 %50 = OpLabel %51 = OpLoad %10 %35 OpSelectionMerge %54 None OpSwitch %51 %54 -1 %52 0 %53 %52 = OpLabel %55 = OpAccessChain %19 %16 %17 %23 %56 = OpLoad %10 %55 %57 = OpConvertSToF %6 %56 %58 = OpCompositeConstruct %7 %57 %57 %57 %57 OpStore %9 %58 OpBranch %54 %53 = OpLabel %60 = OpAccessChain %19 %16 %17 %18 %61 = OpLoad %10 %60 %62 = OpConvertSToF %6 %61 %63 = OpCompositeConstruct %7 %62 %62 %62 %62 OpStore %9 %63 OpReturn %54 = OpLabel OpBranch %49 %49 = OpLabel OpBranch %39 %39 = OpLabel %66 = OpLoad %10 %35 %67 = OpIAdd %10 %66 %18 OpStore %35 %67 OpBranch %36 %38 = OpLabel OpReturn OpFunctionEnd
33.842593
59
0.476334
eaa019b4dec11c8687cd7c71108979de06ea9cbd
356
asm
Assembly
maps/IndigoPlateau.asm
zavytar/pokecolorless
5fa4930f9f90acaff7ae62367e3d9feae0404464
[ "blessing" ]
null
null
null
maps/IndigoPlateau.asm
zavytar/pokecolorless
5fa4930f9f90acaff7ae62367e3d9feae0404464
[ "blessing" ]
null
null
null
maps/IndigoPlateau.asm
zavytar/pokecolorless
5fa4930f9f90acaff7ae62367e3d9feae0404464
[ "blessing" ]
null
null
null
IndigoPlateau_MapScripts: db 0 ; scene scripts db 1 ; callbacks callback MAPCALLBACK_NEWMAP, .Flypoint .DummyScene0: end .DummyScene1: end .DummyScene2: end .Flypoint: setflag ENGINE_FLYPOINT_INDIGO_PLATEAU return IndigoPlateau_MapEvents: db 0, 0 ; filler db 0 ; warp events db 0 ; coord events db 0 ; bg events db 0 ; object events
11.866667
39
0.741573
eae253f9b6789d9ae23e3d18595ed899d3403bc2
4,664
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1972.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_21829_1972.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_21829_1972.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 %r14 push %r15 push %rbp push %rdi push %rdx push %rsi lea addresses_WC_ht+0xb3b1, %rdi clflush (%rdi) nop xor $23098, %rbp movb (%rdi), %r15b nop nop nop nop nop inc %rdx lea addresses_WC_ht+0x471d, %r13 nop nop nop nop cmp %r14, %r14 movb $0x61, (%r13) nop nop nop nop nop xor $56795, %rdx lea addresses_UC_ht+0x1a31d, %rdx nop nop nop nop sub %r14, %r14 mov $0x6162636465666768, %r15 movq %r15, %xmm6 and $0xffffffffffffffc0, %rdx movaps %xmm6, (%rdx) nop nop nop nop dec %rdx pop %rsi pop %rdx pop %rdi pop %rbp pop %r15 pop %r14 pop %r13 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r9 push %rcx push %rdi push %rsi // Faulty Load lea addresses_A+0xa31d, %rdi nop nop nop nop nop xor $27416, %r9 movups (%rdi), %xmm0 vpextrq $0, %xmm0, %r13 lea oracles, %rdi and $0xff, %r13 shlq $12, %r13 mov (%rdi,%r13,1), %r13 pop %rsi pop %rdi pop %rcx pop %r9 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': True}} {'35': 21829} 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 */
45.72549
2,999
0.662736
d871660582adb78a083cfde03c95dc58bb703165
391
asm
Assembly
oeis/191/A191597.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/191/A191597.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/191/A191597.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A191597: Expansion of x*(1+3*x)/ ( (1-4*x)*(1+x+x^2)). ; Submitted by Jon Maiga ; 0,1,6,21,85,342,1365,5461,21846,87381,349525,1398102,5592405,22369621,89478486,357913941,1431655765,5726623062,22906492245,91625968981,366503875926,1466015503701,5864062014805,23456248059222,93824992236885,375299968947541 mov $2,1 lpb $0 add $2,3 pow $2,$0 mod $0,3 trn $0,1 lpe mov $0,$2 div $0,3
27.928571
223
0.731458
bec5c8b5ddd46eb0f2d552db91ddf090de623f32
376
asm
Assembly
oeis/255/A255738.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/255/A255738.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/255/A255738.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A255738: a(1) = 1; for n > 1, a(n) = 1*0^{A000120(n-1) - 1}. ; Submitted by Christian Krause ; 1,1,1,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 max $0,2 seq $0,209229 ; Characteristic function of powers of 2, cf. A000079.
53.714286
201
0.56383
785b8dff9cac374e680f2e4bf7d5e121e7ade4e6
7,167
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_881_1196.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_881_1196.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_881_1196.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r15 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_UC_ht+0x14cde, %rsi lea addresses_A_ht+0x9f6e, %rdi nop nop nop nop nop sub $44551, %r14 mov $11, %rcx rep movsb nop nop nop xor %rcx, %rcx lea addresses_A_ht+0x13cbe, %r14 nop nop nop nop nop and %r15, %r15 mov (%r14), %rdi nop nop nop xor %r15, %r15 lea addresses_UC_ht+0x16670, %r15 add $46146, %rdi mov $0x6162636465666768, %rsi movq %rsi, (%r15) nop nop nop cmp %rcx, %rcx lea addresses_WC_ht+0x97e, %rsi lea addresses_UC_ht+0xc19e, %rdi cmp $20864, %r14 mov $2, %rcx rep movsb cmp $4231, %r14 lea addresses_UC_ht+0x10c3d, %rsi lea addresses_D_ht+0x8bbe, %rdi nop nop dec %rax mov $108, %rcx rep movsb nop nop nop sub %r14, %r14 lea addresses_WT_ht+0xdd6e, %r15 nop nop add $47318, %r12 vmovups (%r15), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $0, %xmm1, %rax nop nop inc %rdi lea addresses_normal_ht+0xfb82, %rdi inc %r14 mov $0x6162636465666768, %rcx movq %rcx, %xmm3 vmovups %ymm3, (%rdi) nop nop nop nop dec %rcx lea addresses_D_ht+0x1612e, %rcx dec %r15 movb $0x61, (%rcx) cmp %rcx, %rcx lea addresses_WT_ht+0x370e, %r12 nop nop nop nop nop xor %rax, %rax mov (%r12), %esi nop nop nop add %r15, %r15 lea addresses_WC_ht+0xe29e, %rsi lea addresses_normal_ht+0x1538, %rdi nop nop nop nop nop xor %r9, %r9 mov $113, %rcx rep movsq nop xor %r14, %r14 lea addresses_D_ht+0xd076, %r15 nop and $24127, %rcx movb (%r15), %al nop dec %r9 lea addresses_A_ht+0x51b4, %r15 nop nop nop nop add $9437, %r9 movl $0x61626364, (%r15) nop add %r15, %r15 lea addresses_WC_ht+0x5d9e, %rsi lea addresses_normal_ht+0xf99e, %rdi nop nop nop nop cmp %r9, %r9 mov $79, %rcx rep movsb nop nop nop nop and $62382, %r9 lea addresses_A_ht+0x1992e, %rsi clflush (%rsi) nop nop nop nop add %r12, %r12 mov $0x6162636465666768, %r9 movq %r9, %xmm2 vmovups %ymm2, (%rsi) xor %rax, %rax pop %rsi pop %rdi pop %rcx pop %rax pop %r9 pop %r15 pop %r14 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %r8 push %rdi // Faulty Load lea addresses_A+0xe99e, %r14 add $64984, %r10 vmovups (%r14), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $1, %xmm2, %rdi lea oracles, %r8 and $0xff, %rdi shlq $12, %rdi mov (%r8,%rdi,1), %rdi pop %rdi pop %r8 pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'35': 881} 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 */
34.291866
2,642
0.657179