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
b27654e2730cab5d694f3a53770cf467aa5cae9e
322
asm
Assembly
libsrc/target/laser500/graphics/w_respixl.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/target/laser500/graphics/w_respixl.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/target/laser500/graphics/w_respixl.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib PUBLIC w_respixel EXTERN __laser500_mode EXTERN res_MODE0 EXTERN res_MODE2 ; in: hl,de = (x,y) coordinate of pixel w_respixel: ld a,(__laser500_mode) cp 2 jp z,res_MODE2 ; Reduce coordinates down to h=x, l=y ld a,h and a ret nz ld h,l ld a,d and a ret nz ld l,e jp res_MODE0
11.5
43
0.692547
5ac430d5020780447696a87b339f10bd7fe8b7ea
2,703
asm
Assembly
lib/third_party/mcu_vendor/renesas/rz_mcu_boards/core_package/generate/compiler/asm/vfp_init.asm
renesas-rx/amazon-freertos
1f50ef5b1971183c29c6d6748b4a0a3635de2fdf
[ "MIT" ]
7
2018-06-27T10:53:02.000Z
2020-08-07T05:32:13.000Z
lib/third_party/mcu_vendor/renesas/rz_mcu_boards/core_package/generate/compiler/asm/vfp_init.asm
renesas-rx/amazon-freertos
1f50ef5b1971183c29c6d6748b4a0a3635de2fdf
[ "MIT" ]
19
2018-12-07T03:41:15.000Z
2020-02-05T14:42:04.000Z
lib/third_party/mcu_vendor/renesas/rz_mcu_boards/core_package/generate/compiler/asm/vfp_init.asm
renesas-rx/amazon-freertos
1f50ef5b1971183c29c6d6748b4a0a3635de2fdf
[ "MIT" ]
11
2018-08-03T10:15:33.000Z
2020-12-07T03:26:10.000Z
@/******************************************************************************* @* DISCLAIMER @* This software is supplied by Renesas Electronics Corporation and is only @* intended for use with Renesas products. No other uses are authorized. This @* software is owned by Renesas Electronics Corporation and is protected under @* all applicable laws, including copyright laws. @* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING @* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT @* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE @* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. @* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS @* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE @* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR @* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE @* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. @* Renesas reserves the right, without notice, to make changes to this software @* and to discontinue the availability of this software. By using this software, @* you agree to the additional terms and conditions found by accessing the @* following link: @* http://www.renesas.com/disclaimer @* Copyright (C) 2018 Renesas Electronics Corporation. All rights reserved. @*******************************************************************************/ @/******************************************************************************* @* File Name : vfp_init.asm @* Description : VFP initialize @*******************************************************************************/ #if defined(__ARM_FP) || defined(__ARM_NEON_FP) .EQU VFPEnable, 0x40000000 .arm @****************************************************************************** @ Function Name : Enable_VFP @ Description : Enable VFP/NEON @****************************************************************************** .section .text.Enable_VFP .global Enable_VFP .type Enable_VFP,%function .func Enable_VFP Enable_VFP: MRC p15, 0, r0, c1, c0, 2 @ Read CPACR into r0 ORR r0, r0, #(3 << 20) @ OR in User and Privileged access for CP10 ORR r0, r0, #(3 << 22) @ OR in User and Privileged access for CP11 BIC r0, r0, #(3 << 30) @ Clear ASEDIS/D32DIS if set MCR p15, 0, r0, c1, c0, 2 @ Store new access permissions into CPACR ISB @ Ensure side-effect of CPACR is visible MOV r0, #VFPEnable VMSR FPEXC, r0 BX LR .endfunc #endif .END
41.584615
81
0.578616
c2170d5998adb6f13d80d2950d1fed9b8d05c21c
3,640
asm
Assembly
library/02_functions_batch1/unknown_1000a290.asm
SamantazFox/dds140-reverse-engineering
4c8c286ffc20f2ee07061c83b0a0a68204d90148
[ "Unlicense" ]
1
2021-06-05T23:41:15.000Z
2021-06-05T23:41:15.000Z
library/02_functions_batch1/unknown_1000a290.asm
SamantazFox/dds140-reverse-engineering
4c8c286ffc20f2ee07061c83b0a0a68204d90148
[ "Unlicense" ]
null
null
null
library/02_functions_batch1/unknown_1000a290.asm
SamantazFox/dds140-reverse-engineering
4c8c286ffc20f2ee07061c83b0a0a68204d90148
[ "Unlicense" ]
null
null
null
1000a290: 55 push ebp 1000a291: 8b ec mov ebp,esp 1000a293: 83 ec 18 sub esp,0x18 1000a296: 53 push ebx 1000a297: ff 75 10 push DWORD PTR [ebp+0x10] 1000a29a: 8d 4d e8 lea ecx,[ebp-0x18] 1000a29d: e8 78 9b ff ff call 0x10003e1a 1000a2a2: 8b 5d 08 mov ebx,DWORD PTR [ebp+0x8] 1000a2a5: 8d 43 01 lea eax,[ebx+0x1] 1000a2a8: 3d 00 01 00 00 cmp eax,0x100 1000a2ad: 77 0f ja 0x1000a2be 1000a2af: 8b 45 e8 mov eax,DWORD PTR [ebp-0x18] 1000a2b2: 8b 80 c8 00 00 00 mov eax,DWORD PTR [eax+0xc8] 1000a2b8: 0f b7 04 58 movzx eax,WORD PTR [eax+ebx*2] 1000a2bc: eb 75 jmp 0x1000a333 1000a2be: 89 5d 08 mov DWORD PTR [ebp+0x8],ebx 1000a2c1: c1 7d 08 08 sar DWORD PTR [ebp+0x8],0x8 1000a2c5: 8d 45 e8 lea eax,[ebp-0x18] 1000a2c8: 50 push eax 1000a2c9: 8b 45 08 mov eax,DWORD PTR [ebp+0x8] 1000a2cc: 25 ff 00 00 00 and eax,0xff 1000a2d1: 50 push eax 1000a2d2: e8 6f 00 00 00 call 0x1000a346 1000a2d7: 85 c0 test eax,eax 1000a2d9: 59 pop ecx 1000a2da: 59 pop ecx 1000a2db: 74 12 je 0x1000a2ef 1000a2dd: 8a 45 08 mov al,BYTE PTR [ebp+0x8] 1000a2e0: 6a 02 push 0x2 1000a2e2: 88 45 f8 mov BYTE PTR [ebp-0x8],al 1000a2e5: 88 5d f9 mov BYTE PTR [ebp-0x7],bl 1000a2e8: c6 45 fa 00 mov BYTE PTR [ebp-0x6],0x0 1000a2ec: 59 pop ecx 1000a2ed: eb 0a jmp 0x1000a2f9 1000a2ef: 33 c9 xor ecx,ecx 1000a2f1: 88 5d f8 mov BYTE PTR [ebp-0x8],bl 1000a2f4: c6 45 f9 00 mov BYTE PTR [ebp-0x7],0x0 1000a2f8: 41 inc ecx 1000a2f9: 8b 45 e8 mov eax,DWORD PTR [ebp-0x18] 1000a2fc: 6a 01 push 0x1 1000a2fe: ff 70 14 push DWORD PTR [eax+0x14] 1000a301: ff 70 04 push DWORD PTR [eax+0x4] 1000a304: 8d 45 fc lea eax,[ebp-0x4] 1000a307: 50 push eax 1000a308: 51 push ecx 1000a309: 8d 45 f8 lea eax,[ebp-0x8] 1000a30c: 50 push eax 1000a30d: 8d 45 e8 lea eax,[ebp-0x18] 1000a310: 6a 01 push 0x1 1000a312: 50 push eax 1000a313: e8 45 fc ff ff call 0x10009f5d 1000a318: 83 c4 20 add esp,0x20 1000a31b: 85 c0 test eax,eax 1000a31d: 75 10 jne 0x1000a32f 1000a31f: 38 45 f4 cmp BYTE PTR [ebp-0xc],al 1000a322: 74 07 je 0x1000a32b 1000a324: 8b 45 f0 mov eax,DWORD PTR [ebp-0x10] 1000a327: 83 60 70 fd and DWORD PTR [eax+0x70],0xfffffffd 1000a32b: 33 c0 xor eax,eax 1000a32d: eb 14 jmp 0x1000a343 1000a32f: 0f b7 45 fc movzx eax,WORD PTR [ebp-0x4] 1000a333: 23 45 0c and eax,DWORD PTR [ebp+0xc] 1000a336: 80 7d f4 00 cmp BYTE PTR [ebp-0xc],0x0 1000a33a: 74 07 je 0x1000a343 1000a33c: 8b 4d f0 mov ecx,DWORD PTR [ebp-0x10] 1000a33f: 83 61 70 fd and DWORD PTR [ecx+0x70],0xfffffffd 1000a343: 5b pop ebx 1000a344: c9 leave 1000a345: c3 ret
52
70
0.506319
5c1f7b12768595305f9e58179e322cb95bdfa9af
270
asm
Assembly
kartnamereferencelist.asm
szymbar15/Mario-Kart-DS-ASM-hacks-from-YouTube-Videos
c5362be4b16e8ff279abc09cab6b586248b0d090
[ "MIT" ]
1
2020-12-07T22:55:47.000Z
2020-12-07T22:55:47.000Z
kartnamereferencelist.asm
szymbar15/Mario-Kart-DS-ASM-hacks-from-YouTube-Videos
c5362be4b16e8ff279abc09cab6b586248b0d090
[ "MIT" ]
null
null
null
kartnamereferencelist.asm
szymbar15/Mario-Kart-DS-ASM-hacks-from-YouTube-Videos
c5362be4b16e8ff279abc09cab6b586248b0d090
[ "MIT" ]
null
null
null
;0x21532DC KartNameReferenceList: dcd 0x6, 0x7, 0x8, 0x15, 0x16, 0x17, 0x12, 0x13, 0x14, 0x1B,\ 0x1C, 0x1D, 0xC, 0xD, 0xE, 0x18, 0x19, 0x1A, 0xF, 0x10,\ 0x11, 0x9, 0xA, 0xB, 0x21, 0x22, 0x23, 0x1E, 0x1F, 0x20,\ 0x24, 0x25, 0x26, 0x27, 0x28, 0x29,\ 0x2A
38.571429
61
0.633333
bdac6e7fdb72e1e308bdce64468ea3d15b1c3f61
610
asm
Assembly
WS5_ASM/Task_1.asm
OlegMalchenko/ACOS_WS_3
a0a6d02b6dcd54b1a103a3da24de17251d934605
[ "MIT" ]
null
null
null
WS5_ASM/Task_1.asm
OlegMalchenko/ACOS_WS_3
a0a6d02b6dcd54b1a103a3da24de17251d934605
[ "MIT" ]
null
null
null
WS5_ASM/Task_1.asm
OlegMalchenko/ACOS_WS_3
a0a6d02b6dcd54b1a103a3da24de17251d934605
[ "MIT" ]
null
null
null
# # Write a program that inputs two integer values x and y and prints all the values in the range min(x, y)..max(x, y). # .include "macros.s" main: print_str("Please, input an integer x: ") int_input(t0) print_str("Please, input an integer y: ") int_input(t1) #t2 = min slt t2, t0, t1 neg t2, t2 xor t3, t0, t1 and t2, t2, t3 xor t2, t1, t2 mv t3, zero #t3 = max slt t3, t0, t1 neg t3, t3 xor t4, t0, t1 and t3, t3, t4 xor t3, t0, t3 mv t4, zero addi t3, t3, 1 #range for_step: beq t2, t3, _exit print_var_int(t2) newline addi t2, t2, 1 j for_step _exit: # return; #exit;
15.25
117
0.632787
7bef20e480e7350b4542f98b3cfa177470123610
3,173
asm
Assembly
source/transgen.asm
OS2World/DRV-VIDEO-GRADD-sssbbacc
7ee160fded803199a264daea55bbaddb43e5fe8b
[ "BSD-3-Clause" ]
null
null
null
source/transgen.asm
OS2World/DRV-VIDEO-GRADD-sssbbacc
7ee160fded803199a264daea55bbaddb43e5fe8b
[ "BSD-3-Clause" ]
null
null
null
source/transgen.asm
OS2World/DRV-VIDEO-GRADD-sssbbacc
7ee160fded803199a264daea55bbaddb43e5fe8b
[ "BSD-3-Clause" ]
null
null
null
; transgen.asm - Software Screen to Screen BitBlt Acceleration GRADD filter, release 0.0.6 ; Copyright (c) 2001 Takayuki 'January June' Suwa .386 .387 CODE32 segment para use32 public 'CODE' CODE32 ends DATA32 segment para use32 public 'DATA' DATA32 ends CONST32_RO segment para use32 public 'CONST' CONST32_RO ends BSS32 segment para use32 public 'BSS' BSS32 ends DGROUP group BSS32, DATA32 assume cs:FLAT, ds:FLAT, ss:FLAT, es:FLAT, fs:nothing, gs:nothing extrn G_pvTransferBuffer:dword CODE32 segment ; extern VOID _System TransferBlock_Generic(PBYTE pbDst, ; PBYTE pbSrc, ; ULONG ulXBytes, ; ULONG ulExtY, ; LONG lAdditiveY); public TransferBlock_Generic org 0 TransferBlock_Generic proc near ARGLIST struc pbDst dd ? ; (PBYTE) pbSrc dd ? ; (PBYTE) ulXBytes dd ? ; (ULONG) ulExtY dd ? ; (ULONG) lAdditiveY dd ? ; (LONG) ARGLIST ends VARLIST struc VARLIST ends enter size VARLIST, 0 ARG equ ARGLIST[ebp+8] VAR equ VARLIST[ebp-size VARLIST] push ebx push esi push edi mov ebx, ARG.pbDst mov esi, ARG.pbSrc mov edi, ARG.ulExtY BLBL0: mov eax, ebx mov edx, esi mov ecx, ARG.ulXBytes call near ptr FLAT:TransferScanline_Generic add ebx, ARG.lAdditiveY add esi, ARG.lAdditiveY dec edi jne short BLBL0 pop edi pop esi pop ebx leave ret TransferBlock_Generic endp ; static VOID _Optlink TransferScanline_Generic(PBYTE pbDst, /* eax */ ; PBYTE pbSrc, /* edx */ ; ULONG ulBytes /* ecx */); org 37h TransferScanline_Generic proc near push ebx push esi push edi lea ebx, [ecx+edx+7] mov esi, not 7 and esi, edx sub ebx, esi shr ebx, 4 mov edi, FLAT:G_pvTransferBuffer jnc short BLBL0 fild qword ptr [esi] add esi, 8 fistp qword ptr [edi] add edi, 8 test ebx, ebx jz short BLBL1 BLBL0: cmp al, [edi+32] add edi, 16 fild qword ptr [esi+8] fild qword ptr [esi] add esi, 16 dec ebx fistp qword ptr [edi-16] fistp qword ptr [edi-8] jnz short BLBL0 BLBL1: mov esi, 7 and esi, edx mov edx, 7 add esi, FLAT:G_pvTransferBuffer and edx, ecx shr ecx, 1 jnc short BLBL2 mov bl, [esi] inc esi mov [eax], bl inc eax BLBL2: shr ecx, 1 jnc short BLBL3 mov bx, [esi] add esi, 2 mov [eax], bx add eax, 2 BLBL3: shr ecx, 1 jnc short BLBL4 mov ebx, [esi] add esi, 4 mov [eax], ebx add eax, 4 BLBL4: shr ecx, 1 jnc short BLBL5 fild qword ptr [esi] add esi, 8 fistp qword ptr [eax] add eax, 8 BLBL5: test ecx, ecx jz short BLBL7 BLBL6: cmp al, [esi+32] add eax, 16 fild qword ptr [esi+8] fild qword ptr [esi] add esi, 16 dec ecx fistp qword ptr [eax-16] fistp qword ptr [eax-8] jnz short BLBL6 BLBL7: pop edi pop esi pop ebx ret TransferScanline_Generic endp CODE32 ends end
19.955975
90
0.599118
25f0dd4106872f3ca9a0c964aa4e1d1d2c6deed8
1,934
asm
Assembly
programs/oeis/077/A077864.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/077/A077864.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/077/A077864.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A077864: Expansion of (1-x)^(-1)/(1-x-2*x^2-x^3). ; 1,2,5,11,24,52,112,241,518,1113,2391,5136,11032,23696,50897,109322,234813,504355,1083304,2326828,4997792,10734753,23057166,49524465,106373551,228479648,490751216,1054084064,2264066145,4862985490,10445201845,22435238971,48188628152,103504307940,222316803216,477514047249,1025651961622,2202996859337,4731814829831,10163460510128,21830087029128,46888822879216,100712457447601,216320190235162,464633928009581,997986765927507,2143574812181832,4604182272046428,9889318662337600,21241258018612289,45624077615333918,97995912314896097,210485325564176223,452101227809302336,971067791252550880,2085755572435331776,4479992382749735873,9622571318872950306,20668311656807753829,44393446677303390315,95352641309791848280,204807846321206382740,439906575618093469616,944874909570298083377,2029495907127691405350,4359152301886381041721,9363019025712061935799,20110819536612515424592,43196009889923020337912,92780667988860113122896,199283507305318669223313,428040853172961915807018,919388535772459367376541,1974753749423701868213891,4241571674141582518773992,9110467708761445622578316,19568364806468312528340192,42030871898132786292270817,90278069219830856971529518,193908177822564742084411345,416495188160359242319741199,894589613025319583460093408,1921488167168602810183987152,4127162581379601219423915168,8864728528742126423251982881,19040541858669931672283800370,40897161497533785738211681301,87842973743615775506031264923,188677838597353278654738427896,405260947582118615405012639044,870459598520440948220520759760,1869659332282031457685284465745,4015839476905031969531338624310,8625617739989535833122428315561,18526956026081631229870390029927,39794030982965734865646585285360,85473560775118533158509793660776,183588578767131634119673354261424,394329731300334435302339526868337,846980449609716236700196029051962 mul $0,2 add $0,1 seq $0,23435 ; Dying rabbits: a(n) = a(n-1) + a(n-2) - a(n-5).
276.285714
1,799
0.914168
fe7453adb7ed9539cdd8a61a18f5332bd04dbfb4
146
asm
Assembly
kernel.asm
RudraSwat/rudraOS-2019
aec2f16af3658d3bc55c3d0ee1eec68f60ca6ae7
[ "BSD-3-Clause" ]
null
null
null
kernel.asm
RudraSwat/rudraOS-2019
aec2f16af3658d3bc55c3d0ee1eec68f60ca6ae7
[ "BSD-3-Clause" ]
null
null
null
kernel.asm
RudraSwat/rudraOS-2019
aec2f16af3658d3bc55c3d0ee1eec68f60ca6ae7
[ "BSD-3-Clause" ]
null
null
null
bits 32 section .text align 4 dd 0x1BADB002 dd 0x00 dd - (0x1BADB002+0x00) global start extern kmain start: cli call kmain hlt
11.230769
24
0.678082
2f51f2bbc53fa9aeb26c5184b0af4ee27b1f5109
158
asm
Assembly
working/m12-give-strings/m12-give-target-dead-full.asm
Iemnur/Mother2GbaTranslation
b8ca6df07ef69762fc5cc7453657b8e71178c78d
[ "MIT" ]
149
2015-03-19T11:22:47.000Z
2022-03-23T17:57:39.000Z
working/m12-give-strings/m12-give-target-dead-full.asm
Iemnur/Mother2GbaTranslation
b8ca6df07ef69762fc5cc7453657b8e71178c78d
[ "MIT" ]
77
2015-06-16T17:38:47.000Z
2022-01-24T14:21:28.000Z
working/m12-give-strings/m12-give-target-dead-full.asm
Iemnur/Mother2GbaTranslation
b8ca6df07ef69762fc5cc7453657b8e71178c78d
[ "MIT" ]
29
2015-06-16T00:58:04.000Z
2021-12-23T22:38:30.000Z
.loadtable "m12-give-strings/m12-give-table.tbl" .str "@\csender tried to add\n the \citem\n to \creceiver's stuff,\prompt@but there was no room for it."
52.666667
108
0.71519
1e1dd075be43ca715e67077f8cb0f2e6656f3933
1,130
asm
Assembly
asm/string.asm
shoyaaa/asm-libc
805d82599ee7e04df55341ad4f5f98a3c47529e3
[ "MIT" ]
3
2021-05-09T19:03:59.000Z
2021-05-10T07:42:49.000Z
asm/string.asm
shoyaaa/asm-libc
805d82599ee7e04df55341ad4f5f98a3c47529e3
[ "MIT" ]
null
null
null
asm/string.asm
shoyaaa/asm-libc
805d82599ee7e04df55341ad4f5f98a3c47529e3
[ "MIT" ]
null
null
null
global _strlen global _memset global _atoi section .text ; int _strlen(char*) ; note that string must be zero-terminated _strlen: .loop_start: xor rax, rax ; initialize counter .loop: ; move current character to bl register mov bl, [rdi+rax] ; check bl is zero (that means end of string) cmp bl, 0 je .loop_end ; increase counter inc rax jmp .loop .loop_end: ret ; void* _memset(void*, char, int) _memset: xor rcx, rcx .loop: cmp rcx, rdx je .loop_exit mov [rdi+rcx], rsi inc rcx jmp .loop .loop_exit: mov rdi, rax ret ; int _atoi(char*) _atoi: xor rax, rax ; clear return value xor rcx, rcx .loop_start: .loop: movzx rsi, byte [rdi+rcx] ; move current char to rsi cmp rsi, 0 ; check end of string je .loop_end ; ascii -> decimal sub rsi, 48 imul rax, 10 add rax, rsi ; move next character inc rcx ; loop back jmp .loop .loop_end: ret
16.376812
60
0.535398
f9a0ccee7d5a31426ea1e588d97d0e2164db40a9
563
asm
Assembly
Outputing in Assembly/Example 1/Task1.asm
KyleErwin/Assembly
e9aa223a4a119df5a14e043723131d8ddfe8c12e
[ "MIT" ]
null
null
null
Outputing in Assembly/Example 1/Task1.asm
KyleErwin/Assembly
e9aa223a4a119df5a14e043723131d8ddfe8c12e
[ "MIT" ]
null
null
null
Outputing in Assembly/Example 1/Task1.asm
KyleErwin/Assembly
e9aa223a4a119df5a14e043723131d8ddfe8c12e
[ "MIT" ]
null
null
null
segment .data input: db "", 0x0a ;New line string newLine: db "\n", 0x0a segment .text global _start _start: ;read input in from the console mov eax, 0 mov edi, 0 mov edx, 12 ; The number of characters mov rsi, input syscall ;output result back to the console mov eax, 1 mov edi, 1 mov edx, 12 mov rsi, input syscall ;output new line to the console mov eax, 1 mov edi, 1 mov edx, 0 ; The number of characters lea rsi,[newLine] syscall ;exit the program mov eax, 60 xor edi, edi syscall
16.085714
45
0.634103
562dcc648ba38f83a056976eaa79908bc2579dce
606
asm
Assembly
4rth-Sem-Ise/Microprocessors -X86-/files.asm
mvnsia/4th_Sem_Ise
d1e75bf16ff1ee5ded3fa2832017098f86670a18
[ "MIT" ]
null
null
null
4rth-Sem-Ise/Microprocessors -X86-/files.asm
mvnsia/4th_Sem_Ise
d1e75bf16ff1ee5ded3fa2832017098f86670a18
[ "MIT" ]
null
null
null
4rth-Sem-Ise/Microprocessors -X86-/files.asm
mvnsia/4th_Sem_Ise
d1e75bf16ff1ee5ded3fa2832017098f86670a18
[ "MIT" ]
null
null
null
assume cs:code, ds:data disp macro str3 lea dx,str3 mov ah,0Dh int 21h mov ah,09h int 21h endm data segment fname2 db "shashi.txt" msg1 db "File created successfully $" ;pass your own message to verify fname1 db "emp.dat" msg2 db "File deleted successfully$" data ends code segment start: mov ax,@data mov ds,ax mov ah,3ch mov cx,00 lea dx,fname2 int 21h disp msg1 mov ah,41h lea dx,fname1 int 21h disp msg2 mov ah,4ch int 21h code ends end start
15.947368
76
0.562706
5ac07e04a4f561e92934ff10ad091d96db743dd4
336
asm
Assembly
oeis/007/A007309.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/007/A007309.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/007/A007309.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A007309: a(n)=a(n-2)+a(n-3). ; Submitted by Jon Maiga ; 0,1,4,1,5,5,6,10,11,16,21,27,37,48,64,85,112,149,197,261,346,458,607,804,1065,1411,1869,2476,3280,4345,5756,7625,10101,13381,17726,23482,31107,41208,54589,72315,95797 mov $2,1 mov $3,4 lpb $0 sub $0,1 mov $1,$4 mov $4,$2 mov $2,$1 add $2,$3 mov $3,$1 lpe mov $0,$4
21
168
0.630952
5afed0eff8995035abc98372c1ef87584e972ca1
569
asm
Assembly
programs/oeis/287/A287664.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/287/A287664.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/287/A287664.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A287664: Positions of 0's in A287663; complement of A287665. ; 2,3,4,7,8,9,11,12,13,16,17,18,21,22,23,25,26,27,30,31,32,34,35,36,39,40,41,44,45,46,48,49,50,53,54,55,58,59,60,62,63,64,67,68,69,71,72,73,76,77,78,81,82,83,85,86,87,90,91,92,94,95,96,99,100,101,104,105,106,108,109,110,113,114,115,118,119,120,122,123,124,127,128,129,131,132,133,136,137,138,141,142,143,145,146,147,150,151,152,155 mov $2,$0 div $0,3 seq $0,201 ; Lower Wythoff sequence (a Beatty sequence): a(n) = floor(n*phi), where phi = (1+sqrt(5))/2 = A001622. add $2,1 add $1,$2 add $1,$0 mov $0,$1
51.727273
331
0.673111
9f4f781111b1878383ec4cb204c90352f43db6c1
802
asm
Assembly
programs/oeis/007/A007487.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/007/A007487.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/007/A007487.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A007487: Sum of 9th powers. ; 0,1,513,20196,282340,2235465,12313161,52666768,186884496,574304985,1574304985,3932252676,9092033028,19696532401,40357579185,78800938560,147520415296,266108291793,464467582161,787155279940,1299155279940,2093435326521,3300704544313,5101857205776,7743664746000,11558362011625,16987865690601,24613463175588,35191919128996,49699065104865,69382065104865,95821687265536,131006059354368,177417543756321,238134536522785,316950175194660,418510131863076,548471871658153,713687972921001,922416334079760,1184560334079760,1511942268473721,1918613652323193,2421206264260036,3039328103769540,3796008746347665,4718198909016721,5837329382119488,7189934842714176,8818348440624625 add $0,1 mov $1,80 mov $2,17 lpb $0 sub $0,1 add $1,$2 mov $3,$0 pow $3,9 mov $2,$3 lpe sub $1,97
53.466667
662
0.856608
91b4a387b0deab54af3d72b45e0b0fd57a56a1ef
2,340
asm
Assembly
src/play_sound.asm
Gegel85/BTTGB
4efeb1470759f0c391a0543649f3bd9a96a17eef
[ "MIT" ]
1
2020-03-28T22:38:50.000Z
2020-03-28T22:38:50.000Z
src/play_sound.asm
Gegel85/BTTGB
4efeb1470759f0c391a0543649f3bd9a96a17eef
[ "MIT" ]
null
null
null
src/play_sound.asm
Gegel85/BTTGB
4efeb1470759f0c391a0543649f3bd9a96a17eef
[ "MIT" ]
null
null
null
wpRamWave:: db $FF, $88, $00, $88, $FF, $88, $00, $88, $FF, $88, $00, $88, $FF, $88, $00, $88 initWPRAM:: ld hl, wpRamWave ld de, WPRAM ld bc, 16 call copyMemory playChannel1Sound:: ld de, CHANNEL1_SWEEP ld c, 5 .loop: ld a, [hli] ld [de], a inc de dec c jr nz, .loop ret playChannel2Sound:: ld de, CHANNEL2_LENGTH ld c, 4 .loop: ld a, [hli] ld [de], a inc de dec c jr nz, .loop ret playChannelWave:: ld de, CHANNEL3_ON_OFF ld c, 5 .loop: ld a, [hli] ld [de], a inc de dec c jr nz, .loop ret playNoiseSound:: ld de, CHANNEL4_LENGTH ld c, 4 .loop: ld a, [hli] ld [de], a inc de dec c jr nz, .loop ret ; Updates the sound structure. ; Params: ; hl -> Pointer to the music structure ; de -> The Sound register to write to ; a -> The size to write to the register ; Return: ; None ; Registers: ; af -> Not preserved ; bc -> Not preserved ; de -> Not preserved ; hl -> Not preserved updateMusic:: ld b, a xor a or [hl] ret z dec [hl] ret nz ld a, b push hl push af push de ; de = hl ld d, h ld e, l ; hl = *de inc de ld a, [de] ld h, a inc de ld a, [de] ld l, a pop de pop af ld b, 0 ld c, a call copyMemory ld a, [hl] cp a, $FF jr z, .reset ; de = hl ld d, h ld e, l inc de pop hl ld [hli], a ld a, d ld [hli], a ld a, e ld [hli], a ret .reset: pop hl ; de = hl ld d, h ld e, l inc de ld a, QUAVER ld [hli], a inc hl inc hl ld bc, 2 jp copyMemory ; Starts a new music. ; Params: ; de -> The sound to play ; hl -> The music structure to play from ; Return: ; None ; Registers: ; af -> Not preserved ; bc -> Not preserved ; de -> Not preserved ; hl -> Not preserved playMusic:: ld a, 1 ld [hli], a ld a, d ld [hli], a ld a, e ld [hli], a ld a, d ld [hli], a ld a, e ld [hli], a ret playMusicIntro:: ld a, 1 ld [hli], a ld a, d ld [hli], a ld a, e ld [hli], a ld a, b ld [hli], a ld a, c ld [hli], a ret ; Updates all music structs updateMusics:: ld a, 5 ld hl, MUSIC_CHANNEL_1 ld de, CHANNEL1_SWEEP call updateMusic ld a, 4 ld hl, MUSIC_CHANNEL_2 ld de, CHANNEL2_LENGTH call updateMusic ld a, 5 ld hl, MUSIC_CHANNEL_WAVE ld de, CHANNEL3_ON_OFF call updateMusic ld a, 4 ld hl, MUSIC_CHANNEL_NOISE ld de, CHANNEL4_LENGTH jp updateMusic
12.251309
85
0.59188
20aec9094b33e1a7705350b1a94c429d8c560f32
1,168
asm
Assembly
s2/sfx-original/E6 - Mega Mack Drop.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
9
2017-10-09T20:28:45.000Z
2021-06-29T21:19:20.000Z
s2/sfx-original/E6 - Mega Mack Drop.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
12
2018-08-01T13:52:20.000Z
2022-02-21T02:19:37.000Z
s2/sfx-original/E6 - Mega Mack Drop.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
2
2018-02-17T19:50:36.000Z
2019-10-30T19:28:06.000Z
Sound66_MegaMackDrop_Header: smpsHeaderStartSong 2 smpsHeaderVoice Sound66_MegaMackDrop_Voices smpsHeaderTempoSFX $01 smpsHeaderChanSFX $02 smpsHeaderSFXChannel cFM5, Sound66_MegaMackDrop_FM5, $EE, $08 smpsHeaderSFXChannel cPSG3, Sound66_MegaMackDrop_PSG3, $00, $00 ; PSG3 Data Sound66_MegaMackDrop_PSG3: smpsPSGform $E7 smpsPSGvoice fTone_09 dc.b nMaxPSG, $36 smpsStop ; FM5 Data Sound66_MegaMackDrop_FM5: smpsSetvoice $00 dc.b nRst, $01, nF1, $02, $02, $02, $30 smpsStop Sound66_MegaMackDrop_Voices: ; Voice $00 ; $32 ; $33, $34, $17, $13, $0F, $1B, $0D, $17, $00, $02, $04, $0B ; $08, $08, $00, $09, $6F, $4F, $5F, $6F, $05, $00, $00, $80 smpsVcAlgorithm $02 smpsVcFeedback $06 smpsVcUnusedBits $00 smpsVcDetune $01, $01, $03, $03 smpsVcCoarseFreq $03, $07, $04, $03 smpsVcRateScale $00, $00, $00, $00 smpsVcAttackRate $17, $0D, $1B, $0F smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $0B, $04, $02, $00 smpsVcDecayRate2 $09, $00, $08, $08 smpsVcDecayLevel $06, $05, $04, $06 smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $00, $00, $00, $05
27.809524
64
0.650685
bb43b202bb2f7834ed7d791a66616831dc287362
302
asm
Assembly
programs/oeis/131/A131229.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/131/A131229.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/131/A131229.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A131229: Numbers congruent to {1,7} mod 10. ; 1,7,11,17,21,27,31,37,41,47,51,57,61,67,71,77,81,87,91,97,101,107,111,117,121,127,131,137,141,147,151,157,161,167,171,177,181,187,191,197,201,207,211,217,221,227,231,237,241,247,251,257,261,267,271,277,281 mov $1,$0 mod $0,2 mul $1,5 add $0,$1 add $0,1
33.555556
207
0.682119
ecc4fd402ccdce37a12da72862854b7643e9c3cb
165
asm
Assembly
libsrc/_DEVELOPMENT/adt/b_vector/c/sdcc_iy/b_vector_pop_back.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/b_vector/c/sdcc_iy/b_vector_pop_back.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/b_vector/c/sdcc_iy/b_vector_pop_back.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; int b_vector_pop_back(b_vector_t *v) SECTION code_adt_b_vector PUBLIC _b_vector_pop_back EXTERN _b_array_pop_back defc _b_vector_pop_back = _b_array_pop_back
15
43
0.854545
ecd8df88f1adf6e6fee466ce38c42e022132eb19
684
asm
Assembly
programs/oeis/020/A020331.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/020/A020331.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/020/A020331.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A020331: Numbers whose base-3 representation is the juxtaposition of two identical strings. ; 4,8,30,40,50,60,70,80,252,280,308,336,364,392,420,448,476,504,532,560,588,616,644,672,700,728,2214,2296,2378,2460,2542,2624,2706,2788,2870,2952,3034,3116,3198,3280,3362,3444,3526,3608,3690,3772,3854,3936,4018,4100,4182,4264,4346,4428,4510,4592,4674,4756,4838,4920,5002,5084,5166,5248,5330,5412,5494,5576,5658,5740,5822,5904,5986,6068,6150,6232,6314,6396,6478,6560,19764,20008,20252,20496,20740,20984,21228,21472,21716,21960,22204,22448,22692,22936,23180,23424,23668,23912,24156,24400 mov $2,$0 add $0,1 mov $1,$0 lpb $1 mul $0,3 add $1,3 div $1,3 sub $1,1 lpe add $0,1 add $0,$2
45.6
485
0.75
4115c9f1f3d27a633efd244dad5402eb094f274f
855
asm
Assembly
programs/oeis/100/A100855.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/100/A100855.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/100/A100855.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A100855: n*(n^3-n^2+n+1)/2. ; 0,1,7,33,106,265,561,1057,1828,2961,4555,6721,9582,13273,17941,23745,30856,39457,49743,61921,76210,92841,112057,134113,159276,187825,220051,256257,296758,341881,391965,447361,508432,575553,649111,729505,817146,912457,1015873,1127841,1248820,1379281,1519707,1670593,1832446,2005785,2191141,2389057,2600088,2824801,3063775,3317601,3586882,3872233,4174281,4493665,4831036,5187057,5562403,5957761,6373830,6811321,7270957,7753473,8259616,8790145,9345831,9927457,10535818,11171721,11835985,12529441,13252932,14007313,14793451,15612225,16464526,17351257,18273333,19231681,20227240,21260961,22333807,23446753,24600786,25796905,27036121,28319457,29647948,31022641,32444595,33914881,35434582,37004793,38626621,40301185,42029616,43813057,45652663,47549601 mov $1,$0 pow $1,2 mov $2,$0 sub $2,1 sub $2,$1 mul $1,$2 sub $0,$1 div $0,2
71.25
746
0.818713
d53e8e72d82c5a89aa823c1a06b6f1f7c9e2cf54
448
asm
Assembly
oeis/332/A332125.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/332/A332125.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/332/A332125.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A332125: a(n) = 2*(10^(2n+1)-1)/9 + 3*10^n. ; Submitted by Jamie Morken(s1) ; 5,252,22522,2225222,222252222,22222522222,2222225222222,222222252222222,22222222522222222,2222222225222222222,222222222252222222222,22222222222522222222222,2222222222225222222222222,222222222222252222222222222,22222222222222522222222222222,2222222222222225222222222222222 mov $1,10 pow $1,$0 mul $1,2 add $1,2 mul $1,10 sub $1,6 bin $1,2 mov $0,$1 div $0,90 sub $0,1
29.866667
273
0.790179
b5cf315e6d1f00884f0af0401ab15210271e3e2b
2,729
asm
Assembly
programs/oeis/017/A017607.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/017/A017607.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/017/A017607.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A017607: (12n+7)^3. ; 343,6859,29791,79507,166375,300763,493039,753571,1092727,1520875,2048383,2685619,3442951,4330747,5359375,6539203,7880599,9393931,11089567,12977875,15069223,17373979,19902511,22665187,25672375,28934443,32461759,36264691,40353607,44738875,49430863,54439939,59776471,65450827,71473375,77854483,84604519,91733851,99252847,107171875,115501303,124251499,133432831,143055667,153130375,163667323,174676879,186169411,198155287,210644875,223648543,237176659,251239591,265847707,281011375,296740963,313046839,329939371,347428927,365525875,384240583,403583419,423564751,444194947,465484375,487443403,510082399,533411731,557441767,582182875,607645423,633839779,660776311,688465387,716917375,746142643,776151559,806954491,838561807,870983875,904231063,938313739,973242271,1009027027,1045678375,1083206683,1121622319,1160935651,1201157047,1242296875,1284365503,1327373299,1371330631,1416247867,1462135375,1509003523,1556862679,1605723211,1655595487,1706489875,1758416743,1811386459,1865409391,1920495907,1976656375,2033901163,2092240639,2151685171,2212245127,2273930875,2336752783,2400721219,2465846551,2532139147,2599609375,2668267603,2738124199,2809189531,2881473967,2954987875,3029741623,3105745579,3183010111,3261545587,3341362375,3422470843,3504881359,3588604291,3673650007,3760028875,3847751263,3936827539,4027268071,4119083227,4212283375,4306878883,4402880119,4500297451,4599141247,4699421875,4801149703,4904335099,5008988431,5115120067,5222740375,5331859723,5442488479,5554637011,5668315687,5783534875,5900304943,6018636259,6138539191,6260024107,6383101375,6507781363,6634074439,6761990971,6891541327,7022735875,7155584983,7290099019,7426288351,7564163347,7703734375,7845011803,7988005999,8132727331,8279186167,8427392875,8577357823,8729091379,8882603911,9037905787,9195007375,9353919043,9514651159,9677214091,9841618207,10007873875,10175991463,10345981339,10517853871,10691619427,10867288375,11044871083,11224377919,11405819251,11589205447,11774546875,11961853903,12151136899,12342406231,12535672267,12730945375,12928235923,13127554279,13328910811,13532315887,13737779875,13945313143,14154926059,14366628991,14580432307,14796346375,15014381563,15234548239,15456856771,15681317527,15907940875,16136737183,16367716819,16600890151,16836267547,17073859375,17313676003,17555727799,17800025131,18046578367,18295397875,18546494023,18799877179,19055557711,19313545987,19573852375,19836487243,20101460959,20368783891,20638466407,20910518875,21184951663,21461775139,21740999671,22022635627,22306693375,22593183283,22882115719,23173501051,23467349647,23763671875,24062478103,24363778699,24667584031,24973904467,25282750375,25594132123,25908060079,26224544611,26543596087,26865224875 mul $0,12 mov $1,$0 add $1,7 pow $1,3
341.125
2,667
0.897398
e0dcc69db1fdb67d3ffbf7753c835c201f52336a
241
asm
Assembly
practicas/practica 1/ej9.asm
ignaciolebrero/Orga2
03b5b56ba4b36999a258f2c0fb0f5768652160df
[ "MIT" ]
null
null
null
practicas/practica 1/ej9.asm
ignaciolebrero/Orga2
03b5b56ba4b36999a258f2c0fb0f5768652160df
[ "MIT" ]
null
null
null
practicas/practica 1/ej9.asm
ignaciolebrero/Orga2
03b5b56ba4b36999a258f2c0fb0f5768652160df
[ "MIT" ]
null
null
null
section .data msg: DB "hola mundo!", 10 len: EQU $ - msg global _start section .text _start: mov rsi, 20 print: mov rax, 4 mov rbx, 1 mov rcx, msg mov rdx, len int 0x80 dec rsi jnz print mov rax, 1 mov rbx, 0 int 0x80
10.954545
26
0.630705
1ddb4f3fa35cae87ed12432bf2cd33b1086c16e7
1,116
asm
Assembly
s2/sfx-original/E2 - CNZ Launch.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
9
2017-10-09T20:28:45.000Z
2021-06-29T21:19:20.000Z
s2/sfx-original/E2 - CNZ Launch.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
12
2018-08-01T13:52:20.000Z
2022-02-21T02:19:37.000Z
s2/sfx-original/E2 - CNZ Launch.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
2
2018-02-17T19:50:36.000Z
2019-10-30T19:28:06.000Z
Sound62_CNZLaunch_Header: smpsHeaderStartSong 2 smpsHeaderVoice Sound62_CNZLaunch_Voices smpsHeaderTempoSFX $01 smpsHeaderChanSFX $01 smpsHeaderSFXChannel cFM5, Sound62_CNZLaunch_FM5, $FF, $00 ; FM5 Data Sound62_CNZLaunch_FM5: smpsSetvoice $00 dc.b nCs3, $05 smpsModSet $01, $01, $E7, $40 Sound62_CNZLaunch_Loop00: dc.b nG5, $02, smpsNoAttack smpsAlterVol $01 smpsLoop $00, $12, Sound62_CNZLaunch_Loop00 smpsStop Sound62_CNZLaunch_Voices: ; Voice $00 ; $34 ; $0C, $73, $10, $0C, $AF, $FF, $AC, $D5, $06, $02, $00, $01 ; $02, $04, $0A, $08, $BF, $BF, $BF, $BF, $00, $80, $08, $80 smpsVcAlgorithm $04 smpsVcFeedback $06 smpsVcUnusedBits $00 smpsVcDetune $00, $01, $07, $00 smpsVcCoarseFreq $0C, $00, $03, $0C smpsVcRateScale $03, $02, $03, $02 smpsVcAttackRate $15, $2C, $3F, $2F smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $01, $00, $02, $06 smpsVcDecayRate2 $08, $0A, $04, $02 smpsVcDecayLevel $0B, $0B, $0B, $0B smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $00, $08, $00, $00
27.9
62
0.632616
acb3185fdc32519db30f3a9af4dd3d71b44ddfb1
1,064
asm
Assembly
programs/oeis/259/A259566.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/259/A259566.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/259/A259566.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A259566: Numbers following gaps in the sequence of base-3 numbers that don't contain 0. ; 1,4,7,13,16,22,25,40,43,49,52,67,70,76,79,121,124,130,133,148,151,157,160,202,205,211,214,229,232,238,241,364,367,373,376,391,394,400,403,445,448,454,457,472,475,481,484,607,610,616,619,634,637,643,646,688,691,697,700,715,718,724,727,1093,1096,1102,1105,1120 mov $16,$0 mov $18,$0 add $18,1 lpb $18 mov $0,$16 sub $18,1 sub $0,$18 mov $12,$0 mov $14,2 lpb $14 clr $0,12 mov $0,$12 sub $14,1 add $0,$14 sub $0,1 mov $9,$0 mov $11,$0 lpb $11 mov $0,$9 sub $11,1 sub $0,$11 add $0,1 mov $2,2 mov $6,11 lpb $0 mod $2,2 add $2,$0 div $0,2 gcd $0,$2 mul $6,3 lpe mov $1,$6 div $1,33 add $10,$1 lpe mov $1,$10 mov $15,$14 lpb $15 mov $13,$1 sub $15,1 lpe lpe lpb $12 mov $12,1 sub $13,$1 lpe mov $1,$13 div $1,2 add $1,1 add $17,$1 lpe mov $1,$17 sub $1,1 mul $1,3 add $1,1
18.033898
260
0.517857
6f3222e9fe41e8bda40fabc1294f979526c0fa41
434
asm
Assembly
programs/oeis/305/A305315.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/305/A305315.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/305/A305315.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A305315: a(n) = sqrt(5*b(n)^2 - 4), with b(n) = A134493(n) = Fibonacci(6*n+1), n >= 0. ; 1,29,521,9349,167761,3010349,54018521,969323029,17393796001,312119004989,5600748293801,100501350283429,1803423556807921,32361122672259149,580696784543856761,10420180999117162549,186982561199565069121,3355265920593054081629,60207804009475408400201,1080385206249964297121989 mul $0,3 seq $0,2878 ; Bisection of Lucas sequence: a(n) = L(2*n+1).
72.333333
274
0.788018
87177517f8e1227d0448a0e3726689a7b5645c7c
15,349
asm
Assembly
Library/Text/Text/textCalc.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Text/Text/textCalc.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Text/Text/textCalc.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1989 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: textCalc.asm AUTHOR: John Wedgwood, Oct 6, 1989 ROUTINES: Name Description ---- ----------- InvalidateRange Invalidate a range of lines TextRangeChanged Signal that a range of text has changed MarkRangeChanged Mark a range of lines as having changed SendUpdateShowSelection Queue a text-update and display the cursor TextCompleteRecalc Completely recalculate a text object TextRecalc Recalculate only what needs recalculating FindLineToCalcFrom Find the line to calculate from REVISION HISTORY: Name Date Description ---- ---- ----------- John 10/ 6/89 Initial revision DESCRIPTION: Routines for handling recalculation for the text object. $Id: textCalc.asm,v 1.1 97/04/07 11:17:58 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Text segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TextCompleteRecalc %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Do a complete recalc of the text object. CALLED BY: VisTextNotifyGeometryValid, VisTextRecalcAndDraw, VisTextEnableDocObj PASS: *ds:si = Instance ptr RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 9/29/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TextCompleteRecalc proc far call Text_PushAll sub sp, size VisTextRange ; Create a stack frame mov bp, sp ; ss:bp <- frame ptr clr ax clrdw ss:[bp].VTR_start, ax movdw ss:[bp].VTR_end, TEXT_ADDRESS_PAST_END clrdw bxdi ; Start on this line movdw dxax, -1 ; dx.ax <- # chars inserted call TextRecalc add sp, size VisTextRange ; Restore stack Text_PopAll_ret TextCompleteRecalc endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextInvalidateRange %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Invalidate a range of the object. CALLED BY: via MSG_VIS_TEXT_INVALIDATE_RANGE PASS: *ds:si = Instance ptr dx:bp = Range to invalidate RETURN: nothing DESTROYED: ax, cx, dx, bp PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 9/29/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextInvalidateRange method dynamic VisTextClass, MSG_VIS_TEXT_INVALIDATE_RANGE ProfilePoint 0 if ERROR_CHECK ; ; Validate that the region is not in a movable code segment ; FXIP< push bx, si > FXIP< mov bx, dx > FXIP< mov si, bp > FXIP< call ECAssertValidFarPointerXIP > FXIP< pop bx, si > endif call TextGStateCreate movdw esdi, dxbp ; es:di <- source range ; ; Allocate the stack frame ; sub sp, size VisTextRange ; Allocate frame mov bp, sp ; ss:bp <- stack frame ; ; Copy the range. ; movdw ss:[bp].VTR_start, es:[di].VTR_start, ax movdw ss:[bp].VTR_end, es:[di].VTR_end, ax ; ; Convert the range to something meaningful ; clr bx ; No context call TA_GetTextRange ; Convert range ; find the first line movdw dxax, ss:[bp].VTR_start stc call TL_LineFromOffset ; bx.di = line ; ; Figure the number of characters affected ; movdw dxax, ss:[bp].VTR_end ; dx.ax <- range affected subdw dxax, ss:[bp].VTR_start call TextRecalc ; Do the recalc/invalidate ; ; Force an update, and redisplay the selection. ; call TextSendUpdate ; Send an update. call TSL_SelectGetSelection ; dx.ax <- select start ; cx.bx <- select end clr bp call TextCallShowSelection ; Else show cursor. add sp, size VisTextRange ; Restore the stack call TextGStateDestroy ProfilePoint 29 ret VisTextInvalidateRange endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TextRecalc %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Recalculate line information. CALLED BY: UTILITY PASS: *ds:si = Instance ptr ss:bp = VisTextRange w/ VTR_start containing the start of the affected range dx.ax = Number of characters after VTR_start which need to be recalculated bx.di = Line on which change occurred RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 5/23/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TextRecalc proc far uses ax, bx, cx, dx, bp, es .enter ProfilePoint 4 ; ; dx.ax = # of affected characters after the change position ; bx.di = line on which change occurred ; ss:bp = VisTextRange containing range of text that changed ; call TextCheckCanCalcWithRange jc quit ; quit if we can't calculate ; at this point we need to ensure that we have enough stack space ; this involves saving the VisTextRange so that we can copy it to ; the new stack mov cx, size VisTextRange push cx call SwitchStackWithData ;trashes es mov cx, bx ; cx <- line.high sub sp, size LICL_vars ; Allocate stack frame mov bx, sp ; ss:bx <- LICL_vars adddw dxax, ss:[bp].VTR_start ; dx.ax <- end of change movdw ss:[bx].LICL_range.VTR_end, dxax movdw ss:[bx].LICL_range.VTR_start, ss:[bp].VTR_start, ax call TextRecalcInternal ; Fill in LICL_vars add sp, size LICL_vars ; Restore stack mov cx, di pop di add sp, size VisTextRange call ThreadReturnStackSpace mov di, cx quit: ProfilePoint 5 .leave ret TextRecalc endp COMMENT @---------------------------------------------------------------------- FUNCTION: SwitchStackWithData DESCRIPTION: Switch stacks and copy data between them CALLED BY: INTERNAL PASS: ss:bp - data to copy to dgroup pushed on stack - data size to copy RETURN: on stack - stack space token DESTROYED: es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 10/14/92 Initial version ------------------------------------------------------------------------------@ SwitchStackWithData proc far ; get exclusive access push ax mov ax, segment stackSwitchSem mov es, ax pop ax PSem es, stackSwitchSem popdw es:[stackSwitchReturn] ;get return address pop es:[stackSwitchDataSize] mov es:[stackSwitchDI], di ; copy data to our buffer push cx, si, ds mov cx, es:[stackSwitchDataSize] ; cx = size mov di, offset stackSwitchBuffer ;es:di = dest segmov ds, ss ;ds:si = source mov si, bp rep movsb pop cx, si, ds mov di, 1200 ; stack space needed call ThreadBorrowStackSpace ; di = token ; allocate new stack space sub sp, es:[stackSwitchDataSize] mov bp, sp push di ;save token on stack pushdw es:[stackSwitchReturn] push cx, si, ds segmov ds, es mov cx, ds:[stackSwitchDataSize] mov si, offset stackSwitchBuffer ;ds:si = source segmov es, ss ;es:di = dest mov di, bp rep movsb mov di, ds:[stackSwitchDI] ; recover token VSem ds, stackSwitchSem pop cx, si, ds ret SwitchStackWithData endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TextRecalcInternal %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Recalc, assuming LICL_vars and range is available. CALLED BY: TextRecalc, TextReplace PASS: *ds:si = Instance ss:bx = Uninitialized LICL_vars w/ LICL_range set ss:bp = VisTextRange cx.di = First line to compute RETURN: LICL_vars filled in DESTROYED: nothing PSEUDO CODE/STRATEGY: VTRP_range.VTR_start == start of inserted text VTRP_range.VTR_end == end of inserted text *** Note that this is different than the values passed to VisTextReplaceNew. The end is *not* the end of the deleted range. KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 5/13/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TextRecalcInternal proc far uses ax, bx, cx, dx, di, bp .enter ; ; Save the count of the number of characters which were deleted. ; movdw dxax, ss:[bp].VTR_end subdw dxax, ss:[bp].VTR_start movdw ss:[bx].LICL_charDelCount, dxax ; ; Save the original change position. ; mov bp, bx ; ss:bp <- LICL_vars mov bx, cx ; bx.di <- line movdw ss:[bp].LICL_startPos, ss:[bp].LICL_range.VTR_start, ax movdw dxax, ss:[bp].LICL_range.VTR_start call FindLineToCalcFrom movdw ss:[bp].LICL_range.VTR_start, dxax ; ; *ds:si= Instance ptr ; ss:bp = LICL_vars ; bx.di = Line to calc from ; cx = Flags for previous line ; call CalculateObject ; Calculate this one object ProfilePoint 6 .leave ret TextRecalcInternal endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FindLineToCalcFrom %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Choose the line to calculate from. CALLED BY: TextRecalc PASS: *ds:si = Instance ptr bx.di = Current choice for line to calc from. dx.ax = Offset into text where change occurred. RETURN: bx.di = Place we ought to calc from. dx.ax = Start of this line. cx = Flags associated with the line before the one passed DESTROYED: nothing PSEUDO CODE/STRATEGY: Here we do a bit of work to determine whether or not we should recalc the previous line too. Certain changes on the current line can affect the previous line: - Inserting a space in the first word can cause the first half of the word to wrap up to the previous line. - Deleting characters from the first word could cause it to wrap up to the previous line. If the line is the start of a paragraph, then nothing we could have done would affect the previous line. KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 1/30/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FindLineToCalcFrom proc near uses bp .enter movdw dxcx, bxdi ; Save line in dx.cx ; ; If the line we are on is the last line of a bordered paragraph we ; need to start recalc'ing at the previous line. This is to handle the ; case where we have changed the paraAttr associated with this line so ; that the previous line now has a bottom border where before no ; such border existed... (Hacks R Us). ; ;... Insert Hack Here ... ; call CheckAfterFirstWord ; Anywhere after 1st word is OK ; dx.ax <- start of line if after ; first word jc getPrevLineFlags call TL_LinePrevious ; bx.di <- previous line jc firstLine ; Branch if no previous line ; ; There is a previous line. Get the flags for that line. ; call TL_LineGetFlags ; ax <- prev line flags ; ; If the previous line does not end a paragraph then we need to ; calculate from that line. Otherwise we can compute from the current ; line. ; test ax, mask LF_ENDS_PARAGRAPH jz gotLineToCalcFrom ; Branch if prev no para-start ; ; The previous line does end a paragraph. We should calculate from ; the line that was passed in. ; mov bp, cx ; dx.bp <- line passed in mov cx, ax ; cx <- previous line flags getLineStart: ; ; Make sure that the line we are on is marked as needing to be ; calculated so we don't just quit before we even reach the lines ; we really want to compute. ; ; dx.bp = Line to calculate from ; cx = Flags for line before line to calc from ; movdw bxdi, dxbp ; bx.di <- line to calc from call TL_LineToOffsetStart ; dx.ax <- calc line start quit: .leave ret firstLine: ; ; There is no previous line. We are in the first line of the object. ; Set up some default flags for the previous line (even though there ; isn't one). ; clrdw dxbp ; dx.bp <- line to calc from mov cx, mask LF_ENDS_PARAGRAPH ; cx <- flags for prev line jmp getLineStart gotLineToCalcFrom: ; ; bx.di = Line to calc from. ; This is either the line passed in or else it is the previous line. ; movdw dxbp, bxdi ; dx.bp <- line to calc from call TL_LinePrevious ; bx.di <- previous line jc firstLine ; Branch if no previous line call TL_LineGetFlags ; ax <- prev line flags. mov cx, ax ; cx <- prev line flags jmp getLineStart getPrevLineFlags: push bx, di, ax ; Save passed line, offset.low mov cx, mask LF_ENDS_PARAGRAPH ; Default flags call TL_LinePrevious ; bx.di <- previous line jc 10$ ; Branch if no previous line call TL_LineGetFlags ; ax <- prev line flags. mov cx, ax ; cx <- prev line flags 10$: pop bx, di, ax ; Restore passed line, offset.low jmp quit FindLineToCalcFrom endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CheckAfterFirstWord %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Check to see if a change in the text falls after the first word on a line. CALLED BY: FindLineToCalcFrom PASS: *ds:si = Instance ptr bx.di = Line dx.ax = Offset into the text where change occurred RETURN: carry set if the change falls after the first word dx.ax = Start of line DESTROYED: nothing (dx.ax preserved if change is in first word) PSEUDO CODE/STRATEGY: Scan backwards in the text until we find a word-break character. If that character is after the start of the line then we are inserting after the first word and we can calculate on the current line rather than from the previous one. KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 12/31/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CheckAfterFirstWord proc near uses cx, bp .enter ; ; dx.ax = Position of the change ; pushdw dxax ; Save position of change push bx ; Save line.high mov bx, CC_WORD_WRAP_BREAK ; Find prev word-break call TS_PrevCharInClass ; dx.ax <- position of break pop bx ; Restore line.hight ; ; bx.di = Line ; dx.ax = Position of the word-break before the change ; movdw bpcx, dxax ; bp.cx <- position of break call TL_LineToOffsetStart ; dx.ax <- line start cmpdw dxax, bpcx ; Compare line.start and break jbe afterFirstWord popdw dxax ; Restore position of change clc ; Signal: in first word quit: .leave ret afterFirstWord: add sp, 2 * size word ; Restore stack stc ; Signal: after first word jmp quit CheckAfterFirstWord endp Text ends
26.015254
80
0.609812
4032c2b29e58b1442db44ef61f4ea81248bf35b1
728
asm
Assembly
projects/07/MemoryAccess/PointerTest/PointerTest.asm
skatsuta/nand2tetris
8d130a89be6f9039cbb7226d8216026bdf85d00a
[ "MIT" ]
1
2015-09-23T03:27:19.000Z
2015-09-23T03:27:19.000Z
projects/07/MemoryAccess/PointerTest/PointerTest.asm
skatsuta/nand2tetris
8d130a89be6f9039cbb7226d8216026bdf85d00a
[ "MIT" ]
null
null
null
projects/07/MemoryAccess/PointerTest/PointerTest.asm
skatsuta/nand2tetris
8d130a89be6f9039cbb7226d8216026bdf85d00a
[ "MIT" ]
null
null
null
// ../MemoryAccess/PointerTest/PointerTest.vm @3030 D=A @SP A=M M=D @SP AM=M+1 @0 D=A @R3 AD=D+A @R13 M=D @SP AM=M-1 D=M @R13 A=M M=D @3040 D=A @SP A=M M=D @SP AM=M+1 @1 D=A @R3 AD=D+A @R13 M=D @SP AM=M-1 D=M @R13 A=M M=D @32 D=A @SP A=M M=D @SP AM=M+1 @2 D=A @THIS AD=D+M @R13 M=D @SP AM=M-1 D=M @R13 A=M M=D @46 D=A @SP A=M M=D @SP AM=M+1 @6 D=A @THAT AD=D+M @R13 M=D @SP AM=M-1 D=M @R13 A=M M=D @0 D=A @R3 AD=D+A D=M @SP A=M M=D @SP AM=M+1 @1 D=A @R3 AD=D+A D=M @SP A=M M=D @SP AM=M+1 @SP AM=M-1 D=M @SP AM=M-1 M=D+M @SP AM=M+1 @2 D=A @THIS AD=D+M D=M @SP A=M M=D @SP AM=M+1 @SP AM=M-1 D=M @SP AM=M-1 M=M-D @SP AM=M+1 @6 D=A @THAT AD=D+M D=M @SP A=M M=D @SP AM=M+1 @SP AM=M-1 D=M @SP AM=M-1 M=D+M @SP AM=M+1 (END) @END 0;JMP
5.02069
45
0.548077
bc7d3f47cc1db5f932754607d888ad41317f95b0
9,522
asm
Assembly
private/shell/comctl32/win95/i386/cctl1632.asm
King0987654/windows2000
01f9c2e62c4289194e33244aade34b7d19e7c9b8
[ "MIT" ]
11
2017-09-02T11:27:08.000Z
2022-01-02T15:25:24.000Z
private/shell/comctl32/win95/i386/cctl1632.asm
King0987654/windows2000
01f9c2e62c4289194e33244aade34b7d19e7c9b8
[ "MIT" ]
null
null
null
private/shell/comctl32/win95/i386/cctl1632.asm
King0987654/windows2000
01f9c2e62c4289194e33244aade34b7d19e7c9b8
[ "MIT" ]
14
2019-01-16T01:01:23.000Z
2022-02-20T15:54:27.000Z
page ,132 ;Thunk Compiler Version 1.8 Dec 14 1994 14:53:05 ;File Compiled Tue Jul 09 16:59:49 1996 ;Command Line: ..\..\..\dev\tools\binr\thunk.exe -NC _TEXT -o Cctl1632 ..\Cctl1632.thk TITLE $Cctl1632.asm .386 OPTION READONLY OPTION OLDSTRUCTS IFNDEF IS_16 IFNDEF IS_32 %out command line error: specify one of -DIS_16, -DIS_32 .err ENDIF ;IS_32 ENDIF ;IS_16 IFDEF IS_32 IFDEF IS_16 %out command line error: you can't specify both -DIS_16 and -DIS_32 .err ENDIF ;IS_16 ;************************* START OF 32-BIT CODE ************************* .model FLAT,STDCALL ;-- Import common flat thunk routines (in k32) externDef AllocMappedBuffer :near32 externDef FreeMappedBuffer :near32 externDef MapHInstLS :near32 externDef MapHInstLS_PN :near32 externDef MapHInstSL :near32 externDef MapHInstSL_PN :near32 externDef FT_Prolog :near32 externDef FT_Thunk :near32 externDef QT_Thunk :near32 externDef FT_Exit0 :near32 externDef FT_Exit4 :near32 externDef FT_Exit8 :near32 externDef FT_Exit12 :near32 externDef FT_Exit16 :near32 externDef FT_Exit20 :near32 externDef FT_Exit24 :near32 externDef FT_Exit28 :near32 externDef FT_Exit32 :near32 externDef FT_Exit36 :near32 externDef FT_Exit40 :near32 externDef FT_Exit44 :near32 externDef FT_Exit48 :near32 externDef FT_Exit52 :near32 externDef FT_Exit56 :near32 externDef SMapLS :near32 externDef SUnMapLS :near32 externDef SMapLS_IP_EBP_8 :near32 externDef SUnMapLS_IP_EBP_8 :near32 externDef SMapLS_IP_EBP_12 :near32 externDef SUnMapLS_IP_EBP_12 :near32 externDef SMapLS_IP_EBP_16 :near32 externDef SUnMapLS_IP_EBP_16 :near32 externDef SMapLS_IP_EBP_20 :near32 externDef SUnMapLS_IP_EBP_20 :near32 externDef SMapLS_IP_EBP_24 :near32 externDef SUnMapLS_IP_EBP_24 :near32 externDef SMapLS_IP_EBP_28 :near32 externDef SUnMapLS_IP_EBP_28 :near32 externDef SMapLS_IP_EBP_32 :near32 externDef SUnMapLS_IP_EBP_32 :near32 externDef SMapLS_IP_EBP_36 :near32 externDef SUnMapLS_IP_EBP_36 :near32 externDef SMapLS_IP_EBP_40 :near32 externDef SUnMapLS_IP_EBP_40 :near32 MapLS PROTO NEAR STDCALL :DWORD UnMapLS PROTO NEAR STDCALL :DWORD MapSL PROTO NEAR STDCALL p32:DWORD ;***************** START OF KERNEL32-ONLY SECTION ****************** ; Hacks for kernel32 initialization. IFDEF FT_DEFINEFTCOMMONROUTINES .data public FT_Cctl1632TargetTable ;Flat address of target table in 16-bit module. public FT_Cctl1632Checksum32 FT_Cctl1632Checksum32 dd 01e9ah ENDIF ;FT_DEFINEFTCOMMONROUTINES ;***************** END OF KERNEL32-ONLY SECTION ****************** .code ;************************* COMMON PER-MODULE ROUTINES ************************* .data ; The next two symbols must be exported so BBT knows not to optimize ; them. (We tag them as KeepTogetherRange in the BBT config file.) public Cctl1632_ThunkData32 ;This symbol must be exported. public FT_Prolog_Cctl1632 Cctl1632_ThunkData32 label dword dd 3130534ch ;Protocol 'LS01' dd 01e9ah ;Checksum dd 0 ;Jump table address. dd 3130424ch ;'LB01' dd 0 ;Flags dd 0 ;Reserved (MUST BE 0) dd 0 ;Reserved (MUST BE 0) dd offset QT_Thunk_Cctl1632 - offset Cctl1632_ThunkData32 dd offset FT_Prolog_Cctl1632 - offset Cctl1632_ThunkData32 .code externDef ThunkConnect32@24:near32 public Cctl1632_ThunkConnect32@16 Cctl1632_ThunkConnect32@16: pop edx push offset Cctl1632_ThkData16 push offset Cctl1632_ThunkData32 push edx jmp ThunkConnect32@24 Cctl1632_ThkData16 label byte db "Cctl1632_ThunkData16",0 pfnQT_Thunk_Cctl1632 dd offset QT_Thunk_Cctl1632 pfnFT_Prolog_Cctl1632 dd offset FT_Prolog_Cctl1632 .data QT_Thunk_Cctl1632 label byte db 32 dup(0cch) ;Patch space. FT_Prolog_Cctl1632 label byte db 32 dup(0cch) ;Patch space. .code ebp_top equ <[ebp + 8]> ;First api parameter ebp_retval equ <[ebp + -64]> ;Api return value FT_ESPFIXUP macro dwSpOffset or dword ptr [ebp + -20], 1 SHL ((dwSpOffset) SHR 1) endm ebp_qttop equ <[ebp + 8]> include fltthk.inc ;Support definitions include Cctl1632.inc ;************************ START OF THUNK BODIES************************ ; public DestroyPropertySheetPage16@4 DestroyPropertySheetPage16@4: FAPILOG16 35 mov cl,2 ; DestroyPropertySheetPage(16) = DestroyPropertySheetPage16(32) {} ; ; dword ptr [ebp+8]: hpage ; public IIDestroyPropertySheetPage16@4 IIDestroyPropertySheetPage16@4: push ebp mov ebp,esp push ecx sub esp,60 push dword ptr [ebp+8] ;hpage: dword->dword call dword ptr [pfnQT_Thunk_Cctl1632] cwde leave retn 4 ; public CreatePage16@8 CreatePage16@8: FAPILOG16 18 mov cl,1 ; CreatePage(16) = CreatePage16(32) {} ; ; dword ptr [ebp+8]: hpage ; dword ptr [ebp+12]: hwndParent ; public IICreatePage16@8 IICreatePage16@8: push ebp mov ebp,esp push ecx sub esp,60 push dword ptr [ebp+8] ;hpage: dword->dword push word ptr [ebp+12] ;hwndParent: dword->word call dword ptr [pfnQT_Thunk_Cctl1632] movzx eax,ax leave retn 8 ; public GetPageInfoME@24 GetPageInfoME@24: FAPILOG16 0 mov cx, (6 SHL 10) + (0 SHL 8) + 0 ; GetPageInfo(16) = GetPageInfoME(32) {} ; ; dword ptr [ebp+8]: hpage ; dword ptr [ebp+12]: pszCaption ; dword ptr [ebp+16]: cbCaption ; dword ptr [ebp+20]: ppt ; dword ptr [ebp+24]: phIcon ; dword ptr [ebp+28]: pb ; public IIGetPageInfoME@24 IIGetPageInfoME@24: call dword ptr [pfnFT_Prolog_Cctl1632] xor eax,eax push eax push eax sub esp,4 mov esi,[ebp+20] or esi,esi jz @F or byte ptr [esi], 0 or byte ptr [esi + 7], 0 @@: mov edx, dword ptr [ebp+24] or edx,edx jz @F or dword ptr [edx], 0 @@: mov edx, dword ptr [ebp+28] or edx,edx jz @F or dword ptr [edx], 0 @@: push dword ptr [ebp+8] ;hpage: dword->dword call SMapLS_IP_EBP_12 push eax push word ptr [ebp+16] ;cbCaption: dword->word mov esi,[ebp+20] or esi,esi jnz M0 push esi jmp M1 M0: lea edi,[ebp-76] push edi ;ppt: lpstruct32->lpstruct16 or dword ptr [ebp-20],010h ;Set flag to fixup ESP-rel argument. M1: mov eax, dword ptr [ebp+24] call SMapLS mov [ebp-68],edx push eax mov eax, dword ptr [ebp+28] call SMapLS mov [ebp-72],edx push eax call FT_Thunk movsx ebx,ax call SUnMapLS_IP_EBP_12 mov edi,[ebp+20] or edi,edi jz M2 lea esi,[ebp-76] ;ppt Struct16->Struct32 lodsw cwde stosd lodsw cwde stosd M2: mov edx, dword ptr [ebp+24] or edx,edx jz M3 mov word ptr [edx+2], 0 M3: mov ecx, dword ptr [ebp-68] call SUnMapLS mov edx, dword ptr [ebp+28] or edx,edx jz M4 mov word ptr [edx+2], 0 M4: mov ecx, dword ptr [ebp-72] call SUnMapLS jmp FT_Exit24 ; public GetPageInfo16@20 GetPageInfo16@20: FAPILOG16 0 mov cx, (5 SHL 10) + (0 SHL 8) + 0 ; GetPageInfo(16) = GetPageInfo16(32) {} ; ; dword ptr [ebp+8]: hpage ; dword ptr [ebp+12]: pszCaption ; dword ptr [ebp+16]: cbCaption ; dword ptr [ebp+20]: ppt ; dword ptr [ebp+24]: phIcon ; public IIGetPageInfo16@20 IIGetPageInfo16@20: call dword ptr [pfnFT_Prolog_Cctl1632] xor eax,eax push eax sub esp,4 mov esi,[ebp+20] or esi,esi jz @F or byte ptr [esi], 0 or byte ptr [esi + 7], 0 @@: mov edx, dword ptr [ebp+24] or edx,edx jz @F or dword ptr [edx], 0 @@: push dword ptr [ebp+8] ;hpage: dword->dword call SMapLS_IP_EBP_12 push eax push word ptr [ebp+16] ;cbCaption: dword->word mov esi,[ebp+20] or esi,esi jnz L0 push esi jmp L1 L0: lea edi,[ebp-72] push edi ;ppt: lpstruct32->lpstruct16 or dword ptr [ebp-20],04h ;Set flag to fixup ESP-rel argument. L1: mov eax, dword ptr [ebp+24] call SMapLS mov [ebp-68],edx push eax call FT_Thunk movsx ebx,ax call SUnMapLS_IP_EBP_12 mov edi,[ebp+20] or edi,edi jz L2 lea esi,[ebp-72] ;ppt Struct16->Struct32 lodsw cwde stosd lodsw cwde stosd L2: mov edx, dword ptr [ebp+24] or edx,edx jz L3 mov word ptr [edx+2], 0 L3: mov ecx, dword ptr [ebp-68] call SUnMapLS jmp FT_Exit20 ;----------------------------------------------------------- ifdef DEBUG FT_ThunkLogNames label byte db '[F] GetPageInfo16',0 db '[F] CreatePage16',0 db '[F] DestroyPropertySheetPage16',0 endif ;DEBUG ;----------------------------------------------------------- ELSE ;************************* START OF 16-BIT CODE ************************* OPTION SEGMENT:USE16 .model LARGE,PASCAL .code _TEXT externDef GetPageInfo:far16 externDef CreatePage:far16 externDef DestroyPropertySheetPage:far16 FT_Cctl1632TargetTable label word dw offset GetPageInfo dw seg GetPageInfo dw offset CreatePage dw seg CreatePage dw offset DestroyPropertySheetPage dw seg DestroyPropertySheetPage .data public Cctl1632_ThunkData16 ;This symbol must be exported. Cctl1632_ThunkData16 dd 3130534ch ;Protocol 'LS01' dd 01e9ah ;Checksum dw offset FT_Cctl1632TargetTable dw seg FT_Cctl1632TargetTable dd 0 ;First-time flag. .code _TEXT externDef ThunkConnect16:far16 public Cctl1632_ThunkConnect16 Cctl1632_ThunkConnect16: pop ax pop dx push seg Cctl1632_ThunkData16 push offset Cctl1632_ThunkData16 push seg Cctl1632_ThkData32 push offset Cctl1632_ThkData32 push cs push dx push ax jmp ThunkConnect16 Cctl1632_ThkData32 label byte db "Cctl1632_ThunkData32",0 ENDIF END
19.962264
88
0.68473
8201579df3003169e1f1e5edf91668932bb64d8e
394
asm
Assembly
programs/oeis/010/A010128.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/010/A010128.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/010/A010128.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A010128: Continued fraction for sqrt(29). ; 5,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2 seq $0,10186 ; Continued fraction for sqrt(125). sub $0,1 mul $0,2 add $2,$0 lpb $2 sub $0,1 div $2,6 lpe div $0,4 add $0,1
28.142857
220
0.583756
e05ba6f9a78598daac8850ebbf54f806cd235b3b
1,716
asm
Assembly
programs/oeis/124/A124302.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/124/A124302.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/124/A124302.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A124302: Number of set partitions with at most 3 blocks; number of Dyck paths of height at most 4; dimension of space of symmetric polynomials in 3 noncommuting variables. ; 1,1,2,5,14,41,122,365,1094,3281,9842,29525,88574,265721,797162,2391485,7174454,21523361,64570082,193710245,581130734,1743392201,5230176602,15690529805,47071589414,141214768241,423644304722,1270932914165,3812798742494,11438396227481,34315188682442,102945566047325,308836698141974,926510094425921,2779530283277762,8338590849833285,25015772549499854,75047317648499561,225141952945498682,675425858836496045,2026277576509488134,6078832729528464401,18236498188585393202,54709494565756179605,164128483697268538814,492385451091805616441,1477156353275416849322,4431469059826250547965,13294407179478751643894,39883221538436254931681,119649664615308764795042,358948993845926294385125,1076846981537778883155374,3230540944613336649466121,9691622833840009948398362,29074868501520029845195085,87224605504560089535585254,261673816513680268606755761,785021449541040805820267282,2355064348623122417460801845,7065193045869367252382405534,21195579137608101757147216601,63586737412824305271441649802,190760212238472915814324949405,572280636715418747442974848214,1716841910146256242328924544641,5150525730438768726986773633922,15451577191316306180960320901765,46354731573948918542880962705294,139064194721846755628642888115881,417192584165540266885928664347642,1251577752496620800657785993042925,3754733257489862401973357979128774,11264199772469587205920073937386321,33792599317408761617760221812158962,101377797952226284853280665436476885,304133393856678854559841996309430654,912400181570036563679525988928291961 mov $1,3 pow $1,$0 div $1,6 add $1,1 mov $0,$1
190.666667
1,493
0.91958
0727233fad8d6b744d66dc8c306c1b5525e683b4
429
asm
Assembly
programs/oeis/103/A103469.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/103/A103469.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/103/A103469.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A103469: Number of polyominoes without holes consisting of 3 regular unit n-gons. ; 1,2,2,3,2,3,3,4,4,5,4,5,5,6,6,7,6,7,7,8,8,9,8,9,9,10,10,11,10,11,11,12,12,13,12,13,13,14,14,15,14,15,15,16,16,17,16,17,17,18,18,19,18,19,19,20,20,21,20,21,21,22,22,23,22,23,23,24,24,25,24,25,25,26,26,27,26,27,27,28,28,29,28,29,29,30,30,31,30,31,31,32,32,33,32,33,33,34,34,35 add $0,11 mov $1,$0 gcd $1,2 add $0,$1 add $0,$1 div $0,3 sub $0,3
39
276
0.648019
3f91e220d4160da7597311153cb8e3073eea5a38
2,460
asm
Assembly
PRG/levels/PipeMaze/5-2Under.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/levels/PipeMaze/5-2Under.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/levels/PipeMaze/5-2Under.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
; Original address was $B481 ; 5-2 vertical underground .word W502L ; Alternate level layout .word W502O ; Alternate object layout .byte LEVEL1_SIZE_12 | LEVEL1_YSTART_170 .byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 | LEVEL2_UNUSEDFLAG .byte LEVEL3_TILESET_14 | LEVEL3_VERTICAL | LEVEL3_VSCROLL_FREE | LEVEL3_PIPENOTEXIT .byte LEVEL4_BGBANK_INDEX(8) | LEVEL4_INITACT_NOTHING .byte LEVEL5_BGM_UNDERGROUND | LEVEL5_TIME_300 .byte $00, $00, $0C, $20, $00, $40, $21, $00, $40, $22, $00, $40, $23, $00, $40, $24 .byte $00, $40, $25, $00, $40, $26, $00, $40, $27, $00, $40, $28, $00, $40, $29, $00 .byte $40, $2A, $00, $40, $2B, $00, $40, $2C, $00, $40, $2D, $00, $40, $2E, $00, $40 .byte $20, $10, $40, $21, $10, $40, $22, $10, $40, $23, $10, $40, $24, $10, $40, $25 .byte $10, $40, $26, $10, $40, $27, $10, $40, $28, $10, $40, $29, $10, $40, $2A, $10 .byte $40, $2B, $10, $40, $2C, $10, $40, $2D, $10, $40, $2E, $10, $40, $20, $05, $40 .byte $21, $05, $40, $22, $05, $40, $23, $05, $40, $24, $05, $40, $25, $05, $40, $26 .byte $05, $40, $27, $05, $40, $28, $05, $40, $29, $05, $40, $2A, $05, $40, $2B, $05 .byte $40, $2C, $05, $40, $2D, $05, $40, $2E, $05, $40, $20, $15, $40, $21, $15, $40 .byte $22, $15, $40, $23, $15, $40, $24, $15, $40, $25, $15, $40, $26, $15, $40, $27 .byte $15, $40, $28, $15, $40, $29, $15, $40, $2A, $15, $40, $2B, $15, $40, $2C, $15 .byte $40, $2D, $15, $40, $2E, $15, $40, $20, $02, $D1, $20, $0A, $DF, $20, $1A, $C3 .byte $22, $16, $42, $22, $1D, $42, $27, $18, $10, $27, $1D, $10, $28, $19, $13, $29 .byte $16, $10, $2C, $17, $10, $20, $29, $10, $23, $2C, $12, $25, $23, $60, $25, $27 .byte $10, $27, $2A, $11, $48, $25, $02, $2B, $28, $60, $2B, $25, $40, $07, $38, $63 .byte $07, $3C, $72, $0B, $3C, $59, $06, $44, $4E, $01, $5C, $83, $04, $59, $84, $02 .byte $65, $62, $02, $6A, $72, $0C, $58, $4A, $08, $62, $49, $02, $7A, $5B, $02, $7C .byte $5B, $07, $73, $85, $04, $8C, $4E, $0A, $82, $63, $0A, $86, $72, $01, $94, $56 .byte $01, $96, $56, $0A, $96, $63, $0A, $9A, $71, $4D, $A0, $8C, $0F, $28, $B7, $92 .byte $2B, $B0, $4F, $26, $B3, $A4, $27, $BD, $A3, $28, $27, $82, $29, $49, $80, $2D .byte $48, $80, $22, $57, $80, $2A, $59, $80, $20, $6B, $80, $27, $6C, $80, $29, $6C .byte $80, $2B, $6C, $80, $20, $7A, $80, $23, $79, $80, $26, $78, $80, $22, $86, $80 .byte $25, $87, $80, $29, $86, $80, $2D, $87, $80, $22, $A7, $81, $24, $A7, $81, $E1 .byte $61, $22, $EB, $12, $88, $FF
70.285714
85
0.491463
d6541d3cdc802a513baf13aa46c40ce140a3d4b2
53
asm
Assembly
l3337 codes/x.asm/very dangerous.asm
pankace/SICP-robably
765f516f253e96ae2c8e433722ea7cefd31b2f04
[ "MIT" ]
null
null
null
l3337 codes/x.asm/very dangerous.asm
pankace/SICP-robably
765f516f253e96ae2c8e433722ea7cefd31b2f04
[ "MIT" ]
null
null
null
l3337 codes/x.asm/very dangerous.asm
pankace/SICP-robably
765f516f253e96ae2c8e433722ea7cefd31b2f04
[ "MIT" ]
null
null
null
stdcall ProcesarTecla,"1" jmp siguienteHook .endif
13.25
25
0.792453
3179feef03e26e5f31a5871dc3f2493b4ba96b4c
595
asm
Assembly
programs/oeis/054/A054683.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/054/A054683.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/054/A054683.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A054683: Numbers n such that sum of digits is even. ; 0,2,4,6,8,11,13,15,17,19,20,22,24,26,28,31,33,35,37,39,40,42,44,46,48,51,53,55,57,59,60,62,64,66,68,71,73,75,77,79,80,82,84,86,88,91,93,95,97,99,101,103,105,107,109,110,112,114,116,118,121,123,125,127,129,130,132,134,136,138,141,143,145,147,149,150,152,154,156,158,161,163,165,167,169,170,172,174,176,178,181,183,185,187,189,190,192,194,196,198 mov $5,$0 mul $0,2 mov $4,1 lpb $0 mov $3,5 add $6,$0 div $0,10 add $6,$4 div $4,2 lpe add $3,1 mov $7,$6 add $7,1 add $7,$3 mod $7,2 mov $1,$7 mov $2,$5 mul $2,2 add $1,$2 mov $0,$1
24.791667
346
0.643697
11877d2bcec6e33821fb86c4d2e720e106f7d962
1,090
asm
Assembly
programs/oeis/163/A163704.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/163/A163704.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/163/A163704.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A163704: Number of n X 2 binary arrays with all 1s connected, a path of 1s from left column to lower right corner, and no 1 having more than two 1s adjacent. ; 1,5,11,21,38,66,112,187,309,507,828,1348,2190,3553,5759,9329,15106,24454,39580,64055,103657,167735,271416,439176,710618,1149821,1860467,3010317,4870814,7881162,12752008,20633203,33385245,54018483,87403764,141422284,228826086,370248409,599074535,969322985,1568397562,2537720590,4106118196,6643838831,10749957073,17393795951,28143753072,45537549072,73681302194,119218851317,192900153563,312119004933,505019158550,817138163538,1322157322144,2139295485739,3461452807941,5600748293739,9062201101740,14662949395540,23725150497342,38388099892945,62113250390351,100501350283361,162614600673778,263115950957206,425730551631052,688846502588327,1114577054219449,1803423556807847,2918000611027368,4721424167835288,7639424778862730 mov $1,$0 mov $7,$0 lpb $0 mov $4,$5 mov $6,$1 add $6,$2 add $2,4 trn $4,$0 sub $0,1 mov $1,$4 mov $3,5 add $6,2 add $5,$6 lpe add $1,$3 trn $1,4 lpb $7 add $1,3 sub $7,1 lpe add $1,1
43.6
720
0.795413
86ef9c8e5628052a913b0a94ee7e6f972008d0ac
790
asm
Assembly
data/pokemon/base_stats/blaziken.asm
TastySnax12/pokecrystal16-493-plus
9de36c8803c9bdf4b8564ed547f988b0b66f0c41
[ "blessing" ]
2
2021-07-31T07:05:06.000Z
2021-10-16T03:32:26.000Z
data/pokemon/base_stats/blaziken.asm
TastySnax12/pokecrystal16-493-plus
9de36c8803c9bdf4b8564ed547f988b0b66f0c41
[ "blessing" ]
null
null
null
data/pokemon/base_stats/blaziken.asm
TastySnax12/pokecrystal16-493-plus
9de36c8803c9bdf4b8564ed547f988b0b66f0c41
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
db 0 ; species ID placeholder db 80, 120, 70, 80, 110, 70 ; hp atk def spd sat sdf db FIRE, FIRE ; type db 45 ; catch rate db 209 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F12_5 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/blaziken/front.dimensions" db 0, 0, 0, 0 ; padding db GROWTH_MEDIUM_SLOW ; growth rate dn EGG_GROUND, EGG_GROUND ; egg groups ; tm/hm learnset tmhm DYNAMICPUNCH, HEADBUTT, CURSE, ROAR, TOXIC, ROCK_SMASH, HIDDEN_POWER, SUNNY_DAY, SNORE, HYPER_BEAM, PROTECT, ENDURE, FRUSTRATION, SOLARBEAM, EARTHQUAKE, RETURN, DIG, MUD_SLAP, DOUBLE_TEAM, SWAGGER, SLEEP_TALK, FIRE_BLAST, SWIFT, THUNDERPUNCH, DETECT, REST, ATTRACT, FIRE_PUNCH, FURY_CUTTER, CUT, STRENGTH, FLAMETHROWER ; end
35.909091
324
0.726582
0bb461663d53382cb552b8b03cc8ddec1013802b
323
asm
Assembly
oeis/128/A128422.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/128/A128422.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/128/A128422.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A128422: Projective plane crossing number of K_{4,n}. ; Submitted by Christian Krause ; 0,0,0,2,4,6,10,14,18,24,30,36,44,52,60,70,80,90,102,114,126,140,154,168,184,200,216,234,252,270,290,310,330,352,374,396,420,444,468,494,520,546,574,602,630,660,690,720,752,784,816,850,884,918,954,990,1026 bin $0,2 div $0,3 mul $0,2
40.375
206
0.71517
22be13789741190b6a64a30be6efde69ebbfb81a
994
asm
Assembly
src/firmware-tests/Platform/Timer0/Initialisation/InitialiseTimer0Test.asm
pete-restall/Cluck2Sesame-Prototype
99119b6748847a7b6aeadc4bee42cbed726f7fdc
[ "MIT" ]
1
2019-12-12T09:07:08.000Z
2019-12-12T09:07:08.000Z
src/firmware-tests/Platform/Timer0/Initialisation/InitialiseTimer0Test.asm
pete-restall/Cluck2Sesame-Prototype
99119b6748847a7b6aeadc4bee42cbed726f7fdc
[ "MIT" ]
null
null
null
src/firmware-tests/Platform/Timer0/Initialisation/InitialiseTimer0Test.asm
pete-restall/Cluck2Sesame-Prototype
99119b6748847a7b6aeadc4bee42cbed726f7fdc
[ "MIT" ]
null
null
null
#include "Platform.inc" #include "FarCalls.inc" #include "Timer0.inc" #include "TestFixture.inc" #include "../InitialiseAfterTimer0Mock.inc" radix decimal udata global initialOptionReg global initialT0If global expectedOptionReg initialOptionReg res 1 initialT0If res 1 expectedOptionReg res 1 InitialiseTimer0Test code global testArrange testArrange: banksel initialOptionReg movf initialOptionReg, W banksel OPTION_REG movwf OPTION_REG banksel initialT0If movf initialT0If banksel INTCON bcf INTCON, T0IF btfss STATUS, Z bsf INTCON, T0IF fcall initialiseInitialiseAfterTimer0Mock testAct: fcall initialiseTimer0 testAssert: .aliasForAssert TMR0, _a .assert "_a == 0, 'Expected TMR0 == 0.'" banksel INTCON clrw btfsc INTCON, T0IF movlw 0xff .aliasWForAssert _a .assert "_a == 0, 'Expected T0IF to be cleared.'" .aliasForAssert OPTION_REG, _a .aliasForAssert expectedOptionReg, _b .assert "_a == _b, 'OPTION_REG expectation failure.'" return end
17.75
54
0.775654
ff9a901801455cfd4e44f03b42e5476d423fe75a
379
asm
Assembly
programs/oeis/077/A077649.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/077/A077649.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/077/A077649.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A077649: Initial digit of composite numbers. ; 4,6,8,9,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 seq $0,2808 ; The composite numbers: numbers n of the form x*y for x > 1 and y > 1. lpb $0 mov $1,$0 div $0,10 lpe mov $0,$1
37.9
201
0.569921
a2f4ca0c1c993ae0a2fb88662a46f7b967ac1312
540
asm
Assembly
oeis/108/A108979.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/108/A108979.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/108/A108979.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A108979: Numbers n such that 31*n + 29 is prime. ; Submitted by Jon Maiga ; 0,8,12,14,18,24,32,50,60,62,68,78,84,90,98,102,104,144,150,162,164,168,188,192,194,200,204,222,230,234,248,252,260,272,278,302,318,320,330,332,342,354,362,368,384,390,402,404,410,420,428,432,440,468,474,498 mov $2,$0 add $2,6 pow $2,2 lpb $2 mov $3,$4 add $3,28 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 mov $1,$0 max $1,0 cmp $1,$0 mul $2,$1 add $3,1 sub $2,$3 add $4,62 lpe mov $0,$4 div $0,31
23.478261
208
0.638889
8732d77117110df884edfa808c2056171baf241a
1,987
asm
Assembly
programs/oeis/134/A134934.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/134/A134934.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/134/A134934.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A134934: a(n) = (14*n+1)^2. ; 1,225,841,1849,3249,5041,7225,9801,12769,16129,19881,24025,28561,33489,38809,44521,50625,57121,64009,71289,78961,87025,95481,104329,113569,123201,133225,143641,154449,165649,177241,189225,201601,214369,227529,241081,255025,269361,284089,299209,314721,330625,346921,363609,380689,398161,416025,434281,452929,471969,491401,511225,531441,552049,573049,594441,616225,638401,660969,683929,707281,731025,755161,779689,804609,829921,855625,881721,908209,935089,962361,990025,1018081,1046529,1075369,1104601,1134225,1164241,1194649,1225449,1256641,1288225,1320201,1352569,1385329,1418481,1452025,1485961,1520289,1555009,1590121,1625625,1661521,1697809,1734489,1771561,1809025,1846881,1885129,1923769,1962801,2002225,2042041,2082249,2122849,2163841,2205225,2247001,2289169,2331729,2374681,2418025,2461761,2505889,2550409,2595321,2640625,2686321,2732409,2778889,2825761,2873025,2920681,2968729,3017169,3066001,3115225,3164841,3214849,3265249,3316041,3367225,3418801,3470769,3523129,3575881,3629025,3682561,3736489,3790809,3845521,3900625,3956121,4012009,4068289,4124961,4182025,4239481,4297329,4355569,4414201,4473225,4532641,4592449,4652649,4713241,4774225,4835601,4897369,4959529,5022081,5085025,5148361,5212089,5276209,5340721,5405625,5470921,5536609,5602689,5669161,5736025,5803281,5870929,5938969,6007401,6076225,6145441,6215049,6285049,6355441,6426225,6497401,6568969,6640929,6713281,6786025,6859161,6932689,7006609,7080921,7155625,7230721,7306209,7382089,7458361,7535025,7612081,7689529,7767369,7845601,7924225,8003241,8082649,8162449,8242641,8323225,8404201,8485569,8567329,8649481,8732025,8814961,8898289,8982009,9066121,9150625,9235521,9320809,9406489,9492561,9579025,9665881,9753129,9840769,9928801,10017225,10106041,10195249,10284849,10374841,10465225,10556001,10647169,10738729,10830681,10923025,11015761,11108889,11202409,11296321,11390625,11485321,11580409,11675889,11771761,11868025,11964681,12061729,12159169 mul $0,14 add $0,1 pow $0,2 mov $1,$0
248.375
1,917
0.856064
637c5071d655b3cadfeebf4cb58c4d9ac224b950
309
asm
Assembly
CSE_316_8086_Practice/1505080_Prac_5.asm
ishtiaqniloy/BUET-CSE-316-8086
acab4e8a42247a8e28959a3e8f1c28dc18c2f441
[ "MIT" ]
null
null
null
CSE_316_8086_Practice/1505080_Prac_5.asm
ishtiaqniloy/BUET-CSE-316-8086
acab4e8a42247a8e28959a3e8f1c28dc18c2f441
[ "MIT" ]
null
null
null
CSE_316_8086_Practice/1505080_Prac_5.asm
ishtiaqniloy/BUET-CSE-316-8086
acab4e8a42247a8e28959a3e8f1c28dc18c2f441
[ "MIT" ]
null
null
null
;PRACTICE PROBLEM 5 .MODEL SMALL .DATA .CODE MAIN PROC MOV CL, 68 MOV AH, 2 MOV DL, CL INT 21h MOV AH, 4Ch ;RETURN INT 21h MAIN ENDP END MAIN
9.088235
27
0.333333
52b84a6bda5ce29bae58b4aa334d2468f41177b6
312
asm
Assembly
programs/oeis/178/A178391.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/178/A178391.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/178/A178391.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A178391: a(n) = (n^3+1)^3+1. ; 1,2,9,730,21953,274626,2000377,10218314,40707585,135005698,389017001,1003003002,2363266369,5168743490,10618986393,20683643626,38477541377,68769820674,118660303945,198461344538,322828856001,512192024002 mov $1,$0 sub $0,1 mov $2,$0 pow $0,3 sub $0,$2 add $0,$1 pow $0,3 add $0,1
26
203
0.75
74b5ea25751a287ca69f6eae58d0fd603b03ea40
197
asm
Assembly
asm_patches/main.asm
TrogWW/WW_Hacking_API
f151c92fe75bede4b7089ad15aa3de551009aad6
[ "MIT" ]
5
2020-05-09T22:35:35.000Z
2021-04-13T02:26:52.000Z
asm_patches/main.asm
LagoLunatic/WW_Hacking_API
e2feece39e353a752b41d938d7731951446e6cd2
[ "MIT" ]
null
null
null
asm_patches/main.asm
LagoLunatic/WW_Hacking_API
e2feece39e353a752b41d938d7731951446e6cd2
[ "MIT" ]
4
2020-12-26T15:37:53.000Z
2021-10-05T08:20:46.000Z
; Put your custom ASM code for your hack into this file. ; You can also .include other ASM files into this one. For example: ;.include "includes/skip_intro.asm" ;.include "includes/bgm_file.asm"
28.142857
67
0.751269
ddf55f97afb5a25690b572a5942cac1e402cebed
634
asm
Assembly
asm/proc.asm
alexandru-dinu/programming-practice
4e18db73f7146f35988bff0b193b5ec6b8e567fb
[ "MIT" ]
null
null
null
asm/proc.asm
alexandru-dinu/programming-practice
4e18db73f7146f35988bff0b193b5ec6b8e567fb
[ "MIT" ]
4
2019-07-18T22:21:32.000Z
2020-04-27T22:47:28.000Z
asm/proc.asm
alexandru-dinu/programming-practice
4e18db73f7146f35988bff0b193b5ec6b8e567fb
[ "MIT" ]
null
null
null
.model small .stack 100h .data str db 'ce nice e assembly' len equ $ - str .code ; printing macro macro print p mov dl, p mov ah, 02h int 21h endm print ; iterate through array and print its contents proc printiter str, len lea si, str mov cx, len iter: print [si] inc si loop iter ret endp ; main entry point main: mov ax, @data mov ds, ax call printiter str, len exit: mov ah, 4ch int 21h end main
14.744186
51
0.458991
3feb9cf28573e9a9f03219b27b68ad94f16eac6c
235
asm
Assembly
src/io.asm
fjpena/sword-of-ianna-zx
fdd6bdb5775933756e75402a7c6be80d5334702d
[ "Apache-2.0" ]
67
2017-10-07T18:48:05.000Z
2022-02-01T20:37:40.000Z
src/io.asm
fjpena/sword-of-ianna-zx
fdd6bdb5775933756e75402a7c6be80d5334702d
[ "Apache-2.0" ]
null
null
null
src/io.asm
fjpena/sword-of-ianna-zx
fdd6bdb5775933756e75402a7c6be80d5334702d
[ "Apache-2.0" ]
9
2017-10-06T21:02:55.000Z
2022-01-06T03:11:58.000Z
; I/O drivers IF IO_DRIVER=1 INCLUDE "io-3dos.asm" ENDIF IF IO_DRIVER=2 INCLUDE "io-sect.asm" ENDIF IF IO_DRIVER=3 INCLUDE "io-esxdos.asm" ENDIF IF IO_DRIVER=4 INCLUDE "io-cart.asm" ENDIF IF IO_DRIVER=5 INCLUDE "io-if2.asm" ENDIF
10.681818
23
0.744681
0638cf96ea75361c76d938076377ea1014d9746a
465
asm
Assembly
oeis/117/A117474.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/117/A117474.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/117/A117474.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A117474: The values of 'a' in a^2 + b^2 = c^2 where b - a = 7 and gcd(a,b,c)=1. ; Submitted by Jon Maiga ; 5,8,48,65,297,396,1748,2325,10205,13568,59496,79097,346785,461028,2021228,2687085,11780597,15661496,68662368,91281905,400193625,532029948,2332499396,3100897797,13594802765,18073356848 add $0,1 mov $2,-3 lpb $0 sub $0,1 add $1,8 mov $3,$0 add $3,$0 mod $3,4 mul $3,$2 add $1,$3 add $2,$1 lpe add $2,$1 mov $0,$2 sub $0,13 div $0,2 add $0,5
21.136364
185
0.655914
2ad888bf51730567a64e058f17c9fa9777d42c98
645
asm
Assembly
tests/hello_real.asm
Zero-Tang/SimpleWhpDemo
be5e4f4d5095103b56c2710a6929a808ca573ded
[ "MS-PL" ]
20
2021-07-18T17:32:41.000Z
2022-03-08T07:03:48.000Z
tests/hello_real.asm
Zero-Tang/SimpleWhpDemo
be5e4f4d5095103b56c2710a6929a808ca573ded
[ "MS-PL" ]
null
null
null
tests/hello_real.asm
Zero-Tang/SimpleWhpDemo
be5e4f4d5095103b56c2710a6929a808ca573ded
[ "MS-PL" ]
7
2021-07-19T08:45:01.000Z
2022-03-05T10:23:52.000Z
bits 16 org 0x100 ; Define special I/O Ports for hypercall. %define str_prt_port 0 segment .text start: ; Get the length of string. mov si,hello_str mov cx,100 call strlen ; Perform Output mov cx,dx mov dx,str_prt_port mov si,hello_str rep outsb ; Terminate this program. cli hlt ; Input Parameters: ; ds:si points to the string. ; cx indicates the maximum number of characters. ; Return Value: ; dx indicates the number of characters. ; This function automatically clears the DF flag. strlen: cld xor dx,dx @1: lodsb test al,al inc dx jz @2 loop @1 @2: ret segment .data hello_str: db "Hello Real-Mode Programming!",10,0
15.357143
49
0.731783
7aaffeee17b4947fbf7f7ceaae6b7f9a707eacab
464
asm
Assembly
Engine Hacks/Strmag/Strmag/Str Mag Split/Unit Viewer/Unit Viewer.asm
sme23/Christmas2
f3f3daeda1afe2b78bfed38cbf60d8bc17ca9f79
[ "CC0-1.0" ]
3
2020-06-15T14:22:38.000Z
2020-06-28T19:44:52.000Z
Wizardry/ExternalHacks/StrMagSplit/StrMagSplit/UnitViewer/UnitViewer.s
sme23/WhatHeck
746a2be83358aaa4e855182176b47c4808f2587a
[ "CC0-1.0" ]
null
null
null
Wizardry/ExternalHacks/StrMagSplit/StrMagSplit/UnitViewer/UnitViewer.s
sme23/WhatHeck
746a2be83358aaa4e855182176b47c4808f2587a
[ "CC0-1.0" ]
null
null
null
.thumb .org 0x0 push {r14} ldr r6,[r4] ldr r6,[r6] @char data ldr r0,MagGetter mov r14,r0 mov r0,r6 .short 0xF800 ldr r1,[r6,#0x4] ldrb r1,[r1,#0x4] lsl r1,#0x2 ldr r2,MagClassTable add r2,r1 ldrb r2,[r2,#0x2] mov r1,#0x2 cmp r0,r2 bne NoGlowyMag mov r1,#0x4 NoGlowyMag: mov r2,r0 ldr r0,ProcessMag mov r14,r0 mov r0,r5 add r0,#0x18 .short 0xF800 pop {r0} bx r0 .align ProcessMag: .long 0x08004B94 MagGetter: .long 0x080191B8 MagClassTable:
12.540541
24
0.693966
e0e81def1718bfe090c56846c7bb14ea00f57a14
3,145
asm
Assembly
_incObj/46 MZ Bricks.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
9
2021-01-15T13:47:53.000Z
2022-01-17T15:33:55.000Z
_incObj/46 MZ Bricks.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
7
2021-01-14T02:18:48.000Z
2021-03-24T15:44:30.000Z
_incObj/46 MZ Bricks.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
2
2021-01-14T13:14:26.000Z
2021-01-29T17:46:04.000Z
; --------------------------------------------------------------------------- ; Object 46 - solid blocks and blocks that fall from the ceiling (MZ) ; --------------------------------------------------------------------------- MarbleBrick: moveq #0,d0 move.b obRoutine(a0),d0 move.w Brick_Index(pc,d0.w),d1 jmp Brick_Index(pc,d1.w) ; =========================================================================== Brick_Index: dc.w Brick_Main-Brick_Index dc.w Brick_Action-Brick_Index brick_origY: equ $30 ; =========================================================================== Brick_Main: ; Routine 0 addq.b #2,obRoutine(a0) move.b #$F,obHeight(a0) move.b #$F,obWidth(a0) move.l #Map_Brick,obMap(a0) move.w #$4000,obGfx(a0) move.b #4,obRender(a0) move.b #3,obPriority(a0) move.b #$10,obActWid(a0) move.w obY(a0),brick_origY(a0) move.w #$5C0,$32(a0) Brick_Action: ; Routine 2 tst.b obRender(a0) bpl.s @chkdel moveq #0,d0 move.b obSubtype(a0),d0 ; get object type andi.w #7,d0 ; read only the 1st digit add.w d0,d0 move.w Brick_TypeIndex(pc,d0.w),d1 jsr Brick_TypeIndex(pc,d1.w) move.w #$1B,d1 move.w #$10,d2 move.w #$11,d3 move.w obX(a0),d4 bsr.w SolidObject @chkdel: if Revision=0 bsr.w DisplaySprite out_of_range DeleteObject rts else out_of_range DeleteObject bra.w DisplaySprite endc ; =========================================================================== Brick_TypeIndex:dc.w Brick_Type00-Brick_TypeIndex dc.w Brick_Type01-Brick_TypeIndex dc.w Brick_Type02-Brick_TypeIndex dc.w Brick_Type03-Brick_TypeIndex dc.w Brick_Type04-Brick_TypeIndex ; =========================================================================== Brick_Type00: rts ; =========================================================================== Brick_Type02: move.w (v_player+obX).w,d0 sub.w obX(a0),d0 bcc.s loc_E888 neg.w d0 loc_E888: cmpi.w #$90,d0 ; is Sonic within $90 pixels of the block? bcc.s Brick_Type01 ; if not, resume wobbling move.b #3,obSubtype(a0) ; if yes, make the block fall Brick_Type01: moveq #0,d0 move.b (v_oscillate+$16).w,d0 btst #3,obSubtype(a0) beq.s loc_E8A8 neg.w d0 addi.w #$10,d0 loc_E8A8: move.w brick_origY(a0),d1 sub.w d0,d1 move.w d1,obY(a0) ; update the block's position to make it wobble rts ; =========================================================================== Brick_Type03: bsr.w SpeedToPos addi.w #$18,obVelY(a0) ; increase falling speed bsr.w ObjFloorDist tst.w d1 ; has the block hit the floor? bpl.w locret_E8EE ; if not, branch add.w d1,obY(a0) clr.w obVelY(a0) ; stop the block falling move.w obY(a0),brick_origY(a0) move.b #4,obSubtype(a0) move.w (a1),d0 andi.w #$3FF,d0 if Revision=0 cmpi.w #$2E8,d0 else cmpi.w #$16A,d0 endc bcc.s locret_E8EE move.b #0,obSubtype(a0) locret_E8EE: rts ; =========================================================================== Brick_Type04: moveq #0,d0 move.b (v_oscillate+$12).w,d0 lsr.w #3,d0 move.w brick_origY(a0),d1 sub.w d0,d1 move.w d1,obY(a0) ; make the block wobble rts
25.569106
77
0.536725
2fbd0b18df5a2ddc702a6c6c084c4f2f25591673
26,316
asm
Assembly
sorting array.asm
raaedserag/Sorting-Array
2b478bc139e6e0728785a862b5f73d4d6a85bd50
[ "MIT" ]
1
2018-12-21T22:49:28.000Z
2018-12-21T22:49:28.000Z
sorting array.asm
raaedserag/Sorting-Array
2b478bc139e6e0728785a862b5f73d4d6a85bd50
[ "MIT" ]
null
null
null
sorting array.asm
raaedserag/Sorting-Array
2b478bc139e6e0728785a862b5f73d4d6a85bd50
[ "MIT" ]
null
null
null
.model tiny ;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .data ;&&&&&&&&&&&&&&&&&&&&&&&& MESSAGES &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& mgs1: db 13,10, 'Please enter the number of elements in the range of[1-25] : $' mgs2: db 13,10, 'Please enter the elements of the array to be sorted in the range of[0-65535] : $ ' mgs3: db 13,10, 'Please enter "a" for ascending sort or "d" for deascending sort : $' mgs5: db 13,10, 'Please enter suitable number in the range of [1 - 25]: $' mgs6: db 13,10, 'Please enter suitable number : $' over: db 13,10, 'ERROR: overflow, please repeat the element! $' ;&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& ;/\////////////////////////////////////////////////////////////////\ arr db 5 dup (?) ;array elements must be 2 digits in asciis as 'byte' and not shifted ! ;/\////////////////////////////////////////////////////////////////\ array dw 25 dup(?) ;array elements in decimal to be sorted ;/\////////////////////////////////////////////////////////////////\ num dw ? ;must be in ascii as 'word' ;/\////////////////////////////////////////////////////////////////\ count dw ? ;this will hold the decimal of num ;/\////////////////////////////////////////////////////////////////\ sort db ? ; it must be 'd'/'D'/'a'/'A' ;/\////////////////////////////////////////////////////////////////\ index dw 0 ; it holds the array of decimal index ;/\////////////////////////////////////////////////////////////////\ shift dw ? ; this will hold number of zero's before shifting ;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .code ;************************************************************************************************************ msg1: ; show msg1 for take number of element mov ah , 9 mov dx , offset mgs1 int 21h ;************************************************************************ input1: ; take frist input from user it must be from [1-25] mov ah,1 int 21h cmp al,30h ;///////////////////////// jb error ;compare if user entered any thing not number cmp al,39h ;it will jump to error massage if the user doesnot enter number ja error ;////////////////////////////////////////////// cmp al,30h ;compare if user enter zero je ending_the_program ; it will jump to label 'ending the program' to end the program mov bh,al ;move frist value in bh int 21h ;make interrupt for second value of element cmp al,0Dh ;ckeck if user made a enter press jnz continuee ; if user doesnot enter a enter press it willnot jump to continue label to store the second digit mov bl,bh ;move first value in bl from bh mov bh,30h ; put in bh zero mov num,bx ;store the number of element in variable called 'num' jmp mgs ;jump to show mgs and take element of arr continuee: ;if user enter a enter press it will jump to continue label to store the second digit mov bl,al ;move al to bl cmp bx , 00h ;////////////////////////////////////////////////////// ; check if user enter a number not from 1 to 25 jb error ;it will jump to error massage if user enter wrong number cmp bx , 3235h ja error ;//////////////////////////////////////////////////// mov num,bx ;store the number of element in variable called 'num' jmp mgs ;jump to show mgs and take element of arr ;**********-_*********************************************************************** error: mov ah,9 ;/////////////////////////////////////////////////// mov dx,offset mgs5 ;show to the user the error massage int 21h ;//////////////////////////////////////////////////// jmp input1 ;then jump to input1 to take the correct number of elements ;***************************************************************************** ;*********** massage of elements of array to be sorted************************ mgs: mov ah,9 mov dx,offset mgs2 int 21h mov ah,2h ;start of printing mov Dl,013 ;go to first position int 21h ;show it mov Dl,010 ;new line int 21h ;********************************************************************************* ;************************take the elements of array ****************************** input2: mov si,0000h ;put in si zero mov cx,num ;make cx as a counter contianing the number of element for entering elements of array sub cx,3030h ;convert cx to decimal number cmp ch,01h ;compare if ch has 01h jz edit_the_value ;if ch has 01h it will jump to edit_the_value of counter cmp ch,02h ;compare if ch has 02h jz edit_value ;if ch has 01h it will jump to edit_value of counter mov bx,0000h ;move bx zero mov bl,06h ; use bl as a counter for entering 5 digits for one element of array ;********************************************************************************************** ;************************take the element of array which consisted of 5 digits*************** arr_input: sub bl,01h ;subatrate from bl 01h to make bl =5 and take frist element of array 5 digits cmp bl,00h ;check if bl = 0 jz go_for_shifiting ;if bl=0 it means element of array if finished call input ;call input fot take the element ;******************************************************************************************* ;****************take a or d for ascending sort or descending sort ************************* input3: mov ah,1 ;start take the char int 21h ;take it cmp al,61h ;check if input is 'a' mov sort,al ;move char in a variable called 'sort' jz ascending_sort ;if the char is 'a' jump for ascending sort cmp al,64h ;check if input is 'd' jz ascending_sort ;if the char is 'd' jump for descending sort cmp al,30h ;////////////////////////////////////////// ja msg3 ; check if user not enter 'a' or 'd' or enter number cmp al,39h ; will jump to show mgs3 and take new input jb msg3 ;////////////////////////////////////////////// cmp al,0Dh jz msg3 new_line: mov ah,2h ;new line mov Dl,013 ;start of printing int 21h ;go to first position mov Dl,010 ;show it int 21h ;new line mov bl,06h ;move bl=6 to use it as a counter for next element mov si,0000h ;move si zero mov arr,0 ; clean arr loop arr_input ;jump to arr_input to take next element and sub from cl,1 ;************************************************************************************* ;******************* show massage ********************************************** msg3: mov ah,9 ;mov ah= 9 to show the msg3 mov dx,offset mgs3 ; store the offset of msg3 in dx int 21h ; show it jmp input3 ;then jump to take the input3 ;************************************************************************************** ;******************** end program **************************************************** ending_the_program: ;label to end the program if user entered at frist zero ret ;************************************************************************************** ;********************* edit value of counter 'cx'************************************* edit_the_value: mov bx,0000h ; let bx=0 mov bl,06h ;move bl=6 to be counter add cl,0ah ;add cl = cl(old)+10 mov ch,00h ;put ch=0 jmp arr_input ;jump to take input edit_value: mov bx,0000h mov bl,06h add cl,14h ;add cl = cl(old)+20 mov ch,00h jmp arr_input ;jump to take input ;**************************************************************************************** ;************** procdure of input for digits of one element of array ******************* proc input pop bp ;pop adress in stack mov ah,1 int 21h ;take input cmp al,0Dh ;check if user press enter mov shift,bx ;if user press enter store bx in variable called 'shift' bx= number of zeroes to be shifted jz put_zero cmp al,30h ;/////////////////////////////////////////////// jb arr_zero ;compare if input is not number cmp al,39h ;then jmp to msg6 ja arr_zero ;/////////////////////////////////////////////// mov arr[si],al ;move al at the index of si in arr inc si ; put si=si+1 push bp ; push adress from stack jmp arr_input ; return to next instruction ret ;******************************************************************************************** ;*************** functoin for fixing the number ********************************************* go_for_shifiting: mov shift,bx jmp check_or_shift ;check if the user has inputted a number in the range and store it ;*********************************************************************** put_zero: cmp bl,5 ;when user press enter when he enter frist digit of the element jz msg6 mov arr[si],'0' ;when user press enter when he enter after frist digit of the element put index of si in arr =0 inc si ; si = si+1 sub bl,01h cmp bl,00h ;check if bl !=0 jnz put_zero ;jump and repeat jmp check_or_shift ;check if the user has inputted a number in the range and store it arr_zero: mov di,0000h label: mov arr[di],0 inc di cmp di,5 jnz label msg6: mov si,0000h mov ah,9 mov dx,offset mgs6 int 21h mov ah,2h ;new line mov Dl,013 ;start of printing int 21h ;go to first position mov Dl,010 ;show it int 21h mov bl,06h call arr_input ;************************************************************************************************************ ;*******************Shifting function*************************************** ; next function shift the non 5-digits elements proc asci_shifting pop bp jmp start_shift swap_shifting: mov arr[si],dl mov arr[di],al jmp continue_shifting start_shift: mov bx,shift ;bx holds the number of zeros ====> number of shifting mov cx,5 sub cx,bx ;cx holds the number of digits mov si,0 ;initialize si mov si,cx sub si,1 ;start from the last digit mov di,0 ;initialize di mov di,bx add di,si ;di will point to a place which equal the last digit + number of shifting shifting: mov al,arr[si] mov dl,arr[di] jmp swap_shifting ;swapping continue_shifting: dec si ;continue to the previous digit dec di ;continue to the previous place loop shifting push bp ret ;************************************************************************************************************ ;************************************************************************************************************ ;**************** Operation of printing ended *************************************************************** ; this function called only after printing operation_finished: ;Take the next input but first initialize all registers and variables mov ax,0000 mov bx,0000 mov cx,0000 mov dx,0000 mov si,0000 mov di,0000 mov index ,ax mov count ,ax jmp msg1 ; start again ;************************************************************************************************************ ;***********************Converting Array********************************************************************* ; This function convert the array of asciis to decimal word array ; This function called before start ascend_sort proc convert_digits pop bp mov si,0 ; si is a pointer to arr elements(byte) mov di,index ; di is a pinter to array elements(word) ;******** 5 digits element********** every_digit: mov dx,0000 ; dx,will hold the remainder & hold the tenth factor mov bx,0000 ; bx,will hold the decimal value of the element ;----- first digit (x....) mov ax,0000 ;ax must be empty[ah=0] mov al,arr[si] ;first ascii digit sub al,30h ;convert to decimal mov dx,10000 ;get the 10000 factor mul dx ;multiply ax[ah=0] by 10000 and put the result in ax add bx,ax ;add the result to bx ;----- second digit (.x...) mov ax,0000 ;ax must be empty[ah=0] mov al,arr[si+1] ;first ascii digit sub al,30h ;convert to decimal mov dx,1000 ;get the 1000 factor mul dx ;multiply ax[ah=0] by 1000 and put the result in ax add bx,ax ;add the result to bx ;----- third digit (..x..) mov ax,0000 ;ax must be empty[ah=0] mov al,arr[si+2] ;first ascii digit sub al,30h ;convert to decimal mov dx,100 ;get the 100 factor mul dx ;multiply ax[ah=0] by 100 and put the result in ax add bx,ax ;add the result to bx ;----- fourth digit (...x.) mov ax,0000 ;ax must be empty[ah=0] mov al,arr[si+3] ;first ascii digit sub al,30h ;convert to decimal mov dx,10 ;get the 10 factor mul dx ;multiply ax[ah=0] by 10 and put the result in ax add bx,ax ;add the result to bx ;----- fifth digit (....x) mov ax,0000 ;ax must be empty[ah=0] mov al,arr[si+4] ;first ascii digit sub al,30h ;convert to decimal mov dx,1 ;get the 1 factor mul dx ;multiply ax[ah=0] by 1 and put the result in ax add bx,ax ;add the result to bx ;----- mov array[di],bx ; store the element in the array(word) add di,2 ; continue to the next element in the array mov index,di ;------------------------------ push bp ret ;************************************************************************************************************ ;******** convert 'num' which in asciis to decimal and put it in 'count'******* proc convert_count pop bp mov ax,0000 ;initialize used registers mov bx,0000 mov dx,0000 mov dx,num ; move the 2-digits ascii number to dx sub dx,3030h ; convert dh,dl to decimal mov bl,dl ; move the decimal value of the 1's to bl mov al,dh ; move the decimal value of dh to al to multiply by 10 mov dl,10 ; mov decimal 10 to dl mul dl ; multiply al by dl and put the result in ax add bx,ax ; add the 10's value to 1's value mov count,bx ; move the result to count push bp ret ;*********************************************************************************************************** ;*********************** Push the ascii digits of the decimal value ************************ proc get_element_digits ;number of digits of an integer stored in SI + every digit sored in stack pop bp ;save return address mov si,0 ;number of digits=0 mov ax,bx ;move the number from bx to ax digit: mov dx,00 ;because dx store the reminder we have to make dx=00 every loop mov bx,10 ;bx=10 to divide the number by 10 div bx ;divide DX,AX/10 INC SI ;digits++ push dx ;store the reminder in stack cmp ax,00h ;quotient==0 ? jnz digit ;while(quotient != 0) loop push bp ret ;*********************************************************************************************************** ;************************ Pop & print the ascii digits of the decimal value *********************** proc print_element_digits ;print an integers (SI)times pop bp mov ah,2h ;intilaize printing prin: pop dx ;take the integer from stack add dl,48 ;correct its position int 21h DEC si ;SI-- cmp si,0 ;SI==0 ? jnz prin ;while (SI != 0) loop push bp ret ;*********************************************************************************************************** ;********* Defining Print function************* start_print: mov cx,count ; print 'num' of elements mov di,0 ; start from zero printing: mov bx,array[di] ; move the element to register bx to get it's digits call get_element_digits ; get the element digits and push it in the stack call print_element_digits ; pop the element digits and print it cmp cx,1 ; check if this is the last element je operation_finished ; if yes ===> terminate printing and don't print comma mov ah,2 ;printing the comma mov dl,',' int 21h add di,2 ; the next element loop printing ; continue printing jmp operation_finished ;*********************************************************************************************************** ;********* Defining swap procedure************* ; this function swap the arr[si] & arr[di] while arr[si],arr[di] is loaded in ax,dx proc swap pop bp mov array[si],dx mov array[di],ax inc bx ; mark that there is a swapping operation happend push bp ret ;*********************************************************************************************************** ;********* Defining continue browsing********** ; this function is used to continue browsing the array ; this function is used inside the ascending_sort fuction only continue: add si,2 add di,2 loop browsing ; if cx != 0 continue browsing jmp is_sort_has_finished? ; else jump to is_sort_has_finished? ;*********************************************************************************************************** ;********* Defining swap and continue ********* ; this function call the call procedure and then continue browsing ; this function is used inside ascending sort only swapping: call swap jmp continue ;*********************************************************************************************************** ;********* Defining reversing array************ proc reverse push bp mov ax,count mov dx,0000 mov bx,2 div bx mov cx,ax ;we will swap num of times = count of elements//2 mov si,0 ; fisrt element mov di,count ; note that count is in decimal add di,di ; let the di point to the last element+1 sub di,2 ; let the di point to the last element reversing: mov ax,array[si] ;put the arr[si]&arr[di] at ax,dx mov dx,array[di] call swap ;swapping arr[si] & arr[di] add si,2 ; let si point to the next element sub di,2 ; let di point to the previous element loop reversing pop bp ret ;************************************************************************************************************ ;********* Defining Descending sort************ ; in our program we already sorted the array ascending , now we want it descending , just reverse it !!! ; this function will be called only if the user input is 'd'or'D' descending_sort: call reverse ;reverse the array jmp start_print ;print it :) ;************************************************************************************************************ ;********* Defining ascending sort************* ; this is main function of the code it won't be called if the user has inputted 0 elements ; this algorithm 'called smart bubble sort' ; it compares every 2 elements step by step ascending_sort: mov ah,2h ;start of printing mov Dl,013 ;go to first position int 21h ;show it mov Dl,010 ;new line int 21h call convert_count ;convert 'num' from ascii to decimal ascend_sorting: mov bx,0 ; this register still zero only if there is no swapping operation happend ! mov cx,count cmp cx,1 ; check if the number of elements = 1 je start_print ; if yes , print directly sub cx,1 ; we will check every 2 elements , num of check operations = num of elements-1 mov si,0 ;start from first element mov di,2 ;start from second element browsing: ; this loop browses the elements and do checks mov ax,array[si] ;load first element at ax mov dx,array[di] ;load second element at dx cmp ax,dx jb continue je continue ja swapping ; swap elements only if the first<second ; note that the swapping make the swap, then it jumps to continue ; note that the continue function is looping to browsing or jump to is_sort_has_finished? is_sort_has_finished?: cmp bx,0 ; this register still zero if there is no swapping happend jne ascend_sorting ; if there is swapping operations, then the array maybe hasn's completly sorted ; if bx==0 ====> then the array has sorted , then continue the code :) stop_sorting: ; the array has sorted ascending cmp sort,'d' je descending_sort ; if the user input is 'd' or 'D' ==> jump to descending_sort cmp sort,'D' je descending_sort jmp start_print ;else ===> start printing directly ! ;*********************************************************************************************************** check_or_shift: ; check if the input is 5 digits mov ax,shift cmp ax,0 jne convert_it ; if no, convert it directly mov ax,0000 ; if yes , make sure that it's equal or below 65535(word) mov al,36h ;check if the first digit is above or below 6 cmp arr[0],al jb convert_it ;if below, start converting ja over_flow ;if yes, error ;if equal, continue checking mov al,35h cmp arr[1],al jb convert_it ; the same with second digit,5 ja over_flow mov al,35h ; the same with third digit,5 cmp arr[2],al jb convert_it ja over_flow mov al,33h ; the same with fourth digit,3 cmp arr[3],al jb convert_it ja over_flow mov al,35h ; the same with last digit,5 cmp arr[4],al ja over_flow ; if else , convert it convert_it: ;--------------------- push ax ;///////////////////////////////// push bx ;///////////////////////////////// push cx ; for saving the values of registers push dx push si ;/////////////////////////////////// push di ;//////////////////////////////////// call asci_shifting ;call function call convert_digits pop di ;/////////////////////////////////// pop si ;////////////////////////////////// pop dx ; pop the values of registers pop cx pop bx ;/////////////////////////////////// pop ax ;//////////////////////////////////////// jmp new_line ;--------------------- over_flow: mov dx,offset over ; show error message mov ah,9 int 21h jmp arr_zero ; retake the input
40.300153
141
0.424609
91cadeca45b837adcfdd1b7234caff3013efde62
644
asm
Assembly
oeis/074/A074534.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/074/A074534.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/074/A074534.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A074534: a(n) = 2^n + 4^n + 7^n. ; Submitted by Jamie Morken(s4) ; 3,13,69,415,2673,17863,121809,840055,5830593,40616263,283524849,1981523095,13858068513,96956127463,678491524689,4748635284535,33237225602433,232647693987463,1628482317649329,11399170063804375,79793365810288353,558550262131892263,3909838640773226769,27368817708833482615,191581512855559902273,1341069745563905297863,9387484841247448785009,65712380377932923839255,459986608602334267340193,3219906044043556415420263,22539341443613763768452049,157775386646531827189914295,1104427692690664724309818113 mov $1,7 pow $1,$0 mov $2,2 pow $2,$0 add $1,$2 pow $2,2 add $2,$1 mov $0,$2
49.538462
498
0.843168
213a247bb698725ced3c8dbd26027982eb6428bc
362
asm
Assembly
oeis/054/A054103.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/054/A054103.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/054/A054103.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A054103: T(n,n-3), array T as in A054098. ; Submitted by Christian Krause ; 1,14,30,148,744,4610,32870,266972,2431608,24554194,272289630,3289836260,43017800312,605289111698,9119314568454,146474344313980,2498617856687400 mov $1,9 mov $3,$0 mov $4,4 lpb $3 add $1,$4 mul $2,-1 add $2,$1 div $1,2 add $4,2 mul $1,$4 sub $3,1 lpe mov $0,$2 add $0,1
19.052632
145
0.685083
bd12a623bc3a25fe53ba00840f3e0f633d901c8d
376
asm
Assembly
fx/pixel_anim.h.asm
simondotm/fast-vgm
3d28c0d4597ddf9fe72087a6c047ac7d5e5646c4
[ "MIT" ]
2
2019-01-16T00:31:58.000Z
2021-02-19T21:01:04.000Z
fx/pixel_anim.h.asm
simondotm/fast-vgm
3d28c0d4597ddf9fe72087a6c047ac7d5e5646c4
[ "MIT" ]
null
null
null
fx/pixel_anim.h.asm
simondotm/fast-vgm
3d28c0d4597ddf9fe72087a6c047ac7d5e5646c4
[ "MIT" ]
1
2020-03-30T14:24:56.000Z
2020-03-30T14:24:56.000Z
; pixel animation fx .fx_anim_ptr SKIP 2 .fx_anim_idx SKIP 1 .fx_anim_x SKIP 1 .fx_anim_y SKIP 1 .fx_anim_dx SKIP 1 .fx_anim_dy SKIP 1 .fx_anim_num_it SKIP 1 .fx_anim_num_px SKIP 1 .fx_anim_frm_d SKIP 1 .fx_anim_frm_c SKIP 1 .fx_anim_num_loops SKIP 1 .fx_anim_loop_point SKIP 1 MACRO SET_ANIM_EFFECT fn { LDX #LO(fn):LDY #HI(fn):JSR fx_anim_init } ENDMACRO
18.8
44
0.755319
83a8ff87e986c3cd2c56d050544fdab499f7a121
73
asm
Assembly
src/main/fragment/mos6502-common/pwsc1_derefidx_vbuyy=pwsc1_derefidx_vbuyy_minus_vbuxx.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/pwsc1_derefidx_vbuyy=pwsc1_derefidx_vbuyy_minus_vbuxx.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/pwsc1_derefidx_vbuyy=pwsc1_derefidx_vbuyy_minus_vbuxx.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
stx $ff sec lda {c1},y sbc $ff sta {c1},y lda {c1}+1,y sbc #0 sta {c1},y
8.111111
12
0.575342
02d10a8ccd0ca0dd99623d6b199369ca6f642ed4
914
asm
Assembly
programs/oeis/016/A016923.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/016/A016923.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/016/A016923.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A016923: a(n) = (6*n + 1)^3. ; 1,343,2197,6859,15625,29791,50653,79507,117649,166375,226981,300763,389017,493039,614125,753571,912673,1092727,1295029,1520875,1771561,2048383,2352637,2685619,3048625,3442951,3869893,4330747,4826809,5359375,5929741,6539203,7189057,7880599,8615125,9393931,10218313,11089567,12008989,12977875,13997521,15069223,16194277,17373979,18609625,19902511,21253933,22665187,24137569,25672375,27270901,28934443,30664297,32461759,34328125,36264691,38272753,40353607,42508549,44738875,47045881,49430863,51895117,54439939,57066625,59776471,62570773,65450827,68417929,71473375,74618461,77854483,81182737,84604519,88121125,91733851,95443993,99252847,103161709,107171875,111284641,115501303,119823157,124251499,128787625,133432831,138188413,143055667,148035889,153130375,158340421,163667323,169112377,174676879,180362125,186169411,192100033,198155287,204336469,210644875 mul $0,6 add $0,1 pow $0,3
130.571429
854
0.854486
f12fb5281f7c6c231159ead365fddde62c60dc09
446
asm
Assembly
oeis/348/A348030.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/348/A348030.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/348/A348030.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A348030: a(n) = A003968(n) - n, where A003968 is multiplicative with a(p^e) = p*(p+1)^(e-1). ; Submitted by Jon Maiga ; 0,0,0,2,0,0,0,10,3,0,0,6,0,0,0,38,0,6,0,10,0,0,0,30,5,0,21,14,0,0,0,130,0,0,0,36,0,0,0,50,0,0,0,22,15,0,0,114,7,10,0,26,0,42,0,70,0,0,0,30,0,0,21,422,0,0,0,34,0,0,0,144,0,0,15,38,0,0,0,190,111,0,0,42,0,0,0,110,0,30,0,46,0,0,0,390,0,14,33,80 mov $2,$0 seq $2,3968 ; Möbius transform of A003959. sub $2,$0 mov $0,$2 sub $0,1
44.6
242
0.605381
2004902075f19a14f85b0df000d631c237b9f0b2
5,965
asm
Assembly
Transynther/x86/_processed/NC/_st_zr_4k_/i7-7700_9_0xca.log_21829_680.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_st_zr_4k_/i7-7700_9_0xca.log_21829_680.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_st_zr_4k_/i7-7700_9_0xca.log_21829_680.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r14 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x1a0c1, %r14 clflush (%r14) nop sub $16783, %r11 movl $0x61626364, (%r14) nop nop sub $46283, %r14 lea addresses_WC_ht+0x4075, %rax nop nop add %rdx, %rdx movb (%rax), %r12b nop nop nop nop inc %r10 lea addresses_UC_ht+0x87e5, %r14 nop cmp %rsi, %rsi mov $0x6162636465666768, %r12 movq %r12, %xmm2 vmovups %ymm2, (%r14) and %rsi, %rsi lea addresses_WT_ht+0x68f5, %rax nop cmp $24406, %r10 mov $0x6162636465666768, %r14 movq %r14, (%rax) nop nop inc %rax lea addresses_WT_ht+0x159b5, %rsi nop nop nop nop nop and %r10, %r10 movw $0x6162, (%rsi) nop nop nop nop cmp $34878, %rax lea addresses_WC_ht+0x1d7e1, %rsi lea addresses_WT_ht+0x1cf2d, %rdi nop nop nop nop nop and %r10, %r10 mov $46, %rcx rep movsl nop nop nop nop nop cmp %r11, %r11 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r14 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r15 push %r8 push %r9 push %rax push %rcx push %rsi // Store lea addresses_A+0x1cfe5, %rax nop nop nop nop sub %rcx, %rcx movw $0x5152, (%rax) nop nop nop nop add $35611, %r15 // Store lea addresses_US+0x1cd45, %rax nop nop nop nop add $38046, %r9 mov $0x5152535455565758, %r8 movq %r8, %xmm3 movntdq %xmm3, (%rax) nop nop nop cmp $51308, %rcx // Faulty Load mov $0x1e1a800000000fe5, %r15 nop nop cmp %rsi, %rsi mov (%r15), %r9w lea oracles, %rcx and $0xff, %r9 shlq $12, %r9 mov (%rcx,%r9,1), %r9 pop %rsi pop %rcx pop %rax pop %r9 pop %r8 pop %r15 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_A'}} {'OP': 'STOR', 'dst': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 16, 'NT': True, 'type': 'addresses_US'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 2, 'NT': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_normal_ht'}} {'src': {'congruent': 0, 'AVXalign': True, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WT_ht'}} {'OP': 'STOR', 'dst': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_WT_ht'}} {'src': {'congruent': 1, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_WT_ht'}} {'00': 775, '52': 21054} 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 00 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 00 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 00 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 00 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 00 52 52 52 00 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 */
37.049689
2,999
0.658005
472f982441929038c6b821474ef58232bb35f603
239
asm
Assembly
bootdict/x86/allot.asm
ikysil/ikforth
165e049fc007003cd05f59332dc856d553d8aac8
[ "Unlicense" ]
8
2017-08-03T08:49:06.000Z
2021-12-17T12:02:19.000Z
bootdict/x86/allot.asm
clstrfsck/ikforth
165e049fc007003cd05f59332dc856d553d8aac8
[ "Unlicense" ]
58
2016-04-21T20:03:54.000Z
2022-01-16T00:40:50.000Z
bootdict/x86/allot.asm
clstrfsck/ikforth
165e049fc007003cd05f59332dc856d553d8aac8
[ "Unlicense" ]
1
2018-07-25T21:07:00.000Z
2018-07-25T21:07:00.000Z
; 6.1.0710 ALLOT ; Allocates n memory cells on the top of vocabulary ; D: n -- $CODE 'ALLOT',$ALLOT POPDS EAX ADD DWORD [VAR_DP + IMAGE_BASE],EAX $NEXT
29.875
59
0.447699
38897d785226636892eb94354158c4b1816e9aae
925
asm
Assembly
samples/rept.asm
wilsonpilon/msx-menu
21110eb2e93ed033ed95d80f282b869c09f3714b
[ "Apache-2.0" ]
null
null
null
samples/rept.asm
wilsonpilon/msx-menu
21110eb2e93ed033ed95d80f282b869c09f3714b
[ "Apache-2.0" ]
null
null
null
samples/rept.asm
wilsonpilon/msx-menu
21110eb2e93ed033ed95d80f282b869c09f3714b
[ "Apache-2.0" ]
null
null
null
; rept.asm ; Test of rept and irp directives. ; Macro with rept and irp inside. hola macro local unused, unused2 unused rept 2 db 'Rept inside macro', 0 endm unused2 irp ?reg, af,bc, de, hl push ?reg endm endm ; hola ;------------------------------------- rept 10 db 'Hello, reptworld' endm rept 3 ; Rept with calculated end condition. n defl 1 rept 0FFFFh n defl n + 2 if n gt 10 exitm endif rept 4 db n endm endm endm ; Macro call inside rept. rept 2 hola endm ; New syntax. counter equ 1234h ; With counter (initial value 0 and step 1 assumed): rept 3, counter db counter endm ; With counter and initial value (step 1 assumed): rept 3, counter, 5 db counter endm ; With counter, initial value and step: rept 3, counter, 7, -1 db counter endm ; Testing that counter was local: defw counter end
12.847222
54
0.605405
65d5694e99098df401248dba91f6d578f944f32b
294
asm
Assembly
Computer_Ogranisation_Lab/assignments/MIPS/sudoInstructions.asm
avi-dak-hyd/CSE-Sem5
486a7191d148bdd24133637b990d0483be2b58fb
[ "MIT" ]
null
null
null
Computer_Ogranisation_Lab/assignments/MIPS/sudoInstructions.asm
avi-dak-hyd/CSE-Sem5
486a7191d148bdd24133637b990d0483be2b58fb
[ "MIT" ]
null
null
null
Computer_Ogranisation_Lab/assignments/MIPS/sudoInstructions.asm
avi-dak-hyd/CSE-Sem5
486a7191d148bdd24133637b990d0483be2b58fb
[ "MIT" ]
1
2021-09-13T06:26:07.000Z
2021-09-13T06:26:07.000Z
.data message: .asciiz "Hi, How are You\n" .text main: addi $s0, $zero, 10 addi $s1, $zero, 10 # if $s0 > $s1 bgt $s0, $s1, displayHi # if $s0 < $s1 blt $s0, $s1, displayHi # End of main li $v0, 10 syscall displayHi: li $v0, 4 la $a0, message syscall
11.76
37
0.540816
cba6e7e158cdb9080e5b17f13c0328148cbf6192
8,190
asm
Assembly
Transynther/x86/_processed/NC/_ht_st_zr_/i9-9900K_12_0xa0.log_21829_1867.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_ht_st_zr_/i9-9900K_12_0xa0.log_21829_1867.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_ht_st_zr_/i9-9900K_12_0xa0.log_21829_1867.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 %r13 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x19cb5, %rsi lea addresses_normal_ht+0x1b8ab, %rdi nop nop nop xor %r8, %r8 mov $113, %rcx rep movsl and $14986, %r12 lea addresses_A_ht+0xa9e7, %r11 nop nop nop nop nop and %r13, %r13 mov $0x6162636465666768, %r12 movq %r12, (%r11) nop nop nop nop and $25800, %r12 lea addresses_normal_ht+0x920a, %rsi nop nop nop nop nop xor %rdi, %rdi mov $0x6162636465666768, %r12 movq %r12, (%rsi) nop nop cmp %r13, %r13 lea addresses_UC_ht+0x1f2b, %rdi nop nop and %rcx, %rcx mov (%rdi), %r12 nop nop nop add $12412, %r11 lea addresses_UC_ht+0x1918b, %rsi nop nop nop nop and %r13, %r13 vmovups (%rsi), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $0, %xmm3, %rcx nop nop nop nop xor $34355, %r13 lea addresses_WT_ht+0x232b, %rsi lea addresses_WT_ht+0x1e7eb, %rdi clflush (%rsi) nop nop nop nop nop cmp %rdx, %rdx mov $76, %rcx rep movsl nop add $50961, %rsi lea addresses_A_ht+0x989b, %rsi lea addresses_D_ht+0x872b, %rdi nop nop nop nop add %rdx, %rdx mov $14, %rcx rep movsq nop xor $8664, %r12 lea addresses_WT_ht+0xe7a3, %rsi lea addresses_A_ht+0x3deb, %rdi nop nop nop nop nop inc %r12 mov $60, %rcx rep movsw sub %r11, %r11 lea addresses_A_ht+0x19c5f, %r12 add $43483, %rdx mov $0x6162636465666768, %rsi movq %rsi, %xmm7 vmovups %ymm7, (%r12) nop nop nop inc %rdx lea addresses_UC_ht+0x1cfeb, %r12 xor %rcx, %rcx movl $0x61626364, (%r12) nop nop nop nop nop cmp $47521, %rdx lea addresses_WT_ht+0x1042b, %r13 nop nop nop nop nop and %rdi, %rdi mov (%r13), %r8w nop nop nop dec %r8 pop %rsi pop %rdx pop %rdi pop %rcx pop %r8 pop %r13 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r14 push %rbp push %rbx push %rdx // Store lea addresses_WC+0x18cab, %rbp nop nop nop nop xor %r14, %r14 movw $0x5152, (%rbp) nop nop and $40484, %r10 // Store lea addresses_RW+0x236b, %r14 nop nop nop nop sub $819, %rdx mov $0x5152535455565758, %rbp movq %rbp, %xmm5 vmovups %ymm5, (%r14) nop nop nop nop nop add %rbp, %rbp // Store lea addresses_normal+0x190eb, %r10 nop nop nop nop nop inc %r11 movb $0x51, (%r10) nop nop inc %r10 // Store lea addresses_PSE+0x842b, %r11 clflush (%r11) nop nop sub %rbx, %rbx mov $0x5152535455565758, %rdx movq %rdx, %xmm5 vmovups %ymm5, (%r11) nop nop xor $32115, %r11 // Store mov $0xfffa00000000a2b, %rdx add $17020, %r11 mov $0x5152535455565758, %r14 movq %r14, %xmm0 vmovaps %ymm0, (%rdx) cmp $36899, %r14 // Faulty Load mov $0x260397000000042b, %r10 cmp %r11, %r11 movb (%r10), %r14b lea oracles, %rdx and $0xff, %r14 shlq $12, %r14 mov (%rdx,%r14,1), %r14 pop %rdx pop %rbx pop %rbp pop %r14 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_WC', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_RW', 'AVXalign': False, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_normal', 'AVXalign': True, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_NC', 'AVXalign': True, 'size': 32}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 0, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_A_ht', 'AVXalign': True, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8}} {'src': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 8, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WT_ht'}} {'src': {'same': True, 'congruent': 4, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}} {'src': {'same': False, 'congruent': 3, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4}} {'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'65': 28, '58': 21606, '66': 1, '00': 194} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
31.5
2,999
0.655678
231baff844d7082b3e76dfb24e613b89e6ba5f83
751
asm
Assembly
oeis/188/A188555.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/188/A188555.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/188/A188555.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A188555: Number of 4 X n binary arrays without the pattern 0 1 diagonally, vertically, antidiagonally or horizontally. ; Submitted by Jamie Morken(s2.) ; 5,9,16,28,48,80,129,201,303,443,630,874,1186,1578,2063,2655,3369,4221,5228,6408,7780,9364,11181,13253,15603,18255,21234,24566,28278,32398,36955,41979,47501,53553,60168,67380,75224,83736,92953,102913,113655,125219,137646,150978,165258,180530,196839,214231,232753,252453,273380,295584,319116,344028,370373,398205,427579,458551,491178,525518,561630,599574,639411,681203,725013,770905,818944,869196,921728,976608,1033905,1093689,1156031,1221003,1288678,1359130,1432434,1508666,1587903,1670223,1755705 add $0,2 mov $2,$0 mul $2,$0 mov $1,$2 sub $1,$0 mov $2,$0 bin $2,4 add $1,$2 mov $0,$1 add $0,3
50.066667
498
0.781625
803dfe58e3669270216a1e78fc3ad51cb1c26571
4,507
asm
Assembly
MIPS Assembly/question2.asm
StevenThomi/Computer-Science
1b5a055a7beccea7a7948a05d4f45b7df4f67592
[ "MIT" ]
null
null
null
MIPS Assembly/question2.asm
StevenThomi/Computer-Science
1b5a055a7beccea7a7948a05d4f45b7df4f67592
[ "MIT" ]
null
null
null
MIPS Assembly/question2.asm
StevenThomi/Computer-Science
1b5a055a7beccea7a7948a05d4f45b7df4f67592
[ "MIT" ]
null
null
null
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # Write an assembly program (question2.asm) to compute a simple integer sum. # Assume that the input sum has no whitespace and that it is suffixed with # an equals sign ‘=’ and that each element of the sum is an integer in [-9..9]. # Sample input/output: # Enter a sum: 1+4+5+6-9= # 7 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# .data prompt: .asciiz "Enter a sum: \n" sum: .space 100 .text main: # input prompt la $a0, prompt li $v0, 4 syscall # input stream li $v0, 8 li $a1, 100 la $a0, sum syscall # location of first input memory li $t0, 0x1001000e # address li $t2, 0 # sum # value of first digit lb $a0, ($t0) # store in t1 move $t1, $a0 Loop: # signs beq $t1, 0x02d, negative beq $t1, 0x03d, equal b positive positive: # signs # beq $t1, 0x030, pzero beq $t1, 0x031, pone beq $t1, 0x032, ptwo beq $t1, 0x033, pthree beq $t1, 0x034, pfour beq $t1, 0x035, pfive beq $t1, 0x036, psix beq $t1, 0x037, pseven beq $t1, 0x038, peight beq $t1, 0x039, pnine beq $t1, 0x02d, plus # get next number if zero addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 j Loop pone: addi $t2, $t2, 1 # get next number addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 j Loop ptwo: addi $t2, $t2, 2 # get next number addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 j Loop pthree: addi $t2, $t2, 3 # get next number addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 j Loop pfour: addi $t2, $t2, 4 # get next number addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 j Loop pfive: addi $t2, $t2, 5 # get next number addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 j Loop psix: addi $t2, $t2, 6 # get next number addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 j Loop pseven: addi $t2, $t2, 7 # get next number addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 j Loop peight: addi $t2, $t2, 8 # get next number addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 j Loop pnine: addi $t2, $t2, 9 # get next number addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 j Loop plus: # get next number addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 j positive negative: # get next number addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 # signs # beq $t1, 0x030, pzero beq $t1, 0x031, none beq $t1, 0x032, ntwo beq $t1, 0x033, nthree beq $t1, 0x034, nfour beq $t1, 0x035, nfive beq $t1, 0x036, nsix beq $t1, 0x037, nseven beq $t1, 0x038, neight beq $t1, 0x039, nnine # get next number if zero addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 j Loop none: addi $t2, $t2, -1 # get next number addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 j Loop ntwo: addi $t2, $t2, -2 # get next number addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 j Loop nthree: addi $t2, $t2, -3 # get next number addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 j Loop nfour: addi $t2, $t2, -4 # get next number addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 j Loop nfive: addi $t2, $t2, -5 # get next number addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 j Loop nsix: addi $t2, $t2, -6 # get next number addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 j Loop nseven: addi $t2, $t2, -7 # get next number addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 j Loop neight: addi $t2, $t2, -8 # get next number addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 j Loop nnine: addi $t2, $t2, -9 # get next number addi $t0, $t0, 0x01 lb $a0, ($t0) # store in t1 move $t1, $a0 j Loop equal: # print number li $v0, 1 move $a0, $t2 syscall # end program li $v0, 10 syscall
14.353503
79
0.509652
c62ac74310622750ba0f59fdc2288f7244b4275c
510
asm
Assembly
src/firmware/Platform/Clock/DaysInMonth.asm
pete-restall/Cluck2Sesame-Prototype
99119b6748847a7b6aeadc4bee42cbed726f7fdc
[ "MIT" ]
1
2019-12-12T09:07:08.000Z
2019-12-12T09:07:08.000Z
src/firmware/Platform/Clock/DaysInMonth.asm
pete-restall/Cluck2Sesame-Prototype
99119b6748847a7b6aeadc4bee42cbed726f7fdc
[ "MIT" ]
null
null
null
src/firmware/Platform/Clock/DaysInMonth.asm
pete-restall/Cluck2Sesame-Prototype
99119b6748847a7b6aeadc4bee42cbed726f7fdc
[ "MIT" ]
null
null
null
#define __CLUCK2SESAME_PLATFORM_CLOCK_ASM #include "Platform.inc" #include "GeneralPurposeRegisters.inc" #include "TableJumps.inc" radix decimal Clock code global lookupNumberOfDaysInMonthBcd lookupNumberOfDaysInMonthBcd: .unknownBank tableDefinitionToJumpWith RBB retlw 0x00 retlw 0x31 retlw 0x28 retlw 0x31 retlw 0x30 retlw 0x31 retlw 0x30 retlw 0x31 retlw 0x31 retlw 0x30 retlw 0x00 retlw 0x00 retlw 0x00 retlw 0x00 retlw 0x00 retlw 0x00 retlw 0x31 retlw 0x30 retlw 0x31 end
14.571429
42
0.796078
098819f358788f0a646f4b9f4975f01b5a86a9cb
103
asm
Assembly
ref/master-lib/src/perf.asm
mediaexplorer74/dosbox-x
be9f94b740234f7813bf5a063a558cef9dc7f9a6
[ "MIT" ]
3
2022-02-20T11:06:29.000Z
2022-03-11T08:16:55.000Z
ref/master-lib/src/perf.asm
mediaexplorer74/dosbox-x
be9f94b740234f7813bf5a063a558cef9dc7f9a6
[ "MIT" ]
null
null
null
ref/master-lib/src/perf.asm
mediaexplorer74/dosbox-x
be9f94b740234f7813bf5a063a558cef9dc7f9a6
[ "MIT" ]
null
null
null
.model small .data? public perform_Rate,_perform_Rate perform_Rate label word _perform_Rate dw ? end
12.875
34
0.815534
7861b3a167c069eabc0ee5eae5672bd93ad33718
1,493
asm
Assembly
tasks/extern/malloc.asm
yds12/x86-roadmap
3476a1b9c3b479f63b5728a9da049fe297843171
[ "MIT" ]
15
2020-07-21T10:32:12.000Z
2022-03-28T05:22:20.000Z
tasks/extern/malloc.asm
yds12/x64-roadmap
3476a1b9c3b479f63b5728a9da049fe297843171
[ "MIT" ]
1
2020-05-17T17:49:55.000Z
2020-05-17T17:49:55.000Z
tasks/extern/malloc.asm
yds12/x86-roadmap
3476a1b9c3b479f63b5728a9da049fe297843171
[ "MIT" ]
4
2020-07-21T10:32:23.000Z
2022-03-28T05:22:23.000Z
; This program will call functions from the C library (glibc), in this case ; malloc and exit. ; Build with: ; ; $ nasm -felf64 tasks/extern/malloc.asm -o bin/malloc.o ; $ ld bin/malloc.o -lc -I /lib64/ld-linux-x86-64.so.2 -o bin/malloc ; ; The -lc option tells ld to link with the C library, and the -I option is ; telling ld to use /lib64/ld-linux-x86-64.so.2 as the dynamic linker. ; ; To see the return of the program, use: ; ; $ echo $? ; extern exit ; We declare these functions as extern to extern malloc ; let nasm know that they are somewhere else. ; The linker will do the job of finding them. section .text global _start _start: mov rdi, 8 ; The first argument in the x64 calling ; conventions is RDI. We will call malloc with ; argument 8 (to allocate 8 bytes). call malloc ; calls malloc from the C library mov [rax], dword 1 ; malloc returns the address of the allocated ; memory in RAX. We store a int32 in the first ; position mov [rax + 4], dword 2 ; and another int32 at the second position mov edx, dword [rax] ; now we put the first value in EDX add edx, dword [rax + 4] ; and sum with the second mov rdi, rdx ; call C library's exit with EDX's value as call exit ; exit code
35.547619
75
0.577361
639a45c0c669010cc4be9f3a33887185e4cfd8a7
47
asm
Assembly
misc/data.asm
a1393323447/x86-Assambely
1daf3041fe6f44948925ceb7bb6668950dcbab25
[ "MIT" ]
3
2021-05-04T13:59:36.000Z
2021-08-23T16:03:13.000Z
misc/data.asm
a1393323447/x86-Assambely
1daf3041fe6f44948925ceb7bb6668950dcbab25
[ "MIT" ]
null
null
null
misc/data.asm
a1393323447/x86-Assambely
1daf3041fe6f44948925ceb7bb6668950dcbab25
[ "MIT" ]
null
null
null
Data db 'Hi from hard disk drive!' db 0x00
23.5
34
0.659574
37b0d8a8b59b44339188e0ee06180a3625d7af55
128
asm
Assembly
t/alias.asm
cygx/moar-assembler
439ed23ddba4f3a552b26cb47c564a725919df5d
[ "BSL-1.0" ]
2
2016-12-17T12:36:05.000Z
2018-10-31T14:42:04.000Z
t/alias.asm
cygx/moar-assembler
439ed23ddba4f3a552b26cb47c564a725919df5d
[ "BSL-1.0" ]
null
null
null
t/alias.asm
cygx/moar-assembler
439ed23ddba4f3a552b26cb47c564a725919df5d
[ "BSL-1.0" ]
1
2016-12-14T08:42:35.000Z
2016-12-14T08:42:35.000Z
.hll asm .frame main .locals int str .aliases _ ok .alias zero 0 const_s $ok "ok" print $ok exit $zero
12.8
20
0.570313
d839ace61e858018309db925f0ba22bd605cae1e
1,369
asm
Assembly
src/test/ref/const-bool-return-problem.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/test/ref/const-bool-return-problem.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/test/ref/const-bool-return-problem.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
// A function that returns a constant boolean crashes the compiler because it produces illegal ASM // Commodore 64 PRG executable file .file [name="const-bool-return-problem.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpstart(main) .label SCREEN = $400 .segment Code main: { .label ox = 3 .label oy = 2 lda #0 sta.z ox __b1: // for(char ox=0;ox<5;ox++) lda.z ox cmp #5 bcc __b4 // } rts __b4: lda #0 sta.z oy __b2: // for(char oy=0;oy<5;oy++) lda.z oy cmp #5 bcc __b3 // for(char ox=0;ox<5;ox++) inc.z ox jmp __b1 __b3: // OBJ_is_solid(ox,oy) lda.z oy jsr OBJ_is_solid // if(OBJ_is_solid(ox,oy)) cmp #0 bne __b6 jmp __b5 __b6: // SCREEN[ox] = oy lda.z oy ldy.z ox sta SCREEN,y __b5: // for(char oy=0;oy<5;oy++) inc.z oy jmp __b2 } // __register(A) bool OBJ_is_solid(char ox, __register(A) char oy) OBJ_is_solid: { // if (oy==oy) tax tay stx.z $ff cpy.z $ff bne __b1 lda #1 rts __b1: // tile_flag_at() jsr tile_flag_at lda #tile_flag_at.return // } rts } tile_flag_at: { .label return = 0 rts }
18.5
98
0.58656
0a193c38ecfefaeb2486abac619119588eae9ef4
3,676
asm
Assembly
payload/call_api.asm
soolidsnake/donut
be21ee0c77b2c9ac846dd4d4f2515bbd40744aa1
[ "BSD-3-Clause" ]
1
2021-06-16T02:27:40.000Z
2021-06-16T02:27:40.000Z
payload/call_api.asm
soolidsnake/donut
be21ee0c77b2c9ac846dd4d4f2515bbd40744aa1
[ "BSD-3-Clause" ]
null
null
null
payload/call_api.asm
soolidsnake/donut
be21ee0c77b2c9ac846dd4d4f2515bbd40744aa1
[ "BSD-3-Clause" ]
null
null
null
; ; Copyright © 2019 TheWover, Odzhan. All Rights Reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions are ; met: ; ; 1. Redistributions of source code must retain the above copyright ; notice, this list of conditions and the following disclaimer. ; ; 2. Redistributions in binary form must reproduce the above copyright ; notice, this list of conditions and the following disclaimer in the ; documentation and/or other materials provided with the distribution. ; ; 3. The name of the author may not be used to endorse or promote products ; derived from this software without specific prior written permission. ; ; THIS SOFTWARE IS PROVIDED BY AUTHORS "AS IS" AND ANY EXPRESS OR ; IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ; DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, ; INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ; (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR ; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ; HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, ; STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ; ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ; POSSIBILITY OF SUCH DAMAGE. ; ; ; void call_api(FARPROC api, int param_cnt, WCHAR param[]); %define DONUT_MAX_PARAM 8 %define DONUT_MAX_NAME 256 struc HOME_SPACE ._rcx resq 1 ._rdx resq 1 ._r8 resq 1 ._r9 resq 1 endstruc struc _ds .hs: resq HOME_SPACE_size .arg4 resq 1 .arg5 resq 1 .arg6 resq 1 .arg7 resq 1 ._rdi resq 1 ._rsi resq 1 ._rbp resq 1 ._rbx resq 1 ._rsp resq 1 endstruc %ifndef BIN global call_api global _call_api %endif call_api: _call_api: bits 32 ; int3 xor eax, eax ; dec eax ; jns L2 ; if SF=0, goto x64 mov eax, [esp+ 4] ; eax = api address mov ecx, [esp+ 8] ; ecx = param_cnt mov edx, [esp+12] ; edx = params L1: push edx ; save params[i] on stack add edx, DONUT_MAX_NAME * 2 ; advance to next element sub ecx, 1 ; subtract one from param_cnt jnz L1 call eax ; call api ret L2: bits 64 sub rsp, ((_ds_size & -16) + 16) - 8 mov [rsp+_ds._rbp], rbp mov [rsp+_ds._rbx], rbx mov [rsp+_ds._rdi], rdi mov [rsp+_ds._rsi], rsi mov rsi, rsp ; rsi = rsp after allocation mov rdi, rcx ; rdi = api to call mov eax, DONUT_MAX_NAME * 2 mov rcx, r8 ; rcx = param[0] lea rdx, [rcx+rax] ; rdx = param[1] lea r8, [rdx+rax] ; r8 = param[2] lea r9, [r8+rax] ; r9 = param[3] lea rbx, [r9+rax] mov [rsp+_ds.arg4], rbx ; param[4] add rbx, rax mov [rsp+_ds.arg5], rbx ; param[5] add rbx, rax mov [rsp+_ds.arg6], rbx ; param[6] add rbx, rax mov [rsp+_ds.arg7], rbx ; param[7] call rdi mov rsp, rsi ; restore rsp after allocation mov rsi, [rsp+_ds._rsi] mov rdi, [rsp+_ds._rdi] mov rbx, [rsp+_ds._rbx] mov rbp, [rsp+_ds._rbp] add rsp, ((_ds_size & -16) + 16) - 8 ret
30.380165
75
0.589227
e40bd1e59402f63a62e93bb42359864a735e317a
332
asm
Assembly
Ficha 2 - Tratamento de dados de 8, 16 e 32 bits/02b.asm
FEUP-MIEIC/MPCP
63c9eed1a48c704a2034e04824e91fbc79538b3e
[ "MIT" ]
null
null
null
Ficha 2 - Tratamento de dados de 8, 16 e 32 bits/02b.asm
FEUP-MIEIC/MPCP
63c9eed1a48c704a2034e04824e91fbc79538b3e
[ "MIT" ]
null
null
null
Ficha 2 - Tratamento de dados de 8, 16 e 32 bits/02b.asm
FEUP-MIEIC/MPCP
63c9eed1a48c704a2034e04824e91fbc79538b3e
[ "MIT" ]
null
null
null
include mpcp.inc .data wseq SWORD -5,-4,-3,-2,-1,0,1,2,3,127 dwseq SDWORD 10 DUP (?) .code main PROC C mov ESI, OFFSET wseq mov EDI, OFFSET dwseq mov ECX, LENGTHOF wseq ciclo: mov AX, [ESI] CWDE mov [EDI], EAX add ESI, TYPE wseq add EDI, TYPE dwseq loop ciclo invoke ExitProcess, 0 main ENDP end
11.448276
38
0.638554
cdba07d9f07fa2be771368b39e76746fb9ff81cd
613
asm
Assembly
oeis/191/A191494.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/191/A191494.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/191/A191494.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A191494: Number of compositions of even natural numbers in 7 parts <= n. ; 1,64,1094,8192,39063,139968,411772,1048576,2391485,5000000,9743586,17915904,31374259,52706752,85429688,134217728,205169337,306110016,446935870,640000000,900544271,1247178944,1702412724,2293235712,3051757813,4015905088,5230176602,6746464256,8624938155,10935000000,13756307056,17179869184,21309221489,26261675072,32169648438,39182082048,47465938567,57207791296,68615503340,81920000000,97377136941,115269666624,135909305554,159638904832,186834726563,217908828608,253311560232,293534171136,339111536425 add $0,1 pow $0,7 add $0,1 div $0,2
76.625
500
0.858075
77b10eeeaff6c6068b51c76c6d990371148394a2
1,845
asm
Assembly
src/forthress.asm
sayon/forthress-2
62c9b57c1f433f821fd766f027a76779dac5993b
[ "MIT" ]
1
2019-03-14T08:16:50.000Z
2019-03-14T08:16:50.000Z
src/forthress.asm
sayon/forthress-2
62c9b57c1f433f821fd766f027a76779dac5993b
[ "MIT" ]
null
null
null
src/forthress.asm
sayon/forthress-2
62c9b57c1f433f821fd766f027a76779dac5993b
[ "MIT" ]
null
null
null
; ------------------------------------------------ ; Forthress 2, a Forth dialect ; ; Author: igorjirkov@gmail.com ; Date : 08-03-2019 ; ; This is the main Forthress 2 file which defines the entry point ; Please define words inside "words.inc" ; ------------------------------------------------ global _start %include "macro.inc" %define pc r15 %define w r14 %define rstack r13 section .text %include "kernel.inc" ; Minimal word set is here %include "words.inc" ; Predefined words are here section .bss ; return stack end-----; resq 1023 ; rstack_start: resq 1 ; ; return stack start---; user_mem: resq 65536 ; global data for user section .data last_word: dq _lw ; stores a pointer to the last word in dictionary ; should be placed after all words are defined dp: dq user_mem ; current global data pointer stack_start: dq 0 ; stores a saved address for data stack beginning trap_word_xt: dq 0 ; XT for a word to be called on SIGSEGV section .text next: ; inner interpreter, fetches next word to execute mov w, pc add pc, 8 mov w, [w] jmp [w] _start: call setup_trap mov rstack, rstack_start mov [stack_start], rsp ;; starting arguments: push qword 0 ; fid mov pc, xt_forth_interpret_fd+8 jmp next ; ------------------------------------------------ ; This part sets up SIGSEGV handler ; ------------------------------------------------ %define SA_RESTORER 0x04000000 %define SA_SIGINFO 0x00000004 %define __NR_rt_sigaction 0x0D %define SIGSEGV 0x0B setup_trap: mov r10, 8 xor rdx, rdx mov rsi, sa mov rdi, SIGSEGV mov rax,__NR_rt_sigaction syscall ret section .rodata sa: .handler dq _trap .flags dq SA_RESTORER | SA_SIGINFO .restorer dq 0 .val dq 0
22.777778
72
0.596206
07ec2f2a7109a54e145db2ec2445fa90df461b53
7,602
asm
Assembly
Transynther/x86/_processed/US/_zr_/i3-7100_9_0xca_notsx.log_780_21.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i3-7100_9_0xca_notsx.log_780_21.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i3-7100_9_0xca_notsx.log_780_21.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 %rax push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x1dd5a, %rsi lea addresses_normal_ht+0x1a95b, %rdi clflush (%rdi) nop nop nop nop nop xor %r15, %r15 mov $85, %rcx rep movsq nop nop nop nop nop cmp $6341, %rcx lea addresses_WT_ht+0x76db, %rsi lea addresses_WT_ht+0x8adb, %rdi clflush (%rdi) nop nop nop cmp $63287, %r15 mov $42, %rcx rep movsl xor %rax, %rax lea addresses_normal_ht+0x18503, %r15 nop nop nop nop nop cmp %r14, %r14 movl $0x61626364, (%r15) inc %r14 lea addresses_WC_ht+0x9755, %rax nop nop nop nop nop and $24963, %rcx movb (%rax), %r14b nop and $45336, %rsi lea addresses_WT_ht+0x215b, %r14 nop nop nop dec %rbx movb (%r14), %al nop nop xor $16142, %rsi lea addresses_WC_ht+0x138b7, %rsi nop cmp %rbx, %rbx mov $0x6162636465666768, %rdi movq %rdi, %xmm0 movups %xmm0, (%rsi) nop nop nop nop xor %rax, %rax lea addresses_WC_ht+0x1915b, %rsi lea addresses_normal_ht+0x628b, %rdi nop sub %r12, %r12 mov $111, %rcx rep movsw nop nop nop nop sub %rbx, %rbx lea addresses_WC_ht+0x7281, %rsi lea addresses_A_ht+0x907b, %rdi sub $36204, %r14 mov $106, %rcx rep movsl inc %rdi lea addresses_WT_ht+0x307b, %r15 clflush (%r15) nop cmp %rsi, %rsi movw $0x6162, (%r15) dec %rdi lea addresses_normal_ht+0x2f1b, %rsi lea addresses_normal_ht+0x1b35b, %rdi nop nop cmp $41814, %r15 mov $28, %rcx rep movsq nop nop nop nop nop sub %rsi, %rsi lea addresses_UC_ht+0x104cb, %rcx nop nop nop add %rsi, %rsi movb (%rcx), %r14b nop nop xor $45820, %rsi lea addresses_D_ht+0x1e86f, %r14 nop nop nop nop xor %rbx, %rbx mov (%r14), %rdi cmp $51989, %rcx lea addresses_normal_ht+0x16d5b, %rax clflush (%rax) nop nop sub $6206, %rdi mov (%rax), %esi nop xor $32724, %rcx lea addresses_normal_ht+0xf6eb, %rax nop nop add %rdi, %rdi mov $0x6162636465666768, %rbx movq %rbx, (%rax) nop cmp %rbx, %rbx pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r15 pop %r14 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r15 push %rax push %rbx push %rdi // Store mov $0x21b9f4000000015b, %r10 nop nop cmp %r11, %r11 movb $0x51, (%r10) nop nop nop nop nop dec %rdi // Store lea addresses_WC+0xaf5b, %r10 sub %r12, %r12 movw $0x5152, (%r10) nop nop and %rax, %rax // Store lea addresses_WC+0x127df, %r12 nop nop nop and %r15, %r15 mov $0x5152535455565758, %rax movq %rax, %xmm6 vmovups %ymm6, (%r12) nop nop nop nop and %rax, %rax // Faulty Load lea addresses_US+0x95b, %rax nop nop nop nop dec %rbx mov (%rax), %di lea oracles, %rbx and $0xff, %rdi shlq $12, %rdi mov (%rbx,%rdi,1), %rdi pop %rdi pop %rbx pop %rax pop %r15 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': True, 'type': 'addresses_US', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_NC', 'size': 1, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_WC', 'size': 2, 'AVXalign': True}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_WC', 'size': 32, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_US', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}} {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False}} {'src': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}} {'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False}} {'00': 780} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
30.408
2,339
0.65588
7c2a5339d6c08ad4da1994dd8cd2e18880faa654
212
asm
Assembly
emulator-65816/emulator/test.asm
paulscottrobson/basic-65
5d38713aca0ec239bb1ee89ea05e548448abcc2c
[ "MIT" ]
3
2019-12-03T06:05:24.000Z
2021-03-24T01:51:07.000Z
emulator-65816/emulator/test.asm
paulscottrobson/basic-65
5d38713aca0ec239bb1ee89ea05e548448abcc2c
[ "MIT" ]
null
null
null
emulator-65816/emulator/test.asm
paulscottrobson/basic-65
5d38713aca0ec239bb1ee89ea05e548448abcc2c
[ "MIT" ]
null
null
null
* = 0 * = $1000 start: clc xce nop sep #$30 .as .xs ldy #0 ldx #$CD lda #$12 inc a loop: clc adc #$10 jsr doit bra loop doit: rts * = $FFFA .word 0 .word start .word 0
6.625
13
0.481132
dd605e8fc3eb43a48f847acbbac32558554eee21
7,301
asm
Assembly
P6/data_P6_2/cal_R_test50.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
1
2022-01-23T09:24:47.000Z
2022-01-23T09:24:47.000Z
P6/data_P6_2/cal_R_test50.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
P6/data_P6_2/cal_R_test50.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
lui $1,4529 ori $1,$1,60536 lui $2,50278 ori $2,$2,8933 lui $3,12362 ori $3,$3,4069 lui $4,41227 ori $4,$4,399 lui $5,42981 ori $5,$5,53073 lui $6,15174 ori $6,$6,62405 mthi $1 mtlo $2 sec0: nop nop nop slt $5,$6,$2 sec1: nop nop subu $6,$4,$4 slt $3,$6,$2 sec2: nop nop xori $6,$3,10618 slt $4,$6,$2 sec3: nop nop mfhi $6 slt $5,$6,$2 sec4: nop nop lhu $6,4($0) slt $5,$6,$2 sec5: nop xor $2,$3,$0 nop slt $3,$6,$2 sec6: nop xor $2,$2,$3 nor $6,$2,$1 slt $1,$6,$2 sec7: nop xor $2,$2,$3 ori $6,$1,8643 slt $2,$6,$2 sec8: nop or $2,$5,$2 mflo $6 slt $3,$6,$2 sec9: nop sltu $2,$5,$4 lhu $6,8($0) slt $3,$6,$2 sec10: nop lui $2,31829 nop slt $2,$6,$2 sec11: nop andi $2,$5,13800 nor $6,$0,$1 slt $5,$6,$2 sec12: nop lui $2,19183 slti $6,$2,-6338 slt $3,$6,$2 sec13: nop sltiu $2,$4,-27640 mflo $6 slt $3,$6,$2 sec14: nop lui $2,41380 lb $6,10($0) slt $6,$6,$2 sec15: nop mfhi $2 nop slt $3,$6,$2 sec16: nop mfhi $2 slt $6,$2,$3 slt $4,$6,$2 sec17: nop mfhi $2 xori $6,$4,56183 slt $4,$6,$2 sec18: nop mfhi $2 mflo $6 slt $1,$6,$2 sec19: nop mfhi $2 lhu $6,16($0) slt $3,$6,$2 sec20: nop lh $2,16($0) nop slt $4,$6,$2 sec21: nop lbu $2,9($0) and $6,$1,$3 slt $5,$6,$2 sec22: nop lh $2,14($0) andi $6,$4,33493 slt $4,$6,$2 sec23: nop lh $2,12($0) mfhi $6 slt $4,$6,$2 sec24: nop lbu $2,8($0) lb $6,0($0) slt $6,$6,$2 sec25: addu $2,$1,$3 nop nop slt $2,$6,$2 sec26: subu $2,$4,$2 nop addu $6,$3,$4 slt $4,$6,$2 sec27: or $2,$4,$4 nop addiu $6,$2,-7987 slt $4,$6,$2 sec28: addu $2,$3,$2 nop mflo $6 slt $2,$6,$2 sec29: and $2,$5,$1 nop lbu $6,15($0) slt $3,$6,$2 sec30: sltu $2,$5,$5 sltu $2,$1,$3 nop slt $3,$6,$2 sec31: sltu $2,$5,$2 xor $2,$3,$4 or $6,$5,$3 slt $1,$6,$2 sec32: slt $2,$5,$4 xor $2,$5,$1 sltiu $6,$3,5410 slt $2,$6,$2 sec33: sltu $2,$3,$2 nor $2,$1,$2 mflo $6 slt $2,$6,$2 sec34: slt $2,$3,$3 slt $2,$1,$5 lhu $6,4($0) slt $2,$6,$2 sec35: slt $2,$4,$4 xori $2,$3,37026 nop slt $1,$6,$2 sec36: xor $2,$3,$4 lui $2,58204 slt $6,$3,$4 slt $2,$6,$2 sec37: xor $2,$6,$3 addiu $2,$1,16335 slti $6,$0,15995 slt $6,$6,$2 sec38: xor $2,$5,$2 sltiu $2,$2,25978 mflo $6 slt $1,$6,$2 sec39: xor $2,$3,$1 andi $2,$2,50005 lb $6,5($0) slt $5,$6,$2 sec40: and $2,$1,$4 mfhi $2 nop slt $5,$6,$2 sec41: or $2,$1,$1 mflo $2 and $6,$4,$1 slt $0,$6,$2 sec42: sltu $2,$4,$6 mfhi $2 ori $6,$4,45046 slt $0,$6,$2 sec43: sltu $2,$3,$2 mfhi $2 mfhi $6 slt $0,$6,$2 sec44: subu $2,$0,$6 mfhi $2 lhu $6,8($0) slt $3,$6,$2 sec45: addu $2,$3,$6 lw $2,8($0) nop slt $5,$6,$2 sec46: and $2,$3,$3 lh $2,4($0) slt $6,$6,$5 slt $3,$6,$2 sec47: nor $2,$0,$2 lb $2,8($0) addiu $6,$3,27236 slt $3,$6,$2 sec48: and $2,$1,$3 lh $2,6($0) mfhi $6 slt $2,$6,$2 sec49: nor $2,$2,$3 lw $2,4($0) lw $6,0($0) slt $4,$6,$2 sec50: slti $2,$2,29515 nop nop slt $3,$6,$2 sec51: slti $2,$2,-4187 nop sltu $6,$1,$4 slt $5,$6,$2 sec52: slti $2,$5,15525 nop sltiu $6,$3,-9286 slt $5,$6,$2 sec53: slti $2,$2,27802 nop mflo $6 slt $1,$6,$2 sec54: addiu $2,$6,9607 nop lbu $6,10($0) slt $2,$6,$2 sec55: slti $2,$1,16764 slt $2,$2,$6 nop slt $1,$6,$2 sec56: ori $2,$3,40960 nor $2,$2,$5 slt $6,$4,$5 slt $1,$6,$2 sec57: andi $2,$0,57737 sltu $2,$0,$5 xori $6,$2,43741 slt $4,$6,$2 sec58: slti $2,$4,-28046 and $2,$4,$0 mflo $6 slt $4,$6,$2 sec59: lui $2,51945 xor $2,$1,$4 lhu $6,2($0) slt $3,$6,$2 sec60: lui $2,42285 ori $2,$3,9472 nop slt $3,$6,$2 sec61: ori $2,$6,4995 xori $2,$5,56964 subu $6,$4,$2 slt $2,$6,$2 sec62: ori $2,$3,13292 ori $2,$0,53280 addiu $6,$3,23400 slt $3,$6,$2 sec63: addiu $2,$2,21695 lui $2,43675 mfhi $6 slt $6,$6,$2 sec64: xori $2,$5,25251 andi $2,$2,11622 lbu $6,4($0) slt $3,$6,$2 sec65: andi $2,$2,52720 mfhi $2 nop slt $3,$6,$2 sec66: slti $2,$1,-28319 mfhi $2 xor $6,$1,$3 slt $4,$6,$2 sec67: slti $2,$5,-20142 mflo $2 xori $6,$2,59980 slt $4,$6,$2 sec68: xori $2,$5,2900 mflo $2 mfhi $6 slt $5,$6,$2 sec69: addiu $2,$3,2891 mflo $2 lbu $6,9($0) slt $3,$6,$2 sec70: xori $2,$2,59564 lb $2,8($0) nop slt $0,$6,$2 sec71: addiu $2,$0,-3230 lw $2,0($0) xor $6,$4,$2 slt $1,$6,$2 sec72: andi $2,$4,19129 lb $2,14($0) addiu $6,$3,-17253 slt $3,$6,$2 sec73: andi $2,$4,50575 lhu $2,12($0) mfhi $6 slt $1,$6,$2 sec74: xori $2,$5,15716 lh $2,16($0) lh $6,4($0) slt $4,$6,$2 sec75: mfhi $2 nop nop slt $4,$6,$2 sec76: mflo $2 nop or $6,$4,$4 slt $2,$6,$2 sec77: mfhi $2 nop sltiu $6,$3,-23728 slt $3,$6,$2 sec78: mflo $2 nop mflo $6 slt $3,$6,$2 sec79: mfhi $2 nop lbu $6,10($0) slt $0,$6,$2 sec80: mfhi $2 sltu $2,$3,$3 nop slt $3,$6,$2 sec81: mflo $2 subu $2,$0,$6 or $6,$4,$1 slt $4,$6,$2 sec82: mflo $2 nor $2,$4,$2 addiu $6,$3,-20464 slt $2,$6,$2 sec83: mfhi $2 subu $2,$3,$2 mflo $6 slt $4,$6,$2 sec84: mflo $2 nor $2,$3,$3 lw $6,16($0) slt $2,$6,$2 sec85: mfhi $2 slti $2,$3,3901 nop slt $5,$6,$2 sec86: mflo $2 lui $2,34091 slt $6,$3,$6 slt $3,$6,$2 sec87: mflo $2 andi $2,$1,34834 xori $6,$3,17975 slt $3,$6,$2 sec88: mflo $2 addiu $2,$6,-30962 mflo $6 slt $3,$6,$2 sec89: mfhi $2 ori $2,$4,29975 lhu $6,6($0) slt $3,$6,$2 sec90: mflo $2 mflo $2 nop slt $2,$6,$2 sec91: mflo $2 mflo $2 addu $6,$1,$3 slt $0,$6,$2 sec92: mflo $2 mfhi $2 sltiu $6,$3,-20272 slt $5,$6,$2 sec93: mfhi $2 mfhi $2 mfhi $6 slt $1,$6,$2 sec94: mflo $2 mflo $2 lbu $6,5($0) slt $1,$6,$2 sec95: mfhi $2 lb $2,6($0) nop slt $3,$6,$2 sec96: mflo $2 lb $2,15($0) or $6,$0,$3 slt $5,$6,$2 sec97: mfhi $2 lh $2,8($0) ori $6,$1,4355 slt $4,$6,$2 sec98: mflo $2 lw $2,16($0) mflo $6 slt $2,$6,$2 sec99: mflo $2 lhu $2,14($0) lw $6,4($0) slt $1,$6,$2 sec100: lw $2,16($0) nop nop slt $5,$6,$2 sec101: lb $2,0($0) nop or $6,$3,$3 slt $6,$6,$2 sec102: lbu $2,9($0) nop xori $6,$3,31615 slt $5,$6,$2 sec103: lb $2,12($0) nop mflo $6 slt $2,$6,$2 sec104: lb $2,1($0) nop lh $6,16($0) slt $1,$6,$2 sec105: lw $2,4($0) or $2,$4,$5 nop slt $5,$6,$2 sec106: lw $2,16($0) or $2,$3,$2 and $6,$2,$0 slt $5,$6,$2 sec107: lb $2,11($0) slt $2,$6,$2 slti $6,$0,-6037 slt $2,$6,$2 sec108: lbu $2,11($0) or $2,$5,$4 mfhi $6 slt $4,$6,$2 sec109: lbu $2,16($0) xor $2,$5,$1 lhu $6,16($0) slt $4,$6,$2 sec110: lb $2,4($0) ori $2,$3,15747 nop slt $2,$6,$2 sec111: lhu $2,16($0) sltiu $2,$0,-28103 xor $6,$2,$2 slt $1,$6,$2 sec112: lw $2,8($0) addiu $2,$3,5902 ori $6,$3,2559 slt $3,$6,$2 sec113: lbu $2,9($0) slti $2,$5,24046 mfhi $6 slt $3,$6,$2 sec114: lh $2,16($0) sltiu $2,$3,-26210 lh $6,0($0) slt $2,$6,$2 sec115: lh $2,16($0) mfhi $2 nop slt $4,$6,$2 sec116: lbu $2,10($0) mflo $2 and $6,$2,$5 slt $2,$6,$2 sec117: lh $2,8($0) mfhi $2 slti $6,$3,-3760 slt $1,$6,$2 sec118: lw $2,4($0) mflo $2 mflo $6 slt $4,$6,$2 sec119: lw $2,0($0) mflo $2 lb $6,1($0) slt $4,$6,$2 sec120: lb $2,13($0) lbu $2,15($0) nop slt $4,$6,$2 sec121: lh $2,2($0) lb $2,4($0) xor $6,$4,$5 slt $4,$6,$2 sec122: lhu $2,6($0) lh $2,10($0) addiu $6,$2,-31687 slt $4,$6,$2 sec123: lbu $2,3($0) lhu $2,4($0) mflo $6 slt $4,$6,$2 sec124: lbu $2,13($0) lhu $2,14($0) lh $6,8($0) slt $3,$6,$2
11.407813
19
0.521435
92dc0b420b10339fa6fc5e476d6b6797bc6cb062
245
asm
Assembly
unittests/ASM/X87_F64/DB_00_F64.asm
Seas0/FEX
4f4263263b560b0a25e0d48555d5b99ca12c938f
[ "MIT" ]
null
null
null
unittests/ASM/X87_F64/DB_00_F64.asm
Seas0/FEX
4f4263263b560b0a25e0d48555d5b99ca12c938f
[ "MIT" ]
null
null
null
unittests/ASM/X87_F64/DB_00_F64.asm
Seas0/FEX
4f4263263b560b0a25e0d48555d5b99ca12c938f
[ "MIT" ]
null
null
null
%ifdef CONFIG { "RegData": { "RAX": "0x4090000000000000" }, "Env": { "FEX_X87REDUCEDPRECISION" : "1" } } %endif mov rdx, 0xe0000000 mov eax, 1024 mov [rdx + 8 * 0], eax fild dword [rdx + 8 * 0] fstp qword [rdx] mov rax, [rdx] hlt
11.666667
44
0.595918
70b581c7c0f552e73f9a4060e80724c6a9288246
508
asm
Assembly
oeis/305/A305436.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/305/A305436.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/305/A305436.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A305436: Number of divisors of n of the form 2^k + 1 for k >= 0. ; Submitted by Simon Strandgaard ; 0,1,1,1,1,2,0,1,2,2,0,2,0,1,2,1,1,3,0,2,1,1,0,2,1,1,2,1,0,3,0,1,2,2,1,3,0,1,1,2,0,2,0,1,3,1,0,2,0,2,2,1,0,3,1,1,1,1,0,3,0,1,2,1,2,3,0,2,1,2,0,3,0,1,2,1,0,2,0,2,2,1,0,2,2,1,1,1,0,4,0,1,1,1,1,2,0,1,3,2 add $0,1 mov $1,1 mov $2,$0 mov $4,1 lpb $2 mov $3,1 mul $4,2 sub $4,$5 mov $5,$0 mod $5,$4 cmp $5,0 mul $3,$5 add $1,$3 add $5,1 cmp $5,0 cmp $5,0 sub $2,$5 lpe mov $0,$1 sub $0,1
20.32
201
0.525591
3777449e2303a08b697c4ef7de6ef3f42a07263b
792
asm
Assembly
programs/oeis/097/A097011.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/097/A097011.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/097/A097011.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A097011: Remainder of sigma(n) modulo 30. ; 1,3,4,7,6,12,8,15,13,18,12,28,14,24,24,1,18,9,20,12,2,6,24,0,1,12,10,26,0,12,2,3,18,24,18,1,8,0,26,0,12,6,14,24,18,12,18,4,27,3,12,8,24,0,12,0,20,0,0,18,2,6,14,7,24,24,8,6,6,24,12,15,14,24,4,20,6,18,20,6,1,6,24,14,18,12,0,0,0,24,22,18,8,24,0,12,8,21,6,7,12,6,14,0,12,12,18,10,20,6,2,8,24,0,24,0,2,0,24,0,13,6,18,14,6,12,8,15,26,12,12,6,10,24,0,0,18,18,20,6,12,6,18,13,0,12,18,26,0,12,2,0,24,18,12,2,8,0,6,18,12,3,14,24,18,12,18,0,3,24,20,8,24,0,8,12,0,0,0,6,2,6,8,0,18,24,6,6,20,0,12,28,14,24,6,9,18,18,20,15,2,6,0,24,12,12,12,14,0,6,2,18,18,24,24,0,16,0,26,24,12,6,14,24,13,12,18,20,20,12,24,0,24,6,18,0,20,12,0,24,2,9,4,14,12,24,10,0,6,18 cal $0,203 ; a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n). mod $0,30 mov $1,$0
113.142857
642
0.617424
fd5af68395003df3b46d0600337b73354cbfb01d
7,412
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_602.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_602.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_602.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %r15 push %r8 push %rax push %rcx push %rdi push %rsi lea addresses_WC_ht+0xcae7, %rdi nop nop and $5699, %r8 movb (%rdi), %r13b and %rax, %rax lea addresses_A_ht+0x4648, %r10 nop nop nop nop and $23361, %r14 mov (%r10), %r15w nop nop xor $59452, %rdi lea addresses_WT_ht+0x19258, %r15 nop nop nop nop inc %r13 movups (%r15), %xmm6 vpextrq $1, %xmm6, %r10 nop nop nop nop xor $16837, %r14 lea addresses_A_ht+0x39fa, %rsi lea addresses_normal_ht+0x179c8, %rdi nop nop nop nop xor %rax, %rax mov $32, %rcx rep movsb nop cmp %r10, %r10 lea addresses_A_ht+0x3318, %r10 nop nop nop nop nop and $44514, %r14 movb (%r10), %r8b nop cmp %r8, %r8 lea addresses_UC_ht+0x1a248, %rsi and %r10, %r10 mov (%rsi), %r15w sub %rax, %rax lea addresses_WT_ht+0x1193c, %rsi lea addresses_normal_ht+0x1df79, %rdi clflush (%rdi) nop nop nop nop nop cmp %r10, %r10 mov $105, %rcx rep movsb nop nop add $29582, %r8 lea addresses_WC_ht+0x15e88, %r10 clflush (%r10) nop and $45864, %rax movb (%r10), %r13b nop nop nop nop nop sub $58827, %r8 lea addresses_normal_ht+0x17508, %r14 nop nop sub $63477, %r8 movb $0x61, (%r14) nop nop nop nop xor %rax, %rax lea addresses_WT_ht+0x4b28, %rsi lea addresses_normal_ht+0x1cfc8, %rdi clflush (%rsi) nop nop nop nop and %r15, %r15 mov $53, %rcx rep movsl nop nop nop nop nop add $12545, %rcx pop %rsi pop %rdi pop %rcx pop %rax pop %r8 pop %r15 pop %r14 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r8 push %rcx push %rdx push %rsi // Store lea addresses_D+0x6f78, %r12 nop nop sub %r10, %r10 movw $0x5152, (%r12) nop dec %rdx // Store lea addresses_WC+0x17542, %r11 clflush (%r11) nop nop nop nop add %rdx, %rdx movl $0x51525354, (%r11) add $57609, %rcx // Store lea addresses_A+0x1a248, %r10 nop nop nop nop cmp %r12, %r12 movw $0x5152, (%r10) cmp %rdx, %rdx // Load lea addresses_D+0x2068, %r10 nop nop nop sub %r11, %r11 movb (%r10), %cl nop nop add $4740, %r12 // Faulty Load lea addresses_D+0xf848, %r11 nop nop nop xor $46489, %rsi movups (%r11), %xmm0 vpextrq $0, %xmm0, %r8 lea oracles, %rdx and $0xff, %r8 shlq $12, %r8 mov (%rdx,%r8,1), %r8 pop %rsi pop %rdx pop %rcx pop %r8 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 2}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 1}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 5}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 4}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 9}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 1}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_normal_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 4}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 9}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}, 'dst': {'same': True, 'congruent': 0, 'type': 'addresses_normal_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 5}} {'OP': 'REPM', 'src': {'same': True, 'congruent': 3, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_normal_ht'}} {'36': 21829} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
33.089286
2,999
0.652725
0fc2b4530f57c540a5d702529f3457226f6fa273
16,038
asm
Assembly
src/gfx.asm
BlockoS/up-captn
72e567327aa25e94c488359c1bee8189f96aabc5
[ "BSD-3-Clause" ]
6
2015-01-21T18:11:58.000Z
2019-12-26T19:04:01.000Z
src/gfx.asm
BlockoS/up-captn
72e567327aa25e94c488359c1bee8189f96aabc5
[ "BSD-3-Clause" ]
null
null
null
src/gfx.asm
BlockoS/up-captn
72e567327aa25e94c488359c1bee8189f96aabc5
[ "BSD-3-Clause" ]
null
null
null
; [todo] review code ; [todo] load_vram_1bpp set plane 2 to 1? ;---------------------------------------------------- ; gfx.asm : graphic routines ; ; (c) 2007 Vincent 'MooZ' Cruz ; ; This is a set of function to manipulate ; palettes, sprites, and background. ; ; LICENCE: [todo] ; .bss ; BAT informations bat_width .ds 2 bat_height .ds 1 bat_hmask .ds 1 bat_vmask .ds 1 ; Map coords mapbat_bottom .ds 1 mapbat_top .ds 1 mapbat_top_base .ds 2 ; Screen dimension scr_width .ds 1 scr_height .ds 1 VDC_WRITE .equ 0 VDC_READ .equ 1 .code ;---------------------------------------------------------------------- ; name : map_data ; ; description : Map the pointer passed as argument ; to banks 3-4 ($6000-$9FFF) and save ; previous bank values to _bx (_bl,_bh). ; ; Warning: Don't forget to call unmapData when you ; are done or else the old bank values will ; be lost. ; ; in: _BL = data bank ; _SI = data address ; ; out: _BX = old banks ; _SI = remapped data address ; map_data: ldx _bl ; Save current map banking tma #3 sta <_bl tma #4 sta <_bh ; Map new banks txa tam #3 inc A tam #4 ; Remap data address to page 3 lda <_si+1 and #$1f ora #$60 sta <_si+1 rts ;---------------------------------------------------------------------- ; name : unmap_data ; ; description : Restored previously saved bank mapping ; to banks 3-4 ($6000-$9FFF). ; ; in: _BX = saved data banks ; unmap_data: lda <_bl tam #3 lda <_bh tam #4 rts ;---------------------------------------------------------------------- ; name : remap_data ; ; description : Check if the banks needs to be set to ; the next 8kb ; ; in: _si = Current address to be remapped if nedded ; _bp = Bank remap_data: lda <_bp bne .l1 ; The pointer crossed the 8kb boundary? lda <_si+1 bpl .l1 ; So _si is using mpr #5, move it back to mpr #4 sub #$20 sta <_si+1 ; mpr #3 = mpr #4 tma #4 tam #3 ; Set mpr #4 to the next 8kb inc A tam #4 .l1: rts ;---------------------------------------------------------------------- ; name : _set_vram_addr ; ; description : Define a scroll window ; ; in : \1 mode (VDC_READ, VDC_WRITE) ; \2 vram address ; _set_vram_addr .macro vreg \1 .if (\?2 = ARG_IMMED) st1 #low(\2) st2 #high(\2) .else lda LOW_BYTE \2 sta video_data_l lda HIGH_BYTE \2 sta video_data_h .endif .endm ;---------------------------------------------------------------------- ; name : set_write ; ; description: set the VDC VRAM write pointer ; ; in : _DI = VRAM location ; set_write: _set_vram_addr VDC_WRITE, <_di vreg #$02 rts ;---------------------------------------------------------------------- ; name : calc_vram_addr ; ; description : calculate VRAM address ; ; in : X = x coordinates ; A = y " ; ; out: _DI = VRAM location ; calc_vram_addr: phx and bat_vmask stz <_di ldx bat_width cpx #64 beq .s64 cpx #128 beq .s128 ; -- .s32: lsr A ror <_di ; -- .s64: lsr A ror <_di ; -- .s128: lsr A ror <_di sta <_di+1 ; -- pla and bat_hmask ora <_di sta <_di rts ;---------------------------------------------------------------------- ; name : load_palette, load_palette_ex ; ; description : Initialize a palette in VCE with the ; data passed as argument. ; load_palette_ex maps data. ; ; in: _AL = index of the first sub-palette (0-31) ; _SI = address of data ; _CL = number of sub-palette to copy ; _BL = data bank (load_palette_ex only) load_palette_ex: ; Map data jsr map_data load_palette: ; Multiply sub-palette index by 16 to point to the ; correct VCE index lda <_al stz <_ah asl A asl A asl A asl A rol <_ah ; Set VCE index sta color_reg_l lda <_ah sta color_reg_h ; Use TIA, but BLiT 16 words at a time (32 bytes) ; Because interrupt must not be deferred too much set_ram_cpy_mode SOURCE_INC_DEST_ALT stw #32, <_ram_cpy_size stw #color_data, <_ram_cpy_dest .loop_a: stw <_si, <_ram_cpy_src jsr _ram_cpy_proc addw #32, <_si dec <_cl bne .loop_a ; Copy data ; Restore bank mapping jsr unmap_data rts ;---------------------------------------------------------------------- ; name : set_bat_size ; ; description : set bg map virtual size ; ; in : A = new size (0-7) ; set_bat_size: and #$07 pha ; Memory Access Width Register (vreg #9) vreg #9 pla tax ; BG map size is store in bits 4 to 6 in vreg #9 asl A asl A asl A asl A sta video_data_l ; Convert to "real" screen size and mask ; -- width : 32,64,128 lda .width,X sta bat_width stz bat_width+1 dec A sta bat_hmask ; -- height : 32,64 lda .height,X sta bat_height ; -- bat coords sta mapbat_bottom stz mapbat_top stz mapbat_top_base stz mapbat_top_base+1 dec A sta bat_vmask rts .width: .db $20,$40,$80,$80,$20,$40,$80,$80 .height: .db $20,$20,$20,$20,$40,$40,$40,$40 ;---------------------------------------------------------------------- ; name : load_bat ; ; description : Transfer BAT data from ROM/RAM to VRAM ; ; in : _DI = VRAM base address ; _BL = BAT bank ; _SI = BAT memory location ; _CL = nb of column to copy ; _CH = nb of row ; loab_bat: cly ; Map data jsr map_data .l1: ; Set VRAM pointer jsr set_write ldx <_cl .l2: ; Copy line lda [_si],Y sta video_data_l iny lda [_si],Y sta video_data_h iny ; if y=0, this means that we copied ; 256 bytes and can't further use ; lda [zp],Y. That's why we make _si ; jump to 256 bytes. bne .l3 inc <_si+1 .l3: dex bne .l2 ; Jump to next line jsr remap_data addw bat_width, <_di dec <_ch bne .l1 ; Unmap data jsr unmap_data rts ;---------------------------------------------------------------------- ; name : set_xres ; ; description : Set horizontal screen resolution ; ; in : _AH = Horizontal screen resoultion ; _CL = 'blur' ; .bss hsw .ds 1 ; temporary parameters for calculating video registers hds .ds 1 hdw .ds 1 hde .ds 1 .code _vce_tab: .db 0, 1, 2 _hsw_tab: .db 2, 3, 5 _hds_tab: .db 18,25,42 _hde_tab: .db 38,51,82 set_xres: ; TODO disable vsync lda <_ah sta <_bh lda <_al sta <_bl ; bx now has x-res lsr <_bh ror <_bl lsr <_bh ror <_bl lsr <_bl ; bl now has x/8 cly ; offset into numeric tables ; 0=low-res, 1=mid-res, 2=high-res lda <_ah beq .xres_calc ; < 256 cmp #3 bhs .xres_calc cmpw #$10C,<_ax blo .xres_calc ; < 268 iny cmpw #$164,<_ax blo .xres_calc ; < 356 iny ; 356 < x < 512 .xres_calc: lda _vce_tab,Y ora <_cl sta color_ctrl ; dot-clock (x-resolution) lda _hsw_tab,Y ; example calc's (using "low-res" numbers) sta hsw ; hsw = $2 lda <_bl sta hds ; hds = (x/8) temporarily dec A sta hdw ; hdw = (x/8)-1 lsr hds ; hds = (x/16) temporarily lda _hds_tab,Y sub hds sta hds ; hds = 18 - (x/16) lda _hde_tab,Y sub hds sub <_bl ; hde = (38 - ( (18-(x/16)) + (x/8) )) sta hde .xres_putit: vreg #$0a lda hsw sta video_data_l lda hds sta video_data_h vreg #$0b lda hdw sta video_data_l lda hde sta video_data_h .xres_err: ; TODO enable vsync rts ;---------------------------------------------------------------------- ; name : set_xres256 ; ; description : Set horizontal screen resolution to 256 ; ; in : _CL = 'blur' ; set_xres256: cla ora <_cl sta color_ctrl st0 #$0a st1 #$02 st2 #$02 st0 #$0b st1 #$1f st2 #$04 rts ;---------------------------------------------------------------------- ; name : set_xres320 ; ; description : Set horizontal screen resolution to 320 ; ; in : _CL = 'blur' ; set_xres320: lda #$01 ora <_cl sta color_ctrl st0 #$0a st1 #$02 st2 #$04 st0 #$0b st1 #$2a st2 #$04 rts ;---------------------------------------------------------------------- ; name : set_xres512 ; ; description : Set horizontal screen resolution to 512 ; ; in : _CL = 'blur' ; set_xres512: lda #$02 ora <_cl sta color_ctrl st0 #$0a st1 #$02 st2 #$0b st0 #$0b st1 #$3f st2 #$04 rts ;---------------------------------------------------------------------- ; name : load_vram ; ; description : copy a block of memory to VRAM ; ; in : _di VRAM location ; _bl data bank ; _si data memory location ; _cx number of bytes to copy ; load_vram: ; We will only use bank 3 ; Save current bank mapping tma #3 sta <_bh ; Remap pointer lda <_bl tam #3 lda <_si+1 and #$1f sta <_dh ora #$60 sta <_si+1 ; Set vram write pointer vreg #$00 lda <_di sta video_data_l lda <_di+1 sta video_data_h ; Use the vram data register vreg #$02 ; Use source increment, alternate destination for RAM to VRAM transfer set_ram_cpy_mode SOURCE_INC_DEST_ALT ; Set tia destination to vram data register stw #video_data, <_ram_cpy_dest ; As the address is modulo 8192, all we have to do is to check ; if it is not null lda <_si bne .load_vram_prefix_0 lda <_dh beq .load_vram_8k .load_vram_prefix_0: ; dx = 8192 - (_si & 0x1FFF) sec lda #low(8192) sbc <_si sta <_dl lda #high(8192) sbc <_dh sta <_dh ; We will copy 32 bytes each time so that the interrupts aren't ; delayed to much lda #32 sta <_ram_cpy_size stz <_ram_cpy_size+1 ; Set source lda <_si sta <_ram_cpy_src lda <_si+1 sta <_ram_cpy_src+1 ; _cx -= _dx subw <_dx, <_cx .load_vram_prefix: sec lda <_dl sbc #32 bcs .load_vram_prefix_1 dec <_dh bmi .load_vram_prefix_end .load_vram_prefix_1: ; A should contain the result of dl - 32 sta <_dl ; Transfer data jsr _ram_cpy_proc ; Move source pointer to the next 32 bytes addw #32, <_ram_cpy_src bra .load_vram_prefix .load_vram_prefix_end: ; Copy remaining data lda <_dl beq .load_vram_prefix_3 sta <_ram_cpy_size jsr _ram_cpy_proc .load_vram_prefix_3: ; Map next rom bank inc <_bl lda <_bl tam #3 ; Clean up source address lda <_si+1 and #%1110_0000 sta <_si+1 .load_vram_8k: ; So here we will copy 8k each time lda #32 sta <_ram_cpy_size stz <_ram_cpy_size+1 .load_vram_8k_begin: ; we are finished if ch < high(8192) lda <_si+1 sta <_ram_cpy_src+1 stz <_ram_cpy_src lda <_ch cmp #32 bcc .load_vram_8k_end ; We are about to copy 8192 bytes (ie) 256*32 clx .load_vram_8k_1: ; Transfer data jsr _ram_cpy_proc ; Move source pointer to the next 32 bytes addw #32, <_ram_cpy_src ; (++x) and check if it didn't overflow inx bne .load_vram_8k_1 ; cx -= 8192 sec lda <_ch sbc #32 sta <_ch ; Jump to next bank inc <_bx lda <_bx tam #3 bra .load_vram_8k_begin .load_vram_8k_end: lda <_ch bne .load_vram_remaining lda <_cl beq .load_vram_end .load_vram_remaining: lda #32 sta <_ram_cpy_size stz <_ram_cpy_size+1 .load_vram_remaining_0: ; _cx -= 32 sec lda <_cl sbc #32 bcs .load_vram_remaining_1 dec <_ch bmi .load_vram_remaining_2 .load_vram_remaining_1: ; A should contain the result of _cl - 32 sta <_cl ; Transfer data jsr _ram_cpy_proc ; Move source pointer to the next 32 bytes addw #32, <_ram_cpy_src bra .load_vram_remaining_0 .load_vram_remaining_2: lda <_cl beq .load_vram_end sta <_ram_cpy_size jsr _ram_cpy_proc .load_vram_end: ; Restore bank mapping lda <_bh tam #3 rts ;;--------------------------------------------------------------------- ; name : load_vram_1bpp ; ; description : Load 8x8 1bpp tiles to vram. ; ; in : _di = VRAM address ; _bl data bank ; _si data memory location ; _cx number of bytes to copy ; A byte value for plane #1 ; X byte value for plane #2 ; Y byte value for plane #3 ;;--------------------------------------------------------------------- load_vram_1bpp: ; Save registers stx <_al sty <_ah pha ; Set control register st0 #$05 st1 #%0000_0000 ; hsync/vsync and bg/sprite display off st2 #%0000_0000 ; 1 byte increment ; Remap pointer to mprs 3/4 jsr map_data ; Set vram write register jsr set_write plx .load_vram_1bpp_main: ; We only need to set the first plane. ; Let's unroll the loop! _load_vram_1bpp_write .macro lda [_si],Y sta video_data_l stx video_data_h iny .endm cly _load_vram_1bpp_write _load_vram_1bpp_write _load_vram_1bpp_write _load_vram_1bpp_write _load_vram_1bpp_write _load_vram_1bpp_write _load_vram_1bpp_write _load_vram_1bpp_write ; Planes 2 and 3 are not used as this is 1 bpp data. lda <_al ldy <_ah sta video_data_l sty video_data_h sty video_data_h sty video_data_h sty video_data_h sty video_data_h sty video_data_h sty video_data_h sty video_data_h ; Next char. addw #08, <_si ; Decrement our counter. decw <_cx ; Check if we are done. lda <_cl ora <_ch beq .load_vram_1bpp_end jmp .load_vram_1bpp_main .load_vram_1bpp_end: ; Restore mprs 3 and 4 jsr unmap_data ; Restore vdc control register st0 #$05 lda <vdc_crl sta video_data_l st2 #$00 rts ;---------------------------------------------------------------------- ; name : wait_vsync ; ; description : wait the next vsync ; ; in : A = number of frames to be sync'ed on ; ; out : A = number of elapsed frames since last call ; wait_vsync: .wait_vsync1: sei ; disable interrupts cmp irq_cnt ; calculate how many frames to wait beq .wait_vsync2 bhs .wait_vsync3 lda irq_cnt .wait_vsync2: inc A .wait_vsync3: sub irq_cnt sta vsync_cnt cli ; re-enable interrupts .wait_vsync4: lda irq_cnt ; wait loop .wait_vsync5: cmp irq_cnt beq .wait_vsync5 dec vsync_cnt bne .wait_vsync4 stz irq_cnt ; reset system interrupt counter inc A ; return number of elapsed frames rts ;;--------------------------------------------------------------------- ; name : disable display ; desc : disable interupts and sprite/bg display ; in : ; out : ;;--------------------------------------------------------------------- disable_display: ; Disable sprite and bg display vreg #$05 st1 #$00 st2 #$00 ; Disable interrupts vec_off #VSYNC vec_off #HSYNC rts
19.582418
75
0.522571
0f172272ba2cb3d1e3ef46b4469c3890a529e40c
300
asm
Assembly
programs/oeis/133/A133891.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/133/A133891.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/133/A133891.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A133891: Binomial(n+p,n) mod p, where p=12. ; 1,1,7,11,8,8,0,0,6,2,2,2,4,4,4,0,3,3,9,9,0,0,0,0,0,0,0,4,4,4,8,8,5,9,3,3,8,8,8,4,10,10,6,6,0,0,0,0,3,3,9,9,0,0,4,4,4,8,8,8,0,0,0,8,5,5,7,7,4,0,0,0,6,6,6,6,0,0,0,0,3,7,1,1,8,8,8,0,0,0,8,8,8,4,4,4,9,9,3,3,0,0,0,0 mov $1,$0 add $1,12 bin $1,12 mod $1,12
37.5
212
0.533333
d83798aaa9f0509109200cbb3641f58a9483d964
419
asm
Assembly
exp/t61.asm
nishuiq/Assembly-Learning
509d799dc7a76446bd1f3ddb1d04980e5e204602
[ "MIT" ]
null
null
null
exp/t61.asm
nishuiq/Assembly-Learning
509d799dc7a76446bd1f3ddb1d04980e5e204602
[ "MIT" ]
null
null
null
exp/t61.asm
nishuiq/Assembly-Learning
509d799dc7a76446bd1f3ddb1d04980e5e204602
[ "MIT" ]
null
null
null
assume cs:code, ds:data, ss:stack data segment dw 0123h,0456h,0789h,0abch,0defh,0fedh,0cbah,0987h data ends stack segment dw 0,0,0,0,0,0,0,0 stack ends code segment start: mov ax,stack mov ss,ax mov sp,16 mov ax,data mov ds,ax push ds:[0] push ds:[2] pop ds:[2] pop ds:[0] mov ax,4c00h int 21h code ends end start
14.964286
54
0.551313
4268538ab09d146fca23dfa16644375872882987
4,854
asm
Assembly
yr4.asm
ILW8/gwnum
9755109dd1c0d666f3c48d257c149f5f60e8cc42
[ "Unlicense" ]
null
null
null
yr4.asm
ILW8/gwnum
9755109dd1c0d666f3c48d257c149f5f60e8cc42
[ "Unlicense" ]
null
null
null
yr4.asm
ILW8/gwnum
9755109dd1c0d666f3c48d257c149f5f60e8cc42
[ "Unlicense" ]
null
null
null
; Copyright 2011-2020 Mersenne Research, Inc. All rights reserved ; Author: George Woltman ; Email: woltman@alum.mit.edu ; ; Assemble the small AVX FFTs. ; TITLE setup IFNDEF X86_64 .686 .XMM .MODEL FLAT ENDIF yfft_type TEXTEQU <r4> INCLUDE unravel.mac INCLUDE extrn.mac INCLUDE yarch.mac INCLUDE ybasics.mac INCLUDE ymult.mac INCLUDE yonepass.mac INCLUDE yr4.mac IFNDEF X86_64 EXTRN yreal_fft_final1a:PROC ENDIF EXTRN yreal_fft_final1:PROC EXTRN yreal_fft_final2:PROC EXTRN yreal_fft_final3:PROC EXTRN yreal_fft_final4:PROC EXTRN yreal_fft_final4a:PROC EXTRN yreal_fft_final5:PROC EXTRN yreal_fft_final6:PROC IFNDEF X86_64 EXTRN yreal_square1a:PROC ENDIF EXTRN yreal_square1:PROC EXTRN yreal_square2:PROC EXTRN yreal_square3:PROC EXTRN yreal_square4:PROC EXTRN yreal_square4a:PROC EXTRN yreal_square5:PROC EXTRN yreal_square6:PROC IFNDEF X86_64 EXTRN yreal_mult1a:PROC ENDIF EXTRN yreal_mult1:PROC EXTRN yreal_mult2:PROC EXTRN yreal_mult3:PROC EXTRN yreal_mult4:PROC EXTRN yreal_mult4a:PROC EXTRN yreal_mult5:PROC EXTRN yreal_mult6:PROC IFNDEF X86_64 EXTRN yreal_mulf1a:PROC ENDIF EXTRN yreal_mulf1:PROC EXTRN yreal_mulf2:PROC EXTRN yreal_mulf3:PROC EXTRN yreal_mulf4:PROC EXTRN yreal_mulf4a:PROC EXTRN yreal_mulf5:PROC EXTRN yreal_mulf6:PROC IFDEF X86_64 EXTRNP ycomplex_mult_opcode1 EXTRNP ycomplex_mult_opcode2 EXTRNP ycomplex_mult_opcode3 EXTRNP ycomplex_mult_opcode4 EXTRNP ycomplex_mult_opcode4a EXTRNP ycomplex_mult_opcode5 EXTRNP ycomplex_mult_opcode6 EXTRNP ycomplex_mulf_opcode1 EXTRNP ycomplex_mulf_opcode2 EXTRNP ycomplex_mulf_opcode3 EXTRNP ycomplex_mulf_opcode4 EXTRNP ycomplex_mulf_opcode4a EXTRNP ycomplex_mulf_opcode5 EXTRNP ycomplex_mulf_opcode6 ENDIF EXTRN y8real_fft_final1:PROC EXTRN y8real_fft_final2:PROC EXTRN y8real_fft_final3:PROC EXTRN y8real_fft_final4:PROC EXTRN y8real_square1:PROC EXTRN y8real_square2:PROC EXTRN y8real_square3:PROC EXTRN y8real_square4:PROC EXTRN y8real_mult1:PROC EXTRN y8real_mult2:PROC EXTRN y8real_mult3:PROC EXTRN y8real_mult4:PROC EXTRN y8real_mulf1:PROC EXTRN y8real_mulf2:PROC EXTRN y8real_mulf3:PROC EXTRN y8real_mulf4:PROC IFDEF X86_64 EXTRN y8complex_mult_opcode1:PROC EXTRN y8complex_mult_opcode2:PROC EXTRN y8complex_mult_opcode3:PROC EXTRN y8complex_mult_opcode4:PROC EXTRN y8complex_mulf_opcode1:PROC EXTRN y8complex_mulf_opcode2:PROC EXTRN y8complex_mulf_opcode3:PROC EXTRN y8complex_mulf_opcode4:PROC ENDIF _TEXT SEGMENT ;; Implement the small one pass FFTs PREFETCHING = 0 buildfor CORE + FMA3_64, yonepass 32, 0 buildfor CORE + FMA3_64, yonepass 64, 0 buildfor CORE + FMA3_64, yonepass 96, 0 buildfor CORE + FMA3_64, yonepass 128, 0 buildfor CORE + FMA3_64, yonepass 160, 0 buildfor CORE + FMA3_64, yonepass 192, 0 buildfor CORE + FMA3_64, yonepass 256, 0 buildfor CORE + FMA3_64, yonepass 320, 0 buildfor CORE + FMA3_64, yonepass 384, 0 buildfor CORE + FMA3_64, yonepass 512, 0 buildfor CORE + FMA3_64, yonepass 640, 0 buildfor CORE + FMA3_64, yonepass 768, 0 buildfor CORE + FMA3_64, yonepass 1K, 0 buildfor CORE + FMA3_64, yonepass 1280, 0 buildfor CORE + FMA3_64, yonepass 1536, 0 buildfor CORE + FMA3_64, yonepass 2K, 0 buildfor CORE + FMA3_64, yonepass 2560, 0 buildfor CORE + FMA3_64, yonepass 3K, 0 buildfor CORE + FMA3_64, yonepass 4K, 0 buildfor CORE + FMA3_64, yonepass 5K, 0 buildfor , yonepass 6K, 0 buildfor , yonepass 8K, 0 buildfor , yonepass 10K, 0 buildfor , yonepass 12K, 0 buildfor FMA3_64, yonepass 16K, 0 buildfor , yonepass 18K, 0 buildfor FMA3_64, yonepass 20K, 0 buildfor , yonepass 24K, 0 buildfor , yonepass 32K, 0 buildfor CORE + FMA3_64, yonepass 32, 1 buildfor CORE + FMA3_64, yonepass 64, 1 buildfor CORE + FMA3_64, yonepass 96, 1 buildfor CORE + FMA3_64, yonepass 128, 1 buildfor CORE + FMA3_64, yonepass 160, 1 buildfor CORE + FMA3_64, yonepass 192, 1 buildfor CORE + FMA3_64, yonepass 256, 1 buildfor CORE + FMA3_64, yonepass 320, 1 buildfor CORE + FMA3_64, yonepass 384, 1 buildfor CORE + FMA3_64, yonepass 512, 1 buildfor CORE + FMA3_64, yonepass 640, 1 buildfor CORE + FMA3_64, yonepass 768, 1 buildfor CORE + FMA3_64, yonepass 1K, 1 buildfor CORE + FMA3_64, yonepass 1280, 1 buildfor CORE + FMA3_64, yonepass 1536, 1 buildfor CORE + FMA3_64, yonepass 2K, 1 buildfor CORE + FMA3_64, yonepass 2560, 1 buildfor CORE + FMA3_64, yonepass 3K, 1 buildfor CORE + FMA3_64, yonepass 4K, 1 buildfor CORE + FMA3_64, yonepass 5K, 1 buildfor CORE_32 + FMA3_64, yonepass 6K, 1 buildfor CORE_32 + FMA3_64, yonepass 8K, 1 buildfor CORE_32 + FMA3_64, yonepass 10K, 1 buildfor CORE_32 + FMA3_64, yonepass 12K, 1 buildfor CORE_32 + FMA3_64, yonepass 16K, 1 buildfor , yonepass 20K, 1 buildfor , yonepass 18K, 1 buildfor , yonepass 24K, 1 buildfor , yonepass 32K, 1 _TEXT ENDS END
27.423729
66
0.786362
66dec71bf8ad6cd93a9304d3aa01b72f8a15b362
7,585
asm
Assembly
tp_01_08/include/isr.asm
mjFer/TDIII-UTN-FRBA-TPS-2014
1b57b52fa8233c78297b0e5471d1c82e4c85451b
[ "MIT" ]
2
2020-04-01T14:45:17.000Z
2020-04-01T14:45:23.000Z
tp_01_08/include/isr.asm
mjFer/TDIII-UTN-FRBA-TPS-2014
1b57b52fa8233c78297b0e5471d1c82e4c85451b
[ "MIT" ]
null
null
null
tp_01_08/include/isr.asm
mjFer/TDIII-UTN-FRBA-TPS-2014
1b57b52fa8233c78297b0e5471d1c82e4c85451b
[ "MIT" ]
null
null
null
;*********************************************************** ; UTN-2014-Rutinas de Interrupcion ;*********************************************************** ;*********************************************************** ; Author : Fernandez Marcelo Joaquin ; Date : 23th May 2014 ;*********************************************************** [BITS 64] ;defines de teclado %define KEY_ESC 01h %define KEY_F5 0xbf %define KEY_F6 0xc0 %define KEY_F7 0xc1 %define KEY_F8 0xc2 %define KEY_CTL_PRESS 0x1D %define KEY_CTL_RELEASE 0x9D %define KEY_1_PRESS 0x02 %define KEY_2_PRESS 0x03 %define KEY_3_PRESS 0x04 ;http://sourceforge.net/p/nasm/mailman/nasm-users/thread/4DFE094A.9020105@computer.org/ %assign i 0 %rep 30 irsMSG_%+i: db "SALTO_EXCEPCION_N_" irsMSG2_%+i:db 0,0,0,0,0,0,0,0,0,0 int_%+i: push rdi push rax xchg bx,bx mov edi,irsMSG_%+i mov esi,10 ; esi (segundo argumento) char columna mov edx,6 ; edx (tercer argumento) char fila mov ecx,111b ; ECX (cuarto arguemto) char color call Print_64 mov edi,i ;valor de la excepcion mov esi,irsMSG2_%+i ;puntero a char call my_itoa ;llamo a mi super funcion itoa mov edi,irsMSG2_%+i mov esi,28 ; esi (segundo argumento) char columna mov edx,6 ; edx (tercer argumento) char fila mov ecx,111b ; ECX (cuarto arguemto) char color call Print_64 ;hago que imprima el numero mov al,20h out 20h,al pop rax pop rdi iretq %assign i i+1 %endrep ;----------------------------------------------------------- ; Handler de Interrupcion de teclado ; Recibe: Nada ; Devuelve: Nada ;------------------------------------------------------------ hlt_txt: db "HLT!!", 00h variable_ctl_pressed: dq 00h int9_keyboardHandler: push rax push rdi push rsi push rdx push rcx xor rax,rax ;asi limpio el rax que sino da todo mal in al,60h cmp al,KEY_ESC je KEY_ESC_PRESS cmp al,KEY_F5 je KEY_F5_PRESS cmp al,KEY_F6 je KEY_F6_PRESS cmp al,KEY_F7 je KEY_F7_PRESS cmp al,KEY_F8 je KEY_F8_PRESS cmp al,KEY_CTL_PRESS je KEY_CTL_PRESSED cmp al,KEY_CTL_RELEASE je KEY_CTL_RELEASED cmp al,KEY_1_PRESS je KEY_1_PRESSED cmp al,KEY_2_PRESS je KEY_2_PRESSED cmp al,KEY_3_PRESS je KEY_3_PRESSED term_int9: mov al,0x20 ;indico al PIC que atendi la interrupcion out 0x20,al pop rcx pop rdx pop rsi pop rdi pop rax iretq ;ojo que iret es de 16bit iretd es de 32 y iretq es de 64 KEY_CTL_PRESSED: mov rax,0x00000001 mov [variable_ctl_pressed],rax jmp term_int9 KEY_CTL_RELEASED: mov rax,0x00000000 mov [variable_ctl_pressed],rax jmp term_int9 KEY_1_PRESSED: xor rax,rax mov rax,[variable_ctl_pressed] cmp rax,00 je term_int9 call GENERAR_DOBLE_FAULT jmp term_int9 KEY_2_PRESSED: xor rax,rax mov rax,[variable_ctl_pressed] cmp rax,00 je term_int9 call GENERAR_GENERAL_PROTECTION jmp term_int9 KEY_3_PRESSED: xor rax,rax mov rax,[variable_ctl_pressed] cmp rax,00 je term_int9 call GENERAR_PAGE_FAULT jmp term_int9 KEY_ESC_PRESS: mov edi,hlt_txt mov esi,10 ; esi (segundo argumento) char columna mov edx,3 ; edx (tercer argumento) char fila mov ecx,111b ; ECX (cuarto arguemto) char color call Print_64 jmp term_int9 KEY_F5_PRESS: call toggle_F5_D0 jmp term_int9 KEY_F6_PRESS: call toggle_F6_D1 jmp term_int9 KEY_F7_PRESS: call toggle_F7_D2 jmp term_int9 KEY_F8_PRESS: call toggle_F8_D3 jmp term_int9 G_DF_txt: db "GENERANDO DOBLE FAULT!! ", 00h G_GP_txt: db "GENERANDO GENERAL PROTECTION:!!", 00h G_PG_txt: db "GENERANDO PAGE FAULT!! ", 00h GENERAR_DOBLE_FAULT: mov edi,G_DF_txt mov esi,5 ; esi (segundo argumento) char columna mov edx,23 ; edx (tercer argumento) char fila mov ecx,111b ; ECX (cuarto arguemto) char color call Print_64 ;divido por cero para generar una excepcion de division por cero ;o si esta mal definida que genere una general protection mov rax,0x00000001 ;preguntar por que exploca y no explotaba mov rbx,0x00000000 div rbx ret GENERAR_GENERAL_PROTECTION: mov edi,G_GP_txt mov esi,5 ; esi (segundo argumento) char columna mov edx,23 ; edx (tercer argumento) char fila mov ecx,111b ; ECX (cuarto arguemto) char color call Print_64 ;escribo en un bit reservado del cr4 mov rax,0x100000 mov cr4, rax ;xchg bx,bx ;divido por cero para generar una excepcion de division por cero ;o si esta mal definida que genere una general protection ;mov rax,0x00000000 preguntar por que exploca y no explotaba ;mov rbx,0x00000000 ;div rbx ;salto a una sona no ejecutable ;jmp G_DF_txt ;pruebo de escribir en una direccion superior al primer megabyte ;donde posicione las tablas de paginacion ;mov edi,0x100000 ;me posiciono en el primer megabyte ;mov word [edi],0xA0BA0; ;escribo basura XD ret GENERAR_PAGE_FAULT: mov edi,G_PG_txt mov esi,5 ; esi (segundo argumento) char columna mov edx,23 ; edx (tercer argumento) char fila mov ecx,111b ; ECX (cuarto arguemto) char color call Print_64 ;trato de leer en una zona de memoria que no esta en pagina mov rax,[0x300000] ret %include "include/debug_registers.asm" ;----------------------------------------------------------- ; Handler de division por cero ; Recibe: Nada ; Devuelve: Nada ;----------------------------------------------------------- ex0_ceroHandler: xchg bx,bx ;trato de leer en una zona de memoria que no esta en pagina mov rax,[0x300000] iretq ;----------------------------------------------------------- ; Handler de Debug ; Recibe: Nada ; Devuelve: Nada ;----------------------------------------------------------- ex3_BPHandler: iretq ;----------------------------------------------------------- ; Handler de DoubleFault ; Recibe: Nada ; Devuelve: Nada ;----------------------------------------------------------- G_DFH_txt: db "ex8_DoubleFaultHandler!! ", 00h ex8_DoubleFaultHandler: pop rax mov edi,G_DFH_txt mov esi,5 ; esi (segundo argumento) char columna mov edx,7 ; edx (tercer argumento) char fila mov ecx,100b ; ECX (cuarto arguemto) char color call Print_64 pop rax ;incremento el eip en 3 para que siga con laproxima instruccion add rax, 11b push rax iretq ;----------------------------------------------------------- ; Handler de General Protection ; Recibe: Nada ; Devuelve: Nada ;----------------------------------------------------------- G_GPH_txt: db "ex13_GeneralProtectionHandler!! ", 00h ex13_GeneralProtectionHandler: pop rbx mov edi,G_GPH_txt mov esi,5 ; esi (segundo argumento) char columna mov edx,6 ; edx (tercer argumento) char fila mov ecx,100b ; ECX (cuarto arguemto) char color call Print_64 pop rax ;incremento el eip en 3 para qsue siga con laproxima instruccion add rax, 11b push rax iretq ;----------------------------------------------------------- ; Handler de PageFault ; Recibe: Nada ; Devuelve: Nada ;----------------------------------------------------------- G_PFH_txt: db "ex14_PageFaultProtectionHandler!! ", 00h ex14_PageFaultProtectionHandler: pop rbx mov edi,G_PFH_txt mov esi,5 ; esi (segundo argumento) char columna mov edx,8 ; edx (tercer argumento) char fila mov ecx,100b ; ECX (cuarto arguemto) char color call Print_64 pop rax ;incremento el eip en 9 para que siga con laproxima instruccion add rax, 1000b push rax iretq
23.266871
98
0.621094
7ec4a5b5c93d04ec60a41281534cd8222e5f5637
6,783
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1339.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_notsx.log_21829_1339.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_notsx.log_21829_1339.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r15 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0xa11, %r11 nop nop nop nop and %r14, %r14 movb (%r11), %dl nop nop and %rsi, %rsi lea addresses_WT_ht+0x12c01, %r15 clflush (%r15) nop and $27672, %rbp movw $0x6162, (%r15) nop nop sub %r14, %r14 lea addresses_WT_ht+0x1503f, %r14 nop nop nop nop add %rdx, %rdx vmovups (%r14), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $1, %xmm5, %rcx nop nop and %r15, %r15 lea addresses_A_ht+0x15e81, %rsi lea addresses_UC_ht+0x1e941, %rdi clflush (%rsi) add %rdx, %rdx mov $93, %rcx rep movsw nop xor %rbp, %rbp lea addresses_WT_ht+0xdc01, %rsi lea addresses_WT_ht+0x11801, %rdi nop nop sub %rbp, %rbp mov $56, %rcx rep movsl nop and $50351, %rdi lea addresses_WC_ht+0x11f01, %r15 and $19012, %rsi movl $0x61626364, (%r15) nop nop nop add $47912, %r15 lea addresses_WT_ht+0x19fe1, %rdi nop inc %rcx movups (%rdi), %xmm5 vpextrq $1, %xmm5, %r14 dec %rdi lea addresses_normal_ht+0x4c01, %rsi clflush (%rsi) nop nop cmp $46848, %r15 mov $0x6162636465666768, %rdx movq %rdx, (%rsi) nop nop cmp $10992, %rdi lea addresses_WC_ht+0xc401, %r11 nop nop nop nop nop sub $20610, %rcx movw $0x6162, (%r11) add %rdi, %rdi lea addresses_WT_ht+0x18081, %r14 nop nop nop add $1980, %rcx and $0xffffffffffffffc0, %r14 vmovntdqa (%r14), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $0, %xmm3, %r15 nop nop xor $24858, %rcx lea addresses_WT_ht+0x6d55, %rsi lea addresses_WT_ht+0x5dad, %rdi nop nop sub $23238, %rdx mov $72, %rcx rep movsl nop nop nop nop nop add %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r15 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r15 push %r9 push %rbp push %rdx // Faulty Load lea addresses_normal+0x9401, %r14 nop nop nop nop nop and $40107, %r12 mov (%r14), %rdx lea oracles, %r12 and $0xff, %rdx shlq $12, %rdx mov (%r12,%rdx,1), %rdx pop %rdx pop %rbp pop %r9 pop %r15 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 4, 'type': 'addresses_normal', 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal', 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 1}} {'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WT_ht', 'congruent': 11}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT_ht', 'congruent': 1}} {'dst': {'same': False, 'congruent': 6, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_A_ht'}} {'dst': {'same': True, 'congruent': 10, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WC_ht', 'congruent': 6}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WT_ht', 'congruent': 3}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal_ht', 'congruent': 11}, 'OP': 'STOR'} {'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WC_ht', 'congruent': 10}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT_ht', 'congruent': 6}} {'dst': {'same': False, 'congruent': 1, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}} {'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 */
38.539773
2,999
0.658853
f3a5643825d6fa0cfb29839fdee8a9eec14d0c35
5,525
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_563.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_notsx.log_21829_563.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_notsx.log_21829_563.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %r15 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x1d297, %r14 nop nop nop nop inc %rdx and $0xffffffffffffffc0, %r14 vmovntdqa (%r14), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $1, %xmm5, %r13 nop nop nop nop inc %rsi lea addresses_WC_ht+0x1b457, %rbx nop nop xor $48694, %r15 mov (%rbx), %r11d nop nop nop sub %rsi, %rsi lea addresses_normal_ht+0x19717, %rsi lea addresses_normal_ht+0x2f17, %rdi nop nop nop nop nop lfence mov $121, %rcx rep movsb nop nop nop and %rdi, %rdi lea addresses_WC_ht+0xf837, %r14 nop nop nop dec %rcx movw $0x6162, (%r14) nop nop nop nop nop cmp $2580, %r15 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r15 pop %r14 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r14 push %r15 push %rcx push %rdi push %rsi // Store lea addresses_A+0x5517, %r15 nop nop nop cmp $57534, %r14 movw $0x5152, (%r15) nop nop nop xor %r12, %r12 // REPMOV lea addresses_normal+0x1d457, %rsi lea addresses_WC+0x851f, %rdi nop nop nop nop xor %r15, %r15 mov $42, %rcx rep movsb nop nop nop nop nop and $29951, %r12 // Faulty Load lea addresses_WC+0x7d17, %r14 nop nop xor %r15, %r15 movb (%r14), %r13b lea oracles, %rsi and $0xff, %r13 shlq $12, %r13 mov (%rsi,%r13,1), %r13 pop %rsi pop %rdi pop %rcx pop %r15 pop %r14 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 4, 'type': 'addresses_WC', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_A', 'congruent': 11}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 2, 'type': 'addresses_WC'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_normal'}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC', 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': True, 'NT': True, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT_ht', 'congruent': 6}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WC_ht', 'congruent': 6}} {'dst': {'same': True, 'congruent': 7, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_normal_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 2, 'type': 'addresses_WC_ht', 'congruent': 5}, 'OP': 'STOR'} {'38': 21829} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
37.585034
2,999
0.6619
8039c2265079a62bad5409323cf136a9497831b6
4,811
asm
Assembly
Transynther/x86/_processed/P/_zr_/i7-7700_9_0xca_notsx.log_3_1601.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/P/_zr_/i7-7700_9_0xca_notsx.log_3_1601.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/P/_zr_/i7-7700_9_0xca_notsx.log_3_1601.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %r15 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x2d05, %r15 nop nop nop sub %rax, %rax mov $0x6162636465666768, %rdx movq %rdx, (%r15) nop nop xor $38144, %r15 lea addresses_UC_ht+0x8315, %r14 add $61304, %rax mov $0x6162636465666768, %r15 movq %r15, %xmm6 and $0xffffffffffffffc0, %r14 vmovaps %ymm6, (%r14) nop dec %r11 lea addresses_WT_ht+0x15505, %r12 nop nop nop nop and %rbp, %rbp movl $0x61626364, (%r12) nop and $46455, %r14 lea addresses_WT_ht+0x1d07d, %r12 nop nop nop add $45513, %rax movb (%r12), %r11b nop nop nop nop inc %r12 lea addresses_A_ht+0x1ea15, %r11 nop nop and %r15, %r15 mov $0x6162636465666768, %rdx movq %rdx, (%r11) nop dec %r15 lea addresses_A_ht+0xbc99, %rax nop nop sub $52715, %r12 and $0xffffffffffffffc0, %rax vmovaps (%rax), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $1, %xmm2, %rbp nop xor $6458, %rbp lea addresses_WC_ht+0x15955, %rdx dec %r12 mov $0x6162636465666768, %rbp movq %rbp, %xmm1 and $0xffffffffffffffc0, %rdx vmovaps %ymm1, (%rdx) nop nop cmp %rdx, %rdx lea addresses_normal_ht+0x14a35, %r15 nop inc %r12 mov (%r15), %r11d nop nop nop add %r12, %r12 lea addresses_D_ht+0x6fcb, %rdx nop nop sub %r15, %r15 mov $0x6162636465666768, %r14 movq %r14, (%rdx) nop nop add $24849, %r12 lea addresses_UC_ht+0x1bc15, %r14 cmp %r12, %r12 mov (%r14), %ebp nop nop nop nop nop add $36260, %rax lea addresses_UC_ht+0x19f15, %r15 nop nop nop nop nop inc %rdx movl $0x61626364, (%r15) nop nop nop dec %r12 lea addresses_normal_ht+0x14215, %rsi lea addresses_normal_ht+0x7b35, %rdi nop nop nop sub $38719, %r11 mov $29, %rcx rep movsb nop nop nop xor $49310, %r11 lea addresses_D_ht+0xa15, %rdx nop inc %r11 mov $0x6162636465666768, %r12 movq %r12, %xmm0 movups %xmm0, (%rdx) nop nop nop sub $62125, %r11 lea addresses_UC_ht+0x18c7f, %r12 nop nop nop sub %r15, %r15 movb $0x61, (%r12) nop nop nop nop nop sub %rcx, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r15 pop %r14 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r15 push %r8 push %r9 push %rdi push %rsi // Store lea addresses_A+0x1b425, %r12 clflush (%r12) nop nop and $61082, %rsi mov $0x5152535455565758, %r8 movq %r8, (%r12) nop nop nop nop nop add $17952, %r9 // Faulty Load mov $0xf15, %r12 nop nop nop add %r11, %r11 movups (%r12), %xmm6 vpextrq $1, %xmm6, %r9 lea oracles, %rsi and $0xff, %r9 shlq $12, %r9 mov (%rsi,%r9,1), %r9 pop %rsi pop %rdi pop %r9 pop %r8 pop %r15 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_P'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 4, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_P'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 1, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 10, 'same': True, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 4, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 8, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'src': {'NT': True, 'AVXalign': True, 'size': 32, 'congruent': 2, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 6, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 1, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'src': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'dst': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 10, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'00': 3} 00 00 00 */
20.648069
156
0.652047
df0dc085279eca9ae1adc0ea9e602bfe4118382a
1,509
asm
Assembly
Models/Car System module/CarSystem002/CarSystem002Functions.asm
fmselab/ABZ2020CaseStudyInAsmeta
12d8f7338ef457ea31022bdd0f13ef77fe19e2f9
[ "CC0-1.0" ]
null
null
null
Models/Car System module/CarSystem002/CarSystem002Functions.asm
fmselab/ABZ2020CaseStudyInAsmeta
12d8f7338ef457ea31022bdd0f13ef77fe19e2f9
[ "CC0-1.0" ]
null
null
null
Models/Car System module/CarSystem002/CarSystem002Functions.asm
fmselab/ABZ2020CaseStudyInAsmeta
12d8f7338ef457ea31022bdd0f13ef77fe19e2f9
[ "CC0-1.0" ]
null
null
null
//Ground model of Adaptive Exterior Light and Speed Control System //Direction Blinking //Hazard warning light //from ELS-1 to ELS-13 module CarSystem002Functions import ../../StandardLibrary import CarSystem002Domains import ../CarSystem001/CarSystem001Functions export * signature: // DOMAINS // FUNCTIONS //Parameters setted initially static armoredVehicle: Boolean // The vehicle is armored or not //Daytime light and ambient light are determined before starting the model and remain unchanged throughout simulation (see web page of ABZ2020) static daytimeLight: Boolean // Daytime running light activation. True -> ON, False -> OFF static ambientLighting: Boolean // Ambient light activation. True -> ON, False -> OFF monitored currentSpeed: CurrentSpeed // Current speed of the vehicle controlled keyState_Previous: KeyPosition // Position of the key in the previous state monitored lightRotarySwitch: LightSwitch // Position of the light rotary switch controlled lightRotarySwitchPrevious: LightSwitch // Position of the light rotary switch in the previous state derived engineOn: KeyPosition -> Boolean // Depending on keyState engineOn is true or false definitions: // FUNCTION DEFINITIONS function armoredVehicle = true function daytimeLight = true function ambientLighting = true //Engine state is determined by KeyPosition value. If the key is on the engine is on, otherwise is off function engineOn ($key in KeyPosition)= ($key = KEYINIGNITIONONPOSITION)
35.928571
144
0.783963
37f57b6d4b6eff1ba0135582ee9bf5dfae0fc3d3
352
nasm
Assembly
Projetos/J-VMTranslator/bin/nasm/SimplePushConst.nasm
mariaeduardabicalho/Z01
a08eb895cb064aad16e512d20b09c3f02704f98d
[ "Unlicense" ]
2
2018-03-21T01:20:58.000Z
2018-04-16T14:35:51.000Z
Projetos/J-VMTranslator/bin/nasm/SimplePushConst.nasm
mariaeduardabicalho/Z01
a08eb895cb064aad16e512d20b09c3f02704f98d
[ "Unlicense" ]
70
2018-03-13T12:19:23.000Z
2018-05-16T20:38:45.000Z
Projetos/J-VMTranslator/bin/nasm/SimplePushConst.nasm
mariaeduardabicalho/Z01
a08eb895cb064aad16e512d20b09c3f02704f98d
[ "Unlicense" ]
null
null
null
; 0 - PUSH constant 5 leaw $5, %A movw %A, %S leaw $SP, %A movw (%A), %D movw %D, %A movw %S, (%A) leaw $SP, %A movw (%A), %A incw %A movw %A, %S leaw $SP, %A movw %S, (%A) ; 1 - PUSH constant 9 leaw $9, %A movw %A, %S leaw $SP, %A movw (%A), %D movw %D, %A movw %S, (%A) leaw $SP, %A movw (%A), %A incw %A movw %A, %S leaw $SP, %A movw %S, (%A) ; End
12.571429
21
0.508523
07f307fa08ca338092657c529264123dbb743fd9
369
asm
Assembly
programs/oeis/284/A284775.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/284/A284775.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/284/A284775.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A284775: Fixed point of the morphism 0 -> 01, 1 -> 0011. ; 0,1,0,0,1,1,0,1,0,1,0,0,1,1,0,0,1,1,0,1,0,0,1,1,0,1,0,0,1,1,0,1,0,1,0,0,1,1,0,0,1,1,0,1,0,1,0,0,1,1,0,0,1,1,0,1,0,0,1,1,0,1,0,1,0,0,1,1,0,0,1,1,0,1,0,0,1,1,0,1,0,1,0,0,1,1,0,0,1,1,0,1,0,0,1,1,0,1,0,0 sub $0,1 mov $2,$0 div $0,2 add $2,1 add $0,$2 seq $0,189664 ; Fixed point of the morphism 0->010, 1->001.
36.9
201
0.552846
b4c7114a9b511b33ea697014e8f4d0a47d87e909
208
asm
Assembly
programs/oeis/033/A033312.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/033/A033312.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/033/A033312.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A033312: a(n) = n! - 1. ; 0,0,1,5,23,119,719,5039,40319,362879,3628799,39916799,479001599,6227020799,87178291199,1307674367999,20922789887999,355687428095999,6402373705727999 mov $1,$0 cal $1,142 sub $1,1
29.714286
150
0.759615
632497fa513d55d1344fb1ec5568c895bdb1fcb0
318
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/l_f16_add.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/l_f16_add.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/l_f16_add.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_fp_math16 PUBLIC l_f16_add PUBLIC addf16 PUBLIC addf16_callee EXTERN asm_f16_add_callee EXTERN cm16_sccz80_add EXTERN cm16_sccz80_add_callee defc l_f16_add = asm_f16_add_callee defc addf16 = cm16_sccz80_add defc addf16_callee = cm16_sccz80_add_callee
16.736842
47
0.738994
a19af48db084c49d049c78edca500cdaf5f42e97
483
asm
Assembly
test/filters-cases/arm-static.asm
OfekShilon/compiler-explorer
7ee2ab17f29470575443bd67e5685ac54ce76158
[ "BSD-2-Clause" ]
4,668
2017-01-02T19:35:10.000Z
2020-05-16T03:18:45.000Z
test/filters-cases/arm-static.asm
OfekShilon/compiler-explorer
7ee2ab17f29470575443bd67e5685ac54ce76158
[ "BSD-2-Clause" ]
1,750
2017-01-02T19:37:06.000Z
2020-05-16T14:54:29.000Z
test/filters-cases/arm-static.asm
OfekShilon/compiler-explorer
7ee2ab17f29470575443bd67e5685ac54ce76158
[ "BSD-2-Clause" ]
620
2017-01-03T00:29:17.000Z
2020-05-14T09:27:47.000Z
.global LongLong LongLong: .word 123456 .word 0 .type Long, %object .size Long, 4 .global Long Long: .word 2345 .type Int, %object .size Int, 4 .global Int Int: .word 123 .type Short, %object .size Short, 2 .global Short Short: .short 4660 .type Char, %object .size Char, 1 .global Char Char: .byte -128
19.32
30
0.447205
09c88c309ba79f23b59997d5486638698fef8320
7,407
asm
Assembly
asm/qoi_decode_clang.asm
64/riscv-sim
293c5bec94a4654da58fb14c3a5751abb8e1000c
[ "MIT" ]
1
2022-03-25T02:19:45.000Z
2022-03-25T02:19:45.000Z
asm/qoi_decode_clang.asm
64/riscv-sim
293c5bec94a4654da58fb14c3a5751abb8e1000c
[ "MIT" ]
null
null
null
asm/qoi_decode_clang.asm
64/riscv-sim
293c5bec94a4654da58fb14c3a5751abb8e1000c
[ "MIT" ]
null
null
null
decode: addi sp, sp, -16 sw ra, 12(sp) mv a1, a0 li a0, 1000 mv a2, sp li a3, 4 call qoi_decode lw ra, 12(sp) addi sp, sp, 16 j .end qoi_decode: addi sp, sp, -304 sw ra, 300(sp) sw s0, 296(sp) sw s1, 292(sp) sw s2, 288(sp) sw s3, 284(sp) sw s4, 280(sp) sw s5, 276(sp) sw s6, 272(sp) sw s7, 268(sp) sw s8, 264(sp) mv s0, a0 seqz a0, a0 seqz a4, a2 or a4, a0, a4 li a0, 0 bnez a4, .LBB0_6 mv s1, a1 addi a0, a3, -3 snez a0, a0 andi a1, a3, -5 snez a1, a1 and a0, a0, a1 slti a1, s1, 22 or a1, a1, a0 li a0, 0 bnez a1, .LBB0_6 lb a7, 0(s0) lbu t0, 1(s0) lbu a6, 2(s0) lbu a5, 3(s0) lb a0, 4(s0) lbu a1, 5(s0) lbu a4, 6(s0) lbu t1, 7(s0) slli a0, a0, 24 slli a1, a1, 16 or a0, a1, a0 slli a1, a4, 8 or a0, a0, a1 or a1, a0, t1 sw a1, 0(a2) lb a0, 8(s0) lbu a4, 9(s0) lbu t1, 10(s0) lbu t2, 11(s0) slli a0, a0, 24 slli a4, a4, 16 or a0, a4, a0 slli a4, t1, 8 or a0, a0, a4 or a4, a0, t2 sw a4, 4(a2) lbu s2, 12(s0) li a0, 0 sb s2, 8(a2) lbu t1, 13(s0) seqz t2, a1 seqz t3, a4 or t2, t2, t3 sb t1, 9(a2) bnez t2, .LBB0_6 addi a0, s2, -5 andi a0, a0, 255 li a2, 254 bgeu a0, a2, .LBB0_5 .LBB0_4: li a0, 0 j .LBB0_6 .LBB0_5: slli a0, a7, 24 slli a2, t0, 16 or a0, a2, a0 slli a2, a6, 8 or a0, a0, a2 or a0, a0, a5 sltiu a2, t1, 2 xori a2, a2, 1 lui a5, 464631 addi a5, a5, -1690 xor a0, a0, a5 snez a0, a0 or a2, a0, a2 li a0, 0 beqz a2, .LBB0_7 .LBB0_6: lw ra, 300(sp) lw s0, 296(sp) lw s1, 292(sp) lw s2, 288(sp) lw s3, 284(sp) lw s4, 280(sp) lw s5, 276(sp) lw s6, 272(sp) lw s7, 268(sp) lw s8, 264(sp) addi sp, sp, 304 ret .LBB0_7: lui a0, 97656 addi a0, a0, 1024 divu a0, a0, a1 bgeu a4, a0, .LBB0_4 beqz a3, .LBB0_10 mv s2, a3 .LBB0_10: mul a0, a4, a1 mul s3, a0, s2 addi a0, sp, 8 li a2, 256 addi s4, sp, 8 li a1, 0 call q_memset lui a1, 122 blez s3, .LBB0_31 li s5, 0 li a2, 0 li t4, 0 li t3, 0 li t2, 0 addi a3, s1, -8 li t6, 14 li a4, 255 addi a0, a1, 288 li a5, 4 li a6, 11 li a7, 254 li t0, 1 li t1, 2 li t5, 255 j .LBB0_13 .LBB0_12: add a2, a2, s2 bge a2, s3, .LBB0_6 .LBB0_13: blez s5, .LBB0_15 addi s5, s5, -1 j .LBB0_29 .LBB0_15: bge t6, a3, .LBB0_19 add s5, s0, t6 lbu s6, 0(s5) addi s1, t6, 1 beq s6, a4, .LBB0_20 bne s6, a7, .LBB0_21 add t2, s0, s1 lbu t2, 0(t2) lbu t3, 2(s5) lbu t4, 3(s5) li s5, 0 addi s1, t6, 4 j .LBB0_28 .LBB0_19: li s5, 0 j .LBB0_29 .LBB0_20: add t2, s0, s1 lbu t2, 0(t2) lbu t3, 2(s5) lbu t4, 3(s5) lbu t5, 4(s5) li s5, 0 addi s1, t6, 5 j .LBB0_28 .LBB0_21: srli s5, s6, 6 blt t0, s5, .LBB0_24 bnez s5, .LBB0_26 slli t2, s6, 2 add t5, s4, t2 lbu t2, 0(t5) ori t3, t5, 1 lbu t3, 0(t3) ori t4, t5, 2 lbu t4, 0(t4) ori t5, t5, 3 lbu t5, 0(t5) j .LBB0_28 .LBB0_24: bne s5, t1, .LBB0_27 add s1, s0, s1 lbu s1, 0(s1) li s5, 0 andi s6, s6, 63 addi s7, s6, -40 srli s8, s1, 4 add s8, s8, s7 add t2, t2, s8 addi t6, t6, 2 add t3, t3, s6 addi t3, t3, -32 andi s1, s1, 15 add s1, s1, s7 add t4, t4, s1 mv s1, t6 j .LBB0_28 .LBB0_26: li s5, 0 slli t6, s6, 26 srli t6, t6, 30 add t2, t2, t6 addi t2, t2, -2 slli t6, s6, 28 srli t6, t6, 30 add t3, t3, t6 addi t3, t3, -2 andi t6, s6, 3 add t4, t4, t6 addi t4, t4, -2 j .LBB0_28 .LBB0_27: andi s5, s6, 63 .LBB0_28: slli t6, t2, 1 add t6, t6, t2 slli s6, t3, 2 add s6, s6, t3 add t6, s6, t6 slli s6, t4, 3 sub s6, s6, t4 add t6, t6, s6 mul s6, t5, a6 add t6, t6, s6 andi t6, t6, 63 slli t6, t6, 2 add t6, s4, t6 sb t2, 0(t6) ori s6, t6, 1 sb t3, 0(s6) ori s6, t6, 2 sb t4, 0(s6) ori t6, t6, 3 sb t5, 0(t6) mv t6, s1 .LBB0_29: add s1, a2, a0 sb t2, 0(s1) sb t3, 1(s1) sb t4, 2(s1) bne s2, a5, .LBB0_12 add s1, a2, a1 sb t5, 291(s1) j .LBB0_12 .LBB0_31: addi a0, a1, 288 j .LBB0_6 q_memset: beq a2,zero,.L48 add a2,a0,a2 sb a1,0(a2) .L48: ret .end: nop
27.433333
48
0.301202
cfb10e7d28b34a006d4b6ee542b7fa24e806e63d
629
asm
Assembly
oeis/276/A276135.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/276/A276135.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/276/A276135.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A276135: Ben Ames Williams's Monkey and Coconuts Problem. ; 0,0,1,20,51,2604,6665,720600,1864135,348678440,909090909,261535698060,685853880635,281241170407092,740800455037201,410525522232055664,1085102592571150095,781282469559318055056,2070863582910344082917,1879498672877297909667780,4993219047619047619047619,5577014881186619679500164220,14844690320183459017245509721,20010448499854249032923573205960,53349431074011364977963258913751,85401771125012041571048589853140024,228004428896561381881358306977785325,427589827948643563878669286668465968060 sub $0,1 mov $1,$0 add $0,1 add $1,2 mov $2,$0 pow $0,$1 div $0,$1 dif $0,$2
52.416667
490
0.871224
a126b7f24cc8b39c5ca231b85b98f3fb00187c0d
940
asm
Assembly
spec/assert_x_not_equal_spec.asm
andrzejsliwa/64spec
fb5e1325fb873b4c5052998377b6ec42e22580ba
[ "MIT" ]
53
2015-10-28T07:17:01.000Z
2022-01-26T15:46:02.000Z
spec/assert_x_not_equal_spec.asm
c64lib/64spec
bbf79e7b76a407725b0ba827e52e8372cf3aea69
[ "MIT" ]
4
2017-02-03T14:27:15.000Z
2021-05-13T12:01:08.000Z
spec/assert_x_not_equal_spec.asm
c64lib/64spec
bbf79e7b76a407725b0ba827e52e8372cf3aea69
[ "MIT" ]
11
2015-12-18T20:32:18.000Z
2022-03-26T19:31:34.000Z
.import source "64spec.asm" sfspec: :init_spec() assert_x_not_equal_works_for_all_values_of_x: { .var x = floor(random()*256) .print "x = " + x + " in assert_x_not_equal_works_for_all_values_of_x test" .for (var expected = 0;expected < 256; expected++) { .if (x != expected) { ldx #x :assert_x_not_equal #expected } else { ldx #x :assert_x_not_equal #expected: _64SPEC.assertion_failed_subroutine: _64SPEC.assertion_passed_subroutine } } } assert_x_not_equal_does_not_affect_x: .var x = floor(random()*256) .print "x = " + x + " in assert_x_not_equal_works_for_all_values_of_x test" ldx #x .for (var expected = 0;expected < 256; expected++) { .if (x != expected) { :assert_x_not_equal #expected } else { :assert_x_not_equal #expected: _64SPEC.assertion_failed_subroutine: _64SPEC.assertion_passed_subroutine } :assert_x_equal #x } :finish_spec()
26.857143
109
0.682979